123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- var $oe=Object.defineProperty;var Aoe=(e,t,n)=>t in e?$oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Moe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var F$=(e,t,n)=>(Aoe(e,typeof t!="symbol"?t+"":t,n),n);var _Ke=Moe((Dl,jl)=>{const Roe=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}};Roe();function ZN(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function Ft(e){if(Et(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Gt(r)?joe(r):Ft(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(Gt(e))return e;if($n(e))return e}}const Noe=/;(?![^(]*\))/g,Ioe=/:([^]+)/,Doe=/\/\*.*?\*\//gs;function joe(e){const t={};return e.replace(Doe,"").split(Noe).forEach(n=>{if(n){const r=n.split(Ioe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function G(e){let t="";if(Gt(e))t=e;else if(Et(e))for(let n=0;n<e.length;n++){const r=G(e[n]);r&&(t+=r+" ")}else if($n(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function fc(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Gt(t)&&(e.class=G(t)),n&&(e.style=Ft(n)),e}const Loe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Boe=ZN(Loe);function Fz(e){return!!e||e===""}function Voe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Vy(e[r],t[r]);return n}function Vy(e,t){if(e===t)return!0;let n=cm(e),r=cm(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=kO(e),r=kO(t),n||r)return e===t;if(n=Et(e),r=Et(t),n||r)return n&&r?Voe(e,t):!1;if(n=$n(e),r=$n(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!Vy(e[a],t[a]))return!1}}return String(e)===String(t)}function zz(e,t){return e.findIndex(n=>Vy(n,t))}const ct=e=>Gt(e)?e:e==null?"":Et(e)||$n(e)&&(e.toString===Wz||!rn(e.toString))?JSON.stringify(e,Qz,2):String(e),Qz=(e,t)=>t&&t.__v_isRef?Qz(e,t.value):wy(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:f2(t)?{[`Set(${t.size})`]:[...t.values()]}:$n(t)&&!Et(t)&&!Uk(t)?String(t):t,Zo={},Oy=[],zr=()=>{},Foe=()=>!1,zoe=/^on[^a-z]/,c2=e=>zoe.test(e),XN=e=>e.startsWith("onUpdate:"),pa=Object.assign,qN=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qoe=Object.prototype.hasOwnProperty,sr=(e,t)=>Qoe.call(e,t),Et=Array.isArray,wy=e=>w1(e)==="[object Map]",f2=e=>w1(e)==="[object Set]",cm=e=>w1(e)==="[object Date]",rn=e=>typeof e=="function",Gt=e=>typeof e=="string",kO=e=>typeof e=="symbol",$n=e=>e!==null&&typeof e=="object",CO=e=>$n(e)&&rn(e.then)&&rn(e.catch),Wz=Object.prototype.toString,w1=e=>Wz.call(e),ak=e=>w1(e).slice(8,-1),Uk=e=>w1(e)==="[object Object]",KN=e=>Gt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sk=ZN(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),d2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Woe=/-(\w)/g,$u=d2(e=>e.replace(Woe,(t,n)=>n?n.toUpperCase():"")),Yoe=/\B([A-Z])/g,wp=d2(e=>e.replace(Yoe,"-$1").toLowerCase()),S1=d2(e=>e.charAt(0).toUpperCase()+e.slice(1)),J_=d2(e=>e?`on${S1(e)}`:""),EO=(e,t)=>!Object.is(e,t),lk=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Hk=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},uM=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uoe=e=>{const t=Gt(e)?Number(e):NaN;return isNaN(t)?e:t};let $L;const Hoe=()=>$L||($L=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let $l;class Yz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$l,!t&&$l&&(this.index=($l.scopes||($l.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=$l;try{return $l=this,t()}finally{$l=n}}}on(){$l=this}off(){$l=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.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Zoe(e){return new Yz(e)}function Xoe(e,t=$l){t&&t.active&&t.effects.push(e)}function Uz(){return $l}function Hz(e){$l&&$l.cleanups.push(e)}const GN=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Zz=e=>(e.w&ep)>0,Xz=e=>(e.n&ep)>0,qoe=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ep},Koe=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Zz(o)&&!Xz(o)?o.delete(e):t[n++]=o,o.w&=~ep,o.n&=~ep}t.length=n}},Zk=new WeakMap;let F_=0,ep=1;const cM=30;let cc;const nm=Symbol(""),fM=Symbol("");class JN{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Xoe(this,r)}run(){if(!this.active)return this.fn();let t=cc,n=Uh;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=cc,cc=this,Uh=!0,ep=1<<++F_,F_<=cM?qoe(this):AL(this),this.fn()}finally{F_<=cM&&Koe(this),ep=1<<--F_,cc=this.parent,Uh=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){cc===this?this.deferStop=!0:this.active&&(AL(this),this.onStop&&this.onStop(),this.active=!1)}}function AL(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Uh=!0;const qz=[];function d0(){qz.push(Uh),Uh=!1}function h0(){const e=qz.pop();Uh=e===void 0?!0:e}function il(e,t,n){if(Uh&&cc){let r=Zk.get(e);r||Zk.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=GN()),Kz(o)}}function Kz(e,t){let n=!1;F_<=cM?Xz(e)||(e.n|=ep,n=!Zz(e)):n=!e.has(cc),n&&(e.add(cc),cc.deps.push(e))}function bd(e,t,n,r,o,i){const a=Zk.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&Et(e)){const l=Number(r);a.forEach((u,f)=>{(f==="length"||f>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":Et(e)?KN(n)&&s.push(a.get("length")):(s.push(a.get(nm)),wy(e)&&s.push(a.get(fM)));break;case"delete":Et(e)||(s.push(a.get(nm)),wy(e)&&s.push(a.get(fM)));break;case"set":wy(e)&&s.push(a.get(nm));break}if(s.length===1)s[0]&&dM(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);dM(GN(l))}}function dM(e,t){const n=Et(e)?e:[...e];for(const r of n)r.computed&&ML(r);for(const r of n)r.computed||ML(r)}function ML(e,t){(e!==cc||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Goe(e,t){var n;return(n=Zk.get(e))===null||n===void 0?void 0:n.get(t)}const Joe=ZN("__proto__,__v_isRef,__isVue"),Gz=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kO)),eie=eI(),tie=eI(!1,!0),nie=eI(!0),RL=rie();function rie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=dr(this);for(let i=0,a=this.length;i<a;i++)il(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(dr)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){d0();const r=dr(this)[t].apply(this,n);return h0(),r}}),e}function oie(e){const t=dr(this);return il(t,"has",e),t.hasOwnProperty(e)}function eI(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?_ie:rQ:t?nQ:tQ).get(r))return r;const a=Et(r);if(!e){if(a&&sr(RL,o))return Reflect.get(RL,o,i);if(o==="hasOwnProperty")return oie}const s=Reflect.get(r,o,i);return(kO(o)?Gz.has(o):Joe(o))||(e||il(r,"get",o),t)?s:no(s)?a&&KN(o)?s:s.value:$n(s)?e?x1(s):or(s):s}}const iie=Jz(),aie=Jz(!0);function Jz(e=!1){return function(n,r,o,i){let a=n[r];if(Fy(a)&&no(a)&&!no(o))return!1;if(!e&&(!Xk(o)&&!Fy(o)&&(a=dr(a),o=dr(o)),!Et(n)&&no(a)&&!no(o)))return a.value=o,!0;const s=Et(n)&&KN(r)?Number(r)<n.length:sr(n,r),l=Reflect.set(n,r,o,i);return n===dr(i)&&(s?EO(o,a)&&bd(n,"set",r,o):bd(n,"add",r,o)),l}}function sie(e,t){const n=sr(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&bd(e,"delete",t,void 0),r}function lie(e,t){const n=Reflect.has(e,t);return(!kO(t)||!Gz.has(t))&&il(e,"has",t),n}function uie(e){return il(e,"iterate",Et(e)?"length":nm),Reflect.ownKeys(e)}const eQ={get:eie,set:iie,deleteProperty:sie,has:lie,ownKeys:uie},cie={get:nie,set(e,t){return!0},deleteProperty(e,t){return!0}},fie=pa({},eQ,{get:tie,set:aie}),tI=e=>e,h2=e=>Reflect.getPrototypeOf(e);function dx(e,t,n=!1,r=!1){e=e.__v_raw;const o=dr(e),i=dr(t);n||(t!==i&&il(o,"get",t),il(o,"get",i));const{has:a}=h2(o),s=r?tI:n?oI:TO;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function hx(e,t=!1){const n=this.__v_raw,r=dr(n),o=dr(e);return t||(e!==o&&il(r,"has",e),il(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function px(e,t=!1){return e=e.__v_raw,!t&&il(dr(e),"iterate",nm),Reflect.get(e,"size",e)}function NL(e){e=dr(e);const t=dr(this);return h2(t).has.call(t,e)||(t.add(e),bd(t,"add",e,e)),this}function IL(e,t){t=dr(t);const n=dr(this),{has:r,get:o}=h2(n);let i=r.call(n,e);i||(e=dr(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?EO(t,a)&&bd(n,"set",e,t):bd(n,"add",e,t),this}function DL(e){const t=dr(this),{has:n,get:r}=h2(t);let o=n.call(t,e);o||(e=dr(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&bd(t,"delete",e,void 0),i}function jL(){const e=dr(this),t=e.size!==0,n=e.clear();return t&&bd(e,"clear",void 0,void 0),n}function gx(e,t){return function(r,o){const i=this,a=i.__v_raw,s=dr(a),l=t?tI:e?oI:TO;return!e&&il(s,"iterate",nm),a.forEach((u,f)=>r.call(o,l(u),l(f),i))}}function mx(e,t,n){return function(...r){const o=this.__v_raw,i=dr(o),a=wy(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=o[e](...r),f=n?tI:t?oI:TO;return!t&&il(i,"iterate",l?fM:nm),{next(){const{value:h,done:m}=u.next();return m?{value:h,done:m}:{value:s?[f(h[0]),f(h[1])]:f(h),done:m}},[Symbol.iterator](){return this}}}}function Ch(e){return function(...t){return e==="delete"?!1:this}}function die(){const e={get(i){return dx(this,i)},get size(){return px(this)},has:hx,add:NL,set:IL,delete:DL,clear:jL,forEach:gx(!1,!1)},t={get(i){return dx(this,i,!1,!0)},get size(){return px(this)},has:hx,add:NL,set:IL,delete:DL,clear:jL,forEach:gx(!1,!0)},n={get(i){return dx(this,i,!0)},get size(){return px(this,!0)},has(i){return hx.call(this,i,!0)},add:Ch("add"),set:Ch("set"),delete:Ch("delete"),clear:Ch("clear"),forEach:gx(!0,!1)},r={get(i){return dx(this,i,!0,!0)},get size(){return px(this,!0)},has(i){return hx.call(this,i,!0)},add:Ch("add"),set:Ch("set"),delete:Ch("delete"),clear:Ch("clear"),forEach:gx(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=mx(i,!1,!1),n[i]=mx(i,!0,!1),t[i]=mx(i,!1,!0),r[i]=mx(i,!0,!0)}),[e,n,t,r]}const[hie,pie,gie,mie]=die();function nI(e,t){const n=t?e?mie:gie:e?pie:hie;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(sr(n,o)&&o in r?n:r,o,i)}const vie={get:nI(!1,!1)},yie={get:nI(!1,!0)},bie={get:nI(!0,!1)},tQ=new WeakMap,nQ=new WeakMap,rQ=new WeakMap,_ie=new WeakMap;function Oie(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wie(e){return e.__v_skip||!Object.isExtensible(e)?0:Oie(ak(e))}function or(e){return Fy(e)?e:rI(e,!1,eQ,vie,tQ)}function oQ(e){return rI(e,!1,fie,yie,nQ)}function x1(e){return rI(e,!0,cie,bie,rQ)}function rI(e,t,n,r,o){if(!$n(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=wie(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return o.set(e,s),s}function Sy(e){return Fy(e)?Sy(e.__v_raw):!!(e&&e.__v_isReactive)}function Fy(e){return!!(e&&e.__v_isReadonly)}function Xk(e){return!!(e&&e.__v_isShallow)}function iQ(e){return Sy(e)||Fy(e)}function dr(e){const t=e&&e.__v_raw;return t?dr(t):e}function md(e){return Hk(e,"__v_skip",!0),e}const TO=e=>$n(e)?or(e):e,oI=e=>$n(e)?x1(e):e;function iI(e){Uh&&cc&&(e=dr(e),Kz(e.dep||(e.dep=GN())))}function aI(e,t){e=dr(e);const n=e.dep;n&&dM(n)}function no(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return aQ(e,!1)}function to(e){return aQ(e,!0)}function aQ(e,t){return no(e)?e:new Sie(e,t)}class Sie{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:dr(t),this._value=n?t:TO(t)}get value(){return iI(this),this._value}set value(t){const n=this.__v_isShallow||Xk(t)||Fy(t);t=n?t:dr(t),EO(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:TO(t),aI(this))}}function v(e){return no(e)?e.value:e}const xie={get:(e,t,n)=>v(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return no(o)&&!no(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function sQ(e){return Sy(e)?e:new Proxy(e,xie)}class kie{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>iI(this),()=>aI(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Cie(e){return new kie(e)}function ra(e){const t=Et(e)?new Array(e.length):{};for(const n in e)t[n]=Tr(e,n);return t}class Eie{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}get dep(){return Goe(dr(this._object),this._key)}}function Tr(e,t,n){const r=e[t];return no(r)?r:new Eie(e,t,n)}var lQ;class Tie{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[lQ]=!1,this._dirty=!0,this.effect=new JN(t,()=>{this._dirty||(this._dirty=!0,aI(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=dr(this);return iI(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}lQ="__v_isReadonly";function Pie(e,t,n=!1){let r,o;const i=rn(e);return i?(r=e,o=zr):(r=e.get,o=e.set),new Tie(r,o,i||!o,n)}function $ie(e,...t){}function Hh(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){p2(i,t,n)}return o}function ku(e,t,n,r){if(rn(e)){const i=Hh(e,t,n,r);return i&&CO(i)&&i.catch(a=>{p2(a,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(ku(e[i],t,n,r));return o}function p2(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Hh(l,null,10,[e,a,s]);return}}Aie(e,n,o,r)}function Aie(e,t,n,r=!0){console.error(e)}let PO=!1,hM=!1;const ns=[];let sf=0;const xy=[];let dd=null,jg=0;const uQ=Promise.resolve();let sI=null;function Wt(e){const t=sI||uQ;return e?t.then(this?e.bind(this):e):t}function Mie(e){let t=sf+1,n=ns.length;for(;t<n;){const r=t+n>>>1;$O(ns[r])<e?t=r+1:n=r}return t}function lI(e){(!ns.length||!ns.includes(e,PO&&e.allowRecurse?sf+1:sf))&&(e.id==null?ns.push(e):ns.splice(Mie(e.id),0,e),cQ())}function cQ(){!PO&&!hM&&(hM=!0,sI=uQ.then(dQ))}function Rie(e){const t=ns.indexOf(e);t>sf&&ns.splice(t,1)}function Nie(e){Et(e)?xy.push(...e):(!dd||!dd.includes(e,e.allowRecurse?jg+1:jg))&&xy.push(e),cQ()}function LL(e,t=PO?sf+1:0){for(;t<ns.length;t++){const n=ns[t];n&&n.pre&&(ns.splice(t,1),t--,n())}}function fQ(e){if(xy.length){const t=[...new Set(xy)];if(xy.length=0,dd){dd.push(...t);return}for(dd=t,dd.sort((n,r)=>$O(n)-$O(r)),jg=0;jg<dd.length;jg++)dd[jg]();dd=null,jg=0}}const $O=e=>e.id==null?1/0:e.id,Iie=(e,t)=>{const n=$O(e)-$O(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dQ(e){hM=!1,PO=!0,ns.sort(Iie);const t=zr;try{for(sf=0;sf<ns.length;sf++){const n=ns[sf];n&&n.active!==!1&&Hh(n,null,14)}}finally{sf=0,ns.length=0,fQ(),PO=!1,sI=null,(ns.length||xy.length)&&dQ()}}function Die(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Zo;let o=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in r){const f=`${a==="modelValue"?"model":a}Modifiers`,{number:h,trim:m}=r[f]||Zo;m&&(o=n.map(y=>Gt(y)?y.trim():y)),h&&(o=n.map(uM))}let s,l=r[s=J_(t)]||r[s=J_($u(t))];!l&&i&&(l=r[s=J_(wp(t))]),l&&ku(l,e,6,o);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,ku(u,e,6,o)}}function hQ(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!rn(e)){const l=u=>{const f=hQ(u,t,!0);f&&(s=!0,pa(a,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?($n(e)&&r.set(e,null),null):(Et(i)?i.forEach(l=>a[l]=null):pa(a,i),$n(e)&&r.set(e,a),a)}function g2(e,t){return!e||!c2(t)?!1:(t=t.slice(2).replace(/Once$/,""),sr(e,t[0].toLowerCase()+t.slice(1))||sr(e,wp(t))||sr(e,t))}let La=null,m2=null;function qk(e){const t=La;return La=e,m2=e&&e.type.__scopeId||null,t}function jie(e){m2=e}function Lie(){m2=null}function se(e,t=La,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&XL(-1);const i=qk(t);let a;try{a=e(...o)}finally{qk(i),r._d&&XL(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function z$(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:l,emit:u,render:f,renderCache:h,data:m,setupState:y,ctx:O,inheritAttrs:b}=e;let k,C;const P=qk(e);try{if(n.shapeFlag&4){const T=o||r;k=of(f.call(T,T,h,i,y,m,O)),C=l}else{const T=t;k=of(T.length>1?T(i,{attrs:l,slots:s,emit:u}):T(i,null)),C=t.props?l:Bie(l)}}catch(T){rO.length=0,p2(T,e,1),k=ne(Cs)}let $=k;if(C&&b!==!1){const T=Object.keys(C),{shapeFlag:A}=$;T.length&&A&7&&(a&&T.some(XN)&&(C=Vie(C,a)),$=_d($,C))}return n.dirs&&($=_d($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),k=$,qk(P),k}const Bie=e=>{let t;for(const n in e)(n==="class"||n==="style"||c2(n))&&((t||(t={}))[n]=e[n]);return t},Vie=(e,t)=>{const n={};for(const r in e)(!XN(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Fie(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?BL(r,a,u):!!a;if(l&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const m=f[h];if(a[m]!==r[m]&&!g2(u,m))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?BL(r,a,u):!0:!!a;return!1}function BL(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!g2(n,i))return!0}return!1}function zie({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Qie=e=>e.__isSuspense;function Wie(e,t){t&&t.pendingBranch?Et(e)?t.effects.push(...e):t.effects.push(e):Nie(e)}function Yn(e,t){if(Pi){let n=Pi.provides;const r=Pi.parent&&Pi.parent.provides;r===n&&(n=Pi.provides=Object.create(r)),n[e]=t}}function $t(e,t,n=!1){const r=Pi||La;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&rn(t)?t.call(r.proxy):t}}function Ba(e,t){return uI(e,null,t)}const vx={};function at(e,t,n){return uI(e,t,n)}function uI(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=Zo){const s=Uz()===(Pi==null?void 0:Pi.scope)?Pi:null;let l,u=!1,f=!1;if(no(e)?(l=()=>e.value,u=Xk(e)):Sy(e)?(l=()=>e,r=!0):Et(e)?(f=!0,u=e.some($=>Sy($)||Xk($)),l=()=>e.map($=>{if(no($))return $.value;if(Sy($))return Ug($);if(rn($))return Hh($,s,2)})):rn(e)?t?l=()=>Hh(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return h&&h(),ku(e,s,3,[m])}:l=zr,t&&r){const $=l;l=()=>Ug($())}let h,m=$=>{h=C.onStop=()=>{Hh($,s,4)}},y;if(NO)if(m=zr,t?n&&ku(t,s,3,[l(),f?[]:void 0,m]):l(),o==="sync"){const $=Aae();y=$.__watcherHandles||($.__watcherHandles=[])}else return zr;let O=f?new Array(e.length).fill(vx):vx;const b=()=>{if(!!C.active)if(t){const $=C.run();(r||u||(f?$.some((T,A)=>EO(T,O[A])):EO($,O)))&&(h&&h(),ku(t,s,3,[$,O===vx?void 0:f&&O[0]===vx?[]:O,m]),O=$)}else C.run()};b.allowRecurse=!!t;let k;o==="sync"?k=b:o==="post"?k=()=>Hs(b,s&&s.suspense):(b.pre=!0,s&&(b.id=s.uid),k=()=>lI(b));const C=new JN(l,k);t?n?b():O=C.run():o==="post"?Hs(C.run.bind(C),s&&s.suspense):C.run();const P=()=>{C.stop(),s&&s.scope&&qN(s.scope.effects,C)};return y&&y.push(P),P}function Yie(e,t,n){const r=this.proxy,o=Gt(e)?e.includes(".")?pQ(r,e):()=>r[e]:e.bind(r,r);let i;rn(t)?i=t:(i=t.handler,n=t);const a=Pi;zy(this);const s=uI(o,i.bind(r),n);return a?zy(a):rm(),s}function pQ(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Ug(e,t){if(!$n(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),no(e))Ug(e.value,t);else if(Et(e))for(let n=0;n<e.length;n++)Ug(e[n],t);else if(f2(e)||wy(e))e.forEach(n=>{Ug(n,t)});else if(Uk(e))for(const n in e)Ug(e[n],t);return e}function gQ(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vn(()=>{e.isMounted=!0}),qr(()=>{e.isUnmounting=!0}),e}const du=[Function,Array],Uie={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:du,onEnter:du,onAfterEnter:du,onEnterCancelled:du,onBeforeLeave:du,onLeave:du,onAfterLeave:du,onLeaveCancelled:du,onBeforeAppear:du,onAppear:du,onAfterAppear:du,onAppearCancelled:du},setup(e,{slots:t}){const n=En(),r=gQ();let o;return()=>{const i=t.default&&cI(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==Cs){a=b;break}}const s=dr(e),{mode:l}=s;if(r.isLeaving)return Q$(a);const u=VL(a);if(!u)return Q$(a);const f=AO(u,s,r,n);MO(u,f);const h=n.subTree,m=h&&VL(h);let y=!1;const{getTransitionKey:O}=u.type;if(O){const b=O();o===void 0?o=b:b!==o&&(o=b,y=!0)}if(m&&m.type!==Cs&&(!Lg(u,m)||y)){const b=AO(m,s,r,n);if(MO(m,b),l==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Q$(a);l==="in-out"&&u.type!==Cs&&(b.delayLeave=(k,C,P)=>{const $=vQ(r,m);$[String(m.key)]=m,k._leaveCb=()=>{C(),k._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=P})}return a}}},mQ=Uie;function vQ(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 AO(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:m,onAfterLeave:y,onLeaveCancelled:O,onBeforeAppear:b,onAppear:k,onAfterAppear:C,onAppearCancelled:P}=t,$=String(e.key),T=vQ(n,e),A=(I,N)=>{I&&ku(I,r,9,N)},R=(I,N)=>{const j=N[1];A(I,N),Et(I)?I.every(L=>L.length<=1)&&j():I.length<=1&&j()},B={mode:i,persisted:a,beforeEnter(I){let N=s;if(!n.isMounted)if(o)N=b||s;else return;I._leaveCb&&I._leaveCb(!0);const j=T[$];j&&Lg(e,j)&&j.el._leaveCb&&j.el._leaveCb(),A(N,[I])},enter(I){let N=l,j=u,L=f;if(!n.isMounted)if(o)N=k||l,j=C||u,L=P||f;else return;let V=!1;const X=I._enterCb=oe=>{V||(V=!0,oe?A(L,[I]):A(j,[I]),B.delayedLeave&&B.delayedLeave(),I._enterCb=void 0)};N?R(N,[I,X]):X()},leave(I,N){const j=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return N();A(h,[I]);let L=!1;const V=I._leaveCb=X=>{L||(L=!0,N(),X?A(O,[I]):A(y,[I]),I._leaveCb=void 0,T[j]===e&&delete T[j])};T[j]=e,m?R(m,[I,V]):V()},clone(I){return AO(I,t,n,r)}};return B}function Q$(e){if(v2(e))return e=_d(e),e.children=null,e}function VL(e){return v2(e)?e.children?e.children[0]:void 0:e}function MO(e,t){e.shapeFlag&6&&e.component?MO(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 cI(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Pt?(a.patchFlag&128&&o++,r=r.concat(cI(a.children,t,s))):(t||a.type!==Cs)&&r.push(s!=null?_d(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function xe(e){return rn(e)?{setup:e,name:e.name}:e}const eO=e=>!!e.type.__asyncLoader,v2=e=>e.type.__isKeepAlive;function fI(e,t){bQ(e,"a",t)}function yQ(e,t){bQ(e,"da",t)}function bQ(e,t,n=Pi){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(y2(t,r,n),n){let o=n.parent;for(;o&&o.parent;)v2(o.parent.vnode)&&Hie(r,t,n,o),o=o.parent}}function Hie(e,t,n,r){const o=y2(t,e,r,!0);Sp(()=>{qN(r[t],o)},n)}function y2(e,t,n=Pi,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;d0(),zy(n);const s=ku(t,n,e,a);return rm(),h0(),s});return r?o.unshift(i):o.push(i),i}}const Td=e=>(t,n=Pi)=>(!NO||e==="sp")&&y2(e,(...r)=>t(...r),n),b2=Td("bm"),vn=Td("m"),_Q=Td("bu"),wc=Td("u"),qr=Td("bum"),Sp=Td("um"),Zie=Td("sp"),Xie=Td("rtg"),qie=Td("rtc");function Kie(e,t=Pi){y2("ec",e,t)}function bn(e,t){const n=La;if(n===null)return e;const r=w2(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,s,l,u=Zo]=t[i];a&&(rn(a)&&(a={mounted:a,updated:a}),a.deep&&Ug(s),o.push({dir:a,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function Pg(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[r];l&&(d0(),ku(l,n,8,[e.el,s,e,t]),h0())}}const dI="components",Gie="directives";function Pn(e,t){return hI(dI,e,!0,t)||e}const OQ=Symbol();function jn(e){return Gt(e)?hI(dI,e,!1)||e:e||OQ}function _2(e){return hI(Gie,e)}function hI(e,t,n=!0,r=!1){const o=La||Pi;if(o){const i=o.type;if(e===dI){const s=Tae(i,!1);if(s&&(s===t||s===$u(t)||s===S1($u(t))))return i}const a=FL(o[e]||i[e],t)||FL(o.appContext[e],t);return!a&&r?i:a}}function FL(e,t){return e&&(e[t]||e[$u(t)]||e[S1($u(t))])}function _n(e,t,n,r){let o;const i=n&&n[r];if(Et(e)||Gt(e)){o=new Array(e.length);for(let a=0,s=e.length;a<s;a++)o[a]=t(e[a],a,void 0,i&&i[a])}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i&&i[a])}else if($n(e))if(e[Symbol.iterator])o=Array.from(e,(a,s)=>t(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,l=a.length;s<l;s++){const u=a[s];o[s]=t(e[u],u,s,i&&i[s])}}else o=[];return n&&(n[r]=o),o}function Fl(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Et(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function Xe(e,t,n={},r,o){if(La.isCE||La.parent&&eO(La.parent)&&La.parent.isCE)return t!=="default"&&(n.name=t),ne("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),U();const a=i&&wQ(i(n)),s=Qe(Pt,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function wQ(e){return e.some(t=>wo(t)?!(t.type===Cs||t.type===Pt&&!wQ(t.children)):!0)?e:null}function Jie(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:J_(r)]=e[r];return n}const pM=e=>e?RQ(e)?w2(e)||e.proxy:pM(e.parent):null,tO=pa(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=>pM(e.parent),$root:e=>pM(e.root),$emit:e=>e.emit,$options:e=>pI(e),$forceUpdate:e=>e.f||(e.f=()=>lI(e.update)),$nextTick:e=>e.n||(e.n=Wt.bind(e.proxy)),$watch:e=>Yie.bind(e)}),W$=(e,t)=>e!==Zo&&!e.__isScriptSetup&&sr(e,t),eae={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const y=a[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(W$(r,t))return a[t]=1,r[t];if(o!==Zo&&sr(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&sr(u,t))return a[t]=3,i[t];if(n!==Zo&&sr(n,t))return a[t]=4,n[t];gM&&(a[t]=0)}}const f=tO[t];let h,m;if(f)return t==="$attrs"&&il(e,"get",t),f(e);if((h=s.__cssModules)&&(h=h[t]))return h;if(n!==Zo&&sr(n,t))return a[t]=4,n[t];if(m=l.config.globalProperties,sr(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return W$(o,t)?(o[t]=n,!0):r!==Zo&&sr(r,t)?(r[t]=n,!0):sr(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==Zo&&sr(e,a)||W$(t,a)||(s=i[0])&&sr(s,a)||sr(r,a)||sr(tO,a)||sr(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:sr(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let gM=!0;function tae(e){const t=pI(e),n=e.proxy,r=e.ctx;gM=!1,t.beforeCreate&&zL(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:u,created:f,beforeMount:h,mounted:m,beforeUpdate:y,updated:O,activated:b,deactivated:k,beforeDestroy:C,beforeUnmount:P,destroyed:$,unmounted:T,render:A,renderTracked:R,renderTriggered:B,errorCaptured:I,serverPrefetch:N,expose:j,inheritAttrs:L,components:V,directives:X,filters:oe}=t;if(u&&nae(u,r,null,e.appContext.config.unwrapInjectedRef),a)for(const re in a){const J=a[re];rn(J)&&(r[re]=J.bind(n))}if(o){const re=o.call(n,n);$n(re)&&(e.data=or(re))}if(gM=!0,i)for(const re in i){const J=i[re],z=rn(J)?J.bind(n,n):rn(J.get)?J.get.bind(n,n):zr,q=!rn(J)&&rn(J.set)?J.set.bind(n):zr,ue=W({get:z,set:q});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>ue.value,set:he=>ue.value=he})}if(s)for(const re in s)SQ(s[re],r,n,re);if(l){const re=rn(l)?l.call(n):l;Reflect.ownKeys(re).forEach(J=>{Yn(J,re[J])})}f&&zL(f,e,"c");function Z(re,J){Et(J)?J.forEach(z=>re(z.bind(n))):J&&re(J.bind(n))}if(Z(b2,h),Z(vn,m),Z(_Q,y),Z(wc,O),Z(fI,b),Z(yQ,k),Z(Kie,I),Z(qie,R),Z(Xie,B),Z(qr,P),Z(Sp,T),Z(Zie,N),Et(j))if(j.length){const re=e.exposed||(e.exposed={});j.forEach(J=>{Object.defineProperty(re,J,{get:()=>n[J],set:z=>n[J]=z})})}else e.exposed||(e.exposed={});A&&e.render===zr&&(e.render=A),L!=null&&(e.inheritAttrs=L),V&&(e.components=V),X&&(e.directives=X)}function nae(e,t,n=zr,r=!1){Et(e)&&(e=mM(e));for(const o in e){const i=e[o];let a;$n(i)?"default"in i?a=$t(i.from||o,i.default,!0):a=$t(i.from||o):a=$t(i),no(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[o]=a}}function zL(e,t,n){ku(Et(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function SQ(e,t,n,r){const o=r.includes(".")?pQ(n,r):()=>n[r];if(Gt(e)){const i=t[e];rn(i)&&at(o,i)}else if(rn(e))at(o,e.bind(n));else if($n(e))if(Et(e))e.forEach(i=>SQ(i,t,n,r));else{const i=rn(e.handler)?e.handler.bind(n):t[e.handler];rn(i)&&at(o,i,e)}}function pI(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>Kk(l,u,a,!0)),Kk(l,t,a)),$n(t)&&i.set(t,l),l}function Kk(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Kk(e,i,n,!0),o&&o.forEach(a=>Kk(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=rae[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const rae={data:QL,props:Ig,emits:Ig,methods:Ig,computed:Ig,beforeCreate:Ss,created:Ss,beforeMount:Ss,mounted:Ss,beforeUpdate:Ss,updated:Ss,beforeDestroy:Ss,beforeUnmount:Ss,destroyed:Ss,unmounted:Ss,activated:Ss,deactivated:Ss,errorCaptured:Ss,serverPrefetch:Ss,components:Ig,directives:Ig,watch:iae,provide:QL,inject:oae};function QL(e,t){return t?e?function(){return pa(rn(e)?e.call(this,this):e,rn(t)?t.call(this,this):t)}:t:e}function oae(e,t){return Ig(mM(e),mM(t))}function mM(e){if(Et(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ss(e,t){return e?[...new Set([].concat(e,t))]:t}function Ig(e,t){return e?pa(pa(Object.create(null),e),t):t}function iae(e,t){if(!e)return t;if(!t)return e;const n=pa(Object.create(null),e);for(const r in t)n[r]=Ss(e[r],t[r]);return n}function aae(e,t,n,r=!1){const o={},i={};Hk(i,O2,1),e.propsDefaults=Object.create(null),xQ(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:oQ(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function sae(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=dr(o),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let m=f[h];if(g2(e.emitsOptions,m))continue;const y=t[m];if(l)if(sr(i,m))y!==i[m]&&(i[m]=y,u=!0);else{const O=$u(m);o[O]=vM(l,s,O,y,e,!1)}else y!==i[m]&&(i[m]=y,u=!0)}}}else{xQ(e,t,o,i)&&(u=!0);let f;for(const h in s)(!t||!sr(t,h)&&((f=wp(h))===h||!sr(t,f)))&&(l?n&&(n[h]!==void 0||n[f]!==void 0)&&(o[h]=vM(l,s,h,void 0,e,!0)):delete o[h]);if(i!==s)for(const h in i)(!t||!sr(t,h)&&!0)&&(delete i[h],u=!0)}u&&bd(e,"set","$attrs")}function xQ(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(sk(l))continue;const u=t[l];let f;o&&sr(o,f=$u(l))?!i||!i.includes(f)?n[f]=u:(s||(s={}))[f]=u:g2(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(i){const l=dr(n),u=s||Zo;for(let f=0;f<i.length;f++){const h=i[f];n[h]=vM(o,l,h,u[h],e,!sr(u,h))}}return a}function vM(e,t,n,r,o,i){const a=e[n];if(a!=null){const s=sr(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&rn(l)){const{propsDefaults:u}=o;n in u?r=u[n]:(zy(o),r=u[n]=l.call(null,t),rm())}else r=l}a[0]&&(i&&!s?r=!1:a[1]&&(r===""||r===wp(n))&&(r=!0))}return r}function kQ(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},s=[];let l=!1;if(!rn(e)){const f=h=>{l=!0;const[m,y]=kQ(h,t,!0);pa(a,m),y&&s.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!l)return $n(e)&&r.set(e,Oy),Oy;if(Et(i))for(let f=0;f<i.length;f++){const h=$u(i[f]);WL(h)&&(a[h]=Zo)}else if(i)for(const f in i){const h=$u(f);if(WL(h)){const m=i[f],y=a[h]=Et(m)||rn(m)?{type:m}:Object.assign({},m);if(y){const O=HL(Boolean,y.type),b=HL(String,y.type);y[0]=O>-1,y[1]=b<0||O<b,(O>-1||sr(y,"default"))&&s.push(h)}}}const u=[a,s];return $n(e)&&r.set(e,u),u}function WL(e){return e[0]!=="$"}function YL(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function UL(e,t){return YL(e)===YL(t)}function HL(e,t){return Et(t)?t.findIndex(n=>UL(n,e)):rn(t)&&UL(t,e)?0:-1}const CQ=e=>e[0]==="_"||e==="$stable",gI=e=>Et(e)?e.map(of):[of(e)],lae=(e,t,n)=>{if(t._n)return t;const r=se((...o)=>gI(t(...o)),n);return r._c=!1,r},EQ=(e,t,n)=>{const r=e._ctx;for(const o in e){if(CQ(o))continue;const i=e[o];if(rn(i))t[o]=lae(o,i,r);else if(i!=null){const a=gI(i);t[o]=()=>a}}},TQ=(e,t)=>{const n=gI(t);e.slots.default=()=>n},uae=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=dr(t),Hk(t,"_",n)):EQ(t,e.slots={})}else e.slots={},t&&TQ(e,t);Hk(e.slots,O2,1)},cae=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Zo;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(pa(o,t),!n&&s===1&&delete o._):(i=!t.$stable,EQ(t,o)),a=t}else t&&(TQ(e,t),a={default:1});if(i)for(const s in o)!CQ(s)&&!(s in a)&&delete o[s]};function PQ(){return{app:null,config:{isNativeTag:Foe,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 fae=0;function dae(e,t){return function(r,o=null){rn(r)||(r=Object.assign({},r)),o!=null&&!$n(o)&&(o=null);const i=PQ(),a=new Set;let s=!1;const l=i.app={_uid:fae++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:Mae,get config(){return i.config},set config(u){},use(u,...f){return a.has(u)||(u&&rn(u.install)?(a.add(u),u.install(l,...f)):rn(u)&&(a.add(u),u(l,...f))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,f){return f?(i.components[u]=f,l):i.components[u]},directive(u,f){return f?(i.directives[u]=f,l):i.directives[u]},mount(u,f,h){if(!s){const m=ne(r,o);return m.appContext=i,f&&t?t(m,u):e(m,u,h),s=!0,l._container=u,u.__vue_app__=l,w2(m.component)||m.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return i.provides[u]=f,l}};return l}}function yM(e,t,n,r,o=!1){if(Et(e)){e.forEach((m,y)=>yM(m,t&&(Et(t)?t[y]:t),n,r,o));return}if(eO(r)&&!o)return;const i=r.shapeFlag&4?w2(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:l}=e,u=t&&t.r,f=s.refs===Zo?s.refs={}:s.refs,h=s.setupState;if(u!=null&&u!==l&&(Gt(u)?(f[u]=null,sr(h,u)&&(h[u]=null)):no(u)&&(u.value=null)),rn(l))Hh(l,s,12,[a,f]);else{const m=Gt(l),y=no(l);if(m||y){const O=()=>{if(e.f){const b=m?sr(h,l)?h[l]:f[l]:l.value;o?Et(b)&&qN(b,i):Et(b)?b.includes(i)||b.push(i):m?(f[l]=[i],sr(h,l)&&(h[l]=f[l])):(l.value=[i],e.k&&(f[e.k]=l.value))}else m?(f[l]=a,sr(h,l)&&(h[l]=a)):y&&(l.value=a,e.k&&(f[e.k]=a))};a?(O.id=-1,Hs(O,n)):O()}}}const Hs=Wie;function hae(e){return pae(e)}function pae(e,t){const n=Hoe();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:u,setElementText:f,parentNode:h,nextSibling:m,setScopeId:y=zr,insertStaticContent:O}=e,b=(fe,ye,He,be=null,Ie=null,De=null,Me=!1,qe=null,Oe=!!ye.dynamicChildren)=>{if(fe===ye)return;fe&&!Lg(fe,ye)&&(be=Ae(fe),he(fe,Ie,De,!0),fe=null),ye.patchFlag===-2&&(Oe=!1,ye.dynamicChildren=null);const{type:Je,ref:lt,shapeFlag:Ke}=ye;switch(Je){case p0:k(fe,ye,He,be);break;case Cs:C(fe,ye,He,be);break;case Y$:fe==null&&P(ye,He,be,Me);break;case Pt:V(fe,ye,He,be,Ie,De,Me,qe,Oe);break;default:Ke&1?A(fe,ye,He,be,Ie,De,Me,qe,Oe):Ke&6?X(fe,ye,He,be,Ie,De,Me,qe,Oe):(Ke&64||Ke&128)&&Je.process(fe,ye,He,be,Ie,De,Me,qe,Oe,ve)}lt!=null&&Ie&&yM(lt,fe&&fe.ref,De,ye||fe,!ye)},k=(fe,ye,He,be)=>{if(fe==null)r(ye.el=s(ye.children),He,be);else{const Ie=ye.el=fe.el;ye.children!==fe.children&&u(Ie,ye.children)}},C=(fe,ye,He,be)=>{fe==null?r(ye.el=l(ye.children||""),He,be):ye.el=fe.el},P=(fe,ye,He,be)=>{[fe.el,fe.anchor]=O(fe.children,ye,He,be,fe.el,fe.anchor)},$=({el:fe,anchor:ye},He,be)=>{let Ie;for(;fe&&fe!==ye;)Ie=m(fe),r(fe,He,be),fe=Ie;r(ye,He,be)},T=({el:fe,anchor:ye})=>{let He;for(;fe&&fe!==ye;)He=m(fe),o(fe),fe=He;o(ye)},A=(fe,ye,He,be,Ie,De,Me,qe,Oe)=>{Me=Me||ye.type==="svg",fe==null?R(ye,He,be,Ie,De,Me,qe,Oe):N(fe,ye,Ie,De,Me,qe,Oe)},R=(fe,ye,He,be,Ie,De,Me,qe)=>{let Oe,Je;const{type:lt,props:Ke,shapeFlag:et,transition:bt,dirs:Ot}=fe;if(Oe=fe.el=a(fe.type,De,Ke&&Ke.is,Ke),et&8?f(Oe,fe.children):et&16&&I(fe.children,Oe,null,be,Ie,De&<!=="foreignObject",Me,qe),Ot&&Pg(fe,null,be,"created"),B(Oe,fe,fe.scopeId,Me,be),Ke){for(const kt in Ke)kt!=="value"&&!sk(kt)&&i(Oe,kt,null,Ke[kt],De,fe.children,be,Ie,Be);"value"in Ke&&i(Oe,"value",null,Ke.value),(Je=Ke.onVnodeBeforeMount)&&Jc(Je,be,fe)}Ot&&Pg(fe,null,be,"beforeMount");const Qt=(!Ie||Ie&&!Ie.pendingBranch)&&bt&&!bt.persisted;Qt&&bt.beforeEnter(Oe),r(Oe,ye,He),((Je=Ke&&Ke.onVnodeMounted)||Qt||Ot)&&Hs(()=>{Je&&Jc(Je,be,fe),Qt&&bt.enter(Oe),Ot&&Pg(fe,null,be,"mounted")},Ie)},B=(fe,ye,He,be,Ie)=>{if(He&&y(fe,He),be)for(let De=0;De<be.length;De++)y(fe,be[De]);if(Ie){let De=Ie.subTree;if(ye===De){const Me=Ie.vnode;B(fe,Me,Me.scopeId,Me.slotScopeIds,Ie.parent)}}},I=(fe,ye,He,be,Ie,De,Me,qe,Oe=0)=>{for(let Je=Oe;Je<fe.length;Je++){const lt=fe[Je]=qe?Nh(fe[Je]):of(fe[Je]);b(null,lt,ye,He,be,Ie,De,Me,qe)}},N=(fe,ye,He,be,Ie,De,Me)=>{const qe=ye.el=fe.el;let{patchFlag:Oe,dynamicChildren:Je,dirs:lt}=ye;Oe|=fe.patchFlag&16;const Ke=fe.props||Zo,et=ye.props||Zo;let bt;He&&$g(He,!1),(bt=et.onVnodeBeforeUpdate)&&Jc(bt,He,ye,fe),lt&&Pg(ye,fe,He,"beforeUpdate"),He&&$g(He,!0);const Ot=Ie&&ye.type!=="foreignObject";if(Je?j(fe.dynamicChildren,Je,qe,He,be,Ot,De):Me||J(fe,ye,qe,null,He,be,Ot,De,!1),Oe>0){if(Oe&16)L(qe,ye,Ke,et,He,be,Ie);else if(Oe&2&&Ke.class!==et.class&&i(qe,"class",null,et.class,Ie),Oe&4&&i(qe,"style",Ke.style,et.style,Ie),Oe&8){const Qt=ye.dynamicProps;for(let kt=0;kt<Qt.length;kt++){const an=Qt[kt],Ce=Ke[an],Ye=et[an];(Ye!==Ce||an==="value")&&i(qe,an,Ce,Ye,Ie,fe.children,He,be,Be)}}Oe&1&&fe.children!==ye.children&&f(qe,ye.children)}else!Me&&Je==null&&L(qe,ye,Ke,et,He,be,Ie);((bt=et.onVnodeUpdated)||lt)&&Hs(()=>{bt&&Jc(bt,He,ye,fe),lt&&Pg(ye,fe,He,"updated")},be)},j=(fe,ye,He,be,Ie,De,Me)=>{for(let qe=0;qe<ye.length;qe++){const Oe=fe[qe],Je=ye[qe],lt=Oe.el&&(Oe.type===Pt||!Lg(Oe,Je)||Oe.shapeFlag&70)?h(Oe.el):He;b(Oe,Je,lt,null,be,Ie,De,Me,!0)}},L=(fe,ye,He,be,Ie,De,Me)=>{if(He!==be){if(He!==Zo)for(const qe in He)!sk(qe)&&!(qe in be)&&i(fe,qe,He[qe],null,Me,ye.children,Ie,De,Be);for(const qe in be){if(sk(qe))continue;const Oe=be[qe],Je=He[qe];Oe!==Je&&qe!=="value"&&i(fe,qe,Je,Oe,Me,ye.children,Ie,De,Be)}"value"in be&&i(fe,"value",He.value,be.value)}},V=(fe,ye,He,be,Ie,De,Me,qe,Oe)=>{const Je=ye.el=fe?fe.el:s(""),lt=ye.anchor=fe?fe.anchor:s("");let{patchFlag:Ke,dynamicChildren:et,slotScopeIds:bt}=ye;bt&&(qe=qe?qe.concat(bt):bt),fe==null?(r(Je,He,be),r(lt,He,be),I(ye.children,He,lt,Ie,De,Me,qe,Oe)):Ke>0&&Ke&64&&et&&fe.dynamicChildren?(j(fe.dynamicChildren,et,He,Ie,De,Me,qe),(ye.key!=null||Ie&&ye===Ie.subTree)&&mI(fe,ye,!0)):J(fe,ye,He,lt,Ie,De,Me,qe,Oe)},X=(fe,ye,He,be,Ie,De,Me,qe,Oe)=>{ye.slotScopeIds=qe,fe==null?ye.shapeFlag&512?Ie.ctx.activate(ye,He,be,Me,Oe):oe(ye,He,be,Ie,De,Me,Oe):K(fe,ye,Oe)},oe=(fe,ye,He,be,Ie,De,Me)=>{const qe=fe.component=xae(fe,be,Ie);if(v2(fe)&&(qe.ctx.renderer=ve),kae(qe),qe.asyncDep){if(Ie&&Ie.registerDep(qe,Z),!fe.el){const Oe=qe.subTree=ne(Cs);C(null,Oe,ye,He)}return}Z(qe,fe,ye,He,Ie,De,Me)},K=(fe,ye,He)=>{const be=ye.component=fe.component;if(Fie(fe,ye,He))if(be.asyncDep&&!be.asyncResolved){re(be,ye,He);return}else be.next=ye,Rie(be.update),be.update();else ye.el=fe.el,be.vnode=ye},Z=(fe,ye,He,be,Ie,De,Me)=>{const qe=()=>{if(fe.isMounted){let{next:lt,bu:Ke,u:et,parent:bt,vnode:Ot}=fe,Qt=lt,kt;$g(fe,!1),lt?(lt.el=Ot.el,re(fe,lt,Me)):lt=Ot,Ke&&lk(Ke),(kt=lt.props&<.props.onVnodeBeforeUpdate)&&Jc(kt,bt,lt,Ot),$g(fe,!0);const an=z$(fe),Ce=fe.subTree;fe.subTree=an,b(Ce,an,h(Ce.el),Ae(Ce),fe,Ie,De),lt.el=an.el,Qt===null&&zie(fe,an.el),et&&Hs(et,Ie),(kt=lt.props&<.props.onVnodeUpdated)&&Hs(()=>Jc(kt,bt,lt,Ot),Ie)}else{let lt;const{el:Ke,props:et}=ye,{bm:bt,m:Ot,parent:Qt}=fe,kt=eO(ye);if($g(fe,!1),bt&&lk(bt),!kt&&(lt=et&&et.onVnodeBeforeMount)&&Jc(lt,Qt,ye),$g(fe,!0),Ke&&Se){const an=()=>{fe.subTree=z$(fe),Se(Ke,fe.subTree,fe,Ie,null)};kt?ye.type.__asyncLoader().then(()=>!fe.isUnmounted&&an()):an()}else{const an=fe.subTree=z$(fe);b(null,an,He,be,fe,Ie,De),ye.el=an.el}if(Ot&&Hs(Ot,Ie),!kt&&(lt=et&&et.onVnodeMounted)){const an=ye;Hs(()=>Jc(lt,Qt,an),Ie)}(ye.shapeFlag&256||Qt&&eO(Qt.vnode)&&Qt.vnode.shapeFlag&256)&&fe.a&&Hs(fe.a,Ie),fe.isMounted=!0,ye=He=be=null}},Oe=fe.effect=new JN(qe,()=>lI(Je),fe.scope),Je=fe.update=()=>Oe.run();Je.id=fe.uid,$g(fe,!0),Je()},re=(fe,ye,He)=>{ye.component=fe;const be=fe.vnode.props;fe.vnode=ye,fe.next=null,sae(fe,ye.props,be,He),cae(fe,ye.children,He),d0(),LL(),h0()},J=(fe,ye,He,be,Ie,De,Me,qe,Oe=!1)=>{const Je=fe&&fe.children,lt=fe?fe.shapeFlag:0,Ke=ye.children,{patchFlag:et,shapeFlag:bt}=ye;if(et>0){if(et&128){q(Je,Ke,He,be,Ie,De,Me,qe,Oe);return}else if(et&256){z(Je,Ke,He,be,Ie,De,Me,qe,Oe);return}}bt&8?(lt&16&&Be(Je,Ie,De),Ke!==Je&&f(He,Ke)):lt&16?bt&16?q(Je,Ke,He,be,Ie,De,Me,qe,Oe):Be(Je,Ie,De,!0):(lt&8&&f(He,""),bt&16&&I(Ke,He,be,Ie,De,Me,qe,Oe))},z=(fe,ye,He,be,Ie,De,Me,qe,Oe)=>{fe=fe||Oy,ye=ye||Oy;const Je=fe.length,lt=ye.length,Ke=Math.min(Je,lt);let et;for(et=0;et<Ke;et++){const bt=ye[et]=Oe?Nh(ye[et]):of(ye[et]);b(fe[et],bt,He,null,Ie,De,Me,qe,Oe)}Je>lt?Be(fe,Ie,De,!0,!1,Ke):I(ye,He,be,Ie,De,Me,qe,Oe,Ke)},q=(fe,ye,He,be,Ie,De,Me,qe,Oe)=>{let Je=0;const lt=ye.length;let Ke=fe.length-1,et=lt-1;for(;Je<=Ke&&Je<=et;){const bt=fe[Je],Ot=ye[Je]=Oe?Nh(ye[Je]):of(ye[Je]);if(Lg(bt,Ot))b(bt,Ot,He,null,Ie,De,Me,qe,Oe);else break;Je++}for(;Je<=Ke&&Je<=et;){const bt=fe[Ke],Ot=ye[et]=Oe?Nh(ye[et]):of(ye[et]);if(Lg(bt,Ot))b(bt,Ot,He,null,Ie,De,Me,qe,Oe);else break;Ke--,et--}if(Je>Ke){if(Je<=et){const bt=et+1,Ot=bt<lt?ye[bt].el:be;for(;Je<=et;)b(null,ye[Je]=Oe?Nh(ye[Je]):of(ye[Je]),He,Ot,Ie,De,Me,qe,Oe),Je++}}else if(Je>et)for(;Je<=Ke;)he(fe[Je],Ie,De,!0),Je++;else{const bt=Je,Ot=Je,Qt=new Map;for(Je=Ot;Je<=et;Je++){const Ze=ye[Je]=Oe?Nh(ye[Je]):of(ye[Je]);Ze.key!=null&&Qt.set(Ze.key,Je)}let kt,an=0;const Ce=et-Ot+1;let Ye=!1,me=0;const Ve=new Array(Ce);for(Je=0;Je<Ce;Je++)Ve[Je]=0;for(Je=bt;Je<=Ke;Je++){const Ze=fe[Je];if(an>=Ce){he(Ze,Ie,De,!0);continue}let rt;if(Ze.key!=null)rt=Qt.get(Ze.key);else for(kt=Ot;kt<=et;kt++)if(Ve[kt-Ot]===0&&Lg(Ze,ye[kt])){rt=kt;break}rt===void 0?he(Ze,Ie,De,!0):(Ve[rt-Ot]=Je+1,rt>=me?me=rt:Ye=!0,b(Ze,ye[rt],He,null,Ie,De,Me,qe,Oe),an++)}const ke=Ye?gae(Ve):Oy;for(kt=ke.length-1,Je=Ce-1;Je>=0;Je--){const Ze=Ot+Je,rt=ye[Ze],zt=Ze+1<lt?ye[Ze+1].el:be;Ve[Je]===0?b(null,rt,He,zt,Ie,De,Me,qe,Oe):Ye&&(kt<0||Je!==ke[kt]?ue(rt,He,zt,2):kt--)}}},ue=(fe,ye,He,be,Ie=null)=>{const{el:De,type:Me,transition:qe,children:Oe,shapeFlag:Je}=fe;if(Je&6){ue(fe.component.subTree,ye,He,be);return}if(Je&128){fe.suspense.move(ye,He,be);return}if(Je&64){Me.move(fe,ye,He,ve);return}if(Me===Pt){r(De,ye,He);for(let Ke=0;Ke<Oe.length;Ke++)ue(Oe[Ke],ye,He,be);r(fe.anchor,ye,He);return}if(Me===Y$){$(fe,ye,He);return}if(be!==2&&Je&1&&qe)if(be===0)qe.beforeEnter(De),r(De,ye,He),Hs(()=>qe.enter(De),Ie);else{const{leave:Ke,delayLeave:et,afterLeave:bt}=qe,Ot=()=>r(De,ye,He),Qt=()=>{Ke(De,()=>{Ot(),bt&&bt()})};et?et(De,Ot,Qt):Qt()}else r(De,ye,He)},he=(fe,ye,He,be=!1,Ie=!1)=>{const{type:De,props:Me,ref:qe,children:Oe,dynamicChildren:Je,shapeFlag:lt,patchFlag:Ke,dirs:et}=fe;if(qe!=null&&yM(qe,null,He,fe,!0),lt&256){ye.ctx.deactivate(fe);return}const bt=lt&1&&et,Ot=!eO(fe);let Qt;if(Ot&&(Qt=Me&&Me.onVnodeBeforeUnmount)&&Jc(Qt,ye,fe),lt&6)Ee(fe.component,He,be);else{if(lt&128){fe.suspense.unmount(He,be);return}bt&&Pg(fe,null,ye,"beforeUnmount"),lt&64?fe.type.remove(fe,ye,He,Ie,ve,be):Je&&(De!==Pt||Ke>0&&Ke&64)?Be(Je,ye,He,!1,!0):(De===Pt&&Ke&384||!Ie&<&16)&&Be(Oe,ye,He),be&&le(fe)}(Ot&&(Qt=Me&&Me.onVnodeUnmounted)||bt)&&Hs(()=>{Qt&&Jc(Qt,ye,fe),bt&&Pg(fe,null,ye,"unmounted")},He)},le=fe=>{const{type:ye,el:He,anchor:be,transition:Ie}=fe;if(ye===Pt){ze(He,be);return}if(ye===Y$){T(fe);return}const De=()=>{o(He),Ie&&!Ie.persisted&&Ie.afterLeave&&Ie.afterLeave()};if(fe.shapeFlag&1&&Ie&&!Ie.persisted){const{leave:Me,delayLeave:qe}=Ie,Oe=()=>Me(He,De);qe?qe(fe.el,De,Oe):Oe()}else De()},ze=(fe,ye)=>{let He;for(;fe!==ye;)He=m(fe),o(fe),fe=He;o(ye)},Ee=(fe,ye,He)=>{const{bum:be,scope:Ie,update:De,subTree:Me,um:qe}=fe;be&&lk(be),Ie.stop(),De&&(De.active=!1,he(Me,fe,ye,He)),qe&&Hs(qe,ye),Hs(()=>{fe.isUnmounted=!0},ye),ye&&ye.pendingBranch&&!ye.isUnmounted&&fe.asyncDep&&!fe.asyncResolved&&fe.suspenseId===ye.pendingId&&(ye.deps--,ye.deps===0&&ye.resolve())},Be=(fe,ye,He,be=!1,Ie=!1,De=0)=>{for(let Me=De;Me<fe.length;Me++)he(fe[Me],ye,He,be,Ie)},Ae=fe=>fe.shapeFlag&6?Ae(fe.component.subTree):fe.shapeFlag&128?fe.suspense.next():m(fe.anchor||fe.el),_e=(fe,ye,He)=>{fe==null?ye._vnode&&he(ye._vnode,null,null,!0):b(ye._vnode||null,fe,ye,null,null,null,He),LL(),fQ(),ye._vnode=fe},ve={p:b,um:he,m:ue,r:le,mt:oe,mc:I,pc:J,pbc:j,n:Ae,o:e};let Ne,Se;return t&&([Ne,Se]=t(ve)),{render:_e,hydrate:Ne,createApp:dae(_e,Ne)}}function $g({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function mI(e,t,n=!1){const r=e.children,o=t.children;if(Et(r)&&Et(o))for(let i=0;i<r.length;i++){const a=r[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=Nh(o[i]),s.el=a.el),n||mI(a,s)),s.type===p0&&(s.el=a.el)}}function gae(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<u?i=s+1:a=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const mae=e=>e.__isTeleport,nO=e=>e&&(e.disabled||e.disabled===""),ZL=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,bM=(e,t)=>{const n=e&&e.to;return Gt(n)?t?t(n):null:n},vae={__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,u){const{mc:f,pc:h,pbc:m,o:{insert:y,querySelector:O,createText:b,createComment:k}}=u,C=nO(t.props);let{shapeFlag:P,children:$,dynamicChildren:T}=t;if(e==null){const A=t.el=b(""),R=t.anchor=b("");y(A,n,r),y(R,n,r);const B=t.target=bM(t.props,O),I=t.targetAnchor=b("");B&&(y(I,B),a=a||ZL(B));const N=(j,L)=>{P&16&&f($,j,L,o,i,a,s,l)};C?N(n,R):B&&N(B,I)}else{t.el=e.el;const A=t.anchor=e.anchor,R=t.target=e.target,B=t.targetAnchor=e.targetAnchor,I=nO(e.props),N=I?n:R,j=I?A:B;if(a=a||ZL(R),T?(m(e.dynamicChildren,T,N,o,i,a,s),mI(e,t,!0)):l||h(e,t,N,j,o,i,a,s,!1),C)I||yx(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=bM(t.props,O);L&&yx(t,L,null,u,0)}else I&&yx(t,R,B,u,1)}$Q(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:f,target:h,props:m}=e;if(h&&i(f),(a||!nO(m))&&(i(u),s&16))for(let y=0;y<l.length;y++){const O=l[y];o(O,t,n,!0,!!O.dynamicChildren)}},move:yx,hydrate:yae};function yx(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:f}=e,h=i===2;if(h&&r(a,t,n),(!h||nO(f))&&l&16)for(let m=0;m<u.length;m++)o(u[m],t,n,2);h&&r(s,t,n)}function yae(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l}},u){const f=t.target=bM(t.props,l);if(f){const h=f._lpa||f.firstChild;if(t.shapeFlag&16)if(nO(t.props))t.anchor=u(a(e),t,s(e),n,r,o,i),t.targetAnchor=h;else{t.anchor=a(e);let m=h;for(;m;)if(m=a(m),m&&m.nodeType===8&&m.data==="teleport anchor"){t.targetAnchor=m,f._lpa=t.targetAnchor&&a(t.targetAnchor);break}u(h,t,f,n,r,o,i)}$Q(t)}return t.anchor&&a(t.anchor)}const bae=vae;function $Q(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Pt=Symbol(void 0),p0=Symbol(void 0),Cs=Symbol(void 0),Y$=Symbol(void 0),rO=[];let dc=null;function U(e=!1){rO.push(dc=e?null:[])}function _ae(){rO.pop(),dc=rO[rO.length-1]||null}let RO=1;function XL(e){RO+=e}function AQ(e){return e.dynamicChildren=RO>0?dc||Oy:null,_ae(),RO>0&&dc&&dc.push(e),e}function ce(e,t,n,r,o,i){return AQ(ge(e,t,n,r,o,i,!0))}function Qe(e,t,n,r,o){return AQ(ne(e,t,n,r,o,!0))}function wo(e){return e?e.__v_isVNode===!0:!1}function Lg(e,t){return e.type===t.type&&e.key===t.key}const O2="__vInternal",MQ=({key:e})=>e!=null?e:null,uk=({ref:e,ref_key:t,ref_for:n})=>e!=null?Gt(e)||no(e)||rn(e)?{i:La,r:e,k:t,f:!!n}:e:null;function ge(e,t=null,n=null,r=0,o=null,i=e===Pt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&MQ(t),ref:t&&uk(t),scopeId:m2,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:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:La};return s?(vI(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Gt(n)?8:16),RO>0&&!a&&dc&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&dc.push(l),l}const ne=Oae;function Oae(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===OQ)&&(e=Cs),wo(e)){const s=_d(e,t,!0);return n&&vI(s,n),RO>0&&!i&&dc&&(s.shapeFlag&6?dc[dc.indexOf(e)]=s:dc.push(s)),s.patchFlag|=-2,s}if(Pae(e)&&(e=e.__vccOpts),t){t=tp(t);let{class:s,style:l}=t;s&&!Gt(s)&&(t.class=G(s)),$n(l)&&(iQ(l)&&!Et(l)&&(l=pa({},l)),t.style=Ft(l))}const a=Gt(e)?1:Qie(e)?128:mae(e)?64:$n(e)?4:rn(e)?2:0;return ge(e,t,n,r,o,a,i,!0)}function tp(e){return e?iQ(e)||O2 in e?pa({},e):e:null}function _d(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,s=t?Dn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&MQ(s),ref:t&&t.ref?n&&o?Et(o)?o.concat(uk(t)):[o,uk(t)]:uk(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_d(e.ssContent),ssFallback:e.ssFallback&&_d(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function xt(e=" ",t=0){return ne(p0,null,e,t)}function Fe(e="",t=!1){return t?(U(),Qe(Cs,null,e)):ne(Cs,null,e)}function of(e){return e==null||typeof e=="boolean"?ne(Cs):Et(e)?ne(Pt,null,e.slice()):typeof e=="object"?Nh(e):ne(p0,null,String(e))}function Nh(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_d(e)}function vI(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Et(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),vI(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(O2 in t)?t._ctx=La:o===3&&La&&(La.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else rn(t)?(t={default:t,_ctx:La},n=32):(t=String(t),r&64?(n=16,t=[xt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Dn(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=G([t.class,r.class]));else if(o==="style")t.style=Ft([t.style,r.style]);else if(c2(o)){const i=t[o],a=r[o];a&&i!==a&&!(Et(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=r[o])}return t}function Jc(e,t,n,r=null){ku(e,t,7,[n,r])}const wae=PQ();let Sae=0;function xae(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||wae,i={uid:Sae++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Yz(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:kQ(r,o),emitsOptions:hQ(r,o),emit:null,emitted:null,propsDefaults:Zo,inheritAttrs:r.inheritAttrs,ctx:Zo,data:Zo,props:Zo,attrs:Zo,slots:Zo,refs:Zo,setupState:Zo,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Die.bind(null,i),e.ce&&e.ce(i),i}let Pi=null;const En=()=>Pi||La,zy=e=>{Pi=e,e.scope.on()},rm=()=>{Pi&&Pi.scope.off(),Pi=null};function RQ(e){return e.vnode.shapeFlag&4}let NO=!1;function kae(e,t=!1){NO=t;const{props:n,children:r}=e.vnode,o=RQ(e);aae(e,n,o,t),uae(e,r);const i=o?Cae(e,t):void 0;return NO=!1,i}function Cae(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=md(new Proxy(e.ctx,eae));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?IQ(e):null;zy(e),d0();const i=Hh(r,e,0,[e.props,o]);if(h0(),rm(),CO(i)){if(i.then(rm,rm),t)return i.then(a=>{qL(e,a,t)}).catch(a=>{p2(a,e,0)});e.asyncDep=i}else qL(e,i,t)}else NQ(e,t)}function qL(e,t,n){rn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$n(t)&&(e.setupState=sQ(t)),NQ(e,n)}let KL;function NQ(e,t,n){const r=e.type;if(!e.render){if(!t&&KL&&!r.render){const o=r.template||pI(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=pa(pa({isCustomElement:i,delimiters:s},a),l);r.render=KL(o,u)}}e.render=r.render||zr}zy(e),d0(),tae(e),h0(),rm()}function Eae(e){return new Proxy(e.attrs,{get(t,n){return il(e,"get","$attrs"),t[n]}})}function IQ(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Eae(e))},slots:e.slots,emit:e.emit,expose:t}}function w2(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sQ(md(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in tO)return tO[n](e)},has(t,n){return n in t||n in tO}}))}function Tae(e,t=!0){return rn(e)?e.displayName||e.name:e.name||t&&e.__name}function Pae(e){return rn(e)&&"__vccOpts"in e}const W=(e,t)=>Pie(e,t,NO);function Ui(){return DQ().slots}function Em(){return DQ().attrs}function DQ(){const e=En();return e.setupContext||(e.setupContext=IQ(e))}function Ht(e,t,n){const r=arguments.length;return r===2?$n(t)&&!Et(t)?wo(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&wo(n)&&(n=[n]),ne(e,t,n))}const $ae=Symbol(""),Aae=()=>$t($ae),Mae="3.2.47",Rae="http://www.w3.org/2000/svg",Bg=typeof document!="undefined"?document:null,GL=Bg&&Bg.createElement("template"),Nae={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 o=t?Bg.createElementNS(Rae,e):Bg.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Bg.createTextNode(e),createComment:e=>Bg.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bg.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{GL.innerHTML=r?`<svg>${e}</svg>`:e;const s=GL.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Iae(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 Dae(e,t,n){const r=e.style,o=Gt(n);if(n&&!o){if(t&&!Gt(t))for(const i in t)n[i]==null&&_M(r,i,"");for(const i in n)_M(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const JL=/\s*!important$/;function _M(e,t,n){if(Et(n))n.forEach(r=>_M(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=jae(e,t);JL.test(n)?e.setProperty(wp(r),n.replace(JL,""),"important"):e[r]=n}}const e5=["Webkit","Moz","ms"],U$={};function jae(e,t){const n=U$[t];if(n)return n;let r=$u(t);if(r!=="filter"&&r in e)return U$[t]=r;r=S1(r);for(let o=0;o<e5.length;o++){const i=e5[o]+r;if(i in e)return U$[t]=i}return t}const t5="http://www.w3.org/1999/xlink";function Lae(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(t5,t.slice(6,t.length)):e.setAttributeNS(t5,t,n);else{const i=Boe(t);n==null||i&&!Fz(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Bae(e,t,n,r,o,i,a){if(t==="innerHTML"||t==="textContent"){r&&a(r,o,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n==null?"":n;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Fz(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function jh(e,t,n,r){e.addEventListener(t,n,r)}function Vae(e,t,n,r){e.removeEventListener(t,n,r)}function Fae(e,t,n,r,o=null){const i=e._vei||(e._vei={}),a=i[t];if(r&&a)a.value=r;else{const[s,l]=zae(t);if(r){const u=i[t]=Yae(r,o);jh(e,s,u,l)}else a&&(Vae(e,s,a,l),i[t]=void 0)}}const n5=/(?:Once|Passive|Capture)$/;function zae(e){let t;if(n5.test(e)){t={};let r;for(;r=e.match(n5);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wp(e.slice(2)),t]}let H$=0;const Qae=Promise.resolve(),Wae=()=>H$||(Qae.then(()=>H$=0),H$=Date.now());function Yae(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ku(Uae(r,n.value),t,5,[r])};return n.value=e,n.attached=Wae(),n}function Uae(e,t){if(Et(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const r5=/^on[a-z]/,Hae=(e,t,n,r,o=!1,i,a,s,l)=>{t==="class"?Iae(e,r,o):t==="style"?Dae(e,n,r):c2(t)?XN(t)||Fae(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zae(e,t,r,o))?Bae(e,t,r,i,a,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Lae(e,t,r,o))};function Zae(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&r5.test(t)&&rn(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||r5.test(t)&&Gt(n)?!1:t in e}const Eh="transition",k_="animation",Mi=(e,{slots:t})=>Ht(mQ,LQ(e),t);Mi.displayName="Transition";const jQ={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},Xae=Mi.props=pa({},mQ.props,jQ),Ag=(e,t=[])=>{Et(e)?e.forEach(n=>n(...t)):e&&e(...t)},o5=e=>e?Et(e)?e.some(t=>t.length>1):e.length>1:!1;function LQ(e){const t={};for(const V in e)V in jQ||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:f=s,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,O=qae(o),b=O&&O[0],k=O&&O[1],{onBeforeEnter:C,onEnter:P,onEnterCancelled:$,onLeave:T,onLeaveCancelled:A,onBeforeAppear:R=C,onAppear:B=P,onAppearCancelled:I=$}=t,N=(V,X,oe)=>{$h(V,X?f:s),$h(V,X?u:a),oe&&oe()},j=(V,X)=>{V._isLeaving=!1,$h(V,h),$h(V,y),$h(V,m),X&&X()},L=V=>(X,oe)=>{const K=V?B:P,Z=()=>N(X,V,oe);Ag(K,[X,Z]),i5(()=>{$h(X,V?l:i),fd(X,V?f:s),o5(K)||a5(X,r,b,Z)})};return pa(t,{onBeforeEnter(V){Ag(C,[V]),fd(V,i),fd(V,a)},onBeforeAppear(V){Ag(R,[V]),fd(V,l),fd(V,u)},onEnter:L(!1),onAppear:L(!0),onLeave(V,X){V._isLeaving=!0;const oe=()=>j(V,X);fd(V,h),VQ(),fd(V,m),i5(()=>{!V._isLeaving||($h(V,h),fd(V,y),o5(T)||a5(V,r,k,oe))}),Ag(T,[V,oe])},onEnterCancelled(V){N(V,!1),Ag($,[V])},onAppearCancelled(V){N(V,!0),Ag(I,[V])},onLeaveCancelled(V){j(V),Ag(A,[V])}})}function qae(e){if(e==null)return null;if($n(e))return[Z$(e.enter),Z$(e.leave)];{const t=Z$(e);return[t,t]}}function Z$(e){return Uoe(e)}function fd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function $h(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 i5(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kae=0;function a5(e,t,n,r){const o=e._endId=++Kae,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=BQ(e,t);if(!a)return r();const u=a+"end";let f=0;const h=()=>{e.removeEventListener(u,m),i()},m=y=>{y.target===e&&++f>=l&&h()};setTimeout(()=>{f<l&&h()},s+1),e.addEventListener(u,m)}function BQ(e,t){const n=window.getComputedStyle(e),r=O=>(n[O]||"").split(", "),o=r(`${Eh}Delay`),i=r(`${Eh}Duration`),a=s5(o,i),s=r(`${k_}Delay`),l=r(`${k_}Duration`),u=s5(s,l);let f=null,h=0,m=0;t===Eh?a>0&&(f=Eh,h=a,m=i.length):t===k_?u>0&&(f=k_,h=u,m=l.length):(h=Math.max(a,u),f=h>0?a>u?Eh:k_:null,m=f?f===Eh?i.length:l.length:0);const y=f===Eh&&/\b(transform|all)(,|$)/.test(r(`${Eh}Property`).toString());return{type:f,timeout:h,propCount:m,hasTransform:y}}function s5(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>l5(n)+l5(e[r])))}function l5(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function VQ(){return document.body.offsetHeight}const FQ=new WeakMap,zQ=new WeakMap,QQ={name:"TransitionGroup",props:pa({},Xae,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=En(),r=gQ();let o,i;return wc(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!nse(o[0].el,n.vnode.el,a))return;o.forEach(Jae),o.forEach(ese);const s=o.filter(tse);VQ(),s.forEach(l=>{const u=l.el,f=u.style;fd(u,a),f.transform=f.webkitTransform=f.transitionDuration="";const h=u._moveCb=m=>{m&&m.target!==u||(!m||/transform$/.test(m.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,$h(u,a))};u.addEventListener("transitionend",h)})}),()=>{const a=dr(e),s=LQ(a);let l=a.tag||Pt;o=i,i=t.default?cI(t.default()):[];for(let u=0;u<i.length;u++){const f=i[u];f.key!=null&&MO(f,AO(f,s,r,n))}if(o)for(let u=0;u<o.length;u++){const f=o[u];MO(f,AO(f,s,r,n)),FQ.set(f,f.el.getBoundingClientRect())}return ne(l,null,i)}}},Gae=e=>delete e.mode;QQ.props;const WQ=QQ;function Jae(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ese(e){zQ.set(e,e.el.getBoundingClientRect())}function tse(e){const t=FQ.get(e),n=zQ.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function nse(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=BQ(r);return o.removeChild(r),i}const Qy=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Et(t)?n=>lk(t,n):t};function rse(e){e.target.composing=!0}function u5(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yI={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Qy(o);const i=r||o.props&&o.props.type==="number";jh(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=uM(s)),e._assign(s)}),n&&jh(e,"change",()=>{e.value=e.value.trim()}),t||(jh(e,"compositionstart",rse),jh(e,"compositionend",u5),jh(e,"change",u5))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Qy(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&uM(e.value)===t))return;const a=t==null?"":t;e.value!==a&&(e.value=a)}},Gk={deep:!0,created(e,t,n){e._assign=Qy(n),jh(e,"change",()=>{const r=e._modelValue,o=UQ(e),i=e.checked,a=e._assign;if(Et(r)){const s=zz(r,o),l=s!==-1;if(i&&!l)a(r.concat(o));else if(!i&&l){const u=[...r];u.splice(s,1),a(u)}}else if(f2(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(HQ(e,i))})},mounted:c5,beforeUpdate(e,t,n){e._assign=Qy(n),c5(e,t,n)}};function c5(e,{value:t,oldValue:n},r){e._modelValue=t,Et(t)?e.checked=zz(t,r.props.value)>-1:f2(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Vy(t,HQ(e,!0)))}const YQ={created(e,{value:t},n){e.checked=Vy(t,n.props.value),e._assign=Qy(n),jh(e,"change",()=>{e._assign(UQ(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Qy(r),t!==n&&(e.checked=Vy(t,r.props.value))}};function UQ(e){return"_value"in e?e._value:e.value}function HQ(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ose=["ctrl","shift","alt","meta"],ise={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)=>ose.some(n=>e[`${n}Key`]&&!t.includes(n))},nn=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const i=ise[t[o]];if(i&&i(n,t))return}return e(n,...r)},ase={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qr=(e,t)=>n=>{if(!("key"in n))return;const r=wp(n.key);if(t.some(o=>o===r||ase[o]===r))return e(n)},gr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):C_(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),C_(e,!0),r.enter(e)):r.leave(e,()=>{C_(e,!1)}):C_(e,t))},beforeUnmount(e,{value:t}){C_(e,t)}};function C_(e,t){e.style.display=t?e._vod:"none"}const sse=pa({patchProp:Hae},Nae);let f5;function ZQ(){return f5||(f5=hae(sse))}const np=(...e)=>{ZQ().render(...e)},S2=(...e)=>{const t=ZQ().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=lse(r);if(!o)return;const i=t._component;!rn(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function lse(e){return Gt(e)?document.querySelector(e):e}const use='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',cse=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,d5=e=>Array.from(e.querySelectorAll(use)).filter(t=>fse(t)&&cse(t)),fse=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}},ck=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},XQ=e=>!e.getAttribute("aria-owns"),qQ=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),i=Array.prototype.indexOf.call(o,e);return o[i+t]||null},fk=e=>{!e||(e.focus(),!XQ(e)&&e.click())},Fo=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const i=e==null?void 0:e(o);if(n===!1||!i)return t==null?void 0:t(o)},h5=e=>t=>t.pointerType==="mouse"?e(t):void 0;var dse=Object.defineProperty,hse=Object.defineProperties,pse=Object.getOwnPropertyDescriptors,p5=Object.getOwnPropertySymbols,gse=Object.prototype.hasOwnProperty,mse=Object.prototype.propertyIsEnumerable,g5=(e,t,n)=>t in e?dse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vse=(e,t)=>{for(var n in t||(t={}))gse.call(t,n)&&g5(e,n,t[n]);if(p5)for(var n of p5(t))mse.call(t,n)&&g5(e,n,t[n]);return e},yse=(e,t)=>hse(e,pse(t));function m5(e,t){var n;const r=to();return Ba(()=>{r.value=e()},yse(vse({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),x1(r)}var v5;const rr=typeof window!="undefined",bse=e=>typeof e!="undefined",y5=e=>typeof e=="function",_se=e=>typeof e=="string",X$=()=>{},b5=rr&&((v5=window==null?void 0:window.navigator)==null?void 0:v5.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function fm(e){return typeof e=="function"?e():v(e)}function KQ(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}function Ose(e,t={}){let n,r;return i=>{const a=fm(e),s=fm(t.maxWait);if(n&&clearTimeout(n),a<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},a)}}function wse(e,t=!0,n=!0){let r=0,o,i=!0;const a=()=>{o&&(clearTimeout(o),o=void 0)};return l=>{const u=fm(e),f=Date.now()-r;if(a(),u<=0)return r=Date.now(),l();f>u&&(n||!i)?(r=Date.now(),l()):t&&(o=setTimeout(()=>{r=Date.now(),i=!0,a(),l()},u)),!n&&!o&&(o=setTimeout(()=>i=!0,u)),i=!1}}function Sse(e){return e}function xse(e,t){let n,r,o;const i=ee(!0),a=()=>{i.value=!0,o()};at(e,a,{flush:"sync"});const s=y5(t)?t:t.get,l=y5(t)?void 0:t.set,u=Cie((f,h)=>(r=f,o=h,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(m){l==null||l(m)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function k1(e){return Uz()?(Hz(e),!0):!1}function kse(e,t=200,n={}){return KQ(Ose(t,n),e)}function Cse(e,t=200,n={}){if(t<=0)return e;const r=ee(e.value),o=kse(()=>{r.value=e.value},t,n);return at(e,()=>o()),r}function GQ(e,t=200,n=!1,r=!0){return KQ(wse(t,n,r),e)}function bI(e,t=!0){En()?vn(e):t?e():Wt(e)}function dm(e,t,n={}){const{immediate:r=!0}=n,o=ee(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function l(...u){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...u)},fm(t))}return r&&(o.value=!0,rr&&l()),k1(s),{isPending:o,start:l,stop:s}}function Ks(e){var t;const n=fm(e);return(t=n==null?void 0:n.$el)!=null?t:n}const xp=rr?window:void 0,Ese=rr?window.document:void 0;function Nr(...e){let t,n,r,o;if(_se(e[0])?([n,r,o]=e,t=xp):[t,n,r,o]=e,!t)return X$;let i=X$;const a=at(()=>Ks(t),l=>{i(),l&&(l.addEventListener(n,r,o),i=()=>{l.removeEventListener(n,r,o),i=X$})},{immediate:!0,flush:"post"}),s=()=>{a(),i()};return k1(s),s}function _I(e,t,n={}){const{window:r=xp,ignore:o,capture:i=!0,detectIframe:a=!1}=n;if(!r)return;const s=ee(!0);let l;const u=m=>{r.clearTimeout(l);const y=Ks(e),O=m.composedPath();!y||y===m.target||O.includes(y)||!s.value||o&&o.length>0&&o.some(b=>{const k=Ks(b);return k&&(m.target===k||O.includes(k))})||t(m)},f=[Nr(r,"click",u,{passive:!0,capture:i}),Nr(r,"pointerdown",m=>{const y=Ks(e);s.value=!!y&&!m.composedPath().includes(y)},{passive:!0}),Nr(r,"pointerup",m=>{if(m.button===0){const y=m.composedPath();m.composedPath=()=>y,l=r.setTimeout(()=>u(m),50)}},{passive:!0}),a&&Nr(r,"blur",m=>{var y;const O=Ks(e);((y=document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(O!=null&&O.contains(document.activeElement))&&t(m)})].filter(Boolean);return()=>f.forEach(m=>m())}function Tse(e={}){const{window:t=xp}=e,n=xse(()=>null,()=>t==null?void 0:t.document.activeElement);return t&&(Nr(t,"blur",n.trigger,!0),Nr(t,"focus",n.trigger,!0)),n}function JQ(e,t=!1){const n=ee(),r=()=>n.value=Boolean(e());return r(),bI(r,t),n}const OM=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},wM="__vueuse_ssr_handlers__";OM[wM]=OM[wM]||{};OM[wM];function Pse(e,t,{window:n=xp,initialValue:r=""}={}){const o=ee(r),i=W(()=>{var a;return Ks(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return at([i,()=>fm(e)],([a,s])=>{var l;if(a&&n){const u=(l=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:l.trim();o.value=u||r}},{immediate:!0}),at(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(fm(e),a)}),o}function $se({document:e=Ese}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return Nr(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var _5=Object.getOwnPropertySymbols,Ase=Object.prototype.hasOwnProperty,Mse=Object.prototype.propertyIsEnumerable,Rse=(e,t)=>{var n={};for(var r in e)Ase.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&_5)for(var r of _5(e))t.indexOf(r)<0&&Mse.call(e,r)&&(n[r]=e[r]);return n};function So(e,t,n={}){const r=n,{window:o=xp}=r,i=Rse(r,["window"]);let a;const s=JQ(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=at(()=>Ks(e),h=>{l(),s.value&&o&&h&&(a=new ResizeObserver(t),a.observe(h,i))},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return k1(f),{isSupported:s,stop:f}}function O5(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=ee(0),s=ee(0),l=ee(0),u=ee(0),f=ee(0),h=ee(0),m=ee(0),y=ee(0);function O(){const b=Ks(e);if(!b){n&&(a.value=0,s.value=0,l.value=0,u.value=0,f.value=0,h.value=0,m.value=0,y.value=0);return}const k=b.getBoundingClientRect();a.value=k.height,s.value=k.bottom,l.value=k.left,u.value=k.right,f.value=k.top,h.value=k.width,m.value=k.x,y.value=k.y}return So(e,O),at(()=>Ks(e),b=>!b&&O()),o&&Nr("scroll",O,{passive:!0}),r&&Nr("resize",O,{passive:!0}),bI(()=>{i&&O()}),{height:a,bottom:s,left:l,right:u,top:f,width:h,x:m,y,update:O}}var w5=Object.getOwnPropertySymbols,Nse=Object.prototype.hasOwnProperty,Ise=Object.prototype.propertyIsEnumerable,Dse=(e,t)=>{var n={};for(var r in e)Nse.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&w5)for(var r of w5(e))t.indexOf(r)<0&&Ise.call(e,r)&&(n[r]=e[r]);return n};function e7(e,t,n={}){const r=n,{window:o=xp}=r,i=Dse(r,["window"]);let a;const s=JQ(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=at(()=>Ks(e),h=>{l(),s.value&&o&&h&&(a=new MutationObserver(t),a.observe(h,i))},{immediate:!0}),f=()=>{l(),u()};return k1(f),{isSupported:s,stop:f}}var S5;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(S5||(S5={}));var jse=Object.defineProperty,x5=Object.getOwnPropertySymbols,Lse=Object.prototype.hasOwnProperty,Bse=Object.prototype.propertyIsEnumerable,k5=(e,t,n)=>t in e?jse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vse=(e,t)=>{for(var n in t||(t={}))Lse.call(t,n)&&k5(e,n,t[n]);if(x5)for(var n of x5(t))Bse.call(t,n)&&k5(e,n,t[n]);return e};const Fse={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]};Vse({linear:Sse},Fse);function t7(e,t,n,r={}){var o,i,a;const{passive:s=!1,eventName:l,deep:u=!1,defaultValue:f}=r,h=En(),m=n||(h==null?void 0:h.emit)||((o=h==null?void 0:h.$emit)==null?void 0:o.bind(h))||((a=(i=h==null?void 0:h.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let y=l;t||(t="modelValue"),y=l||y||`update:${t.toString()}`;const O=()=>bse(e[t])?e[t]:f;if(s){const b=ee(O());return at(()=>e[t],k=>b.value=k),at(b,k=>{(k!==e[t]||u)&&m(y,k)},{deep:u}),b}else return W({get(){return O()},set(b){m(y,b)}})}function zse({window:e=xp}={}){if(!e)return ee(!1);const t=ee(e.document.hasFocus());return Nr(e,"blur",()=>{t.value=!1}),Nr(e,"focus",()=>{t.value=!0}),t}function Qse(e={}){const{window:t=xp,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0}=e,i=ee(n),a=ee(r),s=()=>{t&&(i.value=t.innerWidth,a.value=t.innerHeight)};return s(),bI(s),Nr("resize",s,{passive:!0}),o&&Nr("orientationchange",s,{passive:!0}),{width:i,height:a}}const OI=()=>rr&&/firefox/i.test(window.navigator.userAgent),Wse=(e,t)=>{if(!rr||!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},C5=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},SM=(e,t)=>Math.abs(C5(e)-C5(t)),wI=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}};function Yse(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}var Use=typeof global=="object"&&global&&global.Object===Object&&global,n7=Use,Hse=typeof self=="object"&&self&&self.Object===Object&&self,Zse=n7||Hse||Function("return this")(),ma=Zse,Xse=ma.Symbol,us=Xse,r7=Object.prototype,qse=r7.hasOwnProperty,Kse=r7.toString,E_=us?us.toStringTag:void 0;function Gse(e){var t=qse.call(e,E_),n=e[E_];try{e[E_]=void 0;var r=!0}catch{}var o=Kse.call(e);return r&&(t?e[E_]=n:delete e[E_]),o}var Jse=Object.prototype,ele=Jse.toString;function tle(e){return ele.call(e)}var nle="[object Null]",rle="[object Undefined]",E5=us?us.toStringTag:void 0;function Is(e){return e==null?e===void 0?rle:nle:E5&&E5 in Object(e)?Gse(e):tle(e)}function Oi(e){return e!=null&&typeof e=="object"}var ole="[object Symbol]";function zl(e){return typeof e=="symbol"||Oi(e)&&Is(e)==ole}var ile=0/0;function T5(e){return typeof e=="number"?e:zl(e)?ile:+e}function ii(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var ale=Array.isArray,_r=ale,sle=1/0,P5=us?us.prototype:void 0,$5=P5?P5.toString:void 0;function Ql(e){if(typeof e=="string")return e;if(_r(e))return ii(e,Ql)+"";if(zl(e))return $5?$5.call(e):"";var t=e+"";return t=="0"&&1/e==-sle?"-0":t}function x2(e,t){return function(n,r){var o;if(n===void 0&&r===void 0)return t;if(n!==void 0&&(o=n),r!==void 0){if(o===void 0)return r;typeof n=="string"||typeof r=="string"?(n=Ql(n),r=Ql(r)):(n=T5(n),r=T5(r)),o=e(n,r)}return o}}var lle=x2(function(e,t){return e+t},0),ule=lle,cle=/\s/;function o7(e){for(var t=e.length;t--&&cle.test(e.charAt(t)););return t}var fle=/^\s+/;function i7(e){return e&&e.slice(0,o7(e)+1).replace(fle,"")}function ai(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var A5=0/0,dle=/^[-+]0x[0-9a-f]+$/i,hle=/^0b[01]+$/i,ple=/^0o[0-7]+$/i,gle=parseInt;function Cu(e){if(typeof e=="number")return e;if(zl(e))return A5;if(ai(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ai(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=i7(e);var n=hle.test(e);return n||ple.test(e)?gle(e.slice(2),n?2:8):dle.test(e)?A5:+e}var M5=1/0,mle=17976931348623157e292;function vd(e){if(!e)return e===0?e:0;if(e=Cu(e),e===M5||e===-M5){var t=e<0?-1:1;return t*mle}return e===e?e:0}function Pr(e){var t=vd(e),n=t%1;return t===t?n?t-n:t:0}var vle="Expected a function";function yle(e,t){if(typeof t!="function")throw new TypeError(vle);return e=Pr(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ds(e){return e}var ble="[object AsyncFunction]",_le="[object Function]",Ole="[object GeneratorFunction]",wle="[object Proxy]";function Pd(e){if(!ai(e))return!1;var t=Is(e);return t==_le||t==Ole||t==ble||t==wle}var Sle=ma["__core-js_shared__"],dk=Sle,R5=function(){var e=/[^.]+$/.exec(dk&&dk.keys&&dk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xle(e){return!!R5&&R5 in e}var kle=Function.prototype,Cle=kle.toString;function Tm(e){if(e!=null){try{return Cle.call(e)}catch{}try{return e+""}catch{}}return""}var Ele=/[\\^$.*+?()[\]{}|]/g,Tle=/^\[object .+?Constructor\]$/,Ple=Function.prototype,$le=Object.prototype,Ale=Ple.toString,Mle=$le.hasOwnProperty,Rle=RegExp("^"+Ale.call(Mle).replace(Ele,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a7(e){if(!ai(e)||xle(e))return!1;var t=Pd(e)?Rle:Tle;return t.test(Tm(e))}function Nle(e,t){return e==null?void 0:e[t]}function Pm(e,t){var n=Nle(e,t);return a7(n)?n:void 0}var Ile=Pm(ma,"WeakMap"),IO=Ile,Dle=IO&&new IO,Jk=Dle,jle=Jk?function(e,t){return Jk.set(e,t),e}:Ds,s7=jle,N5=Object.create,Lle=function(){function e(){}return function(t){if(!ai(t))return{};if(N5)return N5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),g0=Lle;function DO(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=g0(e.prototype),r=e.apply(n,t);return ai(r)?r:n}}var Ble=1;function Vle(e,t,n){var r=t&Ble,o=DO(e);function i(){var a=this&&this!==ma&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function Wl(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Fle=Math.max;function l7(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=Fle(i-a,0),f=Array(l+u),h=!r;++s<l;)f[s]=t[s];for(;++o<a;)(h||o<i)&&(f[n[o]]=e[o]);for(;u--;)f[s++]=e[o++];return f}var zle=Math.max;function u7(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,f=zle(i-s,0),h=Array(f+u),m=!r;++o<f;)h[o]=e[o];for(var y=o;++l<u;)h[y+l]=t[l];for(;++a<s;)(m||o<i)&&(h[y+n[a]]=e[o++]);return h}function Qle(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function k2(){}var Wle=4294967295;function Zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Wle,this.__views__=[]}Zr.prototype=g0(k2.prototype);Zr.prototype.constructor=Zr;function SI(){}var Yle=Jk?function(e){return Jk.get(e)}:SI,xI=Yle,Ule={},ky=Ule,Hle=Object.prototype,Zle=Hle.hasOwnProperty;function hk(e){for(var t=e.name+"",n=ky[t],r=Zle.call(ky,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function Au(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Au.prototype=g0(k2.prototype);Au.prototype.constructor=Au;function el(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function c7(e){if(e instanceof Zr)return e.clone();var t=new Au(e.__wrapped__,e.__chain__);return t.__actions__=el(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Xle=Object.prototype,qle=Xle.hasOwnProperty;function $e(e){if(Oi(e)&&!_r(e)&&!(e instanceof Zr)){if(e instanceof Au)return e;if(qle.call(e,"__wrapped__"))return c7(e)}return new Au(e)}$e.prototype=k2.prototype;$e.prototype.constructor=$e;function xM(e){var t=hk(e),n=$e[t];if(typeof n!="function"||!(t in Zr.prototype))return!1;if(e===n)return!0;var r=xI(n);return!!r&&e===r[0]}var Kle=800,Gle=16,Jle=Date.now;function f7(e){var t=0,n=0;return function(){var r=Jle(),o=Gle-(r-n);if(n=r,o>0){if(++t>=Kle)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var eue=f7(s7),d7=eue,tue=/\{\n\/\* \[wrapped with (.+)\] \*/,nue=/,? & /;function rue(e){var t=e.match(tue);return t?t[1].split(nue):[]}var oue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function iue(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oue,`{
- /* [wrapped with `+t+`] */
- `)}function kI(e){return function(){return e}}var aue=function(){try{var e=Pm(Object,"defineProperty");return e({},"",{}),e}catch{}}(),eC=aue,sue=eC?function(e,t){return eC(e,"toString",{configurable:!0,enumerable:!1,value:kI(t),writable:!0})}:Ds,lue=sue,uue=f7(lue),CI=uue;function Lu(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function C2(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function h7(e){return e!==e}function cue(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function m0(e,t,n){return t===t?cue(e,t,n):C2(e,h7,n)}function E2(e,t){var n=e==null?0:e.length;return!!n&&m0(e,t,0)>-1}var fue=1,due=2,hue=8,pue=16,gue=32,mue=64,vue=128,yue=256,bue=512,_ue=[["ary",vue],["bind",fue],["bindKey",due],["curry",hue],["curryRight",pue],["flip",bue],["partial",gue],["partialRight",mue],["rearg",yue]];function Oue(e,t){return Lu(_ue,function(n){var r="_."+n[0];t&n[1]&&!E2(e,r)&&e.push(r)}),e.sort()}function p7(e,t,n){var r=t+"";return CI(e,iue(r,Oue(rue(r),n)))}var wue=1,Sue=2,xue=4,kue=8,I5=32,D5=64;function g7(e,t,n,r,o,i,a,s,l,u){var f=t&kue,h=f?a:void 0,m=f?void 0:a,y=f?i:void 0,O=f?void 0:i;t|=f?I5:D5,t&=~(f?D5:I5),t&xue||(t&=~(wue|Sue));var b=[e,t,o,y,h,O,m,s,l,u],k=n.apply(void 0,b);return xM(e)&&d7(k,b),k.placeholder=r,p7(k,e,t)}function v0(e){var t=e;return t.placeholder}var Cue=9007199254740991,Eue=/^(?:0|[1-9]\d*)$/;function $d(e,t){var n=typeof e;return t=t==null?Cue:t,!!t&&(n=="number"||n!="symbol"&&Eue.test(e))&&e>-1&&e%1==0&&e<t}var Tue=Math.min;function Pue(e,t){for(var n=e.length,r=Tue(t.length,n),o=el(e);r--;){var i=t[r];e[r]=$d(i,n)?o[i]:void 0}return e}var j5="__lodash_placeholder__";function rp(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===j5)&&(e[n]=j5,i[o++]=n)}return i}var $ue=1,Aue=2,Mue=8,Rue=16,Nue=128,Iue=512;function T2(e,t,n,r,o,i,a,s,l,u){var f=t&Nue,h=t&$ue,m=t&Aue,y=t&(Mue|Rue),O=t&Iue,b=m?void 0:DO(e);function k(){for(var C=arguments.length,P=Array(C),$=C;$--;)P[$]=arguments[$];if(y)var T=v0(k),A=Qle(P,T);if(r&&(P=l7(P,r,o,y)),i&&(P=u7(P,i,a,y)),C-=A,y&&C<u){var R=rp(P,T);return g7(e,t,T2,k.placeholder,n,P,R,s,l,u-C)}var B=h?n:this,I=m?B[e]:e;return C=P.length,s?P=Pue(P,s):O&&C>1&&P.reverse(),f&&l<C&&(P.length=l),this&&this!==ma&&this instanceof k&&(I=b||DO(I)),I.apply(B,P)}return k}function Due(e,t,n){var r=DO(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=v0(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:rp(a,l);if(i-=u.length,i<n)return g7(e,t,T2,o.placeholder,void 0,a,u,void 0,void 0,n-i);var f=this&&this!==ma&&this instanceof o?r:e;return Wl(f,this,a)}return o}var jue=1;function Lue(e,t,n,r){var o=t&jue,i=DO(e);function a(){for(var s=-1,l=arguments.length,u=-1,f=r.length,h=Array(f+l),m=this&&this!==ma&&this instanceof a?i:e;++u<f;)h[u]=r[u];for(;l--;)h[u++]=arguments[++s];return Wl(m,o?n:this,h)}return a}var L5="__lodash_placeholder__",q$=1,Bue=2,Vue=4,B5=8,T_=128,V5=256,Fue=Math.min;function zue(e,t){var n=e[1],r=t[1],o=n|r,i=o<(q$|Bue|T_),a=r==T_&&n==B5||r==T_&&n==V5&&e[7].length<=t[8]||r==(T_|V5)&&t[7].length<=t[8]&&n==B5;if(!(i||a))return e;r&q$&&(e[2]=t[2],o|=n&q$?0:Vue);var s=t[3];if(s){var l=e[3];e[3]=l?l7(l,s,t[4]):s,e[4]=l?rp(e[3],L5):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?u7(l,s,t[6]):s,e[6]=l?rp(e[5],L5):t[6]),s=t[7],s&&(e[7]=s),r&T_&&(e[8]=e[8]==null?t[8]:Fue(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var Que="Expected a function",F5=1,Wue=2,K$=8,G$=16,J$=32,z5=64,Q5=Math.max;function Ad(e,t,n,r,o,i,a,s){var l=t&Wue;if(!l&&typeof e!="function")throw new TypeError(Que);var u=r?r.length:0;if(u||(t&=~(J$|z5),r=o=void 0),a=a===void 0?a:Q5(Pr(a),0),s=s===void 0?s:Pr(s),u-=o?o.length:0,t&z5){var f=r,h=o;r=o=void 0}var m=l?void 0:xI(e),y=[e,t,n,r,o,f,h,i,a,s];if(m&&zue(y,m),e=y[0],t=y[1],n=y[2],r=y[3],o=y[4],s=y[9]=y[9]===void 0?l?0:e.length:Q5(y[9]-u,0),!s&&t&(K$|G$)&&(t&=~(K$|G$)),!t||t==F5)var O=Vle(e,t,n);else t==K$||t==G$?O=Due(e,t,s):(t==J$||t==(F5|J$))&&!o.length?O=Lue(e,t,n,r):O=T2.apply(void 0,y);var b=m?s7:d7;return p7(b(O,y),e,t)}var Yue=128;function m7(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,Ad(e,Yue,void 0,void 0,void 0,void 0,t)}function Md(e,t,n){t=="__proto__"&&eC?eC(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Sc(e,t){return e===t||e!==e&&t!==t}var Uue=Object.prototype,Hue=Uue.hasOwnProperty;function C1(e,t,n){var r=e[t];(!(Hue.call(e,t)&&Sc(r,n))||n===void 0&&!(t in e))&&Md(e,t,n)}function kf(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?Md(n,s,l):C1(n,s,l)}return n}var W5=Math.max;function v7(e,t,n){return t=W5(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=W5(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Wl(e,this,s)}}function jr(e,t){return CI(v7(e,t,Ds),e+"")}var Zue=9007199254740991;function P2(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zue}function sl(e){return e!=null&&P2(e.length)&&!Pd(e)}function Ms(e,t,n){if(!ai(n))return!1;var r=typeof t;return(r=="number"?sl(n)&&$d(t,n.length):r=="string"&&t in n)?Sc(n[t],e):!1}function y0(e){return jr(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&Ms(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var Xue=Object.prototype;function E1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xue;return e===n}function EI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var que="[object Arguments]";function Y5(e){return Oi(e)&&Is(e)==que}var y7=Object.prototype,Kue=y7.hasOwnProperty,Gue=y7.propertyIsEnumerable,Jue=Y5(function(){return arguments}())?Y5:function(e){return Oi(e)&&Kue.call(e,"callee")&&!Gue.call(e,"callee")},hm=Jue;function TI(){return!1}var b7=typeof Dl=="object"&&Dl&&!Dl.nodeType&&Dl,U5=b7&&typeof jl=="object"&&jl&&!jl.nodeType&&jl,ece=U5&&U5.exports===b7,H5=ece?ma.Buffer:void 0,tce=H5?H5.isBuffer:void 0,nce=tce||TI,op=nce,rce="[object Arguments]",oce="[object Array]",ice="[object Boolean]",ace="[object Date]",sce="[object Error]",lce="[object Function]",uce="[object Map]",cce="[object Number]",fce="[object Object]",dce="[object RegExp]",hce="[object Set]",pce="[object String]",gce="[object WeakMap]",mce="[object ArrayBuffer]",vce="[object DataView]",yce="[object Float32Array]",bce="[object Float64Array]",_ce="[object Int8Array]",Oce="[object Int16Array]",wce="[object Int32Array]",Sce="[object Uint8Array]",xce="[object Uint8ClampedArray]",kce="[object Uint16Array]",Cce="[object Uint32Array]",Uo={};Uo[yce]=Uo[bce]=Uo[_ce]=Uo[Oce]=Uo[wce]=Uo[Sce]=Uo[xce]=Uo[kce]=Uo[Cce]=!0;Uo[rce]=Uo[oce]=Uo[mce]=Uo[ice]=Uo[vce]=Uo[ace]=Uo[sce]=Uo[lce]=Uo[uce]=Uo[cce]=Uo[fce]=Uo[dce]=Uo[hce]=Uo[pce]=Uo[gce]=!1;function Ece(e){return Oi(e)&&P2(e.length)&&!!Uo[Is(e)]}function Yl(e){return function(t){return e(t)}}var _7=typeof Dl=="object"&&Dl&&!Dl.nodeType&&Dl,oO=_7&&typeof jl=="object"&&jl&&!jl.nodeType&&jl,Tce=oO&&oO.exports===_7,eA=Tce&&n7.process,Pce=function(){try{var e=oO&&oO.require&&oO.require("util").types;return e||eA&&eA.binding&&eA.binding("util")}catch{}}(),Mu=Pce,Z5=Mu&&Mu.isTypedArray,$ce=Z5?Yl(Z5):Ece,b0=$ce,Ace=Object.prototype,Mce=Ace.hasOwnProperty;function O7(e,t){var n=_r(e),r=!n&&hm(e),o=!n&&!r&&op(e),i=!n&&!r&&!o&&b0(e),a=n||r||o||i,s=a?EI(e.length,String):[],l=s.length;for(var u in e)(t||Mce.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||$d(u,l)))&&s.push(u);return s}function w7(e,t){return function(n){return e(t(n))}}var Rce=w7(Object.keys,Object),Nce=Rce,Ice=Object.prototype,Dce=Ice.hasOwnProperty;function PI(e){if(!E1(e))return Nce(e);var t=[];for(var n in Object(e))Dce.call(e,n)&&n!="constructor"&&t.push(n);return t}function sa(e){return sl(e)?O7(e):PI(e)}var jce=Object.prototype,Lce=jce.hasOwnProperty,Bce=y0(function(e,t){if(E1(t)||sl(t)){kf(t,sa(t),e);return}for(var n in t)Lce.call(t,n)&&C1(e,n,t[n])}),Vce=Bce;function Fce(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zce=Object.prototype,Qce=zce.hasOwnProperty;function Wce(e){if(!ai(e))return Fce(e);var t=E1(e),n=[];for(var r in e)r=="constructor"&&(t||!Qce.call(e,r))||n.push(r);return n}function ll(e){return sl(e)?O7(e,!0):Wce(e)}var Yce=y0(function(e,t){kf(t,ll(t),e)}),X5=Yce,Uce=y0(function(e,t,n,r){kf(t,ll(t),e,r)}),tC=Uce,Hce=y0(function(e,t,n,r){kf(t,sa(t),e,r)}),Zce=Hce,Xce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qce=/^\w*$/;function $I(e,t){if(_r(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||zl(e)?!0:qce.test(e)||!Xce.test(e)||t!=null&&e in Object(t)}var Kce=Pm(Object,"create"),jO=Kce;function Gce(){this.__data__=jO?jO(null):{},this.size=0}function Jce(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var efe="__lodash_hash_undefined__",tfe=Object.prototype,nfe=tfe.hasOwnProperty;function rfe(e){var t=this.__data__;if(jO){var n=t[e];return n===efe?void 0:n}return nfe.call(t,e)?t[e]:void 0}var ofe=Object.prototype,ife=ofe.hasOwnProperty;function afe(e){var t=this.__data__;return jO?t[e]!==void 0:ife.call(t,e)}var sfe="__lodash_hash_undefined__";function lfe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jO&&t===void 0?sfe:t,this}function pm(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])}}pm.prototype.clear=Gce;pm.prototype.delete=Jce;pm.prototype.get=rfe;pm.prototype.has=afe;pm.prototype.set=lfe;function ufe(){this.__data__=[],this.size=0}function $2(e,t){for(var n=e.length;n--;)if(Sc(e[n][0],t))return n;return-1}var cfe=Array.prototype,ffe=cfe.splice;function dfe(e){var t=this.__data__,n=$2(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ffe.call(t,n,1),--this.size,!0}function hfe(e){var t=this.__data__,n=$2(t,e);return n<0?void 0:t[n][1]}function pfe(e){return $2(this.__data__,e)>-1}function gfe(e,t){var n=this.__data__,r=$2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Rd(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])}}Rd.prototype.clear=ufe;Rd.prototype.delete=dfe;Rd.prototype.get=hfe;Rd.prototype.has=pfe;Rd.prototype.set=gfe;var mfe=Pm(ma,"Map"),LO=mfe;function vfe(){this.size=0,this.__data__={hash:new pm,map:new(LO||Rd),string:new pm}}function yfe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function A2(e,t){var n=e.__data__;return yfe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function bfe(e){var t=A2(this,e).delete(e);return this.size-=t?1:0,t}function _fe(e){return A2(this,e).get(e)}function Ofe(e){return A2(this,e).has(e)}function wfe(e,t){var n=A2(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Nd(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])}}Nd.prototype.clear=vfe;Nd.prototype.delete=bfe;Nd.prototype.get=_fe;Nd.prototype.has=Ofe;Nd.prototype.set=wfe;var Sfe="Expected a function";function T1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Sfe);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(T1.Cache||Nd),n}T1.Cache=Nd;var xfe=500;function kfe(e){var t=T1(e,function(r){return n.size===xfe&&n.clear(),r}),n=t.cache;return t}var Cfe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Efe=/\\(\\)?/g,Tfe=kfe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Cfe,function(n,r,o,i){t.push(o?i.replace(Efe,"$1"):r||n)}),t}),S7=Tfe;function go(e){return e==null?"":Ql(e)}function kp(e,t){return _r(e)?e:$I(e,t)?[e]:S7(go(e))}var Pfe=1/0;function Cf(e){if(typeof e=="string"||zl(e))return e;var t=e+"";return t=="0"&&1/e==-Pfe?"-0":t}function $m(e,t){t=kp(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Cf(t[n++])];return n&&n==r?e:void 0}function No(e,t,n){var r=e==null?void 0:$m(e,t);return r===void 0?n:r}function AI(e,t){for(var n=-1,r=t.length,o=Array(r),i=e==null;++n<r;)o[n]=i?void 0:No(e,t[n]);return o}function Cp(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var q5=us?us.isConcatSpreadable:void 0;function $fe(e){return _r(e)||hm(e)||!!(q5&&e&&e[q5])}function za(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=$fe),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?za(s,t-1,n,r,o):Cp(o,s):r||(o[o.length]=s)}return o}function MI(e){var t=e==null?0:e.length;return t?za(e,1):[]}function Id(e){return CI(v7(e,void 0,MI),e+"")}var Afe=Id(AI),Mfe=Afe,Rfe=w7(Object.getPrototypeOf,Object),M2=Rfe,Nfe="[object Object]",Ife=Function.prototype,Dfe=Object.prototype,x7=Ife.toString,jfe=Dfe.hasOwnProperty,Lfe=x7.call(Object);function P1(e){if(!Oi(e)||Is(e)!=Nfe)return!1;var t=M2(e);if(t===null)return!0;var n=jfe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&x7.call(n)==Lfe}var Bfe="[object DOMException]",Vfe="[object Error]";function RI(e){if(!Oi(e))return!1;var t=Is(e);return t==Vfe||t==Bfe||typeof e.message=="string"&&typeof e.name=="string"&&!P1(e)}var Ffe=jr(function(e,t){try{return Wl(e,void 0,t)}catch(n){return RI(n)?n:new Error(n)}}),k7=Ffe,zfe="Expected a function";function C7(e,t){var n;if(typeof t!="function")throw new TypeError(zfe);return e=Pr(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Qfe=1,Wfe=32,NI=jr(function(e,t,n){var r=Qfe;if(n.length){var o=rp(n,v0(NI));r|=Wfe}return Ad(e,r,t,n,o)});NI.placeholder={};var E7=NI,Yfe=Id(function(e,t){return Lu(t,function(n){n=Cf(n),Md(e,n,E7(e[n],e))}),e}),Ufe=Yfe,Hfe=1,Zfe=2,Xfe=32,II=jr(function(e,t,n){var r=Hfe|Zfe;if(n.length){var o=rp(n,v0(II));r|=Xfe}return Ad(t,r,e,n,o)});II.placeholder={};var qfe=II;function Ru(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Ep(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Ru(e,t,n)}var Kfe="\\ud800-\\udfff",Gfe="\\u0300-\\u036f",Jfe="\\ufe20-\\ufe2f",ede="\\u20d0-\\u20ff",tde=Gfe+Jfe+ede,nde="\\ufe0e\\ufe0f",rde="\\u200d",ode=RegExp("["+rde+Kfe+tde+nde+"]");function _0(e){return ode.test(e)}function ide(e){return e.split("")}var T7="\\ud800-\\udfff",ade="\\u0300-\\u036f",sde="\\ufe20-\\ufe2f",lde="\\u20d0-\\u20ff",ude=ade+sde+lde,cde="\\ufe0e\\ufe0f",fde="["+T7+"]",kM="["+ude+"]",CM="\\ud83c[\\udffb-\\udfff]",dde="(?:"+kM+"|"+CM+")",P7="[^"+T7+"]",$7="(?:\\ud83c[\\udde6-\\uddff]){2}",A7="[\\ud800-\\udbff][\\udc00-\\udfff]",hde="\\u200d",M7=dde+"?",R7="["+cde+"]?",pde="(?:"+hde+"(?:"+[P7,$7,A7].join("|")+")"+R7+M7+")*",gde=R7+M7+pde,mde="(?:"+[P7+kM+"?",kM,$7,A7,fde].join("|")+")",vde=RegExp(CM+"(?="+CM+")|"+mde+gde,"g");function yde(e){return e.match(vde)||[]}function yc(e){return _0(e)?yde(e):ide(e)}function N7(e){return function(t){t=go(t);var n=_0(t)?yc(t):void 0,r=n?n[0]:t.charAt(0),o=n?Ep(n,1).join(""):t.slice(1);return r[e]()+o}}var bde=N7("toUpperCase"),DI=bde;function I7(e){return DI(go(e).toLowerCase())}function jI(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function LI(e){return function(t){return e==null?void 0:e[t]}}var _de={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Ode=LI(_de),wde=Ode,Sde=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xde="\\u0300-\\u036f",kde="\\ufe20-\\ufe2f",Cde="\\u20d0-\\u20ff",Ede=xde+kde+Cde,Tde="["+Ede+"]",Pde=RegExp(Tde,"g");function D7(e){return e=go(e),e&&e.replace(Sde,wde).replace(Pde,"")}var $de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ade(e){return e.match($de)||[]}var Mde=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Rde(e){return Mde.test(e)}var j7="\\ud800-\\udfff",Nde="\\u0300-\\u036f",Ide="\\ufe20-\\ufe2f",Dde="\\u20d0-\\u20ff",jde=Nde+Ide+Dde,L7="\\u2700-\\u27bf",B7="a-z\\xdf-\\xf6\\xf8-\\xff",Lde="\\xac\\xb1\\xd7\\xf7",Bde="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vde="\\u2000-\\u206f",Fde=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",V7="A-Z\\xc0-\\xd6\\xd8-\\xde",zde="\\ufe0e\\ufe0f",F7=Lde+Bde+Vde+Fde,z7="['\u2019]",K5="["+F7+"]",Qde="["+jde+"]",Q7="\\d+",Wde="["+L7+"]",W7="["+B7+"]",Y7="[^"+j7+F7+Q7+L7+B7+V7+"]",Yde="\\ud83c[\\udffb-\\udfff]",Ude="(?:"+Qde+"|"+Yde+")",Hde="[^"+j7+"]",U7="(?:\\ud83c[\\udde6-\\uddff]){2}",H7="[\\ud800-\\udbff][\\udc00-\\udfff]",iy="["+V7+"]",Zde="\\u200d",G5="(?:"+W7+"|"+Y7+")",Xde="(?:"+iy+"|"+Y7+")",J5="(?:"+z7+"(?:d|ll|m|re|s|t|ve))?",e6="(?:"+z7+"(?:D|LL|M|RE|S|T|VE))?",Z7=Ude+"?",X7="["+zde+"]?",qde="(?:"+Zde+"(?:"+[Hde,U7,H7].join("|")+")"+X7+Z7+")*",Kde="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gde="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jde=X7+Z7+qde,ehe="(?:"+[Wde,U7,H7].join("|")+")"+Jde,the=RegExp([iy+"?"+W7+"+"+J5+"(?="+[K5,iy,"$"].join("|")+")",Xde+"+"+e6+"(?="+[K5,iy+G5,"$"].join("|")+")",iy+"?"+G5+"+"+J5,iy+"+"+e6,Gde,Kde,Q7,ehe].join("|"),"g");function nhe(e){return e.match(the)||[]}function q7(e,t,n){return e=go(e),t=n?void 0:t,t===void 0?Rde(e)?nhe(e):Ade(e):e.match(t)||[]}var rhe="['\u2019]",ohe=RegExp(rhe,"g");function O0(e){return function(t){return jI(q7(D7(t).replace(ohe,"")),e,"")}}var ihe=O0(function(e,t,n){return t=t.toLowerCase(),e+(n?I7(t):t)}),ahe=ihe;function Da(){if(!arguments.length)return[];var e=arguments[0];return _r(e)?e:[e]}var she=ma.isFinite,lhe=Math.min;function BI(e){var t=Math[e];return function(n,r){if(n=Cu(n),r=r==null?0:lhe(Pr(r),292),r&&she(n)){var o=(go(n)+"e").split("e"),i=t(o[0]+"e"+(+o[1]+r));return o=(go(i)+"e").split("e"),+(o[0]+"e"+(+o[1]-r))}return t(n)}}var uhe=BI("ceil"),che=uhe;function K7(e){var t=$e(e);return t.__chain__=!0,t}var fhe=Math.ceil,dhe=Math.max;function hhe(e,t,n){(n?Ms(e,t,n):t===void 0)?t=1:t=dhe(Pr(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(fhe(r/t));o<r;)a[i++]=Ru(e,o,o+=t);return a}function Am(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function phe(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Cu(n),n=n===n?n:0),t!==void 0&&(t=Cu(t),t=t===t?t:0),Am(Cu(e),t,n)}function ghe(){this.__data__=new Rd,this.size=0}function mhe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function vhe(e){return this.__data__.get(e)}function yhe(e){return this.__data__.has(e)}var bhe=200;function _he(e,t){var n=this.__data__;if(n instanceof Rd){var r=n.__data__;if(!LO||r.length<bhe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nd(r)}return n.set(e,t),this.size=n.size,this}function gc(e){var t=this.__data__=new Rd(e);this.size=t.size}gc.prototype.clear=ghe;gc.prototype.delete=mhe;gc.prototype.get=vhe;gc.prototype.has=yhe;gc.prototype.set=_he;function G7(e,t){return e&&kf(t,sa(t),e)}function Ohe(e,t){return e&&kf(t,ll(t),e)}var J7=typeof Dl=="object"&&Dl&&!Dl.nodeType&&Dl,t6=J7&&typeof jl=="object"&&jl&&!jl.nodeType&&jl,whe=t6&&t6.exports===J7,n6=whe?ma.Buffer:void 0,r6=n6?n6.allocUnsafe:void 0;function eW(e,t){if(t)return e.slice();var n=e.length,r=r6?r6(n):new e.constructor(n);return e.copy(r),r}function Tp(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function VI(){return[]}var She=Object.prototype,xhe=She.propertyIsEnumerable,o6=Object.getOwnPropertySymbols,khe=o6?function(e){return e==null?[]:(e=Object(e),Tp(o6(e),function(t){return xhe.call(e,t)}))}:VI,FI=khe;function Che(e,t){return kf(e,FI(e),t)}var Ehe=Object.getOwnPropertySymbols,The=Ehe?function(e){for(var t=[];e;)Cp(t,FI(e)),e=M2(e);return t}:VI,tW=The;function Phe(e,t){return kf(e,tW(e),t)}function nW(e,t,n){var r=t(e);return _r(e)?r:Cp(r,n(e))}function EM(e){return nW(e,sa,FI)}function zI(e){return nW(e,ll,tW)}var $he=Pm(ma,"DataView"),TM=$he,Ahe=Pm(ma,"Promise"),PM=Ahe,Mhe=Pm(ma,"Set"),Cy=Mhe,i6="[object Map]",Rhe="[object Object]",a6="[object Promise]",s6="[object Set]",l6="[object WeakMap]",u6="[object DataView]",Nhe=Tm(TM),Ihe=Tm(LO),Dhe=Tm(PM),jhe=Tm(Cy),Lhe=Tm(IO),Dg=Is;(TM&&Dg(new TM(new ArrayBuffer(1)))!=u6||LO&&Dg(new LO)!=i6||PM&&Dg(PM.resolve())!=a6||Cy&&Dg(new Cy)!=s6||IO&&Dg(new IO)!=l6)&&(Dg=function(e){var t=Is(e),n=t==Rhe?e.constructor:void 0,r=n?Tm(n):"";if(r)switch(r){case Nhe:return u6;case Ihe:return i6;case Dhe:return a6;case jhe:return s6;case Lhe:return l6}return t});var vf=Dg,Bhe=Object.prototype,Vhe=Bhe.hasOwnProperty;function Fhe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Vhe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var zhe=ma.Uint8Array,nC=zhe;function QI(e){var t=new e.constructor(e.byteLength);return new nC(t).set(new nC(e)),t}function Qhe(e,t){var n=t?QI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Whe=/\w*$/;function Yhe(e){var t=new e.constructor(e.source,Whe.exec(e));return t.lastIndex=e.lastIndex,t}var c6=us?us.prototype:void 0,f6=c6?c6.valueOf:void 0;function Uhe(e){return f6?Object(f6.call(e)):{}}function rW(e,t){var n=t?QI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Hhe="[object Boolean]",Zhe="[object Date]",Xhe="[object Map]",qhe="[object Number]",Khe="[object RegExp]",Ghe="[object Set]",Jhe="[object String]",epe="[object Symbol]",tpe="[object ArrayBuffer]",npe="[object DataView]",rpe="[object Float32Array]",ope="[object Float64Array]",ipe="[object Int8Array]",ape="[object Int16Array]",spe="[object Int32Array]",lpe="[object Uint8Array]",upe="[object Uint8ClampedArray]",cpe="[object Uint16Array]",fpe="[object Uint32Array]";function dpe(e,t,n){var r=e.constructor;switch(t){case tpe:return QI(e);case Hhe:case Zhe:return new r(+e);case npe:return Qhe(e,n);case rpe:case ope:case ipe:case ape:case spe:case lpe:case upe:case cpe:case fpe:return rW(e,n);case Xhe:return new r;case qhe:case Jhe:return new r(e);case Khe:return Yhe(e);case Ghe:return new r;case epe:return Uhe(e)}}function oW(e){return typeof e.constructor=="function"&&!E1(e)?g0(M2(e)):{}}var hpe="[object Map]";function ppe(e){return Oi(e)&&vf(e)==hpe}var d6=Mu&&Mu.isMap,gpe=d6?Yl(d6):ppe,iW=gpe,mpe="[object Set]";function vpe(e){return Oi(e)&&vf(e)==mpe}var h6=Mu&&Mu.isSet,ype=h6?Yl(h6):vpe,aW=ype,bpe=1,_pe=2,Ope=4,sW="[object Arguments]",wpe="[object Array]",Spe="[object Boolean]",xpe="[object Date]",kpe="[object Error]",lW="[object Function]",Cpe="[object GeneratorFunction]",Epe="[object Map]",Tpe="[object Number]",uW="[object Object]",Ppe="[object RegExp]",$pe="[object Set]",Ape="[object String]",Mpe="[object Symbol]",Rpe="[object WeakMap]",Npe="[object ArrayBuffer]",Ipe="[object DataView]",Dpe="[object Float32Array]",jpe="[object Float64Array]",Lpe="[object Int8Array]",Bpe="[object Int16Array]",Vpe="[object Int32Array]",Fpe="[object Uint8Array]",zpe="[object Uint8ClampedArray]",Qpe="[object Uint16Array]",Wpe="[object Uint32Array]",Bo={};Bo[sW]=Bo[wpe]=Bo[Npe]=Bo[Ipe]=Bo[Spe]=Bo[xpe]=Bo[Dpe]=Bo[jpe]=Bo[Lpe]=Bo[Bpe]=Bo[Vpe]=Bo[Epe]=Bo[Tpe]=Bo[uW]=Bo[Ppe]=Bo[$pe]=Bo[Ape]=Bo[Mpe]=Bo[Fpe]=Bo[zpe]=Bo[Qpe]=Bo[Wpe]=!0;Bo[kpe]=Bo[lW]=Bo[Rpe]=!1;function Eu(e,t,n,r,o,i){var a,s=t&bpe,l=t&_pe,u=t&Ope;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!ai(e))return e;var f=_r(e);if(f){if(a=Fhe(e),!s)return el(e,a)}else{var h=vf(e),m=h==lW||h==Cpe;if(op(e))return eW(e,s);if(h==uW||h==sW||m&&!o){if(a=l||m?{}:oW(e),!s)return l?Phe(e,Ohe(a,e)):Che(e,G7(a,e))}else{if(!Bo[h])return o?e:{};a=dpe(e,h,s)}}i||(i=new gc);var y=i.get(e);if(y)return y;i.set(e,a),aW(e)?e.forEach(function(k){a.add(Eu(k,t,n,k,e,i))}):iW(e)&&e.forEach(function(k,C){a.set(C,Eu(k,t,n,C,e,i))});var O=u?l?zI:EM:l?ll:sa,b=f?void 0:O(e);return Lu(b||e,function(k,C){b&&(C=k,k=e[C]),C1(a,C,Eu(k,t,n,C,e,i))}),a}var Ype=4;function $M(e){return Eu(e,Ype)}var Upe=1,Hpe=4;function BO(e){return Eu(e,Upe|Hpe)}var Zpe=1,Xpe=4;function qpe(e,t){return t=typeof t=="function"?t:void 0,Eu(e,Zpe|Xpe,t)}var Kpe=4;function Gpe(e,t){return t=typeof t=="function"?t:void 0,Eu(e,Kpe,t)}function Jpe(){return new Au(this.value(),this.__chain__)}function ege(e){for(var t=-1,n=e==null?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function tge(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Cp(_r(n)?el(n):[n],za(t,1))}var nge="__lodash_hash_undefined__";function rge(e){return this.__data__.set(e,nge),this}function oge(e){return this.__data__.has(e)}function gm(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Nd;++t<n;)this.add(e[t])}gm.prototype.add=gm.prototype.push=rge;gm.prototype.has=oge;function WI(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 VO(e,t){return e.has(t)}var ige=1,age=2;function cW(e,t,n,r,o,i){var a=n&ige,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var h=-1,m=!0,y=n&age?new gm:void 0;for(i.set(e,t),i.set(t,e);++h<s;){var O=e[h],b=t[h];if(r)var k=a?r(b,O,h,t,e,i):r(O,b,h,e,t,i);if(k!==void 0){if(k)continue;m=!1;break}if(y){if(!WI(t,function(C,P){if(!VO(y,P)&&(O===C||o(O,C,n,r,i)))return y.push(P)})){m=!1;break}}else if(!(O===b||o(O,b,n,r,i))){m=!1;break}}return i.delete(e),i.delete(t),m}function YI(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function R2(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var sge=1,lge=2,uge="[object Boolean]",cge="[object Date]",fge="[object Error]",dge="[object Map]",hge="[object Number]",pge="[object RegExp]",gge="[object Set]",mge="[object String]",vge="[object Symbol]",yge="[object ArrayBuffer]",bge="[object DataView]",p6=us?us.prototype:void 0,tA=p6?p6.valueOf:void 0;function _ge(e,t,n,r,o,i,a){switch(n){case bge:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case yge:return!(e.byteLength!=t.byteLength||!i(new nC(e),new nC(t)));case uge:case cge:case hge:return Sc(+e,+t);case fge:return e.name==t.name&&e.message==t.message;case pge:case mge:return e==t+"";case dge:var s=YI;case gge:var l=r&sge;if(s||(s=R2),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=lge,a.set(e,t);var f=cW(s(e),s(t),r,o,i,a);return a.delete(e),f;case vge:if(tA)return tA.call(e)==tA.call(t)}return!1}var Oge=1,wge=Object.prototype,Sge=wge.hasOwnProperty;function xge(e,t,n,r,o,i){var a=n&Oge,s=EM(e),l=s.length,u=EM(t),f=u.length;if(l!=f&&!a)return!1;for(var h=l;h--;){var m=s[h];if(!(a?m in t:Sge.call(t,m)))return!1}var y=i.get(e),O=i.get(t);if(y&&O)return y==t&&O==e;var b=!0;i.set(e,t),i.set(t,e);for(var k=a;++h<l;){m=s[h];var C=e[m],P=t[m];if(r)var $=a?r(P,C,m,t,e,i):r(C,P,m,e,t,i);if(!($===void 0?C===P||o(C,P,n,r,i):$)){b=!1;break}k||(k=m=="constructor")}if(b&&!k){var T=e.constructor,A=t.constructor;T!=A&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof A=="function"&&A instanceof A)&&(b=!1)}return i.delete(e),i.delete(t),b}var kge=1,g6="[object Arguments]",m6="[object Array]",bx="[object Object]",Cge=Object.prototype,v6=Cge.hasOwnProperty;function Ege(e,t,n,r,o,i){var a=_r(e),s=_r(t),l=a?m6:vf(e),u=s?m6:vf(t);l=l==g6?bx:l,u=u==g6?bx:u;var f=l==bx,h=u==bx,m=l==u;if(m&&op(e)){if(!op(t))return!1;a=!0,f=!1}if(m&&!f)return i||(i=new gc),a||b0(e)?cW(e,t,n,r,o,i):_ge(e,t,l,n,r,o,i);if(!(n&kge)){var y=f&&v6.call(e,"__wrapped__"),O=h&&v6.call(t,"__wrapped__");if(y||O){var b=y?e.value():e,k=O?t.value():t;return i||(i=new gc),o(b,k,n,r,i)}}return m?(i||(i=new gc),xge(e,t,n,r,o,i)):!1}function $1(e,t,n,r,o){return e===t?!0:e==null||t==null||!Oi(e)&&!Oi(t)?e!==e&&t!==t:Ege(e,t,n,r,$1,o)}var Tge=1,Pge=2;function UI(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],u=e[l],f=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var h=new gc;if(r)var m=r(u,f,l,e,t,h);if(!(m===void 0?$1(f,u,Tge|Pge,r,h):m))return!1}}return!0}function fW(e){return e===e&&!ai(e)}function HI(e){for(var t=sa(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,fW(o)]}return t}function dW(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function hW(e){var t=HI(e);return t.length==1&&t[0][2]?dW(t[0][0],t[0][1]):function(n){return n===e||UI(n,e,t)}}function $ge(e,t){return e!=null&&t in Object(e)}function pW(e,t,n){t=kp(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Cf(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&P2(o)&&$d(a,o)&&(_r(e)||hm(e)))}function ZI(e,t){return e!=null&&pW(e,t,$ge)}var Age=1,Mge=2;function gW(e,t){return $I(e)&&fW(t)?dW(Cf(e),t):function(n){var r=No(n,e);return r===void 0&&r===t?ZI(n,e):$1(t,r,Age|Mge)}}function XI(e){return function(t){return t==null?void 0:t[e]}}function Rge(e){return function(t){return $m(t,e)}}function mW(e){return $I(e)?XI(Cf(e)):Rge(e)}function vr(e){return typeof e=="function"?e:e==null?Ds:typeof e=="object"?_r(e)?gW(e[0],e[1]):hW(e):mW(e)}var Nge="Expected a function";function Ige(e){var t=e==null?0:e.length,n=vr;return e=t?ii(e,function(r){if(typeof r[1]!="function")throw new TypeError(Nge);return[n(r[0]),r[1]]}):[],jr(function(r){for(var o=-1;++o<t;){var i=e[o];if(Wl(i[0],this,r))return Wl(i[1],this,r)}})}function vW(e,t,n){var r=n.length;if(e==null)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===void 0&&!(o in e)||!i(a))return!1}return!0}function Dge(e){var t=sa(e);return function(n){return vW(n,e,t)}}var jge=1;function Lge(e){return Dge(Eu(e,jge))}function Bge(e,t){return t==null||vW(e,t,sa(t))}function Vge(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function yW(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var Fge=yW(),qI=Fge;function Ef(e,t){return e&&qI(e,t,sa)}function bW(e,t){return function(n,r){if(n==null)return n;if(!sl(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var zge=bW(Ef),Pp=zge;function Qge(e,t,n,r){return Pp(e,function(o,i,a){t(r,o,n(o),a)}),r}function N2(e,t){return function(n,r){var o=_r(n)?Vge:Qge,i=t?t():{};return o(n,e,vr(r),i)}}var Wge=Object.prototype,Yge=Wge.hasOwnProperty,Uge=N2(function(e,t,n){Yge.call(e,n)?++e[n]:Md(e,n,1)}),Hge=Uge;function Zge(e,t){var n=g0(e);return t==null?n:G7(n,t)}var Xge=8;function KI(e,t,n){t=n?void 0:t;var r=Ad(e,Xge,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=KI.placeholder,r}KI.placeholder={};var qge=16;function GI(e,t,n){t=n?void 0:t;var r=Ad(e,qge,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=GI.placeholder,r}GI.placeholder={};var Kge=function(){return ma.Date.now()},pk=Kge,Gge="Expected a function",Jge=Math.max,eme=Math.min;function Rs(e,t,n){var r,o,i,a,s,l,u=0,f=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(Gge);t=Cu(t)||0,ai(n)&&(f=!!n.leading,h="maxWait"in n,i=h?Jge(Cu(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function y(R){var B=r,I=o;return r=o=void 0,u=R,a=e.apply(I,B),a}function O(R){return u=R,s=setTimeout(C,t),f?y(R):a}function b(R){var B=R-l,I=R-u,N=t-B;return h?eme(N,i-I):N}function k(R){var B=R-l,I=R-u;return l===void 0||B>=t||B<0||h&&I>=i}function C(){var R=pk();if(k(R))return P(R);s=setTimeout(C,b(R))}function P(R){return s=void 0,m&&r?y(R):(r=o=void 0,a)}function $(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0}function T(){return s===void 0?a:P(pk())}function A(){var R=pk(),B=k(R);if(r=arguments,o=this,l=R,B){if(s===void 0)return O(l);if(h)return clearTimeout(s),s=setTimeout(C,t),y(l)}return s===void 0&&(s=setTimeout(C,t)),a}return A.cancel=$,A.flush=T,A}function tme(e,t){return e==null||e!==e?t:e}var _W=Object.prototype,nme=_W.hasOwnProperty,rme=jr(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Ms(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ll(i),s=-1,l=a.length;++s<l;){var u=a[s],f=e[u];(f===void 0||Sc(f,_W[u])&&!nme.call(e,u))&&(e[u]=i[u])}return e}),ome=rme;function AM(e,t,n){(n!==void 0&&!Sc(e[t],n)||n===void 0&&!(t in e))&&Md(e,t,n)}function Ai(e){return Oi(e)&&sl(e)}function MM(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function OW(e){return kf(e,ll(e))}function ime(e,t,n,r,o,i,a){var s=MM(e,n),l=MM(t,n),u=a.get(l);if(u){AM(e,n,u);return}var f=i?i(s,l,n+"",e,t,a):void 0,h=f===void 0;if(h){var m=_r(l),y=!m&&op(l),O=!m&&!y&&b0(l);f=l,m||y||O?_r(s)?f=s:Ai(s)?f=el(s):y?(h=!1,f=eW(l,!0)):O?(h=!1,f=rW(l,!0)):f=[]:P1(l)||hm(l)?(f=s,hm(s)?f=OW(s):(!ai(s)||Pd(s))&&(f=oW(l))):h=!1}h&&(a.set(l,f),o(f,l,r,i,a),a.delete(l)),AM(e,n,f)}function I2(e,t,n,r,o){e!==t&&qI(t,function(i,a){if(o||(o=new gc),ai(i))ime(e,t,a,n,I2,r,o);else{var s=r?r(MM(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),AM(e,a,s)}},ll)}function wW(e,t,n,r,o,i){return ai(e)&&ai(t)&&(i.set(t,e),I2(e,t,void 0,wW,i),i.delete(t)),e}var ame=y0(function(e,t,n,r){I2(e,t,n,r)}),SW=ame,sme=jr(function(e){return e.push(void 0,wW),Wl(SW,void 0,e)}),lme=sme,ume="Expected a function";function xW(e,t,n){if(typeof e!="function")throw new TypeError(ume);return setTimeout(function(){e.apply(void 0,n)},t)}var cme=jr(function(e,t){return xW(e,1,t)}),fme=cme,dme=jr(function(e,t,n){return xW(e,Cu(t)||0,n)}),hme=dme;function JI(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var pme=200;function A1(e,t,n,r){var o=-1,i=E2,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=ii(t,Yl(n))),r?(i=JI,a=!1):t.length>=pme&&(i=VO,a=!1,t=new gm(t));e:for(;++o<s;){var f=e[o],h=n==null?f:n(f);if(f=r||f!==0?f:0,a&&h===h){for(var m=u;m--;)if(t[m]===h)continue e;l.push(f)}else i(t,h,r)||l.push(f)}return l}var gme=jr(function(e,t){return Ai(e)?A1(e,za(t,1,Ai,!0)):[]}),mme=gme;function Ul(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var vme=jr(function(e,t){var n=Ul(t);return Ai(n)&&(n=void 0),Ai(e)?A1(e,za(t,1,Ai,!0),vr(n)):[]}),yme=vme,bme=jr(function(e,t){var n=Ul(t);return Ai(n)&&(n=void 0),Ai(e)?A1(e,za(t,1,Ai,!0),void 0,n):[]}),_me=bme,Ome=x2(function(e,t){return e/t},1),wme=Ome;function Sme(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:Pr(t),Ru(e,t<0?0:t,r)):[]}function xme(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:Pr(t),t=r-t,Ru(e,0,t<0?0:t)):[]}function D2(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Ru(e,r?0:i,r?i+1:o):Ru(e,r?i+1:0,r?o:i)}function kme(e,t){return e&&e.length?D2(e,vr(t),!0,!0):[]}function Cme(e,t){return e&&e.length?D2(e,vr(t),!0):[]}function Tf(e){return typeof e=="function"?e:Ds}function y6(e,t){var n=_r(e)?Lu:Pp;return n(e,Tf(t))}function Eme(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}var Tme=yW(!0),kW=Tme;function eD(e,t){return e&&kW(e,t,sa)}var Pme=bW(eD,!0),CW=Pme;function b6(e,t){var n=_r(e)?Eme:CW;return n(e,Tf(t))}function $me(e,t,n){e=go(e),t=Ql(t);var r=e.length;n=n===void 0?r:Am(Pr(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Ame(e,t){return ii(t,function(n){return[n,e[n]]})}function Mme(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var Rme="[object Map]",Nme="[object Set]";function EW(e){return function(t){var n=vf(t);return n==Rme?YI(t):n==Nme?Mme(t):Ame(t,e(t))}}var Ime=EW(sa),_6=Ime,Dme=EW(ll),O6=Dme,jme={"&":"&","<":"<",">":">",'"':""","'":"'"},Lme=LI(jme),Bme=Lme,TW=/[&<>"']/g,Vme=RegExp(TW.source);function PW(e){return e=go(e),e&&Vme.test(e)?e.replace(TW,Bme):e}var $W=/[\\^$.*+?()[\]{}|]/g,Fme=RegExp($W.source);function zme(e){return e=go(e),e&&Fme.test(e)?e.replace($W,"\\$&"):e}function AW(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Qme(e,t){var n=!0;return Pp(e,function(r,o,i){return n=!!t(r,o,i),n}),n}function Wme(e,t,n){var r=_r(e)?AW:Qme;return n&&Ms(e,t,n)&&(t=void 0),r(e,vr(t))}var Yme=4294967295;function MW(e){return e?Am(Pr(e),0,Yme):0}function Ume(e,t,n,r){var o=e.length;for(n=Pr(n),n<0&&(n=-n>o?0:o+n),r=r===void 0||r>o?o:Pr(r),r<0&&(r+=o),r=n>r?0:MW(r);n<r;)e[n++]=t;return e}function Hme(e,t,n,r){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&Ms(e,t,n)&&(n=0,r=o),Ume(e,t,n,r)):[]}function RW(e,t){var n=[];return Pp(e,function(r,o,i){t(r,o,i)&&n.push(r)}),n}function Zme(e,t){var n=_r(e)?Tp:RW;return n(e,vr(t))}function NW(e){return function(t,n,r){var o=Object(t);if(!sl(t)){var i=vr(n);t=sa(t),n=function(s){return i(o[s],s,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var Xme=Math.max;function IW(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Pr(n);return o<0&&(o=Xme(r+o,0)),C2(e,vr(t),o)}var qme=NW(IW),Kme=qme;function DW(e,t,n){var r;return n(e,function(o,i,a){if(t(o,i,a))return r=i,!1}),r}function Gme(e,t){return DW(e,vr(t),Ef)}var Jme=Math.max,eve=Math.min;function j2(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return n!==void 0&&(o=Pr(n),o=n<0?Jme(r+o,0):eve(o,r-1)),C2(e,vr(t),o,!0)}var tve=NW(j2),nve=tve;function rve(e,t){return DW(e,vr(t),eD)}function w6(e){return e&&e.length?e[0]:void 0}function jW(e,t){var n=-1,r=sl(e)?Array(e.length):[];return Pp(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function L2(e,t){var n=_r(e)?ii:jW;return n(e,vr(t))}function LW(e,t){return za(L2(e,t),1)}var ove=1/0;function ive(e,t){return za(L2(e,t),ove)}function ave(e,t,n){return n=n===void 0?1:Pr(n),za(L2(e,t),n)}var sve=1/0;function BW(e){var t=e==null?0:e.length;return t?za(e,sve):[]}function lve(e,t){var n=e==null?0:e.length;return n?(t=t===void 0?1:Pr(t),za(e,t)):[]}var uve=512;function cve(e){return Ad(e,uve)}var fve=BI("floor"),dve=fve,hve="Expected a function",pve=8,gve=32,mve=128,vve=256;function VW(e){return Id(function(t){var n=t.length,r=n,o=Au.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if(typeof i!="function")throw new TypeError(hve);if(o&&!a&&hk(i)=="wrapper")var a=new Au([],!0)}for(r=a?r:n;++r<n;){i=t[r];var s=hk(i),l=s=="wrapper"?xI(i):void 0;l&&xM(l[0])&&l[1]==(mve|pve|gve|vve)&&!l[4].length&&l[9]==1?a=a[hk(l[0])].apply(a,l[3]):a=i.length==1&&xM(i)?a[s]():a.thru(i)}return function(){var u=arguments,f=u[0];if(a&&u.length==1&&_r(f))return a.plant(f).value();for(var h=0,m=n?t[h].apply(this,u):f;++h<n;)m=t[h].call(this,m);return m}})}var yve=VW(),bve=yve,_ve=VW(!0),Ove=_ve;function wve(e,t){return e==null?e:qI(e,Tf(t),ll)}function Sve(e,t){return e==null?e:kW(e,Tf(t),ll)}function xve(e,t){return e&&Ef(e,Tf(t))}function kve(e,t){return e&&eD(e,Tf(t))}function Wy(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function B2(e,t){return Tp(t,function(n){return Pd(e[n])})}function Cve(e){return e==null?[]:B2(e,sa(e))}function Eve(e){return e==null?[]:B2(e,ll(e))}var Tve=Object.prototype,Pve=Tve.hasOwnProperty,$ve=N2(function(e,t,n){Pve.call(e,n)?e[n].push(t):Md(e,n,[t])}),Ave=$ve;function tD(e,t){return e>t}function V2(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Cu(t),n=Cu(n)),e(t,n)}}var Mve=V2(tD),Rve=Mve,Nve=V2(function(e,t){return e>=t}),Ive=Nve,Dve=Object.prototype,jve=Dve.hasOwnProperty;function Lve(e,t){return e!=null&&jve.call(e,t)}function Bve(e,t){return e!=null&&pW(e,t,Lve)}var Vve=Math.max,Fve=Math.min;function zve(e,t,n){return e>=Fve(t,n)&&e<Vve(t,n)}function Qve(e,t,n){return t=vd(t),n===void 0?(n=t,t=0):n=vd(n),e=Cu(e),zve(e,t,n)}var Wve="[object String]";function F2(e){return typeof e=="string"||!_r(e)&&Oi(e)&&Is(e)==Wve}function nD(e,t){return ii(t,function(n){return e[n]})}function w0(e){return e==null?[]:nD(e,sa(e))}var Yve=Math.max;function Uve(e,t,n,r){e=sl(e)?e:w0(e),n=n&&!r?Pr(n):0;var o=e.length;return n<0&&(n=Yve(o+n,0)),F2(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&m0(e,t,n)>-1}var Hve=Math.max;function Zve(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Pr(n);return o<0&&(o=Hve(r+o,0)),m0(e,t,o)}function Xve(e){var t=e==null?0:e.length;return t?Ru(e,0,-1):[]}var qve=Math.min;function rD(e,t,n){for(var r=n?JI:E2,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];a--;){var f=e[a];a&&t&&(f=ii(f,Yl(t))),l=qve(f.length,l),s[a]=!n&&(t||o>=120&&f.length>=120)?new gm(a&&f):void 0}f=e[0];var h=-1,m=s[0];e:for(;++h<o&&u.length<l;){var y=f[h],O=t?t(y):y;if(y=n||y!==0?y:0,!(m?VO(m,O):r(u,O,n))){for(a=i;--a;){var b=s[a];if(!(b?VO(b,O):r(e[a],O,n)))continue e}m&&m.push(O),u.push(y)}}return u}function oD(e){return Ai(e)?e:[]}var Kve=jr(function(e){var t=ii(e,oD);return t.length&&t[0]===e[0]?rD(t):[]}),Gve=Kve,Jve=jr(function(e){var t=Ul(e),n=ii(e,oD);return t===Ul(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?rD(n,vr(t)):[]}),eye=Jve,tye=jr(function(e){var t=Ul(e),n=ii(e,oD);return t=typeof t=="function"?t:void 0,t&&n.pop(),n.length&&n[0]===e[0]?rD(n,void 0,t):[]}),nye=tye;function rye(e,t,n,r){return Ef(e,function(o,i,a){t(r,n(o),i,a)}),r}function FW(e,t){return function(n,r){return rye(n,e,t(r),{})}}var oye=Object.prototype,iye=oye.toString,aye=FW(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=iye.call(t)),e[t]=n},kI(Ds)),sye=aye,zW=Object.prototype,lye=zW.hasOwnProperty,uye=zW.toString,cye=FW(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=uye.call(t)),lye.call(e,t)?e[t].push(n):e[t]=[n]},vr),fye=cye;function QW(e,t){return t.length<2?e:$m(e,Ru(t,0,-1))}function M1(e,t,n){t=kp(t,e),e=QW(e,t);var r=e==null?e:e[Cf(Ul(t))];return r==null?void 0:Wl(r,e,n)}var dye=jr(M1),hye=dye,pye=jr(function(e,t,n){var r=-1,o=typeof t=="function",i=sl(e)?Array(e.length):[];return Pp(e,function(a){i[++r]=o?Wl(t,a,n):M1(a,t,n)}),i}),gye=pye,mye="[object ArrayBuffer]";function vye(e){return Oi(e)&&Is(e)==mye}var S6=Mu&&Mu.isArrayBuffer,yye=S6?Yl(S6):vye,bye=yye,_ye="[object Boolean]";function Oye(e){return e===!0||e===!1||Oi(e)&&Is(e)==_ye}var wye="[object Date]";function Sye(e){return Oi(e)&&Is(e)==wye}var x6=Mu&&Mu.isDate,xye=x6?Yl(x6):Sye,kye=xye;function Cye(e){return Oi(e)&&e.nodeType===1&&!P1(e)}var Eye="[object Map]",Tye="[object Set]",Pye=Object.prototype,$ye=Pye.hasOwnProperty;function Aye(e){if(e==null)return!0;if(sl(e)&&(_r(e)||typeof e=="string"||typeof e.splice=="function"||op(e)||b0(e)||hm(e)))return!e.length;var t=vf(e);if(t==Eye||t==Tye)return!e.size;if(E1(e))return!PI(e).length;for(var n in e)if($ye.call(e,n))return!1;return!0}function ss(e,t){return $1(e,t)}function Mye(e,t,n){n=typeof n=="function"?n:void 0;var r=n?n(e,t):void 0;return r===void 0?$1(e,t,void 0,n):!!r}var Rye=ma.isFinite;function Nye(e){return typeof e=="number"&&Rye(e)}function WW(e){return typeof e=="number"&&e==Pr(e)}function Iye(e,t){return e===t||UI(e,t,HI(t))}function Dye(e,t,n){return n=typeof n=="function"?n:void 0,UI(e,t,HI(t),n)}var jye="[object Number]";function YW(e){return typeof e=="number"||Oi(e)&&Is(e)==jye}function Lye(e){return YW(e)&&e!=+e}var Bye=dk?Pd:TI,Vye=Bye,Fye="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function zye(e){if(Vye(e))throw new Error(Fye);return a7(e)}function Wi(e){return e==null}function Qye(e){return e===null}var Wye="[object RegExp]";function Yye(e){return Oi(e)&&Is(e)==Wye}var k6=Mu&&Mu.isRegExp,Uye=k6?Yl(k6):Yye,iD=Uye,C6=9007199254740991;function Hye(e){return WW(e)&&e>=-C6&&e<=C6}function aD(e){return e===void 0}var Zye="[object WeakMap]";function Xye(e){return Oi(e)&&vf(e)==Zye}var qye="[object WeakSet]";function Kye(e){return Oi(e)&&Is(e)==qye}var Gye=1;function Jye(e){return vr(typeof e=="function"?e:Eu(e,Gye))}var e0e=Array.prototype,t0e=e0e.join;function n0e(e,t){return e==null?"":t0e.call(e,t)}var r0e=O0(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),o0e=r0e,i0e=N2(function(e,t,n){Md(e,n,t)}),a0e=i0e;function s0e(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}var l0e=Math.max,u0e=Math.min;function c0e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r;return n!==void 0&&(o=Pr(n),o=o<0?l0e(r+o,0):u0e(o,r-1)),t===t?s0e(e,t,o):C2(e,h7,o,!0)}var f0e=O0(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),d0e=f0e,h0e=N7("toLowerCase"),p0e=h0e;function sD(e,t){return e<t}var g0e=V2(sD),m0e=g0e,v0e=V2(function(e,t){return e<=t}),y0e=v0e;function b0e(e,t){var n={};return t=vr(t),Ef(e,function(r,o,i){Md(n,t(r,o,i),r)}),n}function _0e(e,t){var n={};return t=vr(t),Ef(e,function(r,o,i){Md(n,o,t(r,o,i))}),n}var O0e=1;function w0e(e){return hW(Eu(e,O0e))}var S0e=1;function x0e(e,t){return gW(e,Eu(t,S0e))}function z2(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(a!=null&&(s===void 0?a===a&&!zl(a):n(a,s)))var s=a,l=i}return l}function k0e(e){return e&&e.length?z2(e,Ds,tD):void 0}function C0e(e,t){return e&&e.length?z2(e,vr(t),tD):void 0}function lD(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==void 0&&(n=n===void 0?i:n+i)}return n}var E0e=0/0;function UW(e,t){var n=e==null?0:e.length;return n?lD(e,t)/n:E0e}function T0e(e){return UW(e,Ds)}function P0e(e,t){return UW(e,vr(t))}var $0e=y0(function(e,t,n){I2(e,t,n)}),HW=$0e,A0e=jr(function(e,t){return function(n){return M1(n,e,t)}}),M0e=A0e,R0e=jr(function(e,t){return function(n){return M1(e,n,t)}}),N0e=R0e;function I0e(e){return e&&e.length?z2(e,Ds,sD):void 0}function D0e(e,t){return e&&e.length?z2(e,vr(t),sD):void 0}function ZW(e,t,n){var r=sa(t),o=B2(t,r),i=!(ai(n)&&"chain"in n)||!!n.chain,a=Pd(e);return Lu(o,function(s){var l=t[s];e[s]=l,a&&(e.prototype[s]=function(){var u=this.__chain__;if(i||u){var f=e(this.__wrapped__),h=f.__actions__=el(this.__actions__);return h.push({func:l,args:arguments,thisArg:e}),f.__chain__=u,f}return l.apply(e,Cp([this.value()],arguments))})}),e}var j0e=x2(function(e,t){return e*t},1),L0e=j0e,B0e="Expected a function";function R1(e){if(typeof e!="function")throw new TypeError(B0e);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function V0e(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var F0e="[object Map]",z0e="[object Set]",nA=us?us.iterator:void 0;function XW(e){if(!e)return[];if(sl(e))return F2(e)?yc(e):el(e);if(nA&&e[nA])return V0e(e[nA]());var t=vf(e),n=t==F0e?YI:t==z0e?R2:w0;return n(e)}function Q0e(){this.__values__===void 0&&(this.__values__=XW(this.value()));var e=this.__index__>=this.__values__.length,t=e?void 0:this.__values__[this.__index__++];return{done:e,value:t}}function qW(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,$d(t,n)?e[t]:void 0}function W0e(e,t){return e&&e.length?qW(e,Pr(t)):void 0}function Y0e(e){return e=Pr(e),jr(function(t){return qW(t,e)})}function uD(e,t){return t=kp(t,e),e=QW(e,t),e==null||delete e[Cf(Ul(t))]}function U0e(e){return P1(e)?void 0:e}var H0e=1,Z0e=2,X0e=4,q0e=Id(function(e,t){var n={};if(e==null)return n;var r=!1;t=ii(t,function(i){return i=kp(i,e),r||(r=i.length>1),i}),kf(e,zI(e),n),r&&(n=Eu(n,H0e|Z0e|X0e,U0e));for(var o=t.length;o--;)uD(n,t[o]);return n}),KW=q0e;function N1(e,t,n,r){if(!ai(e))return e;t=kp(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Cf(t[o]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var f=s[l];u=r?r(f,l,s):void 0,u===void 0&&(u=ai(f)?f:$d(t[o+1])?[]:{})}C1(s,l,u),s=s[l]}return e}function GW(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=$m(e,a);n(s,a)&&N1(i,kp(a,e),s)}return i}function JW(e,t){if(e==null)return{};var n=ii(zI(e),function(r){return[r]});return t=vr(t),GW(e,n,function(r,o){return t(r,o[0])})}function K0e(e,t){return JW(e,R1(vr(t)))}function G0e(e){return C7(2,e)}function J0e(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function eY(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,i=zl(e),a=t!==void 0,s=t===null,l=t===t,u=zl(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function ebe(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=eY(o[r],i[r]);if(l){if(r>=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}function tY(e,t,n){t.length?t=ii(t,function(i){return _r(i)?function(a){return $m(a,i.length===1?i[0]:i)}:i}):t=[Ds];var r=-1;t=ii(t,Yl(vr));var o=jW(e,function(i,a,s){var l=ii(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return J0e(o,function(i,a){return ebe(i,a,n)})}function tbe(e,t,n,r){return e==null?[]:(_r(t)||(t=t==null?[]:[t]),n=r?void 0:n,_r(n)||(n=n==null?[]:[n]),tY(e,t,n))}function cD(e){return Id(function(t){return t=ii(t,Yl(vr)),jr(function(n){var r=this;return e(t,function(o){return Wl(o,r,n)})})})}var nbe=cD(ii),rbe=nbe,obe=jr,ibe=obe,abe=Math.min,sbe=ibe(function(e,t){t=t.length==1&&_r(t[0])?ii(t[0],Yl(vr)):ii(za(t,1),Yl(vr));var n=t.length;return jr(function(r){for(var o=-1,i=abe(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Wl(e,this,r)})}),lbe=sbe,ube=cD(AW),cbe=ube,fbe=cD(WI),dbe=fbe,hbe=9007199254740991,pbe=Math.floor;function RM(e,t){var n="";if(!e||t<1||t>hbe)return n;do t%2&&(n+=e),t=pbe(t/2),t&&(e+=e);while(t);return n}var gbe=XI("length"),mbe=gbe,nY="\\ud800-\\udfff",vbe="\\u0300-\\u036f",ybe="\\ufe20-\\ufe2f",bbe="\\u20d0-\\u20ff",_be=vbe+ybe+bbe,Obe="\\ufe0e\\ufe0f",wbe="["+nY+"]",NM="["+_be+"]",IM="\\ud83c[\\udffb-\\udfff]",Sbe="(?:"+NM+"|"+IM+")",rY="[^"+nY+"]",oY="(?:\\ud83c[\\udde6-\\uddff]){2}",iY="[\\ud800-\\udbff][\\udc00-\\udfff]",xbe="\\u200d",aY=Sbe+"?",sY="["+Obe+"]?",kbe="(?:"+xbe+"(?:"+[rY,oY,iY].join("|")+")"+sY+aY+")*",Cbe=sY+aY+kbe,Ebe="(?:"+[rY+NM+"?",NM,oY,iY,wbe].join("|")+")",E6=RegExp(IM+"(?="+IM+")|"+Ebe+Cbe,"g");function Tbe(e){for(var t=E6.lastIndex=0;E6.test(e);)++t;return t}function S0(e){return _0(e)?Tbe(e):mbe(e)}var Pbe=Math.ceil;function rC(e,t){t=t===void 0?" ":Ql(t);var n=t.length;if(n<2)return n?RM(t,e):t;var r=RM(t,Pbe(e/S0(t)));return _0(t)?Ep(yc(r),0,e).join(""):r.slice(0,e)}var $be=Math.ceil,Abe=Math.floor;function Mbe(e,t,n){e=go(e),t=Pr(t);var r=t?S0(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return rC(Abe(o),n)+e+rC($be(o),n)}function Rbe(e,t,n){e=go(e),t=Pr(t);var r=t?S0(e):0;return t&&r<t?e+rC(t-r,n):e}function Nbe(e,t,n){e=go(e),t=Pr(t);var r=t?S0(e):0;return t&&r<t?rC(t-r,n)+e:e}var Ibe=/^\s+/,Dbe=ma.parseInt;function jbe(e,t,n){return n||t==null?t=0:t&&(t=+t),Dbe(go(e).replace(Ibe,""),t||0)}var Lbe=32,fD=jr(function(e,t){var n=rp(t,v0(fD));return Ad(e,Lbe,void 0,t,n)});fD.placeholder={};var lY=fD,Bbe=64,dD=jr(function(e,t){var n=rp(t,v0(dD));return Ad(e,Bbe,void 0,t,n)});dD.placeholder={};var Vbe=dD,Fbe=N2(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),zbe=Fbe;function Qbe(e,t){return GW(e,t,function(n,r){return ZI(e,r)})}var Wbe=Id(function(e,t){return e==null?{}:Qbe(e,t)}),_u=Wbe;function Ybe(e){for(var t,n=this;n instanceof k2;){var r=c7(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function Ube(e){return function(t){return e==null?void 0:$m(e,t)}}function Hbe(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var Zbe=Array.prototype,T6=Zbe.splice;function hD(e,t,n,r){var o=r?Hbe:m0,i=-1,a=t.length,s=e;for(e===t&&(t=el(t)),n&&(s=ii(e,Yl(n)));++i<a;)for(var l=0,u=t[i],f=n?n(u):u;(l=o(s,f,l,r))>-1;)s!==e&&T6.call(s,l,1),T6.call(e,l,1);return e}function uY(e,t){return e&&e.length&&t&&t.length?hD(e,t):e}var Xbe=jr(uY),qbe=Xbe;function Kbe(e,t,n){return e&&e.length&&t&&t.length?hD(e,t,vr(n)):e}function Gbe(e,t,n){return e&&e.length&&t&&t.length?hD(e,t,void 0,n):e}var Jbe=Array.prototype,e_e=Jbe.splice;function cY(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;$d(o)?e_e.call(e,o,1):uD(e,o)}}return e}var t_e=Id(function(e,t){var n=e==null?0:e.length,r=AI(e,t);return cY(e,ii(t,function(o){return $d(o,n)?+o:o}).sort(eY)),r}),n_e=t_e,r_e=Math.floor,o_e=Math.random;function pD(e,t){return e+r_e(o_e()*(t-e+1))}var i_e=parseFloat,a_e=Math.min,s_e=Math.random;function l_e(e,t,n){if(n&&typeof n!="boolean"&&Ms(e,t,n)&&(t=n=void 0),n===void 0&&(typeof t=="boolean"?(n=t,t=void 0):typeof e=="boolean"&&(n=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=vd(e),t===void 0?(t=e,e=0):t=vd(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=s_e();return a_e(e+o*(t-e+i_e("1e-"+((o+"").length-1))),t)}return pD(e,t)}var u_e=Math.ceil,c_e=Math.max;function f_e(e,t,n,r){for(var o=-1,i=c_e(u_e((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}function fY(e){return function(t,n,r){return r&&typeof r!="number"&&Ms(t,n,r)&&(n=r=void 0),t=vd(t),n===void 0?(n=t,t=0):n=vd(n),r=r===void 0?t<n?1:-1:vd(r),f_e(t,n,r,e)}}var d_e=fY(),h_e=d_e,p_e=fY(!0),g_e=p_e,m_e=256,v_e=Id(function(e,t){return Ad(e,m_e,void 0,void 0,void 0,t)}),y_e=v_e;function dY(e,t,n,r,o){return o(e,function(i,a,s){n=r?(r=!1,i):t(n,i,a,s)}),n}function b_e(e,t,n){var r=_r(e)?jI:dY,o=arguments.length<3;return r(e,vr(t),n,o,Pp)}function __e(e,t,n,r){var o=e==null?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function O_e(e,t,n){var r=_r(e)?__e:dY,o=arguments.length<3;return r(e,vr(t),n,o,CW)}function w_e(e,t){var n=_r(e)?Tp:RW;return n(e,R1(vr(t)))}function S_e(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,o=[],i=e.length;for(t=vr(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return cY(e,o),n}function x_e(e,t,n){return(n?Ms(e,t,n):t===void 0)?t=1:t=Pr(t),RM(go(e),t)}function k_e(){var e=arguments,t=go(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var C_e="Expected a function";function E_e(e,t){if(typeof e!="function")throw new TypeError(C_e);return t=t===void 0?t:Pr(t),jr(e,t)}function T_e(e,t,n){t=kp(t,e);var r=-1,o=t.length;for(o||(o=1,e=void 0);++r<o;){var i=e==null?void 0:e[Cf(t[r])];i===void 0&&(r=o,i=n),e=Pd(i)?i.call(e):i}return e}var P_e=Array.prototype,$_e=P_e.reverse;function DM(e){return e==null?e:$_e.call(e)}var A_e=BI("round"),M_e=A_e;function hY(e){var t=e.length;return t?e[pD(0,t-1)]:void 0}function R_e(e){return hY(w0(e))}function N_e(e){var t=_r(e)?hY:R_e;return t(e)}function Q2(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=pD(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function I_e(e,t){return Q2(el(e),Am(t,0,e.length))}function D_e(e,t){var n=w0(e);return Q2(n,Am(t,0,n.length))}function j_e(e,t,n){(n?Ms(e,t,n):t===void 0)?t=1:t=Pr(t);var r=_r(e)?I_e:D_e;return r(e,t)}function pY(e,t,n){return e==null?e:N1(e,t,n)}function L_e(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:N1(e,t,n,r)}function B_e(e){return Q2(el(e))}function V_e(e){return Q2(w0(e))}function F_e(e){var t=_r(e)?B_e:V_e;return t(e)}var z_e="[object Map]",Q_e="[object Set]";function W_e(e){if(e==null)return 0;if(sl(e))return F2(e)?S0(e):e.length;var t=vf(e);return t==z_e||t==Q_e?e.size:PI(e).length}function Y_e(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&Ms(e,t,n)?(t=0,n=r):(t=t==null?0:Pr(t),n=n===void 0?r:Pr(n)),Ru(e,t,n)):[]}var U_e=O0(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),H_e=U_e;function Z_e(e,t){var n;return Pp(e,function(r,o,i){return n=t(r,o,i),!n}),!!n}function X_e(e,t,n){var r=_r(e)?WI:Z_e;return n&&Ms(e,t,n)&&(t=void 0),r(e,vr(t))}var q_e=jr(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ms(e,t[0],t[1])?t=[]:n>2&&Ms(t[0],t[1],t[2])&&(t=[t[0]]),tY(e,za(t,1),[])}),K_e=q_e,G_e=4294967295,J_e=G_e-1,eOe=Math.floor,tOe=Math.min;function gD(e,t,n,r){var o=0,i=e==null?0:e.length;if(i===0)return 0;t=n(t);for(var a=t!==t,s=t===null,l=zl(t),u=t===void 0;o<i;){var f=eOe((o+i)/2),h=n(e[f]),m=h!==void 0,y=h===null,O=h===h,b=zl(h);if(a)var k=r||O;else u?k=O&&(r||m):s?k=O&&m&&(r||!y):l?k=O&&m&&!y&&(r||!b):y||b?k=!1:k=r?h<=t:h<t;k?o=f+1:i=f}return tOe(i,J_e)}var nOe=4294967295,rOe=nOe>>>1;function W2(e,t,n){var r=0,o=e==null?r:e.length;if(typeof t=="number"&&t===t&&o<=rOe){for(;r<o;){var i=r+o>>>1,a=e[i];a!==null&&!zl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return gD(e,t,Ds,n)}function oOe(e,t){return W2(e,t)}function iOe(e,t,n){return gD(e,t,vr(n))}function aOe(e,t){var n=e==null?0:e.length;if(n){var r=W2(e,t);if(r<n&&Sc(e[r],t))return r}return-1}function sOe(e,t){return W2(e,t,!0)}function lOe(e,t,n){return gD(e,t,vr(n),!0)}function uOe(e,t){var n=e==null?0:e.length;if(n){var r=W2(e,t,!0)-1;if(Sc(e[r],t))return r}return-1}function gY(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Sc(s,l)){var l=s;i[o++]=a===0?0:a}}return i}function cOe(e){return e&&e.length?gY(e):[]}function fOe(e,t){return e&&e.length?gY(e,vr(t)):[]}var dOe=4294967295;function hOe(e,t,n){return n&&typeof n!="number"&&Ms(e,t,n)&&(t=n=void 0),n=n===void 0?dOe:n>>>0,n?(e=go(e),e&&(typeof t=="string"||t!=null&&!iD(t))&&(t=Ql(t),!t&&_0(e))?Ep(yc(e),0,n):e.split(t,n)):[]}var pOe="Expected a function",gOe=Math.max;function mOe(e,t){if(typeof e!="function")throw new TypeError(pOe);return t=t==null?0:gOe(Pr(t),0),jr(function(n){var r=n[t],o=Ep(n,0,t);return r&&Cp(o,r),Wl(e,this,o)})}var vOe=O0(function(e,t,n){return e+(n?" ":"")+DI(t)}),yOe=vOe;function bOe(e,t,n){return e=go(e),n=n==null?0:Am(Pr(n),0,e.length),t=Ql(t),e.slice(n,n+t.length)==t}function _Oe(){return{}}function OOe(){return""}function wOe(){return!0}var SOe=x2(function(e,t){return e-t},0),xOe=SOe;function kOe(e){return e&&e.length?lD(e,Ds):0}function COe(e,t){return e&&e.length?lD(e,vr(t)):0}function EOe(e){var t=e==null?0:e.length;return t?Ru(e,1,t):[]}function TOe(e,t,n){return e&&e.length?(t=n||t===void 0?1:Pr(t),Ru(e,0,t<0?0:t)):[]}function POe(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:Pr(t),t=r-t,Ru(e,t<0?0:t,r)):[]}function $Oe(e,t){return e&&e.length?D2(e,vr(t),!1,!0):[]}function AOe(e,t){return e&&e.length?D2(e,vr(t)):[]}function MOe(e,t){return t(e),e}var mY=Object.prototype,ROe=mY.hasOwnProperty;function P6(e,t,n,r){return e===void 0||Sc(e,mY[n])&&!ROe.call(r,n)?t:e}var NOe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function IOe(e){return"\\"+NOe[e]}var DOe=/<%=([\s\S]+?)%>/g,vY=DOe,jOe=/<%-([\s\S]+?)%>/g,LOe=jOe,BOe=/<%([\s\S]+?)%>/g,VOe=BOe,FOe={escape:LOe,evaluate:VOe,interpolate:vY,variable:"",imports:{_:{escape:PW}}},jM=FOe,zOe="Invalid `variable` option passed into `_.template`",QOe=/\b__p \+= '';/g,WOe=/\b(__p \+=) '' \+/g,YOe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,UOe=/[()=,{}\[\]\/\s]/,HOe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_x=/($^)/,ZOe=/['\n\r\u2028\u2029\\]/g,XOe=Object.prototype,$6=XOe.hasOwnProperty;function qOe(e,t,n){var r=jM.imports._.templateSettings||jM;n&&Ms(e,t,n)&&(t=void 0),e=go(e),t=tC({},t,r,P6);var o=tC({},t.imports,r.imports,P6),i=sa(o),a=nD(o,i),s,l,u=0,f=t.interpolate||_x,h="__p += '",m=RegExp((t.escape||_x).source+"|"+f.source+"|"+(f===vY?HOe:_x).source+"|"+(t.evaluate||_x).source+"|$","g"),y=$6.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
- `:"";e.replace(m,function(k,C,P,$,T,A){return P||(P=$),h+=e.slice(u,A).replace(ZOe,IOe),C&&(s=!0,h+=`' +
- __e(`+C+`) +
- '`),T&&(l=!0,h+=`';
- `+T+`;
- __p += '`),P&&(h+=`' +
- ((__t = (`+P+`)) == null ? '' : __t) +
- '`),u=A+k.length,k}),h+=`';
- `;var O=$6.call(t,"variable")&&t.variable;if(!O)h=`with (obj) {
- `+h+`
- }
- `;else if(UOe.test(O))throw new Error(zOe);h=(l?h.replace(QOe,""):h).replace(WOe,"$1").replace(YOe,"$1;"),h="function("+(O||"obj")+`) {
- `+(O?"":`obj || (obj = {});
- `)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `:`;
- `)+h+`return __p
- }`;var b=k7(function(){return Function(i,y+"return "+h).apply(void 0,a)});if(b.source=h,RI(b))throw b;return b}var KOe="Expected a function";function yd(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(KOe);return ai(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rs(e,t,{leading:r,maxWait:t,trailing:o})}function I1(e,t){return t(e)}var GOe=9007199254740991,rA=4294967295,JOe=Math.min;function e1e(e,t){if(e=Pr(e),e<1||e>GOe)return[];var n=rA,r=JOe(e,rA);t=Tf(t),e-=rA;for(var o=EI(r,t);++n<e;)t(n);return o}function t1e(){return this}function yY(e,t){var n=e;return n instanceof Zr&&(n=n.value()),jI(t,function(r,o){return o.func.apply(o.thisArg,Cp([r],o.args))},n)}function oA(){return yY(this.__wrapped__,this.__actions__)}function n1e(e){return go(e).toLowerCase()}function r1e(e){return _r(e)?ii(e,Cf):zl(e)?[e]:el(S7(go(e)))}var A6=9007199254740991;function o1e(e){return e?Am(Pr(e),-A6,A6):e===0?e:0}function i1e(e){return go(e).toUpperCase()}function a1e(e,t,n){var r=_r(e),o=r||op(e)||b0(e);if(t=vr(t),n==null){var i=e&&e.constructor;o?n=r?new i:[]:ai(e)?n=Pd(i)?g0(M2(e)):{}:n={}}return(o?Lu:Ef)(e,function(a,s,l){return t(n,a,s,l)}),n}function bY(e,t){for(var n=e.length;n--&&m0(t,e[n],0)>-1;);return n}function _Y(e,t){for(var n=-1,r=e.length;++n<r&&m0(t,e[n],0)>-1;);return n}function s1e(e,t,n){if(e=go(e),e&&(n||t===void 0))return i7(e);if(!e||!(t=Ql(t)))return e;var r=yc(e),o=yc(t),i=_Y(r,o),a=bY(r,o)+1;return Ep(r,i,a).join("")}function l1e(e,t,n){if(e=go(e),e&&(n||t===void 0))return e.slice(0,o7(e)+1);if(!e||!(t=Ql(t)))return e;var r=yc(e),o=bY(r,yc(t))+1;return Ep(r,0,o).join("")}var u1e=/^\s+/;function c1e(e,t,n){if(e=go(e),e&&(n||t===void 0))return e.replace(u1e,"");if(!e||!(t=Ql(t)))return e;var r=yc(e),o=_Y(r,yc(t));return Ep(r,o).join("")}var f1e=30,d1e="...",h1e=/\w*$/;function p1e(e,t){var n=f1e,r=d1e;if(ai(t)){var o="separator"in t?t.separator:o;n="length"in t?Pr(t.length):n,r="omission"in t?Ql(t.omission):r}e=go(e);var i=e.length;if(_0(e)){var a=yc(e);i=a.length}if(n>=i)return e;var s=n-S0(r);if(s<1)return r;var l=a?Ep(a,0,s).join(""):e.slice(0,s);if(o===void 0)return l+r;if(a&&(s+=l.length-s),iD(o)){if(e.slice(s).search(o)){var u,f=l;for(o.global||(o=RegExp(o.source,go(h1e.exec(o))+"g")),o.lastIndex=0;u=o.exec(f);)var h=u.index;l=l.slice(0,h===void 0?s:h)}}else if(e.indexOf(Ql(o),s)!=s){var m=l.lastIndexOf(o);m>-1&&(l=l.slice(0,m))}return l+r}function g1e(e){return m7(e,1)}var m1e={"&":"&","<":"<",">":">",""":'"',"'":"'"},v1e=LI(m1e),y1e=v1e,OY=/&(?:amp|lt|gt|quot|#39);/g,b1e=RegExp(OY.source);function _1e(e){return e=go(e),e&&b1e.test(e)?e.replace(OY,y1e):e}var O1e=1/0,w1e=Cy&&1/R2(new Cy([,-0]))[1]==O1e?function(e){return new Cy(e)}:SI,S1e=w1e,x1e=200;function ip(e,t,n){var r=-1,o=E2,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=JI;else if(i>=x1e){var u=t?null:S1e(e);if(u)return R2(u);a=!1,o=VO,l=new gm}else l=t?[]:s;e:for(;++r<i;){var f=e[r],h=t?t(f):f;if(f=n||f!==0?f:0,a&&h===h){for(var m=l.length;m--;)if(l[m]===h)continue e;t&&l.push(h),s.push(f)}else o(l,h,n)||(l!==s&&l.push(h),s.push(f))}return s}var k1e=jr(function(e){return ip(za(e,1,Ai,!0))}),gk=k1e,C1e=jr(function(e){var t=Ul(e);return Ai(t)&&(t=void 0),ip(za(e,1,Ai,!0),vr(t))}),E1e=C1e,T1e=jr(function(e){var t=Ul(e);return t=typeof t=="function"?t:void 0,ip(za(e,1,Ai,!0),void 0,t)}),P1e=T1e;function $1e(e){return e&&e.length?ip(e):[]}function A1e(e,t){return e&&e.length?ip(e,vr(t)):[]}function M1e(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?ip(e,void 0,t):[]}var R1e=0;function N1e(e){var t=++R1e;return go(e)+t}function I1e(e,t){return e==null?!0:uD(e,t)}var D1e=Math.max;function mD(e){if(!(e&&e.length))return[];var t=0;return e=Tp(e,function(n){if(Ai(n))return t=D1e(n.length,t),!0}),EI(t,function(n){return ii(e,XI(n))})}function wY(e,t){if(!(e&&e.length))return[];var n=mD(e);return t==null?n:ii(n,function(r){return Wl(t,void 0,r)})}function SY(e,t,n,r){return N1(e,t,n($m(e,t)),r)}function j1e(e,t,n){return e==null?e:SY(e,t,Tf(n))}function L1e(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:SY(e,t,Tf(n),r)}var B1e=O0(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),V1e=B1e;function F1e(e){return e==null?[]:nD(e,ll(e))}var z1e=jr(function(e,t){return Ai(e)?A1(e,t):[]}),Q1e=z1e;function W1e(e,t){return lY(Tf(t),e)}var Y1e=Id(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(i){return AI(i,e)};return t>1||this.__actions__.length||!(r instanceof Zr)||!$d(n)?this.thru(o):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:I1,args:[o],thisArg:void 0}),new Au(r,this.__chain__).thru(function(i){return t&&!i.length&&i.push(void 0),i}))}),U1e=Y1e;function H1e(){return K7(this)}function Z1e(){var e=this.__wrapped__;if(e instanceof Zr){var t=e;return this.__actions__.length&&(t=new Zr(this)),t=t.reverse(),t.__actions__.push({func:I1,args:[DM],thisArg:void 0}),new Au(t,this.__chain__)}return this.thru(DM)}function vD(e,t,n){var r=e.length;if(r<2)return r?ip(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=A1(i[o]||a,e[s],t,n));return ip(za(i,1),t,n)}var X1e=jr(function(e){return vD(Tp(e,Ai))}),q1e=X1e,K1e=jr(function(e){var t=Ul(e);return Ai(t)&&(t=void 0),vD(Tp(e,Ai),vr(t))}),G1e=K1e,J1e=jr(function(e){var t=Ul(e);return t=typeof t=="function"?t:void 0,vD(Tp(e,Ai),void 0,t)}),ewe=J1e,twe=jr(mD),nwe=twe;function xY(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function rwe(e,t){return xY(e||[],t||[],C1)}function owe(e,t){return xY(e||[],t||[],N1)}var iwe=jr(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n=typeof n=="function"?(e.pop(),n):void 0,wY(e,n)}),awe=iwe,Rn={chunk:hhe,compact:ege,concat:tge,difference:mme,differenceBy:yme,differenceWith:_me,drop:Sme,dropRight:xme,dropRightWhile:kme,dropWhile:Cme,fill:Hme,findIndex:IW,findLastIndex:j2,first:w6,flatten:MI,flattenDeep:BW,flattenDepth:lve,fromPairs:Wy,head:w6,indexOf:Zve,initial:Xve,intersection:Gve,intersectionBy:eye,intersectionWith:nye,join:n0e,last:Ul,lastIndexOf:c0e,nth:W0e,pull:qbe,pullAll:uY,pullAllBy:Kbe,pullAllWith:Gbe,pullAt:n_e,remove:S_e,reverse:DM,slice:Y_e,sortedIndex:oOe,sortedIndexBy:iOe,sortedIndexOf:aOe,sortedLastIndex:sOe,sortedLastIndexBy:lOe,sortedLastIndexOf:uOe,sortedUniq:cOe,sortedUniqBy:fOe,tail:EOe,take:TOe,takeRight:POe,takeRightWhile:$Oe,takeWhile:AOe,union:gk,unionBy:E1e,unionWith:P1e,uniq:$1e,uniqBy:A1e,uniqWith:M1e,unzip:mD,unzipWith:wY,without:Q1e,xor:q1e,xorBy:G1e,xorWith:ewe,zip:nwe,zipObject:rwe,zipObjectDeep:owe,zipWith:awe},ko={countBy:Hge,each:y6,eachRight:b6,every:Wme,filter:Zme,find:Kme,findLast:nve,flatMap:LW,flatMapDeep:ive,flatMapDepth:ave,forEach:y6,forEachRight:b6,groupBy:Ave,includes:Uve,invokeMap:gye,keyBy:a0e,map:L2,orderBy:tbe,partition:zbe,reduce:b_e,reduceRight:O_e,reject:w_e,sample:N_e,sampleSize:j_e,shuffle:F_e,size:W_e,some:X_e,sortBy:K_e},swe={now:pk},Si={after:yle,ary:m7,before:C7,bind:E7,bindKey:qfe,curry:KI,curryRight:GI,debounce:Rs,defer:fme,delay:hme,flip:cve,memoize:T1,negate:R1,once:G0e,overArgs:lbe,partial:lY,partialRight:Vbe,rearg:y_e,rest:E_e,spread:mOe,throttle:yd,unary:g1e,wrap:W1e},Gn={castArray:Da,clone:$M,cloneDeep:BO,cloneDeepWith:qpe,cloneWith:Gpe,conformsTo:Bge,eq:Sc,gt:Rve,gte:Ive,isArguments:hm,isArray:_r,isArrayBuffer:bye,isArrayLike:sl,isArrayLikeObject:Ai,isBoolean:Oye,isBuffer:op,isDate:kye,isElement:Cye,isEmpty:Aye,isEqual:ss,isEqualWith:Mye,isError:RI,isFinite:Nye,isFunction:Pd,isInteger:WW,isLength:P2,isMap:iW,isMatch:Iye,isMatchWith:Dye,isNaN:Lye,isNative:zye,isNil:Wi,isNull:Qye,isNumber:YW,isObject:ai,isObjectLike:Oi,isPlainObject:P1,isRegExp:iD,isSafeInteger:Hye,isSet:aW,isString:F2,isSymbol:zl,isTypedArray:b0,isUndefined:aD,isWeakMap:Xye,isWeakSet:Kye,lt:m0e,lte:y0e,toArray:XW,toFinite:vd,toInteger:Pr,toLength:MW,toNumber:Cu,toPlainObject:OW,toSafeInteger:o1e,toString:go},js={add:ule,ceil:che,divide:wme,floor:dve,max:k0e,maxBy:C0e,mean:T0e,meanBy:P0e,min:I0e,minBy:D0e,multiply:L0e,round:M_e,subtract:xOe,sum:kOe,sumBy:COe},yD={clamp:phe,inRange:Qve,random:l_e},mr={assign:Vce,assignIn:X5,assignInWith:tC,assignWith:Zce,at:Mfe,create:Zge,defaults:ome,defaultsDeep:lme,entries:_6,entriesIn:O6,extend:X5,extendWith:tC,findKey:Gme,findLastKey:rve,forIn:wve,forInRight:Sve,forOwn:xve,forOwnRight:kve,functions:Cve,functionsIn:Eve,get:No,has:Bve,hasIn:ZI,invert:sye,invertBy:fye,invoke:hye,keys:sa,keysIn:ll,mapKeys:b0e,mapValues:_0e,merge:HW,mergeWith:SW,omit:KW,omitBy:K0e,pick:_u,pickBy:JW,result:T_e,set:pY,setWith:L_e,toPairs:_6,toPairsIn:O6,transform:a1e,unset:I1e,update:j1e,updateWith:L1e,values:w0,valuesIn:F1e},Pf={at:U1e,chain:K7,commit:Jpe,lodash:$e,next:Q0e,plant:Ybe,reverse:Z1e,tap:MOe,thru:I1,toIterator:t1e,toJSON:oA,value:oA,valueOf:oA,wrapperChain:H1e},ho={camelCase:ahe,capitalize:I7,deburr:D7,endsWith:$me,escape:PW,escapeRegExp:zme,kebabCase:o0e,lowerCase:d0e,lowerFirst:p0e,pad:Mbe,padEnd:Rbe,padStart:Nbe,parseInt:jbe,repeat:x_e,replace:k_e,snakeCase:H_e,split:hOe,startCase:yOe,startsWith:bOe,template:qOe,templateSettings:jM,toLower:n1e,toUpper:i1e,trim:s1e,trimEnd:l1e,trimStart:c1e,truncate:p1e,unescape:_1e,upperCase:V1e,upperFirst:DI,words:q7},mo={attempt:k7,bindAll:Ufe,cond:Ige,conforms:Lge,constant:kI,defaultTo:tme,flow:bve,flowRight:Ove,identity:Ds,iteratee:Jye,matches:w0e,matchesProperty:x0e,method:M0e,methodOf:N0e,mixin:ZW,noop:SI,nthArg:Y0e,over:rbe,overEvery:cbe,overSome:dbe,property:mW,propertyOf:Ube,range:h_e,rangeRight:g_e,stubArray:VI,stubFalse:TI,stubObject:_Oe,stubString:OOe,stubTrue:wOe,times:e1e,toPath:r1e,uniqueId:N1e};function lwe(){var e=new Zr(this.__wrapped__);return e.__actions__=el(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=el(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=el(this.__views__),e}function uwe(){if(this.__filtered__){var e=new Zr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}var cwe=Math.max,fwe=Math.min;function dwe(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=fwe(t,e+a);break;case"takeRight":e=cwe(e,t-a);break}}return{start:e,end:t}}var hwe=1,pwe=2,gwe=Math.min;function mwe(){var e=this.__wrapped__.value(),t=this.__dir__,n=_r(e),r=t<0,o=n?e.length:0,i=dwe(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,f=this.__iteratees__,h=f.length,m=0,y=gwe(l,this.__takeCount__);if(!n||!r&&o==l&&y==l)return yY(e,this.__actions__);var O=[];e:for(;l--&&m<y;){u+=t;for(var b=-1,k=e[u];++b<h;){var C=f[b],P=C.iteratee,$=C.type,T=P(k);if($==pwe)k=T;else if(!T){if($==hwe)continue e;break e}}O[m++]=k}return O}/**
- * @license
- * Lodash (Custom Build) <https://lodash.com/>
- * Build: `lodash modularize exports="es" -o ./`
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */var vwe="4.17.21",ywe=2,bwe=1,_we=3,kY=4294967295,Owe=Array.prototype,wwe=Object.prototype,CY=wwe.hasOwnProperty,M6=us?us.iterator:void 0,Swe=Math.max,R6=Math.min,bD=function(e){return function(t,n,r){if(r==null){var o=ai(n),i=o&&sa(n),a=i&&i.length&&B2(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(ZW);$e.after=Si.after;$e.ary=Si.ary;$e.assign=mr.assign;$e.assignIn=mr.assignIn;$e.assignInWith=mr.assignInWith;$e.assignWith=mr.assignWith;$e.at=mr.at;$e.before=Si.before;$e.bind=Si.bind;$e.bindAll=mo.bindAll;$e.bindKey=Si.bindKey;$e.castArray=Gn.castArray;$e.chain=Pf.chain;$e.chunk=Rn.chunk;$e.compact=Rn.compact;$e.concat=Rn.concat;$e.cond=mo.cond;$e.conforms=mo.conforms;$e.constant=mo.constant;$e.countBy=ko.countBy;$e.create=mr.create;$e.curry=Si.curry;$e.curryRight=Si.curryRight;$e.debounce=Si.debounce;$e.defaults=mr.defaults;$e.defaultsDeep=mr.defaultsDeep;$e.defer=Si.defer;$e.delay=Si.delay;$e.difference=Rn.difference;$e.differenceBy=Rn.differenceBy;$e.differenceWith=Rn.differenceWith;$e.drop=Rn.drop;$e.dropRight=Rn.dropRight;$e.dropRightWhile=Rn.dropRightWhile;$e.dropWhile=Rn.dropWhile;$e.fill=Rn.fill;$e.filter=ko.filter;$e.flatMap=ko.flatMap;$e.flatMapDeep=ko.flatMapDeep;$e.flatMapDepth=ko.flatMapDepth;$e.flatten=Rn.flatten;$e.flattenDeep=Rn.flattenDeep;$e.flattenDepth=Rn.flattenDepth;$e.flip=Si.flip;$e.flow=mo.flow;$e.flowRight=mo.flowRight;$e.fromPairs=Rn.fromPairs;$e.functions=mr.functions;$e.functionsIn=mr.functionsIn;$e.groupBy=ko.groupBy;$e.initial=Rn.initial;$e.intersection=Rn.intersection;$e.intersectionBy=Rn.intersectionBy;$e.intersectionWith=Rn.intersectionWith;$e.invert=mr.invert;$e.invertBy=mr.invertBy;$e.invokeMap=ko.invokeMap;$e.iteratee=mo.iteratee;$e.keyBy=ko.keyBy;$e.keys=sa;$e.keysIn=mr.keysIn;$e.map=ko.map;$e.mapKeys=mr.mapKeys;$e.mapValues=mr.mapValues;$e.matches=mo.matches;$e.matchesProperty=mo.matchesProperty;$e.memoize=Si.memoize;$e.merge=mr.merge;$e.mergeWith=mr.mergeWith;$e.method=mo.method;$e.methodOf=mo.methodOf;$e.mixin=bD;$e.negate=R1;$e.nthArg=mo.nthArg;$e.omit=mr.omit;$e.omitBy=mr.omitBy;$e.once=Si.once;$e.orderBy=ko.orderBy;$e.over=mo.over;$e.overArgs=Si.overArgs;$e.overEvery=mo.overEvery;$e.overSome=mo.overSome;$e.partial=Si.partial;$e.partialRight=Si.partialRight;$e.partition=ko.partition;$e.pick=mr.pick;$e.pickBy=mr.pickBy;$e.property=mo.property;$e.propertyOf=mo.propertyOf;$e.pull=Rn.pull;$e.pullAll=Rn.pullAll;$e.pullAllBy=Rn.pullAllBy;$e.pullAllWith=Rn.pullAllWith;$e.pullAt=Rn.pullAt;$e.range=mo.range;$e.rangeRight=mo.rangeRight;$e.rearg=Si.rearg;$e.reject=ko.reject;$e.remove=Rn.remove;$e.rest=Si.rest;$e.reverse=Rn.reverse;$e.sampleSize=ko.sampleSize;$e.set=mr.set;$e.setWith=mr.setWith;$e.shuffle=ko.shuffle;$e.slice=Rn.slice;$e.sortBy=ko.sortBy;$e.sortedUniq=Rn.sortedUniq;$e.sortedUniqBy=Rn.sortedUniqBy;$e.split=ho.split;$e.spread=Si.spread;$e.tail=Rn.tail;$e.take=Rn.take;$e.takeRight=Rn.takeRight;$e.takeRightWhile=Rn.takeRightWhile;$e.takeWhile=Rn.takeWhile;$e.tap=Pf.tap;$e.throttle=Si.throttle;$e.thru=I1;$e.toArray=Gn.toArray;$e.toPairs=mr.toPairs;$e.toPairsIn=mr.toPairsIn;$e.toPath=mo.toPath;$e.toPlainObject=Gn.toPlainObject;$e.transform=mr.transform;$e.unary=Si.unary;$e.union=Rn.union;$e.unionBy=Rn.unionBy;$e.unionWith=Rn.unionWith;$e.uniq=Rn.uniq;$e.uniqBy=Rn.uniqBy;$e.uniqWith=Rn.uniqWith;$e.unset=mr.unset;$e.unzip=Rn.unzip;$e.unzipWith=Rn.unzipWith;$e.update=mr.update;$e.updateWith=mr.updateWith;$e.values=mr.values;$e.valuesIn=mr.valuesIn;$e.without=Rn.without;$e.words=ho.words;$e.wrap=Si.wrap;$e.xor=Rn.xor;$e.xorBy=Rn.xorBy;$e.xorWith=Rn.xorWith;$e.zip=Rn.zip;$e.zipObject=Rn.zipObject;$e.zipObjectDeep=Rn.zipObjectDeep;$e.zipWith=Rn.zipWith;$e.entries=mr.toPairs;$e.entriesIn=mr.toPairsIn;$e.extend=mr.assignIn;$e.extendWith=mr.assignInWith;bD($e,$e);$e.add=js.add;$e.attempt=mo.attempt;$e.camelCase=ho.camelCase;$e.capitalize=ho.capitalize;$e.ceil=js.ceil;$e.clamp=yD.clamp;$e.clone=Gn.clone;$e.cloneDeep=Gn.cloneDeep;$e.cloneDeepWith=Gn.cloneDeepWith;$e.cloneWith=Gn.cloneWith;$e.conformsTo=Gn.conformsTo;$e.deburr=ho.deburr;$e.defaultTo=mo.defaultTo;$e.divide=js.divide;$e.endsWith=ho.endsWith;$e.eq=Gn.eq;$e.escape=ho.escape;$e.escapeRegExp=ho.escapeRegExp;$e.every=ko.every;$e.find=ko.find;$e.findIndex=Rn.findIndex;$e.findKey=mr.findKey;$e.findLast=ko.findLast;$e.findLastIndex=Rn.findLastIndex;$e.findLastKey=mr.findLastKey;$e.floor=js.floor;$e.forEach=ko.forEach;$e.forEachRight=ko.forEachRight;$e.forIn=mr.forIn;$e.forInRight=mr.forInRight;$e.forOwn=mr.forOwn;$e.forOwnRight=mr.forOwnRight;$e.get=mr.get;$e.gt=Gn.gt;$e.gte=Gn.gte;$e.has=mr.has;$e.hasIn=mr.hasIn;$e.head=Rn.head;$e.identity=Ds;$e.includes=ko.includes;$e.indexOf=Rn.indexOf;$e.inRange=yD.inRange;$e.invoke=mr.invoke;$e.isArguments=Gn.isArguments;$e.isArray=_r;$e.isArrayBuffer=Gn.isArrayBuffer;$e.isArrayLike=Gn.isArrayLike;$e.isArrayLikeObject=Gn.isArrayLikeObject;$e.isBoolean=Gn.isBoolean;$e.isBuffer=Gn.isBuffer;$e.isDate=Gn.isDate;$e.isElement=Gn.isElement;$e.isEmpty=Gn.isEmpty;$e.isEqual=Gn.isEqual;$e.isEqualWith=Gn.isEqualWith;$e.isError=Gn.isError;$e.isFinite=Gn.isFinite;$e.isFunction=Gn.isFunction;$e.isInteger=Gn.isInteger;$e.isLength=Gn.isLength;$e.isMap=Gn.isMap;$e.isMatch=Gn.isMatch;$e.isMatchWith=Gn.isMatchWith;$e.isNaN=Gn.isNaN;$e.isNative=Gn.isNative;$e.isNil=Gn.isNil;$e.isNull=Gn.isNull;$e.isNumber=Gn.isNumber;$e.isObject=ai;$e.isObjectLike=Gn.isObjectLike;$e.isPlainObject=Gn.isPlainObject;$e.isRegExp=Gn.isRegExp;$e.isSafeInteger=Gn.isSafeInteger;$e.isSet=Gn.isSet;$e.isString=Gn.isString;$e.isSymbol=Gn.isSymbol;$e.isTypedArray=Gn.isTypedArray;$e.isUndefined=Gn.isUndefined;$e.isWeakMap=Gn.isWeakMap;$e.isWeakSet=Gn.isWeakSet;$e.join=Rn.join;$e.kebabCase=ho.kebabCase;$e.last=Ul;$e.lastIndexOf=Rn.lastIndexOf;$e.lowerCase=ho.lowerCase;$e.lowerFirst=ho.lowerFirst;$e.lt=Gn.lt;$e.lte=Gn.lte;$e.max=js.max;$e.maxBy=js.maxBy;$e.mean=js.mean;$e.meanBy=js.meanBy;$e.min=js.min;$e.minBy=js.minBy;$e.stubArray=mo.stubArray;$e.stubFalse=mo.stubFalse;$e.stubObject=mo.stubObject;$e.stubString=mo.stubString;$e.stubTrue=mo.stubTrue;$e.multiply=js.multiply;$e.nth=Rn.nth;$e.noop=mo.noop;$e.now=swe.now;$e.pad=ho.pad;$e.padEnd=ho.padEnd;$e.padStart=ho.padStart;$e.parseInt=ho.parseInt;$e.random=yD.random;$e.reduce=ko.reduce;$e.reduceRight=ko.reduceRight;$e.repeat=ho.repeat;$e.replace=ho.replace;$e.result=mr.result;$e.round=js.round;$e.sample=ko.sample;$e.size=ko.size;$e.snakeCase=ho.snakeCase;$e.some=ko.some;$e.sortedIndex=Rn.sortedIndex;$e.sortedIndexBy=Rn.sortedIndexBy;$e.sortedIndexOf=Rn.sortedIndexOf;$e.sortedLastIndex=Rn.sortedLastIndex;$e.sortedLastIndexBy=Rn.sortedLastIndexBy;$e.sortedLastIndexOf=Rn.sortedLastIndexOf;$e.startCase=ho.startCase;$e.startsWith=ho.startsWith;$e.subtract=js.subtract;$e.sum=js.sum;$e.sumBy=js.sumBy;$e.template=ho.template;$e.times=mo.times;$e.toFinite=Gn.toFinite;$e.toInteger=Pr;$e.toLength=Gn.toLength;$e.toLower=ho.toLower;$e.toNumber=Gn.toNumber;$e.toSafeInteger=Gn.toSafeInteger;$e.toString=Gn.toString;$e.toUpper=ho.toUpper;$e.trim=ho.trim;$e.trimEnd=ho.trimEnd;$e.trimStart=ho.trimStart;$e.truncate=ho.truncate;$e.unescape=ho.unescape;$e.uniqueId=mo.uniqueId;$e.upperCase=ho.upperCase;$e.upperFirst=ho.upperFirst;$e.each=ko.forEach;$e.eachRight=ko.forEachRight;$e.first=Rn.head;bD($e,function(){var e={};return Ef($e,function(t,n){CY.call($e.prototype,n)||(e[n]=t)}),e}(),{chain:!1});$e.VERSION=vwe;($e.templateSettings=ho.templateSettings).imports._=$e;Lu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){$e[e].placeholder=$e});Lu(["drop","take"],function(e,t){Zr.prototype[e]=function(n){n=n===void 0?1:Swe(Pr(n),0);var r=this.__filtered__&&!t?new Zr(this):this.clone();return r.__filtered__?r.__takeCount__=R6(n,r.__takeCount__):r.__views__.push({size:R6(n,kY),type:e+(r.__dir__<0?"Right":"")}),r},Zr.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}});Lu(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==bwe||n==_we;Zr.prototype[e]=function(o){var i=this.clone();return i.__iteratees__.push({iteratee:vr(o),type:n}),i.__filtered__=i.__filtered__||r,i}});Lu(["head","last"],function(e,t){var n="take"+(t?"Right":"");Zr.prototype[e]=function(){return this[n](1).value()[0]}});Lu(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Zr.prototype[e]=function(){return this.__filtered__?new Zr(this):this[n](1)}});Zr.prototype.compact=function(){return this.filter(Ds)};Zr.prototype.find=function(e){return this.filter(e).head()};Zr.prototype.findLast=function(e){return this.reverse().find(e)};Zr.prototype.invokeMap=jr(function(e,t){return typeof e=="function"?new Zr(this):this.map(function(n){return M1(n,e,t)})});Zr.prototype.reject=function(e){return this.filter(R1(vr(e)))};Zr.prototype.slice=function(e,t){e=Pr(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Zr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==void 0&&(t=Pr(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)};Zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Zr.prototype.toArray=function(){return this.take(kY)};Ef(Zr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=$e[r?"take"+(t=="last"?"Right":""):t],i=r||/^find/.test(t);!o||($e.prototype[t]=function(){var a=this.__wrapped__,s=r?[1]:arguments,l=a instanceof Zr,u=s[0],f=l||_r(a),h=function(C){var P=o.apply($e,Cp([C],s));return r&&m?P[0]:P};f&&n&&typeof u=="function"&&u.length!=1&&(l=f=!1);var m=this.__chain__,y=!!this.__actions__.length,O=i&&!m,b=l&&!y;if(!i&&f){a=b?a:new Zr(this);var k=e.apply(a,s);return k.__actions__.push({func:I1,args:[h],thisArg:void 0}),new Au(k,m)}return O&&b?e.apply(this,s):(k=this.thru(h),O?r?k.value()[0]:k.value():k)})});Lu(["pop","push","shift","sort","splice","unshift"],function(e){var t=Owe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$e.prototype[e]=function(){var o=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(_r(i)?i:[],o)}return this[n](function(a){return t.apply(_r(a)?a:[],o)})}});Ef(Zr.prototype,function(e,t){var n=$e[t];if(n){var r=n.name+"";CY.call(ky,r)||(ky[r]=[]),ky[r].push({name:t,func:n})}});ky[T2(void 0,ywe).name]=[{name:"wrapper",func:void 0}];Zr.prototype.clone=lwe;Zr.prototype.reverse=uwe;Zr.prototype.value=mwe;$e.prototype.at=Pf.at;$e.prototype.chain=Pf.wrapperChain;$e.prototype.commit=Pf.commit;$e.prototype.next=Pf.next;$e.prototype.plant=Pf.plant;$e.prototype.reverse=Pf.reverse;$e.prototype.toJSON=$e.prototype.valueOf=$e.prototype.value=Pf.value;$e.prototype.first=$e.prototype.head;M6&&($e.prototype[M6]=Pf.toIterator);const zo=e=>e===void 0,qo=e=>typeof e=="boolean",tn=e=>typeof e=="number",vu=e=>!e&&e!==0||Et(e)&&e.length===0||$n(e)&&!Object.keys(e).length,Ll=e=>typeof Element=="undefined"?!1:e instanceof Element,mm=e=>Wi(e),xwe=e=>Gt(e)?!Number.isNaN(Number(e)):!1,Y2=e=>e===window,ap=e=>rr?window.requestAnimationFrame(e):setTimeout(e,16),vm=e=>rr?window.cancelAnimationFrame(e):clearTimeout(e),_D=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),lf=e=>S1(e),Yy=e=>Object.keys(e),kwe=e=>Object.entries(e),mk=(e,t,n)=>({get value(){return No(e,t,n)},set value(r){pY(e,t,r)}});class Cwe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ri(e,t){throw new Cwe(`[${e}] ${t}`)}const EY=(e="")=>e.split(" ").filter(t=>!!t.trim()),Gs=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ou=(e,t)=>{!e||!t.trim()||e.classList.add(...EY(t))},ls=(e,t)=>{!e||!t.trim()||e.classList.remove(...EY(t))},Lh=(e,t)=>{var n;if(!rr||!e||!t)return"";let r=$u(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function Qo(e,t="px"){if(!e)return"";if(tn(e)||xwe(e))return`${e}${t}`;if(Gt(e))return e}const Ewe=(e,t)=>{if(!rr)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Lh(e,n);return["scroll","auto","overlay"].some(o=>r.includes(o))},OD=(e,t)=>{if(!rr)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Ewe(n,t))return n;n=n.parentNode}return n};let Ox;const TY=e=>{var t;if(!rr)return 0;if(Ox!==void 0)return Ox;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 o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Ox=r-i,Ox};function wD(e,t){if(!rr)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 o=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=o+t.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;o<a?e.scrollTop=o:i>s&&(e.scrollTop=i-e.clientHeight)}function Twe(e,t,n,r,o){const i=Date.now();let a;const s=()=>{const u=Date.now()-i,f=Yse(u>r?r:u,t,n,r);Y2(e)?e.scrollTo(window.pageXOffset,f):e.scrollTop=f,u<r?a=ap(s):typeof o=="function"&&o()};return s(),()=>{a&&vm(a)}}const N6=(e,t)=>Y2(t)?e.ownerDocument.documentElement:t,I6=e=>Y2(e)?window.scrollY:e.scrollTop,wx=e=>{if(!rr||e==="")return null;if(Gt(e))try{return document.querySelector(e)}catch{return null}return e};/*! Element Plus Icons Vue v2.3.1 */var Pwe=xe({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),Dd=Pwe,$we=xe({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),sp=$we,Awe=xe({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),Es=Awe,Mwe=xe({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),SD=Mwe,Rwe=xe({name:"Back",__name:"back",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ge("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),Nwe=Rwe,Iwe=xe({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Dwe=Iwe,jwe=xe({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),xD=jwe,Lwe=xe({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Bwe=Lwe,Vwe=xe({name:"Check",__name:"check",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),x0=Vwe,Fwe=xe({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),zwe=Fwe,Qwe=xe({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ge("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"})]))}}),kD=Qwe,Wwe=xe({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),CD=Wwe,Ywe=xe({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ge("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),$p=Ywe,Uwe=xe({name:"Clock",__name:"clock",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ge("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),ge("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),PY=Uwe,Hwe=xe({name:"Close",__name:"close",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),Ts=Hwe,Zwe=xe({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),lp=Zwe,Xwe=xe({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),up=Xwe,qwe=xe({name:"Delete",__name:"delete",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),$Y=qwe,Kwe=xe({name:"Document",__name:"document",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Gwe=Kwe,Jwe=xe({name:"Download",__name:"download",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),eSe=Jwe,tSe=xe({name:"Edit",__name:"edit",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),ge("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),nSe=tSe,rSe=xe({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),AY=rSe,oSe=xe({name:"Hide",__name:"hide",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",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.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.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"}),ge("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),iSe=oSe,aSe=xe({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.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"})]))}}),ED=aSe,sSe=xe({name:"Loading",__name:"loading",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.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 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),yf=sSe,lSe=xe({name:"Minus",__name:"minus",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),uSe=lSe,cSe=xe({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),iO=cSe,fSe=xe({name:"More",__name:"more",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),dSe=fSe,hSe=xe({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),pSe=hSe,gSe=xe({name:"Plus",__name:"plus",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),oC=gSe,mSe=xe({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),vSe=mSe,ySe=xe({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),bSe=ySe,_Se=xe({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),MY=_Se,OSe=xe({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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.118M512 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.412M512 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 512"})]))}}),wSe=OSe,SSe=xe({name:"Search",__name:"search",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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 704"})]))}}),RY=SSe,xSe=xe({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),kSe=xSe,CSe=xe({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),ESe=CSe,TSe=xe({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("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"})]))}}),Sx=TSe,PSe=xe({name:"Star",__name:"star",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),$Se=PSe,ASe=xe({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),NY=ASe,MSe=xe({name:"Upload",__name:"upload",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),RSe=MSe,NSe=xe({name:"View",__name:"view",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ISe=NSe,DSe=xe({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),U2=DSe,jSe=xe({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),IY=jSe,LSe=xe({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(U(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ge("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),BSe=LSe;const DY="__epPropKey",Le=e=>e,VSe=e=>$n(e)&&!!e[DY],xc=(e,t)=>{if(!$n(e)||VSe(e))return e;const{values:n,required:r,default:o,type:i,validator:a}=e,l={type:i,required:!!r,validator:n||a?u=>{let f=!1,h=[];if(n&&(h=Array.from(n),sr(e,"default")&&h.push(o),f||(f=h.includes(u))),a&&(f||(f=a(u))),!f&&h.length>0){const m=[...new Set(h)].map(y=>JSON.stringify(y)).join(", ");$ie(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${m}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[DY]:!0};return sr(e,"default")&&(l.default=o),l},pt=e=>Wy(Object.entries(e).map(([t,n])=>[t,xc(n,t)])),Wr=Le([String,Object,Function]),TD={Close:Ts},PD={Close:Ts,SuccessFilled:NY,InfoFilled:ED,WarningFilled:U2,CircleCloseFilled:CD},cp={success:NY,warning:U2,error:CD,info:ED},$D={validating:yf,success:kD,error:$p},gn=(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},jY=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),FSe=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Co=e=>(e.install=zr,e),H2=(...e)=>t=>{e.forEach(n=>{rn(n)?n(t):n.value=t})},Yt={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"},zSe=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],iA=["sun","mon","tue","wed","thu","fri","sat"],Tn="update:modelValue",uo="change",Ps="input",D6=Symbol("INSTALLED_KEY"),$f=["","default","small","large"],LY=e=>["",...$f].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||{});function LM(e){return wo(e)&&e.type===Pt}function QSe(e){return wo(e)&&e.type===Cs}function WSe(e){return wo(e)&&!LM(e)&&!QSe(e)}const YSe=e=>{if(!wo(e))return{};const t=e.props||{},n=(wo(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(o=>{sr(n[o],"default")&&(r[o]=n[o].default)}),Object.keys(t).forEach(o=>{r[$u(o)]=t[o]}),r},USe=e=>{if(!Et(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Zh=e=>{const t=Et(e)?e:[e],n=[];return t.forEach(r=>{var o;Et(r)?n.push(...Zh(r)):wo(r)&&Et(r.children)?n.push(...Zh(r.children)):(n.push(r),wo(r)&&((o=r.component)==null?void 0:o.subTree)&&n.push(...Zh(r.component.subTree)))}),n},j6=e=>[...new Set(e)],ks=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],HSe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),xo=e=>e;function ZSe(e){let t=0;const n=(...r)=>{t&&vm(t),t=ap(()=>{e(...r),t=0})};return n.cancel=()=>{vm(t),t=0},n}const XSe=["class","style"],qSe=/^on[A-Z]/,AD=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=W(()=>((n==null?void 0:n.value)||[]).concat(XSe)),o=En();return W(o?()=>{var i;return Wy(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&qSe.test(a))))}:()=>({}))},Xh=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},a)=>{at(()=>v(a),s=>{},{immediate:!0})},BY=(e,t,n,r)=>{let o={offsetX:0,offsetY:0};const i=u=>{const f=u.clientX,h=u.clientY,{offsetX:m,offsetY:y}=o,O=e.value.getBoundingClientRect(),b=O.left,k=O.top,C=O.width,P=O.height,$=document.documentElement.clientWidth,T=document.documentElement.clientHeight,A=-b+m,R=-k+y,B=$-b-C+m,I=T-k-P+y,N=L=>{let V=m+L.clientX-f,X=y+L.clientY-h;r!=null&&r.value||(V=Math.min(Math.max(V,A),B),X=Math.min(Math.max(X,R),I)),o={offsetX:V,offsetY:X},e.value&&(e.value.style.transform=`translate(${Qo(V)}, ${Qo(X)})`)},j=()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",j)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",j)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)},l=()=>{o={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return vn(()=>{Ba(()=>{n.value?a():s()})}),qr(()=>{s()}),{resetPostion:l}};var KSe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},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"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const GSe=e=>(t,n)=>JSe(t,n,v(e)),JSe=(e,t,n)=>No(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var i;return`${(i=t==null?void 0:t[o])!=null?i:`{${o}}`}`}),exe=e=>{const t=W(()=>v(e).name),n=no(e)?e:ee(e);return{lang:t,locale:n,t:GSe(e)}},VY=Symbol("localeContextKey"),ir=e=>{const t=e||$t(VY,ee());return exe(W(()=>t.value||KSe))},aO="el",txe="is-",Mg=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},FY=Symbol("namespaceContextKey"),MD=e=>{const t=e||(En()?$t(FY,ee(aO)):ee(aO));return W(()=>v(t)||aO)},ut=(e,t)=>{const n=MD(t);return{namespace:n,b:(b="")=>Mg(n.value,e,b,"",""),e:b=>b?Mg(n.value,e,"",b,""):"",m:b=>b?Mg(n.value,e,"","",b):"",be:(b,k)=>b&&k?Mg(n.value,e,b,k,""):"",em:(b,k)=>b&&k?Mg(n.value,e,"",b,k):"",bm:(b,k)=>b&&k?Mg(n.value,e,b,"",k):"",bem:(b,k,C)=>b&&k&&C?Mg(n.value,e,b,k,C):"",is:(b,...k)=>{const C=k.length>=1?k[0]:!0;return b&&C?`${txe}${b}`:""},cssVar:b=>{const k={};for(const C in b)b[C]&&(k[`--${n.value}-${C}`]=b[C]);return k},cssVarName:b=>`--${n.value}-${b}`,cssVarBlock:b=>{const k={};for(const C in b)b[C]&&(k[`--${n.value}-${e}-${C}`]=b[C]);return k},cssVarBlockName:b=>`--${n.value}-${e}-${b}`}},RD=(e,t={})=>{no(e)||Ri("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ut("popup"),r=W(()=>n.bm("parent","hidden"));if(!rr||Gs(document.body,r.value))return;let o=0,i=!1,a="0";const s=()=>{setTimeout(()=>{ls(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=a)},200)};at(e,l=>{if(!l){s();return}i=!Gs(document.body,r.value),i&&(a=document.body.style.width),o=TY(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,f=Lh(document.body,"overflowY");o>0&&(u||f==="scroll")&&i&&(document.body.style.width=`calc(100% - ${o}px)`),Ou(document.body,r.value)}),Hz(()=>s())},nxe=xc({type:Le(Boolean),default:null}),rxe=xc({type:Le(Function)}),oxe=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:nxe,[n]:rxe};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:f,onHide:h})=>{const m=En(),{emit:y}=m,O=m.props,b=W(()=>rn(O[n])),k=W(()=>O[e]===null),C=B=>{a.value!==!0&&(a.value=!0,s&&(s.value=B),rn(f)&&f(B))},P=B=>{a.value!==!1&&(a.value=!1,s&&(s.value=B),rn(h)&&h(B))},$=B=>{if(O.disabled===!0||rn(u)&&!u())return;const I=b.value&&rr;I&&y(t,!0),(k.value||!I)&&C(B)},T=B=>{if(O.disabled===!0||!rr)return;const I=b.value&&rr;I&&y(t,!1),(k.value||!I)&&P(B)},A=B=>{!qo(B)||(O.disabled&&B?b.value&&y(t,!1):a.value!==B&&(B?C():P()))},R=()=>{a.value?T():$()};return at(()=>O[e],A),l&&m.appContext.config.globalProperties.$route!==void 0&&at(()=>({...m.proxy.$route}),()=>{l.value&&a.value&&T()}),vn(()=>{A(O[e])}),{hide:T,show:$,toggle:R,hasUpdateHandler:b}},useModelToggleProps:o,useModelToggleEmits:r}},zY=e=>{const t=En();return W(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var tl="top",Nu="bottom",Iu="right",nl="left",ND="auto",D1=[tl,Nu,Iu,nl],Uy="start",FO="end",ixe="clippingParents",QY="viewport",P_="popper",axe="reference",L6=D1.reduce(function(e,t){return e.concat([t+"-"+Uy,t+"-"+FO])},[]),Mm=[].concat(D1,[ND]).reduce(function(e,t){return e.concat([t,t+"-"+Uy,t+"-"+FO])},[]),sxe="beforeRead",lxe="read",uxe="afterRead",cxe="beforeMain",fxe="main",dxe="afterMain",hxe="beforeWrite",pxe="write",gxe="afterWrite",mxe=[sxe,lxe,uxe,cxe,fxe,dxe,hxe,pxe,gxe];function bf(e){return e?(e.nodeName||"").toLowerCase():null}function kc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hy(e){var t=kc(e).Element;return e instanceof t||e instanceof Element}function Tu(e){var t=kc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ID(e){if(typeof ShadowRoot=="undefined")return!1;var t=kc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vxe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Tu(i)||!bf(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function yxe(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 o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Tu(o)||!bf(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var WY={name:"applyStyles",enabled:!0,phase:"write",fn:vxe,effect:yxe,requires:["computeStyles"]};function gf(e){return e.split("-")[0]}var om=Math.max,iC=Math.min,Zy=Math.round;function Xy(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Tu(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Zy(n.width)/a||1),i>0&&(o=Zy(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function DD(e){var t=Xy(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 YY(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ID(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Od(e){return kc(e).getComputedStyle(e)}function bxe(e){return["table","td","th"].indexOf(bf(e))>=0}function Ap(e){return((Hy(e)?e.ownerDocument:e.document)||window.document).documentElement}function Z2(e){return bf(e)==="html"?e:e.assignedSlot||e.parentNode||(ID(e)?e.host:null)||Ap(e)}function B6(e){return!Tu(e)||Od(e).position==="fixed"?null:e.offsetParent}function _xe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Tu(e)){var r=Od(e);if(r.position==="fixed")return null}var o=Z2(e);for(ID(o)&&(o=o.host);Tu(o)&&["html","body"].indexOf(bf(o))<0;){var i=Od(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function j1(e){for(var t=kc(e),n=B6(e);n&&bxe(n)&&Od(n).position==="static";)n=B6(n);return n&&(bf(n)==="html"||bf(n)==="body"&&Od(n).position==="static")?t:n||_xe(e)||t}function jD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sO(e,t,n){return om(e,iC(t,n))}function Oxe(e,t,n){var r=sO(e,t,n);return r>n?n:r}function UY(){return{top:0,right:0,bottom:0,left:0}}function HY(e){return Object.assign({},UY(),e)}function ZY(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wxe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,HY(typeof e!="number"?e:ZY(e,D1))};function Sxe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=gf(n.placement),l=jD(s),u=[nl,Iu].indexOf(s)>=0,f=u?"height":"width";if(!(!i||!a)){var h=wxe(o.padding,n),m=DD(i),y=l==="y"?tl:nl,O=l==="y"?Nu:Iu,b=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],k=a[l]-n.rects.reference[l],C=j1(i),P=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,$=b/2-k/2,T=h[y],A=P-m[f]-h[O],R=P/2-m[f]/2+$,B=sO(T,R,A),I=l;n.modifiersData[r]=(t={},t[I]=B,t.centerOffset=B-R,t)}}function xxe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!YY(t.elements.popper,o)||(t.elements.arrow=o))}var kxe={name:"arrow",enabled:!0,phase:"main",fn:Sxe,effect:xxe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qy(e){return e.split("-")[1]}var Cxe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Exe(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Zy(t*o)/o||0,y:Zy(n*o)/o||0}}function V6(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=a.x,y=m===void 0?0:m,O=a.y,b=O===void 0?0:O,k=typeof f=="function"?f({x:y,y:b}):{x:y,y:b};y=k.x,b=k.y;var C=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),$=nl,T=tl,A=window;if(u){var R=j1(n),B="clientHeight",I="clientWidth";if(R===kc(n)&&(R=Ap(n),Od(R).position!=="static"&&s==="absolute"&&(B="scrollHeight",I="scrollWidth")),R=R,o===tl||(o===nl||o===Iu)&&i===FO){T=Nu;var N=h&&R===A&&A.visualViewport?A.visualViewport.height:R[B];b-=N-r.height,b*=l?1:-1}if(o===nl||(o===tl||o===Nu)&&i===FO){$=Iu;var j=h&&R===A&&A.visualViewport?A.visualViewport.width:R[I];y-=j-r.width,y*=l?1:-1}}var L=Object.assign({position:s},u&&Cxe),V=f===!0?Exe({x:y,y:b}):{x:y,y:b};if(y=V.x,b=V.y,l){var X;return Object.assign({},L,(X={},X[T]=P?"0":"",X[$]=C?"0":"",X.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",X))}return Object.assign({},L,(t={},t[T]=P?b+"px":"",t[$]=C?y+"px":"",t.transform="",t))}function Txe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:gf(t.placement),variation:qy(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V6(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V6(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var XY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Txe,data:{}},xx={passive:!0};function Pxe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=kc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,xx)}),s&&l.addEventListener("resize",n.update,xx),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,xx)}),s&&l.removeEventListener("resize",n.update,xx)}}var qY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pxe,data:{}},$xe={left:"right",right:"left",bottom:"top",top:"bottom"};function vk(e){return e.replace(/left|right|bottom|top/g,function(t){return $xe[t]})}var Axe={start:"end",end:"start"};function F6(e){return e.replace(/start|end/g,function(t){return Axe[t]})}function LD(e){var t=kc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function BD(e){return Xy(Ap(e)).left+LD(e).scrollLeft}function Mxe(e){var t=kc(e),n=Ap(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+BD(e),y:s}}function Rxe(e){var t,n=Ap(e),r=LD(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=om(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=om(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+BD(e),l=-r.scrollTop;return Od(o||n).direction==="rtl"&&(s+=om(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function VD(e){var t=Od(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function KY(e){return["html","body","#document"].indexOf(bf(e))>=0?e.ownerDocument.body:Tu(e)&&VD(e)?e:KY(Z2(e))}function lO(e,t){var n;t===void 0&&(t=[]);var r=KY(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=kc(r),a=o?[i].concat(i.visualViewport||[],VD(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(lO(Z2(a)))}function BM(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nxe(e){var t=Xy(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 z6(e,t){return t===QY?BM(Mxe(e)):Hy(t)?Nxe(t):BM(Rxe(Ap(e)))}function Ixe(e){var t=lO(Z2(e)),n=["absolute","fixed"].indexOf(Od(e).position)>=0,r=n&&Tu(e)?j1(e):e;return Hy(r)?t.filter(function(o){return Hy(o)&&YY(o,r)&&bf(o)!=="body"}):[]}function Dxe(e,t,n){var r=t==="clippingParents"?Ixe(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,l){var u=z6(e,l);return s.top=om(u.top,s.top),s.right=iC(u.right,s.right),s.bottom=iC(u.bottom,s.bottom),s.left=om(u.left,s.left),s},z6(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function GY(e){var t=e.reference,n=e.element,r=e.placement,o=r?gf(r):null,i=r?qy(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case tl:l={x:a,y:t.y-n.height};break;case Nu:l={x:a,y:t.y+t.height};break;case Iu:l={x:t.x+t.width,y:s};break;case nl:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?jD(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case Uy:l[u]=l[u]-(t[f]/2-n[f]/2);break;case FO:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function zO(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,a=i===void 0?ixe:i,s=n.rootBoundary,l=s===void 0?QY:s,u=n.elementContext,f=u===void 0?P_:u,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,O=y===void 0?0:y,b=HY(typeof O!="number"?O:ZY(O,D1)),k=f===P_?axe:P_,C=e.rects.popper,P=e.elements[m?k:f],$=Dxe(Hy(P)?P:P.contextElement||Ap(e.elements.popper),a,l),T=Xy(e.elements.reference),A=GY({reference:T,element:C,strategy:"absolute",placement:o}),R=BM(Object.assign({},C,A)),B=f===P_?R:T,I={top:$.top-B.top+b.top,bottom:B.bottom-$.bottom+b.bottom,left:$.left-B.left+b.left,right:B.right-$.right+b.right},N=e.modifiersData.offset;if(f===P_&&N){var j=N[o];Object.keys(I).forEach(function(L){var V=[Iu,Nu].indexOf(L)>=0?1:-1,X=[tl,Nu].indexOf(L)>=0?"y":"x";I[L]+=j[X]*V})}return I}function jxe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Mm:l,f=qy(r),h=f?s?L6:L6.filter(function(O){return qy(O)===f}):D1,m=h.filter(function(O){return u.indexOf(O)>=0});m.length===0&&(m=h);var y=m.reduce(function(O,b){return O[b]=zO(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[gf(b)],O},{});return Object.keys(y).sort(function(O,b){return y[O]-y[b]})}function Lxe(e){if(gf(e)===ND)return[];var t=vk(e);return[F6(e),t,F6(t)]}function Bxe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,O=y===void 0?!0:y,b=n.allowedAutoPlacements,k=t.options.placement,C=gf(k),P=C===k,$=l||(P||!O?[vk(k)]:Lxe(k)),T=[k].concat($).reduce(function(ze,Ee){return ze.concat(gf(Ee)===ND?jxe(t,{placement:Ee,boundary:f,rootBoundary:h,padding:u,flipVariations:O,allowedAutoPlacements:b}):Ee)},[]),A=t.rects.reference,R=t.rects.popper,B=new Map,I=!0,N=T[0],j=0;j<T.length;j++){var L=T[j],V=gf(L),X=qy(L)===Uy,oe=[tl,Nu].indexOf(V)>=0,K=oe?"width":"height",Z=zO(t,{placement:L,boundary:f,rootBoundary:h,altBoundary:m,padding:u}),re=oe?X?Iu:nl:X?Nu:tl;A[K]>R[K]&&(re=vk(re));var J=vk(re),z=[];if(i&&z.push(Z[V]<=0),s&&z.push(Z[re]<=0,Z[J]<=0),z.every(function(ze){return ze})){N=L,I=!1;break}B.set(L,z)}if(I)for(var q=O?3:1,ue=function(ze){var Ee=T.find(function(Be){var Ae=B.get(Be);if(Ae)return Ae.slice(0,ze).every(function(_e){return _e})});if(Ee)return N=Ee,"break"},he=q;he>0;he--){var le=ue(he);if(le==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var Vxe={name:"flip",enabled:!0,phase:"main",fn:Bxe,requiresIfExists:["offset"],data:{_skip:!1}};function Q6(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 W6(e){return[tl,Iu,Nu,nl].some(function(t){return e[t]>=0})}function Fxe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=zO(t,{elementContext:"reference"}),s=zO(t,{altBoundary:!0}),l=Q6(a,r),u=Q6(s,o,i),f=W6(l),h=W6(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}var zxe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fxe};function Qxe(e,t,n){var r=gf(e),o=[nl,tl].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[nl,Iu].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Wxe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Mm.reduce(function(f,h){return f[h]=Qxe(h,t.rects,i),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var Yxe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wxe};function Uxe(e){var t=e.state,n=e.name;t.modifiersData[n]=GY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var JY={name:"popperOffsets",enabled:!0,phase:"read",fn:Uxe,data:{}};function Hxe(e){return e==="x"?"y":"x"}function Zxe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,h=n.padding,m=n.tether,y=m===void 0?!0:m,O=n.tetherOffset,b=O===void 0?0:O,k=zO(t,{boundary:l,rootBoundary:u,padding:h,altBoundary:f}),C=gf(t.placement),P=qy(t.placement),$=!P,T=jD(C),A=Hxe(T),R=t.modifiersData.popperOffsets,B=t.rects.reference,I=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,j=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(R){if(i){var X,oe=T==="y"?tl:nl,K=T==="y"?Nu:Iu,Z=T==="y"?"height":"width",re=R[T],J=re+k[oe],z=re-k[K],q=y?-I[Z]/2:0,ue=P===Uy?B[Z]:I[Z],he=P===Uy?-I[Z]:-B[Z],le=t.elements.arrow,ze=y&&le?DD(le):{width:0,height:0},Ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:UY(),Be=Ee[oe],Ae=Ee[K],_e=sO(0,B[Z],ze[Z]),ve=$?B[Z]/2-q-_e-Be-j.mainAxis:ue-_e-Be-j.mainAxis,Ne=$?-B[Z]/2+q+_e+Ae+j.mainAxis:he+_e+Ae+j.mainAxis,Se=t.elements.arrow&&j1(t.elements.arrow),fe=Se?T==="y"?Se.clientTop||0:Se.clientLeft||0:0,ye=(X=L==null?void 0:L[T])!=null?X:0,He=re+ve-ye-fe,be=re+Ne-ye,Ie=sO(y?iC(J,He):J,re,y?om(z,be):z);R[T]=Ie,V[T]=Ie-re}if(s){var De,Me=T==="x"?tl:nl,qe=T==="x"?Nu:Iu,Oe=R[A],Je=A==="y"?"height":"width",lt=Oe+k[Me],Ke=Oe-k[qe],et=[tl,nl].indexOf(C)!==-1,bt=(De=L==null?void 0:L[A])!=null?De:0,Ot=et?lt:Oe-B[Je]-I[Je]-bt+j.altAxis,Qt=et?Oe+B[Je]+I[Je]-bt-j.altAxis:Ke,kt=y&&et?Oxe(Ot,Oe,Qt):sO(y?Ot:lt,Oe,y?Qt:Ke);R[A]=kt,V[A]=kt-Oe}t.modifiersData[r]=V}}var Xxe={name:"preventOverflow",enabled:!0,phase:"main",fn:Zxe,requiresIfExists:["offset"]};function qxe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Kxe(e){return e===kc(e)||!Tu(e)?LD(e):qxe(e)}function Gxe(e){var t=e.getBoundingClientRect(),n=Zy(t.width)/e.offsetWidth||1,r=Zy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Jxe(e,t,n){n===void 0&&(n=!1);var r=Tu(t),o=Tu(t)&&Gxe(t),i=Ap(t),a=Xy(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((bf(t)!=="body"||VD(i))&&(s=Kxe(t)),Tu(t)?(l=Xy(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=BD(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function eke(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function tke(e){var t=eke(e);return mxe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function nke(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rke(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Y6={placement:"bottom",modifiers:[],strategy:"absolute"};function U6(){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 FD(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Y6:o;return function(a,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Y6,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},f=[],h=!1,m={state:u,setOptions:function(b){var k=typeof b=="function"?b(u.options):b;O(),u.options=Object.assign({},i,u.options,k),u.scrollParents={reference:Hy(a)?lO(a):a.contextElement?lO(a.contextElement):[],popper:lO(s)};var C=tke(rke([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(P){return P.enabled}),y(),m.update()},forceUpdate:function(){if(!h){var b=u.elements,k=b.reference,C=b.popper;if(U6(k,C)){u.rects={reference:Jxe(k,j1(C),u.options.strategy==="fixed"),popper:DD(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var P=0;P<u.orderedModifiers.length;P++){if(u.reset===!0){u.reset=!1,P=-1;continue}var $=u.orderedModifiers[P],T=$.fn,A=$.options,R=A===void 0?{}:A,B=$.name;typeof T=="function"&&(u=T({state:u,options:R,name:B,instance:m})||u)}}}},update:nke(function(){return new Promise(function(b){m.forceUpdate(),b(u)})}),destroy:function(){O(),h=!0}};if(!U6(a,s))return m;m.setOptions(l).then(function(b){!h&&l.onFirstUpdate&&l.onFirstUpdate(b)});function y(){u.orderedModifiers.forEach(function(b){var k=b.name,C=b.options,P=C===void 0?{}:C,$=b.effect;if(typeof $=="function"){var T=$({state:u,name:k,instance:m,options:P}),A=function(){};f.push(T||A)}})}function O(){f.forEach(function(b){return b()}),f=[]}return m}}FD();var oke=[qY,JY,XY,WY];FD({defaultModifiers:oke});var ike=[qY,JY,XY,WY,Yxe,Vxe,Xxe,kxe,zxe],ake=FD({defaultModifiers:ike});const ske=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=lke(l);Object.assign(a.value,u)},requires:["computeStyles"]},o=W(()=>{const{onFirstUpdate:l,placement:u,strategy:f,modifiers:h}=v(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:f||"absolute",modifiers:[...h||[],r,{name:"applyStyles",enabled:!1}]}}),i=to(),a=ee({styles:{popper:{position:v(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{!i.value||(i.value.destroy(),i.value=void 0)};return at(o,l=>{const u=v(i);u&&u.setOptions(l)},{deep:!0}),at([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=ake(l,u,v(o)))}),qr(()=>{s()}),{state:W(()=>{var l;return{...((l=v(i))==null?void 0:l.state)||{}}}),styles:W(()=>v(a).styles),attributes:W(()=>v(a).attributes),update:()=>{var l;return(l=v(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=v(i))==null?void 0:l.forceUpdate()},instanceRef:W(()=>v(i))}};function lke(e){const t=Object.keys(e.elements),n=Wy(t.map(o=>[o,e.styles[o]||{}])),r=Wy(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const zD=e=>{if(!e)return{onClick:zr,onMousedown:zr,onMouseup:zr};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},uke=(e,t=0)=>{if(t===0)return e;const n=ee(!1);let r=null;const o=()=>{r&&clearTimeout(r),r=setTimeout(()=>{n.value=e.value},t)};return vn(o),at(()=>e.value,i=>{i?o():n.value=i}),n};function H6(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return k1(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Z6={prefix:Math.floor(Math.random()*1e4),current:0},cke=Symbol("elIdInjection"),QD=()=>En()?$t(cke,Z6):Z6,Fa=e=>{const t=QD(),n=MD();return W(()=>v(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ay=[];const X6=e=>{const t=e;t.key===Yt.esc&&ay.forEach(n=>n(t))},fke=e=>{vn(()=>{ay.length===0&&document.addEventListener("keydown",X6),rr&&ay.push(e)}),qr(()=>{ay=ay.filter(t=>t!==e),ay.length===0&&rr&&document.removeEventListener("keydown",X6)})};let q6;const eU=()=>{const e=MD(),t=QD(),n=W(()=>`${e.value}-popper-container-${t.prefix}`),r=W(()=>`#${n.value}`);return{id:n,selector:r}},dke=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},hke=()=>{const{id:e,selector:t}=eU();return b2(()=>{!rr||!q6&&!document.body.querySelector(t.value)&&(q6=dke(e.value))}),{id:e,selector:t}},pke=pt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),gke=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=H6(),{registerTimeout:a,cancelTimeout:s}=H6();return{onOpen:f=>{i(()=>{r(f);const h=v(n);tn(h)&&h>0&&a(()=>{o(f)},h)},v(e))},onClose:f=>{s(),i(()=>{o(f)},v(t))}}},tU=Symbol("elForwardRef"),mke=e=>{Yn(tU,{setForwardRef:n=>{e.value=n}})},vke=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),K6={current:0},G6=ee(0),nU=2e3,J6=Symbol("elZIndexContextKey"),rU=Symbol("zIndexContextKey"),k0=e=>{const t=En()?$t(J6,K6):K6,n=e||(En()?$t(rU,void 0):void 0),r=W(()=>{const a=v(n);return tn(a)?a:nU}),o=W(()=>r.value+G6.value),i=()=>(t.current++,G6.value=t.current,o.value);return!rr&&$t(J6),{initialZIndex:r,currentZIndex:o,nextZIndex:i}},Ky=Math.min,im=Math.max,aC=Math.round,kx=Math.floor,fp=e=>({x:e,y:e}),yke={left:"right",right:"left",bottom:"top",top:"bottom"},bke={start:"end",end:"start"};function VM(e,t,n){return im(e,Ky(t,n))}function L1(e,t){return typeof e=="function"?e(t):e}function ym(e){return e.split("-")[0]}function B1(e){return e.split("-")[1]}function oU(e){return e==="x"?"y":"x"}function WD(e){return e==="y"?"height":"width"}function X2(e){return["top","bottom"].includes(ym(e))?"y":"x"}function YD(e){return oU(X2(e))}function _ke(e,t,n){n===void 0&&(n=!1);const r=B1(e),o=YD(e),i=WD(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=sC(a)),[a,sC(a)]}function Oke(e){const t=sC(e);return[FM(e),t,FM(t)]}function FM(e){return e.replace(/start|end/g,t=>bke[t])}function wke(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function Ske(e,t,n,r){const o=B1(e);let i=wke(ym(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(FM)))),i}function sC(e){return e.replace(/left|right|bottom|top/g,t=>yke[t])}function xke(e){return{top:0,right:0,bottom:0,left:0,...e}}function iU(e){return typeof e!="number"?xke(e):{top:e,right:e,bottom:e,left:e}}function lC(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function eB(e,t,n){let{reference:r,floating:o}=e;const i=X2(t),a=YD(t),s=WD(a),l=ym(t),u=i==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let y;switch(l){case"top":y={x:f,y:r.y-o.height};break;case"bottom":y={x:f,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:h};break;case"left":y={x:r.x-o.width,y:h};break;default:y={x:r.x,y:r.y}}switch(B1(t)){case"start":y[a]-=m*(n&&u?-1:1);break;case"end":y[a]+=m*(n&&u?-1:1);break}return y}const kke=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=eB(u,r,l),m=r,y={},O=0;for(let b=0;b<s.length;b++){const{name:k,fn:C}=s[b],{x:P,y:$,data:T,reset:A}=await C({x:f,y:h,initialPlacement:r,placement:m,strategy:o,middlewareData:y,rects:u,platform:a,elements:{reference:e,floating:t}});if(f=P!=null?P:f,h=$!=null?$:h,y={...y,[k]:{...y[k],...T}},A&&O<=50){O++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(u=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:h}=eB(u,m,l)),b=-1;continue}}return{x:f,y:h,placement:m,strategy:o,middlewareData:y}};async function UD(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:y=0}=L1(t,e),O=iU(y),k=s[m?h==="floating"?"reference":"floating":h],C=lC(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(k)))==null||n?k:k.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),P=h==="floating"?{...a.floating,x:r,y:o}:a.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},A=lC(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:$,strategy:l}):P);return{top:(C.top-A.top+O.top)/T.y,bottom:(A.bottom-C.bottom+O.bottom)/T.y,left:(C.left-A.left+O.left)/T.x,right:(A.right-C.right+O.right)/T.x}}const aU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=L1(e,t)||{};if(u==null)return{};const h=iU(f),m={x:n,y:r},y=YD(o),O=WD(y),b=await a.getDimensions(u),k=y==="y",C=k?"top":"left",P=k?"bottom":"right",$=k?"clientHeight":"clientWidth",T=i.reference[O]+i.reference[y]-m[y]-i.floating[O],A=m[y]-i.reference[y],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let B=R?R[$]:0;(!B||!await(a.isElement==null?void 0:a.isElement(R)))&&(B=s.floating[$]||i.floating[O]);const I=T/2-A/2,N=B/2-b[O]/2-1,j=Ky(h[C],N),L=Ky(h[P],N),V=j,X=B-b[O]-L,oe=B/2-b[O]/2+I,K=VM(V,oe,X),Z=!l.arrow&&B1(o)!=null&&oe!=K&&i.reference[O]/2-(oe<V?j:L)-b[O]/2<0,re=Z?oe<V?oe-V:oe-X:0;return{[y]:m[y]+re,data:{[y]:K,centerOffset:oe-K-re,...Z&&{alignmentOffset:re}},reset:Z}}}),Cke=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:b=!0,...k}=L1(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const C=ym(o),P=ym(s)===s,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),T=m||(P||!b?[sC(s)]:Oke(s));!m&&O!=="none"&&T.push(...Ske(s,b,O,$));const A=[s,...T],R=await UD(t,k),B=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&B.push(R[C]),h){const V=_ke(o,a,$);B.push(R[V[0]],R[V[1]])}if(I=[...I,{placement:o,overflows:B}],!B.every(V=>V<=0)){var N,j;const V=(((N=i.flip)==null?void 0:N.index)||0)+1,X=A[V];if(X)return{data:{index:V,overflows:I},reset:{placement:X}};let oe=(j=I.filter(K=>K.overflows[0]<=0).sort((K,Z)=>K.overflows[1]-Z.overflows[1])[0])==null?void 0:j.placement;if(!oe)switch(y){case"bestFit":{var L;const K=(L=I.map(Z=>[Z.placement,Z.overflows.filter(re=>re>0).reduce((re,J)=>re+J,0)]).sort((Z,re)=>Z[1]-re[1])[0])==null?void 0:L[0];K&&(oe=K);break}case"initialPlacement":oe=s;break}if(o!==oe)return{reset:{placement:oe}}}return{}}}};async function Eke(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ym(n),s=B1(n),l=X2(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&l?-1:1,h=L1(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:O}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&typeof O=="number"&&(y=s==="end"?O*-1:O),l?{x:y*f,y:m*u}:{x:m*u,y:y*f}}const sU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await Eke(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Tke=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:k=>{let{x:C,y:P}=k;return{x:C,y:P}}},...l}=L1(e,t),u={x:n,y:r},f=await UD(t,l),h=X2(ym(o)),m=oU(h);let y=u[m],O=u[h];if(i){const k=m==="y"?"top":"left",C=m==="y"?"bottom":"right",P=y+f[k],$=y-f[C];y=VM(P,y,$)}if(a){const k=h==="y"?"top":"left",C=h==="y"?"bottom":"right",P=O+f[k],$=O-f[C];O=VM(P,O,$)}const b=s.fn({...t,[m]:y,[h]:O});return{...b,data:{x:b.x-n,y:b.y-r}}}}};function dp(e){return lU(e)?(e.nodeName||"").toLowerCase():"#document"}function Bl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jd(e){var t;return(t=(lU(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lU(e){return e instanceof Node||e instanceof Bl(e).Node}function wd(e){return e instanceof Element||e instanceof Bl(e).Element}function _f(e){return e instanceof HTMLElement||e instanceof Bl(e).HTMLElement}function tB(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Bl(e).ShadowRoot}function V1(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Du(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Pke(e){return["table","td","th"].includes(dp(e))}function HD(e){const t=ZD(),n=Du(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $ke(e){let t=Gy(e);for(;_f(t)&&!q2(t);){if(HD(t))return t;t=Gy(t)}return null}function ZD(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function q2(e){return["html","body","#document"].includes(dp(e))}function Du(e){return Bl(e).getComputedStyle(e)}function K2(e){return wd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Gy(e){if(dp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tB(e)&&e.host||jd(e);return tB(t)?t.host:t}function uU(e){const t=Gy(e);return q2(t)?e.ownerDocument?e.ownerDocument.body:e.body:_f(t)&&V1(t)?t:uU(t)}function QO(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=uU(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Bl(o);return i?t.concat(a,a.visualViewport||[],V1(o)?o:[],a.frameElement&&n?QO(a.frameElement):[]):t.concat(o,QO(o,[],n))}function cU(e){const t=Du(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_f(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=aC(n)!==i||aC(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function XD(e){return wd(e)?e:e.contextElement}function Ey(e){const t=XD(e);if(!_f(t))return fp(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=cU(t);let a=(i?aC(n.width):n.width)/r,s=(i?aC(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Ake=fp(0);function fU(e){const t=Bl(e);return!ZD()||!t.visualViewport?Ake:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mke(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bl(e)?!1:t}function bm(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=XD(e);let a=fp(1);t&&(r?wd(r)&&(a=Ey(r)):a=Ey(e));const s=Mke(i,n,r)?fU(i):fp(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(i){const m=Bl(i),y=r&&wd(r)?Bl(r):r;let O=m.frameElement;for(;O&&r&&y!==m;){const b=Ey(O),k=O.getBoundingClientRect(),C=Du(O),P=k.left+(O.clientLeft+parseFloat(C.paddingLeft))*b.x,$=k.top+(O.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,h*=b.y,l+=P,u+=$,O=Bl(O).frameElement}}return lC({width:f,height:h,x:l,y:u})}function Rke(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=_f(n),i=jd(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=fp(1);const l=fp(0);if((o||!o&&r!=="fixed")&&((dp(n)!=="body"||V1(i))&&(a=K2(n)),_f(n))){const u=bm(n);s=Ey(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function Nke(e){return Array.from(e.getClientRects())}function dU(e){return bm(jd(e)).left+K2(e).scrollLeft}function Ike(e){const t=jd(e),n=K2(e),r=e.ownerDocument.body,o=im(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=im(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+dU(e);const s=-n.scrollTop;return Du(r).direction==="rtl"&&(a+=im(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Dke(e,t){const n=Bl(e),r=jd(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=ZD();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function jke(e,t){const n=bm(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=_f(e)?Ey(e):fp(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function nB(e,t,n){let r;if(t==="viewport")r=Dke(e,n);else if(t==="document")r=Ike(jd(e));else if(wd(t))r=jke(t,n);else{const o=fU(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return lC(r)}function hU(e,t){const n=Gy(e);return n===t||!wd(n)||q2(n)?!1:Du(n).position==="fixed"||hU(n,t)}function Lke(e,t){const n=t.get(e);if(n)return n;let r=QO(e,[],!1).filter(s=>wd(s)&&dp(s)!=="body"),o=null;const i=Du(e).position==="fixed";let a=i?Gy(e):e;for(;wd(a)&&!q2(a);){const s=Du(a),l=HD(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||V1(a)&&!l&&hU(e,a))?r=r.filter(f=>f!==a):o=s,a=Gy(a)}return t.set(e,r),r}function Bke(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Lke(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,f)=>{const h=nB(t,f,o);return u.top=im(h.top,u.top),u.right=Ky(h.right,u.right),u.bottom=Ky(h.bottom,u.bottom),u.left=im(h.left,u.left),u},nB(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Vke(e){return cU(e)}function Fke(e,t,n){const r=_f(t),o=jd(t),i=n==="fixed",a=bm(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=fp(0);if(r||!r&&!i)if((dp(t)!=="body"||V1(o))&&(s=K2(t)),r){const u=bm(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=dU(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function rB(e,t){return!_f(e)||Du(e).position==="fixed"?null:t?t(e):e.offsetParent}function pU(e,t){const n=Bl(e);if(!_f(e))return n;let r=rB(e,t);for(;r&&Pke(r)&&Du(r).position==="static";)r=rB(r,t);return r&&(dp(r)==="html"||dp(r)==="body"&&Du(r).position==="static"&&!HD(r))?n:r||$ke(e)||n}const zke=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||pU,i=this.getDimensions;return{reference:Fke(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function Qke(e){return Du(e).direction==="rtl"}const Wke={convertOffsetParentRelativeRectToViewportRelativeRect:Rke,getDocumentElement:jd,getClippingRect:Bke,getOffsetParent:pU,getElementRects:zke,getClientRects:Nke,getDimensions:Vke,getScale:Ey,isElement:wd,isRTL:Qke};function Yke(e,t){let n=null,r;const o=jd(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:f,width:h,height:m}=e.getBoundingClientRect();if(s||t(),!h||!m)return;const y=kx(f),O=kx(o.clientWidth-(u+h)),b=kx(o.clientHeight-(f+m)),k=kx(u),P={rootMargin:-y+"px "+-O+"px "+-b+"px "+-k+"px",threshold:im(0,Ky(1,l))||1};let $=!0;function T(A){const R=A[0].intersectionRatio;if(R!==l){if(!$)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(T,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,P)}n.observe(e)}return a(!0),i}function Uke(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=XD(e),f=o||i?[...u?QO(u):[],...QO(t)]:[];f.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const h=u&&s?Yke(u,n):null;let m=-1,y=null;a&&(y=new ResizeObserver(C=>{let[P]=C;P&&P.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),u&&!l&&y.observe(u),y.observe(t));let O,b=l?bm(e):null;l&&k();function k(){const C=bm(e);b&&(C.x!==b.x||C.y!==b.y||C.width!==b.width||C.height!==b.height)&&n(),b=C,O=requestAnimationFrame(k)}return n(),()=>{f.forEach(C=>{o&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h&&h(),y&&y.disconnect(),y=null,l&&cancelAnimationFrame(O)}}const gU=(e,t,n)=>{const r=new Map,o={platform:Wke,...n},i={...o.platform,_c:r};return kke(e,t,{...o,platform:i})};pt({});const Hke=e=>{if(!rr)return;if(!e)return e;const t=Ks(e);return t||(no(e)?t:e)},Zke=({middleware:e,placement:t,strategy:n})=>{const r=ee(),o=ee(),i=ee(),a=ee(),s=ee({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!rr)return;const f=Hke(r),h=Ks(o);if(!f||!h)return;const m=await gU(f,h,{placement:v(t),strategy:v(n),middleware:v(e)});Yy(l).forEach(y=>{l[y].value=m[y]})};return vn(()=>{Ba(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:o}},Xke=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=v(e);return r?aU({element:r,padding:t}).fn(n):{}}});function qke(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:i,value:a}=e.value;if(o==null||i==null)return;const s=a.slice(0,Math.max(0,o)),l=a.slice(Math.max(0,i));t={selectionStart:o,selectionEnd:i,value:a,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:s}=t;if(i==null||a==null||s==null)return;let l=o.length;if(o.endsWith(a))l=o.length-a.length;else if(o.startsWith(i))l=i.length;else{const u=i[s-1],f=o.indexOf(u,s-1);f!==-1&&(l=f+1)}e.value.setSelectionRange(l,l)}return[n,r]}const Kke=(e,t,n)=>Zh(e.subTree).filter(i=>{var a;return wo(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),qD=(e,t)=>{const n={},r=to([]);return{children:r,addChild:a=>{n[a.uid]=a,r.value=Kke(e,t,n)},removeChild:a=>{delete n[a],r.value=r.value.filter(s=>s.uid!==a)}}},Ni=xc({type:String,values:$f,required:!1}),mU=Symbol("size"),vU=()=>{const e=$t(mU,{});return W(()=>v(e.size)||"")};function F1(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:o}={}){const i=En(),{emit:a}=i,s=to(),l=ee(!1),u=m=>{(rn(t)?t(m):!1)||l.value||(l.value=!0,a("focus",m),n==null||n())},f=m=>{var y;(rn(r)?r(m):!1)||m.relatedTarget&&((y=s.value)==null?void 0:y.contains(m.relatedTarget))||(l.value=!1,a("blur",m),o==null||o())},h=()=>{var m,y;((m=s.value)==null?void 0:m.contains(document.activeElement))&&s.value!==document.activeElement||(y=e.value)==null||y.focus()};return at(s,m=>{m&&m.setAttribute("tabindex","-1")}),Nr(s,"focus",u,!0),Nr(s,"blur",f,!0),Nr(s,"click",h,!0),{isFocused:l,wrapperRef:s,handleFocus:u,handleBlur:f}}function G2({afterComposition:e,emit:t}){const n=ee(!1),r=s=>{t==null||t("compositionstart",s),n.value=!0},o=s=>{var l;t==null||t("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,f=u[u.length-1]||"";n.value=!HSe(f)},i=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,Wt(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?i(s):o(s)},handleCompositionStart:r,handleCompositionUpdate:o,handleCompositionEnd:i}}const yU=Symbol("emptyValuesContextKey"),Gke=["",void 0,null],Jke=void 0,C0=pt({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>rn(e)?!e():!e}}),J2=(e,t)=>{const n=En()?$t(yU,ee({})):ee({}),r=W(()=>e.emptyValues||n.value.emptyValues||Gke),o=W(()=>rn(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:rn(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:Jke),i=a=>r.value.includes(a);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:i}},eCe=pt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),va=e=>_u(eCe,e),bU=Symbol(),uC=ee();function eE(e,t=void 0){const n=En()?$t(bU,uC):uC;return e?W(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function tE(e,t){const n=eE(),r=ut(e,W(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||aO})),o=ir(W(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=k0(W(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||nU})),a=W(()=>{var s;return v(t)||((s=n.value)==null?void 0:s.size)||""});return KD(W(()=>v(n)||{})),{ns:r,locale:o,zIndex:i,size:a}}const KD=(e,t,n=!1)=>{var r;const o=!!En(),i=o?eE():void 0,a=(r=t==null?void 0:t.provide)!=null?r:o?Yn:void 0;if(!a)return;const s=W(()=>{const l=v(e);return i!=null&&i.value?tCe(i.value,l):l});return a(bU,s),a(VY,W(()=>s.value.locale)),a(FY,W(()=>s.value.namespace)),a(rU,W(()=>s.value.zIndex)),a(mU,{size:W(()=>s.value.size||"")}),a(yU,W(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!uC.value)&&(uC.value=s.value),s},tCe=(e,t)=>{const n=[...new Set([...Yy(e),...Yy(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},nCe=pt({a11y:{type:Boolean,default:!0},locale:{type:Le(Object)},size:Ni,button:{type:Le(Object)},experimentalFeatures:{type:Le(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Le(Object)},zIndex:Number,namespace:{type:String,default:"el"},...C0}),zM={},rCe=xe({name:"ElConfigProvider",props:nCe,setup(e,{slots:t}){at(()=>e.message,r=>{Object.assign(zM,r!=null?r:{})},{immediate:!0,deep:!0});const n=KD(e);return()=>Xe(t,"default",{config:n==null?void 0:n.value})}}),oCe=gn(rCe),iCe="2.8.0",aCe=(e=[])=>({version:iCe,install:(n,r)=>{n[D6]||(n[D6]=!0,e.forEach(o=>n.use(o)),r&&KD(r,n,!0))}}),sCe=pt({zIndex:{type:Le([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),lCe={scroll:({scrollTop:e,fixed:t})=>tn(e)&&qo(t),[uo]:e=>qo(e)};var gt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const _U="ElAffix",uCe=xe({name:_U}),cCe=xe({...uCe,props:sCe,emits:lCe,setup(e,{expose:t,emit:n}){const r=e,o=ut("affix"),i=to(),a=to(),s=to(),{height:l}=Qse(),{height:u,width:f,top:h,bottom:m,update:y}=O5(a,{windowScroll:!1}),O=O5(i),b=ee(!1),k=ee(0),C=ee(0),P=W(()=>({height:b.value?`${u.value}px`:"",width:b.value?`${f.value}px`:""})),$=W(()=>{if(!b.value)return{};const R=r.offset?Qo(r.offset):0;return{height:`${u.value}px`,width:`${f.value}px`,top:r.position==="top"?R:"",bottom:r.position==="bottom"?R:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:r.zIndex}}),T=()=>{if(!!s.value)if(k.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const R=O.bottom.value-r.offset-u.value;b.value=r.offset>h.value&&O.bottom.value>0,C.value=R<0?R:0}else b.value=r.offset>h.value;else if(r.target){const R=l.value-O.top.value-r.offset-u.value;b.value=l.value-r.offset<m.value&&l.value>O.top.value,C.value=R<0?-R:0}else b.value=l.value-r.offset<m.value},A=()=>{y(),n("scroll",{scrollTop:k.value,fixed:b.value})};return at(b,R=>n("change",R)),vn(()=>{var R;r.target?(i.value=(R=document.querySelector(r.target))!=null?R:void 0,i.value||Ri(_U,`Target does not exist: ${r.target}`)):i.value=document.documentElement,s.value=OD(a.value,!0),y()}),Nr(s,"scroll",A),Ba(T),t({update:T,updateRoot:y}),(R,B)=>(U(),ce("div",{ref_key:"root",ref:a,class:G(v(o).b()),style:Ft(v(P))},[ge("div",{class:G({[v(o).m("fixed")]:b.value}),style:Ft(v($))},[Xe(R.$slots,"default")],6)],6))}});var fCe=gt(cCe,[["__file","affix.vue"]]);const dCe=gn(fCe),hCe=pt({size:{type:Le([Number,String])},color:{type:String}}),pCe=xe({name:"ElIcon",inheritAttrs:!1}),gCe=xe({...pCe,props:hCe,setup(e){const t=e,n=ut("icon"),r=W(()=>{const{size:o,color:i}=t;return!o&&!i?{}:{fontSize:zo(o)?void 0:Qo(o),"--color":i}});return(o,i)=>(U(),ce("i",Dn({class:v(n).b(),style:v(r)},o.$attrs),[Xe(o.$slots,"default")],16))}});var mCe=gt(gCe,[["__file","icon.vue"]]);const Lt=gn(mCe),vCe=["light","dark"],yCe=pt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Yy(cp),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:vCe,default:"light"}}),bCe={close:e=>e instanceof MouseEvent},_Ce=xe({name:"ElAlert"}),OCe=xe({..._Ce,props:yCe,emits:bCe,setup(e,{emit:t}){const n=e,{Close:r}=PD,o=Ui(),i=ut("alert"),a=ee(!0),s=W(()=>cp[n.type]),l=W(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!o.default}]),u=W(()=>({"with-description":n.description||o.default})),f=h=>{a.value=!1,t("close",h)};return(h,m)=>(U(),Qe(Mi,{name:v(i).b("fade"),persisted:""},{default:se(()=>[bn(ge("div",{class:G([v(i).b(),v(i).m(h.type),v(i).is("center",h.center),v(i).is(h.effect)]),role:"alert"},[h.showIcon&&v(s)?(U(),Qe(v(Lt),{key:0,class:G(v(l))},{default:se(()=>[(U(),Qe(jn(v(s))))]),_:1},8,["class"])):Fe("v-if",!0),ge("div",{class:G(v(i).e("content"))},[h.title||h.$slots.title?(U(),ce("span",{key:0,class:G([v(i).e("title"),v(u)])},[Xe(h.$slots,"title",{},()=>[xt(ct(h.title),1)])],2)):Fe("v-if",!0),h.$slots.default||h.description?(U(),ce("p",{key:1,class:G(v(i).e("description"))},[Xe(h.$slots,"default",{},()=>[xt(ct(h.description),1)])],2)):Fe("v-if",!0),h.closable?(U(),ce(Pt,{key:2},[h.closeText?(U(),ce("div",{key:0,class:G([v(i).e("close-btn"),v(i).is("customed")]),onClick:f},ct(h.closeText),3)):(U(),Qe(v(Lt),{key:1,class:G(v(i).e("close-btn")),onClick:f},{default:se(()=>[ne(v(r))]),_:1},8,["class"]))],64)):Fe("v-if",!0)],2)],2),[[gr,a.value]])]),_:3},8,["name"]))}});var wCe=gt(OCe,[["__file","alert.vue"]]);const OU=gn(wCe),Rm=Symbol("formContextKey"),Of=Symbol("formItemContextKey"),wi=(e,t={})=>{const n=ee(void 0),r=t.prop?n:zY("size"),o=t.global?n:vU(),i=t.form?{size:void 0}:$t(Rm,void 0),a=t.formItem?{size:void 0}:$t(Of,void 0);return W(()=>r.value||v(e)||(a==null?void 0:a.size)||(i==null?void 0:i.size)||o.value||"")},Ls=e=>{const t=zY("disabled"),n=$t(Rm,void 0);return W(()=>t.value||v(e)||(n==null?void 0:n.disabled)||!1)},cs=()=>{const e=$t(Rm,void 0),t=$t(Of,void 0);return{form:e,formItem:t}},Cc=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ee(!1)),r||(r=ee(!1));const o=ee();let i;const a=W(()=>{var s;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return vn(()=>{i=at([Tr(e,"id"),n],([s,l])=>{const u=s!=null?s:l?void 0:Fa().value;u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!l&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),Sp(()=>{i&&i(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:a,inputId:o}},SCe=pt({size:{type:String,values:$f},disabled:Boolean}),xCe=pt({...SCe,model:Object,rules:{type:Le(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),kCe={validate:(e,t,n)=>(Et(e)||Gt(e))&&qo(t)&&Gt(n)};function CCe(){const e=ee([]),t=W(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const a=e.value.indexOf(i);return a===-1&&t.value,a}function r(i,a){if(i&&a){const s=n(a);e.value.splice(s,1,i)}else i&&e.value.push(i)}function o(i){const a=n(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const Cx=(e,t)=>{const n=Da(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},ECe="ElForm",TCe=xe({name:ECe}),PCe=xe({...TCe,props:xCe,emits:kCe,setup(e,{expose:t,emit:n}){const r=e,o=[],i=wi(),a=ut("form"),s=W(()=>{const{labelPosition:$,inline:T}=r;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${$}`)]:$,[a.m("inline")]:T}]}),l=$=>o.find(T=>T.prop===$),u=$=>{o.push($)},f=$=>{$.prop&&o.splice(o.indexOf($),1)},h=($=[])=>{!r.model||Cx(o,$).forEach(T=>T.resetField())},m=($=[])=>{Cx(o,$).forEach(T=>T.clearValidate())},y=W(()=>!!r.model),O=$=>{if(o.length===0)return[];const T=Cx(o,$);return T.length?T:[]},b=async $=>C(void 0,$),k=async($=[])=>{if(!y.value)return!1;const T=O($);if(T.length===0)return!0;let A={};for(const R of T)try{await R.validate("")}catch(B){A={...A,...B}}return Object.keys(A).length===0?!0:Promise.reject(A)},C=async($=[],T)=>{const A=!rn(T);try{const R=await k($);return R===!0&&await(T==null?void 0:T(R)),R}catch(R){if(R instanceof Error)throw R;const B=R;return r.scrollToError&&P(Object.keys(B)[0]),await(T==null?void 0:T(!1,B)),A&&Promise.reject(B)}},P=$=>{var T;const A=Cx(o,$)[0];A&&((T=A.$el)==null||T.scrollIntoView(r.scrollIntoViewOptions))};return at(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch($=>void 0)},{deep:!0}),Yn(Rm,or({...ra(r),emit:n,resetFields:h,clearValidate:m,validateField:C,getField:l,addField:u,removeField:f,...CCe()})),t({validate:b,validateField:C,resetFields:h,clearValidate:m,scrollToField:P,fields:o}),($,T)=>(U(),ce("form",{class:G(v(s))},[Xe($.$slots,"default")],2))}});var $Ce=gt(PCe,[["__file","form.vue"]]);function Hg(){return Hg=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},Hg.apply(this,arguments)}function ACe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,WO(e,t)}function QM(e){return QM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},QM(e)}function WO(e,t){return WO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},WO(e,t)}function MCe(){if(typeof Reflect=="undefined"||!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 yk(e,t,n){return MCe()?yk=Reflect.construct.bind():yk=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),u=new l;return a&&WO(u,a.prototype),u},yk.apply(null,arguments)}function RCe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function WM(e){var t=typeof Map=="function"?new Map:void 0;return WM=function(r){if(r===null||!RCe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return yk(r,arguments,QM(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),WO(o,r)},WM(e)}var NCe=/%[sdj%]/g,ICe=function(){};typeof process!="undefined"&&process.env;function YM(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 Nl(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 o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(NCe,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function DCe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function oa(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||DCe(t)&&typeof e=="string"&&!e)}function jCe(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function oB(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function LCe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var iB=function(e){ACe(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(WM(Error));function BCe(e,t,n,r,o){if(t.first){var i=new Promise(function(m,y){var O=function(C){return r(C),C.length?y(new iB(C,YM(C))):m(o)},b=LCe(e);oB(b,n,O)});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,f=[],h=new Promise(function(m,y){var O=function(k){if(f.push.apply(f,k),u++,u===l)return r(f),f.length?y(new iB(f,YM(f))):m(o)};s.length||(r(f),m(o)),s.forEach(function(b){var k=e[b];a.indexOf(b)!==-1?oB(k,n,O):jCe(k,n,O)})});return h.catch(function(m){return m}),h}function VCe(e){return!!(e&&e.message!==void 0)}function FCe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function aB(e,t){return function(n){var r;return e.fullFields?r=FCe(t,e.fullFields):r=t[n.field||e.fullField],VCe(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 sB(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]=Hg({},e[n],r):e[n]=r}}return e}var wU=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||oa(n,a||t.type))&&o.push(Nl(i.messages.required,t.fullField))},zCe=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Nl(i.messages.whitespace,t.fullField))},Ex,QCe=function(){if(Ex)return Ex;var e="[a-fA-F\\d:]",t=function(T){return T&&T.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}",o=(`
- (?:
- (?:`+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(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(T){return T&&T.exact?i:new RegExp("(?:"+t(T)+n+t(T)+")|(?:"+t(T)+o+t(T)+")","g")};l.v4=function($){return $&&$.exact?a:new RegExp(""+t($)+n+t($),"g")},l.v6=function($){return $&&$.exact?s:new RegExp(""+t($)+o+t($),"g")};var u="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",h=l.v4().source,m=l.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",O="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",k="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',P="(?:"+u+"|www\\.)"+f+"(?:localhost|"+h+"|"+m+"|"+y+O+b+")"+k+C;return Ex=new RegExp("(?:^"+P+"$)","i"),Ex},lB={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},z_={integer:function(t){return z_.number(t)&&parseInt(t,10)===t},float:function(t){return z_.number(t)&&!z_.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"&&!z_.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(lB.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(QCe())},hex:function(t){return typeof t=="string"&&!!t.match(lB.hex)}},WCe=function(t,n,r,o,i){if(t.required&&n===void 0){wU(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?z_[s](n)||o.push(Nl(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Nl(i.messages.types[s],t.fullField,t.type))},YCe=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,h=null,m=typeof n=="number",y=typeof n=="string",O=Array.isArray(n);if(m?h="number":y?h="string":O&&(h="array"),!h)return!1;O&&(f=n.length),y&&(f=n.replace(u,"_").length),a?f!==t.len&&o.push(Nl(i.messages[h].len,t.fullField,t.len)):s&&!l&&f<t.min?o.push(Nl(i.messages[h].min,t.fullField,t.min)):l&&!s&&f>t.max?o.push(Nl(i.messages[h].max,t.fullField,t.max)):s&&l&&(f<t.min||f>t.max)&&o.push(Nl(i.messages[h].range,t.fullField,t.min,t.max))},Gv="enum",UCe=function(t,n,r,o,i){t[Gv]=Array.isArray(t[Gv])?t[Gv]:[],t[Gv].indexOf(n)===-1&&o.push(Nl(i.messages[Gv],t.fullField,t[Gv].join(", ")))},HCe=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Nl(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Nl(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Hr={required:wU,whitespace:zCe,type:WCe,range:YCe,enum:UCe,pattern:HCe},ZCe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n,"string")&&!t.required)return r();Hr.required(t,n,o,a,i,"string"),oa(n,"string")||(Hr.type(t,n,o,a,i),Hr.range(t,n,o,a,i),Hr.pattern(t,n,o,a,i),t.whitespace===!0&&Hr.whitespace(t,n,o,a,i))}r(a)},XCe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i),n!==void 0&&Hr.type(t,n,o,a,i)}r(a)},qCe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i),n!==void 0&&(Hr.type(t,n,o,a,i),Hr.range(t,n,o,a,i))}r(a)},KCe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i),n!==void 0&&Hr.type(t,n,o,a,i)}r(a)},GCe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i),oa(n)||Hr.type(t,n,o,a,i)}r(a)},JCe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i),n!==void 0&&(Hr.type(t,n,o,a,i),Hr.range(t,n,o,a,i))}r(a)},e2e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i),n!==void 0&&(Hr.type(t,n,o,a,i),Hr.range(t,n,o,a,i))}r(a)},t2e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Hr.required(t,n,o,a,i,"array"),n!=null&&(Hr.type(t,n,o,a,i),Hr.range(t,n,o,a,i))}r(a)},n2e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i),n!==void 0&&Hr.type(t,n,o,a,i)}r(a)},r2e="enum",o2e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i),n!==void 0&&Hr[r2e](t,n,o,a,i)}r(a)},i2e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n,"string")&&!t.required)return r();Hr.required(t,n,o,a,i),oa(n,"string")||Hr.pattern(t,n,o,a,i)}r(a)},a2e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n,"date")&&!t.required)return r();if(Hr.required(t,n,o,a,i),!oa(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Hr.type(t,l,o,a,i),l&&Hr.range(t,l.getTime(),o,a,i)}}r(a)},s2e=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Hr.required(t,n,o,a,i,s),r(a)},aA=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(oa(n,a)&&!t.required)return r();Hr.required(t,n,o,s,i,a),oa(n,a)||Hr.type(t,n,o,s,i)}r(s)},l2e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Hr.required(t,n,o,a,i)}r(a)},uO={string:ZCe,method:XCe,number:qCe,boolean:KCe,regexp:GCe,integer:JCe,float:e2e,array:t2e,object:n2e,enum:o2e,pattern:i2e,date:a2e,url:aA,hex:aA,email:aA,required:s2e,any:l2e};function UM(){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 HM=UM(),z1=function(){function e(n){this.rules=null,this._messages=HM,this.define(n)}var t=e.prototype;return t.define=function(r){var o=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(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=sB(UM(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function f(b){var k=[],C={};function P(T){if(Array.isArray(T)){var A;k=(A=k).concat.apply(A,T)}else k.push(T)}for(var $=0;$<b.length;$++)P(b[$]);k.length?(C=YM(k),u(k,C)):u(null,s)}if(l.messages){var h=this.messages();h===HM&&(h=UM()),sB(h,l.messages),l.messages=h}else l.messages=this.messages();var m={},y=l.keys||Object.keys(this.rules);y.forEach(function(b){var k=a.rules[b],C=s[b];k.forEach(function(P){var $=P;typeof $.transform=="function"&&(s===r&&(s=Hg({},s)),C=s[b]=$.transform(C)),typeof $=="function"?$={validator:$}:$=Hg({},$),$.validator=a.getValidationMethod($),$.validator&&($.field=b,$.fullField=$.fullField||b,$.type=a.getType($),m[b]=m[b]||[],m[b].push({rule:$,value:C,source:s,field:b}))})});var O={};return BCe(m,l,function(b,k){var C=b.rule,P=(C.type==="object"||C.type==="array")&&(typeof C.fields=="object"||typeof C.defaultField=="object");P=P&&(C.required||!C.required&&b.value),C.field=b.field;function $(R,B){return Hg({},B,{fullField:C.fullField+"."+R,fullFields:C.fullFields?[].concat(C.fullFields,[R]):[R]})}function T(R){R===void 0&&(R=[]);var B=Array.isArray(R)?R:[R];!l.suppressWarning&&B.length&&e.warning("async-validator:",B),B.length&&C.message!==void 0&&(B=[].concat(C.message));var I=B.map(aB(C,s));if(l.first&&I.length)return O[C.field]=1,k(I);if(!P)k(I);else{if(C.required&&!b.value)return C.message!==void 0?I=[].concat(C.message).map(aB(C,s)):l.error&&(I=[l.error(C,Nl(l.messages.required,C.field))]),k(I);var N={};C.defaultField&&Object.keys(b.value).map(function(V){N[V]=C.defaultField}),N=Hg({},N,b.rule.fields);var j={};Object.keys(N).forEach(function(V){var X=N[V],oe=Array.isArray(X)?X:[X];j[V]=oe.map($.bind(null,V))});var L=new e(j);L.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),L.validate(b.value,b.rule.options||l,function(V){var X=[];I&&I.length&&X.push.apply(X,I),V&&V.length&&X.push.apply(X,V),k(X.length?X:null)})}}var A;if(C.asyncValidator)A=C.asyncValidator(C,b.value,T,b.source,l);else if(C.validator){try{A=C.validator(C,b.value,T,b.source,l)}catch(R){console.error==null||console.error(R),l.suppressValidatorError||setTimeout(function(){throw R},0),T(R.message)}A===!0?T():A===!1?T(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||(C.fullField||C.field)+" fails"):A instanceof Array?T(A):A instanceof Error&&T(A.message)}A&&A.then&&A.then(function(){return T()},function(R){return T(R)})},function(b){f(b)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!uO.hasOwnProperty(r.type))throw new Error(Nl("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?uO.required:uO[this.getType(r)]||void 0},e}();z1.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");uO[t]=n};z1.warning=ICe;z1.messages=HM;z1.validators=uO;const u2e=["","error","validating","success"],c2e=pt({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Le([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Le([Object,Array])},error:String,validateStatus:{type:String,values:u2e},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:$f}}),uB="ElLabelWrap";var f2e=xe({name:uB,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=$t(Rm,void 0),r=$t(Of);r||Ri(uB,"usage: <el-form-item><label-wrap /></el-form-item>");const o=ut("form"),i=ee(),a=ee(0),s=()=>{var f;if((f=i.value)!=null&&f.firstElementChild){const h=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(h))}else return 0},l=(f="update")=>{Wt(()=>{t.default&&e.isAutoWidth&&(f==="update"?a.value=s():f==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>l("update");return vn(()=>{u()}),qr(()=>{l("remove")}),wc(()=>u()),at(a,(f,h)=>{e.updateAll&&(n==null||n.registerLabelWidth(f,h))}),So(W(()=>{var f,h;return(h=(f=i.value)==null?void 0:f.firstElementChild)!=null?h:null}),u),()=>{var f,h;if(!t)return null;const{isAutoWidth:m}=e;if(m){const y=n==null?void 0:n.autoLabelWidth,O=r==null?void 0:r.hasLabel,b={};if(O&&y&&y!=="auto"){const k=Math.max(0,Number.parseInt(y,10)-a.value),P=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";k&&(b[P]=`${k}px`)}return ne("div",{ref:i,class:[o.be("item","label-wrap")],style:b},[(f=t.default)==null?void 0:f.call(t)])}else return ne(Pt,{ref:i},[(h=t.default)==null?void 0:h.call(t)])}}});const d2e=xe({name:"ElFormItem"}),h2e=xe({...d2e,props:c2e,setup(e,{expose:t}){const n=e,r=Ui(),o=$t(Rm,void 0),i=$t(Of,void 0),a=wi(void 0,{formItem:!1}),s=ut("form-item"),l=Fa().value,u=ee([]),f=ee(""),h=Cse(f,100),m=ee(""),y=ee();let O,b=!1;const k=W(()=>n.labelPosition||(o==null?void 0:o.labelPosition)),C=W(()=>{if(k.value==="top")return{};const _e=Qo(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return _e?{width:_e}:{}}),P=W(()=>{if(k.value==="top"||(o==null?void 0:o.inline))return{};if(!n.label&&!n.labelWidth&&j)return{};const _e=Qo(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return!n.label&&!r.label?{marginLeft:_e}:{}}),$=W(()=>[s.b(),s.m(a.value),s.is("error",f.value==="error"),s.is("validating",f.value==="validating"),s.is("success",f.value==="success"),s.is("required",K.value||n.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o==null?void 0:o.statusIcon,[s.m(`label-${k.value}`)]:k.value}]),T=W(()=>qo(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),A=W(()=>[s.e("error"),{[s.em("error","inline")]:T.value}]),R=W(()=>n.prop?Gt(n.prop)?n.prop:n.prop.join("."):""),B=W(()=>!!(n.label||r.label)),I=W(()=>n.for||(u.value.length===1?u.value[0]:void 0)),N=W(()=>!I.value&&B.value),j=!!i,L=W(()=>{const _e=o==null?void 0:o.model;if(!(!_e||!n.prop))return mk(_e,n.prop).value}),V=W(()=>{const{required:_e}=n,ve=[];n.rules&&ve.push(...Da(n.rules));const Ne=o==null?void 0:o.rules;if(Ne&&n.prop){const Se=mk(Ne,n.prop).value;Se&&ve.push(...Da(Se))}if(_e!==void 0){const Se=ve.map((fe,ye)=>[fe,ye]).filter(([fe])=>Object.keys(fe).includes("required"));if(Se.length>0)for(const[fe,ye]of Se)fe.required!==_e&&(ve[ye]={...fe,required:_e});else ve.push({required:_e})}return ve}),X=W(()=>V.value.length>0),oe=_e=>V.value.filter(Ne=>!Ne.trigger||!_e?!0:Array.isArray(Ne.trigger)?Ne.trigger.includes(_e):Ne.trigger===_e).map(({trigger:Ne,...Se})=>Se),K=W(()=>V.value.some(_e=>_e.required)),Z=W(()=>{var _e;return h.value==="error"&&n.showMessage&&((_e=o==null?void 0:o.showMessage)!=null?_e:!0)}),re=W(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),J=_e=>{f.value=_e},z=_e=>{var ve,Ne;const{errors:Se,fields:fe}=_e;(!Se||!fe)&&console.error(_e),J("error"),m.value=Se?(Ne=(ve=Se==null?void 0:Se[0])==null?void 0:ve.message)!=null?Ne:`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,m.value)},q=()=>{J("success"),o==null||o.emit("validate",n.prop,!0,"")},ue=async _e=>{const ve=R.value;return new z1({[ve]:_e}).validate({[ve]:L.value},{firstFields:!0}).then(()=>(q(),!0)).catch(Se=>(z(Se),Promise.reject(Se)))},he=async(_e,ve)=>{if(b||!n.prop)return!1;const Ne=rn(ve);if(!X.value)return ve==null||ve(!1),!1;const Se=oe(_e);return Se.length===0?(ve==null||ve(!0),!0):(J("validating"),ue(Se).then(()=>(ve==null||ve(!0),!0)).catch(fe=>{const{fields:ye}=fe;return ve==null||ve(!1,ye),Ne?!1:Promise.reject(ye)}))},le=()=>{J(""),m.value="",b=!1},ze=async()=>{const _e=o==null?void 0:o.model;if(!_e||!n.prop)return;const ve=mk(_e,n.prop);b=!0,ve.value=$M(O),await Wt(),le(),b=!1},Ee=_e=>{u.value.includes(_e)||u.value.push(_e)},Be=_e=>{u.value=u.value.filter(ve=>ve!==_e)};at(()=>n.error,_e=>{m.value=_e||"",J(_e?"error":"")},{immediate:!0}),at(()=>n.validateStatus,_e=>J(_e||""));const Ae=or({...ra(n),$el:y,size:a,validateState:f,labelId:l,inputIds:u,isGroup:N,hasLabel:B,fieldValue:L,addInputId:Ee,removeInputId:Be,resetField:ze,clearValidate:le,validate:he});return Yn(Of,Ae),vn(()=>{n.prop&&(o==null||o.addField(Ae),O=$M(L.value))}),qr(()=>{o==null||o.removeField(Ae)}),t({size:a,validateMessage:m,validateState:f,validate:he,clearValidate:le,resetField:ze}),(_e,ve)=>{var Ne;return U(),ce("div",{ref_key:"formItemRef",ref:y,class:G(v($)),role:v(N)?"group":void 0,"aria-labelledby":v(N)?v(l):void 0},[ne(v(f2e),{"is-auto-width":v(C).width==="auto","update-all":((Ne=v(o))==null?void 0:Ne.labelWidth)==="auto"},{default:se(()=>[v(B)?(U(),Qe(jn(v(I)?"label":"div"),{key:0,id:v(l),for:v(I),class:G(v(s).e("label")),style:Ft(v(C))},{default:se(()=>[Xe(_e.$slots,"label",{label:v(re)},()=>[xt(ct(v(re)),1)])]),_:3},8,["id","for","class","style"])):Fe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ge("div",{class:G(v(s).e("content")),style:Ft(v(P))},[Xe(_e.$slots,"default"),ne(WQ,{name:`${v(s).namespace.value}-zoom-in-top`},{default:se(()=>[v(Z)?Xe(_e.$slots,"error",{key:0,error:m.value},()=>[ge("div",{class:G(v(A))},ct(m.value),3)]):Fe("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var SU=gt(h2e,[["__file","form-item.vue"]]);const Af=gn($Ce,{FormItem:SU}),Mf=Co(SU);let lc;const p2e=`
- height:0 !important;
- visibility:hidden !important;
- ${OI()?"":"overflow:hidden !important;"}
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- `,g2e=["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 m2e(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:g2e.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function cB(e,t=1,n){var r;lc||(lc=document.createElement("textarea"),document.body.appendChild(lc));const{paddingSize:o,borderSize:i,boxSizing:a,contextStyle:s}=m2e(e);lc.setAttribute("style",`${s};${p2e}`),lc.value=e.value||e.placeholder||"";let l=lc.scrollHeight;const u={};a==="border-box"?l=l+i:a==="content-box"&&(l=l-o),lc.value="";const f=lc.scrollHeight-o;if(tn(t)){let h=f*t;a==="border-box"&&(h=h+o+i),l=Math.max(h,l),u.minHeight=`${h}px`}if(tn(n)){let h=f*n;a==="border-box"&&(h=h+o+i),l=Math.min(h,l)}return u.height=`${l}px`,(r=lc.parentNode)==null||r.removeChild(lc),lc=void 0,u}const GD=pt({id:{type:String,default:void 0},size:Ni,disabled:Boolean,modelValue:{type:Le([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Le([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:Wr},prefixIcon:{type:Wr},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Le([Object,Array,String]),default:()=>xo({})},autofocus:Boolean,rows:{type:Number,default:2},...va(["ariaLabel"])}),v2e={[Tn]:e=>Gt(e),input:e=>Gt(e),change:e=>Gt(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},y2e=xe({name:"ElInput",inheritAttrs:!1}),b2e=xe({...y2e,props:GD,emits:v2e,setup(e,{expose:t,emit:n}){const r=e,o=Em(),i=Ui(),a=W(()=>{const Ke={};return r.containerRole==="combobox"&&(Ke["aria-haspopup"]=o["aria-haspopup"],Ke["aria-owns"]=o["aria-owns"],Ke["aria-expanded"]=o["aria-expanded"]),Ke}),s=W(()=>[r.type==="textarea"?k.b():b.b(),b.m(y.value),b.is("disabled",O.value),b.is("exceed",ue.value),{[b.b("group")]:i.prepend||i.append,[b.m("prefix")]:i.prefix||r.prefixIcon,[b.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[b.bm("suffix","password-clear")]:re.value&&J.value,[b.b("hidden")]:r.type==="hidden"},o.class]),l=W(()=>[b.e("wrapper"),b.is("focus",N.value)]),u=AD({excludeKeys:W(()=>Object.keys(a.value))}),{form:f,formItem:h}=cs(),{inputId:m}=Cc(r,{formItemContext:h}),y=wi(),O=Ls(),b=ut("input"),k=ut("textarea"),C=to(),P=to(),$=ee(!1),T=ee(!1),A=ee(),R=to(r.inputStyle),B=W(()=>C.value||P.value),{wrapperRef:I,isFocused:N}=F1(B,{afterBlur(){var Ke;r.validateEvent&&((Ke=h==null?void 0:h.validate)==null||Ke.call(h,"blur").catch(et=>void 0))}}),j=W(()=>{var Ke;return(Ke=f==null?void 0:f.statusIcon)!=null?Ke:!1}),L=W(()=>(h==null?void 0:h.validateState)||""),V=W(()=>L.value&&$D[L.value]),X=W(()=>T.value?ISe:iSe),oe=W(()=>[o.style]),K=W(()=>[r.inputStyle,R.value,{resize:r.resize}]),Z=W(()=>Wi(r.modelValue)?"":String(r.modelValue)),re=W(()=>r.clearable&&!O.value&&!r.readonly&&!!Z.value&&(N.value||$.value)),J=W(()=>r.showPassword&&!O.value&&!r.readonly&&!!Z.value&&(!!Z.value||N.value)),z=W(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!O.value&&!r.readonly&&!r.showPassword),q=W(()=>Z.value.length),ue=W(()=>!!z.value&&q.value>Number(r.maxlength)),he=W(()=>!!i.suffix||!!r.suffixIcon||re.value||r.showPassword||z.value||!!L.value&&j.value),[le,ze]=qke(C);So(P,Ke=>{if(Ae(),!z.value||r.resize!=="both")return;const et=Ke[0],{width:bt}=et.contentRect;A.value={right:`calc(100% - ${bt+15+6}px)`}});const Ee=()=>{const{type:Ke,autosize:et}=r;if(!(!rr||Ke!=="textarea"||!P.value))if(et){const bt=$n(et)?et.minRows:void 0,Ot=$n(et)?et.maxRows:void 0,Qt=cB(P.value,bt,Ot);R.value={overflowY:"hidden",...Qt},Wt(()=>{P.value.offsetHeight,R.value=Qt})}else R.value={minHeight:cB(P.value).minHeight}},Ae=(Ke=>{let et=!1;return()=>{var bt;if(et||!r.autosize)return;((bt=P.value)==null?void 0:bt.offsetParent)===null||(Ke(),et=!0)}})(Ee),_e=()=>{const Ke=B.value,et=r.formatter?r.formatter(Z.value):Z.value;!Ke||Ke.value===et||(Ke.value=et)},ve=async Ke=>{le();let{value:et}=Ke.target;if(r.formatter&&(et=r.parser?r.parser(et):et),!Se.value){if(et===Z.value){_e();return}n(Tn,et),n("input",et),await Wt(),_e(),ze()}},Ne=Ke=>{n("change",Ke.target.value)},{isComposing:Se,handleCompositionStart:fe,handleCompositionUpdate:ye,handleCompositionEnd:He}=G2({emit:n,afterComposition:ve}),be=()=>{T.value=!T.value,Ie()},Ie=async()=>{var Ke;await Wt(),(Ke=B.value)==null||Ke.focus()},De=()=>{var Ke;return(Ke=B.value)==null?void 0:Ke.blur()},Me=Ke=>{$.value=!1,n("mouseleave",Ke)},qe=Ke=>{$.value=!0,n("mouseenter",Ke)},Oe=Ke=>{n("keydown",Ke)},Je=()=>{var Ke;(Ke=B.value)==null||Ke.select()},lt=()=>{n(Tn,""),n("change",""),n("clear"),n("input","")};return at(()=>r.modelValue,()=>{var Ke;Wt(()=>Ee()),r.validateEvent&&((Ke=h==null?void 0:h.validate)==null||Ke.call(h,"change").catch(et=>void 0))}),at(Z,()=>_e()),at(()=>r.type,async()=>{await Wt(),_e(),Ee()}),vn(()=>{!r.formatter&&r.parser,_e(),Wt(Ee)}),t({input:C,textarea:P,ref:B,textareaStyle:K,autosize:Tr(r,"autosize"),isComposing:Se,focus:Ie,blur:De,select:Je,clear:lt,resizeTextarea:Ee}),(Ke,et)=>(U(),ce("div",Dn(v(a),{class:[v(s),{[v(b).bm("group","append")]:Ke.$slots.append,[v(b).bm("group","prepend")]:Ke.$slots.prepend}],style:v(oe),role:Ke.containerRole,onMouseenter:qe,onMouseleave:Me}),[Fe(" input "),Ke.type!=="textarea"?(U(),ce(Pt,{key:0},[Fe(" prepend slot "),Ke.$slots.prepend?(U(),ce("div",{key:0,class:G(v(b).be("group","prepend"))},[Xe(Ke.$slots,"prepend")],2)):Fe("v-if",!0),ge("div",{ref_key:"wrapperRef",ref:I,class:G(v(l))},[Fe(" prefix slot "),Ke.$slots.prefix||Ke.prefixIcon?(U(),ce("span",{key:0,class:G(v(b).e("prefix"))},[ge("span",{class:G(v(b).e("prefix-inner"))},[Xe(Ke.$slots,"prefix"),Ke.prefixIcon?(U(),Qe(v(Lt),{key:0,class:G(v(b).e("icon"))},{default:se(()=>[(U(),Qe(jn(Ke.prefixIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],2)],2)):Fe("v-if",!0),ge("input",Dn({id:v(m),ref_key:"input",ref:C,class:v(b).e("inner")},v(u),{minlength:Ke.minlength,maxlength:Ke.maxlength,type:Ke.showPassword?T.value?"text":"password":Ke.type,disabled:v(O),readonly:Ke.readonly,autocomplete:Ke.autocomplete,tabindex:Ke.tabindex,"aria-label":Ke.ariaLabel,placeholder:Ke.placeholder,style:Ke.inputStyle,form:Ke.form,autofocus:Ke.autofocus,onCompositionstart:v(fe),onCompositionupdate:v(ye),onCompositionend:v(He),onInput:ve,onChange:Ne,onKeydown:Oe}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),Fe(" suffix slot "),v(he)?(U(),ce("span",{key:1,class:G(v(b).e("suffix"))},[ge("span",{class:G(v(b).e("suffix-inner"))},[!v(re)||!v(J)||!v(z)?(U(),ce(Pt,{key:0},[Xe(Ke.$slots,"suffix"),Ke.suffixIcon?(U(),Qe(v(Lt),{key:0,class:G(v(b).e("icon"))},{default:se(()=>[(U(),Qe(jn(Ke.suffixIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],64)):Fe("v-if",!0),v(re)?(U(),Qe(v(Lt),{key:1,class:G([v(b).e("icon"),v(b).e("clear")]),onMousedown:nn(v(zr),["prevent"]),onClick:lt},{default:se(()=>[ne(v($p))]),_:1},8,["class","onMousedown"])):Fe("v-if",!0),v(J)?(U(),Qe(v(Lt),{key:2,class:G([v(b).e("icon"),v(b).e("password")]),onClick:be},{default:se(()=>[(U(),Qe(jn(v(X))))]),_:1},8,["class"])):Fe("v-if",!0),v(z)?(U(),ce("span",{key:3,class:G(v(b).e("count"))},[ge("span",{class:G(v(b).e("count-inner"))},ct(v(q))+" / "+ct(Ke.maxlength),3)],2)):Fe("v-if",!0),v(L)&&v(V)&&v(j)?(U(),Qe(v(Lt),{key:4,class:G([v(b).e("icon"),v(b).e("validateIcon"),v(b).is("loading",v(L)==="validating")])},{default:se(()=>[(U(),Qe(jn(v(V))))]),_:1},8,["class"])):Fe("v-if",!0)],2)],2)):Fe("v-if",!0)],2),Fe(" append slot "),Ke.$slots.append?(U(),ce("div",{key:1,class:G(v(b).be("group","append"))},[Xe(Ke.$slots,"append")],2)):Fe("v-if",!0)],64)):(U(),ce(Pt,{key:1},[Fe(" textarea "),ge("textarea",Dn({id:v(m),ref_key:"textarea",ref:P,class:[v(k).e("inner"),v(b).is("focus",v(N))]},v(u),{minlength:Ke.minlength,maxlength:Ke.maxlength,tabindex:Ke.tabindex,disabled:v(O),readonly:Ke.readonly,autocomplete:Ke.autocomplete,style:v(K),"aria-label":Ke.ariaLabel,placeholder:Ke.placeholder,form:Ke.form,autofocus:Ke.autofocus,rows:Ke.rows,onCompositionstart:v(fe),onCompositionupdate:v(ye),onCompositionend:v(He),onInput:ve,onChange:Ne,onKeydown:Oe}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend"]),v(z)?(U(),ce("span",{key:0,style:Ft(A.value),class:G(v(b).e("count"))},ct(v(q))+" / "+ct(Ke.maxlength),7)):Fe("v-if",!0)],64))],16,["role"]))}});var _2e=gt(b2e,[["__file","input.vue"]]);const ri=gn(_2e),Jv=4,xU={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"}},O2e=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),JD=Symbol("scrollbarContextKey"),w2e=pt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),S2e="Thumb",x2e=xe({__name:"thumb",props:w2e,setup(e){const t=e,n=$t(JD),r=ut("scrollbar");n||Ri(S2e,"can not inject scrollbar context");const o=ee(),i=ee(),a=ee({}),s=ee(!1);let l=!1,u=!1,f=rr?document.onselectstart:null;const h=W(()=>xU[t.vertical?"vertical":"horizontal"]),m=W(()=>O2e({size:t.size,move:t.move,bar:h.value})),y=W(()=>o.value[h.value.offset]**2/n.wrapElement[h.value.scrollSize]/t.ratio/i.value[h.value.offset]),O=R=>{var B;if(R.stopPropagation(),R.ctrlKey||[1,2].includes(R.button))return;(B=window.getSelection())==null||B.removeAllRanges(),k(R);const I=R.currentTarget;!I||(a.value[h.value.axis]=I[h.value.offset]-(R[h.value.client]-I.getBoundingClientRect()[h.value.direction]))},b=R=>{if(!i.value||!o.value||!n.wrapElement)return;const B=Math.abs(R.target.getBoundingClientRect()[h.value.direction]-R[h.value.client]),I=i.value[h.value.offset]/2,N=(B-I)*100*y.value/o.value[h.value.offset];n.wrapElement[h.value.scroll]=N*n.wrapElement[h.value.scrollSize]/100},k=R=>{R.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",P),f=document.onselectstart,document.onselectstart=()=>!1},C=R=>{if(!o.value||!i.value||l===!1)return;const B=a.value[h.value.axis];if(!B)return;const I=(o.value.getBoundingClientRect()[h.value.direction]-R[h.value.client])*-1,N=i.value[h.value.offset]-B,j=(I-N)*100*y.value/o.value[h.value.offset];n.wrapElement[h.value.scroll]=j*n.wrapElement[h.value.scrollSize]/100},P=()=>{l=!1,a.value[h.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",P),A(),u&&(s.value=!1)},$=()=>{u=!1,s.value=!!t.size},T=()=>{u=!0,s.value=l};qr(()=>{A(),document.removeEventListener("mouseup",P)});const A=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return Nr(Tr(n,"scrollbarElement"),"mousemove",$),Nr(Tr(n,"scrollbarElement"),"mouseleave",T),(R,B)=>(U(),Qe(Mi,{name:v(r).b("fade"),persisted:""},{default:se(()=>[bn(ge("div",{ref_key:"instance",ref:o,class:G([v(r).e("bar"),v(r).is(v(h).key)]),onMousedown:b},[ge("div",{ref_key:"thumb",ref:i,class:G(v(r).e("thumb")),style:Ft(v(m)),onMousedown:O},null,38)],34),[[gr,R.always||s.value]])]),_:1},8,["name"]))}});var fB=gt(x2e,[["__file","thumb.vue"]]);const k2e=pt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),C2e=xe({__name:"bar",props:k2e,setup(e,{expose:t}){const n=e,r=$t(JD),o=ee(0),i=ee(0),a=ee(""),s=ee(""),l=ee(1),u=ee(1);return t({handleScroll:m=>{if(m){const y=m.offsetHeight-Jv,O=m.offsetWidth-Jv;i.value=m.scrollTop*100/y*l.value,o.value=m.scrollLeft*100/O*u.value}},update:()=>{const m=r==null?void 0:r.wrapElement;if(!m)return;const y=m.offsetHeight-Jv,O=m.offsetWidth-Jv,b=y**2/m.scrollHeight,k=O**2/m.scrollWidth,C=Math.max(b,n.minSize),P=Math.max(k,n.minSize);l.value=b/(y-b)/(C/(y-C)),u.value=k/(O-k)/(P/(O-P)),s.value=C+Jv<y?`${C}px`:"",a.value=P+Jv<O?`${P}px`:""}}),(m,y)=>(U(),ce(Pt,null,[ne(fB,{move:o.value,ratio:u.value,size:a.value,always:m.always},null,8,["move","ratio","size","always"]),ne(fB,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:m.always},null,8,["move","ratio","size","always"])],64))}});var E2e=gt(C2e,[["__file","bar.vue"]]);const T2e=pt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Le([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},id:String,role:String,...va(["ariaLabel","ariaOrientation"])}),P2e={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(tn)},$2e="ElScrollbar",A2e=xe({name:$2e}),M2e=xe({...A2e,props:T2e,emits:P2e,setup(e,{expose:t,emit:n}){const r=e,o=ut("scrollbar");let i,a,s=0,l=0;const u=ee(),f=ee(),h=ee(),m=ee(),y=W(()=>{const A={};return r.height&&(A.height=Qo(r.height)),r.maxHeight&&(A.maxHeight=Qo(r.maxHeight)),[r.wrapStyle,A]}),O=W(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),b=W(()=>[o.e("view"),r.viewClass]),k=()=>{var A;f.value&&((A=m.value)==null||A.handleScroll(f.value),s=f.value.scrollTop,l=f.value.scrollLeft,n("scroll",{scrollTop:f.value.scrollTop,scrollLeft:f.value.scrollLeft}))};function C(A,R){$n(A)?f.value.scrollTo(A):tn(A)&&tn(R)&&f.value.scrollTo(A,R)}const P=A=>{!tn(A)||(f.value.scrollTop=A)},$=A=>{!tn(A)||(f.value.scrollLeft=A)},T=()=>{var A;(A=m.value)==null||A.update()};return at(()=>r.noresize,A=>{A?(i==null||i(),a==null||a()):({stop:i}=So(h,T),a=Nr("resize",T))},{immediate:!0}),at(()=>[r.maxHeight,r.height],()=>{r.native||Wt(()=>{var A;T(),f.value&&((A=m.value)==null||A.handleScroll(f.value))})}),Yn(JD,or({scrollbarElement:u,wrapElement:f})),fI(()=>{f.value.scrollTop=s,f.value.scrollLeft=l}),vn(()=>{r.native||Wt(()=>{T()})}),wc(()=>T()),t({wrapRef:f,update:T,scrollTo:C,setScrollTop:P,setScrollLeft:$,handleScroll:k}),(A,R)=>(U(),ce("div",{ref_key:"scrollbarRef",ref:u,class:G(v(o).b())},[ge("div",{ref_key:"wrapRef",ref:f,class:G(v(O)),style:Ft(v(y)),onScroll:k},[(U(),Qe(jn(A.tag),{id:A.id,ref_key:"resizeRef",ref:h,class:G(v(b)),style:Ft(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:se(()=>[Xe(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),A.native?Fe("v-if",!0):(U(),Qe(E2e,{key:0,ref_key:"barRef",ref:m,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var R2e=gt(M2e,[["__file","scrollbar.vue"]]);const Ec=gn(R2e),e3=Symbol("popper"),kU=Symbol("popperContent"),N2e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],CU=pt({role:{type:String,values:N2e,default:"tooltip"}}),I2e=xe({name:"ElPopper",inheritAttrs:!1}),D2e=xe({...I2e,props:CU,setup(e,{expose:t}){const n=e,r=ee(),o=ee(),i=ee(),a=ee(),s=W(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:i,referenceRef:a,role:s};return t(l),Yn(e3,l),(u,f)=>Xe(u.$slots,"default")}});var j2e=gt(D2e,[["__file","popper.vue"]]);const EU=pt({arrowOffset:{type:Number,default:5}}),L2e=xe({name:"ElPopperArrow",inheritAttrs:!1}),B2e=xe({...L2e,props:EU,setup(e,{expose:t}){const n=e,r=ut("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:a}=$t(kU,void 0);return at(()=>n.arrowOffset,s=>{o.value=s}),qr(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(U(),ce("span",{ref_key:"arrowRef",ref:i,class:G(v(r).e("arrow")),style:Ft(v(a)),"data-popper-arrow":""},null,6))}});var V2e=gt(B2e,[["__file","arrow.vue"]]);const F2e="ElOnlyChild",TU=xe({name:F2e,setup(e,{slots:t,attrs:n}){var r;const o=$t(tU),i=vke((r=o==null?void 0:o.setForwardRef)!=null?r:zr);return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t,n);if(!s||s.length>1)return null;const l=PU(s);return l?bn(_d(l,n),[[i]]):null}}});function PU(e){if(!e)return null;const t=e;for(const n of t){if($n(n))switch(n.type){case Cs:continue;case p0:case"svg":return dB(n);case Pt:return PU(n.children);default:return n}return dB(n)}return null}function dB(e){const t=ut("only-child");return ne("span",{class:t.e("content")},[e])}const $U=pt({virtualRef:{type:Le(Object)},virtualTriggering:Boolean,onMouseenter:{type:Le(Function)},onMouseleave:{type:Le(Function)},onClick:{type:Le(Function)},onKeydown:{type:Le(Function)},onFocus:{type:Le(Function)},onBlur:{type:Le(Function)},onContextmenu:{type:Le(Function)},id:String,open:Boolean}),z2e=xe({name:"ElPopperTrigger",inheritAttrs:!1}),Q2e=xe({...z2e,props:$U,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=$t(e3,void 0);mke(o);const i=W(()=>s.value?n.id:void 0),a=W(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=W(()=>{if(r&&r.value!=="tooltip")return r.value}),l=W(()=>s.value?`${n.open}`:void 0);let u;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return vn(()=>{at(()=>n.virtualRef,h=>{h&&(o.value=Ks(h))},{immediate:!0}),at(o,(h,m)=>{u==null||u(),u=void 0,Ll(h)&&(f.forEach(y=>{var O;const b=n[y];b&&(h.addEventListener(y.slice(2).toLowerCase(),b),(O=m==null?void 0:m.removeEventListener)==null||O.call(m,y.slice(2).toLowerCase(),b))}),u=at([i,a,s,l],y=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((O,b)=>{Wi(y[b])?h.removeAttribute(O):h.setAttribute(O,y[b])})},{immediate:!0})),Ll(m)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(y=>m.removeAttribute(y))},{immediate:!0})}),qr(()=>{if(u==null||u(),u=void 0,o.value&&Ll(o.value)){const h=o.value;f.forEach(m=>{const y=n[m];y&&h.removeEventListener(m.slice(2).toLowerCase(),y)}),o.value=void 0}}),t({triggerRef:o}),(h,m)=>h.virtualTriggering?Fe("v-if",!0):(U(),Qe(v(TU),Dn({key:0},h.$attrs,{"aria-controls":v(i),"aria-describedby":v(a),"aria-expanded":v(l),"aria-haspopup":v(s)}),{default:se(()=>[Xe(h.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var W2e=gt(Q2e,[["__file","trigger.vue"]]);const sA="focus-trap.focus-after-trapped",lA="focus-trap.focus-after-released",Y2e="focus-trap.focusout-prevented",hB={cancelable:!0,bubbles:!1},U2e={cancelable:!0,bubbles:!1},pB="focusAfterTrapped",gB="focusAfterReleased",t3=Symbol("elFocusTrap"),n3=ee(),nE=ee(0),r3=ee(0);let Tx=0;const AU=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},mB=(e,t)=>{for(const n of e)if(!H2e(n,t))return n},H2e=(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},Z2e=e=>{const t=AU(e),n=mB(t,e),r=mB(t.reverse(),e);return[n,r]},X2e=e=>e instanceof HTMLInputElement&&"select"in e,Ah=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),r3.value=window.performance.now(),e!==n&&X2e(e)&&t&&e.select()}};function vB(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const q2e=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=vB(e,r),e.unshift(r)},remove:r=>{var o,i;e=vB(e,r),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},K2e=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Ah(r,t),document.activeElement!==n)return},yB=q2e(),G2e=()=>nE.value>r3.value,Px=()=>{n3.value="pointer",nE.value=window.performance.now()},bB=()=>{n3.value="keyboard",nE.value=window.performance.now()},J2e=()=>(vn(()=>{Tx===0&&(document.addEventListener("mousedown",Px),document.addEventListener("touchstart",Px),document.addEventListener("keydown",bB)),Tx++}),qr(()=>{Tx--,Tx<=0&&(document.removeEventListener("mousedown",Px),document.removeEventListener("touchstart",Px),document.removeEventListener("keydown",bB))}),{focusReason:n3,lastUserFocusTimestamp:nE,lastAutomatedFocusTimestamp:r3}),$x=e=>new CustomEvent(Y2e,{...U2e,detail:e}),eEe=xe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[pB,gB,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ee();let r,o;const{focusReason:i}=J2e();fke(O=>{e.trapped&&!a.paused&&t("release-requested",O)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=O=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:b,altKey:k,ctrlKey:C,metaKey:P,currentTarget:$,shiftKey:T}=O,{loop:A}=e,R=b===Yt.tab&&!k&&!C&&!P,B=document.activeElement;if(R&&B){const I=$,[N,j]=Z2e(I);if(N&&j){if(!T&&B===j){const V=$x({focusReason:i.value});t("focusout-prevented",V),V.defaultPrevented||(O.preventDefault(),A&&Ah(N,!0))}else if(T&&[N,I].includes(B)){const V=$x({focusReason:i.value});t("focusout-prevented",V),V.defaultPrevented||(O.preventDefault(),A&&Ah(j,!0))}}else if(B===I){const V=$x({focusReason:i.value});t("focusout-prevented",V),V.defaultPrevented||O.preventDefault()}}};Yn(t3,{focusTrapRef:n,onKeydown:s}),at(()=>e.focusTrapEl,O=>{O&&(n.value=O)},{immediate:!0}),at([n],([O],[b])=>{O&&(O.addEventListener("keydown",s),O.addEventListener("focusin",f),O.addEventListener("focusout",h)),b&&(b.removeEventListener("keydown",s),b.removeEventListener("focusin",f),b.removeEventListener("focusout",h))});const l=O=>{t(pB,O)},u=O=>t(gB,O),f=O=>{const b=v(n);if(!b)return;const k=O.target,C=O.relatedTarget,P=k&&b.contains(k);e.trapped||C&&b.contains(C)||(r=C),P&&t("focusin",O),!a.paused&&e.trapped&&(P?o=k:Ah(o,!0))},h=O=>{const b=v(n);if(!(a.paused||!b))if(e.trapped){const k=O.relatedTarget;!Wi(k)&&!b.contains(k)&&setTimeout(()=>{if(!a.paused&&e.trapped){const C=$x({focusReason:i.value});t("focusout-prevented",C),C.defaultPrevented||Ah(o,!0)}},0)}else{const k=O.target;k&&b.contains(k)||t("focusout",O)}};async function m(){await Wt();const O=v(n);if(O){yB.push(a);const b=O.contains(document.activeElement)?r:document.activeElement;if(r=b,!O.contains(b)){const C=new Event(sA,hB);O.addEventListener(sA,l),O.dispatchEvent(C),C.defaultPrevented||Wt(()=>{let P=e.focusStartEl;Gt(P)||(Ah(P),document.activeElement!==P&&(P="first")),P==="first"&&K2e(AU(O),!0),(document.activeElement===b||P==="container")&&Ah(O)})}}}function y(){const O=v(n);if(O){O.removeEventListener(sA,l);const b=new CustomEvent(lA,{...hB,detail:{focusReason:i.value}});O.addEventListener(lA,u),O.dispatchEvent(b),!b.defaultPrevented&&(i.value=="keyboard"||!G2e()||O.contains(document.activeElement))&&Ah(r!=null?r:document.body),O.removeEventListener(lA,u),yB.remove(a)}}return vn(()=>{e.trapped&&m(),at(()=>e.trapped,O=>{O?m():y()})}),qr(()=>{e.trapped&&y(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",f),n.value.removeEventListener("focusout",h),n.value=void 0)}),{onKeydown:s}}});function tEe(e,t,n,r,o,i){return Xe(e.$slots,"default",{handleKeydown:e.onKeydown})}var Q1=gt(eEe,[["render",tEe],["__file","focus-trap.vue"]]);const nEe=["fixed","absolute"],rEe=pt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Le(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Mm,default:"bottom"},popperOptions:{type:Le(Object),default:()=>({})},strategy:{type:String,values:nEe,default:"absolute"}}),MU=pt({...rEe,id:String,style:{type:Le([String,Array,Object])},className:{type:Le([String,Array,Object])},effect:{type:Le(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Le([String,Array,Object])},popperStyle:{type:Le([String,Array,Object])},referenceEl:{type:Le(Object)},triggerTargetEl:{type:Le(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...va(["ariaLabel"])}),oEe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},iEe=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...sEe(e),...t]};return lEe(i,o==null?void 0:o.modifiers),i},aEe=e=>{if(!!rr)return Ks(e)};function sEe(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}}]}function lEe(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const uEe=0,cEe=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=$t(e3,void 0),i=ee(),a=ee(),s=W(()=>({name:"eventListeners",enabled:!!e.visible})),l=W(()=>{var C;const P=v(i),$=(C=v(a))!=null?C:uEe;return{name:"arrow",enabled:!aD(P),options:{element:P,padding:$}}}),u=W(()=>({onFirstUpdate:()=>{O()},...iEe(e,[v(l),v(s)])})),f=W(()=>aEe(e.referenceEl)||v(r)),{attributes:h,state:m,styles:y,update:O,forceUpdate:b,instanceRef:k}=ske(f,n,u);return at(k,C=>t.value=C),vn(()=>{at(()=>{var C;return(C=v(f))==null?void 0:C.getBoundingClientRect()},()=>{O()})}),{attributes:h,arrowRef:i,contentRef:n,instanceRef:k,state:m,styles:y,role:o,forceUpdate:b,update:O}},fEe=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=k0(),i=ut("popper"),a=W(()=>v(t).popper),s=ee(tn(e.zIndex)?e.zIndex:o()),l=W(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=W(()=>[{zIndex:v(s)},v(n).popper,e.popperStyle||{}]),f=W(()=>r.value==="dialog"?"false":void 0),h=W(()=>v(n).arrow||{});return{ariaModal:f,arrowStyle:h,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=tn(e.zIndex)?e.zIndex:o()}}},dEe=(e,t)=>{const n=ee(!1),r=ee();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var f;((f=u.detail)==null?void 0:f.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},hEe=xe({name:"ElPopperContent"}),pEe=xe({...hEe,props:MU,emits:oEe,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:f}=dEe(r,n),{attributes:h,arrowRef:m,contentRef:y,styles:O,instanceRef:b,role:k,update:C}=cEe(r),{ariaModal:P,arrowStyle:$,contentAttrs:T,contentClass:A,contentStyle:R,updateZIndex:B}=fEe(r,{styles:O,attributes:h,role:k}),I=$t(Of,void 0),N=ee();Yn(kU,{arrowStyle:$,arrowRef:m,arrowOffset:N}),I&&Yn(Of,{...I,addInputId:zr,removeInputId:zr});let j;const L=(X=!0)=>{C(),X&&B()},V=()=>{L(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return vn(()=>{at(()=>r.triggerTargetEl,(X,oe)=>{j==null||j(),j=void 0;const K=v(X||y.value),Z=v(oe||y.value);Ll(K)&&(j=at([k,()=>r.ariaLabel,P,()=>r.id],re=>{["role","aria-label","aria-modal","id"].forEach((J,z)=>{Wi(re[z])?K.removeAttribute(J):K.setAttribute(J,re[z])})},{immediate:!0})),Z!==K&&Ll(Z)&&["role","aria-label","aria-modal","id"].forEach(re=>{Z.removeAttribute(re)})},{immediate:!0}),at(()=>r.visible,V,{immediate:!0})}),qr(()=>{j==null||j(),j=void 0}),t({popperContentRef:y,popperInstanceRef:b,updatePopper:L,contentStyle:R}),(X,oe)=>(U(),ce("div",Dn({ref_key:"contentRef",ref:y},v(T),{style:v(R),class:v(A),tabindex:"-1",onMouseenter:K=>X.$emit("mouseenter",K),onMouseleave:K=>X.$emit("mouseleave",K)}),[ne(v(Q1),{trapped:v(i),"trap-on-focus-in":!0,"focus-trap-el":v(y),"focus-start-el":v(o),onFocusAfterTrapped:v(s),onFocusAfterReleased:v(a),onFocusin:v(l),onFocusoutPrevented:v(u),onReleaseRequested:v(f)},{default:se(()=>[Xe(X.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var gEe=gt(pEe,[["__file","content.vue"]]);const RU=gn(j2e),rE=Symbol("elTooltip"),Ji=pt({...pke,...MU,appendTo:{type:Le([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Le(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...va(["ariaLabel"])}),YO=pt({...$U,disabled:Boolean,trigger:{type:Le([String,Array]),default:"hover"},triggerKeys:{type:Le(Array),default:()=>[Yt.enter,Yt.space]}}),{useModelToggleProps:mEe,useModelToggleEmits:vEe,useModelToggle:yEe}=oxe("visible"),bEe=pt({...CU,...mEe,...Ji,...YO,...EU,showArrow:{type:Boolean,default:!0}}),_Ee=[...vEe,"before-show","before-hide","show","hide","open","close"],OEe=(e,t)=>Et(e)?e.includes(t):e===t,ey=(e,t,n)=>r=>{OEe(v(e),t)&&n(r)},wEe=xe({name:"ElTooltipTrigger"}),SEe=xe({...wEe,props:YO,setup(e,{expose:t}){const n=e,r=ut("tooltip"),{controlled:o,id:i,open:a,onOpen:s,onClose:l,onToggle:u}=$t(rE,void 0),f=ee(null),h=()=>{if(v(o)||n.disabled)return!0},m=Tr(n,"trigger"),y=Fo(h,ey(m,"hover",s)),O=Fo(h,ey(m,"hover",l)),b=Fo(h,ey(m,"click",T=>{T.button===0&&u(T)})),k=Fo(h,ey(m,"focus",s)),C=Fo(h,ey(m,"focus",l)),P=Fo(h,ey(m,"contextmenu",T=>{T.preventDefault(),u(T)})),$=Fo(h,T=>{const{code:A}=T;n.triggerKeys.includes(A)&&(T.preventDefault(),u(T))});return t({triggerRef:f}),(T,A)=>(U(),Qe(v(W2e),{id:v(i),"virtual-ref":T.virtualRef,open:v(a),"virtual-triggering":T.virtualTriggering,class:G(v(r).e("trigger")),onBlur:v(C),onClick:v(b),onContextmenu:v(P),onFocus:v(k),onMouseenter:v(y),onMouseleave:v(O),onKeydown:v($)},{default:se(()=>[Xe(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var xEe=gt(SEe,[["__file","trigger.vue"]]);const kEe=pt({to:{type:Le([String,Object]),required:!0},disabled:Boolean}),CEe=xe({__name:"teleport",props:kEe,setup(e){return(t,n)=>t.disabled?Xe(t.$slots,"default",{key:0}):(U(),Qe(bae,{key:1,to:t.to},[Xe(t.$slots,"default")],8,["to"]))}});var EEe=gt(CEe,[["__file","teleport.vue"]]);const E0=gn(EEe),TEe=xe({name:"ElTooltipContent",inheritAttrs:!1}),PEe=xe({...TEe,props:Ji,setup(e,{expose:t}){const n=e,{selector:r}=eU(),o=ut("tooltip"),i=ee(null);let a;const{controlled:s,id:l,open:u,trigger:f,onClose:h,onOpen:m,onShow:y,onHide:O,onBeforeShow:b,onBeforeHide:k}=$t(rE,void 0),C=W(()=>n.transition||`${o.namespace.value}-fade-in-linear`),P=W(()=>n.persistent);qr(()=>{a==null||a()});const $=W(()=>v(P)?!0:v(u)),T=W(()=>n.disabled?!1:v(u)),A=W(()=>n.appendTo||r.value),R=W(()=>{var Z;return(Z=n.style)!=null?Z:{}}),B=W(()=>!v(u)),I=()=>{O()},N=()=>{if(v(s))return!0},j=Fo(N,()=>{n.enterable&&v(f)==="hover"&&m()}),L=Fo(N,()=>{v(f)==="hover"&&h()}),V=()=>{var Z,re;(re=(Z=i.value)==null?void 0:Z.updatePopper)==null||re.call(Z),b==null||b()},X=()=>{k==null||k()},oe=()=>{y(),a=_I(W(()=>{var Z;return(Z=i.value)==null?void 0:Z.popperContentRef}),()=>{if(v(s))return;v(f)!=="hover"&&h()})},K=()=>{n.virtualTriggering||h()};return at(()=>v(u),Z=>{Z||a==null||a()},{flush:"post"}),at(()=>n.content,()=>{var Z,re;(re=(Z=i.value)==null?void 0:Z.updatePopper)==null||re.call(Z)}),t({contentRef:i}),(Z,re)=>(U(),Qe(v(E0),{disabled:!Z.teleported,to:v(A)},{default:se(()=>[ne(Mi,{name:v(C),onAfterLeave:I,onBeforeEnter:V,onAfterEnter:oe,onBeforeLeave:X},{default:se(()=>[v($)?bn((U(),Qe(v(gEe),Dn({key:0,id:v(l),ref_key:"contentRef",ref:i},Z.$attrs,{"aria-label":Z.ariaLabel,"aria-hidden":v(B),"boundaries-padding":Z.boundariesPadding,"fallback-placements":Z.fallbackPlacements,"gpu-acceleration":Z.gpuAcceleration,offset:Z.offset,placement:Z.placement,"popper-options":Z.popperOptions,strategy:Z.strategy,effect:Z.effect,enterable:Z.enterable,pure:Z.pure,"popper-class":Z.popperClass,"popper-style":[Z.popperStyle,v(R)],"reference-el":Z.referenceEl,"trigger-target-el":Z.triggerTargetEl,visible:v(T),"z-index":Z.zIndex,onMouseenter:v(j),onMouseleave:v(L),onBlur:K,onClose:v(h)}),{default:se(()=>[Xe(Z.$slots,"default")]),_: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","onClose"])),[[gr,v(T)]]):Fe("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var $Ee=gt(PEe,[["__file","content.vue"]]);const AEe=xe({name:"ElTooltip"}),MEe=xe({...AEe,props:bEe,emits:_Ee,setup(e,{expose:t,emit:n}){const r=e;hke();const o=Fa(),i=ee(),a=ee(),s=()=>{var C;const P=v(i);P&&((C=P.popperInstanceRef)==null||C.update())},l=ee(!1),u=ee(),{show:f,hide:h,hasUpdateHandler:m}=yEe({indicator:l,toggleReason:u}),{onOpen:y,onClose:O}=gke({showAfter:Tr(r,"showAfter"),hideAfter:Tr(r,"hideAfter"),autoClose:Tr(r,"autoClose"),open:f,close:h}),b=W(()=>qo(r.visible)&&!m.value);Yn(rE,{controlled:b,id:o,open:x1(l),trigger:Tr(r,"trigger"),onOpen:C=>{y(C)},onClose:C=>{O(C)},onToggle:C=>{v(l)?O(C):y(C)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),at(()=>r.disabled,C=>{C&&l.value&&(l.value=!1)});const k=C=>{var P,$;const T=($=(P=a.value)==null?void 0:P.contentRef)==null?void 0:$.popperContentRef,A=(C==null?void 0:C.relatedTarget)||document.activeElement;return T&&T.contains(A)};return yQ(()=>l.value&&h()),t({popperRef:i,contentRef:a,isFocusInsideContent:k,updatePopper:s,onOpen:y,onClose:O,hide:h}),(C,P)=>(U(),Qe(v(RU),{ref_key:"popperRef",ref:i,role:C.role},{default:se(()=>[ne(xEe,{disabled:C.disabled,trigger:C.trigger,"trigger-keys":C.triggerKeys,"virtual-ref":C.virtualRef,"virtual-triggering":C.virtualTriggering},{default:se(()=>[C.$slots.default?Xe(C.$slots,"default",{key:0}):Fe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ne($Ee,{ref_key:"contentRef",ref:a,"aria-label":C.ariaLabel,"boundaries-padding":C.boundariesPadding,content:C.content,disabled:C.disabled,effect:C.effect,enterable:C.enterable,"fallback-placements":C.fallbackPlacements,"hide-after":C.hideAfter,"gpu-acceleration":C.gpuAcceleration,offset:C.offset,persistent:C.persistent,"popper-class":C.popperClass,"popper-style":C.popperStyle,placement:C.placement,"popper-options":C.popperOptions,pure:C.pure,"raw-content":C.rawContent,"reference-el":C.referenceEl,"trigger-target-el":C.triggerTargetEl,"show-after":C.showAfter,strategy:C.strategy,teleported:C.teleported,transition:C.transition,"virtual-triggering":C.virtualTriggering,"z-index":C.zIndex,"append-to":C.appendTo},{default:se(()=>[Xe(C.$slots,"content",{},()=>[C.rawContent?(U(),ce("span",{key:0,innerHTML:C.content},null,8,["innerHTML"])):(U(),ce("span",{key:1},ct(C.content),1))]),C.showArrow?(U(),Qe(v(V2e),{key:0,"arrow-offset":C.arrowOffset},null,8,["arrow-offset"])):Fe("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 REe=gt(MEe,[["__file","tooltip.vue"]]);const ia=gn(REe),NEe=pt({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Le(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Le([Function,Array]),default:zr},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Ji.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...va(["ariaLabel"])}),IEe={[Tn]:e=>Gt(e),[Ps]:e=>Gt(e),[uo]:e=>Gt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>$n(e)},NU="ElAutocomplete",DEe=xe({name:NU,inheritAttrs:!1}),jEe=xe({...DEe,props:NEe,emits:IEe,setup(e,{expose:t,emit:n}){const r=e,o=AD(),i=Em(),a=Ls(),s=ut("autocomplete"),l=ee(),u=ee(),f=ee(),h=ee();let m=!1,y=!1;const O=ee([]),b=ee(-1),k=ee(""),C=ee(!1),P=ee(!1),$=ee(!1),T=Fa(),A=W(()=>i.style),R=W(()=>(O.value.length>0||$.value)&&C.value),B=W(()=>!r.hideLoading&&$.value),I=W(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),N=()=>{R.value&&(k.value=`${l.value.$el.offsetWidth}px`)},j=()=>{b.value=-1},V=Rs(async Ae=>{if(P.value)return;const _e=ve=>{$.value=!1,!P.value&&(Et(ve)?(O.value=ve,b.value=r.highlightFirstItem?0:-1):Ri(NU,"autocomplete suggestions must be an array"))};if($.value=!0,Et(r.fetchSuggestions))_e(r.fetchSuggestions);else{const ve=await r.fetchSuggestions(Ae,_e);Et(ve)&&_e(ve)}},r.debounce),X=Ae=>{const _e=!!Ae;if(n(Ps,Ae),n(Tn,Ae),P.value=!1,C.value||(C.value=_e),!r.triggerOnFocus&&!Ae){P.value=!0,O.value=[];return}V(Ae)},oe=Ae=>{var _e;a.value||(((_e=Ae.target)==null?void 0:_e.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(C.value=!0)},K=Ae=>{n(uo,Ae)},Z=Ae=>{y?y=!1:(C.value=!0,n("focus",Ae),r.triggerOnFocus&&!m&&V(String(r.modelValue)))},re=Ae=>{setTimeout(()=>{var _e;if((_e=f.value)!=null&&_e.isFocusInsideContent()){y=!0;return}C.value&&ue(),n("blur",Ae)})},J=()=>{C.value=!1,n(Tn,""),n("clear")},z=async()=>{R.value&&b.value>=0&&b.value<O.value.length?ze(O.value[b.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),O.value=[],b.value=-1)},q=Ae=>{R.value&&(Ae.preventDefault(),Ae.stopPropagation(),ue())},ue=()=>{C.value=!1},he=()=>{var Ae;(Ae=l.value)==null||Ae.focus()},le=()=>{var Ae;(Ae=l.value)==null||Ae.blur()},ze=async Ae=>{n(Ps,Ae[r.valueKey]),n(Tn,Ae[r.valueKey]),n("select",Ae),O.value=[],b.value=-1},Ee=Ae=>{if(!R.value||$.value)return;if(Ae<0){b.value=-1;return}Ae>=O.value.length&&(Ae=O.value.length-1);const _e=u.value.querySelector(`.${s.be("suggestion","wrap")}`),Ne=_e.querySelectorAll(`.${s.be("suggestion","list")} li`)[Ae],Se=_e.scrollTop,{offsetTop:fe,scrollHeight:ye}=Ne;fe+ye>Se+_e.clientHeight&&(_e.scrollTop+=ye),fe<Se&&(_e.scrollTop-=ye),b.value=Ae,l.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${b.value}`)},Be=_I(h,()=>{R.value&&ue()});return qr(()=>{Be==null||Be()}),vn(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${b.value}`),m=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:b,activated:C,loading:$,inputRef:l,popperRef:f,suggestions:O,handleSelect:ze,handleKeyEnter:z,focus:he,blur:le,close:ue,highlight:Ee}),(Ae,_e)=>(U(),Qe(v(ia),{ref_key:"popperRef",ref:f,visible:v(R),placement:Ae.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[v(s).e("popper"),Ae.popperClass],teleported:Ae.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${v(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:N,onHide:j},{content:se(()=>[ge("div",{ref_key:"regionRef",ref:u,class:G([v(s).b("suggestion"),v(s).is("loading",v(B))]),style:Ft({[Ae.fitInputWidth?"width":"minWidth"]:k.value,outline:"none"}),role:"region"},[ne(v(Ec),{id:v(T),tag:"ul","wrap-class":v(s).be("suggestion","wrap"),"view-class":v(s).be("suggestion","list"),role:"listbox"},{default:se(()=>[v(B)?(U(),ce("li",{key:0},[Xe(Ae.$slots,"loading",{},()=>[ne(v(Lt),{class:G(v(s).is("loading"))},{default:se(()=>[ne(v(yf))]),_:1},8,["class"])])])):(U(!0),ce(Pt,{key:1},_n(O.value,(ve,Ne)=>(U(),ce("li",{id:`${v(T)}-item-${Ne}`,key:Ne,class:G({highlighted:b.value===Ne}),role:"option","aria-selected":b.value===Ne,onClick:Se=>ze(ve)},[Xe(Ae.$slots,"default",{item:ve},()=>[xt(ct(ve[Ae.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:se(()=>[ge("div",{ref_key:"listboxRef",ref:h,class:G([v(s).b(),Ae.$attrs.class]),style:Ft(v(A)),role:"combobox","aria-haspopup":"listbox","aria-expanded":v(R),"aria-owns":v(T)},[ne(v(ri),Dn({ref_key:"inputRef",ref:l},v(o),{clearable:Ae.clearable,disabled:v(a),name:Ae.name,"model-value":Ae.modelValue,"aria-label":Ae.ariaLabel,onInput:X,onChange:K,onFocus:Z,onBlur:re,onClear:J,onKeydown:[Qr(nn(ve=>Ee(b.value-1),["prevent"]),["up"]),Qr(nn(ve=>Ee(b.value+1),["prevent"]),["down"]),Qr(z,["enter"]),Qr(ue,["tab"]),Qr(q,["esc"])],onMousedown:oe}),Fl({_:2},[Ae.$slots.prepend?{name:"prepend",fn:se(()=>[Xe(Ae.$slots,"prepend")])}:void 0,Ae.$slots.append?{name:"append",fn:se(()=>[Xe(Ae.$slots,"append")])}:void 0,Ae.$slots.prefix?{name:"prefix",fn:se(()=>[Xe(Ae.$slots,"prefix")])}:void 0,Ae.$slots.suffix?{name:"suffix",fn:se(()=>[Xe(Ae.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var LEe=gt(jEe,[["__file","autocomplete.vue"]]);const BEe=gn(LEe),VEe=pt({size:{type:[Number,String],values:$f,default:"",validator:e=>tn(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Wr},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:Le(String),default:"cover"}}),FEe={error:e=>e instanceof Event},zEe=xe({name:"ElAvatar"}),QEe=xe({...zEe,props:VEe,emits:FEe,setup(e,{emit:t}){const n=e,r=ut("avatar"),o=ee(!1),i=W(()=>{const{size:u,icon:f,shape:h}=n,m=[r.b()];return Gt(u)&&m.push(r.m(u)),f&&m.push(r.m("icon")),h&&m.push(r.m(h)),m}),a=W(()=>{const{size:u}=n;return tn(u)?r.cssVarBlock({size:Qo(u)||""}):void 0}),s=W(()=>({objectFit:n.fit}));at(()=>n.src,()=>o.value=!1);function l(u){o.value=!0,t("error",u)}return(u,f)=>(U(),ce("span",{class:G(v(i)),style:Ft(v(a))},[(u.src||u.srcSet)&&!o.value?(U(),ce("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Ft(v(s)),onError:l},null,44,["src","alt","srcset"])):u.icon?(U(),Qe(v(Lt),{key:1},{default:se(()=>[(U(),Qe(jn(u.icon)))]),_:1})):Xe(u.$slots,"default",{key:2})],6))}});var WEe=gt(QEe,[["__file","avatar.vue"]]);const YEe=gn(WEe),UEe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},HEe={click:e=>e instanceof MouseEvent},ZEe=(e,t,n)=>{const r=to(),o=to(),i=ee(!1),a=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var f;(f=r.value)==null||f.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=GQ(a,300,!0);return Nr(o,"scroll",l),vn(()=>{var u;o.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||Ri(n,`target does not exist: ${e.target}`),o.value=r.value),a()}),{visible:i,handleClick:s}},IU="ElBacktop",XEe=xe({name:IU}),qEe=xe({...XEe,props:UEe,emits:HEe,setup(e,{emit:t}){const n=e,r=ut("backtop"),{handleClick:o,visible:i}=ZEe(n,t,IU),a=W(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(U(),Qe(Mi,{name:`${v(r).namespace.value}-fade-in`},{default:se(()=>[v(i)?(U(),ce("div",{key:0,style:Ft(v(a)),class:G(v(r).b()),onClick:nn(v(o),["stop"])},[Xe(s.$slots,"default",{},()=>[ne(v(Lt),{class:G(v(r).e("icon"))},{default:se(()=>[ne(v(Bwe))]),_:1},8,["class"])])],14,["onClick"])):Fe("v-if",!0)]),_:3},8,["name"]))}});var KEe=gt(qEe,[["__file","backtop.vue"]]);const GEe=gn(KEe),JEe=pt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Le([String,Object,Array])},offset:{type:Le(Array),default:[0,0]},badgeClass:{type:String}}),eTe=xe({name:"ElBadge"}),tTe=xe({...eTe,props:JEe,setup(e,{expose:t}){const n=e,r=ut("badge"),o=W(()=>n.isDot?"":tn(n.value)&&tn(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`),i=W(()=>{var a,s,l,u,f;return[{backgroundColor:n.color,marginRight:Qo(-((s=(a=n.offset)==null?void 0:a[0])!=null?s:0)),marginTop:Qo((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(f=n.badgeStyle)!=null?f:{}]});return t({content:o}),(a,s)=>(U(),ce("div",{class:G(v(r).b())},[Xe(a.$slots,"default"),ne(Mi,{name:`${v(r).namespace.value}-zoom-in-center`,persisted:""},{default:se(()=>[bn(ge("sup",{class:G([v(r).e("content"),v(r).em("content",a.type),v(r).is("fixed",!!a.$slots.default),v(r).is("dot",a.isDot),a.badgeClass]),style:Ft(v(i)),textContent:ct(v(o))},null,14,["textContent"]),[[gr,!a.hidden&&(v(o)||a.isDot)]])]),_:1},8,["name"])],2))}});var nTe=gt(tTe,[["__file","badge.vue"]]);const DU=gn(nTe),jU=Symbol("breadcrumbKey"),rTe=pt({separator:{type:String,default:"/"},separatorIcon:{type:Wr}}),oTe=xe({name:"ElBreadcrumb"}),iTe=xe({...oTe,props:rTe,setup(e){const t=e,{t:n}=ir(),r=ut("breadcrumb"),o=ee();return Yn(jU,t),vn(()=>{const i=o.value.querySelectorAll(`.${r.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,a)=>(U(),ce("div",{ref_key:"breadcrumb",ref:o,class:G(v(r).b()),"aria-label":v(n)("el.breadcrumb.label"),role:"navigation"},[Xe(i.$slots,"default")],10,["aria-label"]))}});var aTe=gt(iTe,[["__file","breadcrumb.vue"]]);const sTe=pt({to:{type:Le([String,Object]),default:""},replace:Boolean}),lTe=xe({name:"ElBreadcrumbItem"}),uTe=xe({...lTe,props:sTe,setup(e){const t=e,n=En(),r=$t(jU,void 0),o=ut("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=ee(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var f,h;return U(),ce("span",{class:G(v(o).e("item"))},[ge("span",{ref_key:"link",ref:a,class:G([v(o).e("inner"),v(o).is("link",!!l.to)]),role:"link",onClick:s},[Xe(l.$slots,"default")],2),(f=v(r))!=null&&f.separatorIcon?(U(),Qe(v(Lt),{key:0,class:G(v(o).e("separator"))},{default:se(()=>[(U(),Qe(jn(v(r).separatorIcon)))]),_:1},8,["class"])):(U(),ce("span",{key:1,class:G(v(o).e("separator")),role:"presentation"},ct((h=v(r))==null?void 0:h.separator),3))],2)}}});var LU=gt(uTe,[["__file","breadcrumb-item.vue"]]);const cTe=gn(aTe,{BreadcrumbItem:LU}),fTe=Co(LU),BU=Symbol("buttonGroupContextKey"),dTe=(e,t)=>{Xh({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},W(()=>e.type==="text"));const n=$t(BU,void 0),r=eE("button"),{form:o}=cs(),i=wi(W(()=>n==null?void 0:n.size)),a=Ls(),s=ee(),l=Ui(),u=W(()=>e.type||(n==null?void 0:n.type)||""),f=W(()=>{var O,b,k;return(k=(b=e.autoInsertSpace)!=null?b:(O=r.value)==null?void 0:O.autoInsertSpace)!=null?k:!1}),h=W(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=W(()=>{var O;const b=(O=l.default)==null?void 0:O.call(l);if(f.value&&(b==null?void 0:b.length)===1){const k=b[0];if((k==null?void 0:k.type)===p0){const C=k.children;return/^\p{Unified_Ideograph}{2}$/u.test(C.trim())}}return!1});return{_disabled:a,_size:i,_type:u,_ref:s,_props:h,shouldAddSpace:m,handleClick:O=>{e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",O)}}},ZM=["default","primary","success","warning","info","danger","text",""],hTe=["button","submit","reset"],XM=pt({size:Ni,disabled:Boolean,type:{type:String,values:ZM,default:""},icon:{type:Wr},nativeType:{type:String,values:hTe,default:"button"},loading:Boolean,loadingIcon:{type:Wr,default:()=>yf},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Le([String,Object]),default:"button"}}),pTe={click:e=>e instanceof MouseEvent};function Va(e,t){gTe(e)&&(e="100%");var n=mTe(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 Ax(e){return Math.min(1,Math.max(0,e))}function gTe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function mTe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function VU(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zg(e){return e.length===1?"0"+e:String(e)}function vTe(e,t,n){return{r:Va(e,255)*255,g:Va(t,255)*255,b:Va(n,255)*255}}function _B(e,t,n){e=Va(e,255),t=Va(t,255),n=Va(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:s}}function uA(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 yTe(e,t,n){var r,o,i;if(e=Va(e,360),t=Va(t,100),n=Va(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=uA(s,a,e+1/3),o=uA(s,a,e),i=uA(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function OB(e,t,n){e=Va(e,255),t=Va(t,255),n=Va(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:a}}function bTe(e,t,n){e=Va(e,360)*6,t=Va(t,100),n=Va(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,u=[n,a,i,i,s,n][l],f=[s,n,n,a,i,i][l],h=[i,i,s,n,n,a][l];return{r:u*255,g:f*255,b:h*255}}function wB(e,t,n,r){var o=[Zg(Math.round(e).toString(16)),Zg(Math.round(t).toString(16)),Zg(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function _Te(e,t,n,r,o){var i=[Zg(Math.round(e).toString(16)),Zg(Math.round(t).toString(16)),Zg(Math.round(n).toString(16)),Zg(OTe(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function OTe(e){return Math.round(parseFloat(e)*255).toString(16)}function SB(e){return Pl(e)/255}function Pl(e){return parseInt(e,16)}function wTe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var qM={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 STe(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=CTe(e)),typeof e=="object"&&(cd(e.r)&&cd(e.g)&&cd(e.b)?(t=vTe(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):cd(e.h)&&cd(e.s)&&cd(e.v)?(r=Mx(e.s),o=Mx(e.v),t=bTe(e.h,r,o),a=!0,s="hsv"):cd(e.h)&&cd(e.s)&&cd(e.l)&&(r=Mx(e.s),i=Mx(e.l),t=yTe(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=VU(n),{ok:a,format:e.format||s,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 xTe="[-\\+]?\\d+%?",kTe="[-\\+]?\\d*\\.\\d+%?",Vh="(?:".concat(kTe,")|(?:").concat(xTe,")"),cA="[\\s|\\(]+(".concat(Vh,")[,|\\s]+(").concat(Vh,")[,|\\s]+(").concat(Vh,")\\s*\\)?"),fA="[\\s|\\(]+(".concat(Vh,")[,|\\s]+(").concat(Vh,")[,|\\s]+(").concat(Vh,")[,|\\s]+(").concat(Vh,")\\s*\\)?"),uc={CSS_UNIT:new RegExp(Vh),rgb:new RegExp("rgb"+cA),rgba:new RegExp("rgba"+fA),hsl:new RegExp("hsl"+cA),hsla:new RegExp("hsla"+fA),hsv:new RegExp("hsv"+cA),hsva:new RegExp("hsva"+fA),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 CTe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(qM[e])e=qM[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=uc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=uc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=uc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=uc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=uc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=uc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=uc.hex8.exec(e),n?{r:Pl(n[1]),g:Pl(n[2]),b:Pl(n[3]),a:SB(n[4]),format:t?"name":"hex8"}:(n=uc.hex6.exec(e),n?{r:Pl(n[1]),g:Pl(n[2]),b:Pl(n[3]),format:t?"name":"hex"}:(n=uc.hex4.exec(e),n?{r:Pl(n[1]+n[1]),g:Pl(n[2]+n[2]),b:Pl(n[3]+n[3]),a:SB(n[4]+n[4]),format:t?"name":"hex8"}:(n=uc.hex3.exec(e),n?{r:Pl(n[1]+n[1]),g:Pl(n[2]+n[2]),b:Pl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function cd(e){return Boolean(uc.CSS_UNIT.exec(String(e)))}var FU=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=wTe(t)),this.originalInput=t;var o=STe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=VU(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=OB(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=OB(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=_B(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=_B(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),wB(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),_Te(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(Va(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(Va(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="#"+wB(this.r,this.g,this.b,!1),n=0,r=Object.entries(qM);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?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=Ax(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=Ax(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=Ax(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=Ax(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(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},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,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},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,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Th(e,t=20){return e.mix("#141414",t).toString()}function ETe(e){const t=Ls(),n=ut("button");return W(()=>{let r={},o=e.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const a=new FU(o),s=e.dark?a.tint(20).toString():Th(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Th(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?Th(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Th(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Th(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Th(a,80):a.tint(80).toString());else{const l=e.dark?Th(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const f=e.dark?Th(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=f,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")]=f}}}return r})}const TTe=xe({name:"ElButton"}),PTe=xe({...TTe,props:XM,emits:pTe,setup(e,{expose:t,emit:n}){const r=e,o=ETe(r),i=ut("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:f,shouldAddSpace:h,handleClick:m}=dTe(r,n),y=W(()=>[i.b(),i.m(l.value),i.m(s.value),i.is("disabled",u.value),i.is("loading",r.loading),i.is("plain",r.plain),i.is("round",r.round),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:a,size:s,type:l,disabled:u,shouldAddSpace:h}),(O,b)=>(U(),Qe(jn(O.tag),Dn({ref_key:"_ref",ref:a},v(f),{class:v(y),style:v(o),onClick:v(m)}),{default:se(()=>[O.loading?(U(),ce(Pt,{key:0},[O.$slots.loading?Xe(O.$slots,"loading",{key:0}):(U(),Qe(v(Lt),{key:1,class:G(v(i).is("loading"))},{default:se(()=>[(U(),Qe(jn(O.loadingIcon)))]),_:1},8,["class"]))],64)):O.icon||O.$slots.icon?(U(),Qe(v(Lt),{key:1},{default:se(()=>[O.icon?(U(),Qe(jn(O.icon),{key:0})):Xe(O.$slots,"icon",{key:1})]),_:3})):Fe("v-if",!0),O.$slots.default?(U(),ce("span",{key:2,class:G({[v(i).em("text","expand")]:v(h)})},[Xe(O.$slots,"default")],2)):Fe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var $Te=gt(PTe,[["__file","button.vue"]]);const ATe={size:XM.size,type:XM.type},MTe=xe({name:"ElButtonGroup"}),RTe=xe({...MTe,props:ATe,setup(e){const t=e;Yn(BU,or({size:Tr(t,"size"),type:Tr(t,"type")}));const n=ut("button");return(r,o)=>(U(),ce("div",{class:G(v(n).b("group"))},[Xe(r.$slots,"default")],2))}});var zU=gt(RTe,[["__file","button-group.vue"]]);const io=gn($Te,{ButtonGroup:zU}),QU=Co(zU);var qs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function NTe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var WU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",u="day",f="week",h="month",m="quarter",y="year",O="date",b="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(oe){var K=["th","st","nd","rd"],Z=oe%100;return"["+oe+(K[(Z-20)%10]||K[Z]||K[0])+"]"}},$=function(oe,K,Z){var re=String(oe);return!re||re.length>=K?oe:""+Array(K+1-re.length).join(Z)+oe},T={s:$,z:function(oe){var K=-oe.utcOffset(),Z=Math.abs(K),re=Math.floor(Z/60),J=Z%60;return(K<=0?"+":"-")+$(re,2,"0")+":"+$(J,2,"0")},m:function oe(K,Z){if(K.date()<Z.date())return-oe(Z,K);var re=12*(Z.year()-K.year())+(Z.month()-K.month()),J=K.clone().add(re,h),z=Z-J<0,q=K.clone().add(re+(z?-1:1),h);return+(-(re+(Z-J)/(z?J-q:q-J))||0)},a:function(oe){return oe<0?Math.ceil(oe)||0:Math.floor(oe)},p:function(oe){return{M:h,y,w:f,d:u,D:O,h:l,m:s,s:a,ms:i,Q:m}[oe]||String(oe||"").toLowerCase().replace(/s$/,"")},u:function(oe){return oe===void 0}},A="en",R={};R[A]=P;var B="$isDayjsObject",I=function(oe){return oe instanceof V||!(!oe||!oe[B])},N=function oe(K,Z,re){var J;if(!K)return A;if(typeof K=="string"){var z=K.toLowerCase();R[z]&&(J=z),Z&&(R[z]=Z,J=z);var q=K.split("-");if(!J&&q.length>1)return oe(q[0])}else{var ue=K.name;R[ue]=K,J=ue}return!re&&J&&(A=J),J||!re&&A},j=function(oe,K){if(I(oe))return oe.clone();var Z=typeof K=="object"?K:{};return Z.date=oe,Z.args=arguments,new V(Z)},L=T;L.l=N,L.i=I,L.w=function(oe,K){return j(oe,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var V=function(){function oe(Z){this.$L=N(Z.locale,null,!0),this.parse(Z),this.$x=this.$x||Z.x||{},this[B]=!0}var K=oe.prototype;return K.parse=function(Z){this.$d=function(re){var J=re.date,z=re.utc;if(J===null)return new Date(NaN);if(L.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var q=J.match(k);if(q){var ue=q[2]-1||0,he=(q[7]||"0").substring(0,3);return z?new Date(Date.UTC(q[1],ue,q[3]||1,q[4]||0,q[5]||0,q[6]||0,he)):new Date(q[1],ue,q[3]||1,q[4]||0,q[5]||0,q[6]||0,he)}}return new Date(J)}(Z),this.init()},K.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},K.$utils=function(){return L},K.isValid=function(){return this.$d.toString()!==b},K.isSame=function(Z,re){var J=j(Z);return this.startOf(re)<=J&&J<=this.endOf(re)},K.isAfter=function(Z,re){return j(Z)<this.startOf(re)},K.isBefore=function(Z,re){return this.endOf(re)<j(Z)},K.$g=function(Z,re,J){return L.u(Z)?this[re]:this.set(J,Z)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(Z,re){var J=this,z=!!L.u(re)||re,q=L.p(Z),ue=function(ve,Ne){var Se=L.w(J.$u?Date.UTC(J.$y,Ne,ve):new Date(J.$y,Ne,ve),J);return z?Se:Se.endOf(u)},he=function(ve,Ne){return L.w(J.toDate()[ve].apply(J.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(Ne)),J)},le=this.$W,ze=this.$M,Ee=this.$D,Be="set"+(this.$u?"UTC":"");switch(q){case y:return z?ue(1,0):ue(31,11);case h:return z?ue(1,ze):ue(0,ze+1);case f:var Ae=this.$locale().weekStart||0,_e=(le<Ae?le+7:le)-Ae;return ue(z?Ee-_e:Ee+(6-_e),ze);case u:case O:return he(Be+"Hours",0);case l:return he(Be+"Minutes",1);case s:return he(Be+"Seconds",2);case a:return he(Be+"Milliseconds",3);default:return this.clone()}},K.endOf=function(Z){return this.startOf(Z,!1)},K.$set=function(Z,re){var J,z=L.p(Z),q="set"+(this.$u?"UTC":""),ue=(J={},J[u]=q+"Date",J[O]=q+"Date",J[h]=q+"Month",J[y]=q+"FullYear",J[l]=q+"Hours",J[s]=q+"Minutes",J[a]=q+"Seconds",J[i]=q+"Milliseconds",J)[z],he=z===u?this.$D+(re-this.$W):re;if(z===h||z===y){var le=this.clone().set(O,1);le.$d[ue](he),le.init(),this.$d=le.set(O,Math.min(this.$D,le.daysInMonth())).$d}else ue&&this.$d[ue](he);return this.init(),this},K.set=function(Z,re){return this.clone().$set(Z,re)},K.get=function(Z){return this[L.p(Z)]()},K.add=function(Z,re){var J,z=this;Z=Number(Z);var q=L.p(re),ue=function(ze){var Ee=j(z);return L.w(Ee.date(Ee.date()+Math.round(ze*Z)),z)};if(q===h)return this.set(h,this.$M+Z);if(q===y)return this.set(y,this.$y+Z);if(q===u)return ue(1);if(q===f)return ue(7);var he=(J={},J[s]=r,J[l]=o,J[a]=n,J)[q]||1,le=this.$d.getTime()+Z*he;return L.w(le,this)},K.subtract=function(Z,re){return this.add(-1*Z,re)},K.format=function(Z){var re=this,J=this.$locale();if(!this.isValid())return J.invalidDate||b;var z=Z||"YYYY-MM-DDTHH:mm:ssZ",q=L.z(this),ue=this.$H,he=this.$m,le=this.$M,ze=J.weekdays,Ee=J.months,Be=J.meridiem,Ae=function(Ne,Se,fe,ye){return Ne&&(Ne[Se]||Ne(re,z))||fe[Se].slice(0,ye)},_e=function(Ne){return L.s(ue%12||12,Ne,"0")},ve=Be||function(Ne,Se,fe){var ye=Ne<12?"AM":"PM";return fe?ye.toLowerCase():ye};return z.replace(C,function(Ne,Se){return Se||function(fe){switch(fe){case"YY":return String(re.$y).slice(-2);case"YYYY":return L.s(re.$y,4,"0");case"M":return le+1;case"MM":return L.s(le+1,2,"0");case"MMM":return Ae(J.monthsShort,le,Ee,3);case"MMMM":return Ae(Ee,le);case"D":return re.$D;case"DD":return L.s(re.$D,2,"0");case"d":return String(re.$W);case"dd":return Ae(J.weekdaysMin,re.$W,ze,2);case"ddd":return Ae(J.weekdaysShort,re.$W,ze,3);case"dddd":return ze[re.$W];case"H":return String(ue);case"HH":return L.s(ue,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return ve(ue,he,!0);case"A":return ve(ue,he,!1);case"m":return String(he);case"mm":return L.s(he,2,"0");case"s":return String(re.$s);case"ss":return L.s(re.$s,2,"0");case"SSS":return L.s(re.$ms,3,"0");case"Z":return q}return null}(Ne)||q.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(Z,re,J){var z,q=this,ue=L.p(re),he=j(Z),le=(he.utcOffset()-this.utcOffset())*r,ze=this-he,Ee=function(){return L.m(q,he)};switch(ue){case y:z=Ee()/12;break;case h:z=Ee();break;case m:z=Ee()/3;break;case f:z=(ze-le)/6048e5;break;case u:z=(ze-le)/864e5;break;case l:z=ze/o;break;case s:z=ze/r;break;case a:z=ze/n;break;default:z=ze}return J?z:L.a(z)},K.daysInMonth=function(){return this.endOf(h).$D},K.$locale=function(){return R[this.$L]},K.locale=function(Z,re){if(!Z)return this.$L;var J=this.clone(),z=N(Z,re,!0);return z&&(J.$L=z),J},K.clone=function(){return L.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},oe}(),X=V.prototype;return j.prototype=X,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",u],["$M",h],["$y",y],["$D",O]].forEach(function(oe){X[oe[1]]=function(K){return this.$g(K,oe[0],oe[1])}}),j.extend=function(oe,K){return oe.$i||(oe(K,V,j),oe.$i=!0),j},j.locale=N,j.isDayjs=I,j.unix=function(oe){return j(1e3*oe)},j.en=R[A],j.Ls=R,j.p={},j})})(WU);var cn=WU.exports,YU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},l=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(k){this[b]=+k}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var C=k.match(/([+-]|\d\d)/g),P=60*C[1]+(+C[2]||0);return P===0?0:C[0]==="+"?-P:P}(b)}],h=function(b){var k=s[b];return k&&(k.indexOf?k:k.s.concat(k.f))},m=function(b,k){var C,P=s.meridiem;if(P){for(var $=1;$<=24;$+=1)if(b.indexOf(P($,0,k))>-1){C=$>12;break}}else C=b===(k?"pm":"PM");return C},y={A:[a,function(b){this.afternoon=m(b,!1)}],a:[a,function(b){this.afternoon=m(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[o,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[o,u("day")],Do:[a,function(b){var k=s.ordinal,C=b.match(/\d+/);if(this.day=C[0],k)for(var P=1;P<=31;P+=1)k(P).replace(/\[|\]/g,"")===b&&(this.day=P)}],M:[i,u("month")],MM:[o,u("month")],MMM:[a,function(b){var k=h("months"),C=(h("monthsShort")||k.map(function(P){return P.slice(0,3)})).indexOf(b)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[a,function(b){var k=h("months").indexOf(b)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(b){this.year=l(b)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function O(b){var k,C;k=b,C=s&&s.formats;for(var P=(b=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,j,L){var V=L&&L.toUpperCase();return j||C[L]||n[L]||C[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(X,oe,K){return oe||K.slice(1)})})).match(r),$=P.length,T=0;T<$;T+=1){var A=P[T],R=y[A],B=R&&R[0],I=R&&R[1];P[T]=I?{regex:B,parser:I}:A.replace(/^\[|\]$/g,"")}return function(N){for(var j={},L=0,V=0;L<$;L+=1){var X=P[L];if(typeof X=="string")V+=X.length;else{var oe=X.regex,K=X.parser,Z=N.slice(V),re=oe.exec(Z)[0];K.call(j,re),N=N.replace(re,"")}}return function(J){var z=J.afternoon;if(z!==void 0){var q=J.hours;z?q<12&&(J.hours+=12):q===12&&(J.hours=0),delete J.afternoon}}(j),j}}return function(b,k,C){C.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(l=b.parseTwoDigitYear);var P=k.prototype,$=P.parse;P.parse=function(T){var A=T.date,R=T.utc,B=T.args;this.$u=R;var I=B[1];if(typeof I=="string"){var N=B[2]===!0,j=B[3]===!0,L=N||j,V=B[2];j&&(V=B[2]),s=this.$locale(),!N&&V&&(s=C.Ls[V]),this.$d=function(Z,re,J){try{if(["x","X"].indexOf(re)>-1)return new Date((re==="X"?1e3:1)*Z);var z=O(re)(Z),q=z.year,ue=z.month,he=z.day,le=z.hours,ze=z.minutes,Ee=z.seconds,Be=z.milliseconds,Ae=z.zone,_e=new Date,ve=he||(q||ue?1:_e.getDate()),Ne=q||_e.getFullYear(),Se=0;q&&!ue||(Se=ue>0?ue-1:_e.getMonth());var fe=le||0,ye=ze||0,He=Ee||0,be=Be||0;return Ae?new Date(Date.UTC(Ne,Se,ve,fe,ye,He,be+60*Ae.offset*1e3)):J?new Date(Date.UTC(Ne,Se,ve,fe,ye,He,be)):new Date(Ne,Se,ve,fe,ye,He,be)}catch{return new Date("")}}(A,I,R),this.init(),V&&V!==!0&&(this.$L=this.locale(V).$L),L&&A!=this.format(I)&&(this.$d=new Date("")),s={}}else if(I instanceof Array)for(var X=I.length,oe=1;oe<=X;oe+=1){B[1]=I[oe-1];var K=C.apply(this,B);if(K.isValid()){this.$d=K.$d,this.$L=K.$L,this.init();break}oe===X&&(this.$d=new Date(""))}else $.call(this,T)}}})})(YU);var o3=YU.exports;const xB=["hours","minutes","seconds"],KM="HH:mm:ss",sy="YYYY-MM-DD",ITe={date:sy,dates:sy,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${sy} ${KM}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:sy,datetimerange:`${sy} ${KM}`},dA=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],qh=e=>Array.from(Array.from({length:e}).keys()),UU=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),HU=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),kB=function(e,t){const n=cm(e),r=cm(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},CB=function(e,t){const n=Et(e),r=Et(t);return n&&r?e.length!==t.length?!1:e.every((o,i)=>kB(o,t[i])):!n&&!r?kB(e,t):!1},EB=function(e,t,n){const r=vu(t)||t==="x"?cn(e).locale(n):cn(e,t).locale(n);return r.isValid()?r:void 0},TB=function(e,t,n){return vu(t)?e:t==="x"?+e:cn(e).locale(n).format(t)},hA=(e,t)=>{var n;const r=[],o=t==null?void 0:t();for(let i=0;i<e;i++)r.push((n=o==null?void 0:o.includes(i))!=null?n:!1);return r},ZU=pt({disabledHours:{type:Le(Function)},disabledMinutes:{type:Le(Function)},disabledSeconds:{type:Le(Function)}}),XU=pt({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),i3=pt({id:{type:Le([Array,String])},name:{type:Le([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Le([String,Object]),default:$p},editable:{type:Boolean,default:!0},prefixIcon:{type:Le([String,Object]),default:""},size:Ni,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:Le(Object),default:()=>({})},modelValue:{type:Le([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:Le([Date,Array])},defaultTime:{type:Le([Date,Array])},isRange:Boolean,...ZU,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:Le([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,...C0,...va(["ariaLabel"])}),DTe=xe({name:"Picker"}),jTe=xe({...DTe,props:i3,emits:["update:modelValue","change","focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,o=Em(),{lang:i}=ir(),a=ut("date"),s=ut("input"),l=ut("range"),{form:u,formItem:f}=cs(),h=$t("ElPopperOptions",{}),{valueOnClear:m}=J2(r,null),y=ee(),O=ee(),b=ee(!1),k=ee(!1),C=ee(null);let P=!1,$=!1;const T=W(()=>[a.b("editor"),a.bm("editor",r.type),s.e("wrapper"),a.is("disabled",le.value),a.is("active",b.value),l.b("editor"),Oe?l.bm("editor",Oe.value):"",o.class]),A=W(()=>[s.e("icon"),l.e("close-icon"),fe.value?"":l.e("close-icon--hidden")]);at(b,ot=>{ot?Wt(()=>{ot&&(C.value=r.modelValue)}):(et.value=null,Wt(()=>{R(r.modelValue)}))});const R=(ot,Bt)=>{(Bt||!CB(ot,C.value))&&(n("change",ot),r.validateEvent&&(f==null||f.validate("change").catch(Sn=>void 0)))},B=ot=>{if(!CB(r.modelValue,ot)){let Bt;Et(ot)?Bt=ot.map(Sn=>TB(Sn,r.valueFormat,i.value)):ot&&(Bt=TB(ot,r.valueFormat,i.value)),n("update:modelValue",ot&&Bt,i.value)}},I=ot=>{n("keydown",ot)},N=W(()=>{if(O.value){const ot=qe.value?O.value:O.value.$el;return Array.from(ot.querySelectorAll("input"))}return[]}),j=(ot,Bt,Sn)=>{const It=N.value;!It.length||(!Sn||Sn==="min"?(It[0].setSelectionRange(ot,Bt),It[0].focus()):Sn==="max"&&(It[1].setSelectionRange(ot,Bt),It[1].focus()))},L=()=>{z(!0,!0),Wt(()=>{$=!1})},V=(ot="",Bt=!1)=>{Bt||($=!0),b.value=Bt;let Sn;Et(ot)?Sn=ot.map(It=>It.toDate()):Sn=ot&&ot.toDate(),et.value=null,B(Sn)},X=()=>{k.value=!0},oe=()=>{n("visible-change",!0)},K=ot=>{(ot==null?void 0:ot.key)===Yt.esc&&z(!0,!0)},Z=()=>{k.value=!1,b.value=!1,$=!1,n("visible-change",!1)},re=()=>{b.value=!0},J=()=>{b.value=!1},z=(ot=!0,Bt=!1)=>{$=Bt;const[Sn,It]=v(N);let qt=Sn;!ot&&qe.value&&(qt=It),qt&&qt.focus()},q=ot=>{r.readonly||le.value||b.value||$||(b.value=!0,n("focus",ot))};let ue;const he=ot=>{const Bt=async()=>{setTimeout(()=>{var Sn;ue===Bt&&(!(((Sn=y.value)==null?void 0:Sn.isFocusInsideContent())&&!P)&&N.value.filter(It=>It.contains(document.activeElement)).length===0&&(bt(),b.value=!1,n("blur",ot),r.validateEvent&&(f==null||f.validate("blur").catch(It=>void 0))),P=!1)},0)};ue=Bt,Bt()},le=W(()=>r.disabled||(u==null?void 0:u.disabled)),ze=W(()=>{let ot;if(He.value?Ze.value.getDefaultValue&&(ot=Ze.value.getDefaultValue()):Et(r.modelValue)?ot=r.modelValue.map(Bt=>EB(Bt,r.valueFormat,i.value)):ot=EB(r.modelValue,r.valueFormat,i.value),Ze.value.getRangeAvailableTime){const Bt=Ze.value.getRangeAvailableTime(ot);ss(Bt,ot)||(ot=Bt,B(Et(ot)?ot.map(Sn=>Sn.toDate()):ot.toDate()))}return Et(ot)&&ot.some(Bt=>!Bt)&&(ot=[]),ot}),Ee=W(()=>{if(!Ze.value.panelReady)return"";const ot=Qt(ze.value);return Et(et.value)?[et.value[0]||ot&&ot[0]||"",et.value[1]||ot&&ot[1]||""]:et.value!==null?et.value:!Ae.value&&He.value||!b.value&&He.value?"":ot?_e.value||ve.value||Ne.value?ot.join(", "):ot:""}),Be=W(()=>r.type.includes("time")),Ae=W(()=>r.type.startsWith("time")),_e=W(()=>r.type==="dates"),ve=W(()=>r.type==="months"),Ne=W(()=>r.type==="years"),Se=W(()=>r.prefixIcon||(Be.value?PY:Dwe)),fe=ee(!1),ye=ot=>{r.readonly||le.value||(fe.value&&(ot.stopPropagation(),L(),Ze.value.handleClear?Ze.value.handleClear():B(m.value),R(m.value,!0),fe.value=!1,b.value=!1),n("clear"))},He=W(()=>{const{modelValue:ot}=r;return!ot||Et(ot)&&!ot.filter(Boolean).length}),be=async ot=>{var Bt;r.readonly||le.value||(((Bt=ot.target)==null?void 0:Bt.tagName)!=="INPUT"||N.value.includes(document.activeElement))&&(b.value=!0)},Ie=()=>{r.readonly||le.value||!He.value&&r.clearable&&(fe.value=!0)},De=()=>{fe.value=!1},Me=ot=>{var Bt;r.readonly||le.value||(((Bt=ot.touches[0].target)==null?void 0:Bt.tagName)!=="INPUT"||N.value.includes(document.activeElement))&&(b.value=!0)},qe=W(()=>r.type.includes("range")),Oe=wi(),Je=W(()=>{var ot,Bt;return(Bt=(ot=v(y))==null?void 0:ot.popperRef)==null?void 0:Bt.contentRef}),lt=W(()=>{var ot;return v(qe)?v(O):(ot=v(O))==null?void 0:ot.$el}),Ke=_I(lt,ot=>{const Bt=v(Je),Sn=v(lt);Bt&&(ot.target===Bt||ot.composedPath().includes(Bt))||ot.target===Sn||ot.composedPath().includes(Sn)||(b.value=!1)});qr(()=>{Ke==null||Ke()});const et=ee(null),bt=()=>{if(et.value){const ot=Ot(Ee.value);ot&&kt(ot)&&(B(Et(ot)?ot.map(Bt=>Bt.toDate()):ot.toDate()),et.value=null)}et.value===""&&(B(m.value),R(m.value),et.value=null)},Ot=ot=>ot?Ze.value.parseUserInput(ot):null,Qt=ot=>ot?Ze.value.formatToString(ot):null,kt=ot=>Ze.value.isValidValue(ot),an=async ot=>{if(r.readonly||le.value)return;const{code:Bt}=ot;if(I(ot),Bt===Yt.esc){b.value===!0&&(b.value=!1,ot.preventDefault(),ot.stopPropagation());return}if(Bt===Yt.down&&(Ze.value.handleFocusPicker&&(ot.preventDefault(),ot.stopPropagation()),b.value===!1&&(b.value=!0,await Wt()),Ze.value.handleFocusPicker)){Ze.value.handleFocusPicker();return}if(Bt===Yt.tab){P=!0;return}if(Bt===Yt.enter||Bt===Yt.numpadEnter){(et.value===null||et.value===""||kt(Ot(Ee.value)))&&(bt(),b.value=!1),ot.stopPropagation();return}if(et.value){ot.stopPropagation();return}Ze.value.handleKeydownInput&&Ze.value.handleKeydownInput(ot)},Ce=ot=>{et.value=ot,b.value||(b.value=!0)},Ye=ot=>{const Bt=ot.target;et.value?et.value=[Bt.value,et.value[1]]:et.value=[Bt.value,null]},me=ot=>{const Bt=ot.target;et.value?et.value=[et.value[0],Bt.value]:et.value=[null,Bt.value]},Ve=()=>{var ot;const Bt=et.value,Sn=Ot(Bt&&Bt[0]),It=v(ze);if(Sn&&Sn.isValid()){et.value=[Qt(Sn),((ot=Ee.value)==null?void 0:ot[1])||null];const qt=[Sn,It&&(It[1]||null)];kt(qt)&&(B(qt),et.value=null)}},ke=()=>{var ot;const Bt=v(et),Sn=Ot(Bt&&Bt[1]),It=v(ze);if(Sn&&Sn.isValid()){et.value=[((ot=v(Ee))==null?void 0:ot[0])||null,Qt(Sn)];const qt=[It&&It[0],Sn];kt(qt)&&(B(qt),et.value=null)}},Ze=ee({}),rt=ot=>{Ze.value[ot[0]]=ot[1],Ze.value.panelReady=!0},zt=ot=>{n("calendar-change",ot)},Fn=(ot,Bt,Sn)=>{n("panel-change",ot,Bt,Sn)};return Yn("EP_PICKER_BASE",{props:r}),t({focus:z,handleFocusInput:q,handleBlurInput:he,handleOpen:re,handleClose:J,onPick:V}),(ot,Bt)=>(U(),Qe(v(ia),Dn({ref_key:"refPopper",ref:y,visible:b.value,effect:"light",pure:"",trigger:"click"},ot.$attrs,{role:"dialog",teleported:"",transition:`${v(a).namespace.value}-zoom-in-top`,"popper-class":[`${v(a).namespace.value}-picker__popper`,ot.popperClass],"popper-options":v(h),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:X,onShow:oe,onHide:Z}),{default:se(()=>[v(qe)?(U(),ce("div",{key:1,ref_key:"inputRef",ref:O,class:G(v(T)),style:Ft(ot.$attrs.style),onClick:q,onMouseenter:Ie,onMouseleave:De,onTouchstartPassive:Me,onKeydown:an},[v(Se)?(U(),Qe(v(Lt),{key:0,class:G([v(s).e("icon"),v(l).e("icon")]),onMousedown:nn(be,["prevent"]),onTouchstartPassive:Me},{default:se(()=>[(U(),Qe(jn(v(Se))))]),_:1},8,["class","onMousedown"])):Fe("v-if",!0),ge("input",{id:ot.id&&ot.id[0],autocomplete:"off",name:ot.name&&ot.name[0],placeholder:ot.startPlaceholder,value:v(Ee)&&v(Ee)[0],disabled:v(le),readonly:!ot.editable||ot.readonly,class:G(v(l).b("input")),onMousedown:be,onInput:Ye,onChange:Ve,onFocus:q,onBlur:he},null,42,["id","name","placeholder","value","disabled","readonly"]),Xe(ot.$slots,"range-separator",{},()=>[ge("span",{class:G(v(l).b("separator"))},ct(ot.rangeSeparator),3)]),ge("input",{id:ot.id&&ot.id[1],autocomplete:"off",name:ot.name&&ot.name[1],placeholder:ot.endPlaceholder,value:v(Ee)&&v(Ee)[1],disabled:v(le),readonly:!ot.editable||ot.readonly,class:G(v(l).b("input")),onMousedown:be,onFocus:q,onBlur:he,onInput:me,onChange:ke},null,42,["id","name","placeholder","value","disabled","readonly"]),ot.clearIcon?(U(),Qe(v(Lt),{key:1,class:G(v(A)),onClick:ye},{default:se(()=>[(U(),Qe(jn(ot.clearIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],38)):(U(),Qe(v(ri),{key:0,id:ot.id,ref_key:"inputRef",ref:O,"container-role":"combobox","model-value":v(Ee),name:ot.name,size:v(Oe),disabled:v(le),placeholder:ot.placeholder,class:G([v(a).b("editor"),v(a).bm("editor",ot.type),ot.$attrs.class]),style:Ft(ot.$attrs.style),readonly:!ot.editable||ot.readonly||v(_e)||v(ve)||v(Ne)||ot.type==="week","aria-label":ot.ariaLabel,tabindex:ot.tabindex,"validate-event":!1,onInput:Ce,onFocus:q,onBlur:he,onKeydown:an,onChange:bt,onMousedown:be,onMouseenter:Ie,onMouseleave:De,onTouchstartPassive:Me,onClick:nn(()=>{},["stop"])},{prefix:se(()=>[v(Se)?(U(),Qe(v(Lt),{key:0,class:G(v(s).e("icon")),onMousedown:nn(be,["prevent"]),onTouchstartPassive:Me},{default:se(()=>[(U(),Qe(jn(v(Se))))]),_:1},8,["class","onMousedown"])):Fe("v-if",!0)]),suffix:se(()=>[fe.value&&ot.clearIcon?(U(),Qe(v(Lt),{key:0,class:G(`${v(s).e("icon")} clear-icon`),onClick:nn(ye,["stop"])},{default:se(()=>[(U(),Qe(jn(ot.clearIcon)))]),_:1},8,["class","onClick"])):Fe("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onKeydown","onClick"]))]),content:se(()=>[Xe(ot.$slots,"default",{visible:b.value,actualVisible:k.value,parsedValue:v(ze),format:ot.format,dateFormat:ot.dateFormat,timeFormat:ot.timeFormat,unlinkPanels:ot.unlinkPanels,type:ot.type,defaultValue:ot.defaultValue,onPick:V,onSelectRange:j,onSetPickerOption:rt,onCalendarChange:zt,onPanelChange:Fn,onKeydown:K,onMousedown:nn(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var qU=gt(jTe,[["__file","picker.vue"]]);const LTe=pt({...XU,datetimeRole:String,parsedValue:{type:Le(Object)}}),KU=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(a,s,l,u)=>{const f={hour:e,minute:t,second:n};let h=a;return["hour","minute","second"].forEach(m=>{if(f[m]){let y;const O=f[m];switch(m){case"minute":{y=O(h.hour(),s,u);break}case"second":{y=O(h.hour(),h.minute(),s,u);break}default:{y=O(s,u);break}}if((y==null?void 0:y.length)&&!y.includes(h[m]())){const b=l?0:y.length-1;h=h[m](y[b])}}}),h},o={};return{timePickerOptions:o,getAvailableTime:r,onSetOption:([a,s])=>{o[a]=s}}},pA=e=>{const t=(r,o)=>r||o,n=r=>r!==!0;return e.map(t).filter(n)},GU=(e,t,n)=>({getHoursList:(a,s)=>hA(24,e&&(()=>e==null?void 0:e(a,s))),getMinutesList:(a,s,l)=>hA(60,t&&(()=>t==null?void 0:t(a,s,l))),getSecondsList:(a,s,l,u)=>hA(60,n&&(()=>n==null?void 0:n(a,s,l,u)))}),JU=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:i}=GU(e,t,n);return{getAvailableHours:(u,f)=>pA(r(u,f)),getAvailableMinutes:(u,f,h)=>pA(o(u,f,h)),getAvailableSeconds:(u,f,h,m)=>pA(i(u,f,h,m))}},eH=e=>{const t=ee(e.parsedValue);return at(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Mh=new Map;if(rr){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Mh.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function PB(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Ll(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,a=r.target,s=o==null?void 0:o.target,l=!t||!t.instance,u=!a||!s,f=e.contains(a)||e.contains(s),h=e===a,m=n.length&&n.some(O=>O==null?void 0:O.contains(a))||n.length&&n.includes(s),y=i&&(i.contains(a)||i.contains(s));l||u||f||h||m||y||t.value(r,o)}}const Sd={beforeMount(e,t){Mh.has(e)||Mh.set(e,[]),Mh.get(e).push({documentHandler:PB(e,t),bindingFn:t.value})},updated(e,t){Mh.has(e)||Mh.set(e,[]);const n=Mh.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),o={documentHandler:PB(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){Mh.delete(e)}},BTe=100,VTe=600,cC={beforeMount(e,t){const n=t.value,{interval:r=BTe,delay:o=VTe}=rn(n)?{}:n;let i,a;const s=()=>rn(n)?n():n.handler(),l=()=>{a&&(clearTimeout(a),a=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),a=setTimeout(()=>{i=setInterval(()=>{s()},r)},o))})}},GM="_trap-focus-children",Xg=[],$B=e=>{if(Xg.length===0)return;const t=Xg[Xg.length-1][GM];if(t.length>0&&e.code===Yt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],o=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},FTe={beforeMount(e){e[GM]=d5(e),Xg.push(e),Xg.length<=1&&document.addEventListener("keydown",$B)},updated(e){Wt(()=>{e[GM]=d5(e)})},unmounted(){Xg.shift(),Xg.length===0&&document.removeEventListener("keydown",$B)}};var AB=!1,Vg,JM,eR,bk,_k,tH,Ok,tR,nR,rR,nH,oR,iR,rH,oH;function Us(){if(!AB){AB=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(oR=/\b(iPhone|iP[ao]d)/.exec(e),iR=/\b(iP[ao]d)/.exec(e),rR=/Android/i.exec(e),rH=/FBAN\/\w+;/i.exec(e),oH=/Mobile/i.exec(e),nH=!!/Win64/.exec(e),t){Vg=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Vg&&document&&document.documentMode&&(Vg=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);tH=r?parseFloat(r[1])+4:Vg,JM=t[2]?parseFloat(t[2]):NaN,eR=t[3]?parseFloat(t[3]):NaN,bk=t[4]?parseFloat(t[4]):NaN,bk?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),_k=t&&t[1]?parseFloat(t[1]):NaN):_k=NaN}else Vg=JM=eR=_k=bk=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ok=o?parseFloat(o[1].replace("_",".")):!0}else Ok=!1;tR=!!n[2],nR=!!n[3]}else Ok=tR=nR=!1}}var aR={ie:function(){return Us()||Vg},ieCompatibilityMode:function(){return Us()||tH>Vg},ie64:function(){return aR.ie()&&nH},firefox:function(){return Us()||JM},opera:function(){return Us()||eR},webkit:function(){return Us()||bk},safari:function(){return aR.webkit()},chrome:function(){return Us()||_k},windows:function(){return Us()||tR},osx:function(){return Us()||Ok},linux:function(){return Us()||nR},iphone:function(){return Us()||oR},mobile:function(){return Us()||oR||iR||rR||oH},nativeApp:function(){return Us()||rH},android:function(){return Us()||rR},ipad:function(){return Us()||iR}},zTe=aR,Rx=!!(typeof window<"u"&&window.document&&window.document.createElement),QTe={canUseDOM:Rx,canUseWorkers:typeof Worker<"u",canUseEventListeners:Rx&&!!(window.addEventListener||window.attachEvent),canUseViewport:Rx&&!!window.screen,isInWorker:!Rx},iH=QTe,aH;iH.canUseDOM&&(aH=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function WTe(e,t){if(!iH.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r=typeof o[n]=="function"}return!r&&aH&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var YTe=WTe,MB=10,RB=40,NB=800;function sH(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*MB,o=n*MB,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(e.deltaMode==1?(r*=RB,o*=RB):(r*=NB,o*=NB)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}sH.getEventType=function(){return zTe.firefox()?"DOMMouseScroll":YTe("wheel")?"wheel":"mousewheel"};var UTe=sH;/**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */const HTe=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=UTe(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},ZTe={beforeMount(e,t){HTe(e,t.value)}},XTe=pt({role:{type:String,required:!0},spinnerDate:{type:Le(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Le(String),default:""},...ZU}),qTe=xe({__name:"basic-time-spinner",props:XTe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=ut("time"),{getHoursList:o,getMinutesList:i,getSecondsList:a}=GU(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=ee(),u=ee(),f=ee(),h=ee(),m={hours:u,minutes:f,seconds:h},y=W(()=>n.showSeconds?xB:xB.slice(0,2)),O=W(()=>{const{spinnerDate:z}=n,q=z.hour(),ue=z.minute(),he=z.second();return{hours:q,minutes:ue,seconds:he}}),b=W(()=>{const{hours:z,minutes:q}=v(O);return{hours:o(n.role),minutes:i(z,n.role),seconds:a(z,q,n.role)}}),k=W(()=>{const{hours:z,minutes:q,seconds:ue}=v(O);return{hours:dA(z,23),minutes:dA(q,59),seconds:dA(ue,59)}}),C=Rs(z=>{s=!1,T(z)},200),P=z=>{if(!!!n.amPmMode)return"";const ue=n.amPmMode==="A";let he=z<12?" am":" pm";return ue&&(he=he.toUpperCase()),he},$=z=>{let q;switch(z){case"hours":q=[0,2];break;case"minutes":q=[3,5];break;case"seconds":q=[6,8];break}const[ue,he]=q;t("select-range",ue,he),l.value=z},T=z=>{B(z,v(O)[z])},A=()=>{T("hours"),T("minutes"),T("seconds")},R=z=>z.querySelector(`.${r.namespace.value}-scrollbar__wrap`),B=(z,q)=>{if(n.arrowControl)return;const ue=v(m[z]);ue&&ue.$el&&(R(ue.$el).scrollTop=Math.max(0,q*I(z)))},I=z=>{const q=v(m[z]),ue=q==null?void 0:q.$el.querySelector("li");return ue&&Number.parseFloat(Lh(ue,"height"))||0},N=()=>{L(1)},j=()=>{L(-1)},L=z=>{l.value||$("hours");const q=l.value,ue=v(O)[q],he=l.value==="hours"?24:60,le=V(q,ue,z,he);X(q,le),B(q,le),Wt(()=>$(q))},V=(z,q,ue,he)=>{let le=(q+ue+he)%he;const ze=v(b)[z];for(;ze[le]&&le!==q;)le=(le+ue+he)%he;return le},X=(z,q)=>{if(v(b)[z][q])return;const{hours:le,minutes:ze,seconds:Ee}=v(O);let Be;switch(z){case"hours":Be=n.spinnerDate.hour(q).minute(ze).second(Ee);break;case"minutes":Be=n.spinnerDate.hour(le).minute(q).second(Ee);break;case"seconds":Be=n.spinnerDate.hour(le).minute(ze).second(q);break}t("change",Be)},oe=(z,{value:q,disabled:ue})=>{ue||(X(z,q),$(z),B(z,q))},K=z=>{s=!0,C(z);const q=Math.min(Math.round((R(v(m[z]).$el).scrollTop-(Z(z)*.5-10)/I(z)+3)/I(z)),z==="hours"?23:59);X(z,q)},Z=z=>v(m[z]).$el.offsetHeight,re=()=>{const z=q=>{const ue=v(m[q]);ue&&ue.$el&&(R(ue.$el).onscroll=()=>{K(q)})};z("hours"),z("minutes"),z("seconds")};vn(()=>{Wt(()=>{!n.arrowControl&&re(),A(),n.role==="start"&&$("hours")})});const J=(z,q)=>{m[q].value=z};return t("set-option",[`${n.role}_scrollDown`,L]),t("set-option",[`${n.role}_emitSelectRange`,$]),at(()=>n.spinnerDate,()=>{s||A()}),(z,q)=>(U(),ce("div",{class:G([v(r).b("spinner"),{"has-seconds":z.showSeconds}])},[z.arrowControl?Fe("v-if",!0):(U(!0),ce(Pt,{key:0},_n(v(y),ue=>(U(),Qe(v(Ec),{key:ue,ref_for:!0,ref:he=>J(he,ue),class:G(v(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":v(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:he=>$(ue),onMousemove:he=>T(ue)},{default:se(()=>[(U(!0),ce(Pt,null,_n(v(b)[ue],(he,le)=>(U(),ce("li",{key:le,class:G([v(r).be("spinner","item"),v(r).is("active",le===v(O)[ue]),v(r).is("disabled",he)]),onClick:ze=>oe(ue,{value:le,disabled:he})},[ue==="hours"?(U(),ce(Pt,{key:0},[xt(ct(("0"+(z.amPmMode?le%12||12:le)).slice(-2))+ct(P(le)),1)],64)):(U(),ce(Pt,{key:1},[xt(ct(("0"+le).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),z.arrowControl?(U(!0),ce(Pt,{key:1},_n(v(y),ue=>(U(),ce("div",{key:ue,class:G([v(r).be("spinner","wrapper"),v(r).is("arrow")]),onMouseenter:he=>$(ue)},[bn((U(),Qe(v(Lt),{class:G(["arrow-up",v(r).be("spinner","arrow")])},{default:se(()=>[ne(v(SD))]),_:1},8,["class"])),[[v(cC),j]]),bn((U(),Qe(v(Lt),{class:G(["arrow-down",v(r).be("spinner","arrow")])},{default:se(()=>[ne(v(Dd))]),_:1},8,["class"])),[[v(cC),N]]),ge("ul",{class:G(v(r).be("spinner","list"))},[(U(!0),ce(Pt,null,_n(v(k)[ue],(he,le)=>(U(),ce("li",{key:le,class:G([v(r).be("spinner","item"),v(r).is("active",he===v(O)[ue]),v(r).is("disabled",v(b)[ue][he])])},[typeof he=="number"?(U(),ce(Pt,{key:0},[ue==="hours"?(U(),ce(Pt,{key:0},[xt(ct(("0"+(z.amPmMode?he%12||12:he)).slice(-2))+ct(P(he)),1)],64)):(U(),ce(Pt,{key:1},[xt(ct(("0"+he).slice(-2)),1)],64))],64)):Fe("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):Fe("v-if",!0)],2))}});var sR=gt(qTe,[["__file","basic-time-spinner.vue"]]);const KTe=xe({__name:"panel-time-pick",props:LTe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=$t("EP_PICKER_BASE"),{arrowControl:o,disabledHours:i,disabledMinutes:a,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:f,getAvailableSeconds:h}=JU(i,a,s),m=ut("time"),{t:y,lang:O}=ir(),b=ee([0,2]),k=eH(n),C=W(()=>zo(n.actualVisible)?`${m.namespace.value}-zoom-in-top`:""),P=W(()=>n.format.includes("ss")),$=W(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=J=>{const z=cn(J).locale(O.value),q=oe(z);return z.isSame(q)},A=()=>{t("pick",k.value,!1)},R=(J=!1,z=!1)=>{z||t("pick",n.parsedValue,J)},B=J=>{if(!n.visible)return;const z=oe(J).millisecond(0);t("pick",z,!0)},I=(J,z)=>{t("select-range",J,z),b.value=[J,z]},N=J=>{const z=[0,3].concat(P.value?[6]:[]),q=["hours","minutes"].concat(P.value?["seconds"]:[]),he=(z.indexOf(b.value[0])+J+z.length)%z.length;L.start_emitSelectRange(q[he])},j=J=>{const z=J.code,{left:q,right:ue,up:he,down:le}=Yt;if([q,ue].includes(z)){N(z===q?-1:1),J.preventDefault();return}if([he,le].includes(z)){const ze=z===he?-1:1;L.start_scrollDown(ze),J.preventDefault();return}},{timePickerOptions:L,onSetOption:V,getAvailableTime:X}=KU({getAvailableHours:u,getAvailableMinutes:f,getAvailableSeconds:h}),oe=J=>X(J,n.datetimeRole||"",!0),K=J=>J?cn(J,n.format).locale(O.value):null,Z=J=>J?J.format(n.format):null,re=()=>cn(l).locale(O.value);return t("set-picker-option",["isValidValue",T]),t("set-picker-option",["formatToString",Z]),t("set-picker-option",["parseUserInput",K]),t("set-picker-option",["handleKeydownInput",j]),t("set-picker-option",["getRangeAvailableTime",oe]),t("set-picker-option",["getDefaultValue",re]),(J,z)=>(U(),Qe(Mi,{name:v(C)},{default:se(()=>[J.actualVisible||J.visible?(U(),ce("div",{key:0,class:G(v(m).b("panel"))},[ge("div",{class:G([v(m).be("panel","content"),{"has-seconds":v(P)}])},[ne(sR,{ref:"spinner",role:J.datetimeRole||"start","arrow-control":v(o),"show-seconds":v(P),"am-pm-mode":v($),"spinner-date":J.parsedValue,"disabled-hours":v(i),"disabled-minutes":v(a),"disabled-seconds":v(s),onChange:B,onSetOption:v(V),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),ge("div",{class:G(v(m).be("panel","footer"))},[ge("button",{type:"button",class:G([v(m).be("panel","btn"),"cancel"]),onClick:A},ct(v(y)("el.datepicker.cancel")),3),ge("button",{type:"button",class:G([v(m).be("panel","btn"),"confirm"]),onClick:q=>R()},ct(v(y)("el.datepicker.confirm")),11,["onClick"])],2)],2)):Fe("v-if",!0)]),_:1},8,["name"]))}});var fC=gt(KTe,[["__file","panel-time-pick.vue"]]);const GTe=pt({...XU,parsedValue:{type:Le(Array)}}),JTe=xe({__name:"panel-time-range",props:GTe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(Se,fe)=>{const ye=[];for(let He=Se;He<=fe;He++)ye.push(He);return ye},{t:o,lang:i}=ir(),a=ut("time"),s=ut("picker"),l=$t("EP_PICKER_BASE"),{arrowControl:u,disabledHours:f,disabledMinutes:h,disabledSeconds:m,defaultValue:y}=l.props,O=W(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),b=W(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),k=W(()=>n.parsedValue[0]),C=W(()=>n.parsedValue[1]),P=eH(n),$=()=>{t("pick",P.value,!1)},T=W(()=>n.format.includes("ss")),A=W(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),R=(Se=!1)=>{t("pick",[k.value,C.value],Se)},B=Se=>{j(Se.millisecond(0),C.value)},I=Se=>{j(k.value,Se.millisecond(0))},N=Se=>{const fe=Se.map(He=>cn(He).locale(i.value)),ye=ue(fe);return fe[0].isSame(ye[0])&&fe[1].isSame(ye[1])},j=(Se,fe)=>{t("pick",[Se,fe],!0)},L=W(()=>k.value>C.value),V=ee([0,2]),X=(Se,fe)=>{t("select-range",Se,fe,"min"),V.value=[Se,fe]},oe=W(()=>T.value?11:8),K=(Se,fe)=>{t("select-range",Se,fe,"max");const ye=v(oe);V.value=[Se+ye,fe+ye]},Z=Se=>{const fe=T.value?[0,3,6,11,14,17]:[0,3,8,11],ye=["hours","minutes"].concat(T.value?["seconds"]:[]),be=(fe.indexOf(V.value[0])+Se+fe.length)%fe.length,Ie=fe.length/2;be<Ie?Ee.start_emitSelectRange(ye[be]):Ee.end_emitSelectRange(ye[be-Ie])},re=Se=>{const fe=Se.code,{left:ye,right:He,up:be,down:Ie}=Yt;if([ye,He].includes(fe)){Z(fe===ye?-1:1),Se.preventDefault();return}if([be,Ie].includes(fe)){const De=fe===be?-1:1,Me=V.value[0]<oe.value?"start":"end";Ee[`${Me}_scrollDown`](De),Se.preventDefault();return}},J=(Se,fe)=>{const ye=f?f(Se):[],He=Se==="start",Ie=(fe||(He?C.value:k.value)).hour(),De=He?r(Ie+1,23):r(0,Ie-1);return gk(ye,De)},z=(Se,fe,ye)=>{const He=h?h(Se,fe):[],be=fe==="start",Ie=ye||(be?C.value:k.value),De=Ie.hour();if(Se!==De)return He;const Me=Ie.minute(),qe=be?r(Me+1,59):r(0,Me-1);return gk(He,qe)},q=(Se,fe,ye,He)=>{const be=m?m(Se,fe,ye):[],Ie=ye==="start",De=He||(Ie?C.value:k.value),Me=De.hour(),qe=De.minute();if(Se!==Me||fe!==qe)return be;const Oe=De.second(),Je=Ie?r(Oe+1,59):r(0,Oe-1);return gk(be,Je)},ue=([Se,fe])=>[Be(Se,"start",!0,fe),Be(fe,"end",!1,Se)],{getAvailableHours:he,getAvailableMinutes:le,getAvailableSeconds:ze}=JU(J,z,q),{timePickerOptions:Ee,getAvailableTime:Be,onSetOption:Ae}=KU({getAvailableHours:he,getAvailableMinutes:le,getAvailableSeconds:ze}),_e=Se=>Se?Et(Se)?Se.map(fe=>cn(fe,n.format).locale(i.value)):cn(Se,n.format).locale(i.value):null,ve=Se=>Se?Et(Se)?Se.map(fe=>fe.format(n.format)):Se.format(n.format):null,Ne=()=>{if(Et(y))return y.map(fe=>cn(fe).locale(i.value));const Se=cn(y).locale(i.value);return[Se,Se.add(60,"m")]};return t("set-picker-option",["formatToString",ve]),t("set-picker-option",["parseUserInput",_e]),t("set-picker-option",["isValidValue",N]),t("set-picker-option",["handleKeydownInput",re]),t("set-picker-option",["getDefaultValue",Ne]),t("set-picker-option",["getRangeAvailableTime",ue]),(Se,fe)=>Se.actualVisible?(U(),ce("div",{key:0,class:G([v(a).b("range-picker"),v(s).b("panel")])},[ge("div",{class:G(v(a).be("range-picker","content"))},[ge("div",{class:G(v(a).be("range-picker","cell"))},[ge("div",{class:G(v(a).be("range-picker","header"))},ct(v(o)("el.datepicker.startTime")),3),ge("div",{class:G(v(O))},[ne(sR,{ref:"minSpinner",role:"start","show-seconds":v(T),"am-pm-mode":v(A),"arrow-control":v(u),"spinner-date":v(k),"disabled-hours":J,"disabled-minutes":z,"disabled-seconds":q,onChange:B,onSetOption:v(Ae),onSelectRange:X},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),ge("div",{class:G(v(a).be("range-picker","cell"))},[ge("div",{class:G(v(a).be("range-picker","header"))},ct(v(o)("el.datepicker.endTime")),3),ge("div",{class:G(v(b))},[ne(sR,{ref:"maxSpinner",role:"end","show-seconds":v(T),"am-pm-mode":v(A),"arrow-control":v(u),"spinner-date":v(C),"disabled-hours":J,"disabled-minutes":z,"disabled-seconds":q,onChange:I,onSetOption:v(Ae),onSelectRange:K},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),ge("div",{class:G(v(a).be("panel","footer"))},[ge("button",{type:"button",class:G([v(a).be("panel","btn"),"cancel"]),onClick:ye=>$()},ct(v(o)("el.datepicker.cancel")),11,["onClick"]),ge("button",{type:"button",class:G([v(a).be("panel","btn"),"confirm"]),disabled:v(L),onClick:ye=>R()},ct(v(o)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):Fe("v-if",!0)}});var ePe=gt(JTe,[["__file","panel-time-range.vue"]]);cn.extend(o3);var tPe=xe({name:"ElTimePicker",install:null,props:{...i3,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=ee(),[r,o]=e.isRange?["timerange",ePe]:["time",fC],i=a=>t.emit("update:modelValue",a);return Yn("ElPopperOptions",e.popperOptions),t.expose({focus:a=>{var s;(s=n.value)==null||s.handleFocusInput(a)},blur:a=>{var s;(s=n.value)==null||s.handleBlurInput(a)},handleOpen:()=>{var a;(a=n.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=n.value)==null||a.handleClose()}}),()=>{var a;const s=(a=e.format)!=null?a:KM;return ne(qU,Dn(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>ne(o,l,null)})}}});const nPe=gn(tPe),rPe=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return qh(t).map((r,o)=>n-(t-o-1))},oPe=e=>{const t=e.daysInMonth();return qh(t).map((n,r)=>r+1)},iPe=e=>qh(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),aPe=pt({selectedDay:{type:Le(Object)},range:{type:Le(Array)},date:{type:Le(Object),required:!0},hideHeader:{type:Boolean}}),sPe={pick:e=>$n(e)};var lH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){return function(n,r,o){var i=r.prototype,a=function(h){return h&&(h.indexOf?h:h.s)},s=function(h,m,y,O,b){var k=h.name?h:h.$locale(),C=a(k[m]),P=a(k[y]),$=C||P.map(function(A){return A.slice(0,O)});if(!b)return $;var T=k.weekStart;return $.map(function(A,R){return $[(R+(T||0))%7]})},l=function(){return o.Ls[o.locale()]},u=function(h,m){return h.formats[m]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,b,k){return b||k.slice(1)})}(h.formats[m.toUpperCase()])},f=function(){var h=this;return{months:function(m){return m?m.format("MMMM"):s(h,"months")},monthsShort:function(m){return m?m.format("MMM"):s(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):s(h,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):s(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):s(h,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return u(h.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return f.bind(this)()},o.localeData=function(){var h=l();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(m){return u(h,m)},meridiem:h.meridiem,ordinal:h.ordinal}},o.months=function(){return s(l(),"months")},o.monthsShort=function(){return s(l(),"monthsShort","months",3)},o.weekdays=function(h){return s(l(),"weekdays",null,null,h)},o.weekdaysShort=function(h){return s(l(),"weekdaysShort","weekdays",3,h)},o.weekdaysMin=function(h){return s(l(),"weekdaysMin","weekdays",2,h)}}})})(lH);var uH=lH.exports;const lPe=(e,t)=>{cn.extend(uH);const n=cn.localeData().firstDayOfWeek(),{t:r,lang:o}=ir(),i=cn().locale(o.value),a=W(()=>!!e.range&&!!e.range.length),s=W(()=>{let m=[];if(a.value){const[y,O]=e.range,b=qh(O.date()-y.date()+1).map(P=>({text:y.date()+P,type:"current"}));let k=b.length%7;k=k===0?0:7-k;const C=qh(k).map((P,$)=>({text:$+1,type:"next"}));m=b.concat(C)}else{const y=e.date.startOf("month").day(),O=rPe(e.date,(y-n+7)%7).map(P=>({text:P,type:"prev"})),b=oPe(e.date).map(P=>({text:P,type:"current"}));m=[...O,...b];const k=7-(m.length%7||7),C=qh(k).map((P,$)=>({text:$+1,type:"next"}));m=m.concat(C)}return iPe(m)}),l=W(()=>{const m=n;return m===0?iA.map(y=>r(`el.datepicker.weeks.${y}`)):iA.slice(m).concat(iA.slice(0,m)).map(y=>r(`el.datepicker.weeks.${y}`))}),u=(m,y)=>{switch(y){case"prev":return e.date.startOf("month").subtract(1,"month").date(m);case"next":return e.date.startOf("month").add(1,"month").date(m);case"current":return e.date.date(m)}};return{now:i,isInRange:a,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:m,type:y})=>{const O=u(m,y);t("pick",O)},getSlotData:({text:m,type:y})=>{const O=u(m,y);return{isSelected:O.isSame(e.selectedDay),type:`${y}-month`,day:O.format("YYYY-MM-DD"),date:O.toDate()}}}},uPe=xe({name:"DateTable"}),cPe=xe({...uPe,props:aPe,emits:sPe,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:i,rows:a,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:f}=lPe(r,n),h=ut("calendar-table"),m=ut("calendar-day"),y=({text:O,type:b})=>{const k=[b];if(b==="current"){const C=l(O,b);C.isSame(r.selectedDay,"day")&&k.push(m.is("selected")),C.isSame(i,"day")&&k.push(m.is("today"))}return k};return t({getFormattedDate:l}),(O,b)=>(U(),ce("table",{class:G([v(h).b(),v(h).is("range",v(o))]),cellspacing:"0",cellpadding:"0"},[O.hideHeader?Fe("v-if",!0):(U(),ce("thead",{key:0},[(U(!0),ce(Pt,null,_n(v(s),k=>(U(),ce("th",{key:k},ct(k),1))),128))])),ge("tbody",null,[(U(!0),ce(Pt,null,_n(v(a),(k,C)=>(U(),ce("tr",{key:C,class:G({[v(h).e("row")]:!0,[v(h).em("row","hide-border")]:C===0&&O.hideHeader})},[(U(!0),ce(Pt,null,_n(k,(P,$)=>(U(),ce("td",{key:$,class:G(y(P)),onClick:T=>v(u)(P)},[ge("div",{class:G(v(m).b())},[Xe(O.$slots,"date-cell",{data:v(f)(P)},()=>[ge("span",null,ct(P.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var IB=gt(cPe,[["__file","date-table.vue"]]);const fPe=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[i.startOf("week"),t]]},dPe=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r,i=o.endOf("month"),a=t.startOf("month"),s=i.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),i],[s.startOf("week"),t]]},hPe=(e,t,n)=>{const{lang:r}=ir(),o=ee(),i=cn().locale(r.value),a=W({get(){return e.modelValue?l.value:o.value},set(k){if(!k)return;o.value=k;const C=k.toDate();t(Ps,C),t(Tn,C)}}),s=W(()=>{if(!e.range)return[];const k=e.range.map($=>cn($).locale(r.value)),[C,P]=k;return C.isAfter(P)?[]:C.isSame(P,"month")?y(C,P):C.add(1,"month").month()!==P.month()?[]:y(C,P)}),l=W(()=>e.modelValue?cn(e.modelValue).locale(r.value):a.value||(s.value.length?s.value[0][0]:i)),u=W(()=>l.value.subtract(1,"month").date(1)),f=W(()=>l.value.add(1,"month").date(1)),h=W(()=>l.value.subtract(1,"year").date(1)),m=W(()=>l.value.add(1,"year").date(1)),y=(k,C)=>{const P=k.startOf("week"),$=C.endOf("week"),T=P.get("month"),A=$.get("month");return T===A?[[P,$]]:(T+1)%12===A?fPe(P,$):T+2===A||(T+1)%11===A?dPe(P,$):[]},O=k=>{a.value=k};return{calculateValidatedDateRange:y,date:l,realSelectedDay:a,pickDay:O,selectDate:k=>{const P={"prev-month":u.value,"next-month":f.value,"prev-year":h.value,"next-year":m.value,today:i}[k];P.isSame(l.value,"day")||O(P)},validatedRange:s}},pPe=e=>Et(e)&&e.length===2&&e.every(t=>cm(t)),gPe=pt({modelValue:{type:Date},range:{type:Le(Array),validator:pPe}}),mPe={[Tn]:e=>cm(e),[Ps]:e=>cm(e)},vPe="ElCalendar",yPe=xe({name:vPe}),bPe=xe({...yPe,props:gPe,emits:mPe,setup(e,{expose:t,emit:n}){const r=e,o=ut("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:f}=hPe(r,n),{t:h}=ir(),m=W(()=>{const y=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${h("el.datepicker.year")} ${h(y)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(y,O)=>(U(),ce("div",{class:G(v(o).b())},[ge("div",{class:G(v(o).e("header"))},[Xe(y.$slots,"header",{date:v(m)},()=>[ge("div",{class:G(v(o).e("title"))},ct(v(m)),3),v(f).length===0?(U(),ce("div",{key:0,class:G(v(o).e("button-group"))},[ne(v(QU),null,{default:se(()=>[ne(v(io),{size:"small",onClick:b=>v(u)("prev-month")},{default:se(()=>[xt(ct(v(h)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),ne(v(io),{size:"small",onClick:b=>v(u)("today")},{default:se(()=>[xt(ct(v(h)("el.datepicker.today")),1)]),_:1},8,["onClick"]),ne(v(io),{size:"small",onClick:b=>v(u)("next-month")},{default:se(()=>[xt(ct(v(h)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):Fe("v-if",!0)])],2),v(f).length===0?(U(),ce("div",{key:0,class:G(v(o).e("body"))},[ne(IB,{date:v(a),"selected-day":v(l),onPick:v(s)},Fl({_:2},[y.$slots["date-cell"]?{name:"date-cell",fn:se(b=>[Xe(y.$slots,"date-cell",fc(tp(b)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(U(),ce("div",{key:1,class:G(v(o).e("body"))},[(U(!0),ce(Pt,null,_n(v(f),(b,k)=>(U(),Qe(IB,{key:k,date:b[0],"selected-day":v(l),range:b,"hide-header":k!==0,onPick:v(s)},Fl({_:2},[y.$slots["date-cell"]?{name:"date-cell",fn:se(C=>[Xe(y.$slots,"date-cell",fc(tp(C)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var _Pe=gt(bPe,[["__file","calendar.vue"]]);const OPe=gn(_Pe),wPe=pt({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:Le([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),SPe=xe({name:"ElCard"}),xPe=xe({...SPe,props:wPe,setup(e){const t=ut("card");return(n,r)=>(U(),ce("div",{class:G([v(t).b(),v(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(U(),ce("div",{key:0,class:G(v(t).e("header"))},[Xe(n.$slots,"header",{},()=>[xt(ct(n.header),1)])],2)):Fe("v-if",!0),ge("div",{class:G([v(t).e("body"),n.bodyClass]),style:Ft(n.bodyStyle)},[Xe(n.$slots,"default")],6),n.$slots.footer||n.footer?(U(),ce("div",{key:1,class:G(v(t).e("footer"))},[Xe(n.$slots,"footer",{},()=>[xt(ct(n.footer),1)])],2)):Fe("v-if",!0)],2))}});var kPe=gt(xPe,[["__file","card.vue"]]);const CPe=gn(kPe),EPe=pt({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),TPe={change:(e,t)=>[e,t].every(tn)},cH=Symbol("carouselContextKey"),DB=300,PPe=(e,t,n)=>{const{children:r,addChild:o,removeChild:i}=qD(En(),"ElCarouselItem"),a=Ui(),s=ee(-1),l=ee(null),u=ee(!1),f=ee(),h=ee(0),m=ee(!0),y=ee(!0),O=ee(!1),b=W(()=>e.arrow!=="never"&&!v(P)),k=W(()=>r.value.some(Be=>Be.props.label.toString().length>0)),C=W(()=>e.type==="card"),P=W(()=>e.direction==="vertical"),$=W(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),T=yd(Be=>{j(Be)},DB,{trailing:!0}),A=yd(Be=>{z(Be)},DB),R=Be=>m.value?s.value<=1?Be<=1:Be>1:!0;function B(){l.value&&(clearInterval(l.value),l.value=null)}function I(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>N(),e.interval))}const N=()=>{y.value||(O.value=!0),y.value=!1,s.value<r.value.length-1?s.value=s.value+1:e.loop?s.value=0:O.value=!1};function j(Be){if(y.value||(O.value=!0),y.value=!1,Gt(Be)){const ve=r.value.filter(Ne=>Ne.props.name===Be);ve.length>0&&(Be=r.value.indexOf(ve[0]))}if(Be=Number(Be),Number.isNaN(Be)||Be!==Math.floor(Be))return;const Ae=r.value.length,_e=s.value;Be<0?s.value=e.loop?Ae-1:0:Be>=Ae?s.value=e.loop?0:Ae-1:s.value=Be,_e===s.value&&L(_e),he()}function L(Be){r.value.forEach((Ae,_e)=>{Ae.translateItem(_e,s.value,Be)})}function V(Be,Ae){var _e,ve,Ne,Se;const fe=v(r),ye=fe.length;if(ye===0||!Be.states.inStage)return!1;const He=Ae+1,be=Ae-1,Ie=ye-1,De=fe[Ie].states.active,Me=fe[0].states.active,qe=(ve=(_e=fe[He])==null?void 0:_e.states)==null?void 0:ve.active,Oe=(Se=(Ne=fe[be])==null?void 0:Ne.states)==null?void 0:Se.active;return Ae===Ie&&Me||qe?"left":Ae===0&&De||Oe?"right":!1}function X(){u.value=!0,e.pauseOnHover&&B()}function oe(){u.value=!1,I()}function K(){O.value=!1}function Z(Be){v(P)||r.value.forEach((Ae,_e)=>{Be===V(Ae,_e)&&(Ae.states.hover=!0)})}function re(){v(P)||r.value.forEach(Be=>{Be.states.hover=!1})}function J(Be){Be!==s.value&&(y.value||(O.value=!0)),s.value=Be}function z(Be){e.trigger==="hover"&&Be!==s.value&&(s.value=Be,y.value||(O.value=!0))}function q(){j(s.value-1)}function ue(){j(s.value+1)}function he(){B(),e.pauseOnHover||I()}function le(Be){e.height==="auto"&&(h.value=Be)}function ze(){var Be;const Ae=(Be=a.default)==null?void 0:Be.call(a);if(!Ae)return null;const _e=Zh(Ae),ve="ElCarouselItem",Ne=_e.filter(Se=>wo(Se)&&Se.type.name===ve);return(Ne==null?void 0:Ne.length)===2&&e.loop&&!C.value?(m.value=!0,Ne):(m.value=!1,null)}at(()=>s.value,(Be,Ae)=>{L(Ae),m.value&&(Be=Be%2,Ae=Ae%2),Ae>-1&&t("change",Be,Ae)}),at(()=>e.autoplay,Be=>{Be?I():B()}),at(()=>e.loop,()=>{j(s.value)}),at(()=>e.interval,()=>{he()});const Ee=to();return vn(()=>{at(()=>r.value,()=>{r.value.length>0&&j(e.initialIndex)},{immediate:!0}),Ee.value=So(f.value,()=>{L()}),I()}),qr(()=>{B(),f.value&&Ee.value&&Ee.value.stop()}),Yn(cH,{root:f,isCardType:C,isVertical:P,items:r,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:i,setActiveItem:j,setContainerHeight:le}),{root:f,activeIndex:s,arrowDisplay:b,hasLabel:k,hover:u,isCardType:C,isTransitioning:O,items:r,isVertical:P,containerStyle:$,isItemsTwoLength:m,handleButtonEnter:Z,handleTransitionEnd:K,handleButtonLeave:re,handleIndicatorClick:J,handleMouseEnter:X,handleMouseLeave:oe,setActiveItem:j,prev:q,next:ue,PlaceholderItem:ze,isTwoLengthShow:R,throttledArrowClick:T,throttledIndicatorHover:A}},$Pe="ElCarousel",APe=xe({name:$Pe}),MPe=xe({...APe,props:EPe,emits:TPe,setup(e,{expose:t,emit:n}){const r=e,{root:o,activeIndex:i,arrowDisplay:a,hasLabel:s,hover:l,isCardType:u,items:f,isVertical:h,containerStyle:m,handleButtonEnter:y,handleButtonLeave:O,isTransitioning:b,handleIndicatorClick:k,handleMouseEnter:C,handleMouseLeave:P,handleTransitionEnd:$,setActiveItem:T,prev:A,next:R,PlaceholderItem:B,isTwoLengthShow:I,throttledArrowClick:N,throttledIndicatorHover:j}=PPe(r,n),L=ut("carousel"),{t:V}=ir(),X=W(()=>{const Z=[L.b(),L.m(r.direction)];return v(u)&&Z.push(L.m("card")),Z}),oe=W(()=>{const Z=[L.e("container")];return r.motionBlur&&v(b)&&Z.push(v(h)?`${L.namespace.value}-transitioning-vertical`:`${L.namespace.value}-transitioning`),Z}),K=W(()=>{const Z=[L.e("indicators"),L.em("indicators",r.direction)];return v(s)&&Z.push(L.em("indicators","labels")),r.indicatorPosition==="outside"&&Z.push(L.em("indicators","outside")),v(h)&&Z.push(L.em("indicators","right")),Z});return t({activeIndex:i,setActiveItem:T,prev:A,next:R}),(Z,re)=>(U(),ce("div",{ref_key:"root",ref:o,class:G(v(X)),onMouseenter:nn(v(C),["stop"]),onMouseleave:nn(v(P),["stop"])},[v(a)?(U(),Qe(Mi,{key:0,name:"carousel-arrow-left",persisted:""},{default:se(()=>[bn(ge("button",{type:"button",class:G([v(L).e("arrow"),v(L).em("arrow","left")]),"aria-label":v(V)("el.carousel.leftArrow"),onMouseenter:J=>v(y)("left"),onMouseleave:v(O),onClick:nn(J=>v(N)(v(i)-1),["stop"])},[ne(v(Lt),null,{default:se(()=>[ne(v(sp))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[gr,(Z.arrow==="always"||v(l))&&(r.loop||v(i)>0)]])]),_:1})):Fe("v-if",!0),v(a)?(U(),Qe(Mi,{key:1,name:"carousel-arrow-right",persisted:""},{default:se(()=>[bn(ge("button",{type:"button",class:G([v(L).e("arrow"),v(L).em("arrow","right")]),"aria-label":v(V)("el.carousel.rightArrow"),onMouseenter:J=>v(y)("right"),onMouseleave:v(O),onClick:nn(J=>v(N)(v(i)+1),["stop"])},[ne(v(Lt),null,{default:se(()=>[ne(v(Es))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[gr,(Z.arrow==="always"||v(l))&&(r.loop||v(i)<v(f).length-1)]])]),_:1})):Fe("v-if",!0),ge("div",{class:G(v(oe)),style:Ft(v(m)),onTransitionend:v($)},[ne(v(B)),Xe(Z.$slots,"default")],46,["onTransitionend"]),Z.indicatorPosition!=="none"?(U(),ce("ul",{key:2,class:G(v(K))},[(U(!0),ce(Pt,null,_n(v(f),(J,z)=>bn((U(),ce("li",{key:z,class:G([v(L).e("indicator"),v(L).em("indicator",Z.direction),v(L).is("active",z===v(i))]),onMouseenter:q=>v(j)(z),onClick:nn(q=>v(k)(z),["stop"])},[ge("button",{class:G(v(L).e("button")),"aria-label":v(V)("el.carousel.indicator",{index:z+1})},[v(s)?(U(),ce("span",{key:0},ct(J.props.label),1)):Fe("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[gr,v(I)(z)]])),128))],2)):Fe("v-if",!0),r.motionBlur?(U(),ce("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[ge("defs",null,[ge("filter",{id:"elCarouselHorizontal"},[ge("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),ge("filter",{id:"elCarouselVertical"},[ge("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):Fe("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var RPe=gt(MPe,[["__file","carousel.vue"]]);const NPe=pt({name:{type:String,default:""},label:{type:[String,Number],default:""}}),IPe=(e,t)=>{const n=$t(cH),r=En(),o=ee(),i=ee(!1),a=ee(0),s=ee(1),l=ee(!1),u=ee(!1),f=ee(!1),h=ee(!1),{isCardType:m,isVertical:y,cardScale:O}=n;function b(T,A,R){const B=R-1,I=A-1,N=A+1,j=R/2;return A===0&&T===B?-1:A===B&&T===0?R:T<I&&A-T>=j?R+1:T>N&&T-A>=j?-2:T}function k(T,A){var R,B;const I=v(y)?((R=n.root.value)==null?void 0:R.offsetHeight)||0:((B=n.root.value)==null?void 0:B.offsetWidth)||0;return f.value?I*((2-O)*(T-A)+1)/4:T<A?-(1+O)*I/4:(3+O)*I/4}function C(T,A,R){const B=n.root.value;return B?((R?B.offsetHeight:B.offsetWidth)||0)*(T-A):0}const P=(T,A,R)=>{var B;const I=v(m),N=(B=n.items.value.length)!=null?B:Number.NaN,j=T===A;!I&&!zo(R)&&(h.value=j||T===R),!j&&N>2&&n.loop&&(T=b(T,A,N));const L=v(y);l.value=j,I?(f.value=Math.round(Math.abs(T-A))<=1,a.value=k(T,A),s.value=v(l)?1:O):a.value=C(T,A,L),u.value=!0,j&&o.value&&n.setContainerHeight(o.value.offsetHeight)};function $(){if(n&&v(m)){const T=n.items.value.findIndex(({uid:A})=>A===r.uid);n.setActiveItem(T)}}return vn(()=>{n.addItem({props:e,states:or({hover:i,translate:a,scale:s,active:l,ready:u,inStage:f,animating:h}),uid:r.uid,translateItem:P})}),Sp(()=>{n.removeItem(r.uid)}),{carouselItemRef:o,active:l,animating:h,hover:i,inStage:f,isVertical:y,translate:a,isCardType:m,scale:s,ready:u,handleItemClick:$}},DPe=xe({name:"ElCarouselItem"}),jPe=xe({...DPe,props:NPe,setup(e){const t=e,n=ut("carousel"),{carouselItemRef:r,active:o,animating:i,hover:a,inStage:s,isVertical:l,translate:u,isCardType:f,scale:h,ready:m,handleItemClick:y}=IPe(t),O=W(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",a.value),n.is("animating",i.value),{[n.em("item","card")]:f.value,[n.em("item","card-vertical")]:f.value&&l.value}]),b=W(()=>{const C=`${`translate${v(l)?"Y":"X"}`}(${v(u)}px)`,P=`scale(${v(h)})`;return{transform:[C,P].join(" ")}});return(k,C)=>bn((U(),ce("div",{ref_key:"carouselItemRef",ref:r,class:G(v(O)),style:Ft(v(b)),onClick:v(y)},[v(f)?bn((U(),ce("div",{key:0,class:G(v(n).e("mask"))},null,2)),[[gr,!v(o)]]):Fe("v-if",!0),Xe(k.$slots,"default")],14,["onClick"])),[[gr,v(m)]])}});var fH=gt(jPe,[["__file","carousel-item.vue"]]);const LPe=gn(RPe,{CarouselItem:fH}),BPe=Co(fH),dH={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Ni,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...va(["ariaControls"])},hH={[Tn]:e=>Gt(e)||tn(e)||qo(e),change:e=>Gt(e)||tn(e)||qo(e)},T0=Symbol("checkboxGroupContextKey"),VPe=({model:e,isChecked:t})=>{const n=$t(T0,void 0),r=W(()=>{var i,a;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(a=n==null?void 0:n.min)==null?void 0:a.value;return!zo(s)&&e.value.length>=s&&!t.value||!zo(l)&&e.value.length<=l&&t.value});return{isDisabled:Ls(W(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},FPe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const a=$t(T0,void 0),{formItem:s}=cs(),{emit:l}=En();function u(O){var b,k,C,P;return[!0,e.trueValue,e.trueLabel].includes(O)?(k=(b=e.trueValue)!=null?b:e.trueLabel)!=null?k:!0:(P=(C=e.falseValue)!=null?C:e.falseLabel)!=null?P:!1}function f(O,b){l("change",u(O),b)}function h(O){if(n.value)return;const b=O.target;l("change",u(b.checked),O)}async function m(O){n.value||!r.value&&!o.value&&i.value&&(O.composedPath().some(C=>C.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await Wt(),f(t.value,O)))}const y=W(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return at(()=>e.modelValue,()=>{y.value&&(s==null||s.validate("change").catch(O=>void 0))}),{handleChange:h,onClickRoot:m}},zPe=e=>{const t=ee(!1),{emit:n}=En(),r=$t(T0,void 0),o=W(()=>zo(r)===!1),i=ee(!1),a=W({get(){var s,l;return o.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;o.value&&Et(s)?(i.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value)&&s.length>a.value.length,i.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(Tn,s),t.value=s)}});return{model:a,isGroup:o,isLimitExceeded:i}},QPe=(e,t,{model:n})=>{const r=$t(T0,void 0),o=ee(!1),i=W(()=>mm(e.value)?e.label:e.value),a=W(()=>{const f=n.value;return qo(f)?f:Et(f)?$n(i.value)?f.map(dr).some(h=>ss(h,i.value)):f.map(dr).includes(i.value):f!=null?f===e.trueValue||f===e.trueLabel:!!f}),s=wi(W(()=>{var f;return(f=r==null?void 0:r.size)==null?void 0:f.value}),{prop:!0}),l=wi(W(()=>{var f;return(f=r==null?void 0:r.size)==null?void 0:f.value})),u=W(()=>!!t.default||!mm(i.value));return{checkboxButtonSize:s,isChecked:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,actualValue:i}},pH=(e,t)=>{const{formItem:n}=cs(),{model:r,isGroup:o,isLimitExceeded:i}=zPe(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f,actualValue:h}=QPe(e,t,{model:r}),{isDisabled:m}=VPe({model:r,isChecked:s}),{inputId:y,isLabeledByFormItem:O}=Cc(e,{formItemContext:n,disableIdGeneration:f,disableIdManagement:o}),{handleChange:b,onClickRoot:k}=FPe(e,{model:r,isLimitExceeded:i,hasOwnLabel:f,isDisabled:m,isLabeledByFormItem:O});return(()=>{function P(){var $,T;Et(r.value)&&!r.value.includes(h.value)?r.value.push(h.value):r.value=(T=($=e.trueValue)!=null?$:e.trueLabel)!=null?T:!0}e.checked&&P()})(),Xh({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>o.value&&mm(e.value))),Xh({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>!!e.trueLabel)),Xh({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>!!e.falseLabel)),{inputId:y,isLabeledByFormItem:O,isChecked:s,isDisabled:m,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f,model:r,actualValue:h,handleChange:b,onClickRoot:k}},WPe=xe({name:"ElCheckbox"}),YPe=xe({...WPe,props:dH,emits:hH,setup(e){const t=e,n=Ui(),{inputId:r,isLabeledByFormItem:o,isChecked:i,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:f,actualValue:h,handleChange:m,onClickRoot:y}=pH(t,n),O=ut("checkbox"),b=W(()=>[O.b(),O.m(l.value),O.is("disabled",a.value),O.is("bordered",t.border),O.is("checked",i.value)]),k=W(()=>[O.e("input"),O.is("disabled",a.value),O.is("checked",i.value),O.is("indeterminate",t.indeterminate),O.is("focus",s.value)]);return(C,P)=>(U(),Qe(jn(!v(u)&&v(o)?"span":"label"),{class:G(v(b)),"aria-controls":C.indeterminate?C.ariaControls:null,onClick:v(y)},{default:se(()=>{var $,T;return[ge("span",{class:G(v(k))},[C.trueValue||C.falseValue||C.trueLabel||C.falseLabel?bn((U(),ce("input",{key:0,id:v(r),"onUpdate:modelValue":A=>no(f)?f.value=A:null,class:G(v(O).e("original")),type:"checkbox",indeterminate:C.indeterminate,name:C.name,tabindex:C.tabindex,disabled:v(a),"true-value":($=C.trueValue)!=null?$:C.trueLabel,"false-value":(T=C.falseValue)!=null?T:C.falseLabel,onChange:v(m),onFocus:A=>s.value=!0,onBlur:A=>s.value=!1,onClick:nn(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Gk,v(f)]]):bn((U(),ce("input",{key:1,id:v(r),"onUpdate:modelValue":A=>no(f)?f.value=A:null,class:G(v(O).e("original")),type:"checkbox",indeterminate:C.indeterminate,disabled:v(a),value:v(h),name:C.name,tabindex:C.tabindex,onChange:v(m),onFocus:A=>s.value=!0,onBlur:A=>s.value=!1,onClick:nn(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Gk,v(f)]]),ge("span",{class:G(v(O).e("inner"))},null,2)],2),v(u)?(U(),ce("span",{key:0,class:G(v(O).e("label"))},[Xe(C.$slots,"default"),C.$slots.default?Fe("v-if",!0):(U(),ce(Pt,{key:0},[xt(ct(C.label),1)],64))],2)):Fe("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var UPe=gt(YPe,[["__file","checkbox.vue"]]);const HPe=xe({name:"ElCheckboxButton"}),ZPe=xe({...HPe,props:dH,emits:hH,setup(e){const t=e,n=Ui(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=pH(t,n),f=$t(T0,void 0),h=ut("checkbox"),m=W(()=>{var O,b,k,C;const P=(b=(O=f==null?void 0:f.fill)==null?void 0:O.value)!=null?b:"";return{backgroundColor:P,borderColor:P,color:(C=(k=f==null?void 0:f.textColor)==null?void 0:k.value)!=null?C:"",boxShadow:P?`-1px 0 0 0 ${P}`:void 0}}),y=W(()=>[h.b("button"),h.bm("button",a.value),h.is("disabled",i.value),h.is("checked",o.value),h.is("focus",r.value)]);return(O,b)=>{var k,C;return U(),ce("label",{class:G(v(y))},[O.trueValue||O.falseValue||O.trueLabel||O.falseLabel?bn((U(),ce("input",{key:0,"onUpdate:modelValue":P=>no(s)?s.value=P:null,class:G(v(h).be("button","original")),type:"checkbox",name:O.name,tabindex:O.tabindex,disabled:v(i),"true-value":(k=O.trueValue)!=null?k:O.trueLabel,"false-value":(C=O.falseValue)!=null?C:O.falseLabel,onChange:v(u),onFocus:P=>r.value=!0,onBlur:P=>r.value=!1,onClick:nn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Gk,v(s)]]):bn((U(),ce("input",{key:1,"onUpdate:modelValue":P=>no(s)?s.value=P:null,class:G(v(h).be("button","original")),type:"checkbox",name:O.name,tabindex:O.tabindex,disabled:v(i),value:v(l),onChange:v(u),onFocus:P=>r.value=!0,onBlur:P=>r.value=!1,onClick:nn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Gk,v(s)]]),O.$slots.default||O.label?(U(),ce("span",{key:2,class:G(v(h).be("button","inner")),style:Ft(v(o)?v(m):void 0)},[Xe(O.$slots,"default",{},()=>[xt(ct(O.label),1)])],6)):Fe("v-if",!0)],2)}}});var gH=gt(ZPe,[["__file","checkbox-button.vue"]]);const XPe=pt({modelValue:{type:Le(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ni,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...va(["ariaLabel"])}),qPe={[Tn]:e=>Et(e),change:e=>Et(e)},KPe=xe({name:"ElCheckboxGroup"}),GPe=xe({...KPe,props:XPe,emits:qPe,setup(e,{emit:t}){const n=e,r=ut("checkbox"),{formItem:o}=cs(),{inputId:i,isLabeledByFormItem:a}=Cc(n,{formItemContext:o}),s=async u=>{t(Tn,u),await Wt(),t("change",u)},l=W({get(){return n.modelValue},set(u){s(u)}});return Yn(T0,{..._u(ra(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),at(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,f)=>{var h;return U(),Qe(jn(u.tag),{id:v(i),class:G(v(r).b("group")),role:"group","aria-label":v(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":v(a)?(h=v(o))==null?void 0:h.labelId:void 0},{default:se(()=>[Xe(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var mH=gt(GPe,[["__file","checkbox-group.vue"]]);const Hl=gn(UPe,{CheckboxButton:gH,CheckboxGroup:mH}),JPe=Co(gH),vH=Co(mH),yH=pt({modelValue:{type:[String,Number,Boolean],default:void 0},size:Ni,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),e$e=pt({...yH,border:Boolean}),bH={[Tn]:e=>Gt(e)||tn(e)||qo(e),[uo]:e=>Gt(e)||tn(e)||qo(e)},_H=Symbol("radioGroupKey"),OH=(e,t)=>{const n=ee(),r=$t(_H,void 0),o=W(()=>!!r),i=W(()=>mm(e.value)?e.label:e.value),a=W({get(){return o.value?r.modelValue:e.modelValue},set(h){o.value?r.changeEvent(h):t&&t(Tn,h),n.value.checked=e.modelValue===i.value}}),s=wi(W(()=>r==null?void 0:r.size)),l=Ls(W(()=>r==null?void 0:r.disabled)),u=ee(!1),f=W(()=>l.value||o.value&&a.value!==i.value?-1:0);return Xh({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},W(()=>o.value&&mm(e.value))),{radioRef:n,isGroup:o,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:f,modelValue:a,actualValue:i}},t$e=xe({name:"ElRadio"}),n$e=xe({...t$e,props:e$e,emits:bH,setup(e,{emit:t}){const n=e,r=ut("radio"),{radioRef:o,radioGroup:i,focus:a,size:s,disabled:l,modelValue:u,actualValue:f}=OH(n,t);function h(){Wt(()=>t("change",u.value))}return(m,y)=>{var O;return U(),ce("label",{class:G([v(r).b(),v(r).is("disabled",v(l)),v(r).is("focus",v(a)),v(r).is("bordered",m.border),v(r).is("checked",v(u)===v(f)),v(r).m(v(s))])},[ge("span",{class:G([v(r).e("input"),v(r).is("disabled",v(l)),v(r).is("checked",v(u)===v(f))])},[bn(ge("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":b=>no(u)?u.value=b:null,class:G(v(r).e("original")),value:v(f),name:m.name||((O=v(i))==null?void 0:O.name),disabled:v(l),checked:v(u)===v(f),type:"radio",onFocus:b=>a.value=!0,onBlur:b=>a.value=!1,onChange:h,onClick:nn(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[YQ,v(u)]]),ge("span",{class:G(v(r).e("inner"))},null,2)],2),ge("span",{class:G(v(r).e("label")),onKeydown:nn(()=>{},["stop"])},[Xe(m.$slots,"default",{},()=>[xt(ct(m.label),1)])],42,["onKeydown"])],2)}}});var r$e=gt(n$e,[["__file","radio.vue"]]);const o$e=pt({...yH}),i$e=xe({name:"ElRadioButton"}),a$e=xe({...i$e,props:o$e,setup(e){const t=e,n=ut("radio"),{radioRef:r,focus:o,size:i,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=OH(t),f=W(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(h,m)=>{var y;return U(),ce("label",{class:G([v(n).b("button"),v(n).is("active",v(s)===v(u)),v(n).is("disabled",v(a)),v(n).is("focus",v(o)),v(n).bm("button",v(i))])},[bn(ge("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":O=>no(s)?s.value=O:null,class:G(v(n).be("button","original-radio")),value:v(u),type:"radio",name:h.name||((y=v(l))==null?void 0:y.name),disabled:v(a),onFocus:O=>o.value=!0,onBlur:O=>o.value=!1,onClick:nn(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[YQ,v(s)]]),ge("span",{class:G(v(n).be("button","inner")),style:Ft(v(s)===v(u)?v(f):{}),onKeydown:nn(()=>{},["stop"])},[Xe(h.$slots,"default",{},()=>[xt(ct(h.label),1)])],46,["onKeydown"])],2)}}});var wH=gt(a$e,[["__file","radio-button.vue"]]);const s$e=pt({id:{type:String,default:void 0},size:Ni,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...va(["ariaLabel"])}),l$e=bH,u$e=xe({name:"ElRadioGroup"}),c$e=xe({...u$e,props:s$e,emits:l$e,setup(e,{emit:t}){const n=e,r=ut("radio"),o=Fa(),i=ee(),{formItem:a}=cs(),{inputId:s,isLabeledByFormItem:l}=Cc(n,{formItemContext:a}),u=h=>{t(Tn,h),Wt(()=>t("change",h))};vn(()=>{const h=i.value.querySelectorAll("[type=radio]"),m=h[0];!Array.from(h).some(y=>y.checked)&&m&&(m.tabIndex=0)});const f=W(()=>n.name||o.value);return Yn(_H,or({...ra(n),changeEvent:u,name:f})),at(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(h=>void 0))}),(h,m)=>(U(),ce("div",{id:v(s),ref_key:"radioGroupRef",ref:i,class:G(v(r).b("group")),role:"radiogroup","aria-label":v(l)?void 0:h.ariaLabel||"radio-group","aria-labelledby":v(l)?v(a).labelId:void 0},[Xe(h.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var SH=gt(c$e,[["__file","radio-group.vue"]]);const xH=gn(r$e,{RadioButton:wH,RadioGroup:SH}),f$e=Co(SH),d$e=Co(wH);var h$e=xe({name:"NodeContent",setup(){return{ns:ut("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:o}=t,{renderLabelFn:i}=n;return Ht("span",{class:e.e("label")},i?i({node:t,data:r}):o)}});const a3=Symbol(),p$e=xe({name:"ElCascaderNode",components:{ElCheckbox:Hl,ElRadio:xH,NodeContent:h$e,ElIcon:Lt,Check:x0,Loading:yf,ArrowRight:Es},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=$t(a3),r=ut("cascader-node"),o=W(()=>n.isHoverMenu),i=W(()=>n.config.multiple),a=W(()=>n.config.checkStrictly),s=W(()=>{var R;return(R=n.checkedNodes[0])==null?void 0:R.uid}),l=W(()=>e.node.isDisabled),u=W(()=>e.node.isLeaf),f=W(()=>a.value&&!u.value||!l.value),h=W(()=>y(n.expandingNode)),m=W(()=>a.value&&n.checkedNodes.some(y)),y=R=>{var B;const{level:I,uid:N}=e.node;return((B=R==null?void 0:R.pathNodes[I-1])==null?void 0:B.uid)===N},O=()=>{h.value||n.expandNode(e.node)},b=R=>{const{node:B}=e;R!==B.checked&&n.handleCheckChange(B,R)},k=()=>{n.lazyLoad(e.node,()=>{u.value||O()})},C=R=>{!o.value||(P(),!u.value&&t("expand",R))},P=()=>{const{node:R}=e;!f.value||R.loading||(R.loaded?O():k())},$=()=>{o.value&&!u.value||(u.value&&!l.value&&!a.value&&!i.value?A(!0):P())},T=R=>{a.value?(b(R),e.node.loaded&&O()):A(R)},A=R=>{e.node.loaded?(b(R),!a.value&&O()):k()};return{panel:n,isHoverMenu:o,multiple:i,checkStrictly:a,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:f,inExpandingPath:h,inCheckedPath:m,ns:r,handleHoverExpand:C,handleExpand:P,handleClick:$,handleCheck:A,handleSelectCheck:T}}});function g$e(e,t,n,r,o,i){const a=Pn("el-checkbox"),s=Pn("el-radio"),l=Pn("check"),u=Pn("el-icon"),f=Pn("node-content"),h=Pn("loading"),m=Pn("arrow-right");return U(),ce("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:G([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[Fe(" prefix "),e.multiple?(U(),Qe(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:nn(()=>{},["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?(U(),Qe(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:nn(()=>{},["stop"])},{default:se(()=>[Fe(`
- Add an empty element to avoid render label,
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
- `),ge("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(U(),Qe(u,{key:2,class:G(e.ns.e("prefix"))},{default:se(()=>[ne(l)]),_:1},8,["class"])):Fe("v-if",!0),Fe(" content "),ne(f),Fe(" postfix "),e.isLeaf?Fe("v-if",!0):(U(),ce(Pt,{key:3},[e.node.loading?(U(),Qe(u,{key:0,class:G([e.ns.is("loading"),e.ns.e("postfix")])},{default:se(()=>[ne(h)]),_:1},8,["class"])):(U(),Qe(u,{key:1,class:G(["arrow-right",e.ns.e("postfix")])},{default:se(()=>[ne(m)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var m$e=gt(p$e,[["render",g$e],["__file","node.vue"]]);const v$e=xe({name:"ElCascaderMenu",components:{Loading:yf,ElIcon:Lt,ElScrollbar:Ec,ElCascaderNode:m$e},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=En(),n=ut("cascader-menu"),{t:r}=ir(),o=Fa();let i=null,a=null;const s=$t(a3),l=ee(null),u=W(()=>!e.nodes.length),f=W(()=>!s.initialLoaded),h=W(()=>`${o.value}-${e.index}`),m=k=>{i=k.target},y=k=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(k.target)){O();const C=t.vnode.el,{left:P}=C.getBoundingClientRect(),{offsetWidth:$,offsetHeight:T}=C,A=k.clientX-P,R=i.offsetTop,B=R+i.offsetHeight;l.value.innerHTML=`
- <path style="pointer-events: auto;" fill="transparent" d="M${A} ${R} L${$} 0 V${R} Z" />
- <path style="pointer-events: auto;" fill="transparent" d="M${A} ${B} L${$} ${T} V${B} Z" />
- `}else a||(a=window.setTimeout(b,s.config.hoverThreshold))},O=()=>{!a||(clearTimeout(a),a=null)},b=()=>{!l.value||(l.value.innerHTML="",O())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:f,menuId:h,t:r,handleExpand:m,handleMouseMove:y,clearHoverZone:b}}});function y$e(e,t,n,r,o,i){const a=Pn("el-cascader-node"),s=Pn("loading"),l=Pn("el-icon"),u=Pn("el-scrollbar");return U(),Qe(u,{key:e.menuId,tag:"ul",role:"menu",class:G(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:se(()=>{var f;return[(U(!0),ce(Pt,null,_n(e.nodes,h=>(U(),Qe(a,{key:h.uid,node:h,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(U(),ce("div",{key:0,class:G(e.ns.e("empty-text"))},[ne(l,{size:"14",class:G(e.ns.is("loading"))},{default:se(()=>[ne(s)]),_:1},8,["class"]),xt(" "+ct(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(U(),ce("div",{key:1,class:G(e.ns.e("empty-text"))},ct(e.t("el.cascader.noData")),3)):(f=e.panel)!=null&&f.isHoverMenu?(U(),ce("svg",{key:2,ref:"hoverZone",class:G(e.ns.e("hover-zone"))},null,2)):Fe("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var b$e=gt(v$e,[["render",y$e],["__file","menu.vue"]]);let _$e=0;const O$e=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class Jy{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=_$e++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:s}=n,l=t[s],u=O$e(this);this.level=o?0:r?r.level+1:1,this.value=t[i],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(f=>f.value),this.pathLabels=u.map(f=>f.label),this.childrenData=l,this.children=(l||[]).map(f=>new Jy(f,n,this)),this.loaded=!n.lazy||this.isLeaf||!vu(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:o,checkStrictly:i}=r;return(rn(o)?o(t,this):!!t[o])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:o}=this,{lazy:i,leaf:a}=n,s=rn(a)?a(t,this):t[a];return zo(s)?i&&!o?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new Jy(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${lf(t)}`;this.children.forEach(o=>{o&&(o.broadcast(t,...n),o[r]&&o[r](...n))})}emit(t,...n){const{parent:r}=this,o=`onChild${lf(t)}`;r&&(r[o]&&r[o](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),r=n.length?n.every(o=>o.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((o,i)=>{const a=i.checked?1:i.indeterminate?.5:0;return o+a},0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const lR=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(lR(r.children,t))),n),[]);class jB{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new Jy(o,this.config));this.nodes=r,this.allNodes=lR(r,!1),this.leafNodes=lR(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new Jy(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(o=>ss(o.value,t)||ss(o.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:o})=>ss(t.value,r)&&t.level===o)||null}}const kH=pt({modelValue:{type:Le([Number,String,Array])},options:{type:Le(Array),default:()=>[]},props:{type:Le(Object),default:()=>({})}}),w$e={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:zr,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},S$e=e=>W(()=>({...w$e,...e.props})),LB=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},x$e=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():XQ(e)&&e.click()},k$e=(e,t)=>{const n=t.slice(0),r=n.map(i=>i.uid),o=e.reduce((i,a)=>{const s=r.indexOf(a.uid);return s>-1&&(i.push(a),n.splice(s,1),r.splice(s,1)),i},[]);return o.push(...n),o},C$e=xe({name:"ElCascaderPanel",components:{ElCascaderMenu:b$e},props:{...kH,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Tn,uo,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const o=ut("cascader"),i=S$e(e);let a=null;const s=ee(!0),l=ee([]),u=ee(null),f=ee([]),h=ee(null),m=ee([]),y=W(()=>i.value.expandTrigger==="hover"),O=W(()=>e.renderLabel||n.default),b=()=>{const{options:V}=e,X=i.value;r=!1,a=new jB(V,X),f.value=[a.getNodes()],X.lazy&&vu(e.options)?(s.value=!1,k(void 0,oe=>{oe&&(a=new jB(oe,X),f.value=[a.getNodes()]),s.value=!0,I(!1,!0)})):I(!1,!0)},k=(V,X)=>{const oe=i.value;V=V||new Jy({},oe,void 0,!0),V.loading=!0;const K=Z=>{const re=V,J=re.root?null:re;Z&&(a==null||a.appendNodes(Z,J)),re.loading=!1,re.loaded=!0,re.childrenData=re.childrenData||[],X&&X(Z)};oe.lazyLoad(V,K)},C=(V,X)=>{var oe;const{level:K}=V,Z=f.value.slice(0,K);let re;V.isLeaf?re=V.pathNodes[K-2]:(re=V,Z.push(V.children)),((oe=h.value)==null?void 0:oe.uid)!==(re==null?void 0:re.uid)&&(h.value=V,f.value=Z,!X&&t("expand-change",(V==null?void 0:V.pathValues)||[]))},P=(V,X,oe=!0)=>{const{checkStrictly:K,multiple:Z}=i.value,re=m.value[0];r=!0,!Z&&(re==null||re.doCheck(!1)),V.doCheck(X),B(),oe&&!Z&&!K&&t("close"),!oe&&!Z&&!K&&$(V)},$=V=>{!V||(V=V.parent,$(V),V&&C(V))},T=V=>a==null?void 0:a.getFlattedNodes(V),A=V=>{var X;return(X=T(V))==null?void 0:X.filter(oe=>oe.checked!==!1)},R=()=>{m.value.forEach(V=>V.doCheck(!1)),B(),f.value=f.value.slice(0,1),h.value=null,t("expand-change",[])},B=()=>{var V;const{checkStrictly:X,multiple:oe}=i.value,K=m.value,Z=A(!X),re=k$e(K,Z),J=re.map(z=>z.valueByOption);m.value=re,u.value=oe?J:(V=J[0])!=null?V:null},I=(V=!1,X=!1)=>{const{modelValue:oe}=e,{lazy:K,multiple:Z,checkStrictly:re}=i.value,J=!re;if(!(!s.value||r||!X&&ss(oe,u.value)))if(K&&!V){const q=j6(BW(ks(oe))).map(ue=>a==null?void 0:a.getNodeByValue(ue)).filter(ue=>!!ue&&!ue.loaded&&!ue.loading);q.length?q.forEach(ue=>{k(ue,()=>I(!1,X))}):I(!0,X)}else{const z=Z?ks(oe):[oe],q=j6(z.map(ue=>a==null?void 0:a.getNodeByValue(ue,J)));N(q,X),u.value=BO(oe)}},N=(V,X=!0)=>{const{checkStrictly:oe}=i.value,K=m.value,Z=V.filter(z=>!!z&&(oe||z.isLeaf)),re=a==null?void 0:a.getSameNode(h.value),J=X&&re||Z[0];J?J.pathNodes.forEach(z=>C(z,!0)):h.value=null,K.forEach(z=>z.doCheck(!1)),or(Z).forEach(z=>z.doCheck(!0)),m.value=Z,Wt(j)},j=()=>{!rr||l.value.forEach(V=>{const X=V==null?void 0:V.$el;if(X){const oe=X.querySelector(`.${o.namespace.value}-scrollbar__wrap`),K=X.querySelector(`.${o.b("node")}.${o.is("active")}`)||X.querySelector(`.${o.b("node")}.in-active-path`);wD(oe,K)}})},L=V=>{const X=V.target,{code:oe}=V;switch(oe){case Yt.up:case Yt.down:{V.preventDefault();const K=oe===Yt.up?-1:1;fk(qQ(X,K,`.${o.b("node")}[tabindex="-1"]`));break}case Yt.left:{V.preventDefault();const K=l.value[LB(X)-1],Z=K==null?void 0:K.$el.querySelector(`.${o.b("node")}[aria-expanded="true"]`);fk(Z);break}case Yt.right:{V.preventDefault();const K=l.value[LB(X)+1],Z=K==null?void 0:K.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`);fk(Z);break}case Yt.enter:x$e(X);break}};return Yn(a3,or({config:i,expandingNode:h,checkedNodes:m,isHoverMenu:y,initialLoaded:s,renderLabelFn:O,lazyLoad:k,expandNode:C,handleCheckChange:P})),at([i,()=>e.options],b,{deep:!0,immediate:!0}),at(()=>e.modelValue,()=>{r=!1,I()},{deep:!0}),at(()=>u.value,V=>{ss(V,e.modelValue)||(t(Tn,V),t(uo,V))}),_Q(()=>l.value=[]),vn(()=>!vu(e.modelValue)&&I()),{ns:o,menuList:l,menus:f,checkedNodes:m,handleKeyDown:L,handleCheckChange:P,getFlattedNodes:T,getCheckedNodes:A,clearCheckedNodes:R,calculateCheckedValue:B,scrollToExpandingNode:j}}});function E$e(e,t,n,r,o,i){const a=Pn("el-cascader-menu");return U(),ce("div",{class:G([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(U(!0),ce(Pt,null,_n(e.menus,(s,l)=>(U(),Qe(a,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],42,["onKeydown"])}var T$e=gt(C$e,[["render",E$e],["__file","index.vue"]]);const CH=gn(T$e),_m=pt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:$f},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),P$e={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},$$e=xe({name:"ElTag"}),A$e=xe({...$$e,props:_m,emits:P$e,setup(e,{emit:t}){const n=e,r=wi(),o=ut("tag"),i=W(()=>{const{type:l,hit:u,effect:f,closable:h,round:m}=n;return[o.b(),o.is("closable",h),o.m(l||"primary"),o.m(r.value),o.m(f),o.is("hit",u),o.is("round",m)]}),a=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(U(),ce("span",{key:0,class:G(v(i)),style:Ft({backgroundColor:l.color}),onClick:s},[ge("span",{class:G(v(o).e("content"))},[Xe(l.$slots,"default")],2),l.closable?(U(),Qe(v(Lt),{key:0,class:G(v(o).e("close")),onClick:nn(a,["stop"])},{default:se(()=>[ne(v(Ts))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)):(U(),Qe(Mi,{key:1,name:`${v(o).namespace.value}-zoom-in-center`,appear:""},{default:se(()=>[ge("span",{class:G(v(i)),style:Ft({backgroundColor:l.color}),onClick:s},[ge("span",{class:G(v(o).e("content"))},[Xe(l.$slots,"default")],2),l.closable?(U(),Qe(v(Lt),{key:0,class:G(v(o).e("close")),onClick:nn(a,["stop"])},{default:se(()=>[ne(v(Ts))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)]),_:3},8,["name"]))}});var M$e=gt(A$e,[["__file","tag.vue"]]);const hp=gn(M$e),R$e=pt({...kH,size:Ni,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Le(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Le(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Ji.teleported,tagType:{..._m.type,default:"info"},tagEffect:{..._m.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...C0}),N$e={[Tn]:e=>!0,[uo]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>qo(e),expandChange:e=>!!e,removeTag:e=>!!e},I$e="ElCascader",D$e=xe({name:I$e}),j$e=xe({...D$e,props:R$e,emits:N$e,setup(e,{expose:t,emit:n}){const r=e,o={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ke})=>{const{modifiersData:Ze,placement:rt}=ke;["right","left","bottom","top"].includes(rt)||(Ze.arrow.x=35)},requires:["arrow"]}]},i=Em();let a=0,s=0;const l=ut("cascader"),u=ut("input"),{t:f}=ir(),{form:h,formItem:m}=cs(),{valueOnClear:y}=J2(r),{isComposing:O,handleComposition:b}=G2({afterComposition(ke){var Ze;const rt=(Ze=ke.target)==null?void 0:Ze.value;me(rt)}}),k=ee(null),C=ee(null),P=ee(null),$=ee(null),T=ee(null),A=ee(!1),R=ee(!1),B=ee(!1),I=ee(!1),N=ee(""),j=ee(""),L=ee([]),V=ee([]),X=ee([]),oe=W(()=>i.style),K=W(()=>r.disabled||(h==null?void 0:h.disabled)),Z=W(()=>r.placeholder||f("el.cascader.placeholder")),re=W(()=>j.value||L.value.length>0||O.value?"":Z.value),J=wi(),z=W(()=>["small"].includes(J.value)?"small":"default"),q=W(()=>!!r.props.multiple),ue=W(()=>!r.filterable||q.value),he=W(()=>q.value?j.value:N.value),le=W(()=>{var ke;return((ke=$.value)==null?void 0:ke.checkedNodes)||[]}),ze=W(()=>!r.clearable||K.value||B.value||!R.value?!1:!!le.value.length),Ee=W(()=>{const{showAllLevels:ke,separator:Ze}=r,rt=le.value;return rt.length?q.value?"":rt[0].calcText(ke,Ze):""}),Be=W(()=>(m==null?void 0:m.validateState)||""),Ae=W({get(){return BO(r.modelValue)},set(ke){const Ze=ke!=null?ke:y.value;n(Tn,Ze),n(uo,Ze),r.validateEvent&&(m==null||m.validate("change").catch(rt=>void 0))}}),_e=W(()=>[l.b(),l.m(J.value),l.is("disabled",K.value),i.class]),ve=W(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",A.value)]),Ne=W(()=>l.is("focus",A.value||I.value)),Se=W(()=>{var ke,Ze;return(Ze=(ke=k.value)==null?void 0:ke.popperRef)==null?void 0:Ze.contentRef}),fe=ke=>{var Ze,rt,zt;K.value||(ke=ke!=null?ke:!A.value,ke!==A.value&&(A.value=ke,(rt=(Ze=C.value)==null?void 0:Ze.input)==null||rt.setAttribute("aria-expanded",`${ke}`),ke?(ye(),Wt((zt=$.value)==null?void 0:zt.scrollToExpandingNode)):r.filterable&&bt(),n("visibleChange",ke)))},ye=()=>{Wt(()=>{var ke;(ke=k.value)==null||ke.updatePopper()})},He=()=>{B.value=!1},be=ke=>{const{showAllLevels:Ze,separator:rt}=r;return{node:ke,key:ke.uid,text:ke.calcText(Ze,rt),hitState:!1,closable:!K.value&&!ke.isDisabled,isCollapseTag:!1}},Ie=ke=>{var Ze;const rt=ke.node;rt.doCheck(!1),(Ze=$.value)==null||Ze.calculateCheckedValue(),n("removeTag",rt.valueByOption)},De=()=>{if(!q.value)return;const ke=le.value,Ze=[],rt=[];if(ke.forEach(zt=>rt.push(be(zt))),V.value=rt,ke.length){ke.slice(0,r.maxCollapseTags).forEach(ot=>Ze.push(be(ot)));const zt=ke.slice(r.maxCollapseTags),Fn=zt.length;Fn&&(r.collapseTags?Ze.push({key:-1,text:`+ ${Fn}`,closable:!1,isCollapseTag:!0}):zt.forEach(ot=>Ze.push(be(ot))))}L.value=Ze},Me=()=>{var ke,Ze;const{filterMethod:rt,showAllLevels:zt,separator:Fn}=r,ot=(Ze=(ke=$.value)==null?void 0:ke.getFlattedNodes(!r.props.checkStrictly))==null?void 0:Ze.filter(Bt=>Bt.isDisabled?!1:(Bt.calcText(zt,Fn),rt(Bt,he.value)));q.value&&(L.value.forEach(Bt=>{Bt.hitState=!1}),V.value.forEach(Bt=>{Bt.hitState=!1})),B.value=!0,X.value=ot,ye()},qe=()=>{var ke;let Ze;B.value&&T.value?Ze=T.value.$el.querySelector(`.${l.e("suggestion-item")}`):Ze=(ke=$.value)==null?void 0:ke.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),Ze&&(Ze.focus(),!B.value&&Ze.click())},Oe=()=>{var ke,Ze;const rt=(ke=C.value)==null?void 0:ke.input,zt=P.value,Fn=(Ze=T.value)==null?void 0:Ze.$el;if(!(!rr||!rt)){if(Fn){const ot=Fn.querySelector(`.${l.e("suggestion-list")}`);ot.style.minWidth=`${rt.offsetWidth}px`}if(zt){const{offsetHeight:ot}=zt,Bt=L.value.length>0?`${Math.max(ot+6,a)}px`:`${a}px`;rt.style.height=Bt,ye()}}},Je=ke=>{var Ze;return(Ze=$.value)==null?void 0:Ze.getCheckedNodes(ke)},lt=ke=>{ye(),n("expandChange",ke)},Ke=ke=>{if(!O.value)switch(ke.code){case Yt.enter:fe();break;case Yt.down:fe(!0),Wt(qe),ke.preventDefault();break;case Yt.esc:A.value===!0&&(ke.preventDefault(),ke.stopPropagation(),fe(!1));break;case Yt.tab:fe(!1);break}},et=()=>{var ke;(ke=$.value)==null||ke.clearCheckedNodes(),!A.value&&r.filterable&&bt(),fe(!1),n("clear")},bt=()=>{const{value:ke}=Ee;N.value=ke,j.value=ke},Ot=ke=>{var Ze,rt;const{checked:zt}=ke;q.value?(Ze=$.value)==null||Ze.handleCheckChange(ke,!zt,!1):(!zt&&((rt=$.value)==null||rt.handleCheckChange(ke,!0,!1)),fe(!1))},Qt=ke=>{const Ze=ke.target,{code:rt}=ke;switch(rt){case Yt.up:case Yt.down:{const zt=rt===Yt.up?-1:1;fk(qQ(Ze,zt,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Yt.enter:Ze.click();break}},kt=()=>{const ke=L.value,Ze=ke[ke.length-1];s=j.value?0:s+1,!(!Ze||!s||r.collapseTags&&ke.length>1)&&(Ze.hitState?Ie(Ze):Ze.hitState=!0)},an=ke=>{const Ze=ke.target,rt=l.e("search-input");Ze.className===rt&&(I.value=!0),n("focus",ke)},Ce=ke=>{I.value=!1,n("blur",ke)},Ye=Rs(()=>{const{value:ke}=he;if(!ke)return;const Ze=r.beforeFilter(ke);CO(Ze)?Ze.then(Me).catch(()=>{}):Ze!==!1?Me():He()},r.debounce),me=(ke,Ze)=>{!A.value&&fe(!0),!(Ze!=null&&Ze.isComposing)&&(ke?Ye():He())},Ve=ke=>Number.parseFloat(Pse(u.cssVarName("input-height"),ke).value)-2;return at(B,ye),at([le,K,()=>r.collapseTags],De),at(L,()=>{Wt(()=>Oe())}),at(J,async()=>{await Wt();const ke=C.value.input;a=Ve(ke)||a,Oe()}),at(Ee,bt,{immediate:!0}),vn(()=>{const ke=C.value.input,Ze=Ve(ke);a=ke.offsetHeight||Ze,So(ke,Oe)}),t({getCheckedNodes:Je,cascaderPanelRef:$,togglePopperVisible:fe,contentRef:Se}),(ke,Ze)=>(U(),Qe(v(ia),{ref_key:"tooltipRef",ref:k,visible:A.value,teleported:ke.teleported,"popper-class":[v(l).e("dropdown"),ke.popperClass],"popper-options":o,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${v(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:ke.persistent,onHide:He},{default:se(()=>[bn((U(),ce("div",{class:G(v(_e)),style:Ft(v(oe)),onClick:()=>fe(v(ue)?void 0:!0),onKeydown:Ke,onMouseenter:rt=>R.value=!0,onMouseleave:rt=>R.value=!1},[ne(v(ri),{ref_key:"input",ref:C,modelValue:N.value,"onUpdate:modelValue":rt=>N.value=rt,placeholder:v(re),readonly:v(ue),disabled:v(K),"validate-event":!1,size:v(J),class:G(v(Ne)),tabindex:v(q)&&ke.filterable&&!v(K)?-1:void 0,onCompositionstart:v(b),onCompositionupdate:v(b),onCompositionend:v(b),onFocus:an,onBlur:Ce,onInput:me},{suffix:se(()=>[v(ze)?(U(),Qe(v(Lt),{key:"clear",class:G([v(u).e("icon"),"icon-circle-close"]),onClick:nn(et,["stop"])},{default:se(()=>[ne(v($p))]),_:1},8,["class","onClick"])):(U(),Qe(v(Lt),{key:"arrow-down",class:G(v(ve)),onClick:nn(rt=>fe(),["stop"])},{default:se(()=>[ne(v(Dd))]),_:1},8,["class","onClick"]))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),v(q)?(U(),ce("div",{key:0,ref_key:"tagWrapper",ref:P,class:G([v(l).e("tags"),v(l).is("validate",Boolean(v(Be)))])},[(U(!0),ce(Pt,null,_n(L.value,rt=>(U(),Qe(v(hp),{key:rt.key,type:ke.tagType,size:v(z),effect:ke.tagEffect,hit:rt.hitState,closable:rt.closable,"disable-transitions":"",onClose:zt=>Ie(rt)},{default:se(()=>[rt.isCollapseTag===!1?(U(),ce("span",{key:0},ct(rt.text),1)):(U(),Qe(v(ia),{key:1,disabled:A.value||!ke.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:se(()=>[ge("span",null,ct(rt.text),1)]),content:se(()=>[ge("div",{class:G(v(l).e("collapse-tags"))},[(U(!0),ce(Pt,null,_n(V.value.slice(ke.maxCollapseTags),(zt,Fn)=>(U(),ce("div",{key:Fn,class:G(v(l).e("collapse-tag"))},[(U(),Qe(v(hp),{key:zt.key,class:"in-tooltip",type:ke.tagType,size:v(z),effect:ke.tagEffect,hit:zt.hitState,closable:zt.closable,"disable-transitions":"",onClose:ot=>Ie(zt)},{default:se(()=>[ge("span",null,ct(zt.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),ke.filterable&&!v(K)?bn((U(),ce("input",{key:0,"onUpdate:modelValue":rt=>j.value=rt,type:"text",class:G(v(l).e("search-input")),placeholder:v(Ee)?"":v(Z),onInput:rt=>me(j.value,rt),onClick:nn(rt=>fe(!0),["stop"]),onKeydown:Qr(kt,["delete"]),onCompositionstart:v(b),onCompositionupdate:v(b),onCompositionend:v(b),onFocus:an,onBlur:Ce},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[yI,j.value]]):Fe("v-if",!0)],2)):Fe("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[v(Sd),()=>fe(!1),v(Se)]])]),content:se(()=>[bn(ne(v(CH),{ref_key:"cascaderPanelRef",ref:$,modelValue:v(Ae),"onUpdate:modelValue":rt=>no(Ae)?Ae.value=rt:null,options:ke.options,props:r.props,border:!1,"render-label":ke.$slots.default,onExpandChange:lt,onClose:rt=>ke.$nextTick(()=>fe(!1))},null,8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[gr,!B.value]]),ke.filterable?bn((U(),Qe(v(Ec),{key:0,ref_key:"suggestionPanel",ref:T,tag:"ul",class:G(v(l).e("suggestion-panel")),"view-class":v(l).e("suggestion-list"),onKeydown:Qt},{default:se(()=>[X.value.length?(U(!0),ce(Pt,{key:0},_n(X.value,rt=>(U(),ce("li",{key:rt.uid,class:G([v(l).e("suggestion-item"),v(l).is("checked",rt.checked)]),tabindex:-1,onClick:zt=>Ot(rt)},[ge("span",null,ct(rt.text),1),rt.checked?(U(),Qe(v(Lt),{key:0},{default:se(()=>[ne(v(x0))]),_:1})):Fe("v-if",!0)],10,["onClick"]))),128)):Xe(ke.$slots,"empty",{key:1},()=>[ge("li",{class:G(v(l).e("empty-text"))},ct(v(f)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[gr,B.value]]):Fe("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition","persistent"]))}});var L$e=gt(j$e,[["__file","cascader.vue"]]);const B$e=gn(L$e),V$e=pt({checked:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),F$e={"update:checked":e=>qo(e),[uo]:e=>qo(e)},z$e=xe({name:"ElCheckTag"}),Q$e=xe({...z$e,props:V$e,emits:F$e,setup(e,{emit:t}){const n=e,r=ut("check-tag"),o=W(()=>[r.b(),r.is("checked",n.checked),r.m(n.type||"primary")]),i=()=>{const a=!n.checked;t(uo,a),t("update:checked",a)};return(a,s)=>(U(),ce("span",{class:G(v(o)),onClick:i},[Xe(a.$slots,"default")],2))}});var W$e=gt(Q$e,[["__file","check-tag.vue"]]);const Y$e=gn(W$e),EH=Symbol("rowContextKey"),U$e=["start","center","end","space-around","space-between","space-evenly"],H$e=["top","middle","bottom"],Z$e=pt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:U$e,default:"start"},align:{type:String,values:H$e}}),X$e=xe({name:"ElRow"}),q$e=xe({...X$e,props:Z$e,setup(e){const t=e,n=ut("row"),r=W(()=>t.gutter);Yn(EH,{gutter:r});const o=W(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),i=W(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(a,s)=>(U(),Qe(jn(a.tag),{class:G(v(i)),style:Ft(v(o))},{default:se(()=>[Xe(a.$slots,"default")]),_:3},8,["class","style"]))}});var K$e=gt(q$e,[["__file","row.vue"]]);const ul=gn(K$e),G$e=pt({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:Le([Number,Object]),default:()=>xo({})},sm:{type:Le([Number,Object]),default:()=>xo({})},md:{type:Le([Number,Object]),default:()=>xo({})},lg:{type:Le([Number,Object]),default:()=>xo({})},xl:{type:Le([Number,Object]),default:()=>xo({})}}),J$e=xe({name:"ElCol"}),eAe=xe({...J$e,props:G$e,setup(e){const t=e,{gutter:n}=$t(EH,{gutter:W(()=>0)}),r=ut("col"),o=W(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),i=W(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const f=t[u];tn(f)&&(u==="span"?a.push(r.b(`${t[u]}`)):f>0&&a.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{tn(t[u])?a.push(r.b(`${u}-${t[u]}`)):$n(t[u])&&Object.entries(t[u]).forEach(([f,h])=>{a.push(f!=="span"?r.b(`${u}-${f}-${h}`):r.b(`${u}-${h}`))})}),n.value&&a.push(r.is("guttered")),[r.b(),a]});return(a,s)=>(U(),Qe(jn(a.tag),{class:G(v(i)),style:Ft(v(o))},{default:se(()=>[Xe(a.$slots,"default")]),_:3},8,["class","style"]))}});var tAe=gt(eAe,[["__file","col.vue"]]);const cl=gn(tAe),BB=e=>tn(e)||Gt(e)||Et(e),nAe=pt({accordion:Boolean,modelValue:{type:Le([Array,String,Number]),default:()=>xo([])}}),rAe={[Tn]:BB,[uo]:BB},TH=Symbol("collapseContextKey"),oAe=(e,t)=>{const n=ee(Da(e.modelValue)),r=i=>{n.value=i;const a=e.accordion?n.value[0]:n.value;t(Tn,a),t(uo,a)},o=i=>{if(e.accordion)r([n.value[0]===i?"":i]);else{const a=[...n.value],s=a.indexOf(i);s>-1?a.splice(s,1):a.push(i),r(a)}};return at(()=>e.modelValue,()=>n.value=Da(e.modelValue),{deep:!0}),Yn(TH,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:r}},iAe=()=>{const e=ut("collapse");return{rootKls:W(()=>e.b())}},aAe=xe({name:"ElCollapse"}),sAe=xe({...aAe,props:nAe,emits:rAe,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:i}=oAe(r,n),{rootKls:a}=iAe();return t({activeNames:o,setActiveNames:i}),(s,l)=>(U(),ce("div",{class:G(v(a))},[Xe(s.$slots,"default")],2))}});var lAe=gt(sAe,[["__file","collapse.vue"]]);const uAe=xe({name:"ElCollapseTransition"}),cAe=xe({...uAe,setup(e){const t=ut("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,i)=>(U(),Qe(Mi,Dn({name:v(t).b()},Jie(r)),{default:se(()=>[Xe(o.$slots,"default")]),_:3},16,["name"]))}});var fAe=gt(cAe,[["__file","collapse-transition.vue"]]);const oE=gn(fAe),dAe=pt({title:{type:String,default:""},name:{type:Le([String,Number]),default:void 0},disabled:Boolean}),hAe=e=>{const t=$t(TH),{namespace:n}=ut("collapse"),r=ee(!1),o=ee(!1),i=QD(),a=W(()=>i.current++),s=W(()=>{var m;return(m=e.name)!=null?m:`${n.value}-id-${i.prefix}-${v(a)}`}),l=W(()=>t==null?void 0:t.activeNames.value.includes(v(s)));return{focusing:r,id:a,isActive:l,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:r.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(v(s)),r.value=!1,o.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(v(s))}}},pAe=(e,{focusing:t,isActive:n,id:r})=>{const o=ut("collapse"),i=W(()=>[o.b("item"),o.is("active",v(n)),o.is("disabled",e.disabled)]),a=W(()=>[o.be("item","header"),o.is("active",v(n)),{focusing:v(t)&&!e.disabled}]),s=W(()=>[o.be("item","arrow"),o.is("active",v(n))]),l=W(()=>o.be("item","wrap")),u=W(()=>o.be("item","content")),f=W(()=>o.b(`content-${v(r)}`)),h=W(()=>o.b(`head-${v(r)}`));return{arrowKls:s,headKls:a,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:f,scopedHeadId:h}},gAe=xe({name:"ElCollapseItem"}),mAe=xe({...gAe,props:dAe,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:i,handleFocus:a,handleHeaderClick:s,handleEnterClick:l}=hAe(n),{arrowKls:u,headKls:f,rootKls:h,itemWrapperKls:m,itemContentKls:y,scopedContentId:O,scopedHeadId:b}=pAe(n,{focusing:r,isActive:i,id:o});return t({isActive:i}),(k,C)=>(U(),ce("div",{class:G(v(h))},[ge("button",{id:v(b),class:G(v(f)),"aria-expanded":v(i),"aria-controls":v(O),"aria-describedby":v(O),tabindex:k.disabled?-1:0,type:"button",onClick:v(s),onKeydown:Qr(nn(v(l),["stop","prevent"]),["space","enter"]),onFocus:v(a),onBlur:P=>r.value=!1},[Xe(k.$slots,"title",{},()=>[xt(ct(k.title),1)]),ne(v(Lt),{class:G(v(u))},{default:se(()=>[ne(v(Es))]),_:1},8,["class"])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),ne(v(oE),null,{default:se(()=>[bn(ge("div",{id:v(O),role:"region",class:G(v(m)),"aria-hidden":!v(i),"aria-labelledby":v(b)},[ge("div",{class:G(v(y))},[Xe(k.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[gr,v(i)]])]),_:3})],2))}});var PH=gt(mAe,[["__file","collapse-item.vue"]]);const s3=gn(lAe,{CollapseItem:PH}),l3=Co(PH),vAe=pt({color:{type:Le(Object),required:!0},vertical:{type:Boolean,default:!1}});let gA=!1;function UO(e,t){if(!rr)return;const n=function(i){var a;(a=t.drag)==null||a.call(t,i)},r=function(i){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,gA=!1,(a=t.end)==null||a.call(t,i)},o=function(i){var a;gA||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),gA=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const yAe=e=>{const t=En(),{t:n}=ir(),r=to(),o=to(),i=W(()=>e.color.get("alpha")),a=W(()=>n("el.colorpicker.alphaLabel"));function s(h){var m;h.target!==r.value&&l(h),(m=r.value)==null||m.focus()}function l(h){if(!o.value||!r.value)return;const y=t.vnode.el.getBoundingClientRect(),{clientX:O,clientY:b}=wI(h);if(e.vertical){let k=b-y.top;k=Math.max(r.value.offsetHeight/2,k),k=Math.min(k,y.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((k-r.value.offsetHeight/2)/(y.height-r.value.offsetHeight)*100))}else{let k=O-y.left;k=Math.max(r.value.offsetWidth/2,k),k=Math.min(k,y.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((k-r.value.offsetWidth/2)/(y.width-r.value.offsetWidth)*100))}}function u(h){const{code:m,shiftKey:y}=h,O=y?10:1;switch(m){case Yt.left:case Yt.down:h.preventDefault(),h.stopPropagation(),f(-O);break;case Yt.right:case Yt.up:h.preventDefault(),h.stopPropagation(),f(O);break}}function f(h){let m=i.value+h;m=m<0?0:m>100?100:m,e.color.set("alpha",m)}return{thumb:r,bar:o,alpha:i,alphaLabel:a,handleDrag:l,handleClick:s,handleKeydown:u}},bAe=(e,{bar:t,thumb:n,handleDrag:r})=>{const o=En(),i=ut("color-alpha-slider"),a=ee(0),s=ee(0),l=ee();function u(){if(!n.value||e.vertical)return 0;const P=o.vnode.el,$=e.color.get("alpha");return P?Math.round($*(P.offsetWidth-n.value.offsetWidth/2)/100):0}function f(){if(!n.value)return 0;const P=o.vnode.el;if(!e.vertical)return 0;const $=e.color.get("alpha");return P?Math.round($*(P.offsetHeight-n.value.offsetHeight/2)/100):0}function h(){if(e.color&&e.color.value){const{r:P,g:$,b:T}=e.color.toRgb();return`linear-gradient(to right, rgba(${P}, ${$}, ${T}, 0) 0%, rgba(${P}, ${$}, ${T}, 1) 100%)`}return""}function m(){a.value=u(),s.value=f(),l.value=h()}vn(()=>{if(!t.value||!n.value)return;const P={drag:$=>{r($)},end:$=>{r($)}};UO(t.value,P),UO(n.value,P),m()}),at(()=>e.color.get("alpha"),()=>m()),at(()=>e.color.value,()=>m());const y=W(()=>[i.b(),i.is("vertical",e.vertical)]),O=W(()=>i.e("bar")),b=W(()=>i.e("thumb")),k=W(()=>({background:l.value})),C=W(()=>({left:Qo(a.value),top:Qo(s.value)}));return{rootKls:y,barKls:O,barStyle:k,thumbKls:b,thumbStyle:C,update:m}},_Ae="ElColorAlphaSlider",OAe=xe({name:_Ae}),wAe=xe({...OAe,props:vAe,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:o,bar:i,thumb:a,handleDrag:s,handleClick:l,handleKeydown:u}=yAe(n),{rootKls:f,barKls:h,barStyle:m,thumbKls:y,thumbStyle:O,update:b}=bAe(n,{bar:i,thumb:a,handleDrag:s});return t({update:b,bar:i,thumb:a}),(k,C)=>(U(),ce("div",{class:G(v(f))},[ge("div",{ref_key:"bar",ref:i,class:G(v(h)),style:Ft(v(m)),onClick:v(l)},null,14,["onClick"]),ge("div",{ref_key:"thumb",ref:a,class:G(v(y)),style:Ft(v(O)),"aria-label":v(o),"aria-valuenow":v(r),"aria-orientation":k.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:v(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var SAe=gt(wAe,[["__file","alpha-slider.vue"]]);const xAe=xe({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=ut("color-hue-slider"),n=En(),r=ee(),o=ee(),i=ee(0),a=ee(0),s=W(()=>e.color.get("hue"));at(()=>s.value,()=>{m()});function l(y){y.target!==r.value&&u(y)}function u(y){if(!o.value||!r.value)return;const b=n.vnode.el.getBoundingClientRect(),{clientX:k,clientY:C}=wI(y);let P;if(e.vertical){let $=C-b.top;$=Math.min($,b.height-r.value.offsetHeight/2),$=Math.max(r.value.offsetHeight/2,$),P=Math.round(($-r.value.offsetHeight/2)/(b.height-r.value.offsetHeight)*360)}else{let $=k-b.left;$=Math.min($,b.width-r.value.offsetWidth/2),$=Math.max(r.value.offsetWidth/2,$),P=Math.round(($-r.value.offsetWidth/2)/(b.width-r.value.offsetWidth)*360)}e.color.set("hue",P)}function f(){if(!r.value)return 0;const y=n.vnode.el;if(e.vertical)return 0;const O=e.color.get("hue");return y?Math.round(O*(y.offsetWidth-r.value.offsetWidth/2)/360):0}function h(){if(!r.value)return 0;const y=n.vnode.el;if(!e.vertical)return 0;const O=e.color.get("hue");return y?Math.round(O*(y.offsetHeight-r.value.offsetHeight/2)/360):0}function m(){i.value=f(),a.value=h()}return vn(()=>{if(!o.value||!r.value)return;const y={drag:O=>{u(O)},end:O=>{u(O)}};UO(o.value,y),UO(r.value,y),m()}),{bar:o,thumb:r,thumbLeft:i,thumbTop:a,hueValue:s,handleClick:l,update:m,ns:t}}});function kAe(e,t,n,r,o,i){return U(),ce("div",{class:G([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ge("div",{ref:"bar",class:G(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),ge("div",{ref:"thumb",class:G(e.ns.e("thumb")),style:Ft({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var CAe=gt(xAe,[["render",kAe],["__file","hue-slider.vue"]]);const EAe=pt({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Ni,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Ji.teleported,predefine:{type:Le(Array)},validateEvent:{type:Boolean,default:!0},...va(["ariaLabel"])}),TAe={[Tn]:e=>Gt(e)||Wi(e),[uo]:e=>Gt(e)||Wi(e),activeChange:e=>Gt(e)||Wi(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},$H=Symbol("colorPickerContextKey"),VB=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},PAe=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},$Ae=function(e){return typeof e=="string"&&e.includes("%")},Ty=function(e,t){PAe(e)&&(e="100%");const n=$Ae(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)},FB={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},wk=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${FB[t]||t}${FB[n]||n}`},zB=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${wk(e)}${wk(t)}${wk(n)}`},mA={A:10,B:11,C:12,D:13,E:14,F:15},Rg=function(e){return e.length===2?(mA[e[0].toUpperCase()]||+e[0])*16+(mA[e[1].toUpperCase()]||+e[1]):mA[e[1].toUpperCase()]||+e[1]},AAe=function(e,t,n){t=t/100,n=n/100;let r=t;const o=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=o<=1?o:2-o;const i=(n+t)/2,a=n===0?2*r/(o+r):2*t/(n+t);return{h:e,s:a*100,v:i*100}},QB=(e,t,n)=>{e=Ty(e,255),t=Ty(t,255),n=Ty(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let i;const a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:{i=(t-n)/s+(t<n?6:0);break}case t:{i=(n-e)/s+2;break}case n:{i=(e-t)/s+4;break}}i/=6}return{h:i*360,s:l*100,v:a*100}},$_=function(e,t,n){e=Ty(e,360)*6,t=Ty(t,100),n=Ty(n,100);const r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,u=[n,a,i,i,s,n][l],f=[s,n,n,a,i,i][l],h=[i,i,s,n,n,a][l];return{r:Math.round(u*255),g:Math.round(f*255),b:Math.round(h*255)}};class cO{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)sr(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)sr(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 $_(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,o,i)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,o)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,i)=>i>2?Number.parseFloat(o):Number.parseInt(o,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:o,s:i,v:a}=AAe(r[0],r[1],r[2]);n(o,i,a)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,i)=>i>2?Number.parseFloat(o):Number.parseInt(o,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(o=>o!=="").map((o,i)=>i>2?Number.parseFloat(o):Number.parseInt(o,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:o,s:i,v:a}=QB(r[0],r[1],r[2]);n(o,i,a)}}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 o,i,a;r.length===3?(o=Rg(r[0]+r[0]),i=Rg(r[1]+r[1]),a=Rg(r[2]+r[2])):(r.length===6||r.length===8)&&(o=Rg(r.slice(0,2)),i=Rg(r.slice(2,4)),a=Rg(r.slice(4,6))),r.length===8?this._alpha=Rg(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=QB(o,i,a);n(s,l,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:o,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const a=VB(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[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=`${zB($_(t,n,r))}${wk(o*255/100)}`;break}default:{const{r:a,g:s,b:l}=$_(t,n,r);this.value=`rgba(${a}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const a=VB(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:a,g:s,b:l}=$_(t,n,r);this.value=`rgb(${a}, ${s}, ${l})`;break}default:this.value=zB($_(t,n,r))}}}const MAe=xe({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=ut("color-predefine"),{currentColor:n}=$t($H),r=ee(i(e.colors,e.color));at(()=>n.value,a=>{const s=new cO;s.fromString(a),r.value.forEach(l=>{l.selected=s.compare(l)})}),Ba(()=>{r.value=i(e.colors,e.color)});function o(a){e.color.fromString(e.colors[a])}function i(a,s){return a.map(l=>{const u=new cO;return u.enableAlpha=e.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:o,ns:t}}});function RAe(e,t,n,r,o,i){return U(),ce("div",{class:G(e.ns.b())},[ge("div",{class:G(e.ns.e("colors"))},[(U(!0),ce(Pt,null,_n(e.rgbaColors,(a,s)=>(U(),ce("div",{key:e.colors[s],class:G([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>e.handleSelect(s)},[ge("div",{style:Ft({backgroundColor:a.value})},null,4)],10,["onClick"]))),128))],2)],2)}var NAe=gt(MAe,[["render",RAe],["__file","predefine.vue"]]);const IAe=xe({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=ut("color-svpanel"),n=En(),r=ee(0),o=ee(0),i=ee("hsl(0, 100%, 50%)"),a=W(()=>{const u=e.color.get("hue"),f=e.color.get("value");return{hue:u,value:f}});function s(){const u=e.color.get("saturation"),f=e.color.get("value"),h=n.vnode.el,{clientWidth:m,clientHeight:y}=h;o.value=u*m/100,r.value=(100-f)*y/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const h=n.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=wI(u);let O=m-h.left,b=y-h.top;O=Math.max(0,O),O=Math.min(O,h.width),b=Math.max(0,b),b=Math.min(b,h.height),o.value=O,r.value=b,e.color.set({saturation:O/h.width*100,value:100-b/h.height*100})}return at(()=>a.value,()=>{s()}),vn(()=>{UO(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:o,background:i,colorValue:a,handleDrag:l,update:s,ns:t}}});function DAe(e,t,n,r,o,i){return U(),ce("div",{class:G(e.ns.b()),style:Ft({backgroundColor:e.background})},[ge("div",{class:G(e.ns.e("white"))},null,2),ge("div",{class:G(e.ns.e("black"))},null,2),ge("div",{class:G(e.ns.e("cursor")),style:Ft({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[ge("div")],6)],6)}var jAe=gt(IAe,[["render",DAe],["__file","sv-panel.vue"]]);const LAe=xe({name:"ElColorPicker"}),BAe=xe({...LAe,props:EAe,emits:TAe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=ir(),i=ut("color"),{formItem:a}=cs(),s=wi(),l=Ls(),{inputId:u,isLabeledByFormItem:f}=Cc(r,{formItemContext:a}),h=ee(),m=ee(),y=ee(),O=ee(),b=ee(),k=ee(),{isFocused:C,handleFocus:P,handleBlur:$}=F1(b,{beforeFocus(){return l.value},beforeBlur(ve){var Ne;return(Ne=O.value)==null?void 0:Ne.isFocusInsideContent(ve)},afterBlur(){K(!1),z()}});let T=!0;const A=or(new cO({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),R=ee(!1),B=ee(!1),I=ee(""),N=W(()=>!r.modelValue&&!B.value?"transparent":oe(A,r.showAlpha)),j=W(()=>!r.modelValue&&!B.value?"":A.value),L=W(()=>f.value?void 0:r.ariaLabel||o("el.colorpicker.defaultLabel")),V=W(()=>f.value?a==null?void 0:a.labelId:void 0),X=W(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",C.value)]);function oe(ve,Ne){if(!(ve instanceof cO))throw new TypeError("color should be instance of _color Class");const{r:Se,g:fe,b:ye}=ve.toRgb();return Ne?`rgba(${Se}, ${fe}, ${ye}, ${ve.get("alpha")/100})`:`rgb(${Se}, ${fe}, ${ye})`}function K(ve){R.value=ve}const Z=Rs(K,100,{leading:!0});function re(){l.value||K(!0)}function J(){Z(!1),z()}function z(){Wt(()=>{r.modelValue?A.fromString(r.modelValue):(A.value="",Wt(()=>{B.value=!1}))})}function q(){l.value||Z(!R.value)}function ue(){A.fromString(I.value)}function he(){const ve=A.value;n(Tn,ve),n("change",ve),r.validateEvent&&(a==null||a.validate("change").catch(Ne=>void 0)),Z(!1),Wt(()=>{const Ne=new cO({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});A.compare(Ne)||z()})}function le(){Z(!1),n(Tn,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(ve=>void 0)),z()}function ze(){!R.value||(J(),C.value&&Ae())}function Ee(ve){ve.preventDefault(),ve.stopPropagation(),K(!1),z()}function Be(ve){switch(ve.code){case Yt.enter:case Yt.space:ve.preventDefault(),ve.stopPropagation(),re(),k.value.focus();break;case Yt.esc:Ee(ve);break}}function Ae(){b.value.focus()}function _e(){b.value.blur()}return vn(()=>{r.modelValue&&(I.value=j.value)}),at(()=>r.modelValue,ve=>{ve?ve&&ve!==A.value&&(T=!1,A.fromString(ve)):B.value=!1}),at(()=>j.value,ve=>{I.value=ve,T&&n("activeChange",ve),T=!0}),at(()=>A.value,()=>{!r.modelValue&&!B.value&&(B.value=!0)}),at(()=>R.value,()=>{Wt(()=>{var ve,Ne,Se;(ve=h.value)==null||ve.update(),(Ne=m.value)==null||Ne.update(),(Se=y.value)==null||Se.update()})}),Yn($H,{currentColor:j}),t({color:A,show:re,hide:J,focus:Ae,blur:_e}),(ve,Ne)=>(U(),Qe(v(ia),{ref_key:"popper",ref:O,visible:R.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[v(i).be("picker","panel"),v(i).b("dropdown"),ve.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:ve.teleported,transition:`${v(i).namespace.value}-zoom-in-top`,persistent:"",onHide:Se=>K(!1)},{content:se(()=>[bn((U(),ce("div",{onKeydown:Qr(Ee,["esc"])},[ge("div",{class:G(v(i).be("dropdown","main-wrapper"))},[ne(CAe,{ref_key:"hue",ref:h,class:"hue-slider",color:v(A),vertical:""},null,8,["color"]),ne(jAe,{ref_key:"sv",ref:m,color:v(A)},null,8,["color"])],2),ve.showAlpha?(U(),Qe(SAe,{key:0,ref_key:"alpha",ref:y,color:v(A)},null,8,["color"])):Fe("v-if",!0),ve.predefine?(U(),Qe(NAe,{key:1,ref:"predefine","enable-alpha":ve.showAlpha,color:v(A),colors:ve.predefine},null,8,["enable-alpha","color","colors"])):Fe("v-if",!0),ge("div",{class:G(v(i).be("dropdown","btns"))},[ge("span",{class:G(v(i).be("dropdown","value"))},[ne(v(ri),{ref_key:"inputRef",ref:k,modelValue:I.value,"onUpdate:modelValue":Se=>I.value=Se,"validate-event":!1,size:"small",onKeyup:Qr(ue,["enter"]),onBlur:ue},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),ne(v(io),{class:G(v(i).be("dropdown","link-btn")),text:"",size:"small",onClick:le},{default:se(()=>[xt(ct(v(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),ne(v(io),{plain:"",size:"small",class:G(v(i).be("dropdown","btn")),onClick:he},{default:se(()=>[xt(ct(v(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[v(Sd),ze]])]),default:se(()=>[ge("div",Dn({id:v(u),ref_key:"triggerRef",ref:b},ve.$attrs,{class:v(X),role:"button","aria-label":v(L),"aria-labelledby":v(V),"aria-description":v(o)("el.colorpicker.description",{color:ve.modelValue||""}),"aria-disabled":v(l),tabindex:v(l)?-1:ve.tabindex,onKeydown:Be,onFocus:v(P),onBlur:v($)}),[v(l)?(U(),ce("div",{key:0,class:G(v(i).be("picker","mask"))},null,2)):Fe("v-if",!0),ge("div",{class:G(v(i).be("picker","trigger")),onClick:q},[ge("span",{class:G([v(i).be("picker","color"),v(i).is("alpha",ve.showAlpha)])},[ge("span",{class:G(v(i).be("picker","color-inner")),style:Ft({backgroundColor:v(N)})},[bn(ne(v(Lt),{class:G([v(i).be("picker","icon"),v(i).is("icon-arrow-down")])},{default:se(()=>[ne(v(Dd))]),_:1},8,["class"]),[[gr,ve.modelValue||B.value]]),bn(ne(v(Lt),{class:G([v(i).be("picker","empty"),v(i).is("icon-close")])},{default:se(()=>[ne(v(Ts))]),_:1},8,["class"]),[[gr,!ve.modelValue&&!B.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var VAe=gt(BAe,[["__file","color-picker.vue"]]);const FAe=gn(VAe),zAe=xe({name:"ElContainer"}),QAe=xe({...zAe,props:{direction:{type:String}},setup(e){const t=e,n=Ui(),r=ut("container"),o=W(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(a=>{const s=a.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,a)=>(U(),ce("section",{class:G([v(r).b(),v(r).is("vertical",v(o))])},[Xe(i.$slots,"default")],2))}});var WAe=gt(QAe,[["__file","container.vue"]]);const YAe=xe({name:"ElAside"}),UAe=xe({...YAe,props:{width:{type:String,default:null}},setup(e){const t=e,n=ut("aside"),r=W(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,i)=>(U(),ce("aside",{class:G(v(n).b()),style:Ft(v(r))},[Xe(o.$slots,"default")],6))}});var AH=gt(UAe,[["__file","aside.vue"]]);const HAe=xe({name:"ElFooter"}),ZAe=xe({...HAe,props:{height:{type:String,default:null}},setup(e){const t=e,n=ut("footer"),r=W(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(U(),ce("footer",{class:G(v(n).b()),style:Ft(v(r))},[Xe(o.$slots,"default")],6))}});var MH=gt(ZAe,[["__file","footer.vue"]]);const XAe=xe({name:"ElHeader"}),qAe=xe({...XAe,props:{height:{type:String,default:null}},setup(e){const t=e,n=ut("header"),r=W(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(U(),ce("header",{class:G(v(n).b()),style:Ft(v(r))},[Xe(o.$slots,"default")],6))}});var RH=gt(qAe,[["__file","header.vue"]]);const KAe=xe({name:"ElMain"}),GAe=xe({...KAe,setup(e){const t=ut("main");return(n,r)=>(U(),ce("main",{class:G(v(t).b())},[Xe(n.$slots,"default")],2))}});var NH=gt(GAe,[["__file","main.vue"]]);const JAe=gn(WAe,{Aside:AH,Footer:MH,Header:RH,Main:NH}),eMe=Co(AH),tMe=Co(MH),nMe=Co(RH),rMe=Co(NH);var IH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),f=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),h==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),h==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return h}});return i.bind(this)(f)}}})})(IH);var oMe=IH.exports,DH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){var n="week",r="year";return function(o,i,a){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=a(this).startOf(r).add(1,r).date(u),h=a(this).endOf(n);if(f.isBefore(h))return 1}var m=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),y=this.diff(m,n,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(DH);var iMe=DH.exports,jH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(jH);var aMe=jH.exports,LH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){return function(n,r,o){r.prototype.dayOfYear=function(i){var a=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}})})(LH);var sMe=LH.exports,BH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}})})(BH);var lMe=BH.exports,VH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qs,function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}})})(VH);var uMe=VH.exports;const iE=Symbol(),cMe=pt({...i3,type:{type:Le(String),default:"date"}}),fMe=["date","dates","year","years","month","months","week","range"],u3=pt({disabledDate:{type:Le(Function)},date:{type:Le(Object),required:!0},minDate:{type:Le(Object)},maxDate:{type:Le(Object)},parsedValue:{type:Le([Object,Array])},rangeState:{type:Le(Object),default:()=>({endDate:null,selecting:!1})}}),FH=pt({type:{type:Le(String),required:!0,values:zSe},dateFormat:String,timeFormat:String}),c3=pt({unlinkPanels:Boolean,parsedValue:{type:Le(Array)}}),f3=e=>({type:String,values:fMe,default:e}),dMe=pt({...FH,parsedValue:{type:Le([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),hMe=pt({...u3,cellClassName:{type:Le(Function)},showWeekNumber:Boolean,selectionMode:f3("date")}),pMe=["changerange","pick","select"],e0=e=>{if(!Et(e))return!1;const[t,n]=e;return cn.isDayjs(t)&&cn.isDayjs(n)&&t.isSameOrBefore(n)},d3=(e,{lang:t,unit:n,unlinkPanels:r})=>{let o;if(Et(e)){let[i,a]=e.map(s=>cn(s).locale(t));return r||(a=i.add(1,n)),[i,a]}else e?o=cn(e):o=cn();return o=o.locale(t),[o,o.add(1,n)]},gMe=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:o,now:i,unit:a,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let f=0;f<e.row;f++){const h=t[f];for(let m=0;m<e.column;m++){let y=h[m+n];y||(y={row:f,column:m,type:"normal",inRange:!1,start:!1,end:!1});const O=f*e.column+m,b=s(O);y.dayjs=b,y.date=b.toDate(),y.timestamp=b.valueOf(),y.type="normal",y.inRange=!!(r&&b.isSameOrAfter(r,a)&&o&&b.isSameOrBefore(o,a))||!!(r&&b.isSameOrBefore(r,a)&&o&&b.isSameOrAfter(o,a)),r!=null&&r.isSameOrAfter(o)?(y.start=!!o&&b.isSame(o,a),y.end=r&&b.isSame(r,a)):(y.start=!!r&&b.isSame(r,a),y.end=!!o&&b.isSame(o,a)),b.isSame(i,a)&&(y.type="today"),l==null||l(y,{rowIndex:f,columnIndex:m}),h[m+n]=y}u==null||u(h)}},uR=(e="")=>["normal","today"].includes(e),mMe=(e,t)=>{const{lang:n}=ir(),r=ee(),o=ee(),i=ee(),a=ee(),s=ee([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,f=e.date.locale("en").localeData().weekdaysShort().map(z=>z.toLowerCase()),h=W(()=>u>3?7-u:-u),m=W(()=>{const z=e.date.startOf("month");return z.subtract(z.day()||7,"day")}),y=W(()=>f.concat(f).slice(u,u+7)),O=W(()=>MI(v(T)).some(z=>z.isCurrent)),b=W(()=>{const z=e.date.startOf("month"),q=z.day()||7,ue=z.daysInMonth(),he=z.subtract(1,"month").daysInMonth();return{startOfMonthDay:q,dateCountOfMonth:ue,dateCountOfLastMonth:he}}),k=W(()=>e.selectionMode==="dates"?ks(e.parsedValue):[]),C=(z,{count:q,rowIndex:ue,columnIndex:he})=>{const{startOfMonthDay:le,dateCountOfMonth:ze,dateCountOfLastMonth:Ee}=v(b),Be=v(h);if(ue>=0&&ue<=1){const Ae=le+Be<0?7+le+Be:le+Be;if(he+ue*7>=Ae)return z.text=q,!0;z.text=Ee-(Ae-he%7)+1+ue*7,z.type="prev-month"}else return q<=ze?z.text=q:(z.text=q-ze,z.type="next-month"),!0;return!1},P=(z,{columnIndex:q,rowIndex:ue},he)=>{const{disabledDate:le,cellClassName:ze}=e,Ee=v(k),Be=C(z,{count:he,rowIndex:ue,columnIndex:q}),Ae=z.dayjs.toDate();return z.selected=Ee.find(_e=>_e.isSame(z.dayjs,"day")),z.isSelected=!!z.selected,z.isCurrent=R(z),z.disabled=le==null?void 0:le(Ae),z.customClass=ze==null?void 0:ze(Ae),Be},$=z=>{if(e.selectionMode==="week"){const[q,ue]=e.showWeekNumber?[1,7]:[0,6],he=J(z[q+1]);z[q].inRange=he,z[q].start=he,z[ue].inRange=he,z[ue].end=he}},T=W(()=>{const{minDate:z,maxDate:q,rangeState:ue,showWeekNumber:he}=e,le=v(h),ze=v(s),Ee="day";let Be=1;if(he)for(let Ae=0;Ae<6;Ae++)ze[Ae][0]||(ze[Ae][0]={type:"week",text:v(m).add(Ae*7+1,Ee).week()});return gMe({row:6,column:7},ze,{startDate:z,columnIndexOffset:he?1:0,nextEndDate:ue.endDate||q||ue.selecting&&z||null,now:cn().locale(v(n)).startOf(Ee),unit:Ee,relativeDateGetter:Ae=>v(m).add(Ae-le,Ee),setCellMetadata:(...Ae)=>{P(...Ae,Be)&&(Be+=1)},setRowMetadata:$}),ze});at(()=>e.date,async()=>{var z;(z=v(r))!=null&&z.contains(document.activeElement)&&(await Wt(),await A())});const A=async()=>{var z;return(z=v(o))==null?void 0:z.focus()},R=z=>e.selectionMode==="date"&&uR(z.type)&&B(z,e.parsedValue),B=(z,q)=>q?cn(q).locale(v(n)).isSame(e.date.date(Number(z.text)),"day"):!1,I=(z,q)=>{const ue=z*7+(q-(e.showWeekNumber?1:0))-v(h);return v(m).add(ue,"day")},N=z=>{var q;if(!e.rangeState.selecting)return;let ue=z.target;if(ue.tagName==="SPAN"&&(ue=(q=ue.parentNode)==null?void 0:q.parentNode),ue.tagName==="DIV"&&(ue=ue.parentNode),ue.tagName!=="TD")return;const he=ue.parentNode.rowIndex-1,le=ue.cellIndex;v(T)[he][le].disabled||(he!==v(i)||le!==v(a))&&(i.value=he,a.value=le,t("changerange",{selecting:!0,endDate:I(he,le)}))},j=z=>!v(O)&&(z==null?void 0:z.text)===1&&z.type==="normal"||z.isCurrent,L=z=>{l||v(O)||e.selectionMode!=="date"||re(z,!0)},V=z=>{!z.target.closest("td")||(l=!0)},X=z=>{!z.target.closest("td")||(l=!1)},oe=z=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:z,maxDate:null}),t("select",!0)):(z>=e.minDate?t("pick",{minDate:e.minDate,maxDate:z}):t("pick",{minDate:z,maxDate:e.minDate}),t("select",!1))},K=z=>{const q=z.week(),ue=`${z.year()}w${q}`;t("pick",{year:z.year(),week:q,value:ue,date:z.startOf("week")})},Z=(z,q)=>{const ue=q?ks(e.parsedValue).filter(he=>(he==null?void 0:he.valueOf())!==z.valueOf()):ks(e.parsedValue).concat([z]);t("pick",ue)},re=(z,q=!1)=>{const ue=z.target.closest("td");if(!ue)return;const he=ue.parentNode.rowIndex-1,le=ue.cellIndex,ze=v(T)[he][le];if(ze.disabled||ze.type==="week")return;const Ee=I(he,le);switch(e.selectionMode){case"range":{oe(Ee);break}case"date":{t("pick",Ee,q);break}case"week":{K(Ee);break}case"dates":{Z(Ee,!!ze.selected);break}}},J=z=>{if(e.selectionMode!=="week")return!1;let q=e.date.startOf("day");if(z.type==="prev-month"&&(q=q.subtract(1,"month")),z.type==="next-month"&&(q=q.add(1,"month")),q=q.date(Number.parseInt(z.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const ue=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(ue,"day").isSame(q,"day")}return!1};return{WEEKS:y,rows:T,tbodyRef:r,currentCellRef:o,focus:A,isCurrent:R,isWeekActive:J,isSelectedCell:j,handlePickDate:re,handleMouseUp:X,handleMouseDown:V,handleMouseMove:N,handleFocus:L}},vMe=(e,{isCurrent:t,isWeekActive:n})=>{const r=ut("date-table"),{t:o}=ir(),i=W(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),a=W(()=>o("el.datepicker.dateTablePrompt")),s=W(()=>o("el.datepicker.week"));return{tableKls:i,tableLabel:a,weekLabel:s,getCellClasses:f=>{const h=[];return uR(f.type)&&!f.disabled?(h.push("available"),f.type==="today"&&h.push("today")):h.push(f.type),t(f)&&h.push("current"),f.inRange&&(uR(f.type)||e.selectionMode==="week")&&(h.push("in-range"),f.start&&h.push("start-date"),f.end&&h.push("end-date")),f.disabled&&h.push("disabled"),f.selected&&h.push("selected"),f.customClass&&h.push(f.customClass),h.join(" ")},getRowKls:f=>[r.e("row"),{current:n(f)}],t:o}},yMe=pt({cell:{type:Le(Object)}});var h3=xe({name:"ElDatePickerCell",props:yMe,setup(e){const t=ut("date-table-cell"),{slots:n}=$t(iE);return()=>{const{cell:r}=e;return Xe(n,"default",{...r},()=>{var o;return[ne("div",{class:t.b()},[ne("span",{class:t.e("text")},[(o=r==null?void 0:r.renderText)!=null?o:r==null?void 0:r.text])])]})}}});const bMe=xe({__name:"basic-date-table",props:hMe,emits:pMe,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:o,rows:i,tbodyRef:a,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:f,isSelectedCell:h,handlePickDate:m,handleMouseUp:y,handleMouseDown:O,handleMouseMove:b,handleFocus:k}=mMe(r,n),{tableLabel:C,tableKls:P,weekLabel:$,getCellClasses:T,getRowKls:A,t:R}=vMe(r,{isCurrent:u,isWeekActive:f});return t({focus:l}),(B,I)=>(U(),ce("table",{"aria-label":v(C),class:G(v(P)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:v(m),onMousemove:v(b),onMousedown:nn(v(O),["prevent"]),onMouseup:v(y)},[ge("tbody",{ref_key:"tbodyRef",ref:a},[ge("tr",null,[B.showWeekNumber?(U(),ce("th",{key:0,scope:"col"},ct(v($)),1)):Fe("v-if",!0),(U(!0),ce(Pt,null,_n(v(o),(N,j)=>(U(),ce("th",{key:j,"aria-label":v(R)("el.datepicker.weeksFull."+N),scope:"col"},ct(v(R)("el.datepicker.weeks."+N)),9,["aria-label"]))),128))]),(U(!0),ce(Pt,null,_n(v(i),(N,j)=>(U(),ce("tr",{key:j,class:G(v(A)(N[1]))},[(U(!0),ce(Pt,null,_n(N,(L,V)=>(U(),ce("td",{key:`${j}.${V}`,ref_for:!0,ref:X=>v(h)(L)&&(s.value=X),class:G(v(T)(L)),"aria-current":L.isCurrent?"date":void 0,"aria-selected":L.isCurrent,tabindex:v(h)(L)?0:-1,onFocus:v(k)},[ne(v(h3),{cell:L},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var cR=gt(bMe,[["__file","basic-date-table.vue"]]);const _Me=pt({...u3,selectionMode:f3("month")}),OMe=xe({__name:"basic-month-table",props:_Me,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(T,A,R)=>{const B=cn().locale(R).startOf("month").month(A).year(T),I=B.daysInMonth();return qh(I).map(N=>B.add(N,"day").toDate())},i=ut("month-table"),{t:a,lang:s}=ir(),l=ee(),u=ee(),f=ee(r.date.locale("en").localeData().monthsShort().map(T=>T.toLowerCase())),h=ee([[],[],[]]),m=ee(),y=ee(),O=W(()=>{var T,A;const R=h.value,B=cn().locale(s.value).startOf("month");for(let I=0;I<3;I++){const N=R[I];for(let j=0;j<4;j++){const L=N[j]||(N[j]={row:I,column:j,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});L.type="normal";const V=I*4+j,X=r.date.startOf("year").month(V),oe=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;L.inRange=!!(r.minDate&&X.isSameOrAfter(r.minDate,"month")&&oe&&X.isSameOrBefore(oe,"month"))||!!(r.minDate&&X.isSameOrBefore(r.minDate,"month")&&oe&&X.isSameOrAfter(oe,"month")),(T=r.minDate)!=null&&T.isSameOrAfter(oe)?(L.start=!!(oe&&X.isSame(oe,"month")),L.end=r.minDate&&X.isSame(r.minDate,"month")):(L.start=!!(r.minDate&&X.isSame(r.minDate,"month")),L.end=!!(oe&&X.isSame(oe,"month"))),B.isSame(X)&&(L.type="today"),L.text=V,L.disabled=((A=r.disabledDate)==null?void 0:A.call(r,X.toDate()))||!1}}return R}),b=()=>{var T;(T=u.value)==null||T.focus()},k=T=>{const A={},R=r.date.year(),B=new Date,I=T.text;return A.disabled=r.disabledDate?o(R,I,s.value).every(r.disabledDate):!1,A.current=ks(r.parsedValue).findIndex(N=>cn.isDayjs(N)&&N.year()===R&&N.month()===I)>=0,A.today=B.getFullYear()===R&&B.getMonth()===I,T.inRange&&(A["in-range"]=!0,T.start&&(A["start-date"]=!0),T.end&&(A["end-date"]=!0)),A},C=T=>{const A=r.date.year(),R=T.text;return ks(r.date).findIndex(B=>B.year()===A&&B.month()===R)>=0},P=T=>{var A;if(!r.rangeState.selecting)return;let R=T.target;if(R.tagName==="SPAN"&&(R=(A=R.parentNode)==null?void 0:A.parentNode),R.tagName==="DIV"&&(R=R.parentNode),R.tagName!=="TD")return;const B=R.parentNode.rowIndex,I=R.cellIndex;O.value[B][I].disabled||(B!==m.value||I!==y.value)&&(m.value=B,y.value=I,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(B*4+I)}))},$=T=>{var A;const R=(A=T.target)==null?void 0:A.closest("td");if((R==null?void 0:R.tagName)!=="TD"||Gs(R,"disabled"))return;const B=R.cellIndex,N=R.parentNode.rowIndex*4+B,j=r.date.startOf("year").month(N);if(r.selectionMode==="months"){if(T.type==="keydown"){n("pick",ks(r.parsedValue),!1);return}const L=r.date.startOf("month").month(N),V=Gs(R,"current")?ks(r.parsedValue).filter(X=>Number(X)!==Number(L)):ks(r.parsedValue).concat([cn(L)]);n("pick",V)}else r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&j>=r.minDate?n("pick",{minDate:r.minDate,maxDate:j}):n("pick",{minDate:j,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:j,maxDate:null}),n("select",!0)):n("pick",N)};return at(()=>r.date,async()=>{var T,A;(T=l.value)!=null&&T.contains(document.activeElement)&&(await Wt(),(A=u.value)==null||A.focus())}),t({focus:b}),(T,A)=>(U(),ce("table",{role:"grid","aria-label":v(a)("el.datepicker.monthTablePrompt"),class:G(v(i).b()),onClick:$,onMousemove:P},[ge("tbody",{ref_key:"tbodyRef",ref:l},[(U(!0),ce(Pt,null,_n(v(O),(R,B)=>(U(),ce("tr",{key:B},[(U(!0),ce(Pt,null,_n(R,(I,N)=>(U(),ce("td",{key:N,ref_for:!0,ref:j=>C(I)&&(u.value=j),class:G(k(I)),"aria-selected":`${C(I)}`,"aria-label":v(a)(`el.datepicker.month${+I.text+1}`),tabindex:C(I)?0:-1,onKeydown:[Qr(nn($,["prevent","stop"]),["space"]),Qr(nn($,["prevent","stop"]),["enter"])]},[ne(v(h3),{cell:{...I,renderText:v(a)("el.datepicker.months."+f.value[I.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var fR=gt(OMe,[["__file","basic-month-table.vue"]]);const wMe=pt({...u3,selectionMode:f3("year")}),SMe=xe({__name:"basic-year-table",props:wMe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(T,A)=>{const R=cn(String(T)).locale(A).startOf("year"),I=R.endOf("year").dayOfYear();return qh(I).map(N=>R.add(N,"day").toDate())},i=ut("year-table"),{t:a,lang:s}=ir(),l=ee(),u=ee(),f=W(()=>Math.floor(r.date.year()/10)*10),h=ee([[],[],[]]),m=ee(),y=ee(),O=W(()=>{var T;const A=h.value,R=cn().locale(s.value).startOf("year");for(let B=0;B<3;B++){const I=A[B];for(let N=0;N<4&&!(B*4+N>=10);N++){let j=I[N];j||(j={row:B,column:N,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1}),j.type="normal";const L=B*4+N+f.value,V=cn().year(L),X=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;j.inRange=!!(r.minDate&&V.isSameOrAfter(r.minDate,"year")&&X&&V.isSameOrBefore(X,"year"))||!!(r.minDate&&V.isSameOrBefore(r.minDate,"year")&&X&&V.isSameOrAfter(X,"year")),(T=r.minDate)!=null&&T.isSameOrAfter(X)?(j.start=!!(X&&V.isSame(X,"year")),j.end=!!(r.minDate&&V.isSame(r.minDate,"year"))):(j.start=!!(r.minDate&&V.isSame(r.minDate,"year")),j.end=!!(X&&V.isSame(X,"year"))),R.isSame(V)&&(j.type="today"),j.text=L;const K=V.toDate();j.disabled=r.disabledDate&&r.disabledDate(K)||!1,I[N]=j}}return A}),b=()=>{var T;(T=u.value)==null||T.focus()},k=T=>{const A={},R=cn().locale(s.value),B=T.text;return A.disabled=r.disabledDate?o(B,s.value).every(r.disabledDate):!1,A.today=R.year()===B,A.current=ks(r.parsedValue).findIndex(I=>I.year()===B)>=0,T.inRange&&(A["in-range"]=!0,T.start&&(A["start-date"]=!0),T.end&&(A["end-date"]=!0)),A},C=T=>{const A=T.text;return ks(r.date).findIndex(R=>R.year()===A)>=0},P=T=>{var A;const R=(A=T.target)==null?void 0:A.closest("td");if(!R||!R.textContent||Gs(R,"disabled"))return;const B=R.cellIndex,N=R.parentNode.rowIndex*4+B+f.value,j=cn().year(N);if(r.selectionMode==="range")r.rangeState.selecting?(r.minDate&&j>=r.minDate?n("pick",{minDate:r.minDate,maxDate:j}):n("pick",{minDate:j,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:j,maxDate:null}),n("select",!0));else if(r.selectionMode==="years"){if(T.type==="keydown"){n("pick",ks(r.parsedValue),!1);return}const L=Gs(R,"current")?ks(r.parsedValue).filter(V=>(V==null?void 0:V.year())!==N):ks(r.parsedValue).concat([j]);n("pick",L)}else n("pick",N)},$=T=>{var A;if(!r.rangeState.selecting)return;const R=(A=T.target)==null?void 0:A.closest("td");if(!R)return;const B=R.parentNode.rowIndex,I=R.cellIndex;O.value[B][I].disabled||(B!==m.value||I!==y.value)&&(m.value=B,y.value=I,n("changerange",{selecting:!0,endDate:cn().year(f.value).add(B*4+I,"year")}))};return at(()=>r.date,async()=>{var T,A;(T=l.value)!=null&&T.contains(document.activeElement)&&(await Wt(),(A=u.value)==null||A.focus())}),t({focus:b}),(T,A)=>(U(),ce("table",{role:"grid","aria-label":v(a)("el.datepicker.yearTablePrompt"),class:G(v(i).b()),onClick:P,onMousemove:$},[ge("tbody",{ref_key:"tbodyRef",ref:l},[(U(!0),ce(Pt,null,_n(v(O),(R,B)=>(U(),ce("tr",{key:B},[(U(!0),ce(Pt,null,_n(R,(I,N)=>(U(),ce("td",{key:`${B}_${N}`,ref_for:!0,ref:j=>C(I)&&(u.value=j),class:G(["available",k(I)]),"aria-selected":C(I),"aria-label":String(I.text),tabindex:C(I)?0:-1,onKeydown:[Qr(nn(P,["prevent","stop"]),["space"]),Qr(nn(P,["prevent","stop"]),["enter"])]},[ne(v(h3),{cell:I},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var dR=gt(SMe,[["__file","basic-year-table.vue"]]);const xMe=xe({__name:"panel-date-pick",props:dMe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(me,Ve,ke)=>!0,o=ut("picker-panel"),i=ut("date-picker"),a=Em(),s=Ui(),{t:l,lang:u}=ir(),f=$t("EP_PICKER_BASE"),h=$t(rE),{shortcuts:m,disabledDate:y,cellClassName:O,defaultTime:b}=f.props,k=Tr(f.props,"defaultValue"),C=ee(),P=ee(cn().locale(u.value)),$=ee(!1);let T=!1;const A=W(()=>cn(b).locale(u.value)),R=W(()=>P.value.month()),B=W(()=>P.value.year()),I=ee([]),N=ee(null),j=ee(null),L=me=>I.value.length>0?r(me,I.value,n.format||"HH:mm:ss"):!0,V=me=>b&&!be.value&&!$.value&&!T?A.value.year(me.year()).month(me.month()).date(me.date()):Ae.value?me.millisecond(0):me.startOf("day"),X=(me,...Ve)=>{if(!me)t("pick",me,...Ve);else if(Et(me)){const ke=me.map(V);t("pick",ke,...Ve)}else t("pick",V(me),...Ve);N.value=null,j.value=null,$.value=!1,T=!1},oe=async(me,Ve)=>{if(q.value==="date"){me=me;let ke=n.parsedValue?n.parsedValue.year(me.year()).month(me.month()).date(me.date()):me;L(ke)||(ke=I.value[0][0].year(me.year()).month(me.month()).date(me.date())),P.value=ke,X(ke,Ae.value||Ve),n.type==="datetime"&&(await Wt(),kt())}else q.value==="week"?X(me.date):q.value==="dates"&&X(me,!0)},K=me=>{const Ve=me?"add":"subtract";P.value=P.value[Ve](1,"month"),Ye("month")},Z=me=>{const Ve=P.value,ke=me?"add":"subtract";P.value=re.value==="year"?Ve[ke](10,"year"):Ve[ke](1,"year"),Ye("year")},re=ee("date"),J=W(()=>{const me=l("el.datepicker.year");if(re.value==="year"){const Ve=Math.floor(B.value/10)*10;return me?`${Ve} ${me} - ${Ve+9} ${me}`:`${Ve} - ${Ve+9}`}return`${B.value} ${me}`}),z=me=>{const Ve=rn(me.value)?me.value():me.value;if(Ve){T=!0,X(cn(Ve).locale(u.value));return}me.onClick&&me.onClick({attrs:a,slots:s,emit:t})},q=W(()=>{const{type:me}=n;return["week","month","months","year","years","dates"].includes(me)?me:"date"}),ue=W(()=>q.value==="dates"||q.value==="months"||q.value==="years"),he=W(()=>q.value==="date"?re.value:q.value),le=W(()=>!!m.length),ze=async(me,Ve)=>{q.value==="month"?(P.value=P.value.startOf("month").month(me),X(P.value,!1)):q.value==="months"?X(me,Ve!=null?Ve:!0):(P.value=P.value.startOf("month").month(me),re.value="date",["month","year","date","week"].includes(q.value)&&(X(P.value,!0),await Wt(),kt())),Ye("month")},Ee=async(me,Ve)=>{q.value==="year"?(P.value=P.value.startOf("year").year(me),X(P.value,!1)):q.value==="years"?X(me,Ve!=null?Ve:!0):(P.value=P.value.year(me),re.value="month",["month","year","date","week"].includes(q.value)&&(X(P.value,!0),await Wt(),kt())),Ye("year")},Be=async me=>{re.value=me,await Wt(),kt()},Ae=W(()=>n.type==="datetime"||n.type==="datetimerange"),_e=W(()=>{const me=Ae.value||q.value==="dates",Ve=q.value==="years",ke=q.value==="months",Ze=re.value==="date",rt=re.value==="year",zt=re.value==="month";return me&&Ze||Ve&&rt||ke&&zt}),ve=W(()=>y?n.parsedValue?Et(n.parsedValue)?y(n.parsedValue[0].toDate()):y(n.parsedValue.toDate()):!0:!1),Ne=()=>{if(ue.value)X(n.parsedValue);else{let me=n.parsedValue;if(!me){const Ve=cn(b).locale(u.value),ke=Qt();me=Ve.year(ke.year()).month(ke.month()).date(ke.date())}P.value=me,X(me)}},Se=W(()=>y?y(cn().locale(u.value).toDate()):!1),fe=()=>{const Ve=cn().locale(u.value).toDate();$.value=!0,(!y||!y(Ve))&&L(Ve)&&(P.value=cn().locale(u.value),X(P.value))},ye=W(()=>n.timeFormat||HU(n.format)),He=W(()=>n.dateFormat||UU(n.format)),be=W(()=>{if(j.value)return j.value;if(!(!n.parsedValue&&!k.value))return(n.parsedValue||P.value).format(ye.value)}),Ie=W(()=>{if(N.value)return N.value;if(!(!n.parsedValue&&!k.value))return(n.parsedValue||P.value).format(He.value)}),De=ee(!1),Me=()=>{De.value=!0},qe=()=>{De.value=!1},Oe=me=>({hour:me.hour(),minute:me.minute(),second:me.second(),year:me.year(),month:me.month(),date:me.date()}),Je=(me,Ve,ke)=>{const{hour:Ze,minute:rt,second:zt}=Oe(me),Fn=n.parsedValue?n.parsedValue.hour(Ze).minute(rt).second(zt):me;P.value=Fn,X(P.value,!0),ke||(De.value=Ve)},lt=me=>{const Ve=cn(me,ye.value).locale(u.value);if(Ve.isValid()&&L(Ve)){const{year:ke,month:Ze,date:rt}=Oe(P.value);P.value=Ve.year(ke).month(Ze).date(rt),j.value=null,De.value=!1,X(P.value,!0)}},Ke=me=>{const Ve=cn(me,He.value).locale(u.value);if(Ve.isValid()){if(y&&y(Ve.toDate()))return;const{hour:ke,minute:Ze,second:rt}=Oe(P.value);P.value=Ve.hour(ke).minute(Ze).second(rt),N.value=null,X(P.value,!0)}},et=me=>cn.isDayjs(me)&&me.isValid()&&(y?!y(me.toDate()):!0),bt=me=>Et(me)?me.map(Ve=>Ve.format(n.format)):me.format(n.format),Ot=me=>cn(me,n.format).locale(u.value),Qt=()=>{const me=cn(k.value).locale(u.value);if(!k.value){const Ve=A.value;return cn().hour(Ve.hour()).minute(Ve.minute()).second(Ve.second()).locale(u.value)}return me},kt=async()=>{var me;["week","month","year","date"].includes(q.value)&&((me=C.value)==null||me.focus(),q.value==="week"&&Ce(Yt.down))},an=me=>{const{code:Ve}=me;[Yt.up,Yt.down,Yt.left,Yt.right,Yt.home,Yt.end,Yt.pageUp,Yt.pageDown].includes(Ve)&&(Ce(Ve),me.stopPropagation(),me.preventDefault()),[Yt.enter,Yt.space,Yt.numpadEnter].includes(Ve)&&N.value===null&&j.value===null&&(me.preventDefault(),X(P.value,!1))},Ce=me=>{var Ve;const{up:ke,down:Ze,left:rt,right:zt,home:Fn,end:ot,pageUp:Bt,pageDown:Sn}=Yt,It={year:{[ke]:-4,[Ze]:4,[rt]:-1,[zt]:1,offset:(Xt,xn)=>Xt.setFullYear(Xt.getFullYear()+xn)},month:{[ke]:-4,[Ze]:4,[rt]:-1,[zt]:1,offset:(Xt,xn)=>Xt.setMonth(Xt.getMonth()+xn)},week:{[ke]:-1,[Ze]:1,[rt]:-1,[zt]:1,offset:(Xt,xn)=>Xt.setDate(Xt.getDate()+xn*7)},date:{[ke]:-7,[Ze]:7,[rt]:-1,[zt]:1,[Fn]:Xt=>-Xt.getDay(),[ot]:Xt=>-Xt.getDay()+6,[Bt]:Xt=>-new Date(Xt.getFullYear(),Xt.getMonth(),0).getDate(),[Sn]:Xt=>new Date(Xt.getFullYear(),Xt.getMonth()+1,0).getDate(),offset:(Xt,xn)=>Xt.setDate(Xt.getDate()+xn)}},qt=P.value.toDate();for(;Math.abs(P.value.diff(qt,"year",!0))<1;){const Xt=It[he.value];if(!Xt)return;if(Xt.offset(qt,rn(Xt[me])?Xt[me](qt):(Ve=Xt[me])!=null?Ve:0),y&&y(qt))break;const xn=cn(qt).locale(u.value);P.value=xn,t("pick",xn,!0);break}},Ye=me=>{t("panel-change",P.value.toDate(),me,re.value)};return at(()=>q.value,me=>{if(["month","year"].includes(me)){re.value=me;return}else if(me==="years"){re.value="year";return}else if(me==="months"){re.value="month";return}re.value="date"},{immediate:!0}),at(()=>re.value,()=>{h==null||h.updatePopper()}),at(()=>k.value,me=>{me&&(P.value=Qt())},{immediate:!0}),at(()=>n.parsedValue,me=>{if(me){if(ue.value||Array.isArray(me))return;P.value=me}else P.value=Qt()},{immediate:!0}),t("set-picker-option",["isValidValue",et]),t("set-picker-option",["formatToString",bt]),t("set-picker-option",["parseUserInput",Ot]),t("set-picker-option",["handleFocusPicker",kt]),(me,Ve)=>(U(),ce("div",{class:G([v(o).b(),v(i).b(),{"has-sidebar":me.$slots.sidebar||v(le),"has-time":v(Ae)}])},[ge("div",{class:G(v(o).e("body-wrapper"))},[Xe(me.$slots,"sidebar",{class:G(v(o).e("sidebar"))}),v(le)?(U(),ce("div",{key:0,class:G(v(o).e("sidebar"))},[(U(!0),ce(Pt,null,_n(v(m),(ke,Ze)=>(U(),ce("button",{key:Ze,type:"button",class:G(v(o).e("shortcut")),onClick:rt=>z(ke)},ct(ke.text),11,["onClick"]))),128))],2)):Fe("v-if",!0),ge("div",{class:G(v(o).e("body"))},[v(Ae)?(U(),ce("div",{key:0,class:G(v(i).e("time-header"))},[ge("span",{class:G(v(i).e("editor-wrap"))},[ne(v(ri),{placeholder:v(l)("el.datepicker.selectDate"),"model-value":v(Ie),size:"small","validate-event":!1,onInput:ke=>N.value=ke,onChange:Ke},null,8,["placeholder","model-value","onInput"])],2),bn((U(),ce("span",{class:G(v(i).e("editor-wrap"))},[ne(v(ri),{placeholder:v(l)("el.datepicker.selectTime"),"model-value":v(be),size:"small","validate-event":!1,onFocus:Me,onInput:ke=>j.value=ke,onChange:lt},null,8,["placeholder","model-value","onInput"]),ne(v(fC),{visible:De.value,format:v(ye),"parsed-value":P.value,onPick:Je},null,8,["visible","format","parsed-value"])],2)),[[v(Sd),qe]])],2)):Fe("v-if",!0),bn(ge("div",{class:G([v(i).e("header"),(re.value==="year"||re.value==="month")&&v(i).e("header--bordered")])},[ge("span",{class:G(v(i).e("prev-btn"))},[ge("button",{type:"button","aria-label":v(l)("el.datepicker.prevYear"),class:G(["d-arrow-left",v(o).e("icon-btn")]),onClick:ke=>Z(!1)},[Xe(me.$slots,"prev-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(lp))]),_:1})])],10,["aria-label","onClick"]),bn(ge("button",{type:"button","aria-label":v(l)("el.datepicker.prevMonth"),class:G([v(o).e("icon-btn"),"arrow-left"]),onClick:ke=>K(!1)},[Xe(me.$slots,"prev-month",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(sp))]),_:1})])],10,["aria-label","onClick"]),[[gr,re.value==="date"]])],2),ge("span",{role:"button",class:G(v(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Qr(ke=>Be("year"),["enter"]),onClick:ke=>Be("year")},ct(v(J)),43,["onKeydown","onClick"]),bn(ge("span",{role:"button","aria-live":"polite",tabindex:"0",class:G([v(i).e("header-label"),{active:re.value==="month"}]),onKeydown:Qr(ke=>Be("month"),["enter"]),onClick:ke=>Be("month")},ct(v(l)(`el.datepicker.month${v(R)+1}`)),43,["onKeydown","onClick"]),[[gr,re.value==="date"]]),ge("span",{class:G(v(i).e("next-btn"))},[bn(ge("button",{type:"button","aria-label":v(l)("el.datepicker.nextMonth"),class:G([v(o).e("icon-btn"),"arrow-right"]),onClick:ke=>K(!0)},[Xe(me.$slots,"next-month",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(Es))]),_:1})])],10,["aria-label","onClick"]),[[gr,re.value==="date"]]),ge("button",{type:"button","aria-label":v(l)("el.datepicker.nextYear"),class:G([v(o).e("icon-btn"),"d-arrow-right"]),onClick:ke=>Z(!0)},[Xe(me.$slots,"next-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(up))]),_:1})])],10,["aria-label","onClick"])],2)],2),[[gr,re.value!=="time"]]),ge("div",{class:G(v(o).e("content")),onKeydown:an},[re.value==="date"?(U(),Qe(cR,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":v(q),date:P.value,"parsed-value":me.parsedValue,"disabled-date":v(y),"cell-class-name":v(O),onPick:oe},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):Fe("v-if",!0),re.value==="year"?(U(),Qe(dR,{key:1,ref_key:"currentViewRef",ref:C,"selection-mode":v(q),date:P.value,"disabled-date":v(y),"parsed-value":me.parsedValue,onPick:Ee},null,8,["selection-mode","date","disabled-date","parsed-value"])):Fe("v-if",!0),re.value==="month"?(U(),Qe(fR,{key:2,ref_key:"currentViewRef",ref:C,"selection-mode":v(q),date:P.value,"parsed-value":me.parsedValue,"disabled-date":v(y),onPick:ze},null,8,["selection-mode","date","parsed-value","disabled-date"])):Fe("v-if",!0)],34)],2)],2),bn(ge("div",{class:G(v(o).e("footer"))},[bn(ne(v(io),{text:"",size:"small",class:G(v(o).e("link-btn")),disabled:v(Se),onClick:fe},{default:se(()=>[xt(ct(v(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[gr,!v(ue)]]),ne(v(io),{plain:"",size:"small",class:G(v(o).e("link-btn")),disabled:v(ve),onClick:Ne},{default:se(()=>[xt(ct(v(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[gr,v(_e)]])],2))}});var kMe=gt(xMe,[["__file","panel-date-pick.vue"]]);const CMe=pt({...FH,...c3,visible:Boolean}),zH=e=>{const{emit:t}=En(),n=Em(),r=Ui();return i=>{const a=rn(i.value)?i.value():i.value;if(a){t("pick",[cn(a[0]).locale(e.value),cn(a[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},QH=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:o,onParsedValueChanged:i})=>{const{emit:a}=En(),{pickerNs:s}=$t(iE),l=ut("date-range-picker"),{t:u,lang:f}=ir(),h=zH(f),m=ee(),y=ee(),O=ee({endDate:null,selecting:!1}),b=T=>{O.value=T},k=(T=!1)=>{const A=v(m),R=v(y);e0([A,R])&&a("pick",[A,R],T)},C=T=>{O.value.selecting=T,T||(O.value.endDate=null)},P=T=>{if(Et(T)&&T.length===2){const[A,R]=T;m.value=A,n.value=A,y.value=R,i(v(m),v(y))}else $()},$=()=>{const[T,A]=d3(v(t),{lang:v(f),unit:o,unlinkPanels:e.unlinkPanels});m.value=void 0,y.value=void 0,n.value=T,r.value=A};return at(t,T=>{T&&$()},{immediate:!0}),at(()=>e.parsedValue,P,{immediate:!0}),{minDate:m,maxDate:y,rangeState:O,lang:f,ppNs:s,drpNs:l,handleChangeRange:b,handleRangeConfirm:k,handleShortcutClick:h,onSelect:C,onReset:P,t:u}},Nx="month",EMe=xe({__name:"panel-date-range",props:CMe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=$t("EP_PICKER_BASE"),{disabledDate:o,cellClassName:i,defaultTime:a,clearable:s}=r.props,l=Tr(r.props,"format"),u=Tr(r.props,"shortcuts"),f=Tr(r.props,"defaultValue"),{lang:h}=ir(),m=ee(cn().locale(h.value)),y=ee(cn().locale(h.value).add(1,Nx)),{minDate:O,maxDate:b,rangeState:k,ppNs:C,drpNs:P,handleChangeRange:$,handleRangeConfirm:T,handleShortcutClick:A,onSelect:R,onReset:B,t:I}=QH(n,{defaultValue:f,leftDate:m,rightDate:y,unit:Nx,onParsedValueChanged:Ve});at(()=>n.visible,ke=>{!ke&&k.value.selecting&&(B(n.parsedValue),R(!1))});const N=ee({min:null,max:null}),j=ee({min:null,max:null}),L=W(()=>`${m.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${m.value.month()+1}`)}`),V=W(()=>`${y.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${y.value.month()+1}`)}`),X=W(()=>m.value.year()),oe=W(()=>m.value.month()),K=W(()=>y.value.year()),Z=W(()=>y.value.month()),re=W(()=>!!u.value.length),J=W(()=>N.value.min!==null?N.value.min:O.value?O.value.format(le.value):""),z=W(()=>N.value.max!==null?N.value.max:b.value||O.value?(b.value||O.value).format(le.value):""),q=W(()=>j.value.min!==null?j.value.min:O.value?O.value.format(he.value):""),ue=W(()=>j.value.max!==null?j.value.max:b.value||O.value?(b.value||O.value).format(he.value):""),he=W(()=>n.timeFormat||HU(l.value)),le=W(()=>n.dateFormat||UU(l.value)),ze=ke=>e0(ke)&&(o?!o(ke[0].toDate())&&!o(ke[1].toDate()):!0),Ee=()=>{m.value=m.value.subtract(1,"year"),n.unlinkPanels||(y.value=m.value.add(1,"month")),ye("year")},Be=()=>{m.value=m.value.subtract(1,"month"),n.unlinkPanels||(y.value=m.value.add(1,"month")),ye("month")},Ae=()=>{n.unlinkPanels?y.value=y.value.add(1,"year"):(m.value=m.value.add(1,"year"),y.value=m.value.add(1,"month")),ye("year")},_e=()=>{n.unlinkPanels?y.value=y.value.add(1,"month"):(m.value=m.value.add(1,"month"),y.value=m.value.add(1,"month")),ye("month")},ve=()=>{m.value=m.value.add(1,"year"),ye("year")},Ne=()=>{m.value=m.value.add(1,"month"),ye("month")},Se=()=>{y.value=y.value.subtract(1,"year"),ye("year")},fe=()=>{y.value=y.value.subtract(1,"month"),ye("month")},ye=ke=>{t("panel-change",[m.value.toDate(),y.value.toDate()],ke)},He=W(()=>{const ke=(oe.value+1)%12,Ze=oe.value+1>=12?1:0;return n.unlinkPanels&&new Date(X.value+Ze,ke)<new Date(K.value,Z.value)}),be=W(()=>n.unlinkPanels&&K.value*12+Z.value-(X.value*12+oe.value+1)>=12),Ie=W(()=>!(O.value&&b.value&&!k.value.selecting&&e0([O.value,b.value]))),De=W(()=>n.type==="datetime"||n.type==="datetimerange"),Me=(ke,Ze)=>{if(!!ke)return a?cn(a[Ze]||a).locale(h.value).year(ke.year()).month(ke.month()).date(ke.date()):ke},qe=(ke,Ze=!0)=>{const rt=ke.minDate,zt=ke.maxDate,Fn=Me(rt,0),ot=Me(zt,1);b.value===ot&&O.value===Fn||(t("calendar-change",[rt.toDate(),zt&&zt.toDate()]),b.value=ot,O.value=Fn,!(!Ze||De.value)&&T())},Oe=ee(!1),Je=ee(!1),lt=()=>{Oe.value=!1},Ke=()=>{Je.value=!1},et=(ke,Ze)=>{N.value[Ze]=ke;const rt=cn(ke,le.value).locale(h.value);if(rt.isValid()){if(o&&o(rt.toDate()))return;Ze==="min"?(m.value=rt,O.value=(O.value||m.value).year(rt.year()).month(rt.month()).date(rt.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(O.value))&&(y.value=rt.add(1,"month"),b.value=O.value.add(1,"month"))):(y.value=rt,b.value=(b.value||y.value).year(rt.year()).month(rt.month()).date(rt.date()),!n.unlinkPanels&&(!O.value||O.value.isAfter(b.value))&&(m.value=rt.subtract(1,"month"),O.value=b.value.subtract(1,"month")))}},bt=(ke,Ze)=>{N.value[Ze]=null},Ot=(ke,Ze)=>{j.value[Ze]=ke;const rt=cn(ke,he.value).locale(h.value);rt.isValid()&&(Ze==="min"?(Oe.value=!0,O.value=(O.value||m.value).hour(rt.hour()).minute(rt.minute()).second(rt.second())):(Je.value=!0,b.value=(b.value||y.value).hour(rt.hour()).minute(rt.minute()).second(rt.second()),y.value=b.value))},Qt=(ke,Ze)=>{j.value[Ze]=null,Ze==="min"?(m.value=O.value,Oe.value=!1,(!b.value||b.value.isBefore(O.value))&&(b.value=O.value)):(y.value=b.value,Je.value=!1,b.value&&b.value.isBefore(O.value)&&(O.value=b.value))},kt=(ke,Ze,rt)=>{j.value.min||(ke&&(m.value=ke,O.value=(O.value||m.value).hour(ke.hour()).minute(ke.minute()).second(ke.second())),rt||(Oe.value=Ze),(!b.value||b.value.isBefore(O.value))&&(b.value=O.value,y.value=ke))},an=(ke,Ze,rt)=>{j.value.max||(ke&&(y.value=ke,b.value=(b.value||y.value).hour(ke.hour()).minute(ke.minute()).second(ke.second())),rt||(Je.value=Ze),b.value&&b.value.isBefore(O.value)&&(O.value=b.value))},Ce=()=>{m.value=d3(v(f),{lang:v(h),unit:"month",unlinkPanels:n.unlinkPanels})[0],y.value=m.value.add(1,"month"),b.value=void 0,O.value=void 0,t("pick",null)},Ye=ke=>Et(ke)?ke.map(Ze=>Ze.format(l.value)):ke.format(l.value),me=ke=>Et(ke)?ke.map(Ze=>cn(Ze,l.value).locale(h.value)):cn(ke,l.value).locale(h.value);function Ve(ke,Ze){if(n.unlinkPanels&&Ze){const rt=(ke==null?void 0:ke.year())||0,zt=(ke==null?void 0:ke.month())||0,Fn=Ze.year(),ot=Ze.month();y.value=rt===Fn&&zt===ot?Ze.add(1,Nx):Ze}else y.value=m.value.add(1,Nx),Ze&&(y.value=y.value.hour(Ze.hour()).minute(Ze.minute()).second(Ze.second()))}return t("set-picker-option",["isValidValue",ze]),t("set-picker-option",["parseUserInput",me]),t("set-picker-option",["formatToString",Ye]),t("set-picker-option",["handleClear",Ce]),(ke,Ze)=>(U(),ce("div",{class:G([v(C).b(),v(P).b(),{"has-sidebar":ke.$slots.sidebar||v(re),"has-time":v(De)}])},[ge("div",{class:G(v(C).e("body-wrapper"))},[Xe(ke.$slots,"sidebar",{class:G(v(C).e("sidebar"))}),v(re)?(U(),ce("div",{key:0,class:G(v(C).e("sidebar"))},[(U(!0),ce(Pt,null,_n(v(u),(rt,zt)=>(U(),ce("button",{key:zt,type:"button",class:G(v(C).e("shortcut")),onClick:Fn=>v(A)(rt)},ct(rt.text),11,["onClick"]))),128))],2)):Fe("v-if",!0),ge("div",{class:G(v(C).e("body"))},[v(De)?(U(),ce("div",{key:0,class:G(v(P).e("time-header"))},[ge("span",{class:G(v(P).e("editors-wrap"))},[ge("span",{class:G(v(P).e("time-picker-wrap"))},[ne(v(ri),{size:"small",disabled:v(k).selecting,placeholder:v(I)("el.datepicker.startDate"),class:G(v(P).e("editor")),"model-value":v(J),"validate-event":!1,onInput:rt=>et(rt,"min"),onChange:rt=>bt(rt,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),bn((U(),ce("span",{class:G(v(P).e("time-picker-wrap"))},[ne(v(ri),{size:"small",class:G(v(P).e("editor")),disabled:v(k).selecting,placeholder:v(I)("el.datepicker.startTime"),"model-value":v(q),"validate-event":!1,onFocus:rt=>Oe.value=!0,onInput:rt=>Ot(rt,"min"),onChange:rt=>Qt(rt,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),ne(v(fC),{visible:Oe.value,format:v(he),"datetime-role":"start","parsed-value":m.value,onPick:kt},null,8,["visible","format","parsed-value"])],2)),[[v(Sd),lt]])],2),ge("span",null,[ne(v(Lt),null,{default:se(()=>[ne(v(Es))]),_:1})]),ge("span",{class:G([v(P).e("editors-wrap"),"is-right"])},[ge("span",{class:G(v(P).e("time-picker-wrap"))},[ne(v(ri),{size:"small",class:G(v(P).e("editor")),disabled:v(k).selecting,placeholder:v(I)("el.datepicker.endDate"),"model-value":v(z),readonly:!v(O),"validate-event":!1,onInput:rt=>et(rt,"max"),onChange:rt=>bt(rt,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),bn((U(),ce("span",{class:G(v(P).e("time-picker-wrap"))},[ne(v(ri),{size:"small",class:G(v(P).e("editor")),disabled:v(k).selecting,placeholder:v(I)("el.datepicker.endTime"),"model-value":v(ue),readonly:!v(O),"validate-event":!1,onFocus:rt=>v(O)&&(Je.value=!0),onInput:rt=>Ot(rt,"max"),onChange:rt=>Qt(rt,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),ne(v(fC),{"datetime-role":"end",visible:Je.value,format:v(he),"parsed-value":y.value,onPick:an},null,8,["visible","format","parsed-value"])],2)),[[v(Sd),Ke]])],2)],2)):Fe("v-if",!0),ge("div",{class:G([[v(C).e("content"),v(P).e("content")],"is-left"])},[ge("div",{class:G(v(P).e("header"))},[ge("button",{type:"button",class:G([v(C).e("icon-btn"),"d-arrow-left"]),"aria-label":v(I)("el.datepicker.prevYear"),onClick:Ee},[Xe(ke.$slots,"prev-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(lp))]),_:1})])],10,["aria-label"]),ge("button",{type:"button",class:G([v(C).e("icon-btn"),"arrow-left"]),"aria-label":v(I)("el.datepicker.prevMonth"),onClick:Be},[Xe(ke.$slots,"prev-month",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(sp))]),_:1})])],10,["aria-label"]),ke.unlinkPanels?(U(),ce("button",{key:0,type:"button",disabled:!v(be),class:G([[v(C).e("icon-btn"),{"is-disabled":!v(be)}],"d-arrow-right"]),"aria-label":v(I)("el.datepicker.nextYear"),onClick:ve},[Xe(ke.$slots,"next-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(up))]),_:1})])],10,["disabled","aria-label"])):Fe("v-if",!0),ke.unlinkPanels?(U(),ce("button",{key:1,type:"button",disabled:!v(He),class:G([[v(C).e("icon-btn"),{"is-disabled":!v(He)}],"arrow-right"]),"aria-label":v(I)("el.datepicker.nextMonth"),onClick:Ne},[Xe(ke.$slots,"next-month",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(Es))]),_:1})])],10,["disabled","aria-label"])):Fe("v-if",!0),ge("div",null,ct(v(L)),1)],2),ne(cR,{"selection-mode":"range",date:m.value,"min-date":v(O),"max-date":v(b),"range-state":v(k),"disabled-date":v(o),"cell-class-name":v(i),onChangerange:v($),onPick:qe,onSelect:v(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),ge("div",{class:G([[v(C).e("content"),v(P).e("content")],"is-right"])},[ge("div",{class:G(v(P).e("header"))},[ke.unlinkPanels?(U(),ce("button",{key:0,type:"button",disabled:!v(be),class:G([[v(C).e("icon-btn"),{"is-disabled":!v(be)}],"d-arrow-left"]),"aria-label":v(I)("el.datepicker.prevYear"),onClick:Se},[Xe(ke.$slots,"prev-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(lp))]),_:1})])],10,["disabled","aria-label"])):Fe("v-if",!0),ke.unlinkPanels?(U(),ce("button",{key:1,type:"button",disabled:!v(He),class:G([[v(C).e("icon-btn"),{"is-disabled":!v(He)}],"arrow-left"]),"aria-label":v(I)("el.datepicker.prevMonth"),onClick:fe},[Xe(ke.$slots,"prev-month",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(sp))]),_:1})])],10,["disabled","aria-label"])):Fe("v-if",!0),ge("button",{type:"button","aria-label":v(I)("el.datepicker.nextYear"),class:G([v(C).e("icon-btn"),"d-arrow-right"]),onClick:Ae},[Xe(ke.$slots,"next-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(up))]),_:1})])],10,["aria-label"]),ge("button",{type:"button",class:G([v(C).e("icon-btn"),"arrow-right"]),"aria-label":v(I)("el.datepicker.nextMonth"),onClick:_e},[Xe(ke.$slots,"next-month",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(Es))]),_:1})])],10,["aria-label"]),ge("div",null,ct(v(V)),1)],2),ne(cR,{"selection-mode":"range",date:y.value,"min-date":v(O),"max-date":v(b),"range-state":v(k),"disabled-date":v(o),"cell-class-name":v(i),onChangerange:v($),onPick:qe,onSelect:v(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),v(De)?(U(),ce("div",{key:0,class:G(v(C).e("footer"))},[v(s)?(U(),Qe(v(io),{key:0,text:"",size:"small",class:G(v(C).e("link-btn")),onClick:Ce},{default:se(()=>[xt(ct(v(I)("el.datepicker.clear")),1)]),_:1},8,["class"])):Fe("v-if",!0),ne(v(io),{plain:"",size:"small",class:G(v(C).e("link-btn")),disabled:v(Ie),onClick:rt=>v(T)(!1)},{default:se(()=>[xt(ct(v(I)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])],2)):Fe("v-if",!0)],2))}});var TMe=gt(EMe,[["__file","panel-date-range.vue"]]);const PMe=pt({...c3}),$Me=["pick","set-picker-option","calendar-change"],AMe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=ir(),o=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=W(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=W(()=>`${n.value.year()} ${r("el.datepicker.year")}`),f=W(()=>t.value.year()),h=W(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:o,rightNextYear:i,leftNextYear:a,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:f,rightYear:h}},Ix="year",MMe=xe({name:"DatePickerMonthRange"}),RMe=xe({...MMe,props:PMe,emits:$Me,setup(e,{emit:t}){const n=e,{lang:r}=ir(),o=$t("EP_PICKER_BASE"),{shortcuts:i,disabledDate:a}=o.props,s=Tr(o.props,"format"),l=Tr(o.props,"defaultValue"),u=ee(cn().locale(r.value)),f=ee(cn().locale(r.value).add(1,Ix)),{minDate:h,maxDate:m,rangeState:y,ppNs:O,drpNs:b,handleChangeRange:k,handleRangeConfirm:C,handleShortcutClick:P,onSelect:$}=QH(n,{defaultValue:l,leftDate:u,rightDate:f,unit:Ix,onParsedValueChanged:J}),T=W(()=>!!i.length),{leftPrevYear:A,rightNextYear:R,leftNextYear:B,rightPrevYear:I,leftLabel:N,rightLabel:j,leftYear:L,rightYear:V}=AMe({unlinkPanels:Tr(n,"unlinkPanels"),leftDate:u,rightDate:f}),X=W(()=>n.unlinkPanels&&V.value>L.value+1),oe=(z,q=!0)=>{const ue=z.minDate,he=z.maxDate;m.value===he&&h.value===ue||(t("calendar-change",[ue.toDate(),he&&he.toDate()]),m.value=he,h.value=ue,q&&C())},K=()=>{u.value=d3(v(l),{lang:v(r),unit:"year",unlinkPanels:n.unlinkPanels})[0],f.value=u.value.add(1,"year"),t("pick",null)},Z=z=>Et(z)?z.map(q=>q.format(s.value)):z.format(s.value),re=z=>Et(z)?z.map(q=>cn(q,s.value).locale(r.value)):cn(z,s.value).locale(r.value);function J(z,q){if(n.unlinkPanels&&q){const ue=(z==null?void 0:z.year())||0,he=q.year();f.value=ue===he?q.add(1,Ix):q}else f.value=u.value.add(1,Ix)}return t("set-picker-option",["isValidValue",e0]),t("set-picker-option",["formatToString",Z]),t("set-picker-option",["parseUserInput",re]),t("set-picker-option",["handleClear",K]),(z,q)=>(U(),ce("div",{class:G([v(O).b(),v(b).b(),{"has-sidebar":Boolean(z.$slots.sidebar)||v(T)}])},[ge("div",{class:G(v(O).e("body-wrapper"))},[Xe(z.$slots,"sidebar",{class:G(v(O).e("sidebar"))}),v(T)?(U(),ce("div",{key:0,class:G(v(O).e("sidebar"))},[(U(!0),ce(Pt,null,_n(v(i),(ue,he)=>(U(),ce("button",{key:he,type:"button",class:G(v(O).e("shortcut")),onClick:le=>v(P)(ue)},ct(ue.text),11,["onClick"]))),128))],2)):Fe("v-if",!0),ge("div",{class:G(v(O).e("body"))},[ge("div",{class:G([[v(O).e("content"),v(b).e("content")],"is-left"])},[ge("div",{class:G(v(b).e("header"))},[ge("button",{type:"button",class:G([v(O).e("icon-btn"),"d-arrow-left"]),onClick:v(A)},[Xe(z.$slots,"prev-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(lp))]),_:1})])],10,["onClick"]),z.unlinkPanels?(U(),ce("button",{key:0,type:"button",disabled:!v(X),class:G([[v(O).e("icon-btn"),{[v(O).is("disabled")]:!v(X)}],"d-arrow-right"]),onClick:v(B)},[Xe(z.$slots,"next-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(up))]),_:1})])],10,["disabled","onClick"])):Fe("v-if",!0),ge("div",null,ct(v(N)),1)],2),ne(fR,{"selection-mode":"range",date:u.value,"min-date":v(h),"max-date":v(m),"range-state":v(y),"disabled-date":v(a),onChangerange:v(k),onPick:oe,onSelect:v($)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),ge("div",{class:G([[v(O).e("content"),v(b).e("content")],"is-right"])},[ge("div",{class:G(v(b).e("header"))},[z.unlinkPanels?(U(),ce("button",{key:0,type:"button",disabled:!v(X),class:G([[v(O).e("icon-btn"),{"is-disabled":!v(X)}],"d-arrow-left"]),onClick:v(I)},[Xe(z.$slots,"prev-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(lp))]),_:1})])],10,["disabled","onClick"])):Fe("v-if",!0),ge("button",{type:"button",class:G([v(O).e("icon-btn"),"d-arrow-right"]),onClick:v(R)},[Xe(z.$slots,"next-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(up))]),_:1})])],10,["onClick"]),ge("div",null,ct(v(j)),1)],2),ne(fR,{"selection-mode":"range",date:f.value,"min-date":v(h),"max-date":v(m),"range-state":v(y),"disabled-date":v(a),onChangerange:v(k),onPick:oe,onSelect:v($)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var NMe=gt(RMe,[["__file","panel-month-range.vue"]]);const IMe=pt({...c3}),DMe=["pick","set-picker-option","calendar-change"],jMe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const r=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},o=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},i=()=>{t.value=t.value.add(10,"year")},a=()=>{n.value=n.value.subtract(10,"year")},s=W(()=>{const h=Math.floor(t.value.year()/10)*10;return`${h}-${h+9}`}),l=W(()=>{const h=Math.floor(n.value.year()/10)*10;return`${h}-${h+9}`}),u=W(()=>Math.floor(t.value.year()/10)*10+9),f=W(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:r,rightNextYear:o,leftNextYear:i,rightPrevYear:a,leftLabel:s,rightLabel:l,leftYear:u,rightYear:f}},WB="year",LMe=xe({name:"DatePickerYearRange"}),BMe=xe({...LMe,props:IMe,emits:DMe,setup(e,{emit:t}){const n=e,{lang:r}=ir(),o=ee(cn().locale(r.value)),i=ee(o.value.add(10,"year")),{pickerNs:a}=$t(iE),s=ut("date-range-picker"),l=W(()=>!!oe.length),u=W(()=>[a.b(),s.b(),{"has-sidebar":Boolean(Ui().sidebar)||l.value}]),f=W(()=>({content:[a.e("content"),s.e("content"),"is-left"],arrowLeftBtn:[a.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[a.e("icon-btn"),{[a.is("disabled")]:!A.value},"d-arrow-right"]})),h=W(()=>({content:[a.e("content"),s.e("content"),"is-right"],arrowLeftBtn:[a.e("icon-btn"),{"is-disabled":!A.value},"d-arrow-left"],arrowRightBtn:[a.e("icon-btn"),"d-arrow-right"]})),m=zH(r),{leftPrevYear:y,rightNextYear:O,leftNextYear:b,rightPrevYear:k,leftLabel:C,rightLabel:P,leftYear:$,rightYear:T}=jMe({unlinkPanels:Tr(n,"unlinkPanels"),leftDate:o,rightDate:i}),A=W(()=>n.unlinkPanels&&T.value>$.value+1),R=ee(),B=ee(),I=ee({endDate:null,selecting:!1}),N=le=>{I.value=le},j=(le,ze=!0)=>{const Ee=le.minDate,Be=le.maxDate;B.value===Be&&R.value===Ee||(t("calendar-change",[Ee.toDate(),Be&&Be.toDate()]),B.value=Be,R.value=Ee,ze&&L())},L=(le=!1)=>{e0([R.value,B.value])&&t("pick",[R.value,B.value],le)},V=le=>{I.value.selecting=le,le||(I.value.endDate=null)},X=$t("EP_PICKER_BASE"),{shortcuts:oe,disabledDate:K}=X.props,Z=Tr(X.props,"format"),re=Tr(X.props,"defaultValue"),J=()=>{let le;if(Et(re.value)){const ze=cn(re.value[0]);let Ee=cn(re.value[1]);return n.unlinkPanels||(Ee=ze.add(10,WB)),[ze,Ee]}else re.value?le=cn(re.value):le=cn();return le=le.locale(r.value),[le,le.add(10,WB)]};at(()=>re.value,le=>{if(le){const ze=J();o.value=ze[0],i.value=ze[1]}},{immediate:!0}),at(()=>n.parsedValue,le=>{if(le&&le.length===2)if(R.value=le[0],B.value=le[1],o.value=R.value,n.unlinkPanels&&B.value){const ze=R.value.year(),Ee=B.value.year();i.value=ze===Ee?B.value.add(10,"year"):B.value}else i.value=o.value.add(10,"year");else{const ze=J();R.value=void 0,B.value=void 0,o.value=ze[0],i.value=ze[1]}},{immediate:!0});const z=le=>Et(le)?le.map(ze=>cn(ze,Z.value).locale(r.value)):cn(le,Z.value).locale(r.value),q=le=>Et(le)?le.map(ze=>ze.format(Z.value)):le.format(Z.value),ue=le=>e0(le)&&(K?!K(le[0].toDate())&&!K(le[1].toDate()):!0),he=()=>{const le=J();o.value=le[0],i.value=le[1],B.value=void 0,R.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",ue]),t("set-picker-option",["parseUserInput",z]),t("set-picker-option",["formatToString",q]),t("set-picker-option",["handleClear",he]),(le,ze)=>(U(),ce("div",{class:G(v(u))},[ge("div",{class:G(v(a).e("body-wrapper"))},[Xe(le.$slots,"sidebar",{class:G(v(a).e("sidebar"))}),v(l)?(U(),ce("div",{key:0,class:G(v(a).e("sidebar"))},[(U(!0),ce(Pt,null,_n(v(oe),(Ee,Be)=>(U(),ce("button",{key:Be,type:"button",class:G(v(a).e("shortcut")),onClick:Ae=>v(m)(Ee)},ct(Ee.text),11,["onClick"]))),128))],2)):Fe("v-if",!0),ge("div",{class:G(v(a).e("body"))},[ge("div",{class:G(v(f).content)},[ge("div",{class:G(v(s).e("header"))},[ge("button",{type:"button",class:G(v(f).arrowLeftBtn),onClick:v(y)},[Xe(le.$slots,"prev-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(lp))]),_:1})])],10,["onClick"]),le.unlinkPanels?(U(),ce("button",{key:0,type:"button",disabled:!v(A),class:G(v(f).arrowRightBtn),onClick:v(b)},[Xe(le.$slots,"next-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(up))]),_:1})])],10,["disabled","onClick"])):Fe("v-if",!0),ge("div",null,ct(v(C)),1)],2),ne(dR,{"selection-mode":"range",date:o.value,"min-date":R.value,"max-date":B.value,"range-state":I.value,"disabled-date":v(K),onChangerange:N,onPick:j,onSelect:V},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),ge("div",{class:G(v(h).content)},[ge("div",{class:G(v(s).e("header"))},[le.unlinkPanels?(U(),ce("button",{key:0,type:"button",disabled:!v(A),class:G(v(h).arrowLeftBtn),onClick:v(k)},[Xe(le.$slots,"prev-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(lp))]),_:1})])],10,["disabled","onClick"])):Fe("v-if",!0),ge("button",{type:"button",class:G(v(h).arrowRightBtn),onClick:v(O)},[Xe(le.$slots,"next-year",{},()=>[ne(v(Lt),null,{default:se(()=>[ne(v(up))]),_:1})])],10,["onClick"]),ge("div",null,ct(v(P)),1)],2),ne(dR,{"selection-mode":"range",date:i.value,"min-date":R.value,"max-date":B.value,"range-state":I.value,"disabled-date":v(K),onChangerange:N,onPick:j,onSelect:V},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var VMe=gt(BMe,[["__file","panel-year-range.vue"]]);const FMe=function(e){switch(e){case"daterange":case"datetimerange":return TMe;case"monthrange":return NMe;case"yearrange":return VMe;default:return kMe}};cn.extend(uH);cn.extend(oMe);cn.extend(o3);cn.extend(iMe);cn.extend(aMe);cn.extend(sMe);cn.extend(lMe);cn.extend(uMe);var zMe=xe({name:"ElDatePicker",install:null,props:cMe,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const o=ut("picker-panel");Yn("ElPopperOptions",or(Tr(e,"popperOptions"))),Yn(iE,{slots:r,pickerNs:o});const i=ee();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:ITe[e.type]||sy,f=FMe(e.type);return ne(qU,Dn(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:h=>ne(f,h,{"prev-month":r["prev-month"],"next-month":r["next-month"],"prev-year":r["prev-year"],"next-year":r["next-year"]}),"range-separator":r["range-separator"]})}}});const QMe=gn(zMe),p3=Symbol("elDescriptions");var A_=xe({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:$t(p3,{})}},render(){var e,t,n,r,o,i,a;const s=YSe(this.cell),l=(((e=this.cell)==null?void 0:e.dirs)||[]).map(A=>{const{dir:R,arg:B,modifiers:I,value:N}=A;return[R,N,B,I]}),{border:u,direction:f}=this.descriptions,h=f==="vertical",m=((r=(n=(t=this.cell)==null?void 0:t.children)==null?void 0:n.label)==null?void 0:r.call(n))||s.label,y=(a=(i=(o=this.cell)==null?void 0:o.children)==null?void 0:i.default)==null?void 0:a.call(i),O=s.span,b=s.align?`is-${s.align}`:"",k=s.labelAlign?`is-${s.labelAlign}`:b,C=s.className,P=s.labelClassName,$={width:Qo(s.width),minWidth:Qo(s.minWidth)},T=ut("descriptions");switch(this.type){case"label":return bn(Ht(this.tag,{style:$,class:[T.e("cell"),T.e("label"),T.is("bordered-label",u),T.is("vertical-label",h),k,P],colSpan:h?O:1},m),l);case"content":return bn(Ht(this.tag,{style:$,class:[T.e("cell"),T.e("content"),T.is("bordered-content",u),T.is("vertical-content",h),b,C],colSpan:h?O:O*2-1},y),l);default:return bn(Ht("td",{style:$,class:[T.e("cell"),b],colSpan:O},[Wi(m)?void 0:Ht("span",{class:[T.e("label"),P]},m),Ht("span",{class:[T.e("content"),C]},y)]),l)}}});const WMe=pt({row:{type:Le(Array),default:()=>[]}}),YMe=xe({name:"ElDescriptionsRow"}),UMe=xe({...YMe,props:WMe,setup(e){const t=$t(p3,{});return(n,r)=>v(t).direction==="vertical"?(U(),ce(Pt,{key:0},[ge("tr",null,[(U(!0),ce(Pt,null,_n(n.row,(o,i)=>(U(),Qe(v(A_),{key:`tr1-${i}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),ge("tr",null,[(U(!0),ce(Pt,null,_n(n.row,(o,i)=>(U(),Qe(v(A_),{key:`tr2-${i}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(U(),ce("tr",{key:1},[(U(!0),ce(Pt,null,_n(n.row,(o,i)=>(U(),ce(Pt,{key:`tr3-${i}`},[v(t).border?(U(),ce(Pt,{key:0},[ne(v(A_),{cell:o,tag:"td",type:"label"},null,8,["cell"]),ne(v(A_),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(U(),Qe(v(A_),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var HMe=gt(UMe,[["__file","descriptions-row.vue"]]);const ZMe=pt({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Ni,title:{type:String,default:""},extra:{type:String,default:""}}),XMe=xe({name:"ElDescriptions"}),qMe=xe({...XMe,props:ZMe,setup(e){const t=e,n=ut("descriptions"),r=wi(),o=Ui();Yn(p3,t);const i=W(()=>[n.b(),n.m(r.value)]),a=(l,u,f,h=!1)=>(l.props||(l.props={}),u>f&&(l.props.span=f),h&&(l.props.span=u),l),s=()=>{if(!o.default)return[];const l=Zh(o.default()).filter(y=>{var O;return((O=y==null?void 0:y.type)==null?void 0:O.name)==="ElDescriptionsItem"}),u=[];let f=[],h=t.column,m=0;return l.forEach((y,O)=>{var b;const k=((b=y.props)==null?void 0:b.span)||1;if(O<l.length-1&&(m+=k>h?h:k),O===l.length-1){const C=t.column-m%t.column;f.push(a(y,C,h,!0)),u.push(f);return}k<h?(h-=k,f.push(y)):(f.push(a(y,k,h)),u.push(f),h=t.column,f=[])}),u};return(l,u)=>(U(),ce("div",{class:G(v(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(U(),ce("div",{key:0,class:G(v(n).e("header"))},[ge("div",{class:G(v(n).e("title"))},[Xe(l.$slots,"title",{},()=>[xt(ct(l.title),1)])],2),ge("div",{class:G(v(n).e("extra"))},[Xe(l.$slots,"extra",{},()=>[xt(ct(l.extra),1)])],2)],2)):Fe("v-if",!0),ge("div",{class:G(v(n).e("body"))},[ge("table",{class:G([v(n).e("table"),v(n).is("bordered",l.border)])},[ge("tbody",null,[(U(!0),ce(Pt,null,_n(s(),(f,h)=>(U(),Qe(HMe,{key:h,row:f},null,8,["row"]))),128))])],2)],2)],2))}});var KMe=gt(qMe,[["__file","description.vue"]]);const GMe=pt({label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),WH=xe({name:"ElDescriptionsItem",props:GMe}),JMe=gn(KMe,{DescriptionsItem:WH}),eRe=Co(WH),tRe=pt({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Le([String,Array,Object])},zIndex:{type:Le([String,Number])}}),nRe={click:e=>e instanceof MouseEvent},rRe="overlay";var oRe=xe({name:"ElOverlay",props:tRe,emits:nRe,setup(e,{slots:t,emit:n}){const r=ut(rRe),o=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:s}=zD(e.customMaskEvent?void 0:o);return()=>e.mask?ne("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:s},[Xe(t,"default")],pu.STYLE|pu.CLASS|pu.PROPS,["onClick","onMouseup","onMousedown"]):Ht("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Xe(t,"default")])}});const g3=oRe,YH=Symbol("dialogInjectionKey"),UH=pt({center:Boolean,alignCenter:Boolean,closeIcon:{type:Wr},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),iRe={close:()=>!0},aRe=xe({name:"ElDialogContent"}),sRe=xe({...aRe,props:UH,emits:iRe,setup(e,{expose:t}){const n=e,{t:r}=ir(),{Close:o}=TD,{dialogRef:i,headerRef:a,bodyId:s,ns:l,style:u}=$t(YH),{focusTrapRef:f}=$t(t3),h=W(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",n.draggable),l.is("align-center",n.alignCenter),{[l.m("center")]:n.center}]),m=H2(f,i),y=W(()=>n.draggable),O=W(()=>n.overflow),{resetPostion:b}=BY(i,a,y,O);return t({resetPostion:b}),(k,C)=>(U(),ce("div",{ref:v(m),class:G(v(h)),style:Ft(v(u)),tabindex:"-1"},[ge("header",{ref_key:"headerRef",ref:a,class:G([v(l).e("header"),{"show-close":k.showClose}])},[Xe(k.$slots,"header",{},()=>[ge("span",{role:"heading","aria-level":k.ariaLevel,class:G(v(l).e("title"))},ct(k.title),11,["aria-level"])]),k.showClose?(U(),ce("button",{key:0,"aria-label":v(r)("el.dialog.close"),class:G(v(l).e("headerbtn")),type:"button",onClick:P=>k.$emit("close")},[ne(v(Lt),{class:G(v(l).e("close"))},{default:se(()=>[(U(),Qe(jn(k.closeIcon||v(o))))]),_:1},8,["class"])],10,["aria-label","onClick"])):Fe("v-if",!0)],2),ge("div",{id:v(s),class:G(v(l).e("body"))},[Xe(k.$slots,"default")],10,["id"]),k.$slots.footer?(U(),ce("footer",{key:0,class:G(v(l).e("footer"))},[Xe(k.$slots,"footer")],2)):Fe("v-if",!0)],6))}});var lRe=gt(sRe,[["__file","dialog-content.vue"]]);const HH=pt({...UH,appendToBody:Boolean,appendTo:{type:Le([String,Object]),default:"body"},beforeClose:{type:Le(Function)},destroyOnClose:Boolean,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:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),ZH={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Tn]:e=>qo(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},XH=(e,t)=>{var n;const o=En().emit,{nextZIndex:i}=k0();let a="";const s=Fa(),l=Fa(),u=ee(!1),f=ee(!1),h=ee(!1),m=ee((n=e.zIndex)!=null?n:i());let y,O;const b=eE("namespace",aO),k=W(()=>{const K={},Z=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(K[`${Z}-margin-top`]=e.top),e.width&&(K[`${Z}-width`]=Qo(e.width))),K}),C=W(()=>e.alignCenter?{display:"flex"}:{});function P(){o("opened")}function $(){o("closed"),o(Tn,!1),e.destroyOnClose&&(h.value=!1)}function T(){o("close")}function A(){O==null||O(),y==null||y(),e.openDelay&&e.openDelay>0?{stop:y}=dm(()=>N(),e.openDelay):N()}function R(){y==null||y(),O==null||O(),e.closeDelay&&e.closeDelay>0?{stop:O}=dm(()=>j(),e.closeDelay):j()}function B(){function K(Z){Z||(f.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(K):R()}function I(){e.closeOnClickModal&&B()}function N(){!rr||(u.value=!0)}function j(){u.value=!1}function L(){o("openAutoFocus")}function V(){o("closeAutoFocus")}function X(K){var Z;((Z=K.detail)==null?void 0:Z.focusReason)==="pointer"&&K.preventDefault()}e.lockScroll&&RD(u);function oe(){e.closeOnPressEscape&&B()}return at(()=>e.modelValue,K=>{K?(f.value=!1,A(),h.value=!0,m.value=aD(e.zIndex)?i():m.value++,Wt(()=>{o("open"),t.value&&(t.value.scrollTop=0)})):u.value&&R()}),at(()=>e.fullscreen,K=>{!t.value||(K?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),vn(()=>{e.modelValue&&(u.value=!0,h.value=!0,A())}),{afterEnter:P,afterLeave:$,beforeLeave:T,handleClose:B,onModalClick:I,close:R,doClose:j,onOpenAutoFocus:L,onCloseAutoFocus:V,onCloseRequested:oe,onFocusoutPrevented:X,titleId:s,bodyId:l,closed:f,style:k,overlayDialogStyle:C,rendered:h,visible:u,zIndex:m}},uRe=xe({name:"ElDialog",inheritAttrs:!1}),cRe=xe({...uRe,props:HH,emits:ZH,setup(e,{expose:t}){const n=e,r=Ui();Xh({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"},W(()=>!!r.title));const o=ut("dialog"),i=ee(),a=ee(),s=ee(),{visible:l,titleId:u,bodyId:f,style:h,overlayDialogStyle:m,rendered:y,zIndex:O,afterEnter:b,afterLeave:k,beforeLeave:C,handleClose:P,onModalClick:$,onOpenAutoFocus:T,onCloseAutoFocus:A,onCloseRequested:R,onFocusoutPrevented:B}=XH(n,i);Yn(YH,{dialogRef:i,headerRef:a,bodyId:f,ns:o,rendered:y,style:h});const I=zD($),N=W(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s,resetPostion:()=>{s.value.resetPostion()}}),(L,V)=>(U(),Qe(v(E0),{to:L.appendTo,disabled:L.appendTo!=="body"?!1:!L.appendToBody},{default:se(()=>[ne(Mi,{name:"dialog-fade",onAfterEnter:v(b),onAfterLeave:v(k),onBeforeLeave:v(C),persisted:""},{default:se(()=>[bn(ne(v(g3),{"custom-mask-event":"",mask:L.modal,"overlay-class":L.modalClass,"z-index":v(O)},{default:se(()=>[ge("div",{role:"dialog","aria-modal":"true","aria-label":L.title||void 0,"aria-labelledby":L.title?void 0:v(u),"aria-describedby":v(f),class:G(`${v(o).namespace.value}-overlay-dialog`),style:Ft(v(m)),onClick:v(I).onClick,onMousedown:v(I).onMousedown,onMouseup:v(I).onMouseup},[ne(v(Q1),{loop:"",trapped:v(l),"focus-start-el":"container",onFocusAfterTrapped:v(T),onFocusAfterReleased:v(A),onFocusoutPrevented:v(B),onReleaseRequested:v(R)},{default:se(()=>[v(y)?(U(),Qe(lRe,Dn({key:0,ref_key:"dialogContentRef",ref:s},L.$attrs,{center:L.center,"align-center":L.alignCenter,"close-icon":L.closeIcon,draggable:v(N),overflow:L.overflow,fullscreen:L.fullscreen,"show-close":L.showClose,title:L.title,"aria-level":L.headerAriaLevel,onClose:v(P)}),Fl({header:se(()=>[L.$slots.title?Xe(L.$slots,"title",{key:1}):Xe(L.$slots,"header",{key:0,close:v(P),titleId:v(u),titleClass:v(o).e("title")})]),default:se(()=>[Xe(L.$slots,"default")]),_:2},[L.$slots.footer?{name:"footer",fn:se(()=>[Xe(L.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):Fe("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[gr,v(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var fRe=gt(cRe,[["__file","dialog.vue"]]);const Ld=gn(fRe),dRe=pt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Le(String),default:"solid"}}),hRe=xe({name:"ElDivider"}),pRe=xe({...hRe,props:dRe,setup(e){const t=e,n=ut("divider"),r=W(()=>n.cssVar({"border-style":t.borderStyle}));return(o,i)=>(U(),ce("div",{class:G([v(n).b(),v(n).m(o.direction)]),style:Ft(v(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(U(),ce("div",{key:0,class:G([v(n).e("text"),v(n).is(o.contentPosition)])},[Xe(o.$slots,"default")],2)):Fe("v-if",!0)],6))}});var gRe=gt(pRe,[["__file","divider.vue"]]);const qH=gn(gRe),mRe=pt({...HH,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),vRe=ZH,yRe=xe({name:"ElDrawer",inheritAttrs:!1}),bRe=xe({...yRe,props:mRe,emits:vRe,setup(e,{expose:t}){const n=e,r=Ui();Xh({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},W(()=>!!r.title));const o=ee(),i=ee(),a=ut("drawer"),{t:s}=ir(),{afterEnter:l,afterLeave:u,beforeLeave:f,visible:h,rendered:m,titleId:y,bodyId:O,zIndex:b,onModalClick:k,onOpenAutoFocus:C,onCloseAutoFocus:P,onFocusoutPrevented:$,onCloseRequested:T,handleClose:A}=XH(n,o),R=W(()=>n.direction==="rtl"||n.direction==="ltr"),B=W(()=>Qo(n.size));return t({handleClose:A,afterEnter:l,afterLeave:u}),(I,N)=>(U(),Qe(v(E0),{to:I.appendTo,disabled:I.appendTo!=="body"?!1:!I.appendToBody},{default:se(()=>[ne(Mi,{name:v(a).b("fade"),onAfterEnter:v(l),onAfterLeave:v(u),onBeforeLeave:v(f),persisted:""},{default:se(()=>[bn(ne(v(g3),{mask:I.modal,"overlay-class":I.modalClass,"z-index":v(b),onClick:v(k)},{default:se(()=>[ne(v(Q1),{loop:"",trapped:v(h),"focus-trap-el":o.value,"focus-start-el":i.value,onFocusAfterTrapped:v(C),onFocusAfterReleased:v(P),onFocusoutPrevented:v($),onReleaseRequested:v(T)},{default:se(()=>[ge("div",Dn({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:v(y),"aria-describedby":v(O)},I.$attrs,{class:[v(a).b(),I.direction,v(h)&&"open"],style:v(R)?"width: "+v(B):"height: "+v(B),role:"dialog",onClick:nn(()=>{},["stop"])}),[ge("span",{ref_key:"focusStartRef",ref:i,class:G(v(a).e("sr-focus")),tabindex:"-1"},null,2),I.withHeader?(U(),ce("header",{key:0,class:G(v(a).e("header"))},[I.$slots.title?Xe(I.$slots,"title",{key:1},()=>[Fe(" DEPRECATED SLOT ")]):Xe(I.$slots,"header",{key:0,close:v(A),titleId:v(y),titleClass:v(a).e("title")},()=>[I.$slots.title?Fe("v-if",!0):(U(),ce("span",{key:0,id:v(y),role:"heading","aria-level":I.headerAriaLevel,class:G(v(a).e("title"))},ct(I.title),11,["id","aria-level"]))]),I.showClose?(U(),ce("button",{key:2,"aria-label":v(s)("el.drawer.close"),class:G(v(a).e("close-btn")),type:"button",onClick:v(A)},[ne(v(Lt),{class:G(v(a).e("close"))},{default:se(()=>[ne(v(Ts))]),_:1},8,["class"])],10,["aria-label","onClick"])):Fe("v-if",!0)],2)):Fe("v-if",!0),v(m)?(U(),ce("div",{key:1,id:v(O),class:G(v(a).e("body"))},[Xe(I.$slots,"default")],10,["id"])):Fe("v-if",!0),I.$slots.footer?(U(),ce("div",{key:2,class:G(v(a).e("footer"))},[Xe(I.$slots,"footer")],2)):Fe("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[gr,v(h)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var _Re=gt(bRe,[["__file","drawer.vue"]]);const m3=gn(_Re),ORe=xe({inheritAttrs:!1});function wRe(e,t,n,r,o,i){return Xe(e.$slots,"default")}var SRe=gt(ORe,[["render",wRe],["__file","collection.vue"]]);const xRe=xe({name:"ElCollectionItem",inheritAttrs:!1});function kRe(e,t,n,r,o,i){return Xe(e.$slots,"default")}var CRe=gt(xRe,[["render",kRe],["__file","collection-item.vue"]]);const KH="data-el-collection-item",GH=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),i={...SRe,name:t,setup(){const s=ee(null),l=new Map;Yn(r,{itemMap:l,getItems:()=>{const f=v(s);if(!f)return[];const h=Array.from(f.querySelectorAll(`[${KH}]`));return[...l.values()].sort((y,O)=>h.indexOf(y.ref)-h.indexOf(O.ref))},collectionRef:s})}},a={...CRe,name:n,setup(s,{attrs:l}){const u=ee(null),f=$t(r,void 0);Yn(o,{collectionItemRef:u}),vn(()=>{const h=v(u);h&&f.itemMap.set(h,{ref:h,...l})}),qr(()=>{const h=v(u);f.itemMap.delete(h)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:a}},ERe=pt({style:{type:Le([String,Array,Object])},currentTabId:{type:Le(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Le(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:TRe,ElCollectionItem:PRe,COLLECTION_INJECTION_KEY:v3,COLLECTION_ITEM_INJECTION_KEY:$Re}=GH("RovingFocusGroup"),y3=Symbol("elRovingFocusGroup"),JH=Symbol("elRovingFocusGroupItem"),ARe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},MRe=(e,t)=>{if(t!=="rtl")return e;switch(e){case Yt.right:return Yt.left;case Yt.left:return Yt.right;default:return e}},RRe=(e,t,n)=>{const r=MRe(e.key,n);if(!(t==="vertical"&&[Yt.left,Yt.right].includes(r))&&!(t==="horizontal"&&[Yt.up,Yt.down].includes(r)))return ARe[r]},NRe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),b3=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},YB="currentTabIdChange",UB="rovingFocusGroup.entryFocus",IRe={bubbles:!1,cancelable:!0},DRe=xe({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ERe,emits:[YB,"entryFocus"],setup(e,{emit:t}){var n;const r=ee((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=ee(!1),i=ee(!1),a=ee(null),{getItems:s}=$t(v3,void 0),l=W(()=>[{outline:"none"},e.style]),u=b=>{t(YB,b)},f=()=>{o.value=!0},h=Fo(b=>{var k;(k=e.onMousedown)==null||k.call(e,b)},()=>{i.value=!0}),m=Fo(b=>{var k;(k=e.onFocus)==null||k.call(e,b)},b=>{const k=!v(i),{target:C,currentTarget:P}=b;if(C===P&&k&&!v(o)){const $=new Event(UB,IRe);if(P==null||P.dispatchEvent($),!$.defaultPrevented){const T=s().filter(N=>N.focusable),A=T.find(N=>N.active),R=T.find(N=>N.id===v(r)),I=[A,R,...T].filter(Boolean).map(N=>N.ref);b3(I)}}i.value=!1}),y=Fo(b=>{var k;(k=e.onBlur)==null||k.call(e,b)},()=>{o.value=!1}),O=(...b)=>{t("entryFocus",...b)};Yn(y3,{currentTabbedId:x1(r),loop:Tr(e,"loop"),tabIndex:W(()=>v(o)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:Tr(e,"orientation"),dir:Tr(e,"dir"),onItemFocus:u,onItemShiftTab:f,onBlur:y,onFocus:m,onMousedown:h}),at(()=>e.currentTabId,b=>{r.value=b!=null?b:null}),Nr(a,UB,O)}});function jRe(e,t,n,r,o,i){return Xe(e.$slots,"default")}var LRe=gt(DRe,[["render",jRe],["__file","roving-focus-group-impl.vue"]]);const BRe=xe({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:TRe,ElRovingFocusGroupImpl:LRe}});function VRe(e,t,n,r,o,i){const a=Pn("el-roving-focus-group-impl"),s=Pn("el-focus-group-collection");return U(),Qe(s,null,{default:se(()=>[ne(a,fc(tp(e.$attrs)),{default:se(()=>[Xe(e.$slots,"default")]),_:3},16)]),_:3})}var FRe=gt(BRe,[["render",VRe],["__file","roving-focus-group.vue"]]);const zRe=xe({components:{ElRovingFocusCollectionItem:PRe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:i}=$t(y3,void 0),{getItems:a}=$t(v3,void 0),s=Fa(),l=ee(null),u=Fo(y=>{t("mousedown",y)},y=>{e.focusable?o(v(s)):y.preventDefault()}),f=Fo(y=>{t("focus",y)},()=>{o(v(s))}),h=Fo(y=>{t("keydown",y)},y=>{const{key:O,shiftKey:b,target:k,currentTarget:C}=y;if(O===Yt.tab&&b){i();return}if(k!==C)return;const P=RRe(y);if(P){y.preventDefault();let T=a().filter(A=>A.focusable).map(A=>A.ref);switch(P){case"last":{T.reverse();break}case"prev":case"next":{P==="prev"&&T.reverse();const A=T.indexOf(C);T=r.value?NRe(T,A+1):T.slice(A+1);break}}Wt(()=>{b3(T)})}}),m=W(()=>n.value===v(s));return Yn(JH,{rovingFocusGroupItemRef:l,tabIndex:W(()=>v(m)?0:-1),handleMousedown:u,handleFocus:f,handleKeydown:h}),{id:s,handleKeydown:h,handleFocus:f,handleMousedown:u}}});function QRe(e,t,n,r,o,i){const a=Pn("el-roving-focus-collection-item");return U(),Qe(a,{id:e.id,focusable:e.focusable,active:e.active},{default:se(()=>[Xe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var WRe=gt(zRe,[["render",QRe],["__file","roving-focus-item.vue"]]);const Sk=pt({trigger:YO.trigger,effect:{...Ji.effect,default:"light"},type:{type:Le(String)},placement:{type:Le(String),default:"bottom"},popperOptions:{type:Le(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:Le([Number,String]),default:0},maxHeight:{type:Le([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:Le(Object)},teleported:Ji.teleported}),eZ=pt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wr}}),YRe=pt({onKeydown:{type:Le(Function)}}),URe=[Yt.down,Yt.pageDown,Yt.home],tZ=[Yt.up,Yt.pageUp,Yt.end],HRe=[...URe,...tZ],{ElCollection:ZRe,ElCollectionItem:XRe,COLLECTION_INJECTION_KEY:qRe,COLLECTION_ITEM_INJECTION_KEY:KRe}=GH("Dropdown"),aE=Symbol("elDropdown"),{ButtonGroup:GRe}=io,JRe=xe({name:"ElDropdown",components:{ElButton:io,ElButtonGroup:GRe,ElScrollbar:Ec,ElDropdownCollection:ZRe,ElTooltip:ia,ElRovingFocusGroup:FRe,ElOnlyChild:TU,ElIcon:Lt,ArrowDown:Dd},props:Sk,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=En(),r=ut("dropdown"),{t:o}=ir(),i=ee(),a=ee(),s=ee(null),l=ee(null),u=ee(null),f=ee(null),h=ee(!1),m=[Yt.enter,Yt.space,Yt.down],y=W(()=>({maxHeight:Qo(e.maxHeight)})),O=W(()=>[r.m(A.value)]),b=W(()=>Da(e.trigger)),k=Fa().value,C=W(()=>e.id||k);at([i,b],([re,J],[z])=>{var q,ue,he;(q=z==null?void 0:z.$el)!=null&&q.removeEventListener&&z.$el.removeEventListener("pointerenter",B),(ue=re==null?void 0:re.$el)!=null&&ue.removeEventListener&&re.$el.removeEventListener("pointerenter",B),((he=re==null?void 0:re.$el)==null?void 0:he.addEventListener)&&J.includes("hover")&&re.$el.addEventListener("pointerenter",B)},{immediate:!0}),qr(()=>{var re,J;(J=(re=i.value)==null?void 0:re.$el)!=null&&J.removeEventListener&&i.value.$el.removeEventListener("pointerenter",B)});function P(){$()}function $(){var re;(re=s.value)==null||re.onClose()}function T(){var re;(re=s.value)==null||re.onOpen()}const A=wi();function R(...re){t("command",...re)}function B(){var re,J;(J=(re=i.value)==null?void 0:re.$el)==null||J.focus()}function I(){}function N(){const re=v(l);b.value.includes("hover")&&(re==null||re.focus()),f.value=null}function j(re){f.value=re}function L(re){h.value||(re.preventDefault(),re.stopImmediatePropagation())}function V(){t("visible-change",!0)}function X(re){(re==null?void 0:re.type)==="keydown"&&l.value.focus()}function oe(){t("visible-change",!1)}return Yn(aE,{contentRef:l,role:W(()=>e.role),triggerId:C,isUsingKeyboard:h,onItemEnter:I,onItemLeave:N}),Yn("elDropdown",{instance:n,dropdownSize:A,handleClick:P,commandHandler:R,trigger:Tr(e,"trigger"),hideOnClick:Tr(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:y,dropdownTriggerKls:O,dropdownSize:A,triggerId:C,triggerKeys:m,currentTabId:f,handleCurrentTabIdChange:j,handlerMainButtonClick:re=>{t("click",re)},handleEntryFocus:L,handleClose:$,handleOpen:T,handleBeforeShowTooltip:V,handleShowTooltip:X,handleBeforeHideTooltip:oe,onFocusAfterTrapped:re=>{var J,z;re.preventDefault(),(z=(J=l.value)==null?void 0:J.focus)==null||z.call(J,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:a}}});function eNe(e,t,n,r,o,i){var a;const s=Pn("el-dropdown-collection"),l=Pn("el-roving-focus-group"),u=Pn("el-scrollbar"),f=Pn("el-only-child"),h=Pn("el-tooltip"),m=Pn("el-button"),y=Pn("arrow-down"),O=Pn("el-icon"),b=Pn("el-button-group");return U(),ce("div",{class:G([e.ns.b(),e.ns.is("disabled",e.disabled)])},[ne(h,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Fl({content:se(()=>[ne(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:se(()=>[ne(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:se(()=>[ne(s,null,{default:se(()=>[Xe(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:se(()=>[ne(f,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:se(()=>[Xe(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(U(),Qe(b,{key:0},{default:se(()=>[ne(m,Dn({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:se(()=>[Xe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),ne(m,Dn({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:se(()=>[ne(O,{class:G(e.ns.e("icon"))},{default:se(()=>[ne(y)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Fe("v-if",!0)],2)}var tNe=gt(JRe,[["render",eNe],["__file","dropdown.vue"]]);const nNe=xe({name:"DropdownItemImpl",components:{ElIcon:Lt},props:eZ,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ut("dropdown"),{role:r}=$t(aE,void 0),{collectionItemRef:o}=$t(KRe,void 0),{collectionItemRef:i}=$t($Re,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:f}=$t(JH,void 0),h=H2(o,i,a),m=W(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),y=Fo(O=>{const{code:b}=O;if(b===Yt.enter||b===Yt.space)return O.preventDefault(),O.stopImmediatePropagation(),t("clickimpl",O),!0},u);return{ns:n,itemRef:h,dataset:{[KH]:""},role:m,tabIndex:s,handleFocus:l,handleKeydown:y,handleMousedown:f}}});function rNe(e,t,n,r,o,i){const a=Pn("el-icon");return U(),ce(Pt,null,[e.divided?(U(),ce("li",Dn({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):Fe("v-if",!0),ge("li",Dn({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:s=>e.$emit("clickimpl",s),onFocus:e.handleFocus,onKeydown:nn(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:s=>e.$emit("pointermove",s),onPointerleave:s=>e.$emit("pointerleave",s)}),[e.icon?(U(),Qe(a,{key:0},{default:se(()=>[(U(),Qe(jn(e.icon)))]),_:1})):Fe("v-if",!0),Xe(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var oNe=gt(nNe,[["render",rNe],["__file","dropdown-item-impl.vue"]]);const nZ=()=>{const e=$t("elDropdown",{}),t=W(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},iNe=xe({name:"ElDropdownItem",components:{ElDropdownCollectionItem:XRe,ElRovingFocusItem:WRe,ElDropdownItemImpl:oNe},inheritAttrs:!1,props:eZ,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=nZ(),o=En(),i=ee(null),a=W(()=>{var y,O;return(O=(y=v(i))==null?void 0:y.textContent)!=null?O:""}),{onItemEnter:s,onItemLeave:l}=$t(aE,void 0),u=Fo(y=>(t("pointermove",y),y.defaultPrevented),h5(y=>{if(e.disabled){l(y);return}const O=y.currentTarget;O===document.activeElement||O.contains(document.activeElement)||(s(y),y.defaultPrevented||O==null||O.focus())})),f=Fo(y=>(t("pointerleave",y),y.defaultPrevented),h5(l)),h=Fo(y=>{if(!e.disabled)return t("click",y),y.type!=="keydown"&&y.defaultPrevented},y=>{var O,b,k;if(e.disabled){y.stopImmediatePropagation();return}(O=r==null?void 0:r.hideOnClick)!=null&&O.value&&((b=r.handleClick)==null||b.call(r)),(k=r.commandHandler)==null||k.call(r,e.command,o,y)}),m=W(()=>({...e,...n}));return{handleClick:h,handlePointerMove:u,handlePointerLeave:f,textContent:a,propsAndAttrs:m}}});function aNe(e,t,n,r,o,i){var a;const s=Pn("el-dropdown-item-impl"),l=Pn("el-roving-focus-item"),u=Pn("el-dropdown-collection-item");return U(),Qe(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:se(()=>[ne(l,{focusable:!e.disabled},{default:se(()=>[ne(s,Dn(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:se(()=>[Xe(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var rZ=gt(iNe,[["render",aNe],["__file","dropdown-item.vue"]]);const sNe=xe({name:"ElDropdownMenu",props:YRe,setup(e){const t=ut("dropdown"),{_elDropdownSize:n}=nZ(),r=n.value,{focusTrapRef:o,onKeydown:i}=$t(t3,void 0),{contentRef:a,role:s,triggerId:l}=$t(aE,void 0),{collectionRef:u,getItems:f}=$t(qRe,void 0),{rovingFocusGroupRef:h,rovingFocusGroupRootStyle:m,tabIndex:y,onBlur:O,onFocus:b,onMousedown:k}=$t(y3,void 0),{collectionRef:C}=$t(v3,void 0),P=W(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),$=H2(a,u,o,h,C),T=Fo(R=>{var B;(B=e.onKeydown)==null||B.call(e,R)},R=>{const{currentTarget:B,code:I,target:N}=R;if(B.contains(N),Yt.tab===I&&R.stopImmediatePropagation(),R.preventDefault(),N!==v(a)||!HRe.includes(I))return;const L=f().filter(V=>!V.disabled).map(V=>V.ref);tZ.includes(I)&&L.reverse(),b3(L)});return{size:r,rovingFocusGroupRootStyle:m,tabIndex:y,dropdownKls:P,role:s,triggerId:l,dropdownListWrapperRef:$,handleKeydown:R=>{T(R),i(R)},onBlur:O,onFocus:b,onMousedown:k}}});function lNe(e,t,n,r,o,i){return U(),ce("ul",{ref:e.dropdownListWrapperRef,class:G(e.dropdownKls),style:Ft(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:nn(e.handleKeydown,["self"]),onMousedown:nn(e.onMousedown,["self"])},[Xe(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var oZ=gt(sNe,[["render",lNe],["__file","dropdown-menu.vue"]]);const uNe=gn(tNe,{DropdownItem:rZ,DropdownMenu:oZ}),cNe=Co(rZ),fNe=Co(oZ),dNe=xe({name:"ImgEmpty"}),hNe=xe({...dNe,setup(e){const t=ut("empty"),n=Fa();return(r,o)=>(U(),ce("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[ge("defs",null,[ge("linearGradient",{id:`linearGradient-1-${v(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ge("stop",{"stop-color":`var(${v(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),ge("stop",{"stop-color":`var(${v(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),ge("linearGradient",{id:`linearGradient-2-${v(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ge("stop",{"stop-color":`var(${v(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),ge("stop",{"stop-color":`var(${v(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),ge("rect",{id:`path-3-${v(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),ge("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[ge("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[ge("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[ge("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(${v(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),ge("polygon",{id:"Rectangle-Copy-14",fill:`var(${v(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),ge("g",{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)"},[ge("polygon",{id:"Rectangle-Copy-10",fill:`var(${v(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),ge("polygon",{id:"Rectangle-Copy-11",fill:`var(${v(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),ge("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${v(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),ge("polygon",{id:"Rectangle-Copy-13",fill:`var(${v(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),ge("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${v(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),ge("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[ge("use",{id:"Mask",fill:`var(${v(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${v(n)}`},null,8,["fill","xlink:href"]),ge("polygon",{id:"Rectangle-Copy",fill:`var(${v(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${v(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),ge("polygon",{id:"Rectangle-Copy-18",fill:`var(${v(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var pNe=gt(hNe,[["__file","img-empty.vue"]]);const gNe=pt({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),mNe=xe({name:"ElEmpty"}),vNe=xe({...mNe,props:gNe,setup(e){const t=e,{t:n}=ir(),r=ut("empty"),o=W(()=>t.description||n("el.table.emptyText")),i=W(()=>({width:Qo(t.imageSize)}));return(a,s)=>(U(),ce("div",{class:G(v(r).b())},[ge("div",{class:G(v(r).e("image")),style:Ft(v(i))},[a.image?(U(),ce("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):Xe(a.$slots,"image",{key:1},()=>[ne(pNe)])],6),ge("div",{class:G(v(r).e("description"))},[a.$slots.description?Xe(a.$slots,"description",{key:0}):(U(),ce("p",{key:1},ct(v(o)),1))],2),a.$slots.default?(U(),ce("div",{key:0,class:G(v(r).e("bottom"))},[Xe(a.$slots,"default")],2)):Fe("v-if",!0)],2))}});var yNe=gt(vNe,[["__file","empty.vue"]]);const iZ=gn(yNe),bNe=pt({urlList:{type:Le(Array),default:()=>xo([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:Le(String)}}),_Ne={close:()=>!0,switch:e=>tn(e),rotate:e=>tn(e)},ONe=xe({name:"ElImageViewer"}),wNe=xe({...ONe,props:bNe,emits:_Ne,setup(e,{expose:t,emit:n}){var r;const o=e,i={CONTAIN:{name:"contain",icon:md(AY)},ORIGINAL:{name:"original",icon:md(wSe)}},{t:a}=ir(),s=ut("image-viewer"),{nextZIndex:l}=k0(),u=ee(),f=ee([]),h=Zoe(),m=ee(!0),y=ee(o.initialIndex),O=to(i.CONTAIN),b=ee({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),k=ee((r=o.zIndex)!=null?r:l()),C=W(()=>{const{urlList:q}=o;return q.length<=1}),P=W(()=>y.value===0),$=W(()=>y.value===o.urlList.length-1),T=W(()=>o.urlList[y.value]),A=W(()=>[s.e("btn"),s.e("prev"),s.is("disabled",!o.infinite&&P.value)]),R=W(()=>[s.e("btn"),s.e("next"),s.is("disabled",!o.infinite&&$.value)]),B=W(()=>{const{scale:q,deg:ue,offsetX:he,offsetY:le,enableTransition:ze}=b.value;let Ee=he/q,Be=le/q;const Ae=ue*Math.PI/180,_e=Math.cos(Ae),ve=Math.sin(Ae);Ee=Ee*_e+Be*ve,Be=Be*_e-he/q*ve;const Ne={transform:`scale(${q}) rotate(${ue}deg) translate(${Ee}px, ${Be}px)`,transition:ze?"transform .3s":""};return O.value.name===i.CONTAIN.name&&(Ne.maxWidth=Ne.maxHeight="100%"),Ne});function I(){j(),n("close")}function N(){const q=yd(he=>{switch(he.code){case Yt.esc:o.closeOnPressEscape&&I();break;case Yt.space:K();break;case Yt.left:re();break;case Yt.up:z("zoomIn");break;case Yt.right:J();break;case Yt.down:z("zoomOut");break}}),ue=yd(he=>{const le=he.deltaY||he.deltaX;z(le<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});h.run(()=>{Nr(document,"keydown",q),Nr(document,"wheel",ue)})}function j(){h.stop()}function L(){m.value=!1}function V(q){m.value=!1,q.target.alt=a("el.image.error")}function X(q){if(m.value||q.button!==0||!u.value)return;b.value.enableTransition=!1;const{offsetX:ue,offsetY:he}=b.value,le=q.pageX,ze=q.pageY,Ee=yd(Ae=>{b.value={...b.value,offsetX:ue+Ae.pageX-le,offsetY:he+Ae.pageY-ze}}),Be=Nr(document,"mousemove",Ee);Nr(document,"mouseup",()=>{Be()}),q.preventDefault()}function oe(){b.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function K(){if(m.value)return;const q=Yy(i),ue=Object.values(i),he=O.value.name,ze=(ue.findIndex(Ee=>Ee.name===he)+1)%q.length;O.value=i[q[ze]],oe()}function Z(q){const ue=o.urlList.length;y.value=(q+ue)%ue}function re(){P.value&&!o.infinite||Z(y.value-1)}function J(){$.value&&!o.infinite||Z(y.value+1)}function z(q,ue={}){if(m.value)return;const{minScale:he,maxScale:le}=o,{zoomRate:ze,rotateDeg:Ee,enableTransition:Be}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...ue};switch(q){case"zoomOut":b.value.scale>he&&(b.value.scale=Number.parseFloat((b.value.scale/ze).toFixed(3)));break;case"zoomIn":b.value.scale<le&&(b.value.scale=Number.parseFloat((b.value.scale*ze).toFixed(3)));break;case"clockwise":b.value.deg+=Ee,n("rotate",b.value.deg);break;case"anticlockwise":b.value.deg-=Ee,n("rotate",b.value.deg);break}b.value.enableTransition=Be}return at(T,()=>{Wt(()=>{const q=f.value[0];q!=null&&q.complete||(m.value=!0)})}),at(y,q=>{oe(),n("switch",q)}),vn(()=>{var q,ue;N(),(ue=(q=u.value)==null?void 0:q.focus)==null||ue.call(q)}),t({setActiveItem:Z}),(q,ue)=>(U(),Qe(v(E0),{to:"body",disabled:!q.teleported},{default:se(()=>[ne(Mi,{name:"viewer-fade",appear:""},{default:se(()=>[ge("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:G(v(s).e("wrapper")),style:Ft({zIndex:k.value})},[ge("div",{class:G(v(s).e("mask")),onClick:nn(he=>q.hideOnClickModal&&I(),["self"])},null,10,["onClick"]),Fe(" CLOSE "),ge("span",{class:G([v(s).e("btn"),v(s).e("close")]),onClick:I},[ne(v(Lt),null,{default:se(()=>[ne(v(Ts))]),_:1})],2),Fe(" ARROW "),v(C)?Fe("v-if",!0):(U(),ce(Pt,{key:0},[ge("span",{class:G(v(A)),onClick:re},[ne(v(Lt),null,{default:se(()=>[ne(v(sp))]),_:1})],2),ge("span",{class:G(v(R)),onClick:J},[ne(v(Lt),null,{default:se(()=>[ne(v(Es))]),_:1})],2)],64)),Fe(" ACTIONS "),ge("div",{class:G([v(s).e("btn"),v(s).e("actions")])},[ge("div",{class:G(v(s).e("actions__inner"))},[ne(v(Lt),{onClick:he=>z("zoomOut")},{default:se(()=>[ne(v(BSe))]),_:1},8,["onClick"]),ne(v(Lt),{onClick:he=>z("zoomIn")},{default:se(()=>[ne(v(IY))]),_:1},8,["onClick"]),ge("i",{class:G(v(s).e("actions__divider"))},null,2),ne(v(Lt),{onClick:K},{default:se(()=>[(U(),Qe(jn(v(O).icon)))]),_:1}),ge("i",{class:G(v(s).e("actions__divider"))},null,2),ne(v(Lt),{onClick:he=>z("anticlockwise")},{default:se(()=>[ne(v(bSe))]),_:1},8,["onClick"]),ne(v(Lt),{onClick:he=>z("clockwise")},{default:se(()=>[ne(v(MY))]),_:1},8,["onClick"])],2)],2),Fe(" CANVAS "),ge("div",{class:G(v(s).e("canvas"))},[(U(!0),ce(Pt,null,_n(q.urlList,(he,le)=>bn((U(),ce("img",{ref_for:!0,ref:ze=>f.value[le]=ze,key:he,src:he,style:Ft(v(B)),class:G(v(s).e("img")),crossorigin:q.crossorigin,onLoad:L,onError:V,onMousedown:X},null,46,["src","crossorigin"])),[[gr,le===y.value]])),128))],2),Xe(q.$slots,"default")],6)]),_:3})]),_:3},8,["disabled"]))}});var SNe=gt(wNe,[["__file","image-viewer.vue"]]);const aZ=gn(SNe),xNe=pt({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Le([String,Object])},previewSrcList:{type:Le(Array),default:()=>xo([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:Le(String)}}),kNe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>tn(e),close:()=>!0,show:()=>!0},CNe=xe({name:"ElImage",inheritAttrs:!1}),ENe=xe({...CNe,props:xNe,emits:kNe,setup(e,{emit:t}){const n=e;let r="";const{t:o}=ir(),i=ut("image"),a=Em(),s=W(()=>Wy(Object.entries(a).filter(([J])=>/^(data-|on[A-Z])/i.test(J)||["id","style"].includes(J)))),l=AD({excludeListeners:!0,excludeKeys:W(()=>Object.keys(s.value))}),u=ee(),f=ee(!1),h=ee(!0),m=ee(!1),y=ee(),O=ee(),b=rr&&"loading"in HTMLImageElement.prototype;let k,C;const P=W(()=>[i.e("inner"),T.value&&i.e("preview"),h.value&&i.is("loading")]),$=W(()=>{const{fit:J}=n;return rr&&J?{objectFit:J}:{}}),T=W(()=>{const{previewSrcList:J}=n;return Array.isArray(J)&&J.length>0}),A=W(()=>{const{previewSrcList:J,initialIndex:z}=n;let q=z;return z>J.length-1&&(q=0),q}),R=W(()=>n.loading==="eager"?!1:!b&&n.loading==="lazy"||n.lazy),B=()=>{!rr||(h.value=!0,f.value=!1,u.value=n.src)};function I(J){h.value=!1,f.value=!1,t("load",J)}function N(J){h.value=!1,f.value=!0,t("error",J)}function j(){Wse(y.value,O.value)&&(B(),X())}const L=GQ(j,200,!0);async function V(){var J;if(!rr)return;await Wt();const{scrollContainer:z}=n;Ll(z)?O.value=z:Gt(z)&&z!==""?O.value=(J=document.querySelector(z))!=null?J:void 0:y.value&&(O.value=OD(y.value)),O.value&&(k=Nr(O,"scroll",L),setTimeout(()=>j(),100))}function X(){!rr||!O.value||!L||(k==null||k(),O.value=void 0)}function oe(J){if(!!J.ctrlKey){if(J.deltaY<0)return J.preventDefault(),!1;if(J.deltaY>0)return J.preventDefault(),!1}}function K(){!T.value||(C=Nr("wheel",oe,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",m.value=!0,t("show"))}function Z(){C==null||C(),document.body.style.overflow=r,m.value=!1,t("close")}function re(J){t("switch",J)}return at(()=>n.src,()=>{R.value?(h.value=!0,f.value=!1,X(),V()):B()}),vn(()=>{R.value?V():B()}),(J,z)=>(U(),ce("div",Dn({ref_key:"container",ref:y},v(s),{class:[v(i).b(),J.$attrs.class]}),[f.value?Xe(J.$slots,"error",{key:0},()=>[ge("div",{class:G(v(i).e("error"))},ct(v(o)("el.image.error")),3)]):(U(),ce(Pt,{key:1},[u.value!==void 0?(U(),ce("img",Dn({key:0},v(l),{src:u.value,loading:J.loading,style:v($),class:v(P),crossorigin:J.crossorigin,onClick:K,onLoad:I,onError:N}),null,16,["src","loading","crossorigin"])):Fe("v-if",!0),h.value?(U(),ce("div",{key:1,class:G(v(i).e("wrapper"))},[Xe(J.$slots,"placeholder",{},()=>[ge("div",{class:G(v(i).e("placeholder"))},null,2)])],2)):Fe("v-if",!0)],64)),v(T)?(U(),ce(Pt,{key:2},[m.value?(U(),Qe(v(aZ),{key:0,"z-index":J.zIndex,"initial-index":v(A),infinite:J.infinite,"zoom-rate":J.zoomRate,"min-scale":J.minScale,"max-scale":J.maxScale,"url-list":J.previewSrcList,crossorigin:J.crossorigin,"hide-on-click-modal":J.hideOnClickModal,teleported:J.previewTeleported,"close-on-press-escape":J.closeOnPressEscape,onClose:Z,onSwitch:re},{default:se(()=>[J.$slots.viewer?(U(),ce("div",{key:0},[Xe(J.$slots,"viewer")])):Fe("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):Fe("v-if",!0)],64)):Fe("v-if",!0)],16))}});var TNe=gt(ENe,[["__file","image.vue"]]);const PNe=gn(TNe),$Ne=pt({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:Ni,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||tn(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...va(["ariaLabel"])}),ANe={[uo]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Ps]:e=>tn(e)||Wi(e),[Tn]:e=>tn(e)||Wi(e)},MNe=xe({name:"ElInputNumber"}),RNe=xe({...MNe,props:$Ne,emits:ANe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=ir(),i=ut("input-number"),a=ee(),s=or({currentValue:r.modelValue,userInput:null}),{formItem:l}=cs(),u=W(()=>tn(r.modelValue)&&r.modelValue<=r.min),f=W(()=>tn(r.modelValue)&&r.modelValue>=r.max),h=W(()=>{const K=C(r.step);return zo(r.precision)?Math.max(C(r.modelValue),K):(K>r.precision,r.precision)}),m=W(()=>r.controls&&r.controlsPosition==="right"),y=wi(),O=Ls(),b=W(()=>{if(s.userInput!==null)return s.userInput;let K=s.currentValue;if(Wi(K))return"";if(tn(K)){if(Number.isNaN(K))return"";zo(r.precision)||(K=K.toFixed(r.precision))}return K}),k=(K,Z)=>{if(zo(Z)&&(Z=h.value),Z===0)return Math.round(K);let re=String(K);const J=re.indexOf(".");if(J===-1||!re.replace(".","").split("")[J+Z])return K;const ue=re.length;return re.charAt(ue-1)==="5"&&(re=`${re.slice(0,Math.max(0,ue-1))}6`),Number.parseFloat(Number(re).toFixed(Z))},C=K=>{if(Wi(K))return 0;const Z=K.toString(),re=Z.indexOf(".");let J=0;return re!==-1&&(J=Z.length-re-1),J},P=(K,Z=1)=>tn(K)?k(K+r.step*Z):s.currentValue,$=()=>{if(r.readonly||O.value||f.value)return;const K=Number(b.value)||0,Z=P(K);R(Z),n(Ps,s.currentValue),X()},T=()=>{if(r.readonly||O.value||u.value)return;const K=Number(b.value)||0,Z=P(K,-1);R(Z),n(Ps,s.currentValue),X()},A=(K,Z)=>{const{max:re,min:J,step:z,precision:q,stepStrictly:ue,valueOnClear:he}=r;re<J&&Ri("InputNumber","min should not be greater than max.");let le=Number(K);if(Wi(K)||Number.isNaN(le))return null;if(K===""){if(he===null)return null;le=Gt(he)?{min:J,max:re}[he]:he}return ue&&(le=k(Math.round(le/z)*z,q)),zo(q)||(le=k(le,q)),(le>re||le<J)&&(le=le>re?re:J,Z&&n(Tn,le)),le},R=(K,Z=!0)=>{var re;const J=s.currentValue,z=A(K);if(!Z){n(Tn,z);return}J===z&&K||(s.userInput=null,n(Tn,z),J!==z&&n(uo,z,J),r.validateEvent&&((re=l==null?void 0:l.validate)==null||re.call(l,"change").catch(q=>void 0)),s.currentValue=z)},B=K=>{s.userInput=K;const Z=K===""?null:Number(K);n(Ps,Z),R(Z,!1)},I=K=>{const Z=K!==""?Number(K):"";(tn(Z)&&!Number.isNaN(Z)||K==="")&&R(Z),X(),s.userInput=null},N=()=>{var K,Z;(Z=(K=a.value)==null?void 0:K.focus)==null||Z.call(K)},j=()=>{var K,Z;(Z=(K=a.value)==null?void 0:K.blur)==null||Z.call(K)},L=K=>{n("focus",K)},V=K=>{var Z;s.userInput=null,n("blur",K),r.validateEvent&&((Z=l==null?void 0:l.validate)==null||Z.call(l,"blur").catch(re=>void 0))},X=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)},oe=K=>{document.activeElement===K.target&&K.preventDefault()};return at(()=>r.modelValue,(K,Z)=>{const re=A(K,!0);s.userInput===null&&re!==Z&&(s.currentValue=re)},{immediate:!0}),vn(()=>{var K;const{min:Z,max:re,modelValue:J}=r,z=(K=a.value)==null?void 0:K.input;if(z.setAttribute("role","spinbutton"),Number.isFinite(re)?z.setAttribute("aria-valuemax",String(re)):z.removeAttribute("aria-valuemax"),Number.isFinite(Z)?z.setAttribute("aria-valuemin",String(Z)):z.removeAttribute("aria-valuemin"),z.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),z.setAttribute("aria-disabled",String(O.value)),!tn(J)&&J!=null){let q=Number(J);Number.isNaN(q)&&(q=null),n(Tn,q)}z.addEventListener("wheel",oe,{passive:!1})}),wc(()=>{var K,Z;const re=(K=a.value)==null?void 0:K.input;re==null||re.setAttribute("aria-valuenow",`${(Z=s.currentValue)!=null?Z:""}`)}),t({focus:N,blur:j}),(K,Z)=>(U(),ce("div",{class:G([v(i).b(),v(i).m(v(y)),v(i).is("disabled",v(O)),v(i).is("without-controls",!K.controls),v(i).is("controls-right",v(m))]),onDragstart:nn(()=>{},["prevent"])},[K.controls?bn((U(),ce("span",{key:0,role:"button","aria-label":v(o)("el.inputNumber.decrease"),class:G([v(i).e("decrease"),v(i).is("disabled",v(u))]),onKeydown:Qr(T,["enter"])},[Xe(K.$slots,"decrease-icon",{},()=>[ne(v(Lt),null,{default:se(()=>[v(m)?(U(),Qe(v(Dd),{key:0})):(U(),Qe(v(uSe),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[v(cC),T]]):Fe("v-if",!0),K.controls?bn((U(),ce("span",{key:1,role:"button","aria-label":v(o)("el.inputNumber.increase"),class:G([v(i).e("increase"),v(i).is("disabled",v(f))]),onKeydown:Qr($,["enter"])},[Xe(K.$slots,"increase-icon",{},()=>[ne(v(Lt),null,{default:se(()=>[v(m)?(U(),Qe(v(SD),{key:0})):(U(),Qe(v(oC),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[v(cC),$]]):Fe("v-if",!0),ne(v(ri),{id:K.id,ref_key:"input",ref:a,type:"number",step:K.step,"model-value":v(b),placeholder:K.placeholder,readonly:K.readonly,disabled:v(O),size:v(y),max:K.max,min:K.min,name:K.name,"aria-label":K.ariaLabel,"validate-event":!1,onKeydown:[Qr(nn($,["prevent"]),["up"]),Qr(nn(T,["prevent"]),["down"])],onBlur:V,onFocus:L,onInput:B,onChange:I},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var NNe=gt(RNe,[["__file","input-number.vue"]]);const sZ=gn(NNe),INe=pt({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Wr}}),DNe={click:e=>e instanceof MouseEvent},jNe=xe({name:"ElLink"}),LNe=xe({...jNe,props:INe,emits:DNe,setup(e,{emit:t}){const n=e,r=ut("link"),o=W(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(a){n.disabled||t("click",a)}return(a,s)=>(U(),ce("a",{class:G(v(o)),href:a.disabled||!a.href?void 0:a.href,target:a.disabled||!a.href?void 0:a.target,onClick:i},[a.icon?(U(),Qe(v(Lt),{key:0},{default:se(()=>[(U(),Qe(jn(a.icon)))]),_:1})):Fe("v-if",!0),a.$slots.default?(U(),ce("span",{key:1,class:G(v(r).e("inner"))},[Xe(a.$slots,"default")],2)):Fe("v-if",!0),a.$slots.icon?Xe(a.$slots,"icon",{key:2}):Fe("v-if",!0)],10,["href","target"]))}});var BNe=gt(LNe,[["__file","link.vue"]]);const VNe=gn(BNe);class FNe{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 o=!1;switch(r.code){case Yt.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case Yt.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case Yt.tab:{ck(t,"mouseleave");break}case Yt.enter:case Yt.space:{o=!0,r.currentTarget.click();break}}return o&&(r.preventDefault(),r.stopPropagation()),!1})})}}class zNe{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 FNe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Yt.down:{ck(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Yt.up:{ck(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Yt.tab:{ck(t.currentTarget,"mouseleave");break}case Yt.enter:case Yt.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class QNe{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 zNe(r,t)})}}const WNe=xe({name:"ElMenuCollapseTransition",setup(){const e=ut("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Ou(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){ls(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Gs(n,e.m("collapse"))?(ls(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Ou(n,e.m("collapse"))):(Ou(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ls(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Ou(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function YNe(e,t,n,r,o,i){return U(),Qe(Mi,Dn({mode:"out-in"},e.listeners),{default:se(()=>[Xe(e.$slots,"default")]),_:3},16)}var UNe=gt(WNe,[["render",YNe],["__file","menu-collapse-transition.vue"]]);function lZ(e,t){const n=W(()=>{let o=e.parent;const i=[t.value];for(;o.type.name!=="ElMenu";)o.props.index&&i.unshift(o.props.index),o=o.parent;return i});return{parentMenu:W(()=>{let o=e.parent;for(;o&&!["ElMenu","ElSubMenu"].includes(o.type.name);)o=o.parent;return o}),indexPath:n}}function HNe(e){return W(()=>{const n=e.backgroundColor;return n?new FU(n).shade(20).toString():""})}const uZ=(e,t)=>{const n=ut("menu");return W(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":HNe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},ZNe=pt({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Wr},expandOpenIcon:{type:Wr},collapseCloseIcon:{type:Wr},collapseOpenIcon:{type:Wr}}),vA="ElSubMenu";var _3=xe({name:vA,props:ZNe,setup(e,{slots:t,expose:n}){const r=En(),{indexPath:o,parentMenu:i}=lZ(r,W(()=>e.index)),a=ut("menu"),s=ut("sub-menu"),l=$t("rootMenu");l||Ri(vA,"can not inject root menu");const u=$t(`subMenu:${i.value.uid}`);u||Ri(vA,"can not inject sub menu");const f=ee({}),h=ee({});let m;const y=ee(!1),O=ee(),b=ee(null),k=W(()=>I.value==="horizontal"&&P.value?"bottom-start":"right-start"),C=W(()=>I.value==="horizontal"&&P.value||I.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?R.value?e.expandOpenIcon:e.expandCloseIcon:Dd:e.collapseCloseIcon&&e.collapseOpenIcon?R.value?e.collapseOpenIcon:e.collapseCloseIcon:Es),P=W(()=>u.level===0),$=W(()=>{const q=e.teleported;return q===void 0?P.value:q}),T=W(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),A=W(()=>I.value==="horizontal"&&P.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),R=W(()=>l.openedMenus.includes(e.index)),B=W(()=>{let q=!1;return Object.values(f.value).forEach(ue=>{ue.active&&(q=!0)}),Object.values(h.value).forEach(ue=>{ue.active&&(q=!0)}),q}),I=W(()=>l.props.mode),N=or({index:e.index,indexPath:o,active:B}),j=uZ(l.props,u.level+1),L=W(()=>{var q;return(q=e.popperOffset)!=null?q:l.props.popperOffset}),V=W(()=>{var q;return(q=e.popperClass)!=null?q:l.props.popperClass}),X=W(()=>{var q;return(q=e.showTimeout)!=null?q:l.props.showTimeout}),oe=W(()=>{var q;return(q=e.hideTimeout)!=null?q:l.props.hideTimeout}),K=()=>{var q,ue,he;return(he=(ue=(q=b.value)==null?void 0:q.popperRef)==null?void 0:ue.popperInstanceRef)==null?void 0:he.destroy()},Z=q=>{q||K()},re=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:o.value,active:B.value})},J=(q,ue=X.value)=>{var he;if(q.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,m==null||m(),{stop:m}=dm(()=>{l.openMenu(e.index,o.value)},ue),$.value&&((he=i.value.vnode.el)==null||he.dispatchEvent(new MouseEvent("mouseenter")))}},z=(q=!1)=>{var ue;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}m==null||m(),u.mouseInChild.value=!1,{stop:m}=dm(()=>!y.value&&l.closeMenu(e.index,o.value),oe.value),$.value&&q&&((ue=u.handleMouseleave)==null||ue.call(u,!0))};at(()=>l.props.collapse,q=>Z(Boolean(q)));{const q=he=>{h.value[he.index]=he},ue=he=>{delete h.value[he.index]};Yn(`subMenu:${r.uid}`,{addSubMenu:q,removeSubMenu:ue,handleMouseleave:z,mouseInChild:y,level:u.level+1})}return n({opened:R}),vn(()=>{l.addSubMenu(N),u.addSubMenu(N)}),qr(()=>{u.removeSubMenu(N),l.removeSubMenu(N)}),()=>{var q;const ue=[(q=t.title)==null?void 0:q.call(t),Ht(Lt,{class:s.e("icon-arrow"),style:{transform:R.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Gt(C.value)?Ht(r.appContext.components[C.value]):Ht(C.value)})],he=l.isMenuPopup?Ht(ia,{ref:b,visible:R.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:!0,popperClass:V.value,placement:k.value,teleported:$.value,fallbackPlacements:A.value,transition:T.value,gpuAcceleration:!1},{content:()=>{var le;return Ht("div",{class:[a.m(I.value),a.m("popup-container"),V.value],onMouseenter:ze=>J(ze,100),onMouseleave:()=>z(!0),onFocus:ze=>J(ze,100)},[Ht("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${k.value}`)],style:j.value},[(le=t.default)==null?void 0:le.call(t)])])},default:()=>Ht("div",{class:s.e("title"),onClick:re},ue)}):Ht(Pt,{},[Ht("div",{class:s.e("title"),ref:O,onClick:re},ue),Ht(oE,{},{default:()=>{var le;return bn(Ht("ul",{role:"menu",class:[a.b(),a.m("inline")],style:j.value},[(le=t.default)==null?void 0:le.call(t)]),[[gr,R.value]])}})]);return Ht("li",{class:[s.b(),s.is("active",B.value),s.is("opened",R.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:R.value,onMouseenter:J,onMouseleave:()=>z(),onFocus:J},[he])}}});const XNe=pt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Le(Array),default:()=>xo([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Wr,default:()=>dSe},popperEffect:{type:Le(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),yA=e=>Array.isArray(e)&&e.every(t=>Gt(t)),qNe={close:(e,t)=>Gt(e)&&yA(t),open:(e,t)=>Gt(e)&&yA(t),select:(e,t,n,r)=>Gt(e)&&yA(t)&&$n(n)&&(r===void 0||r instanceof Promise)};var KNe=xe({name:"ElMenu",props:XNe,emits:qNe,setup(e,{emit:t,slots:n,expose:r}){const o=En(),i=o.appContext.config.globalProperties.$router,a=ee(),s=ut("menu"),l=ut("sub-menu"),u=ee(-1),f=ee(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),h=ee(e.defaultActive),m=ee({}),y=ee({}),O=W(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),b=()=>{const oe=h.value&&m.value[h.value];if(!oe||e.mode==="horizontal"||e.collapse)return;oe.indexPath.forEach(Z=>{const re=y.value[Z];re&&k(Z,re.indexPath)})},k=(oe,K)=>{f.value.includes(oe)||(e.uniqueOpened&&(f.value=f.value.filter(Z=>K.includes(Z))),f.value.push(oe),t("open",oe,K))},C=oe=>{const K=f.value.indexOf(oe);K!==-1&&f.value.splice(K,1)},P=(oe,K)=>{C(oe),t("close",oe,K)},$=({index:oe,indexPath:K})=>{f.value.includes(oe)?P(oe,K):k(oe,K)},T=oe=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:K,indexPath:Z}=oe;if(!(Wi(K)||Wi(Z)))if(e.router&&i){const re=oe.route||K,J=i.push(re).then(z=>(z||(h.value=K),z));t("select",K,Z,{index:K,indexPath:Z,route:re},J)}else h.value=K,t("select",K,Z,{index:K,indexPath:Z})},A=oe=>{const K=m.value,Z=K[oe]||h.value&&K[h.value]||K[e.defaultActive];Z?h.value=Z.index:h.value=oe},R=oe=>{const K=getComputedStyle(oe),Z=Number.parseInt(K.marginLeft,10),re=Number.parseInt(K.marginRight,10);return oe.offsetWidth+Z+re||0},B=()=>{var oe,K;if(!a.value)return-1;const Z=Array.from((K=(oe=a.value)==null?void 0:oe.childNodes)!=null?K:[]).filter(ze=>ze.nodeName!=="#comment"&&(ze.nodeName!=="#text"||ze.nodeValue)),re=64,J=getComputedStyle(a.value),z=Number.parseInt(J.paddingLeft,10),q=Number.parseInt(J.paddingRight,10),ue=a.value.clientWidth-z-q;let he=0,le=0;return Z.forEach((ze,Ee)=>{he+=R(ze),he<=ue-re&&(le=Ee+1)}),le===Z.length?-1:le},I=oe=>y.value[oe].indexPath,N=(oe,K=33.34)=>{let Z;return()=>{Z&&clearTimeout(Z),Z=setTimeout(()=>{oe()},K)}};let j=!0;const L=()=>{if(u.value===B())return;const oe=()=>{u.value=-1,Wt(()=>{u.value=B()})};j?oe():N(oe)(),j=!1};at(()=>e.defaultActive,oe=>{m.value[oe]||(h.value=""),A(oe)}),at(()=>e.collapse,oe=>{oe&&(f.value=[])}),at(m.value,b);let V;Ba(()=>{e.mode==="horizontal"&&e.ellipsis?V=So(a,L).stop:V==null||V()});const X=ee(!1);{const oe=J=>{y.value[J.index]=J},K=J=>{delete y.value[J.index]};Yn("rootMenu",or({props:e,openedMenus:f,items:m,subMenus:y,activeIndex:h,isMenuPopup:O,addMenuItem:J=>{m.value[J.index]=J},removeMenuItem:J=>{delete m.value[J.index]},addSubMenu:oe,removeSubMenu:K,openMenu:k,closeMenu:P,handleMenuItemClick:T,handleSubMenuClick:$})),Yn(`subMenu:${o.uid}`,{addSubMenu:oe,removeSubMenu:K,mouseInChild:X,level:0})}return vn(()=>{e.mode==="horizontal"&&new QNe(o.vnode.el,s.namespace.value)}),r({open:K=>{const{indexPath:Z}=y.value[K];Z.forEach(re=>k(re,Z))},close:C,handleResize:L}),()=>{var oe,K;let Z=(K=(oe=n.default)==null?void 0:oe.call(n))!=null?K:[];const re=[];if(e.mode==="horizontal"&&a.value){const ue=Zh(Z),he=u.value===-1?ue:ue.slice(0,u.value),le=u.value===-1?[]:ue.slice(u.value);(le==null?void 0:le.length)&&e.ellipsis&&(Z=he,re.push(Ht(_3,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Ht(Lt,{class:l.e("icon-more")},{default:()=>Ht(e.ellipsisIcon)}),default:()=>le})))}const J=uZ(e,0),z=e.closeOnClickOutside?[[Sd,()=>{!f.value.length||X.value||(f.value.forEach(ue=>t("close",ue,I(ue))),f.value=[])}]]:[],q=bn(Ht("ul",{key:String(e.collapse),role:"menubar",ref:a,style:J.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...Z,...re]),z);return e.collapseTransition&&e.mode==="vertical"?Ht(UNe,()=>q):q}}});const GNe=pt({index:{type:Le([String,null]),default:null},route:{type:Le([String,Object])},disabled:Boolean}),JNe={click:e=>Gt(e.index)&&Array.isArray(e.indexPath)},bA="ElMenuItem",eIe=xe({name:bA,components:{ElTooltip:ia},props:GNe,emits:JNe,setup(e,{emit:t}){const n=En(),r=$t("rootMenu"),o=ut("menu"),i=ut("menu-item");r||Ri(bA,"can not inject root menu");const{parentMenu:a,indexPath:s}=lZ(n,Tr(e,"index")),l=$t(`subMenu:${a.value.uid}`);l||Ri(bA,"can not inject sub menu");const u=W(()=>e.index===r.activeIndex),f=or({index:e.index,indexPath:s,active:u}),h=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",f))};return vn(()=>{l.addSubMenu(f),r.addMenuItem(f)}),qr(()=>{l.removeSubMenu(f),r.removeMenuItem(f)}),{parentMenu:a,rootMenu:r,active:u,nsMenu:o,nsMenuItem:i,handleClick:h}}});function tIe(e,t,n,r,o,i){const a=Pn("el-tooltip");return U(),ce("li",{class:G([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(U(),Qe(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:se(()=>[Xe(e.$slots,"title")]),default:se(()=>[ge("div",{class:G(e.nsMenu.be("tooltip","trigger"))},[Xe(e.$slots,"default")],2)]),_:3},8,["effect"])):(U(),ce(Pt,{key:1},[Xe(e.$slots,"default"),Xe(e.$slots,"title")],64))],10,["onClick"])}var cZ=gt(eIe,[["render",tIe],["__file","menu-item.vue"]]);const nIe={title:String},rIe="ElMenuItemGroup",oIe=xe({name:rIe,props:nIe,setup(){return{ns:ut("menu-item-group")}}});function iIe(e,t,n,r,o,i){return U(),ce("li",{class:G(e.ns.b())},[ge("div",{class:G(e.ns.e("title"))},[e.$slots.title?Xe(e.$slots,"title",{key:1}):(U(),ce(Pt,{key:0},[xt(ct(e.title),1)],64))],2),ge("ul",null,[Xe(e.$slots,"default")])],2)}var fZ=gt(oIe,[["render",iIe],["__file","menu-item-group.vue"]]);const aIe=gn(KNe,{MenuItem:cZ,MenuItemGroup:fZ,SubMenu:_3}),sIe=Co(cZ),lIe=Co(fZ),uIe=Co(_3),cIe=pt({icon:{type:Wr,default:()=>Nwe},title:String,content:{type:String,default:""}}),fIe={back:()=>!0},dIe=xe({name:"ElPageHeader"}),hIe=xe({...dIe,props:cIe,emits:fIe,setup(e,{emit:t}){const n=Ui(),{t:r}=ir(),o=ut("page-header"),i=W(()=>[o.b(),{[o.m("has-breadcrumb")]:!!n.breadcrumb,[o.m("has-extra")]:!!n.extra,[o.is("contentful")]:!!n.default}]);function a(){t("back")}return(s,l)=>(U(),ce("div",{class:G(v(i))},[s.$slots.breadcrumb?(U(),ce("div",{key:0,class:G(v(o).e("breadcrumb"))},[Xe(s.$slots,"breadcrumb")],2)):Fe("v-if",!0),ge("div",{class:G(v(o).e("header"))},[ge("div",{class:G(v(o).e("left"))},[ge("div",{class:G(v(o).e("back")),role:"button",tabindex:"0",onClick:a},[s.icon||s.$slots.icon?(U(),ce("div",{key:0,"aria-label":s.title||v(r)("el.pageHeader.title"),class:G(v(o).e("icon"))},[Xe(s.$slots,"icon",{},()=>[s.icon?(U(),Qe(v(Lt),{key:0},{default:se(()=>[(U(),Qe(jn(s.icon)))]),_:1})):Fe("v-if",!0)])],10,["aria-label"])):Fe("v-if",!0),ge("div",{class:G(v(o).e("title"))},[Xe(s.$slots,"title",{},()=>[xt(ct(s.title||v(r)("el.pageHeader.title")),1)])],2)],2),ne(v(qH),{direction:"vertical"}),ge("div",{class:G(v(o).e("content"))},[Xe(s.$slots,"content",{},()=>[xt(ct(s.content),1)])],2)],2),s.$slots.extra?(U(),ce("div",{key:0,class:G(v(o).e("extra"))},[Xe(s.$slots,"extra")],2)):Fe("v-if",!0)],2),s.$slots.default?(U(),ce("div",{key:1,class:G(v(o).e("main"))},[Xe(s.$slots,"default")],2)):Fe("v-if",!0)],2))}});var pIe=gt(hIe,[["__file","page-header.vue"]]);const gIe=gn(pIe),dZ=Symbol("elPaginationKey"),mIe=pt({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Wr}}),vIe={click:e=>e instanceof MouseEvent},yIe=xe({name:"ElPaginationPrev"}),bIe=xe({...yIe,props:mIe,emits:vIe,setup(e){const t=e,{t:n}=ir(),r=W(()=>t.disabled||t.currentPage<=1);return(o,i)=>(U(),ce("button",{type:"button",class:"btn-prev",disabled:v(r),"aria-label":o.prevText||v(n)("el.pagination.prev"),"aria-disabled":v(r),onClick:a=>o.$emit("click",a)},[o.prevText?(U(),ce("span",{key:0},ct(o.prevText),1)):(U(),Qe(v(Lt),{key:1},{default:se(()=>[(U(),Qe(jn(o.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var _Ie=gt(bIe,[["__file","prev.vue"]]);const OIe=pt({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Wr}}),wIe=xe({name:"ElPaginationNext"}),SIe=xe({...wIe,props:OIe,emits:["click"],setup(e){const t=e,{t:n}=ir(),r=W(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,i)=>(U(),ce("button",{type:"button",class:"btn-next",disabled:v(r),"aria-label":o.nextText||v(n)("el.pagination.next"),"aria-disabled":v(r),onClick:a=>o.$emit("click",a)},[o.nextText?(U(),ce("span",{key:0},ct(o.nextText),1)):(U(),Qe(v(Lt),{key:1},{default:se(()=>[(U(),Qe(jn(o.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var xIe=gt(SIe,[["__file","next.vue"]]);const hZ=Symbol("ElSelectGroup"),P0=Symbol("ElSelect");function kIe(e,t){const n=$t(P0),r=$t(hZ,{disabled:!1}),o=W(()=>f(Da(n.props.modelValue),e.value)),i=W(()=>{var y;if(n.props.multiple){const O=Da((y=n.props.modelValue)!=null?y:[]);return!o.value&&O.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=W(()=>e.label||($n(e.value)?"":e.value)),s=W(()=>e.value||e.label||""),l=W(()=>e.disabled||t.groupDisabled||i.value),u=En(),f=(y=[],O)=>{if($n(e.value)){const b=n.props.valueKey;return y&&y.some(k=>dr(No(k,b))===No(O,b))}else return y&&y.includes(O)},h=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},m=y=>{const O=new RegExp(_D(y),"i");t.visible=O.test(a.value)||e.created};return at(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),at(()=>e.value,(y,O)=>{const{remote:b,valueKey:k}=n.props;if(y!==O&&(n.onOptionDestroy(O,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!b){if(k&&$n(y)&&$n(O)&&y[k]===O[k])return;n.setSelected()}}),at(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:s,itemSelected:o,isDisabled:l,hoverItem:h,updateOption:m}}const CIe=xe({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=ut("select"),n=Fa(),r=W(()=>[t.be("dropdown","item"),t.is("disabled",v(s)),t.is("selected",v(a)),t.is("hovering",v(m))]),o=or({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:f}=kIe(e,o),{visible:h,hover:m}=ra(o),y=En().proxy;l.onOptionCreate(y),qr(()=>{const b=y.value,{selected:k}=l.states,P=(l.props.multiple?k:[k]).some($=>$.value===y.value);Wt(()=>{l.states.cachedOptions.get(b)===y&&!P&&l.states.cachedOptions.delete(b)}),l.onOptionDestroy(b,y)});function O(){s.value||l.handleOptionSelect(y)}return{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:f,visible:h,hover:m,selectOptionClick:O,states:o}}});function EIe(e,t,n,r,o,i){return bn((U(),ce("li",{id:e.id,class:G(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:nn(e.selectOptionClick,["stop"])},[Xe(e.$slots,"default",{},()=>[ge("span",null,ct(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[gr,e.visible]])}var O3=gt(CIe,[["render",EIe],["__file","option.vue"]]);const TIe=xe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=$t(P0),t=ut("select"),n=W(()=>e.props.popperClass),r=W(()=>e.props.multiple),o=W(()=>e.props.fitInputWidth),i=ee("");function a(){var s;i.value=`${(s=e.selectRef)==null?void 0:s.offsetWidth}px`}return vn(()=>{a(),So(e.selectRef,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function PIe(e,t,n,r,o,i){return U(),ce("div",{class:G([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ft({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(U(),ce("div",{key:0,class:G(e.ns.be("dropdown","header"))},[Xe(e.$slots,"header")],2)):Fe("v-if",!0),Xe(e.$slots,"default"),e.$slots.footer?(U(),ce("div",{key:1,class:G(e.ns.be("dropdown","footer"))},[Xe(e.$slots,"footer")],2)):Fe("v-if",!0)],6)}var $Ie=gt(TIe,[["render",PIe],["__file","select-dropdown.vue"]]);const AIe=11,MIe=(e,t)=>{const{t:n}=ir(),r=Fa(),o=ut("select"),i=ut("input"),a=or({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=ee(null),l=ee(null),u=ee(null),f=ee(null),h=ee(null),m=ee(null),y=ee(null),O=ee(null),b=ee(null),k=ee(null),C=ee(null),P=ee(null),{isComposing:$,handleCompositionStart:T,handleCompositionUpdate:A,handleCompositionEnd:R}=G2({afterComposition:St=>kt(St)}),{wrapperRef:B,isFocused:I,handleBlur:N}=F1(h,{afterFocus(){e.automaticDropdown&&!j.value&&(j.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(St){var on,Un;return((on=u.value)==null?void 0:on.isFocusInsideContent(St))||((Un=f.value)==null?void 0:Un.isFocusInsideContent(St))},afterBlur(){j.value=!1,a.menuVisibleOnFocus=!1}}),j=ee(!1),L=ee(),{form:V,formItem:X}=cs(),{inputId:oe}=Cc(e,{formItemContext:X}),{valueOnClear:K,isEmptyValue:Z}=J2(e),re=W(()=>e.disabled||(V==null?void 0:V.disabled)),J=W(()=>Et(e.modelValue)?e.modelValue.length>0:!Z(e.modelValue)),z=W(()=>e.clearable&&!re.value&&a.inputHovering&&J.value),q=W(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),ue=W(()=>o.is("reverse",q.value&&j.value)),he=W(()=>(X==null?void 0:X.validateState)||""),le=W(()=>$D[he.value]),ze=W(()=>e.remote?300:0),Ee=W(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&Be.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),Be=W(()=>Ae.value.filter(St=>St.visible).length),Ae=W(()=>{const St=Array.from(a.options.values()),on=[];return a.optionValues.forEach(Un=>{const hr=St.findIndex(Zi=>Zi.value===Un);hr>-1&&on.push(St[hr])}),on.length>=St.length?on:St}),_e=W(()=>Array.from(a.cachedOptions.values())),ve=W(()=>{const St=Ae.value.filter(on=>!on.created).some(on=>on.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!St}),Ne=()=>{e.filterable&&rn(e.filterMethod)||e.filterable&&e.remote&&rn(e.remoteMethod)||Ae.value.forEach(St=>{var on;(on=St.updateOption)==null||on.call(St,a.inputValue)})},Se=wi(),fe=W(()=>["small"].includes(Se.value)?"small":"default"),ye=W({get(){return j.value&&Ee.value!==!1},set(St){j.value=St}}),He=W(()=>{if(e.multiple&&!zo(e.modelValue))return Da(e.modelValue).length===0&&!a.inputValue;const St=Et(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||zo(St)?!a.inputValue:!0}),be=W(()=>{var St;const on=(St=e.placeholder)!=null?St:n("el.select.placeholder");return e.multiple||!J.value?on:a.selectedLabel}),Ie=W(()=>b5?null:"mouseenter");at(()=>e.modelValue,(St,on)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",De("")),qe(),!ss(St,on)&&e.validateEvent&&(X==null||X.validate("change").catch(Un=>void 0))},{flush:"post",deep:!0}),at(()=>j.value,St=>{St?De(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",St)}),at(()=>a.options.entries(),()=>{var St;if(!rr)return;const on=((St=s.value)==null?void 0:St.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!zo(e.modelValue)||!Array.from(on).includes(document.activeElement))&&qe(),e.defaultFirstOption&&(e.filterable||e.remote)&&Be.value&&Me()},{flush:"post"}),at(()=>a.hoveringIndex,St=>{tn(St)&&St>-1?L.value=Ae.value[St]||{}:L.value={},Ae.value.forEach(on=>{on.hover=L.value===on})}),Ba(()=>{a.isBeforeHide||Ne()});const De=St=>{a.previousQuery===St||$.value||(a.previousQuery=St,e.filterable&&rn(e.filterMethod)?e.filterMethod(St):e.filterable&&e.remote&&rn(e.remoteMethod)&&e.remoteMethod(St),e.defaultFirstOption&&(e.filterable||e.remote)&&Be.value?Wt(Me):Wt(Je))},Me=()=>{const St=Ae.value.filter(hr=>hr.visible&&!hr.disabled&&!hr.states.groupDisabled),on=St.find(hr=>hr.created),Un=St[0];a.hoveringIndex=rt(Ae.value,on||Un)},qe=()=>{if(e.multiple)a.selectedLabel="";else{const on=Et(e.modelValue)?e.modelValue[0]:e.modelValue,Un=Oe(on);a.selectedLabel=Un.currentLabel,a.selected=Un;return}const St=[];zo(e.modelValue)||Da(e.modelValue).forEach(on=>{St.push(Oe(on))}),a.selected=St},Oe=St=>{let on;const Un=ak(St).toLowerCase()==="object",hr=ak(St).toLowerCase()==="null",Zi=ak(St).toLowerCase()==="undefined";for(let Go=a.cachedOptions.size-1;Go>=0;Go--){const pi=_e.value[Go];if(Un?No(pi.value,e.valueKey)===No(St,e.valueKey):pi.value===St){on={value:St,currentLabel:pi.currentLabel,get isDisabled(){return pi.isDisabled}};break}}if(on)return on;const si=Un?St.label:!hr&&!Zi?St:"";return{value:St,currentLabel:si}},Je=()=>{e.multiple?a.hoveringIndex=Ae.value.findIndex(St=>a.selected.some(on=>hi(on)===hi(St))):a.hoveringIndex=Ae.value.findIndex(St=>hi(St)===hi(a.selected))},lt=()=>{a.selectionWidth=l.value.getBoundingClientRect().width},Ke=()=>{a.calculatorWidth=m.value.getBoundingClientRect().width},et=()=>{a.collapseItemWidth=C.value.getBoundingClientRect().width},bt=()=>{var St,on;(on=(St=u.value)==null?void 0:St.updatePopper)==null||on.call(St)},Ot=()=>{var St,on;(on=(St=f.value)==null?void 0:St.updatePopper)==null||on.call(St)},Qt=()=>{a.inputValue.length>0&&!j.value&&(j.value=!0),De(a.inputValue)},kt=St=>{if(a.inputValue=St.target.value,e.remote)an();else return Qt()},an=Rs(()=>{Qt()},ze.value),Ce=St=>{ss(e.modelValue,St)||t(uo,St)},Ye=St=>j2(St,on=>!a.disabledOptions.has(on)),me=St=>{if(!!e.multiple&&St.code!==Yt.delete&&St.target.value.length<=0){const on=Da(e.modelValue).slice(),Un=Ye(on);if(Un<0)return;const hr=on[Un];on.splice(Un,1),t(Tn,on),Ce(on),t("remove-tag",hr)}},Ve=(St,on)=>{const Un=a.selected.indexOf(on);if(Un>-1&&!re.value){const hr=Da(e.modelValue).slice();hr.splice(Un,1),t(Tn,hr),Ce(hr),t("remove-tag",on.value)}St.stopPropagation(),It()},ke=St=>{St.stopPropagation();const on=e.multiple?[]:K.value;if(e.multiple)for(const Un of a.selected)Un.isDisabled&&on.push(Un.value);t(Tn,on),Ce(on),a.hoveringIndex=-1,j.value=!1,t("clear"),It()},Ze=St=>{var on;if(e.multiple){const Un=Da((on=e.modelValue)!=null?on:[]).slice(),hr=rt(Un,St.value);hr>-1?Un.splice(hr,1):(e.multipleLimit<=0||Un.length<e.multipleLimit)&&Un.push(St.value),t(Tn,Un),Ce(Un),St.created&&De(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(Tn,St.value),Ce(St.value),j.value=!1;It(),!j.value&&Wt(()=>{zt(St)})},rt=(St=[],on)=>{if(!$n(on))return St.indexOf(on);const Un=e.valueKey;let hr=-1;return St.some((Zi,si)=>dr(No(Zi,Un))===No(on,Un)?(hr=si,!0):!1),hr},zt=St=>{var on,Un,hr,Zi,si;const Ko=Et(St)?St[0]:St;let Go=null;if(Ko!=null&&Ko.value){const pi=Ae.value.filter(_t=>_t.value===Ko.value);pi.length>0&&(Go=pi[0].$el)}if(u.value&&Go){const pi=(Zi=(hr=(Un=(on=u.value)==null?void 0:on.popperRef)==null?void 0:Un.contentRef)==null?void 0:hr.querySelector)==null?void 0:Zi.call(hr,`.${o.be("dropdown","wrap")}`);pi&&wD(pi,Go)}(si=P.value)==null||si.handleScroll()},Fn=St=>{a.options.set(St.value,St),a.cachedOptions.set(St.value,St),St.disabled&&a.disabledOptions.set(St.value,St)},ot=(St,on)=>{a.options.get(St)===on&&a.options.delete(St)},Bt=W(()=>{var St,on;return(on=(St=u.value)==null?void 0:St.popperRef)==null?void 0:on.contentRef}),Sn=()=>{a.isBeforeHide=!1,Wt(()=>zt(a.selected))},It=()=>{var St;(St=h.value)==null||St.focus()},qt=()=>{xn()},Xt=St=>{ke(St)},xn=St=>{if(j.value=!1,I.value){const on=new FocusEvent("focus",St);Wt(()=>N(on))}},Br=()=>{a.inputValue.length>0?a.inputValue="":j.value=!1},ro=()=>{re.value||(b5&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:j.value=!j.value)},Oa=()=>{j.value?Ae.value[a.hoveringIndex]&&Ze(Ae.value[a.hoveringIndex]):ro()},hi=St=>$n(St.value)?No(St.value,e.valueKey):St.value,Wa=W(()=>Ae.value.filter(St=>St.visible).every(St=>St.disabled)),wa=W(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Bf=W(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Zl=St=>{if(!j.value){j.value=!0;return}if(!(a.options.size===0||a.filteredOptionsCount===0||$.value)&&!Wa.value){St==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):St==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const on=Ae.value[a.hoveringIndex];(on.disabled===!0||on.states.groupDisabled===!0||!on.visible)&&Zl(St),Wt(()=>zt(L.value))}},Hi=()=>{if(!l.value)return 0;const St=window.getComputedStyle(l.value);return Number.parseFloat(St.gap||"6px")},dl=W(()=>{const St=Hi();return{maxWidth:`${C.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-St:a.selectionWidth}px`}}),On=W(()=>({maxWidth:`${a.selectionWidth}px`})),$c=W(()=>({width:`${Math.max(a.calculatorWidth,AIe)}px`}));return So(l,lt),So(m,Ke),So(b,bt),So(B,bt),So(k,Ot),So(C,et),vn(()=>{qe()}),{inputId:oe,contentId:r,nsSelect:o,nsInput:i,states:a,isFocused:I,expanded:j,optionsArray:Ae,hoverOption:L,selectSize:Se,filteredOptionsCount:Be,resetCalculatorWidth:Ke,updateTooltip:bt,updateTagTooltip:Ot,debouncedOnInputChange:an,onInput:kt,deletePrevTag:me,deleteTag:Ve,deleteSelected:ke,handleOptionSelect:Ze,scrollToOption:zt,hasModelValue:J,shouldShowPlaceholder:He,currentPlaceholder:be,mouseEnterEventName:Ie,showClose:z,iconComponent:q,iconReverse:ue,validateState:he,validateIcon:le,showNewOption:ve,updateOptions:Ne,collapseTagSize:fe,setSelected:qe,selectDisabled:re,emptyText:Ee,handleCompositionStart:T,handleCompositionUpdate:A,handleCompositionEnd:R,onOptionCreate:Fn,onOptionDestroy:ot,handleMenuEnter:Sn,focus:It,blur:qt,handleClearClick:Xt,handleClickOutside:xn,handleEsc:Br,toggleMenu:ro,selectOption:Oa,getValueKey:hi,navigateOptions:Zl,dropdownMenuVisible:ye,showTagList:wa,collapseTagList:Bf,tagStyle:dl,collapseTagStyle:On,inputStyle:$c,popperRef:Bt,inputRef:h,tooltipRef:u,tagTooltipRef:f,calculatorRef:m,prefixRef:y,suffixRef:O,selectRef:s,wrapperRef:B,selectionRef:l,scrollbarRef:P,menuRef:b,tagMenuRef:k,collapseItemRef:C}};var RIe=xe({name:"ElOptions",setup(e,{slots:t}){const n=$t(P0);let r=[];return()=>{var o,i;const a=(o=t.default)==null?void 0:o.call(t),s=[];function l(u){!Et(u)||u.forEach(f=>{var h,m,y,O;const b=(h=(f==null?void 0:f.type)||{})==null?void 0:h.name;b==="ElOptionGroup"?l(!Gt(f.children)&&!Et(f.children)&&rn((m=f.children)==null?void 0:m.default)?(y=f.children)==null?void 0:y.default():f.children):b==="ElOption"?s.push((O=f.props)==null?void 0:O.value):Et(f.children)&&l(f.children)})}return a.length&&l((i=a[0])==null?void 0:i.children),ss(s,r)||(r=s,n&&(n.states.optionValues=s)),a}}});const NIe=pt({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Ni,effect:{type:Le(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Le(Object),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:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Ji.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Wr,default:$p},fitInputWidth:Boolean,suffixIcon:{type:Wr,default:Dd},tagType:{..._m.type,default:"info"},tagEffect:{..._m.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Le(String),values:Mm,default:"bottom-start"},fallbackPlacements:{type:Le(Array),default:["bottom-start","top-start","right","left"]},...C0,...va(["ariaLabel"])}),HB="ElSelect",IIe=xe({name:HB,componentName:HB,components:{ElSelectMenu:$Ie,ElOption:O3,ElOptions:RIe,ElTag:hp,ElScrollbar:Ec,ElTooltip:ia,ElIcon:Lt},directives:{ClickOutside:Sd},props:NIe,emits:[Tn,uo,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=MIe(e,t);return Yn(P0,or({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}});function DIe(e,t,n,r,o,i){const a=Pn("el-tag"),s=Pn("el-tooltip"),l=Pn("el-icon"),u=Pn("el-option"),f=Pn("el-options"),h=Pn("el-scrollbar"),m=Pn("el-select-menu"),y=_2("click-outside");return bn((U(),ce("div",{ref:"selectRef",class:G([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[J_(e.mouseEnterEventName)]:O=>e.states.inputHovering=!0,onMouseleave:O=>e.states.inputHovering=!1},[ne(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:O=>e.states.isBeforeHide=!1},{default:se(()=>{var O;return[ge("div",{ref:"wrapperRef",class:G([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:nn(e.toggleMenu,["prevent","stop"])},[e.$slots.prefix?(U(),ce("div",{key:0,ref:"prefixRef",class:G(e.nsSelect.e("prefix"))},[Xe(e.$slots,"prefix")],2)):Fe("v-if",!0),ge("div",{ref:"selectionRef",class:G([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Xe(e.$slots,"tag",{key:0},()=>[(U(!0),ce(Pt,null,_n(e.showTagList,b=>(U(),ce("div",{key:e.getValueKey(b),class:G(e.nsSelect.e("selected-item"))},[ne(a,{closable:!e.selectDisabled&&!b.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ft(e.tagStyle),onClose:k=>e.deleteTag(k,b)},{default:se(()=>[ge("span",{class:G(e.nsSelect.e("tags-text"))},[Xe(e.$slots,"label",{label:b.currentLabel,value:b.value},()=>[xt(ct(b.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(U(),Qe(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:se(()=>[ge("div",{ref:"collapseItemRef",class:G(e.nsSelect.e("selected-item"))},[ne(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ft(e.collapseTagStyle)},{default:se(()=>[ge("span",{class:G(e.nsSelect.e("tags-text"))}," + "+ct(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:se(()=>[ge("div",{ref:"tagMenuRef",class:G(e.nsSelect.e("selection"))},[(U(!0),ce(Pt,null,_n(e.collapseTagList,b=>(U(),ce("div",{key:e.getValueKey(b),class:G(e.nsSelect.e("selected-item"))},[ne(a,{class:"in-tooltip",closable:!e.selectDisabled&&!b.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:k=>e.deleteTag(k,b)},{default:se(()=>[ge("span",{class:G(e.nsSelect.e("tags-text"))},[Xe(e.$slots,"label",{label:b.currentLabel,value:b.value},()=>[xt(ct(b.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Fe("v-if",!0)]):Fe("v-if",!0),e.selectDisabled?Fe("v-if",!0):(U(),ce("div",{key:1,class:G([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[bn(ge("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":b=>e.states.inputValue=b,type:"text",name:e.name,class:G([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ft(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((O=e.hoverOption)==null?void 0:O.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[Qr(nn(b=>e.navigateOptions("next"),["stop","prevent"]),["down"]),Qr(nn(b=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),Qr(nn(e.handleEsc,["stop","prevent"]),["esc"]),Qr(nn(e.selectOption,["stop","prevent"]),["enter"]),Qr(nn(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:nn(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[yI,e.states.inputValue]]),e.filterable?(U(),ce("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:G(e.nsSelect.e("input-calculator")),textContent:ct(e.states.inputValue)},null,10,["textContent"])):Fe("v-if",!0)],2)),e.shouldShowPlaceholder?(U(),ce("div",{key:2,class:G([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Xe(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ge("span",null,ct(e.currentPlaceholder),1)]):(U(),ce("span",{key:1},ct(e.currentPlaceholder),1))],2)):Fe("v-if",!0)],2),ge("div",{ref:"suffixRef",class:G(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(U(),Qe(l,{key:0,class:G([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:se(()=>[(U(),Qe(jn(e.iconComponent)))]),_:1},8,["class"])):Fe("v-if",!0),e.showClose&&e.clearIcon?(U(),Qe(l,{key:1,class:G([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:se(()=>[(U(),Qe(jn(e.clearIcon)))]),_:1},8,["class","onClick"])):Fe("v-if",!0),e.validateState&&e.validateIcon?(U(),Qe(l,{key:2,class:G([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:se(()=>[(U(),Qe(jn(e.validateIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],2)],10,["onClick"])]}),content:se(()=>[ne(m,{ref:"menuRef"},{default:se(()=>[e.$slots.header?(U(),ce("div",{key:0,class:G(e.nsSelect.be("dropdown","header")),onClick:nn(()=>{},["stop"])},[Xe(e.$slots,"header")],10,["onClick"])):Fe("v-if",!0),bn(ne(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:G([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:se(()=>[e.showNewOption?(U(),Qe(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Fe("v-if",!0),ne(f,null,{default:se(()=>[Xe(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[gr,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(U(),ce("div",{key:1,class:G(e.nsSelect.be("dropdown","loading"))},[Xe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(U(),ce("div",{key:2,class:G(e.nsSelect.be("dropdown","empty"))},[Xe(e.$slots,"empty",{},()=>[ge("span",null,ct(e.emptyText),1)])],2)):Fe("v-if",!0),e.$slots.footer?(U(),ce("div",{key:3,class:G(e.nsSelect.be("dropdown","footer")),onClick:nn(()=>{},["stop"])},[Xe(e.$slots,"footer")],10,["onClick"])):Fe("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow","onHide"])],16,["onMouseleave"])),[[y,e.handleClickOutside,e.popperRef]])}var jIe=gt(IIe,[["render",DIe],["__file","select.vue"]]);const LIe=xe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ut("select"),n=ee(null),r=En(),o=ee([]);Yn(hZ,or({...ra(e)}));const i=W(()=>o.value.some(u=>u.visible===!0)),a=u=>{var f,h;return((f=u.type)==null?void 0:f.name)==="ElOption"&&!!((h=u.component)!=null&&h.proxy)},s=u=>{const f=Da(u),h=[];return f.forEach(m=>{var y,O;a(m)?h.push(m.component.proxy):(y=m.children)!=null&&y.length?h.push(...s(m.children)):(O=m.component)!=null&&O.subTree&&h.push(...s(m.component.subTree))}),h},l=()=>{o.value=s(r.subTree)};return vn(()=>{l()}),e7(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function BIe(e,t,n,r,o,i){return bn((U(),ce("ul",{ref:"groupRef",class:G(e.ns.be("group","wrap"))},[ge("li",{class:G(e.ns.be("group","title"))},ct(e.label),3),ge("li",null,[ge("ul",{class:G(e.ns.b("group"))},[Xe(e.$slots,"default")],2)])],2)),[[gr,e.visible]])}var pZ=gt(LIe,[["render",BIe],["__file","option-group.vue"]]);const bc=gn(jIe,{Option:O3,OptionGroup:pZ}),pp=Co(O3),VIe=Co(pZ),w3=()=>$t(dZ,{}),FIe=pt({pageSize:{type:Number,required:!0},pageSizes:{type:Le(Array),default:()=>xo([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:$f}}),zIe=xe({name:"ElPaginationSizes"}),QIe=xe({...zIe,props:FIe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=ir(),o=ut("pagination"),i=w3(),a=ee(n.pageSize);at(()=>n.pageSizes,(u,f)=>{if(!ss(u,f)&&Array.isArray(u)){const h=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",h)}}),at(()=>n.pageSize,u=>{a.value=u});const s=W(()=>n.pageSizes);function l(u){var f;u!==a.value&&(a.value=u,(f=i.handleSizeChange)==null||f.call(i,Number(u)))}return(u,f)=>(U(),ce("span",{class:G(v(o).e("sizes"))},[ne(v(bc),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:se(()=>[(U(!0),ce(Pt,null,_n(v(s),h=>(U(),Qe(v(pp),{key:h,value:h,label:h+v(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var WIe=gt(QIe,[["__file","sizes.vue"]]);const YIe=pt({size:{type:String,values:$f}}),UIe=xe({name:"ElPaginationJumper"}),HIe=xe({...UIe,props:YIe,setup(e){const{t}=ir(),n=ut("pagination"),{pageCount:r,disabled:o,currentPage:i,changeEvent:a}=w3(),s=ee(),l=W(()=>{var h;return(h=s.value)!=null?h:i==null?void 0:i.value});function u(h){s.value=h?+h:""}function f(h){h=Math.trunc(+h),a==null||a(h),s.value=void 0}return(h,m)=>(U(),ce("span",{class:G(v(n).e("jump")),disabled:v(o)},[ge("span",{class:G([v(n).e("goto")])},ct(v(t)("el.pagination.goto")),3),ne(v(ri),{size:h.size,class:G([v(n).e("editor"),v(n).is("in-pagination")]),min:1,max:v(r),disabled:v(o),"model-value":v(l),"validate-event":!1,"aria-label":v(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:f},null,8,["size","class","max","disabled","model-value","aria-label"]),ge("span",{class:G([v(n).e("classifier")])},ct(v(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var ZIe=gt(HIe,[["__file","jumper.vue"]]);const XIe=pt({total:{type:Number,default:1e3}}),qIe=xe({name:"ElPaginationTotal"}),KIe=xe({...qIe,props:XIe,setup(e){const{t}=ir(),n=ut("pagination"),{disabled:r}=w3();return(o,i)=>(U(),ce("span",{class:G(v(n).e("total")),disabled:v(r)},ct(v(t)("el.pagination.total",{total:o.total})),11,["disabled"]))}});var GIe=gt(KIe,[["__file","total.vue"]]);const JIe=pt({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),eDe=xe({name:"ElPaginationPager"}),tDe=xe({...eDe,props:JIe,emits:["change"],setup(e,{emit:t}){const n=e,r=ut("pager"),o=ut("icon"),{t:i}=ir(),a=ee(!1),s=ee(!1),l=ee(!1),u=ee(!1),f=ee(!1),h=ee(!1),m=W(()=>{const T=n.pagerCount,A=(T-1)/2,R=Number(n.currentPage),B=Number(n.pageCount);let I=!1,N=!1;B>T&&(R>T-A&&(I=!0),R<B-A&&(N=!0));const j=[];if(I&&!N){const L=B-(T-2);for(let V=L;V<B;V++)j.push(V)}else if(!I&&N)for(let L=2;L<T;L++)j.push(L);else if(I&&N){const L=Math.floor(T/2)-1;for(let V=R-L;V<=R+L;V++)j.push(V)}else for(let L=2;L<B;L++)j.push(L);return j}),y=W(()=>["more","btn-quickprev",o.b(),r.is("disabled",n.disabled)]),O=W(()=>["more","btn-quicknext",o.b(),r.is("disabled",n.disabled)]),b=W(()=>n.disabled?-1:0);Ba(()=>{const T=(n.pagerCount-1)/2;a.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-T&&(a.value=!0),n.currentPage<n.pageCount-T&&(s.value=!0))});function k(T=!1){n.disabled||(T?l.value=!0:u.value=!0)}function C(T=!1){T?f.value=!0:h.value=!0}function P(T){const A=T.target;if(A.tagName.toLowerCase()==="li"&&Array.from(A.classList).includes("number")){const R=Number(A.textContent);R!==n.currentPage&&t("change",R)}else A.tagName.toLowerCase()==="li"&&Array.from(A.classList).includes("more")&&$(T)}function $(T){const A=T.target;if(A.tagName.toLowerCase()==="ul"||n.disabled)return;let R=Number(A.textContent);const B=n.pageCount,I=n.currentPage,N=n.pagerCount-2;A.className.includes("more")&&(A.className.includes("quickprev")?R=I-N:A.className.includes("quicknext")&&(R=I+N)),Number.isNaN(+R)||(R<1&&(R=1),R>B&&(R=B)),R!==I&&t("change",R)}return(T,A)=>(U(),ce("ul",{class:G(v(r).b()),onClick:$,onKeyup:Qr(P,["enter"])},[T.pageCount>0?(U(),ce("li",{key:0,class:G([[v(r).is("active",T.currentPage===1),v(r).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===1,"aria-label":v(i)("el.pagination.currentPage",{pager:1}),tabindex:v(b)}," 1 ",10,["aria-current","aria-label","tabindex"])):Fe("v-if",!0),a.value?(U(),ce("li",{key:1,class:G(v(y)),tabindex:v(b),"aria-label":v(i)("el.pagination.prevPages",{pager:T.pagerCount-2}),onMouseenter:R=>k(!0),onMouseleave:R=>l.value=!1,onFocus:R=>C(!0),onBlur:R=>f.value=!1},[(l.value||f.value)&&!T.disabled?(U(),Qe(v(lp),{key:0})):(U(),Qe(v(iO),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):Fe("v-if",!0),(U(!0),ce(Pt,null,_n(v(m),R=>(U(),ce("li",{key:R,class:G([[v(r).is("active",T.currentPage===R),v(r).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===R,"aria-label":v(i)("el.pagination.currentPage",{pager:R}),tabindex:v(b)},ct(R),11,["aria-current","aria-label","tabindex"]))),128)),s.value?(U(),ce("li",{key:2,class:G(v(O)),tabindex:v(b),"aria-label":v(i)("el.pagination.nextPages",{pager:T.pagerCount-2}),onMouseenter:R=>k(),onMouseleave:R=>u.value=!1,onFocus:R=>C(),onBlur:R=>h.value=!1},[(u.value||h.value)&&!T.disabled?(U(),Qe(v(up),{key:0})):(U(),Qe(v(iO),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):Fe("v-if",!0),T.pageCount>1?(U(),ce("li",{key:3,class:G([[v(r).is("active",T.currentPage===T.pageCount),v(r).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===T.pageCount,"aria-label":v(i)("el.pagination.currentPage",{pager:T.pageCount}),tabindex:v(b)},ct(T.pageCount),11,["aria-current","aria-label","tabindex"])):Fe("v-if",!0)],42,["onKeyup"]))}});var nDe=gt(tDe,[["__file","pager.vue"]]);const ws=e=>typeof e!="number",rDe=pt({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>tn(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Le(Array),default:()=>xo([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Wr,default:()=>sp},nextText:{type:String,default:""},nextIcon:{type:Wr,default:()=>Es},teleported:{type:Boolean,default:!0},small:Boolean,size:Ni,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),oDe={"update:current-page":e=>tn(e),"update:page-size":e=>tn(e),"size-change":e=>tn(e),change:(e,t)=>tn(e)&&tn(t),"current-change":e=>tn(e),"prev-click":e=>tn(e),"next-click":e=>tn(e)},ZB="ElPagination";var iDe=xe({name:ZB,props:rDe,emits:oDe,setup(e,{emit:t,slots:n}){const{t:r}=ir(),o=ut("pagination"),i=En().vnode.props||{},a=W(()=>{var T;return e.small?"small":(T=e.size)!=null?T:vU().value});Xh({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},W(()=>!!e.small));const s="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,l="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,u=W(()=>{if(ws(e.total)&&ws(e.pageCount)||!ws(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(ws(e.pageCount)){if(!ws(e.total)&&!ws(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),f=ee(ws(e.defaultPageSize)?10:e.defaultPageSize),h=ee(ws(e.defaultCurrentPage)?1:e.defaultCurrentPage),m=W({get(){return ws(e.pageSize)?f.value:e.pageSize},set(T){ws(e.pageSize)&&(f.value=T),l&&(t("update:page-size",T),t("size-change",T))}}),y=W(()=>{let T=0;return ws(e.pageCount)?ws(e.total)||(T=Math.max(1,Math.ceil(e.total/m.value))):T=e.pageCount,T}),O=W({get(){return ws(e.currentPage)?h.value:e.currentPage},set(T){let A=T;T<1?A=1:T>y.value&&(A=y.value),ws(e.currentPage)&&(h.value=A),s&&(t("update:current-page",A),t("current-change",A))}});at(y,T=>{O.value>T&&(O.value=T)}),at([O,m],T=>{t("change",...T)},{flush:"post"});function b(T){O.value=T}function k(T){m.value=T;const A=y.value;O.value>A&&(O.value=A)}function C(){e.disabled||(O.value-=1,t("prev-click",O.value))}function P(){e.disabled||(O.value+=1,t("next-click",O.value))}function $(T,A){T&&(T.props||(T.props={}),T.props.class=[T.props.class,A].join(" "))}return Yn(dZ,{pageCount:y,disabled:W(()=>e.disabled),currentPage:O,changeEvent:b,handleSizeChange:k}),()=>{var T,A;if(!u.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&y.value<=1)return null;const R=[],B=[],I=Ht("div",{class:o.e("rightwrapper")},B),N={prev:Ht(_Ie,{disabled:e.disabled,currentPage:O.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:C}),jumper:Ht(ZIe,{size:a.value}),pager:Ht(nDe,{currentPage:O.value,pageCount:y.value,pagerCount:e.pagerCount,onChange:b,disabled:e.disabled}),next:Ht(xIe,{disabled:e.disabled,currentPage:O.value,pageCount:y.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:P}),sizes:Ht(WIe,{pageSize:m.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:a.value}),slot:(A=(T=n==null?void 0:n.default)==null?void 0:T.call(n))!=null?A:null,total:Ht(GIe,{total:ws(e.total)?0:e.total})},j=e.layout.split(",").map(V=>V.trim());let L=!1;return j.forEach(V=>{if(V==="->"){L=!0;return}L?B.push(N[V]):R.push(N[V])}),$(R[0],o.is("first")),$(R[R.length-1],o.is("last")),L&&B.length>0&&($(B[0],o.is("first")),$(B[B.length-1],o.is("last")),R.push(I)),Ht("div",{class:[o.b(),o.is("background",e.background),o.m(a.value)]},R)}}});const S3=gn(iDe),aDe=pt({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:ZM,default:"primary"},cancelButtonType:{type:String,values:ZM,default:"text"},icon:{type:Wr,default:()=>vSe},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Ji.teleported,persistent:Ji.persistent,width:{type:[String,Number],default:150}}),sDe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},lDe=xe({name:"ElPopconfirm"}),uDe=xe({...lDe,props:aDe,emits:sDe,setup(e,{emit:t}){const n=e,{t:r}=ir(),o=ut("popconfirm"),i=ee(),a=()=>{var m,y;(y=(m=i.value)==null?void 0:m.onClose)==null||y.call(m)},s=W(()=>({width:Qo(n.width)})),l=m=>{t("confirm",m),a()},u=m=>{t("cancel",m),a()},f=W(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),h=W(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(m,y)=>(U(),Qe(v(ia),Dn({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},m.$attrs,{"popper-class":`${v(o).namespace.value}-popover`,"popper-style":v(s),teleported:m.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":m.hideAfter,persistent:m.persistent}),{content:se(()=>[ge("div",{class:G(v(o).b())},[ge("div",{class:G(v(o).e("main"))},[!m.hideIcon&&m.icon?(U(),Qe(v(Lt),{key:0,class:G(v(o).e("icon")),style:Ft({color:m.iconColor})},{default:se(()=>[(U(),Qe(jn(m.icon)))]),_:1},8,["class","style"])):Fe("v-if",!0),xt(" "+ct(m.title),1)],2),ge("div",{class:G(v(o).e("action"))},[ne(v(io),{size:"small",type:m.cancelButtonType==="text"?"":m.cancelButtonType,text:m.cancelButtonType==="text",onClick:u},{default:se(()=>[xt(ct(v(h)),1)]),_:1},8,["type","text"]),ne(v(io),{size:"small",type:m.confirmButtonType==="text"?"":m.confirmButtonType,text:m.confirmButtonType==="text",onClick:l},{default:se(()=>[xt(ct(v(f)),1)]),_:1},8,["type","text"])],2)],2)]),default:se(()=>[m.$slots.reference?Xe(m.$slots,"reference",{key:0}):Fe("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var cDe=gt(uDe,[["__file","popconfirm.vue"]]);const fDe=gn(cDe),dDe=pt({trigger:YO.trigger,placement:Sk.placement,disabled:YO.disabled,visible:Ji.visible,transition:Ji.transition,popperOptions:Sk.popperOptions,tabindex:Sk.tabindex,content:Ji.content,popperStyle:Ji.popperStyle,popperClass:Ji.popperClass,enterable:{...Ji.enterable,default:!0},effect:{...Ji.effect,default:"light"},teleported:Ji.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}}),hDe={"update:visible":e=>qo(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},pDe="onUpdate:visible",gDe=xe({name:"ElPopover"}),mDe=xe({...gDe,props:dDe,emits:hDe,setup(e,{expose:t,emit:n}){const r=e,o=W(()=>r[pDe]),i=ut("popover"),a=ee(),s=W(()=>{var k;return(k=v(a))==null?void 0:k.popperRef}),l=W(()=>[{width:Qo(r.width)},r.popperStyle]),u=W(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),f=W(()=>r.transition===`${i.namespace.value}-fade-in-linear`),h=()=>{var k;(k=a.value)==null||k.hide()},m=()=>{n("before-enter")},y=()=>{n("before-leave")},O=()=>{n("after-enter")},b=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:h}),(k,C)=>(U(),Qe(v(ia),Dn({ref_key:"tooltipRef",ref:a},k.$attrs,{trigger:k.trigger,placement:k.placement,disabled:k.disabled,visible:k.visible,transition:k.transition,"popper-options":k.popperOptions,tabindex:k.tabindex,content:k.content,offset:k.offset,"show-after":k.showAfter,"hide-after":k.hideAfter,"auto-close":k.autoClose,"show-arrow":k.showArrow,"aria-label":k.title,effect:k.effect,enterable:k.enterable,"popper-class":v(u),"popper-style":v(l),teleported:k.teleported,persistent:k.persistent,"gpu-acceleration":v(f),"onUpdate:visible":v(o),onBeforeShow:m,onBeforeHide:y,onShow:O,onHide:b}),{content:se(()=>[k.title?(U(),ce("div",{key:0,class:G(v(i).e("title")),role:"title"},ct(k.title),3)):Fe("v-if",!0),Xe(k.$slots,"default",{},()=>[xt(ct(k.content),1)])]),default:se(()=>[k.$slots.reference?Xe(k.$slots,"reference",{key:0}):Fe("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 vDe=gt(mDe,[["__file","popover.vue"]]);const XB=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var yDe={mounted(e,t){XB(e,t)},updated(e,t){XB(e,t)}};const bDe="popover",gZ=FSe(yDe,bDe),_De=gn(vDe,{directive:gZ}),ODe=pt({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Le(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Le([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Le(Function),default:e=>`${e}%`}}),wDe=xe({name:"ElProgress"}),SDe=xe({...wDe,props:ODe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=ut("progress"),o=W(()=>{const $={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},T=P(t.percentage);return T.includes("gradient")?$.background=T:$.backgroundColor=T,$}),i=W(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=W(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=W(()=>{const $=a.value,T=t.type==="dashboard";return`
- M 50 50
- m 0 ${T?"":"-"}${$}
- a ${$} ${$} 0 1 1 0 ${T?"-":""}${$*2}
- a ${$} ${$} 0 1 1 0 ${T?"":"-"}${$*2}
- `}),l=W(()=>2*Math.PI*a.value),u=W(()=>t.type==="dashboard"?.75:1),f=W(()=>`${-1*l.value*(1-u.value)/2}px`),h=W(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:f.value})),m=W(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),y=W(()=>{let $;return t.color?$=P(t.percentage):$=n[t.status]||n.default,$}),O=W(()=>t.status==="warning"?U2:t.type==="line"?t.status==="success"?kD:$p:t.status==="success"?x0:Ts),b=W(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),k=W(()=>t.format(t.percentage));function C($){const T=100/$.length;return $.map((R,B)=>Gt(R)?{color:R,percentage:(B+1)*T}:R).sort((R,B)=>R.percentage-B.percentage)}const P=$=>{var T;const{color:A}=t;if(rn(A))return A($);if(Gt(A))return A;{const R=C(A);for(const B of R)if(B.percentage>$)return B.color;return(T=R[R.length-1])==null?void 0:T.color}};return($,T)=>(U(),ce("div",{class:G([v(r).b(),v(r).m($.type),v(r).is($.status),{[v(r).m("without-text")]:!$.showText,[v(r).m("text-inside")]:$.textInside}]),role:"progressbar","aria-valuenow":$.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[$.type==="line"?(U(),ce("div",{key:0,class:G(v(r).b("bar"))},[ge("div",{class:G(v(r).be("bar","outer")),style:Ft({height:`${$.strokeWidth}px`})},[ge("div",{class:G([v(r).be("bar","inner"),{[v(r).bem("bar","inner","indeterminate")]:$.indeterminate},{[v(r).bem("bar","inner","striped")]:$.striped},{[v(r).bem("bar","inner","striped-flow")]:$.stripedFlow}]),style:Ft(v(o))},[($.showText||$.$slots.default)&&$.textInside?(U(),ce("div",{key:0,class:G(v(r).be("bar","innerText"))},[Xe($.$slots,"default",{percentage:$.percentage},()=>[ge("span",null,ct(v(k)),1)])],2)):Fe("v-if",!0)],6)],6)],2)):(U(),ce("div",{key:1,class:G(v(r).b("circle")),style:Ft({height:`${$.width}px`,width:`${$.width}px`})},[(U(),ce("svg",{viewBox:"0 0 100 100"},[ge("path",{class:G(v(r).be("circle","track")),d:v(s),stroke:`var(${v(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":$.strokeLinecap,"stroke-width":v(i),fill:"none",style:Ft(v(h))},null,14,["d","stroke","stroke-linecap","stroke-width"]),ge("path",{class:G(v(r).be("circle","path")),d:v(s),stroke:v(y),fill:"none",opacity:$.percentage?1:0,"stroke-linecap":$.strokeLinecap,"stroke-width":v(i),style:Ft(v(m))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),($.showText||$.$slots.default)&&!$.textInside?(U(),ce("div",{key:2,class:G(v(r).e("text")),style:Ft({fontSize:`${v(b)}px`})},[Xe($.$slots,"default",{percentage:$.percentage},()=>[$.status?(U(),Qe(v(Lt),{key:1},{default:se(()=>[(U(),Qe(jn(v(O))))]),_:1})):(U(),ce("span",{key:0},ct(v(k)),1))])],6)):Fe("v-if",!0)],10,["aria-valuenow"]))}});var xDe=gt(SDe,[["__file","progress.vue"]]);const mZ=gn(xDe),kDe=pt({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Le([Array,Object]),default:()=>xo(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Le([Array,Object]),default:()=>[Sx,Sx,Sx]},voidIcon:{type:Wr,default:()=>$Se},disabledVoidIcon:{type:Wr,default:()=>Sx},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Le(Array),default:()=>xo(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Ni,clearable:Boolean,...va(["ariaLabel"])}),CDe={[uo]:e=>tn(e),[Tn]:e=>tn(e)},EDe=xe({name:"ElRate"}),TDe=xe({...EDe,props:kDe,emits:CDe,setup(e,{expose:t,emit:n}){const r=e;function o(Z,re){const J=ue=>$n(ue),z=Object.keys(re).map(ue=>+ue).filter(ue=>{const he=re[ue];return(J(he)?he.excluded:!1)?Z<ue:Z<=ue}).sort((ue,he)=>ue-he),q=re[z[0]];return J(q)&&q.value||q}const i=$t(Rm,void 0),a=$t(Of,void 0),s=wi(),l=ut("rate"),{inputId:u,isLabeledByFormItem:f}=Cc(r,{formItemContext:a}),h=ee(r.modelValue),m=ee(-1),y=ee(!0),O=W(()=>[l.b(),l.m(s.value)]),b=W(()=>r.disabled||(i==null?void 0:i.disabled)),k=W(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":T.value})),C=W(()=>{let Z="";return r.showScore?Z=r.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${r.modelValue}`:`${h.value}`):r.showText&&(Z=r.texts[Math.ceil(h.value)-1]),Z}),P=W(()=>r.modelValue*100-Math.floor(r.modelValue)*100),$=W(()=>Et(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),T=W(()=>{const Z=o(h.value,$.value);return $n(Z)?"":Z}),A=W(()=>{let Z="";return b.value?Z=`${P.value}%`:r.allowHalf&&(Z="50%"),{color:T.value,width:Z}}),R=W(()=>{let Z=Et(r.icons)?[...r.icons]:{...r.icons};return Z=md(Z),Et(Z)?{[r.lowThreshold]:Z[0],[r.highThreshold]:{value:Z[1],excluded:!0},[r.max]:Z[2]}:Z}),B=W(()=>o(r.modelValue,R.value)),I=W(()=>b.value?Gt(r.disabledVoidIcon)?r.disabledVoidIcon:md(r.disabledVoidIcon):Gt(r.voidIcon)?r.voidIcon:md(r.voidIcon)),N=W(()=>o(h.value,R.value));function j(Z){const re=b.value&&P.value>0&&Z-1<r.modelValue&&Z>r.modelValue,J=r.allowHalf&&y.value&&Z-.5<=h.value&&Z>h.value;return re||J}function L(Z){r.clearable&&Z===r.modelValue&&(Z=0),n(Tn,Z),r.modelValue!==Z&&n("change",Z)}function V(Z){b.value||(r.allowHalf&&y.value?L(h.value):L(Z))}function X(Z){if(b.value)return;let re=h.value;const J=Z.code;return J===Yt.up||J===Yt.right?(r.allowHalf?re+=.5:re+=1,Z.stopPropagation(),Z.preventDefault()):(J===Yt.left||J===Yt.down)&&(r.allowHalf?re-=.5:re-=1,Z.stopPropagation(),Z.preventDefault()),re=re<0?0:re,re=re>r.max?r.max:re,n(Tn,re),n("change",re),re}function oe(Z,re){if(!b.value){if(r.allowHalf&&re){let J=re.target;Gs(J,l.e("item"))&&(J=J.querySelector(`.${l.e("icon")}`)),(J.clientWidth===0||Gs(J,l.e("decimal")))&&(J=J.parentNode),y.value=re.offsetX*2<=J.clientWidth,h.value=y.value?Z-.5:Z}else h.value=Z;m.value=Z}}function K(){b.value||(r.allowHalf&&(y.value=r.modelValue!==Math.floor(r.modelValue)),h.value=r.modelValue,m.value=-1)}return at(()=>r.modelValue,Z=>{h.value=Z,y.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Tn,0),t({setCurrentValue:oe,resetCurrentValue:K}),(Z,re)=>{var J;return U(),ce("div",{id:v(u),class:G([v(O),v(l).is("disabled",v(b))]),role:"slider","aria-label":v(f)?void 0:Z.ariaLabel||"rating","aria-labelledby":v(f)?(J=v(a))==null?void 0:J.labelId:void 0,"aria-valuenow":h.value,"aria-valuetext":v(C)||void 0,"aria-valuemin":"0","aria-valuemax":Z.max,tabindex:"0",style:Ft(v(k)),onKeydown:X},[(U(!0),ce(Pt,null,_n(Z.max,(z,q)=>(U(),ce("span",{key:q,class:G(v(l).e("item")),onMousemove:ue=>oe(z,ue),onMouseleave:K,onClick:ue=>V(z)},[ne(v(Lt),{class:G([v(l).e("icon"),{hover:m.value===z},v(l).is("active",z<=h.value)])},{default:se(()=>[j(z)?Fe("v-if",!0):(U(),ce(Pt,{key:0},[bn((U(),Qe(jn(v(N)),null,null,512)),[[gr,z<=h.value]]),bn((U(),Qe(jn(v(I)),null,null,512)),[[gr,!(z<=h.value)]])],64)),j(z)?(U(),ce(Pt,{key:1},[(U(),Qe(jn(v(I)),{class:G([v(l).em("decimal","box")])},null,8,["class"])),ne(v(Lt),{style:Ft(v(A)),class:G([v(l).e("icon"),v(l).e("decimal")])},{default:se(()=>[(U(),Qe(jn(v(B))))]),_:1},8,["style","class"])],64)):Fe("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),Z.showText||Z.showScore?(U(),ce("span",{key:0,class:G(v(l).e("text")),style:Ft({color:Z.textColor})},ct(v(C)),7)):Fe("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var PDe=gt(TDe,[["__file","rate.vue"]]);const $De=gn(PDe),hy={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},qB={[hy.success]:zwe,[hy.warning]:U2,[hy.error]:CD,[hy.info]:ED},ADe=pt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),MDe=xe({name:"ElResult"}),RDe=xe({...MDe,props:ADe,setup(e){const t=e,n=ut("result"),r=W(()=>{const o=t.icon,i=o&&hy[o]?hy[o]:"icon-info",a=qB[i]||qB["icon-info"];return{class:i,component:a}});return(o,i)=>(U(),ce("div",{class:G(v(n).b())},[ge("div",{class:G(v(n).e("icon"))},[Xe(o.$slots,"icon",{},()=>[v(r).component?(U(),Qe(jn(v(r).component),{key:0,class:G(v(r).class)},null,8,["class"])):Fe("v-if",!0)])],2),o.title||o.$slots.title?(U(),ce("div",{key:0,class:G(v(n).e("title"))},[Xe(o.$slots,"title",{},()=>[ge("p",null,ct(o.title),1)])],2)):Fe("v-if",!0),o.subTitle||o.$slots["sub-title"]?(U(),ce("div",{key:1,class:G(v(n).e("subtitle"))},[Xe(o.$slots,"sub-title",{},()=>[ge("p",null,ct(o.subTitle),1)])],2)):Fe("v-if",!0),o.$slots.extra?(U(),ce("div",{key:2,class:G(v(n).e("extra"))},[Xe(o.$slots,"extra")],2)):Fe("v-if",!0)],2))}});var NDe=gt(RDe,[["__file","result.vue"]]);const IDe=gn(NDe);var KB=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function DDe(e,t){return!!(e===t||KB(e)&&KB(t))}function jDe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!DDe(e[n],t[n]))return!1;return!0}function LDe(e,t){t===void 0&&(t=jDe);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}const vZ=()=>{const t=En().proxy.$props;return W(()=>{const n=(r,o,i)=>({});return t.perfMode?T1(n):LDe(n)})},hR=50,dC="itemRendered",hC="scroll",py="forward",pC="backward",wu="auto",sE="smart",HO="start",ff="center",ZO="end",t0="horizontal",x3="vertical",BDe="ltr",Py="rtl",XO="negative",k3="positive-ascending",C3="positive-descending",VDe={[t0]:"left",[x3]:"top"},FDe=20,zDe={[t0]:"deltaX",[x3]:"deltaY"},QDe=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let o,i=0;const a=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:a,onWheel:l=>{vm(o);const u=l[zDe[n.value]];a(i)&&a(i+u)||(i+=u,OI()||l.preventDefault(),o=ap(()=>{r(i),i=0}))}}},pR=xc({type:Le([Number,Function]),required:!0}),gR=xc({type:Number}),mR=xc({type:Number,default:2}),WDe=xc({type:String,values:["ltr","rtl"],default:"ltr"}),vR=xc({type:Number,default:0}),gC=xc({type:Number,required:!0}),yZ=xc({type:String,values:["horizontal","vertical"],default:x3}),bZ=pt({className:{type:String,default:""},containerElement:{type:Le([String,Object]),default:"div"},data:{type:Le(Array),default:()=>xo([])},direction:WDe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Le([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),_Z=pt({cache:mR,estimatedItemSize:gR,layout:yZ,initScrollOffset:vR,total:gC,itemSize:pR,...bZ}),yR={type:Number,default:6},OZ={type:Number,default:0},wZ={type:Number,default:2},am=pt({columnCache:mR,columnWidth:pR,estimatedColumnWidth:gR,estimatedRowHeight:gR,initScrollLeft:vR,initScrollTop:vR,itemKey:{type:Le(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:mR,rowHeight:pR,totalColumn:gC,totalRow:gC,hScrollbarSize:yR,vScrollbarSize:yR,scrollbarStartGap:OZ,scrollbarEndGap:wZ,role:String,...bZ}),SZ=pt({alwaysOn:Boolean,class:String,layout:yZ,total:gC,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:yR,startGap:OZ,endGap:wZ,visible:Boolean}),qg=(e,t)=>e<t?py:pC,qO=e=>e===BDe||e===Py||e===t0,GB=e=>e===Py;let ty=null;function mC(e=!1){if(ty===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ty=C3:(t.scrollLeft=1,t.scrollLeft===0?ty=XO:ty=k3),document.body.removeChild(t),ty}return ty}function YDe({move:e,size:t,bar:n},r){const o={},i=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=i,o.msTransform=i,o.webkitTransform=i,r==="horizontal"?o.height="100%":o.width="100%",o}const bR=xe({name:"ElVirtualScrollBar",props:SZ,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=W(()=>e.startGap+e.endGap),r=ut("virtual-scrollbar"),o=ut("scrollbar"),i=ee(),a=ee();let s=null,l=null;const u=or({isDragging:!1,traveled:0}),f=W(()=>xU[e.layout]),h=W(()=>e.clientSize-v(n)),m=W(()=>({position:"absolute",width:`${t0===e.layout?h.value:e.scrollbarSize}px`,height:`${t0===e.layout?e.scrollbarSize:h.value}px`,[VDe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),y=W(()=>{const R=e.ratio,B=e.clientSize;if(R>=100)return Number.POSITIVE_INFINITY;if(R>=50)return R*B/100;const I=B/3;return Math.floor(Math.min(Math.max(R*B,FDe),I))}),O=W(()=>{if(!Number.isFinite(y.value))return{display:"none"};const R=`${y.value}px`;return YDe({bar:f.value,size:R,move:u.traveled},e.layout)}),b=W(()=>Math.floor(e.clientSize-y.value-v(n))),k=()=>{window.addEventListener("mousemove",T),window.addEventListener("mouseup",$);const R=v(a);!R||(l=document.onselectstart,document.onselectstart=()=>!1,R.addEventListener("touchmove",T,{passive:!0}),R.addEventListener("touchend",$))},C=()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",$),document.onselectstart=l,l=null;const R=v(a);!R||(R.removeEventListener("touchmove",T),R.removeEventListener("touchend",$))},P=R=>{R.stopImmediatePropagation(),!(R.ctrlKey||[1,2].includes(R.button))&&(u.isDragging=!0,u[f.value.axis]=R.currentTarget[f.value.offset]-(R[f.value.client]-R.currentTarget.getBoundingClientRect()[f.value.direction]),t("start-move"),k())},$=()=>{u.isDragging=!1,u[f.value.axis]=0,t("stop-move"),C()},T=R=>{const{isDragging:B}=u;if(!B||!a.value||!i.value)return;const I=u[f.value.axis];if(!I)return;vm(s);const N=(i.value.getBoundingClientRect()[f.value.direction]-R[f.value.client])*-1,j=a.value[f.value.offset]-I,L=N-j;s=ap(()=>{u.traveled=Math.max(e.startGap,Math.min(L,b.value)),t("scroll",L,b.value)})},A=R=>{const B=Math.abs(R.target.getBoundingClientRect()[f.value.direction]-R[f.value.client]),I=a.value[f.value.offset]/2,N=B-I;u.traveled=Math.max(0,Math.min(N,b.value)),t("scroll",N,b.value)};return at(()=>e.scrollFrom,R=>{u.isDragging||(u.traveled=Math.ceil(R*b.value))}),qr(()=>{C()}),()=>Ht("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:m.value,onMousedown:nn(A,["stop","prevent"]),onTouchstartPrevent:P},Ht("div",{ref:a,class:o.e("thumb"),style:O.value,onMousedown:P},[]))}}),xZ=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:s,clearCache:l,validateProps:u})=>xe({name:e!=null?e:"ElVirtualList",props:_Z,emits:[dC,hC],setup(f,{emit:h,expose:m}){u(f);const y=En(),O=ut("vl"),b=ee(s(f,y)),k=vZ(),C=ee(),P=ee(),$=ee(),T=ee({isScrolling:!1,scrollDir:"forward",scrollOffset:tn(f.initScrollOffset)?f.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:f.scrollbarAlwaysOn}),A=W(()=>{const{total:le,cache:ze}=f,{isScrolling:Ee,scrollDir:Be,scrollOffset:Ae}=v(T);if(le===0)return[0,0,0,0];const _e=i(f,Ae,v(b)),ve=a(f,_e,Ae,v(b)),Ne=!Ee||Be===pC?Math.max(1,ze):1,Se=!Ee||Be===py?Math.max(1,ze):1;return[Math.max(0,_e-Ne),Math.max(0,Math.min(le-1,ve+Se)),_e,ve]}),R=W(()=>o(f,v(b))),B=W(()=>qO(f.layout)),I=W(()=>[{position:"relative",[`overflow-${B.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:f.direction,height:tn(f.height)?`${f.height}px`:f.height,width:tn(f.width)?`${f.width}px`:f.width},f.style]),N=W(()=>{const le=v(R),ze=v(B);return{height:ze?"100%":`${le}px`,pointerEvents:v(T).isScrolling?"none":void 0,width:ze?`${le}px`:"100%"}}),j=W(()=>B.value?f.width:f.height),{onWheel:L}=QDe({atStartEdge:W(()=>T.value.scrollOffset<=0),atEndEdge:W(()=>T.value.scrollOffset>=R.value),layout:W(()=>f.layout)},le=>{var ze,Ee;(Ee=(ze=$.value).onMouseUp)==null||Ee.call(ze),re(Math.min(T.value.scrollOffset+le,R.value-j.value))});Nr(C,"wheel",L,{passive:!1});const V=()=>{const{total:le}=f;if(le>0){const[Ae,_e,ve,Ne]=v(A);h(dC,Ae,_e,ve,Ne)}const{scrollDir:ze,scrollOffset:Ee,updateRequested:Be}=v(T);h(hC,ze,Ee,Be)},X=le=>{const{clientHeight:ze,scrollHeight:Ee,scrollTop:Be}=le.currentTarget,Ae=v(T);if(Ae.scrollOffset===Be)return;const _e=Math.max(0,Math.min(Be,Ee-ze));T.value={...Ae,isScrolling:!0,scrollDir:qg(Ae.scrollOffset,_e),scrollOffset:_e,updateRequested:!1},Wt(q)},oe=le=>{const{clientWidth:ze,scrollLeft:Ee,scrollWidth:Be}=le.currentTarget,Ae=v(T);if(Ae.scrollOffset===Ee)return;const{direction:_e}=f;let ve=Ee;if(_e===Py)switch(mC()){case XO:{ve=-Ee;break}case C3:{ve=Be-ze-Ee;break}}ve=Math.max(0,Math.min(ve,Be-ze)),T.value={...Ae,isScrolling:!0,scrollDir:qg(Ae.scrollOffset,ve),scrollOffset:ve,updateRequested:!1},Wt(q)},K=le=>{v(B)?oe(le):X(le),V()},Z=(le,ze)=>{const Ee=(R.value-j.value)/ze*le;re(Math.min(R.value-j.value,Ee))},re=le=>{le=Math.max(le,0),le!==v(T).scrollOffset&&(T.value={...v(T),scrollOffset:le,scrollDir:qg(v(T).scrollOffset,le),updateRequested:!0},Wt(q))},J=(le,ze=wu)=>{const{scrollOffset:Ee}=v(T);le=Math.max(0,Math.min(le,f.total-1)),re(t(f,le,ze,Ee,v(b)))},z=le=>{const{direction:ze,itemSize:Ee,layout:Be}=f,Ae=k.value(l&&Ee,l&&Be,l&&ze);let _e;if(sr(Ae,String(le)))_e=Ae[le];else{const ve=r(f,le,v(b)),Ne=n(f,le,v(b)),Se=v(B),fe=ze===Py,ye=Se?ve:0;Ae[le]=_e={position:"absolute",left:fe?void 0:`${ye}px`,right:fe?`${ye}px`:void 0,top:Se?0:`${ve}px`,height:Se?"100%":`${Ne}px`,width:Se?`${Ne}px`:"100%"}}return _e},q=()=>{T.value.isScrolling=!1,Wt(()=>{k.value(-1,null,null)})},ue=()=>{const le=C.value;le&&(le.scrollTop=0)};vn(()=>{if(!rr)return;const{initScrollOffset:le}=f,ze=v(C);tn(le)&&ze&&(v(B)?ze.scrollLeft=le:ze.scrollTop=le),V()}),wc(()=>{const{direction:le,layout:ze}=f,{scrollOffset:Ee,updateRequested:Be}=v(T),Ae=v(C);if(Be&&Ae)if(ze===t0)if(le===Py)switch(mC()){case XO:{Ae.scrollLeft=-Ee;break}case k3:{Ae.scrollLeft=Ee;break}default:{const{clientWidth:_e,scrollWidth:ve}=Ae;Ae.scrollLeft=ve-_e-Ee;break}}else Ae.scrollLeft=Ee;else Ae.scrollTop=Ee}),fI(()=>{v(C).scrollTop=v(T).scrollOffset});const he={ns:O,clientSize:j,estimatedTotalSize:R,windowStyle:I,windowRef:C,innerRef:P,innerStyle:N,itemsToRender:A,scrollbarRef:$,states:T,getItemStyle:z,onScroll:K,onScrollbarScroll:Z,onWheel:L,scrollTo:re,scrollToItem:J,resetScrollTop:ue};return m({windowRef:C,innerRef:P,getItemStyleCache:k,scrollTo:re,scrollToItem:J,resetScrollTop:ue,states:T}),he},render(f){var h;const{$slots:m,className:y,clientSize:O,containerElement:b,data:k,getItemStyle:C,innerElement:P,itemsToRender:$,innerStyle:T,layout:A,total:R,onScroll:B,onScrollbarScroll:I,states:N,useIsScrolling:j,windowStyle:L,ns:V}=f,[X,oe]=$,K=jn(b),Z=jn(P),re=[];if(R>0)for(let ue=X;ue<=oe;ue++)re.push((h=m.default)==null?void 0:h.call(m,{data:k,key:ue,index:ue,isScrolling:j?N.isScrolling:void 0,style:C(ue)}));const J=[Ht(Z,{style:T,ref:"innerRef"},Gt(Z)?re:{default:()=>re})],z=Ht(bR,{ref:"scrollbarRef",clientSize:O,layout:A,onScroll:I,ratio:O*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-O),total:R}),q=Ht(K,{class:[V.e("window"),y],style:L,onScroll:B,ref:"windowRef",key:0},Gt(K)?[J]:{default:()=>[J]});return Ht("div",{key:0,class:[V.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[q,z])}}),kZ=xZ({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:o},i,a,s)=>{const l=qO(r)?o:e,u=Math.max(0,t*n-l),f=Math.min(u,i*n),h=Math.max(0,(i+1)*n-l);switch(a===sE&&(s>=h-l&&s<=f+l?a=wu:a=ff),a){case HO:return f;case ZO:return h;case ff:{const m=Math.round(h+(f-h)/2);return m<Math.ceil(l/2)?0:m>u+Math.floor(l/2)?u:m}case wu:default:return s>=h&&s<=f?s:s<h?h:f}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:o},i,a)=>{const s=i*n,l=qO(r)?o:e,u=Math.ceil((l+a-s)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),gy=(e,t,n)=>{const{itemSize:r}=e,{items:o,lastVisitedIndex:i}=n;if(t>i){let a=0;if(i>=0){const s=o[i];a=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=r(s);o[s]={offset:a,size:l},a+=l}n.lastVisitedIndex=t}return o[t]},UDe=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t;return(o>0?r[o].offset:0)>=n?CZ(e,t,0,o,n):HDe(e,t,Math.max(0,o),n)},CZ=(e,t,n,r,o)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),a=gy(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return Math.max(0,n-1)},HDe=(e,t,n,r)=>{const{total:o}=e;let i=1;for(;n<o&&gy(e,n,t).offset<r;)n+=i,i*=2;return CZ(e,t,Math.floor(n/2),Math.min(n,o-1),r)},JB=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let o=0;if(r>=e&&(r=e-1),r>=0){const s=t[r];o=s.offset+s.size}const a=(e-r-1)*n;return o+a},ZDe=xZ({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>gy(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:JB,getOffset:(e,t,n,r,o)=>{const{height:i,layout:a,width:s}=e,l=qO(a)?s:i,u=gy(e,t,o),f=JB(e,o),h=Math.max(0,Math.min(f-l,u.offset)),m=Math.max(0,u.offset-l+u.size);switch(n===sE&&(r>=m-l&&r<=h+l?n=wu:n=ff),n){case HO:return h;case ZO:return m;case ff:return Math.round(m+(h-m)/2);case wu:default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:(e,t,n)=>UDe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:i,layout:a,width:s}=e,l=qO(a)?s:o,u=gy(e,t,r),f=n+l;let h=u.offset+u.size,m=t;for(;m<i-1&&h<f;)m++,h+=gy(e,m,r).size;return m},initCache({estimatedItemSize:e=hR},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,o=!0)=>{var i,a;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=t.exposed)==null||i.getItemStyleCache(-1),o&&((a=t.proxy)==null||a.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),XDe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},o)=>{let i=null,a=0,s=0;const l=(f,h)=>{const m=f<=0&&t.value||f>=0&&e.value,y=h<=0&&r.value||h>=0&&n.value;return m&&y};return{hasReachedEdge:l,onWheel:f=>{vm(i);let h=f.deltaX,m=f.deltaY;Math.abs(h)>Math.abs(m)?m=0:h=0,f.shiftKey&&m!==0&&(h=m,m=0),!(l(a,s)&&l(a+h,s+m))&&(a+=h,s+=m,f.preventDefault(),i=ap(()=>{o(a,s),a=0,s=0}))}}},EZ=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:i,getEstimatedTotalWidth:a,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:h,initCache:m,injectToInstance:y,validateProps:O})=>xe({name:e!=null?e:"ElVirtualList",props:am,emits:[dC,hC],setup(b,{emit:k,expose:C,slots:P}){const $=ut("vl");O(b);const T=En(),A=ee(m(b,T));y==null||y(T,A);const R=ee(),B=ee(),I=ee(),N=ee(null),j=ee({isScrolling:!1,scrollLeft:tn(b.initScrollLeft)?b.initScrollLeft:0,scrollTop:tn(b.initScrollTop)?b.initScrollTop:0,updateRequested:!1,xAxisScrollDir:py,yAxisScrollDir:py}),L=vZ(),V=W(()=>Number.parseInt(`${b.height}`,10)),X=W(()=>Number.parseInt(`${b.width}`,10)),oe=W(()=>{const{totalColumn:De,totalRow:Me,columnCache:qe}=b,{isScrolling:Oe,xAxisScrollDir:Je,scrollLeft:lt}=v(j);if(De===0||Me===0)return[0,0,0,0];const Ke=r(b,lt,v(A)),et=o(b,Ke,lt,v(A)),bt=!Oe||Je===pC?Math.max(1,qe):1,Ot=!Oe||Je===py?Math.max(1,qe):1;return[Math.max(0,Ke-bt),Math.max(0,Math.min(De-1,et+Ot)),Ke,et]}),K=W(()=>{const{totalColumn:De,totalRow:Me,rowCache:qe}=b,{isScrolling:Oe,yAxisScrollDir:Je,scrollTop:lt}=v(j);if(De===0||Me===0)return[0,0,0,0];const Ke=f(b,lt,v(A)),et=h(b,Ke,lt,v(A)),bt=!Oe||Je===pC?Math.max(1,qe):1,Ot=!Oe||Je===py?Math.max(1,qe):1;return[Math.max(0,Ke-bt),Math.max(0,Math.min(Me-1,et+Ot)),Ke,et]}),Z=W(()=>i(b,v(A))),re=W(()=>a(b,v(A))),J=W(()=>{var De;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:b.direction,height:tn(b.height)?`${b.height}px`:b.height,width:tn(b.width)?`${b.width}px`:b.width},(De=b.style)!=null?De:{}]}),z=W(()=>{const De=`${v(re)}px`;return{height:`${v(Z)}px`,pointerEvents:v(j).isScrolling?"none":void 0,width:De}}),q=()=>{const{totalColumn:De,totalRow:Me}=b;if(De>0&&Me>0){const[et,bt,Ot,Qt]=v(oe),[kt,an,Ce,Ye]=v(K);k(dC,{columnCacheStart:et,columnCacheEnd:bt,rowCacheStart:kt,rowCacheEnd:an,columnVisibleStart:Ot,columnVisibleEnd:Qt,rowVisibleStart:Ce,rowVisibleEnd:Ye})}const{scrollLeft:qe,scrollTop:Oe,updateRequested:Je,xAxisScrollDir:lt,yAxisScrollDir:Ke}=v(j);k(hC,{xAxisScrollDir:lt,scrollLeft:qe,yAxisScrollDir:Ke,scrollTop:Oe,updateRequested:Je})},ue=De=>{const{clientHeight:Me,clientWidth:qe,scrollHeight:Oe,scrollLeft:Je,scrollTop:lt,scrollWidth:Ke}=De.currentTarget,et=v(j);if(et.scrollTop===lt&&et.scrollLeft===Je)return;let bt=Je;if(GB(b.direction))switch(mC()){case XO:bt=-Je;break;case C3:bt=Ke-qe-Je;break}j.value={...et,isScrolling:!0,scrollLeft:bt,scrollTop:Math.max(0,Math.min(lt,Oe-Me)),updateRequested:!0,xAxisScrollDir:qg(et.scrollLeft,bt),yAxisScrollDir:qg(et.scrollTop,lt)},Wt(()=>_e()),ve(),q()},he=(De,Me)=>{const qe=v(V),Oe=(Z.value-qe)/Me*De;Ee({scrollTop:Math.min(Z.value-qe,Oe)})},le=(De,Me)=>{const qe=v(X),Oe=(re.value-qe)/Me*De;Ee({scrollLeft:Math.min(re.value-qe,Oe)})},{onWheel:ze}=XDe({atXStartEdge:W(()=>j.value.scrollLeft<=0),atXEndEdge:W(()=>j.value.scrollLeft>=re.value-v(X)),atYStartEdge:W(()=>j.value.scrollTop<=0),atYEndEdge:W(()=>j.value.scrollTop>=Z.value-v(V))},(De,Me)=>{var qe,Oe,Je,lt;(Oe=(qe=B.value)==null?void 0:qe.onMouseUp)==null||Oe.call(qe),(lt=(Je=I.value)==null?void 0:Je.onMouseUp)==null||lt.call(Je);const Ke=v(X),et=v(V);Ee({scrollLeft:Math.min(j.value.scrollLeft+De,re.value-Ke),scrollTop:Math.min(j.value.scrollTop+Me,Z.value-et)})});Nr(R,"wheel",ze,{passive:!1});const Ee=({scrollLeft:De=j.value.scrollLeft,scrollTop:Me=j.value.scrollTop})=>{De=Math.max(De,0),Me=Math.max(Me,0);const qe=v(j);Me===qe.scrollTop&&De===qe.scrollLeft||(j.value={...qe,xAxisScrollDir:qg(qe.scrollLeft,De),yAxisScrollDir:qg(qe.scrollTop,Me),scrollLeft:De,scrollTop:Me,updateRequested:!0},Wt(()=>_e()),ve(),q())},Be=(De=0,Me=0,qe=wu)=>{const Oe=v(j);Me=Math.max(0,Math.min(Me,b.totalColumn-1)),De=Math.max(0,Math.min(De,b.totalRow-1));const Je=TY($.namespace.value),lt=v(A),Ke=i(b,lt),et=a(b,lt);Ee({scrollLeft:s(b,Me,qe,Oe.scrollLeft,lt,et>b.width?Je:0),scrollTop:l(b,De,qe,Oe.scrollTop,lt,Ke>b.height?Je:0)})},Ae=(De,Me)=>{const{columnWidth:qe,direction:Oe,rowHeight:Je}=b,lt=L.value(t&&qe,t&&Je,t&&Oe),Ke=`${De},${Me}`;if(sr(lt,Ke))return lt[Ke];{const[,et]=n(b,Me,v(A)),bt=v(A),Ot=GB(Oe),[Qt,kt]=u(b,De,bt),[an]=n(b,Me,bt);return lt[Ke]={position:"absolute",left:Ot?void 0:`${et}px`,right:Ot?`${et}px`:void 0,top:`${kt}px`,height:`${Qt}px`,width:`${an}px`},lt[Ke]}},_e=()=>{j.value.isScrolling=!1,Wt(()=>{L.value(-1,null,null)})};vn(()=>{if(!rr)return;const{initScrollLeft:De,initScrollTop:Me}=b,qe=v(R);qe&&(tn(De)&&(qe.scrollLeft=De),tn(Me)&&(qe.scrollTop=Me)),q()});const ve=()=>{const{direction:De}=b,{scrollLeft:Me,scrollTop:qe,updateRequested:Oe}=v(j),Je=v(R);if(Oe&&Je){if(De===Py)switch(mC()){case XO:{Je.scrollLeft=-Me;break}case k3:{Je.scrollLeft=Me;break}default:{const{clientWidth:lt,scrollWidth:Ke}=Je;Je.scrollLeft=Ke-lt-Me;break}}else Je.scrollLeft=Math.max(0,Me);Je.scrollTop=Math.max(0,qe)}},{resetAfterColumnIndex:Ne,resetAfterRowIndex:Se,resetAfter:fe}=T.proxy;C({windowRef:R,innerRef:N,getItemStyleCache:L,scrollTo:Ee,scrollToItem:Be,states:j,resetAfterColumnIndex:Ne,resetAfterRowIndex:Se,resetAfter:fe});const ye=()=>{const{scrollbarAlwaysOn:De,scrollbarStartGap:Me,scrollbarEndGap:qe,totalColumn:Oe,totalRow:Je}=b,lt=v(X),Ke=v(V),et=v(re),bt=v(Z),{scrollLeft:Ot,scrollTop:Qt}=v(j),kt=Ht(bR,{ref:B,alwaysOn:De,startGap:Me,endGap:qe,class:$.e("horizontal"),clientSize:lt,layout:"horizontal",onScroll:le,ratio:lt*100/et,scrollFrom:Ot/(et-lt),total:Je,visible:!0}),an=Ht(bR,{ref:I,alwaysOn:De,startGap:Me,endGap:qe,class:$.e("vertical"),clientSize:Ke,layout:"vertical",onScroll:he,ratio:Ke*100/bt,scrollFrom:Qt/(bt-Ke),total:Oe,visible:!0});return{horizontalScrollbar:kt,verticalScrollbar:an}},He=()=>{var De;const[Me,qe]=v(oe),[Oe,Je]=v(K),{data:lt,totalColumn:Ke,totalRow:et,useIsScrolling:bt,itemKey:Ot}=b,Qt=[];if(et>0&&Ke>0)for(let kt=Oe;kt<=Je;kt++)for(let an=Me;an<=qe;an++)Qt.push((De=P.default)==null?void 0:De.call(P,{columnIndex:an,data:lt,key:Ot({columnIndex:an,data:lt,rowIndex:kt}),isScrolling:bt?v(j).isScrolling:void 0,style:Ae(kt,an),rowIndex:kt}));return Qt},be=()=>{const De=jn(b.innerElement),Me=He();return[Ht(De,{style:v(z),ref:N},Gt(De)?Me:{default:()=>Me})]};return()=>{const De=jn(b.containerElement),{horizontalScrollbar:Me,verticalScrollbar:qe}=ye(),Oe=be();return Ht("div",{key:0,class:$.e("wrapper"),role:b.role},[Ht(De,{class:b.className,style:v(J),onScroll:ue,ref:R},Gt(De)?Oe:{default:()=>Oe}),Me,qe])}}}),qDe=EZ({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,o,i,a,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),f=Math.max(0,r*t-n+s+t);switch(o==="smart"&&(i>=f-n&&i<=u+n?o=wu:o=ff),o){case HO:return u;case ZO:return f;case ff:{const h=Math.round(f+(u-f)/2);return h<Math.ceil(n/2)?0:h>l+Math.floor(n/2)?l:h}case wu:default:return i>=f&&i<=u?i:f>u||i<f?f:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,o,i,a,s)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),f=Math.max(0,r*e-t+s+e);switch(o===sE&&(i>=f-t&&i<=u+t?o=wu:o=ff),o){case HO:return u;case ZO:return f;case ff:{const h=Math.round(f+(u-f)/2);return h<Math.ceil(t/2)?0:h>l+Math.floor(t/2)?l:h}case wu:default:return i>=f&&i<=u?i:f>u||i<f?f:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,o)=>{const i=r*e,a=Math.ceil((n+o-i)/e);return Math.max(0,Math.min(t-1,r+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,o)=>{const i=r*e,a=Math.ceil((n+o-i)/e);return Math.max(0,Math.min(t-1,r+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:vC,min:TZ,floor:PZ}=Math,KDe={column:"columnWidth",row:"rowHeight"},_R={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},hd=(e,t,n,r)=>{const[o,i,a]=[n[r],e[KDe[r]],n[_R[r]]];if(t>a){let s=0;if(a>=0){const l=o[a];s=l.offset+l.size}for(let l=a+1;l<=t;l++){const u=i(l);o[l]={offset:s,size:u},s+=u}n[_R[r]]=t}return o[t]},$Z=(e,t,n,r,o,i)=>{for(;n<=r;){const a=n+PZ((r-n)/2),s=hd(e,a,t,i).offset;if(s===o)return a;s<o?n=a+1:r=a-1}return vC(0,n-1)},GDe=(e,t,n,r,o)=>{const i=o==="column"?e.totalColumn:e.totalRow;let a=1;for(;n<i&&hd(e,n,t,o).offset<r;)n+=a,a*=2;return $Z(e,t,PZ(n/2),TZ(n,i-1),r,o)},eV=(e,t,n,r)=>{const[o,i]=[t[r],t[_R[r]]];return(i>0?o[i].offset:0)>=n?$Z(e,t,0,i,n,r):GDe(e,t,vC(0,i),n,r)},AZ=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const s=r[n];o=s.offset+s.size}const a=(e-n-1)*t;return o+a},MZ=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let o=0;if(r>e&&(r=e-1),r>=0){const s=t[r];o=s.offset+s.size}const a=(e-r-1)*n;return o+a},JDe={column:MZ,row:AZ},tV=(e,t,n,r,o,i,a)=>{const[s,l]=[i==="row"?e.height:e.width,JDe[i]],u=hd(e,t,o,i),f=l(e,o),h=vC(0,TZ(f-s,u.offset)),m=vC(0,u.offset-s+a+u.size);switch(n===sE&&(r>=m-s&&r<=h+s?n=wu:n=ff),n){case HO:return h;case ZO:return m;case ff:return Math.round(m+(h-m)/2);case wu:default:return r>=m&&r<=h?r:m>h||r<m?m:h}},e3e=EZ({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=hd(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=hd(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,i)=>tV(e,t,n,r,o,"column",i),getRowOffset:(e,t,n,r,o,i)=>tV(e,t,n,r,o,"row",i),getColumnStartIndexForOffset:(e,t,n)=>eV(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=hd(e,t,r,"column"),i=n+e.width;let a=o.offset+o.size,s=t;for(;s<e.totalColumn-1&&a<i;)s++,a+=hd(e,t,r,"column").size;return s},getEstimatedTotalHeight:AZ,getEstimatedTotalWidth:MZ,getRowStartIndexForOffset:(e,t,n)=>eV(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:o,height:i}=e,a=hd(e,t,r,"row"),s=n+i;let l=a.size+a.offset,u=t;for(;u<o-1&&l<s;)u++,l+=hd(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:a},s)=>{var l,u;s=zo(s)?!0:s,tn(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),tn(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(i,a)=>{n({columnIndex:i},a)},o=(i,a)=>{n({rowIndex:i},a)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=hR,estimatedRowHeight:t=hR})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),t3e=xe({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:ut("select")}}});function n3e(e,t,n,r,o,i){return U(),ce("div",{class:G(e.ns.be("group","title")),style:Ft([e.style,{lineHeight:`${e.height}px`}])},ct(e.item.label),7)}var r3e=gt(t3e,[["render",n3e],["__file","group-item.vue"]]);function o3e(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const RZ={label:"label",value:"value",disabled:"disabled",options:"options"};function lE(e){const t=W(()=>({...RZ,...e.props}));return{aliasProps:t,getLabel:a=>No(a,t.value.label),getValue:a=>No(a,t.value.value),getDisabled:a=>No(a,t.value.disabled),getOptions:a=>No(a,t.value.options)}}const i3e=pt({allowCreate:Boolean,autocomplete:{type:Le(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Wr,default:$p},effect:{type:Le(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:Le([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Le(Array),required:!0},placeholder:{type:String},teleported:Ji.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Le(Object),default:()=>({})},remote:Boolean,size:Ni,props:{type:Le(Object),default:()=>RZ},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},placement:{type:Le(String),values:Mm,default:"bottom-start"},fallbackPlacements:{type:Le(Array),default:["bottom-start","top-start","right","left"]},tagType:{..._m.type,default:"info"},tagEffect:{..._m.effect,default:"light"},...C0,...va(["ariaLabel"])}),a3e=pt({data:Array,disabled:Boolean,hovering:Boolean,item:{type:Le(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),E3=Symbol("ElSelectV2Injection"),s3e=xe({props:a3e,emits:["select","hover"],setup(e,{emit:t}){const n=$t(E3),r=ut("select"),{hoverItem:o,selectOptionClick:i}=o3e(e,{emit:t}),{getLabel:a}=lE(n.props);return{ns:r,hoverItem:o,selectOptionClick:i,getLabel:a}}});function l3e(e,t,n,r,o,i){return U(),ce("li",{"aria-selected":e.selected,style:Ft(e.style),class:G([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMouseenter:e.hoverItem,onClick:nn(e.selectOptionClick,["stop"])},[Xe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[ge("span",null,ct(e.getLabel(e.item)),1)])],46,["aria-selected","onMouseenter","onClick"])}var u3e=gt(s3e,[["render",l3e],["__file","option-item.vue"]]),c3e=xe({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=$t(E3),o=ut("select"),{getLabel:i,getValue:a,getDisabled:s}=lE(r.props),l=ee([]),u=ee(),f=W(()=>e.data.length);at(()=>f.value,()=>{var L,V;(V=(L=r.tooltipRef.value).updatePopper)==null||V.call(L)});const h=W(()=>zo(r.props.estimatedOptionHeight)),m=W(()=>h.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:L=>l.value[L]}),y=(L=[],V)=>{const{props:{valueKey:X}}=r;return $n(V)?L&&L.some(oe=>dr(No(oe,X))===No(V,X)):L.includes(V)},O=(L,V)=>{if($n(V)){const{valueKey:X}=r.props;return No(L,X)===No(V,X)}else return L===V},b=(L,V)=>r.props.multiple?y(L,a(V)):O(L,a(V)),k=(L,V)=>{const{disabled:X,multiple:oe,multipleLimit:K}=r.props;return X||!V&&(oe?K>0&&L.length>=K:!1)},C=L=>e.hoveringIndex===L;n({listRef:u,isSized:h,isItemDisabled:k,isItemHovering:C,isItemSelected:b,scrollToItem:L=>{const V=u.value;V&&V.scrollToItem(L)},resetScrollTop:()=>{const L=u.value;L&&L.resetScrollTop()}});const T=L=>{const{index:V,data:X,style:oe}=L,K=v(h),{itemSize:Z,estimatedSize:re}=v(m),{modelValue:J}=r.props,{onSelect:z,onHover:q}=r,ue=X[V];if(ue.type==="Group")return ne(r3e,{item:ue,style:oe,height:K?Z:re},null);const he=b(J,ue),le=k(J,he),ze=C(V);return ne(u3e,Dn(L,{selected:he,disabled:s(ue)||le,created:!!ue.created,hovering:ze,item:ue,onSelect:z,onHover:q}),{default:Ee=>{var Be;return((Be=t.default)==null?void 0:Be.call(t,Ee))||ne("span",null,[i(ue)])}})},{onKeyboardNavigate:A,onKeyboardSelect:R}=r,B=()=>{A("forward")},I=()=>{A("backward")},N=()=>{r.expanded=!1},j=L=>{const{code:V}=L,{tab:X,esc:oe,down:K,up:Z,enter:re}=Yt;switch(V!==X&&(L.preventDefault(),L.stopPropagation()),V){case X:case oe:{N();break}case K:{B();break}case Z:{I();break}case re:{R();break}}};return()=>{var L,V,X,oe;const{data:K,width:Z}=e,{height:re,multiple:J,scrollbarAlwaysOn:z}=r.props,q=v(h)?kZ:ZDe;return ne("div",{class:[o.b("dropdown"),o.is("multiple",J)],style:{width:`${Z}px`}},[(L=t.header)==null?void 0:L.call(t),((V=t.loading)==null?void 0:V.call(t))||((X=t.empty)==null?void 0:X.call(t))||ne(q,Dn({ref:u},v(m),{className:o.be("dropdown","list"),scrollbarAlwaysOn:z,data:K,height:re,width:Z,total:K.length,onKeydown:j}),{default:ue=>ne(T,ue,null)}),(oe=t.footer)==null?void 0:oe.call(t)])}}});function f3e(e,t){const{aliasProps:n,getLabel:r,getValue:o}=lE(e),i=ee(0),a=ee(null),s=W(()=>e.allowCreate&&e.filterable);function l(y){const O=b=>r(b)===y;return e.options&&e.options.some(O)||t.createdOptions.some(O)}function u(y){!s.value||(e.multiple&&y.created?i.value++:a.value=y)}function f(y){if(s.value)if(y&&y.length>0){if(l(y))return;const O={[n.value.value]:y,[n.value.label]:y,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=O:t.createdOptions.push(O)}else if(e.multiple)t.createdOptions.length=i.value;else{const O=a.value;t.createdOptions.length=0,O&&O.created&&t.createdOptions.push(O)}}function h(y){if(!s.value||!y||!y.created||y.created&&e.reserveKeyword&&t.inputValue===r(y))return;const O=t.createdOptions.findIndex(b=>o(b)===o(y));~O&&(t.createdOptions.splice(O,1),i.value--)}function m(){s.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:f,removeNewOption:h,selectNewOption:u,clearAllNewOption:m}}const d3e=11,h3e=(e,t)=>{const{t:n}=ir(),r=ut("select"),o=ut("input"),{form:i,formItem:a}=cs(),{inputId:s}=Cc(e,{formItemContext:a}),{aliasProps:l,getLabel:u,getValue:f,getDisabled:h,getOptions:m}=lE(e),{valueOnClear:y,isEmptyValue:O}=J2(e),b=or({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),k=ee(-1),C=ee(null),P=ee(null),$=ee(null),T=ee(null),A=ee(null),R=ee(null),B=ee(null),I=ee(null),N=ee(null),j=ee(null),L=ee(null),{isComposing:V,handleCompositionStart:X,handleCompositionEnd:oe,handleCompositionUpdate:K}=G2({afterComposition:_t=>hr(_t)}),{wrapperRef:Z,isFocused:re}=F1(A,{afterFocus(){e.automaticDropdown&&!q.value&&(q.value=!0,b.menuVisibleOnFocus=!0)},beforeBlur(_t){var fn,Vn;return((fn=$.value)==null?void 0:fn.isFocusInsideContent(_t))||((Vn=T.value)==null?void 0:Vn.isFocusInsideContent(_t))},afterBlur(){q.value=!1,b.menuVisibleOnFocus=!1}}),J=ee([]),z=ee([]),q=ee(!1),ue=W(()=>e.disabled||(i==null?void 0:i.disabled)),he=W(()=>{const _t=z.value.length*e.itemHeight;return _t>e.height?e.height:_t}),le=W(()=>e.multiple?Et(e.modelValue)&&e.modelValue.length>0:!O(e.modelValue)),ze=W(()=>e.clearable&&!ue.value&&b.inputHovering&&le.value),Ee=W(()=>e.remote&&e.filterable?"":Dd),Be=W(()=>Ee.value&&r.is("reverse",q.value)),Ae=W(()=>(a==null?void 0:a.validateState)||""),_e=W(()=>$D[Ae.value]),ve=W(()=>e.remote?300:0),Ne=W(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!b.inputValue&&J.value.length===0?!1:e.filterable&&b.inputValue&&J.value.length>0&&z.value.length===0?e.noMatchText||n("el.select.noMatch"):J.value.length===0?e.noDataText||n("el.select.noData"):null),Se=_t=>{const fn=Vn=>{if(e.filterable&&rn(e.filterMethod)||e.filterable&&e.remote&&rn(e.remoteMethod))return!0;const Or=new RegExp(_D(_t),"i");return _t?Or.test(u(Vn)||""):!0};return e.loading?[]:[...b.createdOptions,...e.options].reduce((Vn,Or)=>{const Di=m(Or);if(Et(Di)){const hs=Di.filter(fn);hs.length>0&&Vn.push({label:u(Or),type:"Group"},...hs)}else(e.remote||fn(Or))&&Vn.push(Or);return Vn},[])},fe=()=>{J.value=Se(""),z.value=Se(b.inputValue)},ye=W(()=>{const _t=new Map;return J.value.forEach((fn,Vn)=>{_t.set(It(f(fn)),{option:fn,index:Vn})}),_t}),He=W(()=>{const _t=new Map;return z.value.forEach((fn,Vn)=>{_t.set(It(f(fn)),{option:fn,index:Vn})}),_t}),be=W(()=>z.value.every(_t=>h(_t))),Ie=wi(),De=W(()=>Ie.value==="small"?"small":"default"),Me=()=>{var _t;k.value=((_t=C.value)==null?void 0:_t.offsetWidth)||200},qe=()=>{if(!P.value)return 0;const _t=window.getComputedStyle(P.value);return Number.parseFloat(_t.gap||"6px")},Oe=W(()=>{const _t=qe();return{maxWidth:`${L.value&&e.maxCollapseTags===1?b.selectionWidth-b.collapseItemWidth-_t:b.selectionWidth}px`}}),Je=W(()=>({maxWidth:`${b.selectionWidth}px`})),lt=W(()=>({width:`${Math.max(b.calculatorWidth,d3e)}px`})),Ke=W(()=>Et(e.modelValue)?e.modelValue.length===0&&!b.inputValue:e.filterable?!b.inputValue:!0),et=W(()=>{var _t;const fn=(_t=e.placeholder)!=null?_t:n("el.select.placeholder");return e.multiple||!le.value?fn:b.selectedLabel}),bt=W(()=>{var _t,fn;return(fn=(_t=$.value)==null?void 0:_t.popperRef)==null?void 0:fn.contentRef}),Ot=W(()=>{if(e.multiple){const _t=e.modelValue.length;if(e.modelValue.length>0&&He.value.has(e.modelValue[_t-1])){const{index:fn}=He.value.get(e.modelValue[_t-1]);return fn}}else if(e.modelValue&&He.value.has(e.modelValue)){const{index:_t}=He.value.get(e.modelValue);return _t}return-1}),Qt=W({get(){return q.value&&Ne.value!==!1},set(_t){q.value=_t}}),kt=W(()=>e.multiple?e.collapseTags?b.cachedOptions.slice(0,e.maxCollapseTags):b.cachedOptions:[]),an=W(()=>e.multiple?e.collapseTags?b.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:Ce,removeNewOption:Ye,selectNewOption:me,clearAllNewOption:Ve}=f3e(e,b),ke=()=>{ue.value||(b.menuVisibleOnFocus?b.menuVisibleOnFocus=!1:q.value=!q.value)},Ze=()=>{b.inputValue.length>0&&!q.value&&(q.value=!0),Ce(b.inputValue),zt(b.inputValue)},rt=Rs(Ze,ve.value),zt=_t=>{b.previousQuery===_t||V.value||(b.previousQuery=_t,e.filterable&&rn(e.filterMethod)?e.filterMethod(_t):e.filterable&&e.remote&&rn(e.remoteMethod)&&e.remoteMethod(_t),e.defaultFirstOption&&(e.filterable||e.remote)&&z.value.length?Wt(Fn):Wt(Un))},Fn=()=>{const _t=z.value.filter(Or=>!Or.disabled&&Or.type!=="Group"),fn=_t.find(Or=>Or.created),Vn=_t[0];b.hoveringIndex=Sn(z.value,fn||Vn)},ot=_t=>{ss(e.modelValue,_t)||t(uo,_t)},Bt=_t=>{t(Tn,_t),ot(_t),b.previousValue=e.multiple?String(_t):_t},Sn=(_t=[],fn)=>{if(!$n(fn))return _t.indexOf(fn);const Vn=e.valueKey;let Or=-1;return _t.some((Di,hs)=>No(Di,Vn)===No(fn,Vn)?(Or=hs,!0):!1),Or},It=_t=>$n(_t)?No(_t,e.valueKey):_t,qt=()=>{Me()},Xt=()=>{b.selectionWidth=P.value.getBoundingClientRect().width},xn=()=>{b.calculatorWidth=R.value.getBoundingClientRect().width},Br=()=>{b.collapseItemWidth=L.value.getBoundingClientRect().width},ro=()=>{var _t,fn;(fn=(_t=$.value)==null?void 0:_t.updatePopper)==null||fn.call(_t)},Oa=()=>{var _t,fn;(fn=(_t=T.value)==null?void 0:_t.updatePopper)==null||fn.call(_t)},hi=_t=>{if(e.multiple){let fn=e.modelValue.slice();const Vn=Sn(fn,f(_t));Vn>-1?(fn=[...fn.slice(0,Vn),...fn.slice(Vn+1)],b.cachedOptions.splice(Vn,1),Ye(_t)):(e.multipleLimit<=0||fn.length<e.multipleLimit)&&(fn=[...fn,f(_t)],b.cachedOptions.push(_t),me(_t)),Bt(fn),_t.created&&zt(""),e.filterable&&!e.reserveKeyword&&(b.inputValue="")}else b.selectedLabel=u(_t),Bt(f(_t)),q.value=!1,me(_t),_t.created||Ve();wa()},Wa=(_t,fn)=>{let Vn=e.modelValue.slice();const Or=Sn(Vn,f(fn));Or>-1&&!ue.value&&(Vn=[...e.modelValue.slice(0,Or),...e.modelValue.slice(Or+1)],b.cachedOptions.splice(Or,1),Bt(Vn),t("remove-tag",f(fn)),Ye(fn)),_t.stopPropagation(),wa()},wa=()=>{var _t;(_t=A.value)==null||_t.focus()},Bf=()=>{var _t;(_t=A.value)==null||_t.blur()},Zl=()=>{b.inputValue.length>0?b.inputValue="":q.value=!1},Hi=_t=>j2(_t,fn=>!b.cachedOptions.some(Vn=>f(Vn)===fn&&h(Vn))),dl=_t=>{if(!!e.multiple&&_t.code!==Yt.delete&&b.inputValue.length===0){_t.preventDefault();const fn=e.modelValue.slice(),Vn=Hi(fn);if(Vn<0)return;const Or=fn[Vn];fn.splice(Vn,1);const Di=b.cachedOptions[Vn];b.cachedOptions.splice(Vn,1),Ye(Di),Bt(fn),t("remove-tag",Or)}},On=()=>{let _t;Et(e.modelValue)?_t=[]:_t=y.value,e.multiple?b.cachedOptions=[]:b.selectedLabel="",q.value=!1,Bt(_t),t("clear"),Ve(),wa()},$c=(_t,fn=void 0)=>{const Vn=z.value;if(!["forward","backward"].includes(_t)||ue.value||Vn.length<=0||be.value||V.value)return;if(!q.value)return ke();fn===void 0&&(fn=b.hoveringIndex);let Or=-1;_t==="forward"?(Or=fn+1,Or>=Vn.length&&(Or=0)):_t==="backward"&&(Or=fn-1,(Or<0||Or>=Vn.length)&&(Or=Vn.length-1));const Di=Vn[Or];if(h(Di)||Di.type==="Group")return $c(_t,Or);b.hoveringIndex=Or,Ko(Or)},St=()=>{if(q.value)~b.hoveringIndex&&z.value[b.hoveringIndex]&&hi(z.value[b.hoveringIndex]);else return ke()},on=_t=>{b.hoveringIndex=_t},Un=()=>{e.multiple?b.hoveringIndex=z.value.findIndex(_t=>e.modelValue.some(fn=>It(fn)===It(_t))):b.hoveringIndex=z.value.findIndex(_t=>It(_t)===It(e.modelValue))},hr=_t=>{if(b.inputValue=_t.target.value,e.remote)rt();else return Ze()},Zi=_t=>{if(q.value=!1,re.value){const fn=new FocusEvent("focus",_t);handleBlur(fn)}},si=()=>(b.isBeforeHide=!1,Wt(()=>{~Ot.value&&Ko(b.hoveringIndex)})),Ko=_t=>{N.value.scrollToItem(_t)},Go=_t=>{const fn=It(_t);if(ye.value.has(fn)){const{option:Vn}=ye.value.get(fn);return Vn}return{[l.value.value]:_t,[l.value.label]:_t}},pi=()=>{if(e.multiple)if(e.modelValue.length>0){b.cachedOptions.length=0,b.previousValue=e.modelValue.toString();for(const _t of e.modelValue){const fn=Go(_t);b.cachedOptions.push(fn)}}else b.cachedOptions=[],b.previousValue=void 0;else if(le.value){b.previousValue=e.modelValue;const _t=z.value,fn=_t.findIndex(Vn=>It(f(Vn))===It(e.modelValue));~fn?b.selectedLabel=u(_t[fn]):b.selectedLabel=It(e.modelValue)}else b.selectedLabel="",b.previousValue=void 0;Ve(),Me()};return at(q,_t=>{_t?zt(""):(b.inputValue="",b.previousQuery=null,b.isBeforeHide=!0,Ce("")),t("visible-change",_t)}),at(()=>e.modelValue,(_t,fn)=>{var Vn;(!_t||e.multiple&&_t.toString()!==b.previousValue||!e.multiple&&It(_t)!==It(b.previousValue))&&pi(),!ss(_t,fn)&&e.validateEvent&&((Vn=a==null?void 0:a.validate)==null||Vn.call(a,"change").catch(Or=>void 0))},{deep:!0}),at(()=>e.options,()=>{const _t=A.value;(!_t||_t&&document.activeElement!==_t)&&pi()},{deep:!0,flush:"post"}),at(()=>z.value,()=>N.value&&Wt(N.value.resetScrollTop)),Ba(()=>{b.isBeforeHide||fe()}),Ba(()=>{const{valueKey:_t,options:fn}=e,Vn=new Map;for(const Or of fn){const Di=f(Or);let hs=Di;if($n(hs)&&(hs=No(Di,_t)),Vn.get(hs))break;Vn.set(hs,!0)}}),vn(()=>{pi()}),So(C,qt),So(P,Xt),So(R,xn),So(N,ro),So(Z,ro),So(j,Oa),So(L,Br),{inputId:s,collapseTagSize:De,currentPlaceholder:et,expanded:q,emptyText:Ne,popupHeight:he,debounce:ve,allOptions:J,filteredOptions:z,iconComponent:Ee,iconReverse:Be,tagStyle:Oe,collapseTagStyle:Je,inputStyle:lt,popperSize:k,dropdownMenuVisible:Qt,hasModelValue:le,shouldShowPlaceholder:Ke,selectDisabled:ue,selectSize:Ie,showClearBtn:ze,states:b,isFocused:re,nsSelect:r,nsInput:o,calculatorRef:R,inputRef:A,menuRef:N,tagMenuRef:j,tooltipRef:$,tagTooltipRef:T,selectRef:C,wrapperRef:Z,selectionRef:P,prefixRef:B,suffixRef:I,collapseItemRef:L,popperRef:bt,validateState:Ae,validateIcon:_e,showTagList:kt,collapseTagList:an,debouncedOnInputChange:rt,deleteTag:Wa,getLabel:u,getValue:f,getDisabled:h,getValueKey:It,handleClear:On,handleClickOutside:Zi,handleDel:dl,handleEsc:Zl,focus:wa,blur:Bf,handleMenuEnter:si,handleResize:qt,resetSelectionWidth:Xt,resetCalculatorWidth:xn,updateTooltip:ro,updateTagTooltip:Oa,updateOptions:fe,toggleMenu:ke,scrollTo:Ko,onInput:hr,onKeyboardNavigate:$c,onKeyboardSelect:St,onSelect:hi,onHover:on,handleCompositionStart:X,handleCompositionEnd:oe,handleCompositionUpdate:K}},p3e=xe({name:"ElSelectV2",components:{ElSelectMenu:c3e,ElTag:hp,ElTooltip:ia,ElIcon:Lt},directives:{ClickOutside:Sd},props:i3e,emits:[Tn,uo,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=W(()=>{const{modelValue:o,multiple:i}=e,a=i?[]:void 0;return Et(o)?i?o:a:i?a:o}),r=h3e(or({...ra(e),modelValue:n}),t);return Yn(E3,{props:or({...ra(e),height:r.popupHeight,modelValue:n}),tooltipRef:r.tooltipRef,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}});function g3e(e,t,n,r,o,i){const a=Pn("el-tag"),s=Pn("el-tooltip"),l=Pn("el-icon"),u=Pn("el-select-menu"),f=_2("click-outside");return bn((U(),ce("div",{ref:"selectRef",class:G([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:h=>e.states.inputHovering=!0,onMouseleave:h=>e.states.inputHovering=!1},[ne(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:h=>e.states.isBeforeHide=!1},{default:se(()=>[ge("div",{ref:"wrapperRef",class:G([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:nn(e.toggleMenu,["prevent","stop"])},[e.$slots.prefix?(U(),ce("div",{key:0,ref:"prefixRef",class:G(e.nsSelect.e("prefix"))},[Xe(e.$slots,"prefix")],2)):Fe("v-if",!0),ge("div",{ref:"selectionRef",class:G([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?Xe(e.$slots,"tag",{key:0},()=>[(U(!0),ce(Pt,null,_n(e.showTagList,h=>(U(),ce("div",{key:e.getValueKey(e.getValue(h)),class:G(e.nsSelect.e("selected-item"))},[ne(a,{closable:!e.selectDisabled&&!e.getDisabled(h),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ft(e.tagStyle),onClose:m=>e.deleteTag(m,h)},{default:se(()=>[ge("span",{class:G(e.nsSelect.e("tags-text"))},[Xe(e.$slots,"label",{label:e.getLabel(h),value:e.getValue(h)},()=>[xt(ct(e.getLabel(h)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(U(),Qe(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:se(()=>[ge("div",{ref:"collapseItemRef",class:G(e.nsSelect.e("selected-item"))},[ne(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Ft(e.collapseTagStyle),"disable-transitions":""},{default:se(()=>[ge("span",{class:G(e.nsSelect.e("tags-text"))}," + "+ct(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:se(()=>[ge("div",{ref:"tagMenuRef",class:G(e.nsSelect.e("selection"))},[(U(!0),ce(Pt,null,_n(e.collapseTagList,h=>(U(),ce("div",{key:e.getValueKey(e.getValue(h)),class:G(e.nsSelect.e("selected-item"))},[ne(a,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(h),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:m=>e.deleteTag(m,h)},{default:se(()=>[ge("span",{class:G(e.nsSelect.e("tags-text"))},[Xe(e.$slots,"label",{label:e.getLabel(h),value:e.getValue(h)},()=>[xt(ct(e.getLabel(h)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Fe("v-if",!0)]):Fe("v-if",!0),e.selectDisabled?Fe("v-if",!0):(U(),ce("div",{key:1,class:G([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[bn(ge("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":h=>e.states.inputValue=h,style:Ft(e.inputStyle),autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:G([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[Qr(nn(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),Qr(nn(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),Qr(nn(e.onKeyboardSelect,["stop","prevent"]),["enter"]),Qr(nn(e.handleEsc,["stop","prevent"]),["esc"]),Qr(nn(e.handleDel,["stop"]),["delete"])],onClick:nn(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[yI,e.states.inputValue]]),e.filterable?(U(),ce("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:G(e.nsSelect.e("input-calculator")),textContent:ct(e.states.inputValue)},null,10,["textContent"])):Fe("v-if",!0)],2)),e.shouldShowPlaceholder?(U(),ce("div",{key:2,class:G([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Xe(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ge("span",null,ct(e.currentPlaceholder),1)]):(U(),ce("span",{key:1},ct(e.currentPlaceholder),1))],2)):Fe("v-if",!0)],2),ge("div",{ref:"suffixRef",class:G(e.nsSelect.e("suffix"))},[e.iconComponent?bn((U(),Qe(l,{key:0,class:G([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:se(()=>[(U(),Qe(jn(e.iconComponent)))]),_:1},8,["class"])),[[gr,!e.showClearBtn]]):Fe("v-if",!0),e.showClearBtn&&e.clearIcon?(U(),Qe(l,{key:1,class:G([e.nsSelect.e("caret"),e.nsInput.e("icon")]),onClick:nn(e.handleClear,["prevent","stop"])},{default:se(()=>[(U(),Qe(jn(e.clearIcon)))]),_:1},8,["class","onClick"])):Fe("v-if",!0),e.validateState&&e.validateIcon?(U(),Qe(l,{key:2,class:G([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:se(()=>[(U(),Qe(jn(e.validateIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],2)],10,["onClick"])]),content:se(()=>[ne(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Fl({default:se(h=>[Xe(e.$slots,"default",fc(tp(h)))]),_:2},[e.$slots.header?{name:"header",fn:se(()=>[ge("div",{class:G(e.nsSelect.be("dropdown","header"))},[Xe(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:se(()=>[ge("div",{class:G(e.nsSelect.be("dropdown","loading"))},[Xe(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:se(()=>[ge("div",{class:G(e.nsSelect.be("dropdown","empty"))},[Xe(e.$slots,"empty",{},()=>[ge("span",null,ct(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:se(()=>[ge("div",{class:G(e.nsSelect.be("dropdown","footer"))},[Xe(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[f,e.handleClickOutside,e.popperRef]])}var m3e=gt(p3e,[["render",g3e],["__file","select.vue"]]);const v3e=gn(m3e),y3e=pt({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),b3e=pt({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),_3e=xe({name:"ElSkeletonItem"}),O3e=xe({..._3e,props:b3e,setup(e){const t=ut("skeleton");return(n,r)=>(U(),ce("div",{class:G([v(t).e("item"),v(t).e(n.variant)])},[n.variant==="image"?(U(),Qe(v(pSe),{key:0})):Fe("v-if",!0)],2))}});var yC=gt(O3e,[["__file","skeleton-item.vue"]]);const w3e=xe({name:"ElSkeleton"}),S3e=xe({...w3e,props:y3e,setup(e,{expose:t}){const n=e,r=ut("skeleton"),o=uke(Tr(n,"loading"),n.throttle);return t({uiLoading:o}),(i,a)=>v(o)?(U(),ce("div",Dn({key:0,class:[v(r).b(),v(r).is("animated",i.animated)]},i.$attrs),[(U(!0),ce(Pt,null,_n(i.count,s=>(U(),ce(Pt,{key:s},[i.loading?Xe(i.$slots,"template",{key:s},()=>[ne(yC,{class:G(v(r).is("first")),variant:"p"},null,8,["class"]),(U(!0),ce(Pt,null,_n(i.rows,l=>(U(),Qe(yC,{key:l,class:G([v(r).e("paragraph"),v(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):Fe("v-if",!0)],64))),128))],16)):Xe(i.$slots,"default",fc(Dn({key:1},i.$attrs)))}});var x3e=gt(S3e,[["__file","skeleton.vue"]]);const k3e=gn(x3e,{SkeletonItem:yC}),C3e=Co(yC),NZ=Symbol("sliderContextKey"),E3e=pt({modelValue:{type:Le([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:Ni,inputSize:Ni,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Le(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Le(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Mm,default:"top"},marks:{type:Le(Object)},validateEvent:{type:Boolean,default:!0},...va(["ariaLabel"])}),_A=e=>tn(e)||Et(e)&&e.every(tn),T3e={[Tn]:_A,[Ps]:_A,[uo]:_A},P3e=(e,t,n)=>{const r=ee();return vn(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),Nr(window,"resize",n),await Wt(),n()}),{sliderWrapper:r}},$3e=e=>W(()=>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]})):[]),A3e=(e,t,n)=>{const{form:r,formItem:o}=cs(),i=to(),a=ee(),s=ee(),l={firstButton:a,secondButton:s},u=W(()=>e.disabled||(r==null?void 0:r.disabled)||!1),f=W(()=>Math.min(t.firstValue,t.secondValue)),h=W(()=>Math.max(t.firstValue,t.secondValue)),m=W(()=>e.range?`${100*(h.value-f.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),y=W(()=>e.range?`${100*(f.value-e.min)/(e.max-e.min)}%`:"0%"),O=W(()=>e.vertical?{height:e.height}:{}),b=W(()=>e.vertical?{height:m.value,bottom:y.value}:{width:m.value,left:y.value}),k=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},C=V=>{const X=e.min+V*(e.max-e.min)/100;if(!e.range)return a;let oe;return Math.abs(f.value-X)<Math.abs(h.value-X)?oe=t.firstValue<t.secondValue?"firstButton":"secondButton":oe=t.firstValue>t.secondValue?"firstButton":"secondButton",l[oe]},P=V=>{const X=C(V);return X.value.setPosition(V),X},$=V=>{t.firstValue=V!=null?V:e.min,A(e.range?[f.value,h.value]:V!=null?V:e.min)},T=V=>{t.secondValue=V,e.range&&A([f.value,h.value])},A=V=>{n(Tn,V),n(Ps,V)},R=async()=>{await Wt(),n(uo,e.range?[f.value,h.value]:e.modelValue)},B=V=>{var X,oe,K,Z,re,J;if(u.value||t.dragging)return;k();let z=0;if(e.vertical){const q=(K=(oe=(X=V.touches)==null?void 0:X.item(0))==null?void 0:oe.clientY)!=null?K:V.clientY;z=(i.value.getBoundingClientRect().bottom-q)/t.sliderSize*100}else{const q=(J=(re=(Z=V.touches)==null?void 0:Z.item(0))==null?void 0:re.clientX)!=null?J:V.clientX,ue=i.value.getBoundingClientRect().left;z=(q-ue)/t.sliderSize*100}if(!(z<0||z>100))return P(z)};return{elFormItem:o,slider:i,firstButton:a,secondButton:s,sliderDisabled:u,minValue:f,maxValue:h,runwayStyle:O,barStyle:b,resetSize:k,setPosition:P,emitChange:R,onSliderWrapperPrevent:V=>{var X,oe;(((X=l.firstButton.value)==null?void 0:X.dragging)||((oe=l.secondButton.value)==null?void 0:oe.dragging))&&V.preventDefault()},onSliderClick:V=>{B(V)&&R()},onSliderDown:async V=>{const X=B(V);X&&(await Wt(),X.value.onButtonDown(V))},onSliderMarkerDown:V=>{u.value||t.dragging||P(V)},setFirstValue:$,setSecondValue:T}},{left:M3e,down:R3e,right:N3e,up:I3e,home:D3e,end:j3e,pageUp:L3e,pageDown:B3e}=Yt,V3e=(e,t,n)=>{const r=ee(),o=ee(!1),i=W(()=>t.value instanceof Function),a=W(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Rs(()=>{n.value&&(o.value=!0)},50),l=Rs(()=>{n.value&&(o.value=!1)},50);return{tooltip:r,tooltipVisible:o,formatValue:a,displayTooltip:s,hideTooltip:l}},F3e=(e,t,n)=>{const{disabled:r,min:o,max:i,step:a,showTooltip:s,precision:l,sliderSize:u,formatTooltip:f,emitChange:h,resetSize:m,updateDragging:y}=$t(NZ),{tooltip:O,tooltipVisible:b,formatValue:k,displayTooltip:C,hideTooltip:P}=V3e(e,f,s),$=ee(),T=W(()=>`${(e.modelValue-o.value)/(i.value-o.value)*100}%`),A=W(()=>e.vertical?{bottom:T.value}:{left:T.value}),R=()=>{t.hovering=!0,C()},B=()=>{t.hovering=!1,t.dragging||P()},I=he=>{r.value||(he.preventDefault(),J(he),window.addEventListener("mousemove",z),window.addEventListener("touchmove",z),window.addEventListener("mouseup",q),window.addEventListener("touchend",q),window.addEventListener("contextmenu",q),$.value.focus())},N=he=>{r.value||(t.newPosition=Number.parseFloat(T.value)+he/(i.value-o.value)*100,ue(t.newPosition),h())},j=()=>{N(-a.value)},L=()=>{N(a.value)},V=()=>{N(-a.value*4)},X=()=>{N(a.value*4)},oe=()=>{r.value||(ue(0),h())},K=()=>{r.value||(ue(100),h())},Z=he=>{let le=!0;[M3e,R3e].includes(he.key)?j():[N3e,I3e].includes(he.key)?L():he.key===D3e?oe():he.key===j3e?K():he.key===B3e?V():he.key===L3e?X():le=!1,le&&he.preventDefault()},re=he=>{let le,ze;return he.type.startsWith("touch")?(ze=he.touches[0].clientY,le=he.touches[0].clientX):(ze=he.clientY,le=he.clientX),{clientX:le,clientY:ze}},J=he=>{t.dragging=!0,t.isClick=!0;const{clientX:le,clientY:ze}=re(he);e.vertical?t.startY=ze:t.startX=le,t.startPosition=Number.parseFloat(T.value),t.newPosition=t.startPosition},z=he=>{if(t.dragging){t.isClick=!1,C(),m();let le;const{clientX:ze,clientY:Ee}=re(he);e.vertical?(t.currentY=Ee,le=(t.startY-t.currentY)/u.value*100):(t.currentX=ze,le=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+le,ue(t.newPosition)}},q=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||P(),t.isClick||ue(t.newPosition),h()},0),window.removeEventListener("mousemove",z),window.removeEventListener("touchmove",z),window.removeEventListener("mouseup",q),window.removeEventListener("touchend",q),window.removeEventListener("contextmenu",q))},ue=async he=>{if(he===null||Number.isNaN(+he))return;he<0?he=0:he>100&&(he=100);const le=100/((i.value-o.value)/a.value);let Ee=Math.round(he/le)*le*(i.value-o.value)*.01+o.value;Ee=Number.parseFloat(Ee.toFixed(l.value)),Ee!==e.modelValue&&n(Tn,Ee),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Wt(),t.dragging&&C(),O.value.updatePopper()};return at(()=>t.dragging,he=>{y(he)}),Nr($,"touchstart",I,{passive:!1}),{disabled:r,button:$,tooltip:O,tooltipVisible:b,showTooltip:s,wrapperStyle:A,formatValue:k,handleMouseEnter:R,handleMouseLeave:B,onButtonDown:I,onKeyDown:Z,setPosition:ue}},z3e=(e,t,n,r)=>({stops:W(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:a-1}).map((u,f)=>(f+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),Q3e=(e,t,n,r,o,i)=>{const a=u=>{o(Tn,u),o(Ps,u)},s=()=>e.range?![n.value,r.value].every((u,f)=>u===t.oldValue[f]):e.modelValue!==t.oldValue,l=()=>{var u,f;e.min>e.max&&Ri("Slider","min should not be greater than max.");const h=e.modelValue;e.range&&Array.isArray(h)?h[1]<e.min?a([e.min,e.min]):h[0]>e.max?a([e.max,e.max]):h[0]<e.min?a([e.min,h[1]]):h[1]>e.max?a([h[0],e.max]):(t.firstValue=h[0],t.secondValue=h[1],s()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(m=>void 0)),t.oldValue=h.slice())):!e.range&&typeof h=="number"&&!Number.isNaN(h)&&(h<e.min?a(e.min):h>e.max?a(e.max):(t.firstValue=h,s()&&(e.validateEvent&&((f=i==null?void 0:i.validate)==null||f.call(i,"change").catch(m=>void 0)),t.oldValue=h)))};l(),at(()=>t.dragging,u=>{u||l()}),at(()=>e.modelValue,(u,f)=>{t.dragging||Array.isArray(u)&&Array.isArray(f)&&u.every((h,m)=>h===f[m])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),at(()=>[e.min,e.max],()=>{l()})},W3e=pt({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Mm,default:"top"}}),Y3e={[Tn]:e=>tn(e)},U3e=xe({name:"ElSliderButton"}),H3e=xe({...U3e,props:W3e,emits:Y3e,setup(e,{expose:t,emit:n}){const r=e,o=ut("slider"),i=or({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:a,button:s,tooltip:l,showTooltip:u,tooltipVisible:f,wrapperStyle:h,formatValue:m,handleMouseEnter:y,handleMouseLeave:O,onButtonDown:b,onKeyDown:k,setPosition:C}=F3e(r,i,n),{hovering:P,dragging:$}=ra(i);return t({onButtonDown:b,onKeyDown:k,setPosition:C,hovering:P,dragging:$}),(T,A)=>(U(),ce("div",{ref_key:"button",ref:s,class:G([v(o).e("button-wrapper"),{hover:v(P),dragging:v($)}]),style:Ft(v(h)),tabindex:v(a)?-1:0,onMouseenter:v(y),onMouseleave:v(O),onMousedown:v(b),onFocus:v(y),onBlur:v(O),onKeydown:v(k)},[ne(v(ia),{ref_key:"tooltip",ref:l,visible:v(f),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!v(u),persistent:""},{content:se(()=>[ge("span",null,ct(v(m)),1)]),default:se(()=>[ge("div",{class:G([v(o).e("button"),{hover:v(P),dragging:v($)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var nV=gt(H3e,[["__file","button.vue"]]);const Z3e=pt({mark:{type:Le([String,Object]),default:void 0}});var X3e=xe({name:"ElSliderMarker",props:Z3e,setup(e){const t=ut("slider"),n=W(()=>Gt(e.mark)?e.mark:e.mark.label),r=W(()=>Gt(e.mark)?void 0:e.mark.style);return()=>Ht("div",{class:t.e("marks-text"),style:r.value},n.value)}});const q3e=xe({name:"ElSlider"}),K3e=xe({...q3e,props:E3e,emits:T3e,setup(e,{expose:t,emit:n}){const r=e,o=ut("slider"),{t:i}=ir(),a=or({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:f,sliderDisabled:h,minValue:m,maxValue:y,runwayStyle:O,barStyle:b,resetSize:k,emitChange:C,onSliderWrapperPrevent:P,onSliderClick:$,onSliderDown:T,onSliderMarkerDown:A,setFirstValue:R,setSecondValue:B}=A3e(r,a,n),{stops:I,getStopStyle:N}=z3e(r,a,m,y),{inputId:j,isLabeledByFormItem:L}=Cc(r,{formItemContext:s}),V=wi(),X=W(()=>r.inputSize||V.value),oe=W(()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max})),K=W(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):oe.value),Z=W(()=>r.formatValueText?r.formatValueText(le.value):`${le.value}`),re=W(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),J=W(()=>r.formatValueText?r.formatValueText(ze.value):`${ze.value}`),z=W(()=>[o.b(),o.m(V.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),q=$3e(r);Q3e(r,a,m,y,n,s);const ue=W(()=>{const Ae=[r.min,r.max,r.step].map(_e=>{const ve=`${_e}`.split(".")[1];return ve?ve.length:0});return Math.max.apply(null,Ae)}),{sliderWrapper:he}=P3e(r,a,k),{firstValue:le,secondValue:ze,sliderSize:Ee}=ra(a),Be=Ae=>{a.dragging=Ae};return Nr(he,"touchstart",P,{passive:!1}),Nr(he,"touchmove",P,{passive:!1}),Yn(NZ,{...ra(r),sliderSize:Ee,disabled:h,precision:ue,emitChange:C,resetSize:k,updateDragging:Be}),t({onSliderClick:$}),(Ae,_e)=>{var ve,Ne;return U(),ce("div",{id:Ae.range?v(j):void 0,ref_key:"sliderWrapper",ref:he,class:G(v(z)),role:Ae.range?"group":void 0,"aria-label":Ae.range&&!v(L)?v(oe):void 0,"aria-labelledby":Ae.range&&v(L)?(ve=v(s))==null?void 0:ve.labelId:void 0},[ge("div",{ref_key:"slider",ref:l,class:G([v(o).e("runway"),{"show-input":Ae.showInput&&!Ae.range},v(o).is("disabled",v(h))]),style:Ft(v(O)),onMousedown:v(T),onTouchstartPassive:v(T)},[ge("div",{class:G(v(o).e("bar")),style:Ft(v(b))},null,6),ne(nV,{id:Ae.range?void 0:v(j),ref_key:"firstButton",ref:u,"model-value":v(le),vertical:Ae.vertical,"tooltip-class":Ae.tooltipClass,placement:Ae.placement,role:"slider","aria-label":Ae.range||!v(L)?v(K):void 0,"aria-labelledby":!Ae.range&&v(L)?(Ne=v(s))==null?void 0:Ne.labelId:void 0,"aria-valuemin":Ae.min,"aria-valuemax":Ae.range?v(ze):Ae.max,"aria-valuenow":v(le),"aria-valuetext":v(Z),"aria-orientation":Ae.vertical?"vertical":"horizontal","aria-disabled":v(h),"onUpdate:modelValue":v(R)},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"]),Ae.range?(U(),Qe(nV,{key:0,ref_key:"secondButton",ref:f,"model-value":v(ze),vertical:Ae.vertical,"tooltip-class":Ae.tooltipClass,placement:Ae.placement,role:"slider","aria-label":v(re),"aria-valuemin":v(le),"aria-valuemax":Ae.max,"aria-valuenow":v(ze),"aria-valuetext":v(J),"aria-orientation":Ae.vertical?"vertical":"horizontal","aria-disabled":v(h),"onUpdate:modelValue":v(B)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):Fe("v-if",!0),Ae.showStops?(U(),ce("div",{key:1},[(U(!0),ce(Pt,null,_n(v(I),(Se,fe)=>(U(),ce("div",{key:fe,class:G(v(o).e("stop")),style:Ft(v(N)(Se))},null,6))),128))])):Fe("v-if",!0),v(q).length>0?(U(),ce(Pt,{key:2},[ge("div",null,[(U(!0),ce(Pt,null,_n(v(q),(Se,fe)=>(U(),ce("div",{key:fe,style:Ft(v(N)(Se.position)),class:G([v(o).e("stop"),v(o).e("marks-stop")])},null,6))),128))]),ge("div",{class:G(v(o).e("marks"))},[(U(!0),ce(Pt,null,_n(v(q),(Se,fe)=>(U(),Qe(v(X3e),{key:fe,mark:Se.mark,style:Ft(v(N)(Se.position)),onMousedown:nn(ye=>v(A)(Se.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):Fe("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),Ae.showInput&&!Ae.range?(U(),Qe(v(sZ),{key:0,ref:"input","model-value":v(le),class:G(v(o).e("input")),step:Ae.step,disabled:v(h),controls:Ae.showInputControls,min:Ae.min,max:Ae.max,precision:v(ue),debounce:Ae.debounce,size:v(X),"onUpdate:modelValue":v(R),onChange:v(C)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):Fe("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var G3e=gt(K3e,[["__file","slider.vue"]]);const J3e=gn(G3e),eje=pt({prefixCls:{type:String}}),rV=xe({name:"ElSpaceItem",props:eje,setup(e,{slots:t}){const n=ut("space"),r=W(()=>`${e.prefixCls||n.b()}__item`);return()=>Ht("div",{class:r.value},Xe(t,"default"))}}),oV={small:8,default:12,large:16};function tje(e){const t=ut("space"),n=W(()=>[t.b(),t.m(e.direction),e.class]),r=ee(0),o=ee(0),i=W(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${o.value}px`,columnGap:`${r.value}px`};return[s,l,u,e.style]}),a=W(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return Ba(()=>{const{size:s="small",wrap:l,direction:u,fill:f}=e;if(Et(s)){const[h=0,m=0]=s;r.value=h,o.value=m}else{let h;tn(s)?h=s:h=oV[s||"small"]||oV.small,(l||f)&&u==="horizontal"?r.value=o.value=h:u==="horizontal"?(r.value=h,o.value=0):(o.value=h,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:a}}const nje=pt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Le([String,Object,Array]),default:""},style:{type:Le([String,Array,Object]),default:""},alignment:{type:Le(String),default:"center"},prefixCls:{type:String},spacer:{type:Le([Object,String,Number,Array]),default:null,validator:e=>wo(e)||tn(e)||Gt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:$f,validator:e=>tn(e)||Et(e)&&e.length===2&&e.every(tn)}}),rje=xe({name:"ElSpace",props:nje,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=tje(e);function i(a,s="",l=[]){const{prefixCls:u}=e;return a.forEach((f,h)=>{LM(f)?Et(f.children)&&f.children.forEach((m,y)=>{LM(m)&&Et(m.children)?i(m.children,`${s+y}-`,l):l.push(ne(rV,{style:o.value,prefixCls:u,key:`nested-${s+y}`},{default:()=>[m]},pu.PROPS|pu.STYLE,["style","prefixCls"]))}):WSe(f)&&l.push(ne(rV,{style:o.value,prefixCls:u,key:`LoopKey${s+h}`},{default:()=>[f]},pu.PROPS|pu.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:s,direction:l}=e,u=Xe(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(Et(u.children)){let f=i(u.children);if(s){const h=f.length-1;f=f.reduce((m,y,O)=>{const b=[...m,y];return O!==h&&b.push(ne("span",{style:[o.value,l==="vertical"?"width: 100%":null],key:O},[wo(s)?s:xt(s,pu.TEXT)],pu.STYLE)),b},[])}return ne("div",{class:n.value,style:r.value},f,pu.STYLE|pu.CLASS)}return u.children}}}),oje=gn(rje),ije=pt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Le([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Le([String,Object,Array])}}),aje=xe({name:"ElStatistic"}),sje=xe({...aje,props:ije,setup(e,{expose:t}){const n=e,r=ut("statistic"),o=W(()=>{const{value:i,formatter:a,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(rn(a))return a(i);if(!tn(i)||Number.isNaN(i))return i;let[f,h=""]=String(i).split(".");return h=h.padEnd(s,"0").slice(0,s>0?s:0),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,u),[f,h].join(h?l:"")});return t({displayValue:o}),(i,a)=>(U(),ce("div",{class:G(v(r).b())},[i.$slots.title||i.title?(U(),ce("div",{key:0,class:G(v(r).e("head"))},[Xe(i.$slots,"title",{},()=>[xt(ct(i.title),1)])],2)):Fe("v-if",!0),ge("div",{class:G(v(r).e("content"))},[i.$slots.prefix||i.prefix?(U(),ce("div",{key:0,class:G(v(r).e("prefix"))},[Xe(i.$slots,"prefix",{},()=>[ge("span",null,ct(i.prefix),1)])],2)):Fe("v-if",!0),ge("span",{class:G(v(r).e("number")),style:Ft(i.valueStyle)},ct(v(o)),7),i.$slots.suffix||i.suffix?(U(),ce("div",{key:1,class:G(v(r).e("suffix"))},[Xe(i.$slots,"suffix",{},()=>[ge("span",null,ct(i.suffix),1)])],2)):Fe("v-if",!0)],2)],2))}});var lje=gt(sje,[["__file","statistic.vue"]]);const IZ=gn(lje),uje=pt({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:Le([Number,Object]),default:0},valueStyle:{type:Le([String,Object,Array])}}),cje={finish:()=>!0,[uo]:e=>tn(e)},fje=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],iV=e=>tn(e)?new Date(e).getTime():e.valueOf(),aV=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return fje.reduce((i,[a,s])=>{const l=new RegExp(`${a}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,f=>String(u).padStart(f.length,"0"))}return i},t).replace(r,"$1")},dje=xe({name:"ElCountdown"}),hje=xe({...dje,props:uje,emits:cje,setup(e,{expose:t,emit:n}){const r=e;let o;const i=ee(0),a=W(()=>aV(i.value,r.format)),s=f=>aV(f,r.format),l=()=>{o&&(vm(o),o=void 0)},u=()=>{const f=iV(r.value),h=()=>{let m=f-Date.now();n("change",m),m<=0?(m=0,l(),n("finish")):o=ap(h),i.value=m};o=ap(h)};return vn(()=>{i.value=iV(r.value)-Date.now(),at(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0})}),qr(()=>{l()}),t({displayValue:a}),(f,h)=>(U(),Qe(v(IZ),{value:i.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:s},Fl({_:2},[_n(f.$slots,(m,y)=>({name:y,fn:se(()=>[Xe(f.$slots,y)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var pje=gt(hje,[["__file","countdown.vue"]]);const gje=gn(pje),mje=pt({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),vje={[uo]:(e,t)=>[e,t].every(tn)},yje=xe({name:"ElSteps"}),bje=xe({...yje,props:mje,emits:vje,setup(e,{emit:t}){const n=e,r=ut("steps"),{children:o,addChild:i,removeChild:a}=qD(En(),"ElStep");return at(o,()=>{o.value.forEach((s,l)=>{s.setIndex(l)})}),Yn("ElSteps",{props:n,steps:o,addStep:i,removeStep:a}),at(()=>n.active,(s,l)=>{t(uo,s,l)}),(s,l)=>(U(),ce("div",{class:G([v(r).b(),v(r).m(s.simple?"simple":s.direction)])},[Xe(s.$slots,"default")],2))}});var _je=gt(bje,[["__file","steps.vue"]]);const Oje=pt({title:{type:String,default:""},icon:{type:Wr},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),wje=xe({name:"ElStep"}),Sje=xe({...wje,props:Oje,setup(e){const t=e,n=ut("step"),r=ee(-1),o=ee({}),i=ee(""),a=$t("ElSteps"),s=En();vn(()=>{at([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([R])=>{T(R)},{immediate:!0})}),qr(()=>{a.removeStep(A.uid)});const l=W(()=>t.status||i.value),u=W(()=>{const R=a.steps.value[r.value-1];return R?R.currentStatus:"wait"}),f=W(()=>a.props.alignCenter),h=W(()=>a.props.direction==="vertical"),m=W(()=>a.props.simple),y=W(()=>a.steps.value.length),O=W(()=>{var R;return((R=a.steps.value[y.value-1])==null?void 0:R.uid)===(s==null?void 0:s.uid)}),b=W(()=>m.value?"":a.props.space),k=W(()=>[n.b(),n.is(m.value?"simple":a.props.direction),n.is("flex",O.value&&!b.value&&!f.value),n.is("center",f.value&&!h.value&&!m.value)]),C=W(()=>{const R={flexBasis:tn(b.value)?`${b.value}px`:b.value?b.value:`${100/(y.value-(f.value?0:1))}%`};return h.value||O.value&&(R.maxWidth=`${100/y.value}%`),R}),P=R=>{r.value=R},$=R=>{const B=R==="wait",I={transitionDelay:`${B?"-":""}${150*r.value}ms`},N=R===a.props.processStatus||B?0:100;I.borderWidth=N&&!m.value?"1px":0,I[a.props.direction==="vertical"?"height":"width"]=`${N}%`,o.value=I},T=R=>{R>r.value?i.value=a.props.finishStatus:R===r.value&&u.value!=="error"?i.value=a.props.processStatus:i.value="wait";const B=a.steps.value[r.value-1];B&&B.calcProgress(i.value)},A=or({uid:s.uid,currentStatus:l,setIndex:P,calcProgress:$});return a.addStep(A),(R,B)=>(U(),ce("div",{style:Ft(v(C)),class:G(v(k))},[Fe(" icon & line "),ge("div",{class:G([v(n).e("head"),v(n).is(v(l))])},[v(m)?Fe("v-if",!0):(U(),ce("div",{key:0,class:G(v(n).e("line"))},[ge("i",{class:G(v(n).e("line-inner")),style:Ft(o.value)},null,6)],2)),ge("div",{class:G([v(n).e("icon"),v(n).is(R.icon||R.$slots.icon?"icon":"text")])},[Xe(R.$slots,"icon",{},()=>[R.icon?(U(),Qe(v(Lt),{key:0,class:G(v(n).e("icon-inner"))},{default:se(()=>[(U(),Qe(jn(R.icon)))]),_:1},8,["class"])):v(l)==="success"?(U(),Qe(v(Lt),{key:1,class:G([v(n).e("icon-inner"),v(n).is("status")])},{default:se(()=>[ne(v(x0))]),_:1},8,["class"])):v(l)==="error"?(U(),Qe(v(Lt),{key:2,class:G([v(n).e("icon-inner"),v(n).is("status")])},{default:se(()=>[ne(v(Ts))]),_:1},8,["class"])):v(m)?Fe("v-if",!0):(U(),ce("div",{key:3,class:G(v(n).e("icon-inner"))},ct(r.value+1),3))])],2)],2),Fe(" title & description "),ge("div",{class:G(v(n).e("main"))},[ge("div",{class:G([v(n).e("title"),v(n).is(v(l))])},[Xe(R.$slots,"title",{},()=>[xt(ct(R.title),1)])],2),v(m)?(U(),ce("div",{key:0,class:G(v(n).e("arrow"))},null,2)):(U(),ce("div",{key:1,class:G([v(n).e("description"),v(n).is(v(l))])},[Xe(R.$slots,"description",{},()=>[xt(ct(R.description),1)])],2))],2)],6))}});var DZ=gt(Sje,[["__file","item.vue"]]);const xje=gn(_je,{Step:DZ}),kje=Co(DZ),Cje=pt({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:LY},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Wr},activeActionIcon:{type:Wr},activeIcon:{type:Wr},inactiveIcon:{type:Wr},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Le(Function)},id:String,tabindex:{type:[String,Number]},...va(["ariaLabel"])}),Eje={[Tn]:e=>qo(e)||Gt(e)||tn(e),[uo]:e=>qo(e)||Gt(e)||tn(e),[Ps]:e=>qo(e)||Gt(e)||tn(e)},jZ="ElSwitch",Tje=xe({name:jZ}),Pje=xe({...Tje,props:Cje,emits:Eje,setup(e,{expose:t,emit:n}){const r=e,{formItem:o}=cs(),i=wi(),a=ut("switch"),{inputId:s}=Cc(r,{formItemContext:o}),l=Ls(W(()=>r.loading)),u=ee(r.modelValue!==!1),f=ee(),h=ee(),m=W(()=>[a.b(),a.m(i.value),a.is("disabled",l.value),a.is("checked",C.value)]),y=W(()=>[a.e("label"),a.em("label","left"),a.is("active",!C.value)]),O=W(()=>[a.e("label"),a.em("label","right"),a.is("active",C.value)]),b=W(()=>({width:Qo(r.width)}));at(()=>r.modelValue,()=>{u.value=!0});const k=W(()=>u.value?r.modelValue:!1),C=W(()=>k.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(k.value)||(n(Tn,r.inactiveValue),n(uo,r.inactiveValue),n(Ps,r.inactiveValue)),at(C,A=>{var R;f.value.checked=A,r.validateEvent&&((R=o==null?void 0:o.validate)==null||R.call(o,"change").catch(B=>void 0))});const P=()=>{const A=C.value?r.inactiveValue:r.activeValue;n(Tn,A),n(uo,A),n(Ps,A),Wt(()=>{f.value.checked=C.value})},$=()=>{if(l.value)return;const{beforeChange:A}=r;if(!A){P();return}const R=A();[CO(R),qo(R)].includes(!0)||Ri(jZ,"beforeChange must return type `Promise<boolean>` or `boolean`"),CO(R)?R.then(I=>{I&&P()}).catch(I=>{}):R&&P()},T=()=>{var A,R;(R=(A=f.value)==null?void 0:A.focus)==null||R.call(A)};return vn(()=>{f.value.checked=C.value}),t({focus:T,checked:C}),(A,R)=>(U(),ce("div",{class:G(v(m)),onClick:nn($,["prevent"])},[ge("input",{id:v(s),ref_key:"input",ref:f,class:G(v(a).e("input")),type:"checkbox",role:"switch","aria-checked":v(C),"aria-disabled":v(l),"aria-label":A.ariaLabel,name:A.name,"true-value":A.activeValue,"false-value":A.inactiveValue,disabled:v(l),tabindex:A.tabindex,onChange:P,onKeydown:Qr($,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!A.inlinePrompt&&(A.inactiveIcon||A.inactiveText)?(U(),ce("span",{key:0,class:G(v(y))},[A.inactiveIcon?(U(),Qe(v(Lt),{key:0},{default:se(()=>[(U(),Qe(jn(A.inactiveIcon)))]),_:1})):Fe("v-if",!0),!A.inactiveIcon&&A.inactiveText?(U(),ce("span",{key:1,"aria-hidden":v(C)},ct(A.inactiveText),9,["aria-hidden"])):Fe("v-if",!0)],2)):Fe("v-if",!0),ge("span",{ref_key:"core",ref:h,class:G(v(a).e("core")),style:Ft(v(b))},[A.inlinePrompt?(U(),ce("div",{key:0,class:G(v(a).e("inner"))},[A.activeIcon||A.inactiveIcon?(U(),Qe(v(Lt),{key:0,class:G(v(a).is("icon"))},{default:se(()=>[(U(),Qe(jn(v(C)?A.activeIcon:A.inactiveIcon)))]),_:1},8,["class"])):A.activeText||A.inactiveText?(U(),ce("span",{key:1,class:G(v(a).is("text")),"aria-hidden":!v(C)},ct(v(C)?A.activeText:A.inactiveText),11,["aria-hidden"])):Fe("v-if",!0)],2)):Fe("v-if",!0),ge("div",{class:G(v(a).e("action"))},[A.loading?(U(),Qe(v(Lt),{key:0,class:G(v(a).is("loading"))},{default:se(()=>[ne(v(yf))]),_:1},8,["class"])):v(C)?Xe(A.$slots,"active-action",{key:1},()=>[A.activeActionIcon?(U(),Qe(v(Lt),{key:0},{default:se(()=>[(U(),Qe(jn(A.activeActionIcon)))]),_:1})):Fe("v-if",!0)]):v(C)?Fe("v-if",!0):Xe(A.$slots,"inactive-action",{key:2},()=>[A.inactiveActionIcon?(U(),Qe(v(Lt),{key:0},{default:se(()=>[(U(),Qe(jn(A.inactiveActionIcon)))]),_:1})):Fe("v-if",!0)])],2)],6),!A.inlinePrompt&&(A.activeIcon||A.activeText)?(U(),ce("span",{key:1,class:G(v(O))},[A.activeIcon?(U(),Qe(v(Lt),{key:0},{default:se(()=>[(U(),Qe(jn(A.activeIcon)))]),_:1})):Fe("v-if",!0),!A.activeIcon&&A.activeText?(U(),ce("span",{key:1,"aria-hidden":!v(C)},ct(A.activeText),9,["aria-hidden"])):Fe("v-if",!0)],2)):Fe("v-if",!0)],10,["onClick"]))}});var $je=gt(Pje,[["__file","switch.vue"]]);const W1=gn($je),OA=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Aje=function(e,t,n,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return o?(Array.isArray(o)||(o=[o]),o.map(u=>typeof u=="string"?No(s,u):u(s,l,e))):(t!=="$key"&&$n(s)&&"$value"in s&&(s=s.$value),[$n(s)?No(s,t):s])},a=function(s,l){if(r)return r(s.value,l.value);for(let u=0,f=s.key.length;u<f;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=a(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},LZ=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},Mje=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const o=e.columns[r];if(o.columnKey===t){n=o;break}}return n||Ri("ElTable",`No column matching with column-key: ${t}`),n},sV=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?LZ(e,r[0]):null},rs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const o of n)r=r[o];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Kg=function(e,t){const n={};return(e||[]).forEach((r,o)=>{n[rs(r,t)]={row:r,index:o}}),n};function Rje(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(sr(t,r)){const o=t[r];typeof o!="undefined"&&(n[r]=o)}return n}function T3(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function BZ(e){return e===""||e!==void 0&&(e=T3(e),Number.isNaN(e)&&(e=80)),e}function Nje(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Ije(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function bC(e,t,n,r,o,i){let a=i!=null?i:0,s=!1;const l=e.indexOf(t),u=l!==-1,f=o==null?void 0:o.call(null,t,i),h=y=>{y==="add"?e.push(t):e.splice(l,1),s=!0},m=y=>{let O=0;const b=(r==null?void 0:r.children)&&y[r.children];return b&&Et(b)&&(O+=b.length,b.forEach(k=>{O+=m(k)})),O};return(!o||f)&&(qo(n)?n&&!u?h("add"):!n&&u&&h("remove"):h(u?"remove":"add")),!(r!=null&&r.checkStrictly)&&(r==null?void 0:r.children)&&Et(t[r.children])&&t[r.children].forEach(y=>{bC(e,y,n!=null?n:!u,r,o,a+1),a+=m(y)+1}),s}function Dje(e,t,n="children",r="hasChildren"){const o=a=>!(Array.isArray(a)&&a.length);function i(a,s,l){t(a,s,l),s.forEach(u=>{if(u[r]){t(u,null,l+1);return}const f=u[n];o(f)||i(u,f,l+1)})}e.forEach(a=>{if(a[r]){t(a,null,0);return}const s=a[n];o(s)||i(a,s,0)})}let hu=null;function jje(e,t,n,r){if((hu==null?void 0:hu.trigger)===n)return;hu==null||hu();const o=r==null?void 0:r.refs.tableWrapper,i=o==null?void 0:o.dataset.prefix,a={strategy:"fixed",...e.popperOptions},s=ne(ia,{content:t,virtualTriggering:!0,virtualRef:n,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:a,onHide:()=>{hu==null||hu()}});s.appContext={...r.appContext,...r};const l=document.createElement("div");np(s,l),s.component.exposed.onOpen();const u=o==null?void 0:o.querySelector(`.${i}-scrollbar__wrap`);hu=()=>{np(null,l),u==null||u.removeEventListener("scroll",hu),hu=null},hu.trigger=n,u==null||u.addEventListener("scroll",hu)}function VZ(e){return e.children?LW(e.children,VZ):[e]}function lV(e,t){return e+t.colSpan}const FZ=(e,t,n,r)=>{let o=0,i=e;const a=n.states.columns.value;if(r){const l=VZ(r[e]);o=a.slice(0,a.indexOf(l[0])).reduce(lV,0),i=o+l.reduce(lV,0)-1}else o=e;let s;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":o>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":o>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:i}:{}},P3=(e,t,n,r,o,i=0)=>{const a=[],{direction:s,start:l,after:u}=FZ(t,n,r,o);if(s){const f=s==="left";a.push(`${e}-fixed-column--${s}`),f&&u+i===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!f&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function uV(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const $3=(e,t,n,r)=>{const{direction:o,start:i=0,after:a=0}=FZ(e,t,n,r);if(!o)return;const s={},l=o==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(uV,0):s.right=u.slice(a+1).reverse().reduce(uV,0),s},n0=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function Lje(e){const t=En(),n=ee(!1),r=ee([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const f=Kg(r.value,u);r.value=l.reduce((h,m)=>{const y=rs(m,u);return f[y]&&h.push(m),h},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{bC(r.value,l,u)&&t.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],f=e.rowKey.value,h=Kg(u,f);r.value=l.reduce((m,y)=>{const O=h[y];return O&&m.push(O.row),m},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Kg(r.value,u)[rs(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function Bje(e){const t=En(),n=ee(null),r=ee(null),o=u=>{t.store.assertRowKey(),n.value=u,a(u)},i=()=>{n.value=null},a=u=>{const{data:f,rowKey:h}=e;let m=null;h.value&&(m=(v(f)||[]).find(y=>rs(y,h.value)===u)),r.value=m,t.emit("current-change",r.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:i,setCurrentRowByKey:a,updateCurrentRow:u=>{const f=r.value;if(u&&u!==f){r.value=u,t.emit("current-change",r.value,f);return}!u&&f&&(r.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const u=e.rowKey.value,f=e.data.value||[],h=r.value;if(!f.includes(h)&&h){if(u){const m=rs(h,u);a(m)}else r.value=null;r.value===null&&t.emit("current-change",null,h)}else n.value&&(a(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function Vje(e){const t=ee([]),n=ee({}),r=ee(16),o=ee(!1),i=ee({}),a=ee("hasChildren"),s=ee("children"),l=ee(!1),u=En(),f=W(()=>{if(!e.rowKey.value)return{};const P=e.data.value||[];return m(P)}),h=W(()=>{const P=e.rowKey.value,$=Object.keys(i.value),T={};return $.length&&$.forEach(A=>{if(i.value[A].length){const R={children:[]};i.value[A].forEach(B=>{const I=rs(B,P);R.children.push(I),B[a.value]&&!T[I]&&(T[I]={children:[]})}),T[A]=R}}),T}),m=P=>{const $=e.rowKey.value,T={};return Dje(P,(A,R,B)=>{const I=rs(A,$);Array.isArray(R)?T[I]={children:R.map(N=>rs(N,$)),level:B}:o.value&&(T[I]={children:[],lazy:!0,level:B})},s.value,a.value),T},y=(P=!1,$=(T=>(T=u.store)==null?void 0:T.states.defaultExpandAll.value)())=>{var T;const A=f.value,R=h.value,B=Object.keys(A),I={};if(B.length){const N=v(n),j=[],L=(X,oe)=>{if(P)return t.value?$||t.value.includes(oe):!!($||(X==null?void 0:X.expanded));{const K=$||t.value&&t.value.includes(oe);return!!((X==null?void 0:X.expanded)||K)}};B.forEach(X=>{const oe=N[X],K={...A[X]};if(K.expanded=L(oe,X),K.lazy){const{loaded:Z=!1,loading:re=!1}=oe||{};K.loaded=!!Z,K.loading=!!re,j.push(X)}I[X]=K});const V=Object.keys(R);o.value&&V.length&&j.length&&V.forEach(X=>{const oe=N[X],K=R[X].children;if(j.includes(X)){if(I[X].children.length!==0)throw new Error("[ElTable]children must be an empty array.");I[X].children=K}else{const{loaded:Z=!1,loading:re=!1}=oe||{};I[X]={lazy:!0,loaded:!!Z,loading:!!re,expanded:L(oe,X),children:K,level:""}}})}n.value=I,(T=u.store)==null||T.updateTableScrollY()};at(()=>t.value,()=>{y(!0)}),at(()=>f.value,()=>{y()}),at(()=>h.value,()=>{y()});const O=P=>{t.value=P,y()},b=(P,$)=>{u.store.assertRowKey();const T=e.rowKey.value,A=rs(P,T),R=A&&n.value[A];if(A&&R&&"expanded"in R){const B=R.expanded;$=typeof $=="undefined"?!R.expanded:$,n.value[A].expanded=$,B!==$&&u.emit("expand-change",P,$),u.store.updateTableScrollY()}},k=P=>{u.store.assertRowKey();const $=e.rowKey.value,T=rs(P,$),A=n.value[T];o.value&&A&&"loaded"in A&&!A.loaded?C(P,T,A):b(P,void 0)},C=(P,$,T)=>{const{load:A}=u.props;A&&!n.value[$].loaded&&(n.value[$].loading=!0,A(P,T,R=>{if(!Array.isArray(R))throw new TypeError("[ElTable] data must be an array");n.value[$].loading=!1,n.value[$].loaded=!0,n.value[$].expanded=!0,R.length&&(i.value[$]=R),u.emit("expand-change",P,!0)}))};return{loadData:C,loadOrToggle:k,toggleTreeExpansion:b,updateTreeExpandKeys:O,updateTreeData:y,normalize:m,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:s,checkStrictly:l}}}const Fje=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:Aje(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},xk=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,xk(n.children)):t.push(n)}),t};function zje(){var e;const t=En(),{size:n}=ra((e=t.proxy)==null?void 0:e.$props),r=ee(null),o=ee([]),i=ee([]),a=ee(!1),s=ee([]),l=ee([]),u=ee([]),f=ee([]),h=ee([]),m=ee([]),y=ee([]),O=ee([]),b=[],k=ee(0),C=ee(0),P=ee(0),$=ee(!1),T=ee([]),A=ee(!1),R=ee(!1),B=ee(null),I=ee({}),N=ee(null),j=ee(null),L=ee(null),V=ee(null),X=ee(null);at(o,()=>t.state&&re(!1),{deep:!0});const oe=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},K=Ce=>{var Ye;(Ye=Ce.children)==null||Ye.forEach(me=>{me.fixed=Ce.fixed,K(me)})},Z=()=>{s.value.forEach(ke=>{K(ke)}),f.value=s.value.filter(ke=>ke.fixed===!0||ke.fixed==="left"),h.value=s.value.filter(ke=>ke.fixed==="right"),f.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,f.value.unshift(s.value[0]));const Ce=s.value.filter(ke=>!ke.fixed);l.value=[].concat(f.value).concat(Ce).concat(h.value);const Ye=xk(Ce),me=xk(f.value),Ve=xk(h.value);k.value=Ye.length,C.value=me.length,P.value=Ve.length,u.value=[].concat(me).concat(Ye).concat(Ve),a.value=f.value.length>0||h.value.length>0},re=(Ce,Ye=!1)=>{Ce&&Z(),Ye?t.state.doLayout():t.state.debouncedUpdateLayout()},J=Ce=>T.value.includes(Ce),z=()=>{$.value=!1;const Ce=T.value;T.value=[],Ce.length&&t.emit("selection-change",[])},q=()=>{let Ce;if(r.value){Ce=[];const Ye=Kg(T.value,r.value),me=Kg(o.value,r.value);for(const Ve in Ye)sr(Ye,Ve)&&!me[Ve]&&Ce.push(Ye[Ve].row)}else Ce=T.value.filter(Ye=>!o.value.includes(Ye));if(Ce.length){const Ye=T.value.filter(me=>!Ce.includes(me));T.value=Ye,t.emit("selection-change",Ye.slice())}},ue=()=>(T.value||[]).slice(),he=(Ce,Ye,me=!0)=>{var Ve,ke,Ze,rt;const zt={children:(ke=(Ve=t==null?void 0:t.store)==null?void 0:Ve.states)==null?void 0:ke.childrenColumnName.value,checkStrictly:(rt=(Ze=t==null?void 0:t.store)==null?void 0:Ze.states)==null?void 0:rt.checkStrictly.value};if(bC(T.value,Ce,Ye,zt,B.value)){const ot=(T.value||[]).slice();me&&t.emit("select",ot,Ce),t.emit("selection-change",ot)}},le=()=>{var Ce,Ye;const me=R.value?!$.value:!($.value||T.value.length);$.value=me;let Ve=!1,ke=0;const Ze=(Ye=(Ce=t==null?void 0:t.store)==null?void 0:Ce.states)==null?void 0:Ye.rowKey.value,{childrenColumnName:rt}=t.store.states,zt={children:rt.value,checkStrictly:!1};o.value.forEach((Fn,ot)=>{const Bt=ot+ke;bC(T.value,Fn,me,zt,B.value,Bt)&&(Ve=!0),ke+=Be(rs(Fn,Ze))}),Ve&&t.emit("selection-change",T.value?T.value.slice():[]),t.emit("select-all",(T.value||[]).slice())},ze=()=>{const Ce=Kg(T.value,r.value);o.value.forEach(Ye=>{const me=rs(Ye,r.value),Ve=Ce[me];Ve&&(T.value[Ve.index]=Ye)})},Ee=()=>{var Ce;if(((Ce=o.value)==null?void 0:Ce.length)===0){$.value=!1;return}const{childrenColumnName:Ye}=t.store.states,me=r.value?Kg(T.value,r.value):void 0;let Ve=0,ke=0;const Ze=Fn=>me?!!me[rs(Fn,r.value)]:T.value.includes(Fn),rt=Fn=>{var ot;for(const Bt of Fn){const Sn=B.value&&B.value.call(null,Bt,Ve);if(Ze(Bt))ke++;else if(!B.value||Sn)return!1;if(Ve++,((ot=Bt[Ye.value])==null?void 0:ot.length)&&!rt(Bt[Ye.value]))return!1}return!0},zt=rt(o.value||[]);$.value=ke===0?!1:zt},Be=Ce=>{var Ye;if(!t||!t.store)return 0;const{treeData:me}=t.store.states;let Ve=0;const ke=(Ye=me.value[Ce])==null?void 0:Ye.children;return ke&&(Ve+=ke.length,ke.forEach(Ze=>{Ve+=Be(Ze)})),Ve},Ae=(Ce,Ye)=>{Array.isArray(Ce)||(Ce=[Ce]);const me={};return Ce.forEach(Ve=>{I.value[Ve.id]=Ye,me[Ve.columnKey||Ve.id]=Ye}),me},_e=(Ce,Ye,me)=>{j.value&&j.value!==Ce&&(j.value.order=null),j.value=Ce,L.value=Ye,V.value=me},ve=()=>{let Ce=v(i);Object.keys(I.value).forEach(Ye=>{const me=I.value[Ye];if(!me||me.length===0)return;const Ve=LZ({columns:u.value},Ye);Ve&&Ve.filterMethod&&(Ce=Ce.filter(ke=>me.some(Ze=>Ve.filterMethod.call(null,Ze,ke,Ve))))}),N.value=Ce},Ne=()=>{o.value=Fje(N.value,{sortingColumn:j.value,sortProp:L.value,sortOrder:V.value})},Se=(Ce=void 0)=>{Ce&&Ce.filter||ve(),Ne()},fe=Ce=>{const{tableHeaderRef:Ye}=t.refs;if(!Ye)return;const me=Object.assign({},Ye.filterPanels),Ve=Object.keys(me);if(!!Ve.length)if(typeof Ce=="string"&&(Ce=[Ce]),Array.isArray(Ce)){const ke=Ce.map(Ze=>Mje({columns:u.value},Ze));Ve.forEach(Ze=>{const rt=ke.find(zt=>zt.id===Ze);rt&&(rt.filteredValue=[])}),t.store.commit("filterChange",{column:ke,values:[],silent:!0,multi:!0})}else Ve.forEach(ke=>{const Ze=u.value.find(rt=>rt.id===ke);Ze&&(Ze.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ye=()=>{!j.value||(_e(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:He,toggleRowExpansion:be,updateExpandRows:Ie,states:De,isRowExpanded:Me}=Lje({data:o,rowKey:r}),{updateTreeExpandKeys:qe,toggleTreeExpansion:Oe,updateTreeData:Je,loadOrToggle:lt,states:Ke}=Vje({data:o,rowKey:r}),{updateCurrentRowData:et,updateCurrentRow:bt,setCurrentRowKey:Ot,states:Qt}=Bje({data:o,rowKey:r});return{assertRowKey:oe,updateColumns:Z,scheduleLayout:re,isSelected:J,clearSelection:z,cleanSelection:q,getSelectionRows:ue,toggleRowSelection:he,_toggleAllSelection:le,toggleAllSelection:null,updateSelectionByRowKey:ze,updateAllSelected:Ee,updateFilters:Ae,updateCurrentRow:bt,updateSort:_e,execFilter:ve,execSort:Ne,execQuery:Se,clearFilter:fe,clearSort:ye,toggleRowExpansion:be,setExpandRowKeysAdapter:Ce=>{He(Ce),qe(Ce)},setCurrentRowKey:Ot,toggleRowExpansionAdapter:(Ce,Ye)=>{u.value.some(({type:Ve})=>Ve==="expand")?be(Ce,Ye):Oe(Ce,Ye)},isRowExpanded:Me,updateExpandRows:Ie,updateCurrentRowData:et,loadOrToggle:lt,updateTreeData:Je,states:{tableSize:n,rowKey:r,data:o,_data:i,isComplex:a,_columns:s,originColumns:l,columns:u,fixedColumns:f,rightFixedColumns:h,leafColumns:m,fixedLeafColumns:y,rightFixedLeafColumns:O,updateOrderFns:b,leafColumnsLength:k,fixedLeafColumnsLength:C,rightFixedLeafColumnsLength:P,isAllSelected:$,selection:T,reserveSelection:A,selectOnIndeterminate:R,selectable:B,filters:I,filteredData:N,sortingColumn:j,sortProp:L,sortOrder:V,hoverRow:X,...De,...Ke,...Qt}}}function OR(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=OR(n.children,t)),n)})}function wR(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&wR(t.children)}),e.sort((t,n)=>t.no-n.no)}function Qje(){const e=En(),t=zje();return{ns:ut("table"),...t,mutations:{setData(a,s){const l=v(a._data)!==s;a.data.value=s,a._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),v(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,s,l,u){const f=v(a._columns);let h=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),h=OR(f,l)):(f.push(s),h=f),wR(h),a._columns.value=h,a.updateOrderFns.push(u),s.type==="selection"&&(a.selectable.value=s.selectable,a.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(wR(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,s,l,u){const f=v(a._columns)||[];if(l)l.children.splice(l.children.findIndex(m=>m.id===s.id),1),Wt(()=>{var m;((m=l.children)==null?void 0:m.length)===0&&delete l.children}),a._columns.value=OR(f,l);else{const m=f.indexOf(s);m>-1&&(f.splice(m,1),a._columns.value=f)}const h=a.updateOrderFns.indexOf(u);h>-1&&a.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,s){const{prop:l,order:u,init:f}=s;if(l){const h=v(a.columns).find(m=>m.property===l);h&&(h.order=u,e.store.updateSort(h,l,u),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(a,s){const{sortingColumn:l,sortProp:u,sortOrder:f}=a,h=v(l),m=v(u),y=v(f);y===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const O={filter:!0};e.store.execQuery(O),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:h,prop:m,order:y}),e.store.updateTableScrollY()},filterChange(a,s){const{column:l,values:u,silent:f}=s,h=e.store.updateFilters(l,u);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(a,s){a.hoverRow.value=s},setCurrentRow(a,s){e.store.updateCurrentRow(s)}},commit:function(a,...s){const l=e.store.mutations;if(l[a])l[a].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){Wt(()=>e.layout.updateScrollY.apply(e.layout))}}}const fO={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function Wje(e,t){if(!e)throw new Error("Table is required.");const n=Qje();return n.toggleAllSelection=Rs(n._toggleAllSelection,10),Object.keys(fO).forEach(r=>{zZ(QZ(t,r),r,n)}),Yje(n,t),n}function Yje(e,t){Object.keys(fO).forEach(n=>{at(()=>QZ(t,n),r=>{zZ(r,n,e)})})}function zZ(e,t,n){let r=e,o=fO[t];typeof fO[t]=="object"&&(o=o.key,r=r||fO[t].default),n.states[o].value=r}function QZ(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(o=>{r=r[o]}),r}else return e[t]}class Uje{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ee(null),this.scrollX=ee(!1),this.scrollY=ee(!1),this.bodyWidth=ee(null),this.fixedWidth=ee(null),this.rightFixedWidth=ee(null),this.gutterWidth=0;for(const n in t)sr(t,n)&&(no(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let r=!0;const o=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,o!==r}return!1}setHeight(t,n="height"){if(!rr)return;const r=this.table.vnode.el;if(t=Nje(t),this.height.value=Number(t),!r&&(t||t===0))return Wt(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!rr)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const o=this.getFlattenColumns(),i=o.filter(l=>typeof l.width!="number");if(o.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(o.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((m,y)=>m+Number(y.minWidth||80),0),f=l/u;let h=0;i.forEach((m,y)=>{if(y===0)return;const O=Math.floor(Number(m.minWidth||80)*f);h+=O,m.realWidth=Number(m.minWidth||80)+O}),i[0].realWidth=Number(i[0].minWidth||80)+l-h}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const a=this.store.states.fixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var o,i;switch(t){case"columns":(o=r.state)==null||o.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Hje}=Hl,Zje=xe({name:"ElTableFilterPanel",components:{ElCheckbox:Hl,ElCheckboxGroup:Hje,ElScrollbar:Ec,ElTooltip:ia,ElIcon:Lt,ArrowDown:Dd,ArrowUp:SD},directives:{ClickOutside:Sd},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=En(),{t:n}=ir(),r=ut("table-filter"),o=t==null?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);const i=ee(!1),a=ee(null),s=W(()=>e.column&&e.column.filters),l=W(()=>e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=W({get:()=>{var A;return(((A=e.column)==null?void 0:A.filteredValue)||[])[0]},set:A=>{f.value&&(typeof A!="undefined"&&A!==null?f.value.splice(0,1,A):f.value.splice(0,1))}}),f=W({get(){return e.column?e.column.filteredValue||[]:[]},set(A){e.column&&e.upDataColumn("filteredValue",A)}}),h=W(()=>e.column?e.column.filterMultiple:!0),m=A=>A.value===u.value,y=()=>{i.value=!1},O=A=>{A.stopPropagation(),i.value=!i.value},b=()=>{i.value=!1},k=()=>{$(f.value),y()},C=()=>{f.value=[],$(f.value),y()},P=A=>{u.value=A,$(typeof A!="undefined"&&A!==null?f.value:[]),y()},$=A=>{e.store.commit("filterChange",{column:e.column,values:A}),e.store.updateAllSelected()};at(i,A=>{e.column&&e.upDataColumn("filterOpened",A)},{immediate:!0});const T=W(()=>{var A,R;return(R=(A=a.value)==null?void 0:A.popperRef)==null?void 0:R.contentRef});return{tooltipVisible:i,multiple:h,filterClassName:l,filteredValue:f,filterValue:u,filters:s,handleConfirm:k,handleReset:C,handleSelect:P,isActive:m,t:n,ns:r,showFilterPanel:O,hideFilterPanel:b,popperPaneRef:T,tooltip:a}}});function Xje(e,t,n,r,o,i){const a=Pn("el-checkbox"),s=Pn("el-checkbox-group"),l=Pn("el-scrollbar"),u=Pn("arrow-up"),f=Pn("arrow-down"),h=Pn("el-icon"),m=Pn("el-tooltip"),y=_2("click-outside");return U(),Qe(m,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:""},{content:se(()=>[e.multiple?(U(),ce("div",{key:0},[ge("div",{class:G(e.ns.e("content"))},[ne(l,{"wrap-class":e.ns.e("wrap")},{default:se(()=>[ne(s,{modelValue:e.filteredValue,"onUpdate:modelValue":O=>e.filteredValue=O,class:G(e.ns.e("checkbox-group"))},{default:se(()=>[(U(!0),ce(Pt,null,_n(e.filters,O=>(U(),Qe(a,{key:O.value,value:O.value},{default:se(()=>[xt(ct(O.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),ge("div",{class:G(e.ns.e("bottom"))},[ge("button",{class:G({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},ct(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),ge("button",{type:"button",onClick:e.handleReset},ct(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(U(),ce("ul",{key:1,class:G(e.ns.e("list"))},[ge("li",{class:G([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:O=>e.handleSelect(null)},ct(e.t("el.table.clearFilter")),11,["onClick"]),(U(!0),ce(Pt,null,_n(e.filters,O=>(U(),ce("li",{key:O.value,class:G([e.ns.e("list-item"),e.ns.is("active",e.isActive(O))]),label:O.value,onClick:b=>e.handleSelect(O.value)},ct(O.text),11,["label","onClick"]))),128))],2))]),default:se(()=>[bn((U(),ce("span",{class:G([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[ne(h,null,{default:se(()=>[Xe(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(U(),Qe(u,{key:0})):(U(),Qe(f,{key:1}))])]),_:3})],10,["onClick"])),[[y,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class"])}var qje=gt(Zje,[["render",Xje],["__file","filter-panel.vue"]]);function WZ(e){const t=En();b2(()=>{n.value.addObserver(t)}),vn(()=>{r(n.value),o(n.value)}),wc(()=>{r(n.value),o(n.value)}),Sp(()=>{n.value.removeObserver(t)});const n=W(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var a;const s=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(f=>{u[f.id]=f});for(let f=0,h=s.length;f<h;f++){const m=s[f],y=m.getAttribute("name"),O=u[y];O&&m.setAttribute("width",O.realWidth||O.width)}},o=i=>{var a,s;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,h=l.length;f<h;f++)l[f].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let f=0,h=u.length;f<h;f++){const m=u[f];m.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",m.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}}const Rf=Symbol("ElTable");function Kje(e,t){const n=En(),r=$t(Rf),o=b=>{b.stopPropagation()},i=(b,k)=>{!k.filters&&k.sortable?O(b,k,!1):k.filterable&&!k.sortable&&o(b),r==null||r.emit("header-click",k,b)},a=(b,k)=>{r==null||r.emit("header-contextmenu",k,b)},s=ee(null),l=ee(!1),u=ee({}),f=(b,k)=>{if(!!rr&&!(k.children&&k.children.length>0)&&s.value&&e.border){l.value=!0;const C=r;t("set-drag-visible",!0);const $=(C==null?void 0:C.vnode.el).getBoundingClientRect().left,T=n.vnode.el.querySelector(`th.${k.id}`),A=T.getBoundingClientRect(),R=A.left-$+30;Ou(T,"noclick"),u.value={startMouseLeft:b.clientX,startLeft:A.right-$,startColumnLeft:A.left-$,tableLeft:$};const B=C==null?void 0:C.refs.resizeProxy;B.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const I=j=>{const L=j.clientX-u.value.startMouseLeft,V=u.value.startLeft+L;B.style.left=`${Math.max(R,V)}px`},N=()=>{if(l.value){const{startColumnLeft:j,startLeft:L}=u.value,X=Number.parseInt(B.style.left,10)-j;k.width=k.realWidth=X,C==null||C.emit("header-dragend",k.width,L-j,k,b),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",N),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ls(T,"noclick")},0)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",N)}},h=(b,k)=>{if(k.children&&k.children.length>0)return;const C=b.target;if(!Ll(C))return;const P=C==null?void 0:C.closest("th");if(!(!k||!k.resizable)&&!l.value&&e.border){const $=P.getBoundingClientRect(),T=document.body.style;$.width>12&&$.right-b.pageX<8?(T.cursor="col-resize",Gs(P,"is-sortable")&&(P.style.cursor="col-resize"),s.value=k):l.value||(T.cursor="",Gs(P,"is-sortable")&&(P.style.cursor="pointer"),s.value=null)}},m=()=>{!rr||(document.body.style.cursor="")},y=({order:b,sortOrders:k})=>{if(b==="")return k[0];const C=k.indexOf(b||null);return k[C>k.length-2?0:C+1]},O=(b,k,C)=>{var P;b.stopPropagation();const $=k.order===C?null:C||y(k),T=(P=b.target)==null?void 0:P.closest("th");if(T&&Gs(T,"noclick")){ls(T,"noclick");return}if(!k.sortable)return;const A=b.currentTarget;if(["ascending","descending"].some(j=>Gs(A,j)&&!k.sortOrders.includes(j)))return;const R=e.store.states;let B=R.sortProp.value,I;const N=R.sortingColumn.value;(N!==k||N===k&&N.order===null)&&(N&&(N.order=null),R.sortingColumn.value=k,B=k.property),$?I=k.order=$:I=k.order=null,R.sortProp.value=B,R.sortOrder.value=I,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:f,handleMouseMove:h,handleMouseOut:m,handleSortClick:O,handleFilterClick:o}}function Gje(e){const t=$t(Rf),n=ut("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,f)=>{var h;let m=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};typeof m=="function"&&(m=m.call(null,{rowIndex:s,columnIndex:l,row:u,column:f}));const y=$3(l,f.fixed,e.store,u);return n0(y,"left"),n0(y,"right"),Object.assign({},m,y)},getHeaderCellClass:(s,l,u,f)=>{const h=P3(n.b(),l,f.fixed,e.store,u),m=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...h];f.children||m.push("is-leaf"),f.sortable&&m.push("is-sortable");const y=t==null?void 0:t.props.headerCellClassName;return typeof y=="string"?m.push(y):typeof y=="function"&&m.push(y.call(null,{rowIndex:s,columnIndex:l,row:u,column:f})),m.push(n.e("cell")),m.filter(O=>Boolean(O)).join(" ")}}}const YZ=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,YZ(n.children))):t.push(n)}),t},UZ=e=>{let t=1;const n=(i,a)=>{if(a&&(i.level=a.level+1,t<i.level&&(t=i.level)),i.children){let s=0;i.children.forEach(l=>{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return YZ(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(a=>a.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function Jje(e){const t=$t(Rf),n=W(()=>UZ(e.store.states.originColumns.value));return{isGroup:W(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var e4e=xe({name:"ElTableHeader",components:{ElCheckbox:Hl},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=En(),r=$t(Rf),o=ut("table"),i=ee({}),{onColumnsChange:a,onScrollableChange:s}=WZ(r);vn(async()=>{await Wt(),await Wt();const{prop:R,order:B}=e.defaultSort;r==null||r.store.commit("sort",{prop:R,order:B,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:h,handleMouseOut:m,handleSortClick:y,handleFilterClick:O}=Kje(e,t),{getHeaderRowStyle:b,getHeaderRowClass:k,getHeaderCellStyle:C,getHeaderCellClass:P}=Gje(e),{isGroup:$,toggleAllSelection:T,columnRows:A}=Jje(e);return n.state={onColumnsChange:a,onScrollableChange:s},n.filterPanels=i,{ns:o,filterPanels:i,onColumnsChange:a,onScrollableChange:s,columnRows:A,getHeaderRowClass:k,getHeaderRowStyle:b,getHeaderCellClass:P,getHeaderCellStyle:C,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:h,handleMouseOut:m,handleSortClick:y,handleFilterClick:O,isGroup:$,toggleAllSelection:T}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:i,getHeaderRowStyle:a,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:f,handleSortClick:h,handleMouseOut:m,store:y,$parent:O}=this;let b=1;return Ht("thead",{class:{[e.is("group")]:t}},n.map((k,C)=>Ht("tr",{class:i(C),key:C,style:a(C)},k.map((P,$)=>(P.rowSpan>b&&(b=P.rowSpan),Ht("th",{class:o(C,$,k,P),colspan:P.colSpan,key:`${P.id}-thead`,rowspan:P.rowSpan,style:r(C,$,k,P),onClick:T=>{T.currentTarget.classList.contains("noclick")||s(T,P)},onContextmenu:T=>l(T,P),onMousedown:T=>u(T,P),onMousemove:T=>f(T,P),onMouseout:m},[Ht("div",{class:["cell",P.filteredValue&&P.filteredValue.length>0?"highlight":""]},[P.renderHeader?P.renderHeader({column:P,$index:$,store:y,_self:O}):P.label,P.sortable&&Ht("span",{onClick:T=>h(T,P),class:"caret-wrapper"},[Ht("i",{onClick:T=>h(T,P,"ascending"),class:"sort-caret ascending"}),Ht("i",{onClick:T=>h(T,P,"descending"),class:"sort-caret descending"})]),P.filterable&&Ht(qje,{store:y,placement:P.filterPlacement||"bottom-start",column:P,upDataColumn:(T,A)=>{P[T]=A}},{"filter-icon":()=>P.renderFilterIcon?P.renderFilterIcon({filterOpened:P.filterOpened}):null})])]))))))}});function wA(e,t,n=.03){return e-t>n}function t4e(e){const t=$t(Rf),n=ee(""),r=ee(Ht("div")),o=(O,b,k)=>{var C;const P=t,$=OA(O);let T;const A=(C=P==null?void 0:P.vnode.el)==null?void 0:C.dataset.prefix;$&&(T=sV({columns:e.store.states.columns.value},$,A),T&&(P==null||P.emit(`cell-${k}`,b,T,$,O))),P==null||P.emit(`row-${k}`,b,T,O)},i=(O,b)=>{o(O,b,"dblclick")},a=(O,b)=>{e.store.commit("setCurrentRow",b),o(O,b,"click")},s=(O,b)=>{o(O,b,"contextmenu")},l=Rs(O=>{e.store.commit("setHoverRow",O)},30),u=Rs(()=>{e.store.commit("setHoverRow",null)},30),f=O=>{const b=window.getComputedStyle(O,null),k=Number.parseInt(b.paddingLeft,10)||0,C=Number.parseInt(b.paddingRight,10)||0,P=Number.parseInt(b.paddingTop,10)||0,$=Number.parseInt(b.paddingBottom,10)||0;return{left:k,right:C,top:P,bottom:$}},h=(O,b,k)=>{let C=b.target.parentNode;for(;O>1&&(C=C==null?void 0:C.nextSibling,!(!C||C.nodeName!=="TR"));)k(C,"hover-row hover-fixed-row"),O--};return{handleDoubleClick:i,handleClick:a,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(O,b,k)=>{var C;const P=t,$=OA(O),T=(C=P==null?void 0:P.vnode.el)==null?void 0:C.dataset.prefix;if($){const re=sV({columns:e.store.states.columns.value},$,T);$.rowSpan>1&&h($.rowSpan,O,Ou);const J=P.hoverState={cell:$,column:re,row:b};P==null||P.emit("cell-mouse-enter",J.row,J.column,J.cell,O)}if(!k)return;const A=O.target.querySelector(".cell");if(!(Gs(A,`${T}-tooltip`)&&A.childNodes.length))return;const R=document.createRange();R.setStart(A,0),R.setEnd(A,A.childNodes.length);const{width:B,height:I}=R.getBoundingClientRect(),{width:N,height:j}=A.getBoundingClientRect(),{top:L,left:V,right:X,bottom:oe}=f(A),K=V+X,Z=L+oe;(wA(B+K,N)||wA(I+Z,j)||wA(A.scrollWidth,N))&&jje(k,$.innerText||$.textContent,$,P)},handleCellMouseLeave:O=>{const b=OA(O);if(!b)return;b.rowSpan>1&&h(b.rowSpan,O,ls);const k=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",k==null?void 0:k.row,k==null?void 0:k.column,k==null?void 0:k.cell,O)},tooltipContent:n,tooltipTrigger:r}}function n4e(e){const t=$t(Rf),n=ut("table");return{getRowStyle:(u,f)=>{const h=t==null?void 0:t.props.rowStyle;return typeof h=="function"?h.call(null,{row:u,rowIndex:f}):h||null},getRowClass:(u,f)=>{const h=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&u===e.store.states.currentRow.value&&h.push("current-row"),e.stripe&&f%2===1&&h.push(n.em("row","striped"));const m=t==null?void 0:t.props.rowClassName;return typeof m=="string"?h.push(m):typeof m=="function"&&h.push(m.call(null,{row:u,rowIndex:f})),h},getCellStyle:(u,f,h,m)=>{const y=t==null?void 0:t.props.cellStyle;let O=y!=null?y:{};typeof y=="function"&&(O=y.call(null,{rowIndex:u,columnIndex:f,row:h,column:m}));const b=$3(f,e==null?void 0:e.fixed,e.store);return n0(b,"left"),n0(b,"right"),Object.assign({},O,b)},getCellClass:(u,f,h,m,y)=>{const O=P3(n.b(),f,e==null?void 0:e.fixed,e.store,void 0,y),b=[m.id,m.align,m.className,...O],k=t==null?void 0:t.props.cellClassName;return typeof k=="string"?b.push(k):typeof k=="function"&&b.push(k.call(null,{rowIndex:u,columnIndex:f,row:h,column:m})),b.push(n.e("cell")),b.filter(C=>Boolean(C)).join(" ")},getSpan:(u,f,h,m)=>{let y=1,O=1;const b=t==null?void 0:t.props.spanMethod;if(typeof b=="function"){const k=b({row:u,column:f,rowIndex:h,columnIndex:m});Array.isArray(k)?(y=k[0],O=k[1]):typeof k=="object"&&(y=k.rowspan,O=k.colspan)}return{rowspan:y,colspan:O}},getColspanRealWidth:(u,f,h)=>{if(f<1)return u[h].realWidth;const m=u.map(({realWidth:y,width:O})=>y||O).slice(h,h+f);return Number(m.reduce((y,O)=>Number(y)+Number(O),-1))}}}function r4e(e){const t=$t(Rf),n=ut("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:f,tooltipTrigger:h}=t4e(e),{getRowStyle:m,getRowClass:y,getCellStyle:O,getCellClass:b,getSpan:k,getColspanRealWidth:C}=n4e(e),P=W(()=>e.store.states.columns.value.findIndex(({type:B})=>B==="default")),$=(B,I)=>{const N=t.props.rowKey;return N?rs(B,N):I},T=(B,I,N,j=!1)=>{const{tooltipEffect:L,tooltipOptions:V,store:X}=e,{indent:oe,columns:K}=X.states,Z=y(B,I);let re=!0;return N&&(Z.push(n.em("row",`level-${N.level}`)),re=N.display),Ht("tr",{style:[re?null:{display:"none"},m(B,I)],class:Z,key:$(B,I),onDblclick:z=>r(z,B),onClick:z=>o(z,B),onContextmenu:z=>i(z,B),onMouseenter:()=>a(I),onMouseleave:s},K.value.map((z,q)=>{const{rowspan:ue,colspan:he}=k(B,z,I,q);if(!ue||!he)return null;const le=Object.assign({},z);le.realWidth=C(K.value,he,q);const ze={store:e.store,_self:e.context||t,column:le,row:B,$index:I,cellIndex:q,expanded:j};q===P.value&&N&&(ze.treeNode={indent:N.level*oe.value,level:N.level},typeof N.expanded=="boolean"&&(ze.treeNode.expanded=N.expanded,"loading"in N&&(ze.treeNode.loading=N.loading),"noLazyChildren"in N&&(ze.treeNode.noLazyChildren=N.noLazyChildren)));const Ee=`${$(B,I)},${q}`,Be=le.columnKey||le.rawColumnKey||"",Ae=A(q,z,ze),_e=z.showOverflowTooltip&&HW({effect:L},V,z.showOverflowTooltip);return Ht("td",{style:O(I,q,B,z),class:b(I,q,B,z,he-1),key:`${Be}${Ee}`,rowspan:ue,colspan:he,onMouseenter:ve=>l(ve,B,_e),onMouseleave:u},[Ae])}))},A=(B,I,N)=>I.renderCell(N);return{wrappedRowRender:(B,I)=>{const N=e.store,{isRowExpanded:j,assertRowKey:L}=N,{treeData:V,lazyTreeNodeMap:X,childrenColumnName:oe,rowKey:K}=N.states,Z=N.states.columns.value;if(Z.some(({type:J})=>J==="expand")){const J=j(B),z=T(B,I,void 0,J),q=t.renderExpanded;return J?q?[[z,Ht("tr",{key:`expanded-row__${z.key}`},[Ht("td",{colspan:Z.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[q({row:B,$index:I,store:N,expanded:J})])])]]:(console.error("[Element Error]renderExpanded is required."),z):[[z]]}else if(Object.keys(V.value).length){L();const J=rs(B,K.value);let z=V.value[J],q=null;z&&(q={expanded:z.expanded,level:z.level,display:!0},typeof z.lazy=="boolean"&&(typeof z.loaded=="boolean"&&z.loaded&&(q.noLazyChildren=!(z.children&&z.children.length)),q.loading=z.loading));const ue=[T(B,I,q)];if(z){let he=0;const le=(Ee,Be)=>{!(Ee&&Ee.length&&Be)||Ee.forEach(Ae=>{const _e={display:Be.display&&Be.expanded,level:Be.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ve=rs(Ae,K.value);if(ve==null)throw new Error("For nested data item, row-key is required.");if(z={...V.value[ve]},z&&(_e.expanded=z.expanded,z.level=z.level||_e.level,z.display=!!(z.expanded&&_e.display),typeof z.lazy=="boolean"&&(typeof z.loaded=="boolean"&&z.loaded&&(_e.noLazyChildren=!(z.children&&z.children.length)),_e.loading=z.loading)),he++,ue.push(T(Ae,I+he,_e)),z){const Ne=X.value[ve]||Ae[oe.value];le(Ne,z)}})};z.display=!0;const ze=X.value[J]||B[oe.value];le(ze,z)}return ue}else return T(B,I,void 0)},tooltipContent:f,tooltipTrigger:h}}const o4e={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var i4e=xe({name:"ElTableBody",props:o4e,setup(e){const t=En(),n=$t(Rf),r=ut("table"),{wrappedRowRender:o,tooltipContent:i,tooltipTrigger:a}=r4e(e),{onColumnsChange:s,onScrollableChange:l}=WZ(n),u=[];return at(e.store.states.hoverRow,(f,h)=>{var m;const y=t==null?void 0:t.vnode.el,O=Array.from((y==null?void 0:y.children)||[]).filter(C=>C==null?void 0:C.classList.contains(`${r.e("row")}`));let b=f;const k=(m=O[b])==null?void 0:m.childNodes;if(k!=null&&k.length){let C=0;Array.from(k).reduce(($,T,A)=>{var R,B;return((R=k[A])==null?void 0:R.colSpan)>1&&(C=(B=k[A])==null?void 0:B.colSpan),T.nodeName!=="TD"&&C===0&&$.push(A),C>0&&C--,$},[]).forEach($=>{var T;for(b=f;b>0;){const A=(T=O[b-1])==null?void 0:T.childNodes;if(A[$]&&A[$].nodeName==="TD"&&A[$].rowSpan>1){Ou(A[$],"hover-cell"),u.push(A[$]);break}b--}})}else u.forEach(C=>ls(C,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!rr||ap(()=>{const C=O[h],P=O[f];C&&!C.classList.contains("hover-fixed-row")&&ls(C,"hover-row"),P&&Ou(P,"hover-row")})}),Sp(()=>{var f;(f=hu)==null||f()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:o,tooltipContent:i,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ht("tbody",{tabIndex:-1},[n.reduce((r,o)=>r.concat(e(o,r.length)),[])])}});function a4e(){const e=$t(Rf),t=e==null?void 0:e.store,n=W(()=>t.states.fixedLeafColumnsLength.value),r=W(()=>t.states.rightFixedColumns.value.length),o=W(()=>t.states.columns.value.length),i=W(()=>t.states.fixedColumns.value.length),a=W(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:i,rightFixedCount:a,columns:t.states.columns}}function s4e(e){const{columns:t}=a4e(),n=ut("table");return{getCellClasses:(i,a)=>{const s=i[a],l=[n.e("cell"),s.id,s.align,s.labelClassName,...P3(n.b(),a,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,a)=>{const s=$3(a,i.fixed,e.store);return n0(s,"left"),n0(s,"right"),s},columns:t}}var l4e=xe({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=s4e(e);return{ns:ut("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o}=this,i=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:i}):e.forEach((s,l)=>{if(l===0){a[l]=o;return}const u=i.map(y=>Number(y[s.property])),f=[];let h=!0;u.forEach(y=>{if(!Number.isNaN(+y)){h=!1;const O=`${y}`.split(".")[1];f.push(O?O.length:0)}});const m=Math.max.apply(null,f);h?a[l]="":a[l]=u.reduce((y,O)=>{const b=Number(O);return Number.isNaN(+b)?y:Number.parseFloat((y+O).toFixed(Math.min(m,20)))},0)}),Ht(Ht("tfoot",[Ht("tr",{},[...e.map((s,l)=>Ht("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,l),style:t(s,l)},[Ht("div",{class:["cell",s.labelClassName]},[a[l]])]))])]))}});function u4e(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h)=>{e.toggleRowSelection(f,h,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})}}}function c4e(e,t,n,r){const o=ee(!1),i=ee(null),a=ee(!1),s=z=>{a.value=z},l=ee({width:null,height:null,headerHeight:null}),u=ee(!1),f={display:"inline-block",verticalAlign:"middle"},h=ee(),m=ee(0),y=ee(0),O=ee(0),b=ee(0),k=ee(0);Ba(()=>{t.setHeight(e.height)}),Ba(()=>{t.setMaxHeight(e.maxHeight)}),at(()=>[e.currentRowKey,n.states.rowKey],([z,q])=>{!v(q)||!v(z)||n.setCurrentRowKey(`${z}`)},{immediate:!0}),at(()=>e.data,z=>{r.store.commit("setData",z)},{immediate:!0,deep:!0}),Ba(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const C=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},P=(z,q)=>{const{pixelX:ue,pixelY:he}=q;Math.abs(ue)>=Math.abs(he)&&(r.refs.bodyWrapper.scrollLeft+=q.pixelX/5)},$=W(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),T=W(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),A=()=>{$.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(N)};vn(async()=>{await Wt(),n.updateColumns(),j(),requestAnimationFrame(A);const z=r.vnode.el,q=r.refs.headerWrapper;e.flexible&&z&&z.parentElement&&(z.parentElement.style.minWidth="0"),l.value={width:h.value=z.offsetWidth,height:z.offsetHeight,headerHeight:e.showHeader&&q?q.offsetHeight:null},n.states.columns.value.forEach(ue=>{ue.filteredValue&&ue.filteredValue.length&&r.store.commit("filterChange",{column:ue,values:ue.filteredValue,silent:!0})}),r.$ready=!0});const R=(z,q)=>{if(!z)return;const ue=Array.from(z.classList).filter(he=>!he.startsWith("is-scrolling-"));ue.push(t.scrollX.value?q:"is-scrolling-none"),z.className=ue.join(" ")},B=z=>{const{tableWrapper:q}=r.refs;R(q,z)},I=z=>{const{tableWrapper:q}=r.refs;return!!(q&&q.classList.contains(z))},N=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Be="is-scrolling-none";I(Be)||B(Be);return}const z=r.refs.scrollBarRef.wrapRef;if(!z)return;const{scrollLeft:q,offsetWidth:ue,scrollWidth:he}=z,{headerWrapper:le,footerWrapper:ze}=r.refs;le&&(le.scrollLeft=q),ze&&(ze.scrollLeft=q);const Ee=he-ue-1;q>=Ee?B("is-scrolling-right"):B(q===0?"is-scrolling-left":"is-scrolling-middle")},j=()=>{!r.refs.scrollBarRef||(r.refs.scrollBarRef.wrapRef&&Nr(r.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?So(r.vnode.el,L):Nr(window,"resize",L),So(r.refs.bodyWrapper,()=>{var z,q;L(),(q=(z=r.refs)==null?void 0:z.scrollBarRef)==null||q.update()}))},L=()=>{var z,q,ue,he;const le=r.vnode.el;if(!r.$ready||!le)return;let ze=!1;const{width:Ee,height:Be,headerHeight:Ae}=l.value,_e=h.value=le.offsetWidth;Ee!==_e&&(ze=!0);const ve=le.offsetHeight;(e.height||$.value)&&Be!==ve&&(ze=!0);const Ne=e.tableLayout==="fixed"?r.refs.headerWrapper:(z=r.refs.tableHeaderRef)==null?void 0:z.$el;e.showHeader&&(Ne==null?void 0:Ne.offsetHeight)!==Ae&&(ze=!0),m.value=((q=r.refs.tableWrapper)==null?void 0:q.scrollHeight)||0,O.value=(Ne==null?void 0:Ne.scrollHeight)||0,b.value=((ue=r.refs.footerWrapper)==null?void 0:ue.offsetHeight)||0,k.value=((he=r.refs.appendWrapper)==null?void 0:he.offsetHeight)||0,y.value=m.value-O.value-b.value-k.value,ze&&(l.value={width:_e,height:ve,headerHeight:e.showHeader&&(Ne==null?void 0:Ne.offsetHeight)||0},A())},V=wi(),X=W(()=>{const{bodyWidth:z,scrollY:q,gutterWidth:ue}=t;return z.value?`${z.value-(q.value?ue:0)}px`:""}),oe=W(()=>e.maxHeight?"fixed":e.tableLayout),K=W(()=>{if(e.data&&e.data.length)return null;let z="100%";e.height&&y.value&&(z=`${y.value}px`);const q=h.value;return{width:q?`${q}px`:"",height:z}}),Z=W(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),re=W(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${O.value+b.value}px)`}:{maxHeight:`${e.maxHeight-O.value-b.value}px`}:{});return{isHidden:o,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:C,handleHeaderFooterMousewheel:P,tableSize:V,emptyBlockStyle:K,handleFixedMousewheel:(z,q)=>{const ue=r.refs.bodyWrapper;if(Math.abs(q.spinY)>0){const he=ue.scrollTop;q.pixelY<0&&he!==0&&z.preventDefault(),q.pixelY>0&&ue.scrollHeight-ue.clientHeight>he&&z.preventDefault(),ue.scrollTop+=Math.ceil(q.pixelY/5)}else ue.scrollLeft+=Math.ceil(q.pixelX/5)},resizeProxyVisible:a,bodyWidth:X,resizeState:l,doLayout:A,tableBodyStyles:T,tableLayout:oe,scrollbarViewStyle:f,tableInnerStyle:Z,scrollbarStyle:re}}function f4e(e){const t=ee(),n=()=>{const o=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(s=>s())}),t.value.observe(o,i)};vn(()=>{n()}),Sp(()=>{var r;(r=t.value)==null||r.disconnect()})}var d4e={data:{type:Array,default:()=>[]},size:Ni,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function HZ(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(o=>o.width===void 0)&&(n=[]);const r=o=>{const i={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?i.style={width:`${o.width}px`}:i.name=o.id,i};return Ht("colgroup",{},n.map(o=>Ht("col",r(o))))}HZ.props=["columns","tableLayout"];const h4e=()=>{const e=ee(),t=(i,a)=>{const s=e.value;s&&s.scrollTo(i,a)},n=(i,a)=>{const s=e.value;s&&tn(a)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let p4e=1;const g4e=xe({name:"ElTable",directives:{Mousewheel:ZTe},components:{TableHeader:e4e,TableBody:i4e,TableFooter:l4e,ElScrollbar:Ec,hColgroup:HZ},props:d4e,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=ir(),n=ut("table"),r=En();Yn(Rf,r);const o=Wje(r,e);r.store=o;const i=new Uje({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const a=W(()=>(o.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:h,toggleAllSelection:m,toggleRowExpansion:y,clearSort:O,sort:b}=u4e(o),{isHidden:k,renderExpanded:C,setDragVisible:P,isGroup:$,handleMouseLeave:T,handleHeaderFooterMousewheel:A,tableSize:R,emptyBlockStyle:B,handleFixedMousewheel:I,resizeProxyVisible:N,bodyWidth:j,resizeState:L,doLayout:V,tableBodyStyles:X,tableLayout:oe,scrollbarViewStyle:K,tableInnerStyle:Z,scrollbarStyle:re}=c4e(e,i,o,r),{scrollBarRef:J,scrollTo:z,setScrollLeft:q,setScrollTop:ue}=h4e(),he=Rs(V,50),le=`${n.namespace.value}-table_${p4e++}`;r.tableId=le,r.state={isGroup:$,resizeState:L,doLayout:V,debouncedUpdateLayout:he};const ze=W(()=>e.sumText||t("el.table.sumText")),Ee=W(()=>e.emptyText||t("el.table.emptyText")),Be=W(()=>UZ(o.states.originColumns.value)[0]);return f4e(r),{ns:n,layout:i,store:o,columns:Be,handleHeaderFooterMousewheel:A,handleMouseLeave:T,tableId:le,tableSize:R,isHidden:k,isEmpty:a,renderExpanded:C,resizeProxyVisible:N,resizeState:L,isGroup:$,bodyWidth:j,tableBodyStyles:X,emptyBlockStyle:B,debouncedUpdateLayout:he,handleFixedMousewheel:I,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:h,toggleAllSelection:m,toggleRowExpansion:y,clearSort:O,doLayout:V,sort:b,t,setDragVisible:P,context:r,computedSumText:ze,computedEmptyText:Ee,tableLayout:oe,scrollbarViewStyle:K,tableInnerStyle:Z,scrollbarStyle:re,scrollBarRef:J,scrollTo:z,setScrollLeft:q,setScrollTop:ue}}});function m4e(e,t,n,r,o,i){const a=Pn("hColgroup"),s=Pn("table-header"),l=Pn("table-body"),u=Pn("table-footer"),f=Pn("el-scrollbar"),h=_2("mousewheel");return U(),ce("div",{ref:"tableWrapper",class:G([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ft(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[ge("div",{class:G(e.ns.e("inner-wrapper")),style:Ft(e.tableInnerStyle)},[ge("div",{ref:"hiddenColumns",class:"hidden-columns"},[Xe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?bn((U(),ce("div",{key:0,ref:"headerWrapper",class:G(e.ns.e("header-wrapper"))},[ge("table",{ref:"tableHeader",class:G(e.ns.e("header")),style:Ft(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[ne(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ne(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[h,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),ge("div",{ref:"bodyWrapper",class:G(e.ns.e("body-wrapper"))},[ne(f,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:se(()=>[ge("table",{ref:"tableBody",class:G(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ft({width:e.bodyWidth,tableLayout:e.tableLayout})},[ne(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(U(),Qe(s,{key:0,ref:"tableHeaderRef",class:G(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):Fe("v-if",!0),ne(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(U(),Qe(u,{key:1,class:G(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):Fe("v-if",!0)],6),e.isEmpty?(U(),ce("div",{key:0,ref:"emptyBlock",style:Ft(e.emptyBlockStyle),class:G(e.ns.e("empty-block"))},[ge("span",{class:G(e.ns.e("empty-text"))},[Xe(e.$slots,"empty",{},()=>[xt(ct(e.computedEmptyText),1)])],2)],6)):Fe("v-if",!0),e.$slots.append?(U(),ce("div",{key:1,ref:"appendWrapper",class:G(e.ns.e("append-wrapper"))},[Xe(e.$slots,"append")],2)):Fe("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?bn((U(),ce("div",{key:1,ref:"footerWrapper",class:G(e.ns.e("footer-wrapper"))},[ge("table",{class:G(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ft(e.tableBodyStyles)},[ne(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ne(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[gr,!e.isEmpty],[h,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),e.border||e.isGroup?(U(),ce("div",{key:2,class:G(e.ns.e("border-left-patch"))},null,2)):Fe("v-if",!0)],6),bn(ge("div",{ref:"resizeProxy",class:G(e.ns.e("column-resize-proxy"))},null,2),[[gr,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var v4e=gt(g4e,[["render",m4e],["__file","table.vue"]]);const y4e={selection:"table-column--selection",expand:"table__expand-column"},b4e={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},_4e=e=>y4e[e]||"",O4e={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Ht(Hl,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return Ht(Hl,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Ht("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,o=[r.e("expand-icon")];return n&&o.push(r.em("expand-icon","expanded")),Ht("div",{class:o,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ht(Lt,null,{default:()=>[Ht(Es)]})]})},sortable:!1,resizable:!1}};function w4e({row:e,column:t,$index:n}){var r;const o=t.property,i=o&&mk(e,o).value;return t&&t.formatter?t.formatter(e,t,i,n):((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||""}function S4e({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[Ht("span",{class:o.e("placeholder")})]:null;const i=[],a=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Ht("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let l=Es;t.loading&&(l=yf),i.push(Ht("div",{class:s,onClick:a},{default:()=>[Ht(Lt,{class:{[o.is("loading")]:t.loading}},{default:()=>[Ht(l)]})]}))}else i.push(Ht("span",{class:o.e("placeholder")}));return i}function cV(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function x4e(e,t){const n=En();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},s=cV(i,a);Object.keys(s).forEach(l=>{const u=a[l];sr(t,u)&&at(()=>t[u],f=>{let h=f;u==="width"&&l==="realWidth"&&(h=T3(f)),u==="minWidth"&&l==="realMinWidth"&&(h=BZ(f)),n.columnConfig.value[u]=h,n.columnConfig.value[l]=h;const m=u==="fixed";e.value.store.scheduleLayout(m)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=cV(i,a);Object.keys(s).forEach(l=>{const u=a[l];sr(t,u)&&at(()=>t[u],f=>{n.columnConfig.value[l]=f})})}}}function k4e(e,t,n){const r=En(),o=ee(""),i=ee(!1),a=ee(),s=ee(),l=ut("table");Ba(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Ba(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:a.value,s.value});const u=W(()=>{let T=r.vnode.vParent||r.parent;for(;T&&!T.tableId&&!T.columnId;)T=T.vnode.vParent||T.parent;return T}),f=W(()=>{const{store:T}=r.parent;if(!T)return!1;const{treeData:A}=T.states,R=A.value;return R&&Object.keys(R).length>0}),h=ee(T3(e.width)),m=ee(BZ(e.minWidth)),y=T=>(h.value&&(T.width=h.value),m.value&&(T.minWidth=m.value),!h.value&&m.value&&(T.width=void 0),T.minWidth||(T.minWidth=80),T.realWidth=Number(T.width===void 0?T.minWidth:T.width),T),O=T=>{const A=T.type,R=O4e[A]||{};Object.keys(R).forEach(I=>{const N=R[I];I!=="className"&&N!==void 0&&(T[I]=N)});const B=_4e(A);if(B){const I=`${v(l.namespace)}-${B}`;T.className=T.className?`${T.className} ${I}`:I}return T},b=T=>{Array.isArray(T)?T.forEach(R=>A(R)):A(T);function A(R){var B;((B=R==null?void 0:R.type)==null?void 0:B.name)==="ElTableColumn"&&(R.vParent=r)}};return{columnId:o,realAlign:a,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:y,setColumnForcedProps:O,setColumnRenders:T=>{e.renderHeader||T.type!=="selection"&&(T.renderHeader=R=>(r.columnConfig.value.label,Xe(t,"header",R,()=>[T.label]))),t["filter-icon"]&&(T.renderFilterIcon=R=>Xe(t,"filter-icon",R));let A=T.renderCell;return T.type==="expand"?(T.renderCell=R=>Ht("div",{class:"cell"},[A(R)]),n.value.renderExpanded=R=>t.default?t.default(R):t.default):(A=A||w4e,T.renderCell=R=>{let B=null;if(t.default){const X=t.default(R);B=X.some(oe=>oe.type!==Cs)?X:A(R)}else B=A(R);const{columns:I}=n.value.store.states,N=I.value.findIndex(X=>X.type==="default"),j=f.value&&R.cellIndex===N,L=S4e(R,j),V={class:"cell",style:{}};return T.showOverflowTooltip&&(V.class=`${V.class} ${v(l.namespace)}-tooltip`,V.style={width:`${(R.column.realWidth||Number(R.column.width))-1}px`}),b(B),Ht("div",V,[L,B])}),T},getPropsData:(...T)=>T.reduce((A,R)=>(Array.isArray(R)&&R.forEach(B=>{A[B]=e[B]}),A),{}),getColumnElIndex:(T,A)=>Array.prototype.indexOf.call(T,A),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var C4e={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let E4e=1;var ZZ=xe({name:"ElTableColumn",components:{ElCheckbox:Hl},props:C4e,setup(e,{slots:t}){const n=En(),r=ee({}),o=W(()=>{let $=n.parent;for(;$&&!$.tableId;)$=$.parent;return $}),{registerNormalWatchers:i,registerComplexWatchers:a}=x4e(o,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:m,setColumnRenders:y,getPropsData:O,getColumnElIndex:b,realAlign:k,updateColumnOrder:C}=k4e(e,t,o),P=f.value;s.value=`${P.tableId||P.columnId}_column_${E4e++}`,b2(()=>{l.value=o.value!==P;const $=e.type||"default",T=e.sortable===""?!0:e.sortable,A=zo(e.showOverflowTooltip)?P.props.showOverflowTooltip:e.showOverflowTooltip,R={...b4e[$],id:s.value,type:$,property:e.prop||e.property,align:k,headerAlign:u,showOverflowTooltip:A,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:T,index:e.index,rawColumnKey:n.vnode.key};let L=O(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);L=Rje(R,L),L=Ije(y,h,m)(L),r.value=L,i(),a()}),vn(()=>{var $;const T=f.value,A=l.value?T.vnode.el.children:($=T.refs.hiddenColumns)==null?void 0:$.children,R=()=>b(A||[],n.vnode.el);r.value.getColumnIndex=R,R()>-1&&o.value.store.commit("insertColumn",r.value,l.value?T.columnConfig.value:null,C)}),qr(()=>{r.value.getColumnIndex()>-1&&o.value.store.commit("removeColumn",r.value,l.value?P.columnConfig.value:null,C)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(r))for(const a of r)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?o.push(a):a.type===Pt&&Array.isArray(a.children)&&a.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!Gt(s==null?void 0:s.children)&&o.push(s)});return Ht("div",o)}catch{return Ht("div",[])}}});const A3=gn(v4e,{TableColumn:ZZ}),M3=Co(ZZ);var KO=(e=>(e.ASC="asc",e.DESC="desc",e))(KO||{}),GO=(e=>(e.CENTER="center",e.RIGHT="right",e))(GO||{}),XZ=(e=>(e.LEFT="left",e.RIGHT="right",e))(XZ||{});const SR={asc:"desc",desc:"asc"},JO=Symbol("placeholder"),T4e=(e,t,n)=>{var r;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const i={...(r=e.style)!=null?r:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function P4e(e,t,n){const r=W(()=>v(t).filter(b=>!b.hidden)),o=W(()=>v(r).filter(b=>b.fixed==="left"||b.fixed===!0)),i=W(()=>v(r).filter(b=>b.fixed==="right")),a=W(()=>v(r).filter(b=>!b.fixed)),s=W(()=>{const b=[];return v(o).forEach(k=>{b.push({...k,placeholderSign:JO})}),v(a).forEach(k=>{b.push(k)}),v(i).forEach(k=>{b.push({...k,placeholderSign:JO})}),b}),l=W(()=>v(o).length||v(i).length),u=W(()=>v(t).reduce((k,C)=>(k[C.key]=T4e(C,v(n),e.fixed),k),{})),f=W(()=>v(r).reduce((b,k)=>b+k.width,0)),h=b=>v(t).find(k=>k.key===b),m=b=>v(u)[b],y=(b,k)=>{b.width=k};function O(b){var k;const{key:C}=b.currentTarget.dataset;if(!C)return;const{sortState:P,sortBy:$}=e;let T=KO.ASC;$n(P)?T=SR[P[C]]:T=SR[$.order],(k=e.onColumnSort)==null||k.call(e,{column:h(C),key:C,order:T})}return{columns:t,columnsStyles:u,columnsTotalWidth:f,fixedColumnsOnLeft:o,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:a,visibleColumns:r,getColumn:h,getColumnStyle:m,updateColumnWidth:y,onColumnSorted:O}}const $4e=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const i=ee({scrollLeft:0,scrollTop:0});function a(y){var O,b,k;const{scrollTop:C}=y;(O=t.value)==null||O.scrollTo(y),(b=n.value)==null||b.scrollToTop(C),(k=r.value)==null||k.scrollToTop(C)}function s(y){i.value=y,a(y)}function l(y){i.value.scrollTop=y,a(v(i))}function u(y){var O,b;i.value.scrollLeft=y,(b=(O=t.value)==null?void 0:O.scrollTo)==null||b.call(O,v(i))}function f(y){var O;s(y),(O=e.onScroll)==null||O.call(e,y)}function h({scrollTop:y}){const{scrollTop:O}=v(i);y!==O&&l(y)}function m(y,O="auto"){var b;(b=t.value)==null||b.scrollToRow(y,O)}return at(()=>v(i).scrollTop,(y,O)=>{y>O&&o()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:m,onScroll:f,onVerticalScroll:h}},A4e=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:o,ns:i,isScrolling:a})=>{const s=En(),{emit:l}=s,u=to(!1),f=ee(e.defaultExpandedRowKeys||[]),h=ee(-1),m=to(null),y=ee({}),O=ee({}),b=to({}),k=to({}),C=to({}),P=W(()=>tn(e.estimatedRowHeight));function $(j){var L;(L=e.onRowsRendered)==null||L.call(e,j),j.rowCacheEnd>v(h)&&(h.value=j.rowCacheEnd)}function T({hovered:j,rowKey:L}){if(a.value)return;o.vnode.el.querySelectorAll(`[rowkey="${String(L)}"]`).forEach(oe=>{j?oe.classList.add(i.is("hovered")):oe.classList.remove(i.is("hovered"))})}function A({expanded:j,rowData:L,rowIndex:V,rowKey:X}){var oe,K;const Z=[...v(f)],re=Z.indexOf(X);j?re===-1&&Z.push(X):re>-1&&Z.splice(re,1),f.value=Z,l("update:expandedRowKeys",Z),(oe=e.onRowExpand)==null||oe.call(e,{expanded:j,rowData:L,rowIndex:V,rowKey:X}),(K=e.onExpandedRowsChange)==null||K.call(e,Z)}const R=Rs(()=>{var j,L,V,X;u.value=!0,y.value={...v(y),...v(O)},B(v(m),!1),O.value={},m.value=null,(j=t.value)==null||j.forceUpdate(),(L=n.value)==null||L.forceUpdate(),(V=r.value)==null||V.forceUpdate(),(X=s.proxy)==null||X.$forceUpdate(),u.value=!1},0);function B(j,L=!1){!v(P)||[t,n,r].forEach(V=>{const X=v(V);X&&X.resetAfterRowIndex(j,L)})}function I(j,L,V){const X=v(m);(X===null||X>V)&&(m.value=V),O.value[j]=L}function N({rowKey:j,height:L,rowIndex:V},X){X?X===XZ.RIGHT?C.value[j]=L:b.value[j]=L:k.value[j]=L;const oe=Math.max(...[b,C,k].map(K=>K.value[j]||0));v(y)[j]!==oe&&(I(j,oe,V),R())}return{expandedRowKeys:f,lastRenderedRowIndex:h,isDynamic:P,isResetting:u,rowHeights:y,resetAfterIndex:B,onRowExpanded:A,onRowHovered:T,onRowsRendered:$,onRowHeightChange:N}},M4e=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=ee({}),i=W(()=>{const s={},{data:l,rowKey:u}=e,f=v(t);if(!f||!f.length)return l;const h=[],m=new Set;f.forEach(O=>m.add(O));let y=l.slice();for(y.forEach(O=>s[O[u]]=0);y.length>0;){const O=y.shift();h.push(O),m.has(O[u])&&Array.isArray(O.children)&&O.children.length>0&&(y=[...O.children,...y],O.children.forEach(b=>s[b[u]]=s[O[u]]+1))}return o.value=s,h}),a=W(()=>{const{data:s,expandColumnKey:l}=e;return l?v(i):s});return at(a,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:a,depthMap:o}},R4e=(e,t)=>e+t,kk=e=>Et(e)?e.reduce(R4e,0):e,Om=(e,t,n={})=>rn(e)?e(t):e!=null?e:n,Fh=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Qo(e[t])}),e),qZ=e=>wo(e)?t=>Ht(e,t):e,N4e=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const i=W(()=>{const{fixed:$,width:T,vScrollbarSize:A}=e,R=T-A;return $?Math.max(Math.round(v(t)),R):R}),a=W(()=>v(i)+e.vScrollbarSize),s=W(()=>{const{height:$=0,maxHeight:T=0,footerHeight:A,hScrollbarSize:R}=e;if(T>0){const B=v(O),I=v(l),j=v(y)+B+I+R;return Math.min(j,T-A)}return $-A}),l=W(()=>{const{rowHeight:$,estimatedRowHeight:T}=e,A=v(n);return tn(T)?A.length*T:A.length*$}),u=W(()=>{const{maxHeight:$}=e,T=v(s);if(tn($)&&$>0)return T;const A=v(l)+v(y)+v(O);return Math.min(T,A)}),f=$=>$.width,h=W(()=>kk(v(r).map(f))),m=W(()=>kk(v(o).map(f))),y=W(()=>kk(e.headerHeight)),O=W(()=>{var $;return((($=e.fixedData)==null?void 0:$.length)||0)*e.rowHeight}),b=W(()=>v(s)-v(y)-v(O)),k=W(()=>{const{style:$={},height:T,width:A}=e;return Fh({...$,height:T,width:A})}),C=W(()=>Fh({height:e.footerHeight})),P=W(()=>({top:Qo(v(y)),bottom:Qo(e.footerHeight),width:Qo(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:h,rightTableWidth:m,headerWidth:a,rowsHeight:l,windowHeight:b,footerHeight:C,emptyStyle:P,rootStyle:k,headerHeight:y}},I4e=e=>{const t=ee(),n=ee(0),r=ee(0);let o;return vn(()=>{o=So(t,([i])=>{const{width:a,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:f,paddingBottom:h}=getComputedStyle(i.target),m=Number.parseInt(l)||0,y=Number.parseInt(u)||0,O=Number.parseInt(f)||0,b=Number.parseInt(h)||0;n.value=a-m-y,r.value=s-O-b}).stop}),qr(()=>{o==null||o()}),at([n,r],([i,a])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:a})}),{sizer:t,width:n,height:r}};function D4e(e){const t=ee(),n=ee(),r=ee(),{columns:o,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:f,onColumnSorted:h}=P4e(e,Tr(e,"columns"),Tr(e,"fixed")),{scrollTo:m,scrollToLeft:y,scrollToTop:O,scrollToRow:b,onScroll:k,onVerticalScroll:C,scrollPos:P}=$4e(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:ye}),$=ut("table-v2"),T=En(),A=to(!1),{expandedRowKeys:R,lastRenderedRowIndex:B,isDynamic:I,isResetting:N,rowHeights:j,resetAfterIndex:L,onRowExpanded:V,onRowHeightChange:X,onRowHovered:oe,onRowsRendered:K}=A4e(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:T,ns:$,isScrolling:A}),{data:Z,depthMap:re}=M4e(e,{expandedRowKeys:R,lastRenderedRowIndex:B,resetAfterIndex:L}),{bodyWidth:J,fixedTableHeight:z,mainTableHeight:q,leftTableWidth:ue,rightTableWidth:he,headerWidth:le,rowsHeight:ze,windowHeight:Ee,footerHeight:Be,emptyStyle:Ae,rootStyle:_e,headerHeight:ve}=N4e(e,{columnsTotalWidth:a,data:Z,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),Ne=ee(),Se=W(()=>{const He=v(Z).length===0;return Et(e.fixedData)?e.fixedData.length===0&&He:He});function fe(He){const{estimatedRowHeight:be,rowHeight:Ie,rowKey:De}=e;return be?v(j)[v(Z)[He][De]]||be:Ie}function ye(){const{onEndReached:He}=e;if(!He)return;const{scrollTop:be}=v(P),Ie=v(ze),De=v(Ee),Me=Ie-(be+De)+e.hScrollbarSize;v(B)>=0&&Ie===be+v(q)-v(ve)&&He(Me)}return at(()=>e.expandedRowKeys,He=>R.value=He,{deep:!0}),{columns:o,containerRef:Ne,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:I,isResetting:N,isScrolling:A,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:Z,expandedRowKeys:R,depthMap:re,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:f,bodyWidth:J,emptyStyle:Ae,rootStyle:_e,headerWidth:le,footerHeight:Be,mainTableHeight:q,fixedTableHeight:z,leftTableWidth:ue,rightTableWidth:he,showEmpty:Se,getRowHeight:fe,onColumnSorted:h,onRowHovered:oe,onRowExpanded:V,onRowsRendered:K,onRowHeightChange:X,scrollTo:m,scrollToLeft:y,scrollToTop:O,scrollToRow:b,onScroll:k,onVerticalScroll:C}}const R3=Symbol("tableV2"),KZ=String,Y1={type:Le(Array),required:!0},N3={type:Le(Array)},GZ={...N3,required:!0},j4e=String,fV={type:Le(Array),default:()=>xo([])},Fg={type:Number,required:!0},JZ={type:Le([String,Number,Symbol]),default:"id"},dV={type:Le(Object)},Gg=pt({class:String,columns:Y1,columnsStyles:{type:Le(Object),required:!0},depth:Number,expandColumnKey:j4e,estimatedRowHeight:{...am.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Le(Function)},onRowHover:{type:Le(Function)},onRowHeightChange:{type:Le(Function)},rowData:{type:Le(Object),required:!0},rowEventHandlers:{type:Le(Object)},rowIndex:{type:Number,required:!0},rowKey:JZ,style:{type:Le(Object)}}),SA={type:Number,required:!0},I3=pt({class:String,columns:Y1,fixedHeaderData:{type:Le(Array)},headerData:{type:Le(Array),required:!0},headerHeight:{type:Le([Number,Array]),default:50},rowWidth:SA,rowHeight:{type:Number,default:50},height:SA,width:SA}),Ck=pt({columns:Y1,data:GZ,fixedData:N3,estimatedRowHeight:Gg.estimatedRowHeight,width:Fg,height:Fg,headerWidth:Fg,headerHeight:I3.headerHeight,bodyWidth:Fg,rowHeight:Fg,cache:_Z.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:am.scrollbarAlwaysOn,scrollbarStartGap:am.scrollbarStartGap,scrollbarEndGap:am.scrollbarEndGap,class:KZ,style:dV,containerStyle:dV,getRowHeight:{type:Le(Function),required:!0},rowKey:Gg.rowKey,onRowsRendered:{type:Le(Function)},onScroll:{type:Le(Function)}}),L4e=pt({cache:Ck.cache,estimatedRowHeight:Gg.estimatedRowHeight,rowKey:JZ,headerClass:{type:Le([String,Function])},headerProps:{type:Le([Object,Function])},headerCellProps:{type:Le([Object,Function])},headerHeight:I3.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:Le([String,Function])},rowProps:{type:Le([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:Le([Object,Function])},columns:Y1,data:GZ,dataGetter:{type:Le(Function)},fixedData:N3,expandColumnKey:Gg.expandColumnKey,expandedRowKeys:fV,defaultExpandedRowKeys:fV,class:KZ,fixed:Boolean,style:{type:Le(Object)},width:Fg,height:Fg,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:am.hScrollbarSize,vScrollbarSize:am.vScrollbarSize,scrollbarAlwaysOn:SZ.alwaysOn,sortBy:{type:Le(Object),default:()=>({})},sortState:{type:Le(Object),default:void 0},onColumnSort:{type:Le(Function)},onExpandedRowsChange:{type:Le(Function)},onEndReached:{type:Le(Function)},onRowExpand:Gg.onRowExpand,onScroll:Ck.onScroll,onRowsRendered:Ck.onRowsRendered,rowEventHandlers:Gg.rowEventHandlers}),D3=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"",a=Xe(t,"default",e,()=>[i]);return ne("div",{class:e.class,title:i,style:o},[a])};D3.displayName="ElTableV2Cell";D3.inheritAttrs=!1;const j3=(e,{slots:t})=>Xe(t,"default",e,()=>{var n,r;return[ne("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});j3.displayName="ElTableV2HeaderCell";j3.inheritAttrs=!1;const B4e=pt({class:String,columns:Y1,columnsStyles:{type:Le(Object),required:!0},headerIndex:Number,style:{type:Le(Object)}}),V4e=xe({name:"ElTableV2HeaderRow",props:B4e,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:o,style:i}=e;let a=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:o,style:r[s.key]}));return t.header&&(a=t.header({cells:a.map(s=>Et(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),ne("div",{class:e.class,style:i,role:"row"},[a])}}}),F4e="ElTableV2Header",z4e=xe({name:F4e,props:I3,setup(e,{slots:t,expose:n}){const r=ut("table-v2"),o=ee(),i=W(()=>Fh({width:e.width,height:e.height})),a=W(()=>Fh({width:e.rowWidth,height:e.height})),s=W(()=>Da(v(e.headerHeight))),l=h=>{const m=v(o);Wt(()=>{m!=null&&m.scroll&&m.scroll({left:h})})},u=()=>{const h=r.e("fixed-header-row"),{columns:m,fixedHeaderData:y,rowHeight:O}=e;return y==null?void 0:y.map((b,k)=>{var C;const P=Fh({height:O,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:h,columns:m,rowData:b,rowIndex:-(k+1),style:P})})},f=()=>{const h=r.e("dynamic-header-row"),{columns:m}=e;return v(s).map((y,O)=>{var b;const k=Fh({width:"100%",height:y});return(b=t.dynamic)==null?void 0:b.call(t,{class:h,columns:m,headerIndex:O,style:k})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return ne("div",{ref:o,class:e.class,style:v(i),role:"rowgroup"},[ne("div",{style:v(a),class:r.e("header")},[f(),u()])])}}}),Q4e=e=>{const{isScrolling:t}=$t(R3),n=ee(!1),r=ee(),o=W(()=>tn(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=v(r);if(!u)return;const{columns:f,onRowHeightChange:h,rowKey:m,rowIndex:y,style:O}=e,{height:b}=u.getBoundingClientRect();n.value=!0,Wt(()=>{if(l||b!==Number.parseInt(O.height)){const k=f[0],C=(k==null?void 0:k.placeholderSign)===JO;h==null||h({rowKey:m,height:b,rowIndex:y},k&&!C&&k.fixed)}})},a=W(()=>{const{rowData:l,rowIndex:u,rowKey:f,onRowHover:h}=e,m=e.rowEventHandlers||{},y={};return Object.entries(m).forEach(([O,b])=>{rn(b)&&(y[O]=k=>{b({event:k,rowData:l,rowIndex:u,rowKey:f})})}),h&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:O,hovered:b})=>{const k=y[O];y[O]=C=>{h({event:C,hovered:b,rowData:l,rowIndex:u,rowKey:f}),k==null||k(C)}}),y}),s=l=>{const{onRowExpand:u,rowData:f,rowIndex:h,rowKey:m}=e;u==null||u({expanded:l,rowData:f,rowIndex:h,rowKey:m})};return vn(()=>{v(o)&&i(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:r,eventHandlers:a,onExpand:s}},W4e="ElTableV2TableRow",Y4e=xe({name:W4e,props:Gg,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:i,measurable:a,measured:s,rowRef:l,onExpand:u}=Q4e(e);return t({onExpand:u}),()=>{const{columns:f,columnsStyles:h,expandColumnKey:m,depth:y,rowData:O,rowIndex:b,style:k}=e;let C=f.map((P,$)=>{const T=Et(O.children)&&O.children.length>0&&P.key===m;return n.cell({column:P,columns:f,columnIndex:$,depth:y,style:h[P.key],rowData:O,rowIndex:b,isScrolling:v(i),expandIconProps:T?{rowData:O,rowIndex:b,onExpand:u}:void 0})});if(n.row&&(C=n.row({cells:C.map(P=>Et(P)&&P.length===1?P[0]:P),style:k,columns:f,depth:y,rowData:O,rowIndex:b,isScrolling:v(i)})),v(a)){const{height:P,...$}=k||{},T=v(s);return ne("div",Dn({ref:l,class:e.class,style:T?k:$,role:"row"},r,v(o)),[C])}return ne("div",Dn(r,{ref:l,class:e.class,style:k,role:"row"},v(o)),[C])}}}),U4e=e=>{const{sortOrder:t}=e;return ne(Lt,{size:14,class:e.class},{default:()=>[t===KO.ASC?ne(ESe,null,null):ne(kSe,null,null)]})},H4e=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:i}=e,a={onClick:n?()=>r(!t):void 0,class:e.class};return ne(Lt,Dn(a,{size:i,style:o}),{default:()=>[ne(Es,null,null)]})},Z4e="ElTableV2Grid",X4e=e=>{const t=ee(),n=ee(),r=W(()=>{const{data:b,rowHeight:k,estimatedRowHeight:C}=e;if(!C)return b.length*k}),o=W(()=>{const{fixedData:b,rowHeight:k}=e;return((b==null?void 0:b.length)||0)*k}),i=W(()=>kk(e.headerHeight)),a=W(()=>{const{height:b}=e;return Math.max(0,b-v(i)-v(o))}),s=W(()=>v(i)+v(o)>0),l=({data:b,rowIndex:k})=>b[k][e.rowKey];function u({rowCacheStart:b,rowCacheEnd:k,rowVisibleStart:C,rowVisibleEnd:P}){var $;($=e.onRowsRendered)==null||$.call(e,{rowCacheStart:b,rowCacheEnd:k,rowVisibleStart:C,rowVisibleEnd:P})}function f(b,k){var C;(C=n.value)==null||C.resetAfterRowIndex(b,k)}function h(b,k){const C=v(t),P=v(n);$n(b)?(C==null||C.scrollToLeft(b.scrollLeft),P==null||P.scrollTo(b)):(C==null||C.scrollToLeft(b),P==null||P.scrollTo({scrollLeft:b,scrollTop:k}))}function m(b){var k;(k=v(n))==null||k.scrollTo({scrollTop:b})}function y(b,k){var C;(C=v(n))==null||C.scrollToItem(b,1,k)}function O(){var b,k;(b=v(n))==null||b.$forceUpdate(),(k=v(t))==null||k.$forceUpdate()}return{bodyRef:n,forceUpdate:O,fixedRowHeight:o,gridHeight:a,hasHeader:s,headerHeight:i,headerRef:t,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:f,scrollTo:h,scrollToTop:m,scrollToRow:y}},L3=xe({name:Z4e,props:Ck,setup(e,{slots:t,expose:n}){const{ns:r}=$t(R3),{bodyRef:o,fixedRowHeight:i,gridHeight:a,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:f,forceUpdate:h,itemKey:m,onItemRendered:y,resetAfterRowIndex:O,scrollTo:b,scrollToTop:k,scrollToRow:C}=X4e(e);n({forceUpdate:h,totalHeight:f,scrollTo:b,scrollToTop:k,scrollToRow:C,resetAfterRowIndex:O});const P=()=>e.bodyWidth;return()=>{const{cache:$,columns:T,data:A,fixedData:R,useIsScrolling:B,scrollbarAlwaysOn:I,scrollbarEndGap:N,scrollbarStartGap:j,style:L,rowHeight:V,bodyWidth:X,estimatedRowHeight:oe,headerWidth:K,height:Z,width:re,getRowHeight:J,onScroll:z}=e,q=tn(oe),ue=q?e3e:qDe,he=v(u);return ne("div",{role:"table",class:[r.e("table"),e.class],style:L},[ne(ue,{ref:o,data:A,useIsScrolling:B,itemKey:m,columnCache:0,columnWidth:q?P:X,totalColumn:1,totalRow:A.length,rowCache:$,rowHeight:q?J:V,width:re,height:v(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:j,scrollbarEndGap:N,scrollbarAlwaysOn:I,onScroll:z,onItemRendered:y,perfMode:!1},{default:le=>{var ze;const Ee=A[le.rowIndex];return(ze=t.row)==null?void 0:ze.call(t,{...le,columns:T,rowData:Ee})}}),v(s)&&ne(z4e,{ref:l,class:r.e("header-wrapper"),columns:T,headerData:A,headerHeight:e.headerHeight,fixedHeaderData:R,rowWidth:K,rowHeight:V,width:re,height:Math.min(he+v(i),Z)},{dynamic:t.header,fixed:t.row})])}}});function q4e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wo(e)}const K4e=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return ne(L3,Dn({ref:n},r),q4e(t)?t:{default:()=>[t]})};function G4e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wo(e)}const J4e=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return ne(L3,Dn({ref:n},r),G4e(t)?t:{default:()=>[t]})};function e8e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wo(e)}const t8e=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return ne(L3,Dn({ref:n},r),e8e(t)?t:{default:()=>[t]})};function n8e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wo(e)}const r8e=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:o,expandColumnKey:i,expandedRowKeys:a,estimatedRowHeight:s,hasFixedColumns:l,rowData:u,rowIndex:f,style:h,isScrolling:m,rowProps:y,rowClass:O,rowKey:b,rowEventHandlers:k,ns:C,onRowHovered:P,onRowExpanded:$}=e,T=Om(O,{columns:n,rowData:u,rowIndex:f},""),A=Om(y,{columns:n,rowData:u,rowIndex:f}),R=u[b],B=o[R]||0,I=Boolean(i),N=f<0,j=[C.e("row"),T,{[C.e(`row-depth-${B}`)]:I&&f>=0,[C.is("expanded")]:I&&a.includes(R),[C.is("fixed")]:!B&&N,[C.is("customized")]:Boolean(t.row)}],L=l?P:void 0,V={...A,columns:n,columnsStyles:r,class:j,depth:B,expandColumnKey:i,estimatedRowHeight:N?void 0:s,isScrolling:m,rowIndex:f,rowData:u,rowKey:R,rowEventHandlers:k,style:h};return ne(Y4e,Dn(V,{onRowExpand:$,onMouseenter:K=>{L==null||L({hovered:!0,rowKey:R,event:K,rowData:u,rowIndex:f})},onMouseleave:K=>{L==null||L({hovered:!1,rowKey:R,event:K,rowData:u,rowIndex:f})},rowkey:R}),n8e(t)?t:{default:()=>[t]})},xR=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:o,isScrolling:i,rowData:a,rowIndex:s,style:l,expandedRowKeys:u,ns:f,cellProps:h,expandColumnKey:m,indentSize:y,iconSize:O,rowKey:b},{slots:k})=>{const C=Fh(l);if(t.placeholderSign===JO)return ne("div",{class:f.em("row-cell","placeholder"),style:C},null);const{cellRenderer:P,dataKey:$,dataGetter:T}=t,A=rn(T)?T({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:s}):No(a,$!=null?$:""),R=Om(h,{cellData:A,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:a}),B={class:f.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:A,isScrolling:i,rowData:a,rowIndex:s},I=qZ(P),N=I?I(B):Xe(k,"default",B,()=>[ne(D3,B,null)]),j=[f.e("row-cell"),t.class,t.align===GO.CENTER&&f.is("align-center"),t.align===GO.RIGHT&&f.is("align-right")],L=s>=0&&m&&t.key===m,V=s>=0&&u.includes(a[b]);let X;const oe=`margin-inline-start: ${r*y}px;`;return L&&($n(o)?X=ne(H4e,Dn(o,{class:[f.e("expand-icon"),f.is("expanded",V)],size:O,expanded:V,style:oe,expandable:!0}),null):X=ne("div",{style:[oe,`width: ${O}px; height: ${O}px;`].join(" ")},null)),ne("div",Dn({class:j,style:C},R,{role:"cell"}),[X,N])};xR.inheritAttrs=!1;function o8e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wo(e)}const i8e=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:o,headerProps:i,ns:a},{slots:s})=>{const l={columns:e,headerIndex:n},u=[a.e("header-row"),Om(o,l,""),{[a.is("customized")]:Boolean(s.header)}],f={...Om(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return ne(V4e,f,o8e(s)?s:{default:()=>[s]})},hV=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:i}=e,a=Fh(o);if(n.placeholderSign===JO)return ne("div",{class:r.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,f={...e,class:r.e("header-cell-text")},h=qZ(s),m=h?h(f):Xe(t,"default",f,()=>[ne(j3,f,null)]),{sortBy:y,sortState:O,headerCellProps:b}=e;let k,C;if(O){const T=O[n.key];k=Boolean(SR[T]),C=k?T:KO.ASC}else k=n.key===y.key,C=k?y.order:KO.ASC;const P=[r.e("header-cell"),Om(l,e,""),n.align===GO.CENTER&&r.is("align-center"),n.align===GO.RIGHT&&r.is("align-right"),u&&r.is("sortable")],$={...Om(b,e),onClick:n.sortable?i:void 0,class:P,style:a,["data-key"]:n.key};return ne("div",Dn($,{role:"columnheader"}),[m,u&&ne(U4e,{class:[r.e("sort-icon"),k&&r.is("sorting")],sortOrder:C},null)])},eX=(e,{slots:t})=>{var n;return ne("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};eX.displayName="ElTableV2Footer";const tX=(e,{slots:t})=>{const n=Xe(t,"default",{},()=>[ne(iZ,null,null)]);return ne("div",{class:e.class,style:e.style},[n])};tX.displayName="ElTableV2Empty";const nX=(e,{slots:t})=>{var n;return ne("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};nX.displayName="ElTableV2Overlay";function M_(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wo(e)}const a8e="ElTableV2",s8e=xe({name:a8e,props:L4e,setup(e,{slots:t,expose:n}){const r=ut("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:f,rightTableWidth:h,data:m,depthMap:y,expandedRowKeys:O,hasFixedColumns:b,mainTableRef:k,leftTableRef:C,rightTableRef:P,isDynamic:$,isResetting:T,isScrolling:A,bodyWidth:R,emptyStyle:B,rootStyle:I,headerWidth:N,footerHeight:j,showEmpty:L,scrollTo:V,scrollToLeft:X,scrollToTop:oe,scrollToRow:K,getRowHeight:Z,onColumnSorted:re,onRowHeightChange:J,onRowHovered:z,onRowExpanded:q,onRowsRendered:ue,onScroll:he,onVerticalScroll:le}=D4e(e);return n({scrollTo:V,scrollToLeft:X,scrollToTop:oe,scrollToRow:K}),Yn(R3,{ns:r,isResetting:T,isScrolling:A}),()=>{const{cache:ze,cellProps:Ee,estimatedRowHeight:Be,expandColumnKey:Ae,fixedData:_e,headerHeight:ve,headerClass:Ne,headerProps:Se,headerCellProps:fe,sortBy:ye,sortState:He,rowHeight:be,rowClass:Ie,rowEventHandlers:De,rowKey:Me,rowProps:qe,scrollbarAlwaysOn:Oe,indentSize:Je,iconSize:lt,useIsScrolling:Ke,vScrollbarSize:et,width:bt}=e,Ot=v(m),Qt={cache:ze,class:r.e("main"),columns:v(s),data:Ot,fixedData:_e,estimatedRowHeight:Be,bodyWidth:v(R)+et,headerHeight:ve,headerWidth:v(N),height:v(l),mainTableRef:k,rowKey:Me,rowHeight:be,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:et,useIsScrolling:Ke,width:bt,getRowHeight:Z,onRowsRendered:ue,onScroll:he},kt=v(f),an=v(u),Ce={cache:ze,class:r.e("left"),columns:v(i),data:Ot,estimatedRowHeight:Be,leftTableRef:C,rowHeight:be,bodyWidth:kt,headerWidth:kt,headerHeight:ve,height:an,rowKey:Me,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:et,useIsScrolling:Ke,width:kt,getRowHeight:Z,onScroll:le},me=v(h)+et,Ve={cache:ze,class:r.e("right"),columns:v(a),data:Ot,estimatedRowHeight:Be,rightTableRef:P,rowHeight:be,bodyWidth:me,headerWidth:me,headerHeight:ve,height:an,rowKey:Me,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:et,width:me,style:`--${v(r.namespace)}-table-scrollbar-size: ${et}px`,useIsScrolling:Ke,getRowHeight:Z,onScroll:le},ke=v(o),Ze={ns:r,depthMap:v(y),columnsStyles:ke,expandColumnKey:Ae,expandedRowKeys:v(O),estimatedRowHeight:Be,hasFixedColumns:v(b),rowProps:qe,rowClass:Ie,rowKey:Me,rowEventHandlers:De,onRowHovered:z,onRowExpanded:q,onRowHeightChange:J},rt={cellProps:Ee,expandColumnKey:Ae,indentSize:Je,iconSize:lt,rowKey:Me,expandedRowKeys:v(O),ns:r},zt={ns:r,headerClass:Ne,headerProps:Se,columnsStyles:ke},Fn={ns:r,sortBy:ye,sortState:He,headerCellProps:fe,onColumnSorted:re},ot={row:It=>ne(r8e,Dn(It,Ze),{row:t.row,cell:qt=>{let Xt;return t.cell?ne(xR,Dn(qt,rt,{style:ke[qt.column.key]}),M_(Xt=t.cell(qt))?Xt:{default:()=>[Xt]}):ne(xR,Dn(qt,rt,{style:ke[qt.column.key]}),null)}}),header:It=>ne(i8e,Dn(It,zt),{header:t.header,cell:qt=>{let Xt;return t["header-cell"]?ne(hV,Dn(qt,Fn,{style:ke[qt.column.key]}),M_(Xt=t["header-cell"](qt))?Xt:{default:()=>[Xt]}):ne(hV,Dn(qt,Fn,{style:ke[qt.column.key]}),null)}})},Bt=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:v($)}],Sn={class:r.e("footer"),style:v(j)};return ne("div",{class:Bt,style:v(I)},[ne(K4e,Qt,M_(ot)?ot:{default:()=>[ot]}),ne(J4e,Ce,M_(ot)?ot:{default:()=>[ot]}),ne(t8e,Ve,M_(ot)?ot:{default:()=>[ot]}),t.footer&&ne(eX,Sn,{default:t.footer}),v(L)&&ne(tX,{class:r.e("empty"),style:v(B)},{default:t.empty}),t.overlay&&ne(nX,{class:r.e("overlay")},{default:t.overlay})])}}}),l8e=pt({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Le(Function)}}),u8e=xe({name:"ElAutoResizer",props:l8e,setup(e,{slots:t}){const n=ut("auto-resizer"),{height:r,width:o,sizer:i}=I4e(e),a={width:"100%",height:"100%"};return()=>{var s;return ne("div",{ref:i,class:n.b(),style:a},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:o.value})])}}}),c8e=gn(s8e),f8e=gn(u8e),uE=Symbol("tabsRootContextKey"),d8e=pt({tabs:{type:Le(Array),default:()=>xo([])}}),rX="ElTabBar",h8e=xe({name:rX}),p8e=xe({...h8e,props:d8e,setup(e,{expose:t}){const n=e,r=En(),o=$t(uE);o||Ri(rX,"<el-tabs><el-tab-bar /></el-tabs>");const i=ut("tabs"),a=ee(),s=ee(),l=()=>{let f=0,h=0;const m=["top","bottom"].includes(o.props.tabPosition)?"width":"height",y=m==="width"?"x":"y",O=y==="x"?"left":"top";return n.tabs.every(b=>{var k,C;const P=(C=(k=r.parent)==null?void 0:k.refs)==null?void 0:C[`tab-${b.uid}`];if(!P)return!1;if(!b.active)return!0;f=P[`offset${lf(O)}`],h=P[`client${lf(m)}`];const $=window.getComputedStyle(P);return m==="width"&&(h-=Number.parseFloat($.paddingLeft)+Number.parseFloat($.paddingRight),f+=Number.parseFloat($.paddingLeft)),!1}),{[m]:`${h}px`,transform:`translate${lf(y)}(${f}px)`}},u=()=>s.value=l();return at(()=>n.tabs,async()=>{await Wt(),u()},{immediate:!0}),So(a,()=>u()),t({ref:a,update:u}),(f,h)=>(U(),ce("div",{ref_key:"barRef",ref:a,class:G([v(i).e("active-bar"),v(i).is(v(o).props.tabPosition)]),style:Ft(s.value)},null,6))}});var g8e=gt(p8e,[["__file","tab-bar.vue"]]);const m8e=pt({panes:{type:Le(Array),default:()=>xo([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),v8e={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},pV="ElTabNav",y8e=xe({name:pV,props:m8e,emits:v8e,setup(e,{expose:t,emit:n}){const r=$t(uE);r||Ri(pV,"<el-tabs><tab-nav /></el-tabs>");const o=ut("tabs"),i=$se(),a=zse(),s=ee(),l=ee(),u=ee(),f=ee(),h=ee(!1),m=ee(0),y=ee(!1),O=ee(!0),b=W(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),k=W(()=>({transform:`translate${b.value==="width"?"X":"Y"}(-${m.value}px)`})),C=()=>{if(!s.value)return;const I=s.value[`offset${lf(b.value)}`],N=m.value;if(!N)return;const j=N>I?N-I:0;m.value=j},P=()=>{if(!s.value||!l.value)return;const I=l.value[`offset${lf(b.value)}`],N=s.value[`offset${lf(b.value)}`],j=m.value;if(I-j<=N)return;const L=I-j>N*2?j+N:I-N;m.value=L},$=async()=>{const I=l.value;if(!h.value||!u.value||!s.value||!I)return;await Wt();const N=u.value.querySelector(".is-active");if(!N)return;const j=s.value,L=["top","bottom"].includes(r.props.tabPosition),V=N.getBoundingClientRect(),X=j.getBoundingClientRect(),oe=L?I.offsetWidth-X.width:I.offsetHeight-X.height,K=m.value;let Z=K;L?(V.left<X.left&&(Z=K-(X.left-V.left)),V.right>X.right&&(Z=K+V.right-X.right)):(V.top<X.top&&(Z=K-(X.top-V.top)),V.bottom>X.bottom&&(Z=K+(V.bottom-X.bottom))),Z=Math.max(Z,0),m.value=Math.min(Z,oe)},T=()=>{var I;if(!l.value||!s.value)return;e.stretch&&((I=f.value)==null||I.update());const N=l.value[`offset${lf(b.value)}`],j=s.value[`offset${lf(b.value)}`],L=m.value;j<N?(h.value=h.value||{},h.value.prev=L,h.value.next=L+j<N,N-L<j&&(m.value=N-j)):(h.value=!1,L>0&&(m.value=0))},A=I=>{const N=I.code,{up:j,down:L,left:V,right:X}=Yt;if(![j,L,V,X].includes(N))return;const oe=Array.from(I.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),K=oe.indexOf(I.target);let Z;N===V||N===j?K===0?Z=oe.length-1:Z=K-1:K<oe.length-1?Z=K+1:Z=0,oe[Z].focus({preventScroll:!0}),oe[Z].click(),R()},R=()=>{O.value&&(y.value=!0)},B=()=>y.value=!1;return at(i,I=>{I==="hidden"?O.value=!1:I==="visible"&&setTimeout(()=>O.value=!0,50)}),at(a,I=>{I?setTimeout(()=>O.value=!0,50):O.value=!1}),So(u,T),vn(()=>setTimeout(()=>$(),0)),wc(()=>T()),t({scrollToActiveTab:$,removeFocus:B}),()=>{const I=h.value?[ne("span",{class:[o.e("nav-prev"),o.is("disabled",!h.value.prev)],onClick:C},[ne(Lt,null,{default:()=>[ne(sp,null,null)]})]),ne("span",{class:[o.e("nav-next"),o.is("disabled",!h.value.next)],onClick:P},[ne(Lt,null,{default:()=>[ne(Es,null,null)]})])]:null,N=e.panes.map((j,L)=>{var V,X,oe,K;const Z=j.uid,re=j.props.disabled,J=(X=(V=j.props.name)!=null?V:j.index)!=null?X:`${L}`,z=!re&&(j.isClosable||e.editable);j.index=`${L}`;const q=z?ne(Lt,{class:"is-icon-close",onClick:le=>n("tabRemove",j,le)},{default:()=>[ne(Ts,null,null)]}):null,ue=((K=(oe=j.slots).label)==null?void 0:K.call(oe))||j.props.label,he=!re&&j.active?0:-1;return ne("div",{ref:`tab-${Z}`,class:[o.e("item"),o.is(r.props.tabPosition),o.is("active",j.active),o.is("disabled",re),o.is("closable",z),o.is("focus",y.value)],id:`tab-${J}`,key:`tab-${Z}`,"aria-controls":`pane-${J}`,role:"tab","aria-selected":j.active,tabindex:he,onFocus:()=>R(),onBlur:()=>B(),onClick:le=>{B(),n("tabClick",j,J,le)},onKeydown:le=>{z&&(le.code===Yt.delete||le.code===Yt.backspace)&&n("tabRemove",j,le)}},[ue,q])});return ne("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!h.value),o.is(r.props.tabPosition)]},[I,ne("div",{class:o.e("nav-scroll"),ref:s},[ne("div",{class:[o.e("nav"),o.is(r.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:l,style:k.value,role:"tablist",onKeydown:A},[e.type?null:ne(g8e,{ref:f,tabs:[...e.panes]},null),N])])])}}}),b8e=pt({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Le(Function),default:()=>!0},stretch:Boolean}),xA=e=>Gt(e)||tn(e),_8e={[Tn]:e=>xA(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>xA(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>xA(e),tabAdd:()=>!0},O8e=xe({name:"ElTabs",props:b8e,emits:_8e,setup(e,{emit:t,slots:n,expose:r}){var o;const i=ut("tabs"),a=W(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u}=qD(En(),"ElTabPane"),f=ee(),h=ee((o=e.modelValue)!=null?o:"0"),m=async(C,P=!1)=>{var $,T,A;if(!(h.value===C||zo(C)))try{await(($=e.beforeLeave)==null?void 0:$.call(e,C,h.value))!==!1&&(h.value=C,P&&(t(Tn,C),t("tabChange",C)),(A=(T=f.value)==null?void 0:T.removeFocus)==null||A.call(T))}catch{}},y=(C,P,$)=>{C.props.disabled||(m(P,!0),t("tabClick",C,$))},O=(C,P)=>{C.props.disabled||zo(C.props.name)||(P.stopPropagation(),t("edit",C.props.name,"remove"),t("tabRemove",C.props.name))},b=()=>{t("edit",void 0,"add"),t("tabAdd")};at(()=>e.modelValue,C=>m(C)),at(h,async()=>{var C;await Wt(),(C=f.value)==null||C.scrollToActiveTab()}),Yn(uE,{props:e,currentName:h,registerPane:C=>{s.value.push(C)},sortPane:l,unregisterPane:u}),r({currentName:h});const k=({render:C})=>C();return()=>{const C=n["add-icon"],P=e.editable||e.addable?ne("div",{class:[i.e("new-tab"),a.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:b,onKeydown:A=>{A.code===Yt.enter&&b()}},[C?Xe(n,"add-icon"):ne(Lt,{class:i.is("icon-plus")},{default:()=>[ne(oC,null,null)]})]):null,$=ne("div",{class:[i.e("header"),a.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[ne(k,{render:()=>{const A=s.value.some(R=>R.slots.label);return ne(y8e,{ref:f,currentName:h.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:y,onTabRemove:O},{$stable:!A})}},null),P]),T=ne("div",{class:i.e("content")},[Xe(n,"default")]);return ne("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[T,$])}}}),w8e=pt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),oX="ElTabPane",S8e=xe({name:oX}),x8e=xe({...S8e,props:w8e,setup(e){const t=e,n=En(),r=Ui(),o=$t(uE);o||Ri(oX,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=ut("tab-pane"),a=ee(),s=W(()=>t.closable||o.props.closable),l=m5(()=>{var y;return o.currentName.value===((y=t.name)!=null?y:a.value)}),u=ee(l.value),f=W(()=>{var y;return(y=t.name)!=null?y:a.value}),h=m5(()=>!t.lazy||u.value||l.value);at(l,y=>{y&&(u.value=!0)});const m=or({uid:n.uid,slots:r,props:t,paneName:f,active:l,index:a,isClosable:s});return o.registerPane(m),vn(()=>{o.sortPane(m)}),Sp(()=>{o.unregisterPane(m.uid)}),(y,O)=>v(h)?bn((U(),ce("div",{key:0,id:`pane-${v(f)}`,class:G(v(i).b()),role:"tabpanel","aria-hidden":!v(l),"aria-labelledby":`tab-${v(f)}`},[Xe(y.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[gr,v(l)]]):Fe("v-if",!0)}});var iX=gt(x8e,[["__file","tab-pane.vue"]]);const cE=gn(O8e,{TabPane:iX}),fE=Co(iX),k8e=pt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:$f,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),C8e=xe({name:"ElText"}),E8e=xe({...C8e,props:k8e,setup(e){const t=e,n=wi(),r=ut("text"),o=W(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated),r.is("line-clamp",!zo(t.lineClamp))]);return(i,a)=>(U(),Qe(jn(i.tag),{class:G(v(o)),style:Ft({"-webkit-line-clamp":i.lineClamp})},{default:se(()=>[Xe(i.$slots,"default")]),_:3},8,["class","style"]))}});var T8e=gt(E8e,[["__file","text.vue"]]);const U1=gn(T8e),P8e=pt({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:Le(String),default:"light"},clearable:{type:Boolean,default:!0},size:Ni,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:Le([String,Object]),default:()=>PY},clearIcon:{type:Le([String,Object]),default:()=>$p},...C0}),gd=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},kA=(e,t)=>{const n=gd(e);if(!n)return-1;const r=gd(t);if(!r)return-1;const o=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return o===i?0:o>i?1:-1},gV=e=>`${e}`.padStart(2,"0"),ly=e=>`${gV(e.hours)}:${gV(e.minutes)}`,$8e=(e,t)=>{const n=gd(e);if(!n)return"";const r=gd(t);if(!r)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=r.minutes,o.hours+=r.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,ly(o)},A8e=xe({name:"ElTimeSelect"}),M8e=xe({...A8e,props:P8e,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;cn.extend(o3);const{Option:r}=bc,o=ut("input"),i=ee(),a=Ls(),{lang:s}=ir(),l=W(()=>n.modelValue),u=W(()=>{const C=gd(n.start);return C?ly(C):null}),f=W(()=>{const C=gd(n.end);return C?ly(C):null}),h=W(()=>{const C=gd(n.step);return C?ly(C):null}),m=W(()=>{const C=gd(n.minTime||"");return C?ly(C):null}),y=W(()=>{const C=gd(n.maxTime||"");return C?ly(C):null}),O=W(()=>{const C=[];if(n.start&&n.end&&n.step){let P=u.value,$;for(;P&&f.value&&kA(P,f.value)<=0;)$=cn(P,"HH:mm").locale(s.value).format(n.format),C.push({value:$,disabled:kA(P,m.value||"-1:-1")<=0||kA(P,y.value||"100:100")>=0}),P=$8e(P,h.value)}return C});return t({blur:()=>{var C,P;(P=(C=i.value)==null?void 0:C.blur)==null||P.call(C)},focus:()=>{var C,P;(P=(C=i.value)==null?void 0:C.focus)==null||P.call(C)}}),(C,P)=>(U(),Qe(v(bc),{ref_key:"select",ref:i,"model-value":v(l),disabled:v(a),clearable:C.clearable,"clear-icon":C.clearIcon,size:C.size,effect:C.effect,placeholder:C.placeholder,"default-first-option":"",filterable:C.editable,"empty-values":C.emptyValues,"value-on-clear":C.valueOnClear,"onUpdate:modelValue":$=>C.$emit("update:modelValue",$),onChange:$=>C.$emit("change",$),onBlur:$=>C.$emit("blur",$),onFocus:$=>C.$emit("focus",$),onClear:()=>C.$emit("clear")},{prefix:se(()=>[C.prefixIcon?(U(),Qe(v(Lt),{key:0,class:G(v(o).e("prefix-icon"))},{default:se(()=>[(U(),Qe(jn(C.prefixIcon)))]),_:1},8,["class"])):Fe("v-if",!0)]),default:se(()=>[(U(!0),ce(Pt,null,_n(v(O),$=>(U(),Qe(v(r),{key:$.value,label:$.value,value:$.value,disabled:$.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var R8e=gt(M8e,[["__file","time-select.vue"]]);const N8e=gn(R8e),I8e=xe({name:"ElTimeline",setup(e,{slots:t}){const n=ut("timeline");return Yn("timeline",t),()=>Ht("ul",{class:[n.b()]},[Xe(t,"default")])}}),D8e=pt({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Wr},hollow:Boolean}),j8e=xe({name:"ElTimelineItem"}),L8e=xe({...j8e,props:D8e,setup(e){const t=e,n=ut("timeline-item"),r=W(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(o,i)=>(U(),ce("li",{class:G([v(n).b(),{[v(n).e("center")]:o.center}])},[ge("div",{class:G(v(n).e("tail"))},null,2),o.$slots.dot?Fe("v-if",!0):(U(),ce("div",{key:0,class:G(v(r)),style:Ft({backgroundColor:o.color})},[o.icon?(U(),Qe(v(Lt),{key:0,class:G(v(n).e("icon"))},{default:se(()=>[(U(),Qe(jn(o.icon)))]),_:1},8,["class"])):Fe("v-if",!0)],6)),o.$slots.dot?(U(),ce("div",{key:1,class:G(v(n).e("dot"))},[Xe(o.$slots,"dot")],2)):Fe("v-if",!0),ge("div",{class:G(v(n).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(U(),ce("div",{key:0,class:G([v(n).e("timestamp"),v(n).is("top")])},ct(o.timestamp),3)):Fe("v-if",!0),ge("div",{class:G(v(n).e("content"))},[Xe(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(U(),ce("div",{key:1,class:G([v(n).e("timestamp"),v(n).is("bottom")])},ct(o.timestamp),3)):Fe("v-if",!0)],2)],2))}});var aX=gt(L8e,[["__file","timeline-item.vue"]]);const B8e=gn(I8e,{TimelineItem:aX}),V8e=Co(aX),sX=pt({nowrap:Boolean});var lX=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(lX||{});const F8e=Object.values(lX),B3=pt({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Le(Object),default:null}}),z8e=pt({side:{type:Le(String),values:F8e,required:!0}}),Q8e=["absolute","fixed"],W8e=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],V3=pt({arrowPadding:{type:Le(Number),default:5},effect:{type:Le(String),default:"light"},contentClass:String,placement:{type:Le(String),values:W8e,default:"bottom"},reference:{type:Le(Object),default:null},offset:{type:Number,default:8},strategy:{type:Le(String),values:Q8e,default:"absolute"},showArrow:Boolean,...va(["ariaLabel"])}),F3=pt({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Le(Function)},"onUpdate:open":{type:Le(Function)}}),ny={type:Le(Function)},z3=pt({onBlur:ny,onClick:ny,onFocus:ny,onMouseDown:ny,onMouseEnter:ny,onMouseLeave:ny}),Y8e=pt({...F3,...B3,...z3,...V3,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Le(Object),default:null},teleported:Boolean,to:{type:Le(String),default:"body"}}),dE=Symbol("tooltipV2"),uX=Symbol("tooltipV2Content"),CA="tooltip_v2.open",U8e=xe({name:"ElTooltipV2Root"}),H8e=xe({...U8e,props:F3,setup(e,{expose:t}){const n=e,r=ee(n.defaultOpen),o=ee(null),i=W({get:()=>mm(n.open)?r.value:n.open,set:k=>{var C;r.value=k,(C=n["onUpdate:open"])==null||C.call(n,k)}}),a=W(()=>tn(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=dm(()=>{i.value=!0},W(()=>n.delayDuration),{immediate:!1}),u=ut("tooltip-v2"),f=Fa(),h=()=>{l(),i.value=!0},m=()=>{v(a)?s():h()},y=h,O=()=>{l(),i.value=!1};return at(i,k=>{var C;k&&(document.dispatchEvent(new CustomEvent(CA)),y()),(C=n.onOpenChange)==null||C.call(n,k)}),vn(()=>{document.addEventListener(CA,O)}),qr(()=>{l(),document.removeEventListener(CA,O)}),Yn(dE,{contentId:f,triggerRef:o,ns:u,onClose:O,onDelayOpen:m,onOpen:y}),t({onOpen:y,onClose:O}),(k,C)=>Xe(k.$slots,"default",{open:v(i)})}});var Z8e=gt(H8e,[["__file","root.vue"]]);const X8e=xe({name:"ElTooltipV2Arrow"}),q8e=xe({...X8e,props:{...B3,...z8e},setup(e){const t=e,{ns:n}=$t(dE),{arrowRef:r}=$t(uX),o=W(()=>{const{style:i,width:a,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${a}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:a/2-1,...i||{}}});return(i,a)=>(U(),ce("span",{ref_key:"arrowRef",ref:r,style:Ft(v(o)),class:G(v(n).e("arrow"))},null,6))}});var mV=gt(q8e,[["__file","arrow.vue"]]);const K8e=pt({style:{type:Le([String,Object,Array]),default:()=>({})}}),G8e=xe({name:"ElVisuallyHidden"}),J8e=xe({...G8e,props:K8e,setup(e){const t=e,n=W(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,o)=>(U(),ce("span",Dn(r.$attrs,{style:v(n)}),[Xe(r.$slots,"default")],16))}});var eLe=gt(J8e,[["__file","visual-hidden.vue"]]);const tLe=xe({name:"ElTooltipV2Content"}),nLe=xe({...tLe,props:{...V3,...sX},setup(e){const t=e,{triggerRef:n,contentId:r}=$t(dE),o=ee(t.placement),i=ee(t.strategy),a=ee(null),{referenceRef:s,contentRef:l,middlewareData:u,x:f,y:h,update:m}=Zke({placement:o,strategy:i,middleware:W(()=>{const $=[sU(t.offset)];return t.showArrow&&$.push(Xke({arrowRef:a})),$})}),y=k0().nextZIndex(),O=ut("tooltip-v2"),b=W(()=>o.value.split("-")[0]),k=W(()=>({position:v(i),top:`${v(h)||0}px`,left:`${v(f)||0}px`,zIndex:y})),C=W(()=>{if(!t.showArrow)return{};const{arrow:$}=v(u);return{[`--${O.namespace.value}-tooltip-v2-arrow-x`]:`${$==null?void 0:$.x}px`||"",[`--${O.namespace.value}-tooltip-v2-arrow-y`]:`${$==null?void 0:$.y}px`||""}}),P=W(()=>[O.e("content"),O.is("dark",t.effect==="dark"),O.is(v(i)),t.contentClass]);return at(a,()=>m()),at(()=>t.placement,$=>o.value=$),vn(()=>{at(()=>t.reference||n.value,$=>{s.value=$||void 0},{immediate:!0})}),Yn(uX,{arrowRef:a}),($,T)=>(U(),ce("div",{ref_key:"contentRef",ref:l,style:Ft(v(k)),"data-tooltip-v2-root":""},[$.nowrap?Fe("v-if",!0):(U(),ce("div",{key:0,"data-side":v(b),class:G(v(P))},[Xe($.$slots,"default",{contentStyle:v(k),contentClass:v(P)}),ne(v(eLe),{id:v(r),role:"tooltip"},{default:se(()=>[$.ariaLabel?(U(),ce(Pt,{key:0},[xt(ct($.ariaLabel),1)],64)):Xe($.$slots,"default",{key:1})]),_:3},8,["id"]),Xe($.$slots,"arrow",{style:Ft(v(C)),side:v(b)})],10,["data-side"]))],4))}});var vV=gt(nLe,[["__file","content.vue"]]);const rLe=pt({setRef:{type:Le(Function),required:!0},onlyChild:Boolean});var oLe=xe({props:rLe,setup(e,{slots:t}){const n=ee(),r=H2(n,o=>{o?e.setRef(o.nextElementSibling):e.setRef(null)});return()=>{var o;const[i]=((o=t.default)==null?void 0:o.call(t))||[],a=e.onlyChild?USe(i.children):i.children;return ne(Pt,{ref:r},[a])}}});const iLe=xe({name:"ElTooltipV2Trigger"}),aLe=xe({...iLe,props:{...sX,...z3},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:i,contentId:a}=$t(dE);let s=!1;const l=P=>{i.value=P},u=()=>{s=!1},f=Fo(t.onMouseEnter,o),h=Fo(t.onMouseLeave,n),m=Fo(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),y=Fo(t.onFocus,()=>{s||r()}),O=Fo(t.onBlur,n),b=Fo(t.onClick,P=>{P.detail===0&&n()}),k={blur:O,click:b,focus:y,mousedown:m,mouseenter:f,mouseleave:h},C=(P,$,T)=>{P&&Object.entries($).forEach(([A,R])=>{P[T](A,R)})};return at(i,(P,$)=>{C(P,k,"addEventListener"),C($,k,"removeEventListener"),P&&P.setAttribute("aria-describedby",a.value)}),qr(()=>{C(i.value,k,"removeEventListener"),document.removeEventListener("mouseup",u)}),(P,$)=>P.nowrap?(U(),Qe(v(oLe),{key:0,"set-ref":l,"only-child":""},{default:se(()=>[Xe(P.$slots,"default")]),_:3})):(U(),ce("button",Dn({key:1,ref_key:"triggerRef",ref:i},P.$attrs),[Xe(P.$slots,"default")],16))}});var sLe=gt(aLe,[["__file","trigger.vue"]]);const lLe=xe({name:"ElTooltipV2"}),uLe=xe({...lLe,props:Y8e,setup(e){const n=ra(e),r=or(_u(n,Object.keys(B3))),o=or(_u(n,Object.keys(V3))),i=or(_u(n,Object.keys(F3))),a=or(_u(n,Object.keys(z3)));return(s,l)=>(U(),Qe(Z8e,fc(tp(i)),{default:se(({open:u})=>[ne(sLe,Dn(a,{nowrap:""}),{default:se(()=>[Xe(s.$slots,"trigger")]),_:3},16),ne(v(E0),{to:s.to,disabled:!s.teleported},{default:se(()=>[s.fullTransition?(U(),Qe(Mi,fc(Dn({key:0},s.transitionProps)),{default:se(()=>[s.alwaysOn||u?(U(),Qe(vV,fc(Dn({key:0},o)),{arrow:se(({style:f,side:h})=>[s.showArrow?(U(),Qe(mV,Dn({key:0},r,{style:f,side:h}),null,16,["style","side"])):Fe("v-if",!0)]),default:se(()=>[Xe(s.$slots,"default")]),_:3},16)):Fe("v-if",!0)]),_:2},1040)):(U(),ce(Pt,{key:1},[s.alwaysOn||u?(U(),Qe(vV,fc(Dn({key:0},o)),{arrow:se(({style:f,side:h})=>[s.showArrow?(U(),Qe(mV,Dn({key:0},r,{style:f,side:h}),null,16,["style","side"])):Fe("v-if",!0)]),default:se(()=>[Xe(s.$slots,"default")]),_:3},16)):Fe("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var cLe=gt(uLe,[["__file","tooltip.vue"]]);const fLe=gn(cLe),cX="left-check-change",fX="right-check-change",uy=pt({data:{type:Le(Array),default:()=>[]},titles:{type:Le(Array),default:()=>[]},buttonTexts:{type:Le(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:Le(Function)},leftDefaultChecked:{type:Le(Array),default:()=>[]},rightDefaultChecked:{type:Le(Array),default:()=>[]},renderContent:{type:Le(Function)},modelValue:{type:Le(Array),default:()=>[]},format:{type:Le(Object),default:()=>({})},filterable:Boolean,props:{type:Le(Object),default:()=>xo({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),kR=(e,t)=>[e,t].every(Et)||Et(e)&&Wi(t),dLe={[uo]:(e,t,n)=>[e,n].every(Et)&&["left","right"].includes(t),[Tn]:e=>Et(e),[cX]:kR,[fX]:kR},CR="checked-change",hLe=pt({data:uy.data,optionRender:{type:Le(Function)},placeholder:String,title:String,filterable:Boolean,format:uy.format,filterMethod:uy.filterMethod,defaultChecked:uy.leftDefaultChecked,props:uy.props}),pLe={[CR]:kR},H1=e=>{const t={label:"label",key:"key",disabled:"disabled"};return W(()=>({...t,...e.props}))},gLe=(e,t,n)=>{const r=H1(e),o=W(()=>e.data.filter(f=>rn(e.filterMethod)?e.filterMethod(t.query,f):String(f[r.value.label]||f[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=W(()=>o.value.filter(f=>!f[r.value.disabled])),a=W(()=>{const f=t.checked.length,h=e.data.length,{noChecked:m,hasChecked:y}=e.format;return m&&y?f>0?y.replace(/\${checked}/g,f.toString()).replace(/\${total}/g,h.toString()):m.replace(/\${total}/g,h.toString()):`${f}/${h}`}),s=W(()=>{const f=t.checked.length;return f>0&&f<i.value.length}),l=()=>{const f=i.value.map(h=>h[r.value.key]);t.allChecked=f.length>0&&f.every(h=>t.checked.includes(h))},u=f=>{t.checked=f?i.value.map(h=>h[r.value.key]):[]};return at(()=>t.checked,(f,h)=>{if(l(),t.checkChangeByUser){const m=f.concat(h).filter(y=>!f.includes(y)||!h.includes(y));n(CR,f,m)}else n(CR,f),t.checkChangeByUser=!0}),at(i,()=>{l()}),at(()=>e.data,()=>{const f=[],h=o.value.map(m=>m[r.value.key]);t.checked.forEach(m=>{h.includes(m)&&f.push(m)}),t.checkChangeByUser=!1,t.checked=f}),at(()=>e.defaultChecked,(f,h)=>{if(h&&f.length===h.length&&f.every(O=>h.includes(O)))return;const m=[],y=i.value.map(O=>O[r.value.key]);f.forEach(O=>{y.includes(O)&&m.push(O)}),t.checkChangeByUser=!1,t.checked=m},{immediate:!0}),{filteredData:o,checkableData:i,checkedSummary:a,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},mLe=(e,t)=>({onSourceCheckedChange:(o,i)=>{e.leftChecked=o,i&&t(cX,o,i)},onTargetCheckedChange:(o,i)=>{e.rightChecked=o,i&&t(fX,o,i)}}),vLe=e=>{const t=H1(e),n=W(()=>e.data.reduce((i,a)=>(i[a[t.value.key]]=a)&&i,{})),r=W(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),o=W(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,a)=>{const s=n.value[a];return s&&i.push(s),i},[]));return{sourceData:r,targetData:o}},yLe=(e,t,n)=>{const r=H1(e),o=(s,l,u)=>{n(Tn,s),n(uo,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const f=u[r.value.key];return t.leftChecked.includes(f)&&!e.modelValue.includes(f)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),o(s,"right",t.leftChecked)}}},bLe=xe({name:"ElTransferPanel"}),_Le=xe({...bLe,props:hLe,emits:pLe,setup(e,{expose:t,emit:n}){const r=e,o=Ui(),i=({option:$})=>$,{t:a}=ir(),s=ut("transfer"),l=or({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=H1(r),{filteredData:f,checkedSummary:h,isIndeterminate:m,handleAllCheckedChange:y}=gLe(r,l,n),O=W(()=>!vu(l.query)&&vu(f.value)),b=W(()=>!vu(o.default()[0].children)),{checked:k,allChecked:C,query:P}=ra(l);return t({query:P}),($,T)=>(U(),ce("div",{class:G(v(s).b("panel"))},[ge("p",{class:G(v(s).be("panel","header"))},[ne(v(Hl),{modelValue:v(C),"onUpdate:modelValue":A=>no(C)?C.value=A:null,indeterminate:v(m),"validate-event":!1,onChange:v(y)},{default:se(()=>[xt(ct($.title)+" ",1),ge("span",null,ct(v(h)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),ge("div",{class:G([v(s).be("panel","body"),v(s).is("with-footer",v(b))])},[$.filterable?(U(),Qe(v(ri),{key:0,modelValue:v(P),"onUpdate:modelValue":A=>no(P)?P.value=A:null,class:G(v(s).be("panel","filter")),size:"default",placeholder:$.placeholder,"prefix-icon":v(RY),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):Fe("v-if",!0),bn(ne(v(vH),{modelValue:v(k),"onUpdate:modelValue":A=>no(k)?k.value=A:null,"validate-event":!1,class:G([v(s).is("filterable",$.filterable),v(s).be("panel","list")])},{default:se(()=>[(U(!0),ce(Pt,null,_n(v(f),A=>(U(),Qe(v(Hl),{key:A[v(u).key],class:G(v(s).be("panel","item")),value:A[v(u).key],disabled:A[v(u).disabled],"validate-event":!1},{default:se(()=>{var R;return[ne(i,{option:(R=$.optionRender)==null?void 0:R.call($,A)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[gr,!v(O)&&!v(vu)($.data)]]),bn(ge("p",{class:G(v(s).be("panel","empty"))},ct(v(O)?v(a)("el.transfer.noMatch"):v(a)("el.transfer.noData")),3),[[gr,v(O)||v(vu)($.data)]])],2),v(b)?(U(),ce("p",{key:0,class:G(v(s).be("panel","footer"))},[Xe($.$slots,"default")],2)):Fe("v-if",!0)],2))}});var yV=gt(_Le,[["__file","transfer-panel.vue"]]);const OLe=xe({name:"ElTransfer"}),wLe=xe({...OLe,props:uy,emits:dLe,setup(e,{expose:t,emit:n}){const r=e,o=Ui(),{t:i}=ir(),a=ut("transfer"),{formItem:s}=cs(),l=or({leftChecked:[],rightChecked:[]}),u=H1(r),{sourceData:f,targetData:h}=vLe(r),{onSourceCheckedChange:m,onTargetCheckedChange:y}=mLe(l,n),{addToLeft:O,addToRight:b}=yLe(r,l,n),k=ee(),C=ee(),P=I=>{switch(I){case"left":k.value.query="";break;case"right":C.value.query="";break}},$=W(()=>r.buttonTexts.length===2),T=W(()=>r.titles[0]||i("el.transfer.titles.0")),A=W(()=>r.titles[1]||i("el.transfer.titles.1")),R=W(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));at(()=>r.modelValue,()=>{var I;r.validateEvent&&((I=s==null?void 0:s.validate)==null||I.call(s,"change").catch(N=>void 0))});const B=W(()=>I=>r.renderContent?r.renderContent(Ht,I):o.default?o.default({option:I}):Ht("span",I[u.value.label]||I[u.value.key]));return t({clearQuery:P,leftPanel:k,rightPanel:C}),(I,N)=>(U(),ce("div",{class:G(v(a).b())},[ne(yV,{ref_key:"leftPanel",ref:k,data:v(f),"option-render":v(B),placeholder:v(R),title:v(T),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,"default-checked":I.leftDefaultChecked,props:r.props,onCheckedChange:v(m)},{default:se(()=>[Xe(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),ge("div",{class:G(v(a).e("buttons"))},[ne(v(io),{type:"primary",class:G([v(a).e("button"),v(a).is("with-texts",v($))]),disabled:v(vu)(l.rightChecked),onClick:v(O)},{default:se(()=>[ne(v(Lt),null,{default:se(()=>[ne(v(sp))]),_:1}),v(zo)(I.buttonTexts[0])?Fe("v-if",!0):(U(),ce("span",{key:0},ct(I.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),ne(v(io),{type:"primary",class:G([v(a).e("button"),v(a).is("with-texts",v($))]),disabled:v(vu)(l.leftChecked),onClick:v(b)},{default:se(()=>[v(zo)(I.buttonTexts[1])?Fe("v-if",!0):(U(),ce("span",{key:0},ct(I.buttonTexts[1]),1)),ne(v(Lt),null,{default:se(()=>[ne(v(Es))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),ne(yV,{ref_key:"rightPanel",ref:C,data:v(h),"option-render":v(B),placeholder:v(R),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,title:v(A),"default-checked":I.rightDefaultChecked,props:r.props,onCheckedChange:v(y)},{default:se(()=>[Xe(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var SLe=gt(wLe,[["__file","transfer.vue"]]);const xLe=gn(SLe),$y="$treeNodeId",bV=function(e,t){!t||t[$y]||Object.defineProperty(t,$y,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Q3=function(e,t){return e?t[e]:t[$y]},ER=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},TR=e=>{let t=!0,n=!0,r=!0;for(let o=0,i=e.length;o<i;o++){const a=e[o];(a.checked!==!0||a.indeterminate)&&(t=!1,a.disabled||(r=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},Q_=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=TR(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const o=e.parent;!o||o.level===0||e.store.checkStrictly||Q_(o)},Dx=function(e,t){const n=e.store.props,r=e.data||{},o=n[t];if(typeof o=="function")return o(r,e);if(typeof o=="string")return r[o];if(typeof o=="undefined"){const i=r[t];return i===void 0?"":i}};let kLe=0;class sm{constructor(t){this.id=kLe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)sr(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf!="undefined"){const i=Dx(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Array.isArray(this.data)||bV(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,o=t.key;o&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||bV(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Dx(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return Dx(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Dx(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof sm)){if(!r){const o=this.getChildren(!0);o.includes(t.data)||(typeof n=="undefined"||n<0?o.push(t.data):o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=or(new sm(t)),t instanceof sm&&t.initialize()}t.level=this.level+1,typeof n=="undefined"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let o=this.parent;for(;o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(o=>{o.canFocus=!0})};this.shouldLoadData()?this.loadData(o=>{Array.isArray(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Q_(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:s}=TR(this.childNodes);!this.isLeaf&&!a&&s&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let m=0,y=u.length;m<y;m++){const O=u[m];o=o||t!==!1;const b=O.disabled?O.checked:o;O.setChecked(b,n,!0,o)}const{half:f,all:h}=TR(u);h||(this.checked=h,this.indeterminate=f)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Q_(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||Q_(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),n[o]===void 0&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},o=[];t.forEach((i,a)=>{const s=i[$y];!!s&&n.findIndex(u=>u[$y]===s)>=0?r[s]={index:a,data:i}:o.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{r[i[$y]]||this.removeChildByData(i)}),o.forEach(({index:i,data:a})=>{this.insertChild({data:a},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},o=()=>{this.loading=!1};this.store.load(this,r,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),t(r)}}reInitChecked(){this.store.checkStrictly||Q_(this)}}class CLe{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)sr(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new sm({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,o=function(i){const a=i.root?i.root.childNodes:i.childNodes;if(a.forEach(s=>{s.visible=n.call(s,t,s.data,s),o(s)}),!i.visible&&a.length){let s=!0;s=!a.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}!t||i.visible&&!i.isLeaf&&(!r||i.loaded)&&i.expand()};o(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof sm)return t;const n=$n(t)?Q3(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=mm(n)?this.root:this.getNode(n);r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],o=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)sr(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const o=r.childNodes;for(let i=o.length-1;i>=0;i--){const a=o[i];this.remove(a.data)}for(let i=0,a=n.length;i<a;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const o=this._getAllNodes().sort((l,u)=>l.level-u.level),i=Object.create(null),a=Object.keys(r);o.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var f;i[u.data[t]]=!0,(f=u.childNodes)!=null&&f.length&&s(u)})};for(let l=0,u=o.length;l<u;l++){const f=o[l],h=f.data[t].toString();if(!a.includes(h)){f.checked&&!i[h]&&f.setChecked(!1,!1);continue}if(f.childNodes.length&&s(f),f.isLeaf||this.checkStrictly){f.setChecked(!0,!1);continue}if(f.setChecked(!0,!0),n){f.setChecked(!1,!1);const y=function(O){O.childNodes.forEach(k=>{k.isLeaf||k.setChecked(!1,!1),y(k)})};y(f)}}}setCheckedNodes(t,n=!1){const r=this.key,o={};t.forEach(i=>{o[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,o)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,o={};t.forEach(i=>{o[i]=!0}),this._setCheckedKeys(r,n,o)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const o=this.getNode(t);o&&o.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],o=this.nodesMap[r];this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const ELe=xe({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ut("tree"),n=$t("NodeInstance"),r=$t("RootTree");return()=>{const o=e.node,{data:i,store:a}=o;return e.renderContent?e.renderContent(Ht,{_self:n,node:o,data:i,store:a}):Xe(r.ctx.slots,"default",{node:o,data:i},()=>[Ht("span",{class:t.be("node","label")},[o.label])])}}});var TLe=gt(ELe,[["__file","tree-node-content.vue"]]);function dX(e){const t=$t("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),Yn("TreeNodeMap",n),{broadcastExpanded:r=>{if(!!e.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const hX=Symbol("dragEvents");function PLe({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const i=ut("tree"),a=ee({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Yn(hX,{treeNodeDragStart:({event:f,treeNode:h})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(h.node))return f.preventDefault(),!1;f.dataTransfer.effectAllowed="move";try{f.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=h,t.emit("node-drag-start",h.node,f)},treeNodeDragOver:({event:f,treeNode:h})=>{const m=h,y=a.value.dropNode;y&&y.node.id!==m.node.id&&ls(y.$el,i.is("drop-inner"));const O=a.value.draggingNode;if(!O||!m)return;let b=!0,k=!0,C=!0,P=!0;typeof e.allowDrop=="function"&&(b=e.allowDrop(O.node,m.node,"prev"),P=k=e.allowDrop(O.node,m.node,"inner"),C=e.allowDrop(O.node,m.node,"next")),f.dataTransfer.dropEffect=k||b||C?"move":"none",(b||k||C)&&(y==null?void 0:y.node.id)!==m.node.id&&(y&&t.emit("node-drag-leave",O.node,y.node,f),t.emit("node-drag-enter",O.node,m.node,f)),b||k||C?a.value.dropNode=m:a.value.dropNode=null,m.node.nextSibling===O.node&&(C=!1),m.node.previousSibling===O.node&&(b=!1),m.node.contains(O.node,!1)&&(k=!1),(O.node===m.node||O.node.contains(m.node))&&(b=!1,k=!1,C=!1);const $=m.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),T=n.value.getBoundingClientRect();let A;const R=b?k?.25:C?.45:1:-1,B=C?k?.75:b?.55:0:1;let I=-9999;const N=f.clientY-$.top;N<$.height*R?A="before":N>$.height*B?A="after":k?A="inner":A="none";const j=m.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),L=r.value;A==="before"?I=j.top-T.top:A==="after"&&(I=j.bottom-T.top),L.style.top=`${I}px`,L.style.left=`${j.right-T.left}px`,A==="inner"?Ou(m.$el,i.is("drop-inner")):ls(m.$el,i.is("drop-inner")),a.value.showDropIndicator=A==="before"||A==="after",a.value.allowDrop=a.value.showDropIndicator||P,a.value.dropType=A,t.emit("node-drag-over",O.node,m.node,f)},treeNodeDragEnd:f=>{const{draggingNode:h,dropType:m,dropNode:y}=a.value;if(f.preventDefault(),f.dataTransfer.dropEffect="move",h&&y){const O={data:h.node.data};m!=="none"&&h.node.remove(),m==="before"?y.node.parent.insertBefore(O,y.node):m==="after"?y.node.parent.insertAfter(O,y.node):m==="inner"&&y.node.insertChild(O),m!=="none"&&(o.value.registerNode(O),o.value.key&&h.node.eachNode(b=>{var k;(k=o.value.nodesMap[b.data[o.value.key]])==null||k.setChecked(b.checked,!o.value.checkStrictly)})),ls(y.$el,i.is("drop-inner")),t.emit("node-drag-end",h.node,y.node,m,f),m!=="none"&&t.emit("node-drop",h.node,y.node,m,f)}h&&!y&&t.emit("node-drag-end",h.node,null,m,f),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const $Le=xe({name:"ElTreeNode",components:{ElCollapseTransition:oE,ElCheckbox:Hl,NodeContent:TLe,ElIcon:Lt,Loading:yf},props:{node:{type:sm,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=ut("tree"),{broadcastExpanded:r}=dX(e),o=$t("RootTree"),i=ee(!1),a=ee(!1),s=ee(null),l=ee(null),u=ee(null),f=$t(hX),h=En();Yn("NodeInstance",h),e.node.expanded&&(i.value=!0,a.value=!0);const m=o.props.props.children||"children";at(()=>{const N=e.node.data[m];return N&&[...N]},()=>{e.node.updateChildren()}),at(()=>e.node.indeterminate,N=>{b(e.node.checked,N)}),at(()=>e.node.checked,N=>{b(N,e.node.indeterminate)}),at(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),at(()=>e.node.expanded,N=>{Wt(()=>i.value=N),N&&(a.value=!0)});const y=N=>Q3(o.props.nodeKey,N.data),O=N=>{const j=e.props.class;if(!j)return{};let L;if(rn(j)){const{data:V}=N;L=j(V,N)}else L=j;return Gt(L)?{[L]:!0}:L},b=(N,j)=>{(s.value!==N||l.value!==j)&&o.ctx.emit("check-change",e.node.data,N,j),s.value=N,l.value=j},k=N=>{ER(o.store,o.ctx.emit,()=>o.store.value.setCurrentNode(e.node)),o.currentNode.value=e.node,o.props.expandOnClickNode&&P(),o.props.checkOnClickNode&&!e.node.disabled&&$(null,{target:{checked:!e.node.checked}}),o.ctx.emit("node-click",e.node.data,e.node,h,N)},C=N=>{o.instance.vnode.props.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),o.ctx.emit("node-contextmenu",N,e.node.data,e.node,h)},P=()=>{e.node.isLeaf||(i.value?(o.ctx.emit("node-collapse",e.node.data,e.node,h),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,h)))},$=(N,j)=>{e.node.setChecked(j.target.checked,!o.props.checkStrictly),Wt(()=>{const L=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:o,expanded:i,childNodeRendered:a,oldChecked:s,oldIndeterminate:l,getNodeKey:y,getNodeClass:O,handleSelectChange:b,handleClick:k,handleContextMenu:C,handleExpandIconClick:P,handleCheckChange:$,handleChildNodeExpand:(N,j,L)=>{r(j),o.ctx.emit("node-expand",N,j,L)},handleDragStart:N=>{!o.props.draggable||f.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),o.props.draggable&&f.treeNodeDragOver({event:N,treeNode:{$el:u.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{!o.props.draggable||f.treeNodeDragEnd(N)},CaretRight:xD}}});function ALe(e,t,n,r,o,i){const a=Pn("el-icon"),s=Pn("el-checkbox"),l=Pn("loading"),u=Pn("node-content"),f=Pn("el-tree-node"),h=Pn("el-collapse-transition");return bn((U(),ce("div",{ref:"node$",class:G([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:nn(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:nn(e.handleDragStart,["stop"]),onDragover:nn(e.handleDragOver,["stop"]),onDragend:nn(e.handleDragEnd,["stop"]),onDrop:nn(e.handleDrop,["stop"])},[ge("div",{class:G(e.ns.be("node","content")),style:Ft({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(U(),Qe(a,{key:0,class:G([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:nn(e.handleExpandIconClick,["stop"])},{default:se(()=>[(U(),Qe(jn(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):Fe("v-if",!0),e.showCheckbox?(U(),Qe(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:nn(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):Fe("v-if",!0),e.node.loading?(U(),Qe(a,{key:2,class:G([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:se(()=>[ne(l)]),_:1},8,["class"])):Fe("v-if",!0),ne(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),ne(h,null,{default:se(()=>[!e.renderAfterExpand||e.childNodeRendered?bn((U(),ce("div",{key:0,class:G(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(U(!0),ce(Pt,null,_n(e.node.childNodes,m=>(U(),Qe(f,{key:e.getNodeKey(m),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:m,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded"])),[[gr,e.expanded]]):Fe("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[gr,e.node.visible]])}var MLe=gt($Le,[["render",ALe],["__file","tree-node.vue"]]);function RLe({el$:e},t){const n=ut("tree"),r=to([]),o=to([]);vn(()=>{a()}),wc(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),at(o,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),Nr(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const f=r.value.indexOf(l);let h;if([Yt.up,Yt.down].includes(u)){if(s.preventDefault(),u===Yt.up){h=f===-1?0:f!==0?f-1:r.value.length-1;const y=h;for(;!t.value.getNode(r.value[h].dataset.key).canFocus;){if(h--,h===y){h=-1;break}h<0&&(h=r.value.length-1)}}else{h=f===-1?0:f<r.value.length-1?f+1:0;const y=h;for(;!t.value.getNode(r.value[h].dataset.key).canFocus;){if(h++,h===y){h=-1;break}h>=r.value.length&&(h=0)}}h!==-1&&r.value[h].focus()}[Yt.left,Yt.right].includes(u)&&(s.preventDefault(),l.click());const m=l.querySelector('[type="checkbox"]');[Yt.enter,Yt.space].includes(u)&&m&&(s.preventDefault(),m.click())});const a=()=>{var s;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const NLe=xe({name:"ElTree",components:{ElTreeNode:MLe},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Wr}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=ir(),r=ut("tree"),o=$t(P0,null),i=ee(new CLe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const a=ee(i.value.root),s=ee(null),l=ee(null),u=ee(null),{broadcastExpanded:f}=dX(e),{dragState:h}=PLe({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});RLe({el$:l},i);const m=W(()=>{const{childNodes:J}=a.value,z=o?o.hasFilteredOptions!==0:!1;return(!J||J.length===0||J.every(({visible:q})=>!q))&&!z});at(()=>e.currentNodeKey,J=>{i.value.setCurrentNodeKey(J)}),at(()=>e.defaultCheckedKeys,J=>{i.value.setDefaultCheckedKey(J)}),at(()=>e.defaultExpandedKeys,J=>{i.value.setDefaultExpandedKeys(J)}),at(()=>e.data,J=>{i.value.setData(J)},{deep:!0}),at(()=>e.checkStrictly,J=>{i.value.checkStrictly=J});const y=J=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(J)},O=J=>Q3(e.nodeKey,J.data),b=J=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const z=i.value.getNode(J);if(!z)return[];const q=[z.data];let ue=z.parent;for(;ue&&ue!==a.value;)q.push(ue.data),ue=ue.parent;return q.reverse()},k=(J,z)=>i.value.getCheckedNodes(J,z),C=J=>i.value.getCheckedKeys(J),P=()=>{const J=i.value.getCurrentNode();return J?J.data:null},$=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const J=P();return J?J[e.nodeKey]:null},T=(J,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(J,z)},A=(J,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(J,z)},R=(J,z,q)=>{i.value.setChecked(J,z,q)},B=()=>i.value.getHalfCheckedNodes(),I=()=>i.value.getHalfCheckedKeys(),N=(J,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");ER(i,t.emit,()=>{f(J),i.value.setUserCurrentNode(J,z)})},j=(J,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");ER(i,t.emit,()=>{f(),i.value.setCurrentNodeKey(J,z)})},L=J=>i.value.getNode(J),V=J=>{i.value.remove(J)},X=(J,z)=>{i.value.append(J,z)},oe=(J,z)=>{i.value.insertBefore(J,z)},K=(J,z)=>{i.value.insertAfter(J,z)},Z=(J,z,q)=>{f(z),t.emit("node-expand",J,z,q)},re=(J,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(J,z)};return Yn("RootTree",{ctx:t,props:e,store:i,root:a,currentNode:s,instance:En()}),Yn(Of,void 0),{ns:r,store:i,root:a,currentNode:s,dragState:h,el$:l,dropIndicator$:u,isEmpty:m,filter:y,getNodeKey:O,getNodePath:b,getCheckedNodes:k,getCheckedKeys:C,getCurrentNode:P,getCurrentKey:$,setCheckedNodes:T,setCheckedKeys:A,setChecked:R,getHalfCheckedNodes:B,getHalfCheckedKeys:I,setCurrentNode:N,setCurrentKey:j,t:n,getNode:L,remove:V,append:X,insertBefore:oe,insertAfter:K,handleNodeExpand:Z,updateKeyChildren:re}}});function ILe(e,t,n,r,o,i){const a=Pn("el-tree-node");return U(),ce("div",{ref:"el$",class:G([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(U(!0),ce(Pt,null,_n(e.root.childNodes,s=>(U(),Qe(a,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(U(),ce("div",{key:0,class:G(e.ns.e("empty-block"))},[Xe(e.$slots,"empty",{},()=>{var s;return[ge("span",{class:G(e.ns.e("empty-text"))},ct((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):Fe("v-if",!0),bn(ge("div",{ref:"dropIndicator$",class:G(e.ns.e("drop-indicator"))},null,2),[[gr,e.dragState.showDropIndicator]])],2)}var DLe=gt(NLe,[["render",ILe],["__file","tree.vue"]]);const _C=gn(DLe),jLe=(e,{attrs:t,emit:n},{select:r,tree:o,key:i})=>{const a=ut("tree-select");return at(()=>e.data,()=>{e.filterable&&Wt(()=>{var l,u;(u=o.value)==null||u.filter((l=r.value)==null?void 0:l.states.inputValue)})},{flush:"post"}),{..._u(ra(e),Object.keys(bc.props)),...t,"onUpdate:modelValue":l=>n(Tn,l),valueKey:i,popperClass:W(()=>{const l=[a.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{var u;e.filterMethod?e.filterMethod(l):e.remoteMethod?e.remoteMethod(l):(u=o.value)==null||u.filter(l)}}},LLe=xe({extends:pp,setup(e,t){const n=pp.setup(e,t);delete n.selectOptionClick;const r=En().proxy;return Wt(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),at(()=>t.attrs.visible,o=>{n.states.visible=o},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function PR(e){return e||e===0}function W3(e){return Array.isArray(e)&&e.length}function R_(e){return Array.isArray(e)?e:PR(e)?[e]:[]}function Ek(e,t,n,r,o){for(let i=0;i<e.length;i++){const a=e[i];if(t(a,i,e,o))return r?r(a,i,e,o):a;{const s=n(a);if(W3(s)){const l=Ek(s,t,n,r,a);if(l)return l}}}}function $R(e,t,n,r){for(let o=0;o<e.length;o++){const i=e[o];t(i,o,e,r);const a=n(i);W3(a)&&$R(a,t,n,i)}}const BLe=(e,{attrs:t,slots:n,emit:r},{select:o,tree:i,key:a})=>{at(()=>e.modelValue,()=>{e.showCheckbox&&Wt(()=>{const h=i.value;h&&!ss(h.getCheckedKeys(),R_(e.modelValue))&&h.setCheckedKeys(R_(e.modelValue))})},{immediate:!0,deep:!0});const s=W(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(h,m)=>{var y;const O=s.value[h];return rn(O)?O(m,(y=i.value)==null?void 0:y.getNode(l("value",m))):m[O]},u=R_(e.modelValue).map(h=>Ek(e.data||[],m=>l("value",m)===h,m=>l("children",m),(m,y,O,b)=>b&&l("value",b))).filter(h=>PR(h)),f=W(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return $R(e.data.concat(e.cacheData),m=>{const y=l("value",m);h.push({value:y,currentLabel:l("label",m),isDisabled:l("disabled",m)})},m=>l("children",m)),h});return{..._u(ra(e),Object.keys(_C.props)),...t,nodeKey:a,expandOnClickNode:W(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:W(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(h,{node:m,data:y,store:O})=>h(LLe,{value:l("value",y),label:l("label",y),disabled:l("disabled",y),visible:m.visible},e.renderContent?()=>e.renderContent(h,{node:m,data:y,store:O}):n.default?()=>n.default({node:m,data:y,store:O}):void 0),filterNodeMethod:(h,m,y)=>e.filterNodeMethod?e.filterNodeMethod(h,m,y):h?new RegExp(_D(h),"i").test(l("label",m)||""):!0,onNodeClick:(h,m,y)=>{var O,b,k,C;if((O=t.onNodeClick)==null||O.call(t,h,m,y),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||m.isLeaf)){if(!l("disabled",h)){const P=(b=o.value)==null?void 0:b.states.options.get(l("value",h));(k=o.value)==null||k.handleOptionSelect(P)}}else e.expandOnClickNode&&y.proxy.handleExpandIconClick();(C=o.value)==null||C.focus()}},onCheck:(h,m)=>{var y;if(!e.showCheckbox)return;const O=l("value",h),b={};$R([i.value.store.root],$=>b[$.key]=$,$=>$.childNodes);const k=m.checkedKeys,C=e.multiple?R_(e.modelValue).filter($=>!($ in b)&&!k.includes($)):[],P=C.concat(k);if(e.checkStrictly)r(Tn,e.multiple?P:P.includes(O)?O:void 0);else if(e.multiple)r(Tn,C.concat(i.value.getCheckedKeys(!0)));else{const $=Ek([h],R=>!W3(l("children",R))&&!l("disabled",R),R=>l("children",R)),T=$?l("value",$):void 0,A=PR(e.modelValue)&&!!Ek([h],R=>l("value",R)===e.modelValue,R=>l("children",R));r(Tn,T===e.modelValue||A?void 0:T)}Wt(()=>{var $;const T=R_(e.modelValue);i.value.setCheckedKeys(T),($=t.onCheck)==null||$.call(t,h,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),(y=o.value)==null||y.focus()},cacheOptions:f}};var VLe=xe({props:{data:{type:Array,default:()=>[]}},setup(e){const t=$t(P0);return at(()=>e.data,()=>{var n;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const r=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];rr&&!Array.from(r).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const FLe=xe({name:"ElTreeSelect",inheritAttrs:!1,props:{...bc.props,..._C.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=ee(),i=ee(),a=W(()=>e.nodeKey||e.valueKey||"value"),s=jLe(e,t,{select:o,tree:i,key:a}),{cacheOptions:l,...u}=BLe(e,t,{select:o,tree:i,key:a}),f=or({});return r(f),vn(()=>{Object.assign(f,{..._u(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),..._u(o.value,["focus","blur"])})}),()=>Ht(bc,or({...s,ref:h=>o.value=h}),{...n,default:()=>[Ht(VLe,{data:l.value}),Ht(_C,or({...u,ref:h=>i.value=h}))]})}});var zLe=gt(FLe,[["__file","tree-select.vue"]]);const QLe=gn(zLe),Y3=Symbol(),WLe={key:-1,level:-1,data:{}};var W_=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(W_||{}),AR=(e=>(e.ADD="add",e.DELETE="delete",e))(AR||{});const pX={type:Number,default:26},YLe=pt({data:{type:Le(Array),default:()=>xo([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Le(Object),default:()=>xo({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Le(Array),default:()=>xo([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Le(Array),default:()=>xo([])},indent:{type:Number,default:16},itemSize:pX,icon:{type:Wr},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:Le([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:Le(Function)},perfMode:{type:Boolean,default:!0}}),ULe=pt({node:{type:Le(Object),default:()=>xo(WLe)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:pX}),HLe=pt({node:{type:Le(Object),required:!0}}),gX="node-click",mX="node-expand",vX="node-collapse",yX="current-change",bX="check",_X="check-change",OX="node-contextmenu",ZLe={[gX]:(e,t,n)=>e&&t&&n,[mX]:(e,t)=>e&&t,[vX]:(e,t)=>e&&t,[yX]:(e,t)=>e&&t,[bX]:(e,t)=>e&&t,[_X]:(e,t)=>e&&typeof t=="boolean",[OX]:(e,t,n)=>e&&t&&n},XLe={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function qLe(e,t){const n=ee(new Set),r=ee(new Set),{emit:o}=En();at([()=>t.value,()=>e.defaultCheckedKeys],()=>Wt(()=>{P(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:$,maxLevel:T}=t.value,A=n.value,R=new Set;for(let B=T-1;B>=1;--B){const I=$.get(B);!I||I.forEach(N=>{const j=N.children;if(j){let L=!0,V=!1;for(const X of j){const oe=X.key;if(A.has(oe))V=!0;else if(R.has(oe)){L=!1,V=!0;break}else L=!1}L?A.add(N.key):V?(R.add(N.key),A.delete(N.key)):(A.delete(N.key),R.delete(N.key))}})}r.value=R},a=$=>n.value.has($.key),s=$=>r.value.has($.key),l=($,T,A=!0)=>{const R=n.value,B=(I,N)=>{R[N?AR.ADD:AR.DELETE](I.key);const j=I.children;!e.checkStrictly&&j&&j.forEach(L=>{L.disabled||B(L,N)})};B($,T),i(),A&&u($,T)},u=($,T)=>{const{checkedNodes:A,checkedKeys:R}=O(),{halfCheckedNodes:B,halfCheckedKeys:I}=b();o(bX,$.data,{checkedKeys:R,checkedNodes:A,halfCheckedKeys:I,halfCheckedNodes:B}),o(_X,$.data,T)};function f($=!1){return O($).checkedKeys}function h($=!1){return O($).checkedNodes}function m(){return b().halfCheckedKeys}function y(){return b().halfCheckedNodes}function O($=!1){const T=[],A=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:R}=t.value;n.value.forEach(B=>{const I=R.get(B);I&&(!$||$&&I.isLeaf)&&(A.push(B),T.push(I.data))})}return{checkedKeys:A,checkedNodes:T}}function b(){const $=[],T=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:A}=t.value;r.value.forEach(R=>{const B=A.get(R);B&&(T.push(R),$.push(B.data))})}return{halfCheckedNodes:$,halfCheckedKeys:T}}function k($){n.value.clear(),r.value.clear(),Wt(()=>{P($)})}function C($,T){if((t==null?void 0:t.value)&&e.showCheckbox){const A=t.value.treeNodeMap.get($);A&&l(A,T,!1)}}function P($){if(t!=null&&t.value){const{treeNodeMap:T}=t.value;if(e.showCheckbox&&T&&$)for(const A of $){const R=T.get(A);R&&!a(R)&&l(R,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:a,isIndeterminate:s,getCheckedKeys:f,getCheckedNodes:h,getHalfCheckedKeys:m,getHalfCheckedNodes:y,setChecked:C,setCheckedKeys:k}}function KLe(e,t){const n=ee(new Set([])),r=ee(new Set([])),o=W(()=>rn(e.filterMethod));function i(s){var l;if(!o.value)return;const u=new Set,f=r.value,h=n.value,m=[],y=((l=t.value)==null?void 0:l.treeNodes)||[],O=e.filterMethod;h.clear();function b(k){k.forEach(C=>{m.push(C),O!=null&&O(s,C.data)?m.forEach($=>{u.add($.key)}):C.isLeaf&&h.add(C.key);const P=C.children;if(P&&b(P),!C.isLeaf){if(!u.has(C.key))h.add(C.key);else if(P){let $=!0;for(const T of P)if(!h.has(T.key)){$=!1;break}$?f.add(C.key):f.delete(C.key)}}m.pop()})}return b(y),u}function a(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:a}}function GLe(e,t){const n=ee(new Set(e.defaultExpandedKeys)),r=ee(),o=to(),i=ee();at(()=>e.currentNodeKey,Se=>{r.value=Se},{immediate:!0}),at(()=>e.data,Se=>{Ae(Se)},{immediate:!0});const{isIndeterminate:a,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:m,setChecked:y,setCheckedKeys:O}=qLe(e,o),{doFilter:b,hiddenNodeKeySet:k,isForceHiddenExpandIcon:C}=KLe(e,o),P=W(()=>{var Se;return((Se=e.props)==null?void 0:Se.value)||W_.KEY}),$=W(()=>{var Se;return((Se=e.props)==null?void 0:Se.children)||W_.CHILDREN}),T=W(()=>{var Se;return((Se=e.props)==null?void 0:Se.disabled)||W_.DISABLED}),A=W(()=>{var Se;return((Se=e.props)==null?void 0:Se.label)||W_.LABEL}),R=W(()=>{const Se=n.value,fe=k.value,ye=[],He=o.value&&o.value.treeNodes||[];function be(){const Ie=[];for(let De=He.length-1;De>=0;--De)Ie.push(He[De]);for(;Ie.length;){const De=Ie.pop();if(!!De&&(fe.has(De.key)||ye.push(De),Se.has(De.key))){const Me=De.children;if(Me){const qe=Me.length;for(let Oe=qe-1;Oe>=0;--Oe)Ie.push(Me[Oe])}}}}return be(),ye}),B=W(()=>R.value.length>0);function I(Se){const fe=new Map,ye=new Map;let He=1;function be(De,Me=1,qe=void 0){var Oe;const Je=[];for(const lt of De){const Ke=L(lt),et={level:Me,key:Ke,data:lt};et.label=X(lt),et.parent=qe;const bt=j(lt);et.disabled=V(lt),et.isLeaf=!bt||bt.length===0,bt&&bt.length&&(et.children=be(bt,Me+1,et)),Je.push(et),fe.set(Ke,et),ye.has(Me)||ye.set(Me,[]),(Oe=ye.get(Me))==null||Oe.push(et)}return Me>He&&(He=Me),Je}const Ie=be(Se);return{treeNodeMap:fe,levelTreeNodeMap:ye,maxLevel:He,treeNodes:Ie}}function N(Se){const fe=b(Se);fe&&(n.value=fe)}function j(Se){return Se[$.value]}function L(Se){return Se?Se[P.value]:""}function V(Se){return Se[T.value]}function X(Se){return Se[A.value]}function oe(Se){n.value.has(Se.key)?q(Se):z(Se)}function K(Se){n.value=new Set(Se)}function Z(Se,fe){t(gX,Se.data,Se,fe),re(Se),e.expandOnClickNode&&oe(Se),e.showCheckbox&&e.checkOnClickNode&&!Se.disabled&&l(Se,!s(Se),!0)}function re(Se){le(Se)||(r.value=Se.key,t(yX,Se.data,Se))}function J(Se,fe){l(Se,fe)}function z(Se){const fe=n.value;if(o.value&&e.accordion){const{treeNodeMap:ye}=o.value;fe.forEach(He=>{const be=ye.get(He);Se&&Se.level===(be==null?void 0:be.level)&&fe.delete(He)})}fe.add(Se.key),t(mX,Se.data,Se)}function q(Se){n.value.delete(Se.key),t(vX,Se.data,Se)}function ue(Se){return n.value.has(Se.key)}function he(Se){return!!Se.disabled}function le(Se){const fe=r.value;return fe!==void 0&&fe===Se.key}function ze(){var Se,fe;if(!!r.value)return(fe=(Se=o.value)==null?void 0:Se.treeNodeMap.get(r.value))==null?void 0:fe.data}function Ee(){return r.value}function Be(Se){r.value=Se}function Ae(Se){Wt(()=>o.value=I(Se))}function _e(Se){var fe;const ye=$n(Se)?L(Se):Se;return(fe=o.value)==null?void 0:fe.treeNodeMap.get(ye)}function ve(Se,fe="auto"){const ye=_e(Se);ye&&i.value&&i.value.scrollToItem(R.value.indexOf(ye),fe)}function Ne(Se){var fe;(fe=i.value)==null||fe.scrollTo(Se)}return{tree:o,flattenTree:R,isNotEmpty:B,listRef:i,getKey:L,getChildren:j,toggleExpand:oe,toggleCheckbox:l,isExpanded:ue,isChecked:s,isIndeterminate:a,isDisabled:he,isCurrent:le,isForceHiddenExpandIcon:C,handleNodeClick:Z,handleNodeCheck:J,getCurrentNode:ze,getCurrentKey:Ee,setCurrentKey:Be,getCheckedKeys:u,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:m,setChecked:y,setCheckedKeys:O,filter:N,setData:Ae,getNode:_e,expandNode:z,collapseNode:q,setExpandedKeys:K,scrollToNode:ve,scrollTo:Ne}}var JLe=xe({name:"ElTreeNodeContent",props:HLe,setup(e){const t=$t(Y3),n=ut("tree");return()=>{const r=e.node,{data:o}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:o}):Ht("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const e5e=xe({name:"ElTreeNode"}),t5e=xe({...e5e,props:ULe,emits:XLe,setup(e,{emit:t}){const n=e,r=$t(Y3),o=ut("tree"),i=W(()=>{var h;return(h=r==null?void 0:r.props.indent)!=null?h:16}),a=W(()=>{var h;return(h=r==null?void 0:r.props.icon)!=null?h:xD}),s=h=>{t("click",n.node,h)},l=()=>{t("toggle",n.node)},u=h=>{t("check",n.node,h)},f=h=>{var m,y,O,b;(O=(y=(m=r==null?void 0:r.instance)==null?void 0:m.vnode)==null?void 0:y.props)!=null&&O.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),r==null||r.ctx.emit(OX,h,(b=n.node)==null?void 0:b.data,n.node)};return(h,m)=>{var y,O,b;return U(),ce("div",{ref:"node$",class:G([v(o).b("node"),v(o).is("expanded",h.expanded),v(o).is("current",h.current),v(o).is("focusable",!h.disabled),v(o).is("checked",!h.disabled&&h.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":h.expanded,"aria-disabled":h.disabled,"aria-checked":h.checked,"data-key":(y=h.node)==null?void 0:y.key,onClick:nn(s,["stop"]),onContextmenu:f},[ge("div",{class:G(v(o).be("node","content")),style:Ft({paddingLeft:`${(h.node.level-1)*v(i)}px`,height:h.itemSize+"px"})},[v(a)?(U(),Qe(v(Lt),{key:0,class:G([v(o).is("leaf",!!((O=h.node)!=null&&O.isLeaf)),v(o).is("hidden",h.hiddenExpandIcon),{expanded:!((b=h.node)!=null&&b.isLeaf)&&h.expanded},v(o).be("node","expand-icon")]),onClick:nn(l,["stop"])},{default:se(()=>[(U(),Qe(jn(v(a))))]),_:1},8,["class","onClick"])):Fe("v-if",!0),h.showCheckbox?(U(),Qe(v(Hl),{key:1,"model-value":h.checked,indeterminate:h.indeterminate,disabled:h.disabled,onChange:u,onClick:nn(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):Fe("v-if",!0),ne(v(JLe),{node:h.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick"])}}});var n5e=gt(t5e,[["__file","tree-node.vue"]]);const r5e=xe({name:"ElTreeV2"}),o5e=xe({...r5e,props:YLe,emits:ZLe,setup(e,{expose:t,emit:n}){const r=e,o=Ui(),i=W(()=>r.itemSize);Yn(Y3,{ctx:{emit:n,slots:o},props:r,instance:En()}),Yn(Of,void 0);const{t:a}=ir(),s=ut("tree"),{flattenTree:l,isNotEmpty:u,listRef:f,toggleExpand:h,isExpanded:m,isIndeterminate:y,isChecked:O,isDisabled:b,isCurrent:k,isForceHiddenExpandIcon:C,handleNodeClick:P,handleNodeCheck:$,toggleCheckbox:T,getCurrentNode:A,getCurrentKey:R,setCurrentKey:B,getCheckedKeys:I,getCheckedNodes:N,getHalfCheckedKeys:j,getHalfCheckedNodes:L,setChecked:V,setCheckedKeys:X,filter:oe,setData:K,getNode:Z,expandNode:re,collapseNode:J,setExpandedKeys:z,scrollToNode:q,scrollTo:ue}=GLe(r,n);return t({toggleCheckbox:T,getCurrentNode:A,getCurrentKey:R,setCurrentKey:B,getCheckedKeys:I,getCheckedNodes:N,getHalfCheckedKeys:j,getHalfCheckedNodes:L,setChecked:V,setCheckedKeys:X,filter:oe,setData:K,getNode:Z,expandNode:re,collapseNode:J,setExpandedKeys:z,scrollToNode:q,scrollTo:ue}),(he,le)=>{var ze;return U(),ce("div",{class:G([v(s).b(),{[v(s).m("highlight-current")]:he.highlightCurrent}]),role:"tree"},[v(u)?(U(),Qe(v(kZ),{key:0,ref_key:"listRef",ref:f,"class-name":v(s).b("virtual-list"),data:v(l),total:v(l).length,height:he.height,"item-size":v(i),"perf-mode":he.perfMode},{default:se(({data:Ee,index:Be,style:Ae})=>[(U(),Qe(n5e,{key:Ee[Be].key,style:Ft(Ae),node:Ee[Be],expanded:v(m)(Ee[Be]),"show-checkbox":he.showCheckbox,checked:v(O)(Ee[Be]),indeterminate:v(y)(Ee[Be]),"item-size":v(i),disabled:v(b)(Ee[Be]),current:v(k)(Ee[Be]),"hidden-expand-icon":v(C)(Ee[Be]),onClick:v(P),onToggle:v(h),onCheck:v($)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(U(),ce("div",{key:1,class:G(v(s).e("empty-block"))},[ge("span",{class:G(v(s).e("empty-text"))},ct((ze=he.emptyText)!=null?ze:v(a)("el.tree.emptyText")),3)],2))],2)}}});var i5e=gt(o5e,[["__file","tree.vue"]]);const a5e=gn(i5e),wX=Symbol("uploadContextKey"),s5e="ElUpload";class l5e extends Error{constructor(t,n,r,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function _V(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 l5e(r,n.status,t.method,e)}function u5e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const c5e=e=>{typeof XMLHttpRequest=="undefined"&&Ri(s5e,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const a=i;a.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[i,a]of Object.entries(e.data))Et(a)&&a.length?r.append(i,...a):r.append(i,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(_V(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(_V(n,e,t));e.onSuccess(u5e(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((i,a)=>t.setRequestHeader(a,i));else for(const[i,a]of Object.entries(o))Wi(a)||t.setRequestHeader(i,String(a));return t.send(r),t},SX=["text","picture","picture-card"];let f5e=1;const MR=()=>Date.now()+f5e++,xX=pt({action:{type:String,default:"#"},headers:{type:Le(Object)},method:{type:String,default:"post"},data:{type:Le([Object,Function,Promise]),default:()=>xo({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Le(Array),default:()=>xo([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:SX,default:"text"},httpRequest:{type:Le(Function),default:c5e},disabled:Boolean,limit:Number}),d5e=pt({...xX,beforeUpload:{type:Le(Function),default:zr},beforeRemove:{type:Le(Function)},onRemove:{type:Le(Function),default:zr},onChange:{type:Le(Function),default:zr},onPreview:{type:Le(Function),default:zr},onSuccess:{type:Le(Function),default:zr},onProgress:{type:Le(Function),default:zr},onError:{type:Le(Function),default:zr},onExceed:{type:Le(Function),default:zr},crossorigin:{type:Le(String)}}),h5e=pt({files:{type:Le(Array),default:()=>xo([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Le(Function),default:zr},listType:{type:String,values:SX,default:"text"},crossorigin:{type:Le(String)}}),p5e={remove:e=>!!e},g5e=xe({name:"ElUploadList"}),m5e=xe({...g5e,props:h5e,emits:p5e,setup(e,{emit:t}){const n=e,{t:r}=ir(),o=ut("upload"),i=ut("icon"),a=ut("list"),s=Ls(),l=ee(!1),u=W(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",n.disabled)]),f=h=>{t("remove",h)};return(h,m)=>(U(),Qe(WQ,{tag:"ul",class:G(v(u)),name:v(a).b()},{default:se(()=>[(U(!0),ce(Pt,null,_n(h.files,(y,O)=>(U(),ce("li",{key:y.uid||y.name,class:G([v(o).be("list","item"),v(o).is(y.status),{focusing:l.value}]),tabindex:"0",onKeydown:Qr(b=>!v(s)&&f(y),["delete"]),onFocus:b=>l.value=!0,onBlur:b=>l.value=!1,onClick:b=>l.value=!1},[Xe(h.$slots,"default",{file:y,index:O},()=>[h.listType==="picture"||y.status!=="uploading"&&h.listType==="picture-card"?(U(),ce("img",{key:0,class:G(v(o).be("list","item-thumbnail")),src:y.url,crossorigin:h.crossorigin,alt:""},null,10,["src","crossorigin"])):Fe("v-if",!0),y.status==="uploading"||h.listType!=="picture-card"?(U(),ce("div",{key:1,class:G(v(o).be("list","item-info"))},[ge("a",{class:G(v(o).be("list","item-name")),onClick:nn(b=>h.handlePreview(y),["prevent"])},[ne(v(Lt),{class:G(v(i).m("document"))},{default:se(()=>[ne(v(Gwe))]),_:1},8,["class"]),ge("span",{class:G(v(o).be("list","item-file-name")),title:y.name},ct(y.name),11,["title"])],10,["onClick"]),y.status==="uploading"?(U(),Qe(v(mZ),{key:0,type:h.listType==="picture-card"?"circle":"line","stroke-width":h.listType==="picture-card"?6:2,percentage:Number(y.percentage),style:Ft(h.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Fe("v-if",!0)],2)):Fe("v-if",!0),ge("label",{class:G(v(o).be("list","item-status-label"))},[h.listType==="text"?(U(),Qe(v(Lt),{key:0,class:G([v(i).m("upload-success"),v(i).m("circle-check")])},{default:se(()=>[ne(v(kD))]),_:1},8,["class"])):["picture-card","picture"].includes(h.listType)?(U(),Qe(v(Lt),{key:1,class:G([v(i).m("upload-success"),v(i).m("check")])},{default:se(()=>[ne(v(x0))]),_:1},8,["class"])):Fe("v-if",!0)],2),v(s)?Fe("v-if",!0):(U(),Qe(v(Lt),{key:2,class:G(v(i).m("close")),onClick:b=>f(y)},{default:se(()=>[ne(v(Ts))]),_:2},1032,["class","onClick"])),Fe(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Fe(" This is a bug which needs to be fixed "),Fe(" TODO: Fix the incorrect navigation interaction "),v(s)?Fe("v-if",!0):(U(),ce("i",{key:3,class:G(v(i).m("close-tip"))},ct(v(r)("el.upload.deleteTip")),3)),h.listType==="picture-card"?(U(),ce("span",{key:4,class:G(v(o).be("list","item-actions"))},[ge("span",{class:G(v(o).be("list","item-preview")),onClick:b=>h.handlePreview(y)},[ne(v(Lt),{class:G(v(i).m("zoom-in"))},{default:se(()=>[ne(v(IY))]),_:1},8,["class"])],10,["onClick"]),v(s)?Fe("v-if",!0):(U(),ce("span",{key:0,class:G(v(o).be("list","item-delete")),onClick:b=>f(y)},[ne(v(Lt),{class:G(v(i).m("delete"))},{default:se(()=>[ne(v($Y))]),_:1},8,["class"])],10,["onClick"]))],2)):Fe("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Xe(h.$slots,"append")]),_:3},8,["class","name"]))}});var OV=gt(m5e,[["__file","upload-list.vue"]]);const v5e=pt({disabled:{type:Boolean,default:!1}}),y5e={file:e=>Et(e)},kX="ElUploadDrag",b5e=xe({name:kX}),_5e=xe({...b5e,props:v5e,emits:y5e,setup(e,{emit:t}){$t(wX)||Ri(kX,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=ut("upload"),o=ee(!1),i=Ls(),a=l=>{if(i.value)return;o.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files);t("file",u)},s=()=>{i.value||(o.value=!0)};return(l,u)=>(U(),ce("div",{class:G([v(r).b("dragger"),v(r).is("dragover",o.value)]),onDrop:nn(a,["prevent"]),onDragover:nn(s,["prevent"]),onDragleave:nn(f=>o.value=!1,["prevent"])},[Xe(l.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var O5e=gt(_5e,[["__file","upload-dragger.vue"]]);const w5e=pt({...xX,beforeUpload:{type:Le(Function),default:zr},onRemove:{type:Le(Function),default:zr},onStart:{type:Le(Function),default:zr},onSuccess:{type:Le(Function),default:zr},onProgress:{type:Le(Function),default:zr},onError:{type:Le(Function),default:zr},onExceed:{type:Le(Function),default:zr}}),S5e=xe({name:"ElUploadContent",inheritAttrs:!1}),x5e=xe({...S5e,props:w5e,setup(e,{expose:t}){const n=e,r=ut("upload"),o=Ls(),i=to({}),a=to(),s=b=>{if(b.length===0)return;const{autoUpload:k,limit:C,fileList:P,multiple:$,onStart:T,onExceed:A}=n;if(C&&P.length+b.length>C){A(b,P);return}$||(b=b.slice(0,1));for(const R of b){const B=R;B.uid=MR(),T(B),k&&l(B)}},l=async b=>{if(a.value.value="",!n.beforeUpload)return f(b);let k,C={};try{const $=n.data,T=n.beforeUpload(b);C=Uk(n.data)?BO(n.data):n.data,k=await T,Uk(n.data)&&ss($,C)&&(C=BO(n.data))}catch{k=!1}if(k===!1){n.onRemove(b);return}let P=b;k instanceof Blob&&(k instanceof File?P=k:P=new File([k],b.name,{type:b.type})),f(Object.assign(P,{uid:b.uid}),C)},u=async(b,k)=>rn(b)?b(k):b,f=async(b,k)=>{const{headers:C,data:P,method:$,withCredentials:T,name:A,action:R,onProgress:B,onSuccess:I,onError:N,httpRequest:j}=n;try{k=await u(k!=null?k:P,b)}catch{n.onRemove(b);return}const{uid:L}=b,V={headers:C||{},withCredentials:T,file:b,data:k,method:$,filename:A,action:R,onProgress:oe=>{B(oe,b)},onSuccess:oe=>{I(oe,b),delete i.value[L]},onError:oe=>{N(oe,b),delete i.value[L]}},X=j(V);i.value[L]=X,X instanceof Promise&&X.then(V.onSuccess,V.onError)},h=b=>{const k=b.target.files;!k||s(Array.from(k))},m=()=>{o.value||(a.value.value="",a.value.click())},y=()=>{m()};return t({abort:b=>{kwe(i.value).filter(b?([C])=>String(b.uid)===C:()=>!0).forEach(([C,P])=>{P instanceof XMLHttpRequest&&P.abort(),delete i.value[C]})},upload:l}),(b,k)=>(U(),ce("div",{class:G([v(r).b(),v(r).m(b.listType),v(r).is("drag",b.drag),v(r).is("disabled",v(o))]),tabindex:v(o)?"-1":"0",onClick:m,onKeydown:Qr(nn(y,["self"]),["enter","space"])},[b.drag?(U(),Qe(O5e,{key:0,disabled:v(o),onFile:s},{default:se(()=>[Xe(b.$slots,"default")]),_:3},8,["disabled"])):Xe(b.$slots,"default",{key:1}),ge("input",{ref_key:"inputRef",ref:a,class:G(v(r).e("input")),name:b.name,disabled:v(o),multiple:b.multiple,accept:b.accept,type:"file",onChange:h,onClick:nn(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var wV=gt(x5e,[["__file","upload-content.vue"]]);const SV="ElUpload",xV=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},k5e=(e,t)=>{const n=t7(e,"fileList",void 0,{passive:!0}),r=y=>n.value.find(O=>O.uid===y.uid);function o(y){var O;(O=t.value)==null||O.abort(y)}function i(y=["ready","uploading","success","fail"]){n.value=n.value.filter(O=>!y.includes(O.status))}function a(y){n.value=n.value.filter(O=>O!==y)}const s=(y,O)=>{const b=r(O);!b||(console.error(y),b.status="fail",a(b),e.onError(y,b,n.value),e.onChange(b,n.value))},l=(y,O)=>{const b=r(O);!b||(e.onProgress(y,b,n.value),b.status="uploading",b.percentage=Math.round(y.percent))},u=(y,O)=>{const b=r(O);!b||(b.status="success",b.response=y,e.onSuccess(y,b,n.value),e.onChange(b,n.value))},f=y=>{Wi(y.uid)&&(y.uid=MR());const O={name:y.name,percentage:0,status:"ready",size:y.size,raw:y,uid:y.uid};if(e.listType==="picture-card"||e.listType==="picture")try{O.url=URL.createObjectURL(y)}catch(b){b.message,e.onError(b,O,n.value)}n.value=[...n.value,O],e.onChange(O,n.value)},h=async y=>{const O=y instanceof File?r(y):y;O||Ri(SV,"file to be removed not found");const b=k=>{o(k),a(k),e.onRemove(k,n.value),xV(k)};e.beforeRemove?await e.beforeRemove(O,n.value)!==!1&&b(O):b(O)};function m(){n.value.filter(({status:y})=>y==="ready").forEach(({raw:y})=>{var O;return y&&((O=t.value)==null?void 0:O.upload(y))})}return at(()=>e.listType,y=>{y!=="picture-card"&&y!=="picture"||(n.value=n.value.map(O=>{const{raw:b,url:k}=O;if(!k&&b)try{O.url=URL.createObjectURL(b)}catch(C){e.onError(C,O,n.value)}return O}))}),at(n,y=>{for(const O of y)O.uid||(O.uid=MR()),O.status||(O.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:i,handleError:s,handleProgress:l,handleStart:f,handleSuccess:u,handleRemove:h,submit:m,revokeFileObjectURL:xV}},C5e=xe({name:"ElUpload"}),E5e=xe({...C5e,props:d5e,setup(e,{expose:t}){const n=e,r=Ls(),o=to(),{abort:i,submit:a,clearFiles:s,uploadFiles:l,handleStart:u,handleError:f,handleRemove:h,handleSuccess:m,handleProgress:y,revokeFileObjectURL:O}=k5e(n,o),b=W(()=>n.listType==="picture-card"),k=W(()=>({...n,fileList:l.value,onStart:u,onProgress:y,onSuccess:m,onError:f,onRemove:h}));return qr(()=>{l.value.forEach(O)}),Yn(wX,{accept:Tr(n,"accept")}),t({abort:i,submit:a,clearFiles:s,handleStart:u,handleRemove:h}),(C,P)=>(U(),ce("div",null,[v(b)&&C.showFileList?(U(),Qe(OV,{key:0,disabled:v(r),"list-type":C.listType,files:v(l),crossorigin:C.crossorigin,"handle-preview":C.onPreview,onRemove:v(h)},Fl({append:se(()=>[ne(wV,Dn({ref_key:"uploadRef",ref:o},v(k)),{default:se(()=>[C.$slots.trigger?Xe(C.$slots,"trigger",{key:0}):Fe("v-if",!0),!C.$slots.trigger&&C.$slots.default?Xe(C.$slots,"default",{key:1}):Fe("v-if",!0)]),_:3},16)]),_:2},[C.$slots.file?{name:"default",fn:se(({file:$,index:T})=>[Xe(C.$slots,"file",{file:$,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Fe("v-if",!0),!v(b)||v(b)&&!C.showFileList?(U(),Qe(wV,Dn({key:1,ref_key:"uploadRef",ref:o},v(k)),{default:se(()=>[C.$slots.trigger?Xe(C.$slots,"trigger",{key:0}):Fe("v-if",!0),!C.$slots.trigger&&C.$slots.default?Xe(C.$slots,"default",{key:1}):Fe("v-if",!0)]),_:3},16)):Fe("v-if",!0),C.$slots.trigger?Xe(C.$slots,"default",{key:2}):Fe("v-if",!0),Xe(C.$slots,"tip"),!v(b)&&C.showFileList?(U(),Qe(OV,{key:3,disabled:v(r),"list-type":C.listType,files:v(l),crossorigin:C.crossorigin,"handle-preview":C.onPreview,onRemove:v(h)},Fl({_:2},[C.$slots.file?{name:"default",fn:se(({file:$,index:T})=>[Xe(C.$slots,"file",{file:$,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Fe("v-if",!0)]))}});var T5e=gt(E5e,[["__file","upload.vue"]]);const P5e=gn(T5e),$5e=pt({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:Le([String,Array]),default:"Element Plus"},font:{type:Le(Object)},gap:{type:Le(Array),default:()=>[100,100]},offset:{type:Le(Array)}});function A5e(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function M5e(e){return Object.keys(e).map(t=>`${A5e(t)}: ${e[t]};`).join(" ")}function R5e(){return window.devicePixelRatio||1}const N5e=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},CX=3;function EA(e,t,n=1){const r=document.createElement("canvas"),o=r.getContext("2d"),i=e*n,a=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),o.save(),[o,r,i,a]}function I5e(){function e(t,n,r,o,i,a,s,l){const[u,f,h,m]=EA(o,i,r);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,h,m);else{const{color:ue,fontSize:he,fontStyle:le,fontWeight:ze,fontFamily:Ee,textAlign:Be,textBaseline:Ae}=a,_e=Number(he)*r;u.font=`${le} normal ${ze} ${_e}px/${i}px ${Ee}`,u.fillStyle=ue,u.textAlign=Be,u.textBaseline=Ae;const ve=Array.isArray(t)?t:[t];ve==null||ve.forEach((Ne,Se)=>{u.fillText(Ne!=null?Ne:"",h/2,Se*(_e+CX*r))})}const y=Math.PI/180*Number(n),O=Math.max(o,i),[b,k,C]=EA(O,O,r);b.translate(C/2,C/2),b.rotate(y),h>0&&m>0&&b.drawImage(f,-h/2,-m/2);function P(ue,he){const le=ue*Math.cos(y)-he*Math.sin(y),ze=ue*Math.sin(y)+he*Math.cos(y);return[le,ze]}let $=0,T=0,A=0,R=0;const B=h/2,I=m/2;[[0-B,0-I],[0+B,0-I],[0+B,0+I],[0-B,0+I]].forEach(([ue,he])=>{const[le,ze]=P(ue,he);$=Math.min($,le),T=Math.max(T,le),A=Math.min(A,ze),R=Math.max(R,ze)});const j=$+C/2,L=A+C/2,V=T-$,X=R-A,oe=s*r,K=l*r,Z=(V+oe)*2,re=X+K,[J,z]=EA(Z,re);function q(ue=0,he=0){J.drawImage(k,j,L,V,X,ue,he,V,X)}return q(),q(V+oe,-X/2-K/2),q(V+oe,+X/2+K/2),[z.toDataURL(),Z/r,re/r]}return e}const D5e=xe({name:"ElWatermark"}),j5e=xe({...D5e,props:$5e,setup(e){const t=e,n={position:"relative"},r=W(()=>{var j,L;return(L=(j=t.font)==null?void 0:j.color)!=null?L:"rgba(0,0,0,.15)"}),o=W(()=>{var j,L;return(L=(j=t.font)==null?void 0:j.fontSize)!=null?L:16}),i=W(()=>{var j,L;return(L=(j=t.font)==null?void 0:j.fontWeight)!=null?L:"normal"}),a=W(()=>{var j,L;return(L=(j=t.font)==null?void 0:j.fontStyle)!=null?L:"normal"}),s=W(()=>{var j,L;return(L=(j=t.font)==null?void 0:j.fontFamily)!=null?L:"sans-serif"}),l=W(()=>{var j,L;return(L=(j=t.font)==null?void 0:j.textAlign)!=null?L:"center"}),u=W(()=>{var j,L;return(L=(j=t.font)==null?void 0:j.textBaseline)!=null?L:"hanging"}),f=W(()=>t.gap[0]),h=W(()=>t.gap[1]),m=W(()=>f.value/2),y=W(()=>h.value/2),O=W(()=>{var j,L;return(L=(j=t.offset)==null?void 0:j[0])!=null?L:m.value}),b=W(()=>{var j,L;return(L=(j=t.offset)==null?void 0:j[1])!=null?L:y.value}),k=()=>{const j={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=O.value-m.value,V=b.value-y.value;return L>0&&(j.left=`${L}px`,j.width=`calc(100% - ${L}px)`,L=0),V>0&&(j.top=`${V}px`,j.height=`calc(100% - ${V}px)`,V=0),j.backgroundPosition=`${L}px ${V}px`,j},C=to(null),P=to(),$=ee(!1),T=()=>{P.value&&(P.value.remove(),P.value=void 0)},A=(j,L)=>{var V;C.value&&P.value&&($.value=!0,P.value.setAttribute("style",M5e({...k(),backgroundImage:`url('${j}')`,backgroundSize:`${Math.floor(L)}px`})),(V=C.value)==null||V.append(P.value),setTimeout(()=>{$.value=!1}))},R=j=>{let L=120,V=64;const X=t.image,oe=t.content,K=t.width,Z=t.height;if(!X&&j.measureText){j.font=`${Number(o.value)}px ${s.value}`;const re=Array.isArray(oe)?oe:[oe],J=re.map(z=>{const q=j.measureText(z);return[q.width,q.fontBoundingBoxAscent!==void 0?q.fontBoundingBoxAscent+q.fontBoundingBoxDescent:q.actualBoundingBoxAscent+q.actualBoundingBoxDescent]});L=Math.ceil(Math.max(...J.map(z=>z[0]))),V=Math.ceil(Math.max(...J.map(z=>z[1])))*re.length+(re.length-1)*CX}return[K!=null?K:L,Z!=null?Z:V]},B=I5e(),I=()=>{const L=document.createElement("canvas").getContext("2d"),V=t.image,X=t.content,oe=t.rotate;if(L){P.value||(P.value=document.createElement("div"));const K=R5e(),[Z,re]=R(L),J=z=>{const[q,ue]=B(z||"",oe,K,Z,re,{color:r.value,fontSize:o.value,fontStyle:a.value,fontWeight:i.value,fontFamily:s.value,textAlign:l.value,textBaseline:u.value},f.value,h.value);A(q,ue)};if(V){const z=new Image;z.onload=()=>{J(z)},z.onerror=()=>{J(X)},z.crossOrigin="anonymous",z.referrerPolicy="no-referrer",z.src=V}else J(X)}};return vn(()=>{I()}),at(()=>t,()=>{I()},{deep:!0,flush:"post"}),qr(()=>{T()}),e7(C,j=>{$.value||j.forEach(L=>{N5e(L,P.value)&&(T(),I())})},{attributes:!0,subtree:!0,childList:!0}),(j,L)=>(U(),ce("div",{ref_key:"containerRef",ref:C,style:Ft([n])},[Xe(j.$slots,"default")],4))}});var L5e=gt(j5e,[["__file","watermark.vue"]]);const B5e=gn(L5e),V5e=pt({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:Le(Object)},targetAreaClickable:{type:Boolean,default:!0}}),F5e=(e,t,n,r,o)=>{const i=ee(null),a=()=>{let h;return Gt(e.value)?h=document.querySelector(e.value):rn(e.value)?h=e.value():h=e.value,h},s=()=>{const h=a();if(!h||!t.value){i.value=null;return}!z5e(h)&&t.value&&h.scrollIntoView(o.value);const{left:m,top:y,width:O,height:b}=h.getBoundingClientRect();i.value={left:m,top:y,width:O,height:b,radius:0}};vn(()=>{at([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),qr(()=>{window.removeEventListener("resize",s)});const l=h=>{var m;return(m=Et(n.value.offset)?n.value.offset[h]:n.value.offset)!=null?m:6},u=W(()=>{var h;if(!i.value)return i.value;const m=l(0),y=l(1),O=((h=n.value)==null?void 0:h.radius)||2;return{left:i.value.left-m,top:i.value.top-y,width:i.value.width+m*2,height:i.value.height+y*2,radius:O}}),f=W(()=>{const h=a();return!r.value||!h||!window.DOMRect?h||void 0:{getBoundingClientRect(){var m,y,O,b;return window.DOMRect.fromRect({width:((m=u.value)==null?void 0:m.width)||0,height:((y=u.value)==null?void 0:y.height)||0,x:((O=u.value)==null?void 0:O.left)||0,y:((b=u.value)==null?void 0:b.top)||0})}}});return{mergedPosInfo:u,triggerTarget:f}},hE=Symbol("ElTour");function z5e(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:i,left:a}=e.getBoundingClientRect();return r>=0&&a>=0&&o<=t&&i<=n}const Q5e=(e,t,n,r,o,i,a,s)=>{const l=ee(),u=ee(),f=ee({}),h={x:l,y:u,placement:r,strategy:o,middlewareData:f},m=W(()=>{const C=[sU(v(i)),Cke(),Tke(),W5e()];return v(s)&&v(n)&&C.push(aU({element:v(n)})),C}),y=async()=>{if(!rr)return;const C=v(e),P=v(t);if(!C||!P)return;const $=await gU(C,P,{placement:v(r),strategy:v(o),middleware:v(m)});Yy(h).forEach(T=>{h[T].value=$[T]})},O=W(()=>{if(!v(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:v(a)};const{overflow:C}=v(f);return{position:v(o),zIndex:v(a),top:v(u)!=null?`${v(u)}px`:"",left:v(l)!=null?`${v(l)}px`:"",maxWidth:C!=null&&C.maxWidth?`${C==null?void 0:C.maxWidth}px`:""}}),b=W(()=>{if(!v(s))return{};const{arrow:C}=v(f);return{left:(C==null?void 0:C.x)!=null?`${C==null?void 0:C.x}px`:"",top:(C==null?void 0:C.y)!=null?`${C==null?void 0:C.y}px`:""}});let k;return vn(()=>{const C=v(e),P=v(t);C&&P&&(k=Uke(C,P,y)),Ba(()=>{y()})}),qr(()=>{k&&k()}),{update:y,contentStyle:O,arrowStyle:b}},W5e=()=>({name:"overflow",async fn(e){const t=await UD(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Y5e=xe({name:"ElTourMask",inheritAttrs:!1}),U5e=xe({...Y5e,props:V5e,setup(e){const t=e,{ns:n}=$t(hE),r=W(()=>{var s,l;return(l=(s=t.pos)==null?void 0:s.radius)!=null?l:2}),o=W(()=>{const s=r.value,l=`a${s},${s} 0 0 1`;return{topRight:`${l} ${s},${s}`,bottomRight:`${l} ${-s},${s}`,bottomLeft:`${l} ${-s},${-s}`,topLeft:`${l} ${s},${-s}`}}),i=W(()=>{const s=window.innerWidth,l=window.innerHeight,u=o.value,f=`M${s},0 L0,0 L0,${l} L${s},${l} L${s},0 Z`,h=r.value;return t.pos?`${f} M${t.pos.left+h},${t.pos.top} h${t.pos.width-h*2} ${u.topRight} v${t.pos.height-h*2} ${u.bottomRight} h${-t.pos.width+h*2} ${u.bottomLeft} v${-t.pos.height+h*2} ${u.topLeft} z`:f}),a=W(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return RD(Tr(t,"visible"),{ns:n}),(s,l)=>s.visible?(U(),ce("div",Dn({key:0,class:v(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:s.zIndex,pointerEvents:s.pos&&s.targetAreaClickable?"none":"auto"}},s.$attrs),[(U(),ce("svg",{style:{width:"100%",height:"100%"}},[ge("path",{class:G(v(n).e("hollow")),style:Ft(v(a)),d:v(i)},null,14,["d"])]))],16)):Fe("v-if",!0)}});var H5e=gt(U5e,[["__file","mask.vue"]]);const Z5e=["absolute","fixed"],X5e=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],U3=pt({placement:{type:Le(String),values:X5e,default:"bottom"},reference:{type:Le(Object),default:null},strategy:{type:Le(String),values:Z5e,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),q5e={close:()=>!0},K5e=xe({name:"ElTourContent"}),G5e=xe({...K5e,props:U3,emits:q5e,setup(e,{emit:t}){const n=e,r=ee(n.placement),o=ee(n.strategy),i=ee(null),a=ee(null);at(()=>n.placement,()=>{r.value=n.placement});const{contentStyle:s,arrowStyle:l}=Q5e(Tr(n,"reference"),i,a,r,o,Tr(n,"offset"),Tr(n,"zIndex"),Tr(n,"showArrow")),u=W(()=>r.value.split("-")[0]),{ns:f}=$t(hE),h=()=>{t("close")},m=y=>{y.detail.focusReason==="pointer"&&y.preventDefault()};return(y,O)=>(U(),ce("div",{ref_key:"contentRef",ref:i,style:Ft(v(s)),class:G(v(f).e("content")),"data-side":v(u),tabindex:"-1"},[ne(v(Q1),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:h,onFocusoutPrevented:m},{default:se(()=>[Xe(y.$slots,"default")]),_:3},8,["focus-trap-el"]),y.showArrow?(U(),ce("span",{key:0,ref_key:"arrowRef",ref:a,style:Ft(v(l)),class:G(v(f).e("arrow"))},null,6)):Fe("v-if",!0)],14,["data-side"]))}});var J5e=gt(G5e,[["__file","content.vue"]]),e6e=xe({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var o,i;const a=(o=t.default)==null?void 0:o.call(t),s=[];let l=0;function u(f){!Et(f)||f.forEach(h=>{var m;((m=(h==null?void 0:h.type)||{})==null?void 0:m.name)==="ElTourStep"&&(s.push(h),l+=1)})}return a.length&&u(Zh((i=a[0])==null?void 0:i.children)),r!==l&&(r=l,n("update-total",l)),s.length?s[e.current]:null}}});const t6e=pt({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Wr},placement:U3.placement,contentStyle:{type:Le([Object])},mask:{type:Le([Boolean,Object]),default:!0},gap:{type:Le(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:Le([Boolean,Object]),default:()=>({block:"center"})},type:{type:Le(String)},appendTo:{type:Le([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),n6e={[Tn]:e=>qo(e),["update:current"]:e=>tn(e),close:e=>tn(e),finish:()=>!0,change:e=>tn(e)},r6e=xe({name:"ElTour"}),o6e=xe({...r6e,props:t6e,emits:n6e,setup(e,{emit:t}){const n=e,r=ut("tour"),o=ee(0),i=ee(),a=t7(n,"current",t,{passive:!0}),s=W(()=>{var N;return(N=i.value)==null?void 0:N.target}),l=W(()=>[r.b(),k.value==="primary"?r.m("primary"):""]),u=W(()=>{var N;return((N=i.value)==null?void 0:N.placement)||n.placement}),f=W(()=>{var N,j;return(j=(N=i.value)==null?void 0:N.contentStyle)!=null?j:n.contentStyle}),h=W(()=>{var N,j;return(j=(N=i.value)==null?void 0:N.mask)!=null?j:n.mask}),m=W(()=>!!h.value&&n.modelValue),y=W(()=>qo(h.value)?void 0:h.value),O=W(()=>{var N,j;return!!s.value&&((j=(N=i.value)==null?void 0:N.showArrow)!=null?j:n.showArrow)}),b=W(()=>{var N,j;return(j=(N=i.value)==null?void 0:N.scrollIntoViewOptions)!=null?j:n.scrollIntoViewOptions}),k=W(()=>{var N,j;return(j=(N=i.value)==null?void 0:N.type)!=null?j:n.type}),{nextZIndex:C}=k0(),P=C(),$=W(()=>{var N;return(N=n.zIndex)!=null?N:P}),{mergedPosInfo:T,triggerTarget:A}=F5e(s,Tr(n,"modelValue"),Tr(n,"gap"),h,b);at(()=>n.modelValue,N=>{N||(a.value=0)});const R=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",a.value))},B=N=>{o.value=N},I=Ui();return Yn(hE,{currentStep:i,current:a,total:o,showClose:Tr(n,"showClose"),closeIcon:Tr(n,"closeIcon"),mergedType:k,ns:r,slots:I,updateModelValue(N){t("update:modelValue",N)},onClose(){t("close",a.value)},onFinish(){t("finish")},onChange(){t("change",a.value)}}),(N,j)=>(U(),ce(Pt,null,[ne(v(E0),{to:N.appendTo},{default:se(()=>{var L,V;return[ge("div",Dn({class:v(l)},N.$attrs),[ne(H5e,{visible:v(m),fill:(L=v(y))==null?void 0:L.color,style:Ft((V=v(y))==null?void 0:V.style),pos:v(T),"z-index":v($),"target-area-clickable":N.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),N.modelValue?(U(),Qe(J5e,{key:v(a),reference:v(A),placement:v(u),"show-arrow":v(O),"z-index":v($),style:Ft(v(f)),onClose:R},{default:se(()=>[ne(v(e6e),{current:v(a),onUpdateTotal:B},{default:se(()=>[Xe(N.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):Fe("v-if",!0)],16)]}),_:3},8,["to"]),Fe(" just for IDE "),Fe("v-if",!0)],64))}});var i6e=gt(o6e,[["__file","tour.vue"]]);const a6e=pt({target:{type:Le([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Wr},showArrow:{type:Boolean,default:void 0},placement:U3.placement,mask:{type:Le([Boolean,Object]),default:void 0},contentStyle:{type:Le([Object])},prevButtonProps:{type:Le(Object)},nextButtonProps:{type:Le(Object)},scrollIntoViewOptions:{type:Le([Boolean,Object]),default:void 0},type:{type:Le(String)}}),s6e={close:()=>!0},l6e=xe({name:"ElTourStep"}),u6e=xe({...l6e,props:a6e,emits:s6e,setup(e,{emit:t}){const n=e,{Close:r}=TD,{t:o}=ir(),{currentStep:i,current:a,total:s,showClose:l,closeIcon:u,mergedType:f,ns:h,slots:m,updateModelValue:y,onClose:O,onFinish:b,onChange:k}=$t(hE);at(n,I=>{i.value=I},{immediate:!0});const C=W(()=>{var I;return(I=n.showClose)!=null?I:l.value}),P=W(()=>{var I,N;return(N=(I=n.closeIcon)!=null?I:u.value)!=null?N:r}),$=I=>{if(!!I)return KW(I,["children","onClick"])},T=()=>{var I,N;a.value-=1,(I=n.prevButtonProps)!=null&&I.onClick&&((N=n.prevButtonProps)==null||N.onClick()),k()},A=()=>{var I;a.value>=s.value-1?R():a.value+=1,(I=n.nextButtonProps)!=null&&I.onClick&&n.nextButtonProps.onClick(),k()},R=()=>{B(),b()},B=()=>{y(!1),O(),t("close")};return(I,N)=>(U(),ce(Pt,null,[v(C)?(U(),ce("button",{key:0,"aria-label":"Close",class:G(v(h).e("closebtn")),type:"button",onClick:B},[ne(v(Lt),{class:G(v(h).e("close"))},{default:se(()=>[(U(),Qe(jn(v(P))))]),_:1},8,["class"])],2)):Fe("v-if",!0),ge("header",{class:G([v(h).e("header"),{"show-close":v(l)}])},[Xe(I.$slots,"header",{},()=>[ge("span",{role:"heading",class:G(v(h).e("title"))},ct(I.title),3)])],2),ge("div",{class:G(v(h).e("body"))},[Xe(I.$slots,"default",{},()=>[ge("span",null,ct(I.description),1)])],2),ge("footer",{class:G(v(h).e("footer"))},[ge("div",{class:G(v(h).b("indicators"))},[v(m).indicators?(U(),Qe(jn(v(m).indicators),{key:0,current:v(a),total:v(s)},null,8,["current","total"])):(U(!0),ce(Pt,{key:1},_n(v(s),(j,L)=>(U(),ce("span",{key:j,class:G([v(h).b("indicator"),L===v(a)?"is-active":""])},null,2))),128))],2),ge("div",{class:G(v(h).b("buttons"))},[v(a)>0?(U(),Qe(v(io),Dn({key:0,size:"small",type:v(f)},$(I.prevButtonProps),{onClick:T}),{default:se(()=>{var j,L;return[xt(ct((L=(j=I.prevButtonProps)==null?void 0:j.children)!=null?L:v(o)("el.tour.previous")),1)]}),_:1},16,["type"])):Fe("v-if",!0),v(a)<=v(s)-1?(U(),Qe(v(io),Dn({key:1,size:"small",type:v(f)==="primary"?"default":"primary"},$(I.nextButtonProps),{onClick:A}),{default:se(()=>{var j,L;return[xt(ct((L=(j=I.nextButtonProps)==null?void 0:j.children)!=null?L:v(a)===v(s)-1?v(o)("el.tour.finish"):v(o)("el.tour.next")),1)]}),_:1},16,["type"])):Fe("v-if",!0)],2)],2)],64))}});var EX=gt(u6e,[["__file","step.vue"]]);const c6e=gn(i6e,{TourStep:EX}),f6e=Co(EX),d6e=pt({container:{type:Le([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:Le(String),default:"default"},direction:{type:Le(String),default:"vertical"}}),h6e={change:e=>Gt(e),click:(e,t)=>e instanceof MouseEvent&&(Gt(t)||zo(t))},TX=Symbol("anchor"),p6e=xe({name:"ElAnchor"}),g6e=xe({...p6e,props:d6e,emits:h6e,setup(e,{expose:t,emit:n}){const r=e,o=ee(""),i=ee(null),a=ee(null),s=ee(),l={};let u=!1,f=0;const h=ut("anchor"),m=W(()=>[h.b(),r.type==="underline"?h.m("underline"):"",h.m(r.direction)]),y=I=>{l[I.href]=I.el},O=I=>{delete l[I]},b=I=>{o.value!==I&&(o.value=I,n("change",I))};let k=null;const C=I=>{if(!s.value)return;const N=wx(I);if(!N)return;k&&k(),u=!0;const j=N6(N,s.value),L=SM(N,j),V=j.scrollHeight-j.clientHeight,X=Math.min(L-r.offset,V);k=Twe(s.value,f,X,r.duration,()=>{setTimeout(()=>{u=!1},20)})},P=I=>{I&&(b(I),C(I))},$=(I,N)=>{n("click",I,N),P(N)},T=ZSe(()=>{s.value&&(f=I6(s.value));const I=A();u||zo(I)||b(I)}),A=()=>{if(!s.value)return;const I=I6(s.value),N=[];for(const j of Object.keys(l)){const L=wx(j);if(!L)continue;const V=N6(L,s.value),X=SM(L,V);N.push({top:X-r.offset-r.bound,href:j})}N.sort((j,L)=>j.top-L.top);for(let j=0;j<N.length;j++){const L=N[j],V=N[j+1];if(j===0&&I===0)return"";if(L.top<=I&&(!V||V.top>I))return L.href}},R=()=>{const I=wx(r.container);!I||Y2(I)?s.value=window:s.value=I};Nr(s,"scroll",T);const B=W(()=>{if(!i.value||!a.value||!o.value)return{};const I=l[o.value];if(!I)return{};const N=i.value.getBoundingClientRect(),j=a.value.getBoundingClientRect(),L=I.getBoundingClientRect();return r.direction==="horizontal"?{left:`${L.left-N.left}px`,width:`${L.width}px`,opacity:1}:{top:`${L.top-N.top+(L.height-j.height)/2}px`,opacity:1}});return vn(()=>{R();const I=decodeURIComponent(window.location.hash);wx(I)?P(I):T()}),at(()=>r.container,()=>{R()}),Yn(TX,{ns:h,direction:r.direction,currentAnchor:o,addLink:y,removeLink:O,handleClick:$}),t({scrollTo:P}),(I,N)=>(U(),ce("div",{ref_key:"anchorRef",ref:i,class:G(v(m))},[I.marker?(U(),ce("div",{key:0,ref_key:"markerRef",ref:a,class:G(v(h).e("marker")),style:Ft(v(B))},null,6)):Fe("v-if",!0),ge("div",{class:G(v(h).e("list"))},[Xe(I.$slots,"default")],2)],2))}});var m6e=gt(g6e,[["__file","anchor.vue"]]);const v6e=pt({title:String,href:String}),y6e=xe({name:"ElAnchorLink"}),b6e=xe({...y6e,props:v6e,setup(e){const t=e,n=ee(null),{ns:r,direction:o,currentAnchor:i,addLink:a,removeLink:s,handleClick:l}=$t(TX),u=W(()=>[r.e("link"),r.is("active",i.value===t.href)]),f=h=>{l(h,t.href)};return at(()=>t.href,(h,m)=>{Wt(()=>{m&&s(m),h&&a({href:h,el:n.value})})}),vn(()=>{const{href:h}=t;h&&a({href:h,el:n.value})}),qr(()=>{const{href:h}=t;h&&s(h)}),(h,m)=>(U(),ce("div",{class:G(v(r).e("item"))},[ge("a",{ref_key:"linkRef",ref:n,class:G(v(u)),href:h.href,onClick:f},[Xe(h.$slots,"default",{},()=>[xt(ct(h.title),1)])],10,["href"]),h.$slots["sub-link"]&&v(o)==="vertical"?(U(),ce("div",{key:0,class:G(v(r).e("list"))},[Xe(h.$slots,"sub-link")],2)):Fe("v-if",!0)],2))}});var PX=gt(b6e,[["__file","anchor-link.vue"]]);const _6e=gn(m6e,{AnchorLink:PX}),O6e=Co(PX),w6e=pt({options:{type:Le(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:Ni,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...va(["ariaLabel"])}),S6e={[Tn]:e=>Gt(e)||tn(e)||qo(e),[uo]:e=>Gt(e)||tn(e)||qo(e)},x6e=xe({name:"ElSegmented"}),k6e=xe({...x6e,props:w6e,emits:S6e,setup(e,{emit:t}){const n=e,r=ut("segmented"),o=Fa(),i=wi(),a=Ls(),{formItem:s}=cs(),{inputId:l,isLabeledByFormItem:u}=Cc(n,{formItemContext:s}),f=ee(null),h=Tse(),m=or({isInit:!1,width:0,translateX:0,disabled:!1,focusVisible:!1}),y=N=>{const j=O(N);t(Tn,j),t(uo,j)},O=N=>$n(N)?N.value:N,b=N=>$n(N)?N.label:N,k=N=>!!(a.value||($n(N)?N.disabled:!1)),C=N=>n.modelValue===O(N),P=N=>n.options.find(j=>O(j)===N),$=N=>[r.e("item"),r.is("selected",C(N)),r.is("disabled",k(N))],T=()=>{if(!f.value)return;const N=f.value.querySelector(".is-selected"),j=f.value.querySelector(".is-selected input");if(!N||!j){m.width=0,m.translateX=0,m.disabled=!1,m.focusVisible=!1;return}const L=N.getBoundingClientRect();m.isInit=!0,m.width=L.width,m.translateX=N.offsetLeft,m.disabled=k(P(n.modelValue));try{m.focusVisible=j.matches(":focus-visible")}catch{}},A=W(()=>[r.b(),r.m(i.value),r.is("block",n.block)]),R=W(()=>({width:`${m.width}px`,transform:`translateX(${m.translateX}px)`,display:m.isInit?"block":"none"})),B=W(()=>[r.e("item-selected"),r.is("disabled",m.disabled),r.is("focus-visible",m.focusVisible)]),I=W(()=>n.name||o.value);return So(f,T),at(h,T),at(()=>n.modelValue,()=>{var N;T(),n.validateEvent&&((N=s==null?void 0:s.validate)==null||N.call(s,"change").catch(j=>void 0))},{flush:"post"}),(N,j)=>(U(),ce("div",{id:v(l),ref_key:"segmentedRef",ref:f,class:G(v(A)),role:"radiogroup","aria-label":v(u)?void 0:N.ariaLabel||"segmented","aria-labelledby":v(u)?v(s).labelId:void 0},[ge("div",{class:G(v(r).e("group"))},[ge("div",{style:Ft(v(R)),class:G(v(B))},null,6),(U(!0),ce(Pt,null,_n(N.options,(L,V)=>(U(),ce("label",{key:V,class:G($(L))},[ge("input",{class:G(v(r).e("item-input")),type:"radio",name:v(I),disabled:k(L),checked:C(L),onChange:X=>y(L)},null,42,["name","disabled","checked","onChange"]),ge("div",{class:G(v(r).e("item-label"))},[Xe(N.$slots,"default",{item:L},()=>[xt(ct(b(L)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"]))}});var C6e=gt(k6e,[["__file","segmented.vue"]]);const E6e=gn(C6e),T6e=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},P6e=(e,t,n)=>{const{selectionEnd:r}=e;if(r===null)return;const o=e.value,i=Da(t);let a=-1,s;for(let l=r-1;l>=0;--l){const u=o[l];if(u===n||u===`
- `||u==="\r"){a=l;continue}if(i.includes(u)){const f=a===-1?r:a;s={pattern:o.slice(l+1,f),start:l+1,end:f,prefix:u,prefixIndex:l,splitIndex:a,selectionEnd:r};break}}return s},$6e=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const m=document.querySelector("#input-textarea-caret-position-mirror-div");m!=null&&m.parentNode&&m.parentNode.removeChild(m)}const a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);const s=a.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";s.whiteSpace=u?"nowrap":"pre-wrap",u||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),i.forEach(m=>{if(u&&m==="lineHeight")if(l.boxSizing==="border-box"){const y=Number.parseInt(l.height),O=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),b=O+Number.parseInt(l.lineHeight);y>b?s.lineHeight=`${y-O}px`:y===b?s.lineHeight=l.lineHeight:s.lineHeight="0"}else s.lineHeight=l.height;else s[m]=l[m]}),OI()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",a.textContent=e.value.slice(0,Math.max(0,o)),u&&a.textContent&&(a.textContent=a.textContent.replace(/\s/g,"\xA0"));const f=document.createElement("span");f.textContent=e.value.slice(Math.max(0,o))||".",f.style.position="relative",f.style.left=`${-e.scrollLeft}px`,f.style.top=`${-e.scrollTop}px`,a.appendChild(f);const h={top:f.offsetTop+Number.parseInt(l.borderTopWidth),left:f.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?f.style.backgroundColor="#aaa":document.body.removeChild(a),h.left>=e.clientWidth&&(h.left=e.clientWidth),h},A6e=pt({...GD,options:{type:Le(Array),default:()=>[]},prefix:{type:Le([String,Array]),default:"@",validator:e=>Gt(e)?e.length===1:e.every(t=>Gt(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:Le([Boolean,Function]),default:()=>T6e,validator:e=>e===!1?!0:rn(e)},placement:{type:Le(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Le(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Le(Object),default:()=>({})}}),M6e={[Tn]:e=>Gt(e),search:(e,t)=>Gt(e)&&Gt(t),select:(e,t)=>Gt(e.value)&&Gt(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},R6e=pt({options:{type:Le(Array),default:()=>[]},loading:Boolean,disabled:Boolean}),N6e={select:e=>Gt(e.value)},I6e=xe({name:"ElMentionDropdown"}),D6e=xe({...I6e,props:R6e,emits:N6e,setup(e,{expose:t,emit:n}){const r=e,o=ut("mention"),{t:i}=ir(),a=ee(-1),s=ee(),l=ee(),u=ee(),f=($,T)=>[o.be("dropdown","item"),o.is("hovering",a.value===T),o.is("disabled",$.disabled||r.disabled)],h=$=>{$.disabled||r.disabled||n("select",$)},m=$=>{a.value=$},y=W(()=>r.disabled||r.options.every($=>$.disabled)),O=W(()=>r.options[a.value]),b=()=>{!O.value||n("select",O.value)},k=$=>{const{options:T}=r;if(T.length===0||y.value)return;$==="next"?(a.value++,a.value===T.length&&(a.value=0)):$==="prev"&&(a.value--,a.value<0&&(a.value=T.length-1));const A=T[a.value];if(A.disabled){k($);return}Wt(()=>C(A))},C=$=>{var T,A,R,B;const{options:I}=r,N=I.findIndex(L=>L.value===$.value),j=(T=l.value)==null?void 0:T[N];if(j){const L=(R=(A=u.value)==null?void 0:A.querySelector)==null?void 0:R.call(A,`.${o.be("dropdown","wrap")}`);L&&wD(L,j)}(B=s.value)==null||B.handleScroll()};return at(()=>r.options,()=>{y.value||r.options.length===0?a.value=-1:a.value=0},{immediate:!0}),t({navigateOptions:k,selectHoverOption:b,hoverOption:O}),($,T)=>(U(),ce("div",{ref_key:"dropdownRef",ref:u,class:G(v(o).b("dropdown"))},[$.$slots.header?(U(),ce("div",{key:0,class:G(v(o).be("dropdown","header"))},[Xe($.$slots,"header")],2)):Fe("v-if",!0),bn(ne(v(Ec),{ref_key:"scrollbarRef",ref:s,tag:"ul","wrap-class":v(o).be("dropdown","wrap"),"view-class":v(o).be("dropdown","list")},{default:se(()=>[(U(!0),ce(Pt,null,_n($.options,(A,R)=>(U(),ce("li",{ref_for:!0,ref_key:"optionRefs",ref:l,key:A.value,class:G(f(A,R)),onMouseenter:B=>m(R),onClick:nn(B=>h(A),["stop"])},[Xe($.$slots,"label",{item:A,index:R},()=>{var B;return[ge("span",null,ct((B=A.label)!=null?B:A.value),1)]})],42,["onMouseenter","onClick"]))),128))]),_:3},8,["wrap-class","view-class"]),[[gr,$.options.length>0&&!$.loading]]),$.loading?(U(),ce("div",{key:1,class:G(v(o).be("dropdown","loading"))},[Xe($.$slots,"loading",{},()=>[xt(ct(v(i)("el.mention.loading")),1)])],2)):Fe("v-if",!0),$.$slots.footer?(U(),ce("div",{key:2,class:G(v(o).be("dropdown","footer"))},[Xe($.$slots,"footer")],2)):Fe("v-if",!0)],2))}});var j6e=gt(D6e,[["__file","mention-dropdown.vue"]]);const L6e=xe({name:"ElMention"}),B6e=xe({...L6e,props:A6e,emits:M6e,setup(e,{expose:t,emit:n}){const r=e,o=W(()=>_u(r,Object.keys(GD))),i=ut("mention"),a=ee(),s=ee(),l=ee(),u=ee(!1),f=ee(),h=ee(),m=W(()=>r.showArrow?r.placement:`${r.placement}-start`),y=W(()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"]),O=W(()=>{const{filterOption:I,options:N}=r;return!h.value||!I?N:N.filter(j=>I(h.value.pattern,j))}),b=I=>{n("update:modelValue",I),A()},k=I=>{var N,j,L,V;if("key"in I&&!((N=a.value)!=null&&N.isComposing)){if(["ArrowLeft","ArrowRight"].includes(I.key))A();else if(["ArrowUp","ArrowDown"].includes(I.key)){if(!u.value)return;I.preventDefault();const X=I.key==="ArrowUp"?"prev":"next";(j=l.value)==null||j.navigateOptions(X)}else if(["Enter"].includes(I.key)){if(!u.value)return;I.preventDefault(),(L=l.value)!=null&&L.hoverOption?(V=l.value)==null||V.selectHoverOption():u.value=!1}else if(["Backspace"].includes(I.key)&&r.whole&&h.value){const{splitIndex:X,selectionEnd:oe,pattern:K,prefixIndex:Z,prefix:re}=h.value,J=T();if(!J)return;const z=J.value,q=r.options.find(he=>he.value===K);if((rn(r.checkIsWhole)?r.checkIsWhole(K,re):q)&&X!==-1&&X+1===oe){I.preventDefault();const he=z.slice(0,Z)+z.slice(X+1);n(Tn,he);const le=Z;Wt(()=>{J.selectionStart=le,J.selectionEnd=le,B()})}}}},{wrapperRef:C}=F1(a,{afterFocus(){A()},beforeBlur(I){var N;return(N=s.value)==null?void 0:N.isFocusInsideContent(I)},afterBlur(){u.value=!1}}),P=()=>{A()},$=I=>{if(!h.value)return;const N=T();if(!N)return;const j=N.value,{split:L}=r,V=j.slice(h.value.end),X=V.startsWith(L),oe=`${I.value}${X?"":L}`,K=j.slice(0,h.value.start)+oe+V;n(Tn,K),n("select",I,h.value.prefix);const Z=h.value.start+oe.length+(X?1:0);Wt(()=>{N.selectionStart=Z,N.selectionEnd=Z,N.focus(),B()})},T=()=>{var I,N;return r.type==="textarea"?(I=a.value)==null?void 0:I.textarea:(N=a.value)==null?void 0:N.input},A=()=>{setTimeout(()=>{R(),B(),Wt(()=>{var I;return(I=s.value)==null?void 0:I.updatePopper()})},0)},R=()=>{const I=T();if(!I)return;const N=$6e(I),j=I.getBoundingClientRect(),L=a.value.$el.getBoundingClientRect();f.value={position:"absolute",width:0,height:`${N.height}px`,left:`${N.left+j.left-L.left}px`,top:`${N.top+j.top-L.top}px`}},B=()=>{const I=T();if(document.activeElement!==I){u.value=!1;return}const{prefix:N,split:j}=r;if(h.value=P6e(I,N,j),h.value&&h.value.splitIndex===-1){u.value=!0,n("search",h.value.pattern,h.value.prefix);return}u.value=!1};return t({input:a,tooltip:s}),(I,N)=>(U(),ce("div",{ref_key:"wrapperRef",ref:C,class:G(v(i).b())},[ne(v(ri),Dn(Dn(v(o),I.$attrs),{ref_key:"elInputRef",ref:a,"model-value":I.modelValue,onInput:b,onKeydown:k,onMousedown:P}),Fl({_:2},[_n(I.$slots,(j,L)=>({name:L,fn:se(V=>[Xe(I.$slots,L,fc(tp(V)))])}))]),1040,["model-value"]),ne(v(ia),{ref_key:"tooltipRef",ref:s,visible:u.value&&(!!v(O).length||I.loading),"popper-class":[v(i).e("popper"),I.popperClass],"popper-options":I.popperOptions,placement:v(m),"fallback-placements":v(y),effect:"light",pure:"",offset:I.offset,"show-arrow":I.showArrow},{default:se(()=>[ge("div",{style:Ft(f.value)},null,4)]),content:se(()=>{var j;return[ne(j6e,{ref_key:"dropdownRef",ref:l,options:v(O),disabled:I.disabled,loading:I.loading,onSelect:$,onClick:nn((j=a.value)==null?void 0:j.focus,["stop"])},Fl({_:2},[_n(I.$slots,(L,V)=>({name:V,fn:se(X=>[Xe(I.$slots,V,fc(tp(X)))])}))]),1032,["options","disabled","loading","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var V6e=gt(B6e,[["__file","mention.vue"]]);const F6e=gn(V6e);var z6e=[dCe,OU,BEe,f8e,YEe,GEe,DU,cTe,fTe,io,QU,OPe,CPe,LPe,BPe,B$e,CH,Y$e,Hl,JPe,vH,cl,s3,l3,oE,FAe,oCe,JAe,eMe,tMe,nMe,rMe,QMe,JMe,eRe,Ld,qH,m3,uNe,cNe,fNe,iZ,Af,Mf,Lt,PNe,aZ,ri,sZ,VNe,aIe,sIe,lIe,uIe,gIe,S3,fDe,_De,RU,mZ,xH,d$e,f$e,$De,IDe,ul,Ec,bc,pp,VIe,v3e,k3e,C3e,J3e,oje,IZ,gje,xje,kje,W1,A3,M3,c8e,cE,fE,hp,U1,nPe,N8e,B8e,V8e,ia,fLe,xLe,_C,QLe,a5e,P5e,B5e,c6e,f6e,_6e,O6e,E6e,F6e];const gu="ElInfiniteScroll",Q6e=50,W6e=200,Y6e=0,U6e={delay:{type:Number,default:W6e},distance:{type:Number,default:Y6e},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},H3=(e,t)=>Object.entries(U6e).reduce((n,[r,o])=>{var i,a;const{type:s,default:l}=o,u=e.getAttribute(`infinite-scroll-${r}`);let f=(a=(i=t[u])!=null?i:u)!=null?a:l;return f=f==="false"?!1:f,f=s(f),n[r]=Number.isNaN(f)?l:f,n},{}),$X=e=>{const{observer:t}=e[gu];t&&(t.disconnect(),delete e[gu].observer)},H6e=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:i,lastScrollTop:a}=e[gu],{disabled:s,distance:l}=H3(e,o),{clientHeight:u,scrollHeight:f,scrollTop:h}=r,m=h-a;if(e[gu].lastScrollTop=h,i||s||m<0)return;let y=!1;if(n===e)y=f-(u+h)<=l;else{const{clientTop:O,scrollHeight:b}=e,k=SM(e,r);y=h+u>=k+O+b-l}y&&t.call(o)};function TA(e,t){const{containerEl:n,instance:r}=e[gu],{disabled:o}=H3(e,r);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):$X(e))}const Z6e={async mounted(e,t){const{instance:n,value:r}=t;rn(r)||Ri(gu,"'v-infinite-scroll' binding value must be a function"),await Wt();const{delay:o,immediate:i}=H3(e,n),a=OD(e,!0),s=a===window?document.documentElement:a,l=yd(H6e.bind(null,e,r),o);if(!!a){if(e[gu]={instance:n,container:a,containerEl:s,delay:o,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(yd(TA.bind(null,e,r),Q6e));e[gu].observer=u,u.observe(e,{childList:!0,subtree:!0}),TA(e,r)}a.addEventListener("scroll",l)}},unmounted(e){if(!e[gu])return;const{container:t,onScroll:n}=e[gu];t==null||t.removeEventListener("scroll",n),$X(e)},async updated(e){if(!e[gu])await Wt();else{const{containerEl:t,cb:n,observer:r}=e[gu];t.clientHeight&&r&&TA(e,n)}}},RR=Z6e;RR.install=e=>{e.directive("InfiniteScroll",RR)};const X6e=RR;function q6e(e){let t;const n=ee(!1),r=or({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(m){r.text=m}function i(){const m=r.parent,y=h.ns;if(!m.vLoadingAddClassList){let O=m.getAttribute("loading-number");O=Number.parseInt(O)-1,O?m.setAttribute("loading-number",O.toString()):(ls(m,y.bm("parent","relative")),m.removeAttribute("loading-number")),ls(m,y.bm("parent","hidden"))}a(),f.unmount()}function a(){var m,y;(y=(m=h.$el)==null?void 0:m.parentNode)==null||y.removeChild(h.$el)}function s(){var m;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(l,400),r.visible=!1,(m=e.closed)==null||m.call(e))}function l(){if(!n.value)return;const m=r.parent;n.value=!1,m.vLoadingAddClassList=void 0,i()}const u=xe({name:"ElLoading",setup(m,{expose:y}){const{ns:O,zIndex:b}=tE("loading");return y({ns:O,zIndex:b}),()=>{const k=r.spinner||r.svg,C=Ht("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...k?{innerHTML:k}:{}},[Ht("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),P=r.text?Ht("p",{class:O.b("text")},[r.text]):void 0;return Ht(Mi,{name:O.b("fade"),onAfterLeave:l},{default:se(()=>[bn(ne("div",{style:{backgroundColor:r.background||""},class:[O.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Ht("div",{class:O.b("spinner")},[C,P])]),[[gr,r.visible]])])})}}}),f=S2(u),h=f.mount(document.createElement("div"));return{...ra(r),setText:o,removeElLoadingChild:a,close:s,handleAfterLeave:l,vm:h,get $el(){return h.$el}}}let jx;const NR=function(e={}){if(!rr)return;const t=K6e(e);if(t.fullscreen&&jx)return jx;const n=q6e({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(jx=void 0)}});G6e(t,t.parent,n),kV(t,t.parent,n),t.parent.vLoadingAddClassList=()=>kV(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Wt(()=>n.visible.value=t.visible),t.fullscreen&&(jx=n),n},K6e=e=>{var t,n,r,o;let i;return Gt(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},G6e=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Lh(document.body,"position"),n.originalOverflow.value=Lh(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Lh(document.body,"position"),await Wt();for(const i of["top","left"]){const a=i==="top"?"scrollTop":"scrollLeft";o[i]=`${e.target.getBoundingClientRect()[i]+document.body[a]+document.documentElement[a]-Number.parseInt(Lh(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Lh(t,"position");for(const[i,a]of Object.entries(o))n.$el.style[i]=a},kV=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ls(t,r.bm("parent","relative")):Ou(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Ou(t,r.bm("parent","hidden")):ls(t,r.bm("parent","hidden"))},Tk=Symbol("ElLoading"),CV=(e,t)=>{var n,r,o,i;const a=t.instance,s=m=>$n(t.value)?t.value[m]:void 0,l=m=>{const y=Gt(m)&&(a==null?void 0:a[m])||m;return y&&ee(y)},u=m=>l(s(m)||e.getAttribute(`element-loading-${wp(m)}`)),f=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,h={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:f,target:(r=s("target"))!=null?r:f?void 0:e,body:(o=s("body"))!=null?o:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock};e[Tk]={options:h,instance:NR(h)}},J6e=(e,t)=>{for(const n of Object.keys(t))no(t[n])&&(t[n].value=e[n])},EV={mounted(e,t){t.value&&CV(e,t)},updated(e,t){const n=e[Tk];t.oldValue!==t.value&&(t.value&&!t.oldValue?CV(e,t):t.value&&t.oldValue?$n(t.value)&&J6e(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Tk])==null||t.instance.close(),e[Tk]=null}},eBe={install(e){e.directive("loading",EV),e.config.globalProperties.$loading=NR},directive:EV,service:NR},AX=["success","info","warning","error"],es=xo({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:rr?document.body:void 0}),tBe=pt({customClass:{type:String,default:es.customClass},center:{type:Boolean,default:es.center},dangerouslyUseHTMLString:{type:Boolean,default:es.dangerouslyUseHTMLString},duration:{type:Number,default:es.duration},icon:{type:Wr,default:es.icon},id:{type:String,default:es.id},message:{type:Le([String,Object,Function]),default:es.message},onClose:{type:Le(Function),default:es.onClose},showClose:{type:Boolean,default:es.showClose},type:{type:String,values:AX,default:es.type},plain:{type:Boolean,default:es.plain},offset:{type:Number,default:es.offset},zIndex:{type:Number,default:es.zIndex},grouping:{type:Boolean,default:es.grouping},repeatNum:{type:Number,default:es.repeatNum}}),nBe={destroy:()=>!0},hc=oQ([]),rBe=e=>{const t=hc.findIndex(o=>o.id===e),n=hc[t];let r;return t>0&&(r=hc[t-1]),{current:n,prev:r}},oBe=e=>{const{prev:t}=rBe(e);return t?t.vm.exposed.bottom.value:0},iBe=(e,t)=>hc.findIndex(r=>r.id===e)>0?16:t,aBe=xe({name:"ElMessage"}),sBe=xe({...aBe,props:tBe,emits:nBe,setup(e,{expose:t}){const n=e,{Close:r}=PD,{ns:o,zIndex:i}=tE("message"),{currentZIndex:a,nextZIndex:s}=i,l=ee(),u=ee(!1),f=ee(0);let h;const m=W(()=>n.type?n.type==="error"?"danger":n.type:"info"),y=W(()=>{const B=n.type;return{[o.bm("icon",B)]:B&&cp[B]}}),O=W(()=>n.icon||cp[n.type]||""),b=W(()=>oBe(n.id)),k=W(()=>iBe(n.id,n.offset)+b.value),C=W(()=>f.value+k.value),P=W(()=>({top:`${k.value}px`,zIndex:a.value}));function $(){n.duration!==0&&({stop:h}=dm(()=>{A()},n.duration))}function T(){h==null||h()}function A(){u.value=!1}function R({code:B}){B===Yt.esc&&A()}return vn(()=>{$(),s(),u.value=!0}),at(()=>n.repeatNum,()=>{T(),$()}),Nr(document,"keydown",R),So(l,()=>{f.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:C,close:A}),(B,I)=>(U(),Qe(Mi,{name:v(o).b("fade"),onBeforeLeave:B.onClose,onAfterLeave:N=>B.$emit("destroy"),persisted:""},{default:se(()=>[bn(ge("div",{id:B.id,ref_key:"messageRef",ref:l,class:G([v(o).b(),{[v(o).m(B.type)]:B.type},v(o).is("center",B.center),v(o).is("closable",B.showClose),v(o).is("plain",B.plain),B.customClass]),style:Ft(v(P)),role:"alert",onMouseenter:T,onMouseleave:$},[B.repeatNum>1?(U(),Qe(v(DU),{key:0,value:B.repeatNum,type:v(m),class:G(v(o).e("badge"))},null,8,["value","type","class"])):Fe("v-if",!0),v(O)?(U(),Qe(v(Lt),{key:1,class:G([v(o).e("icon"),v(y)])},{default:se(()=>[(U(),Qe(jn(v(O))))]),_:1},8,["class"])):Fe("v-if",!0),Xe(B.$slots,"default",{},()=>[B.dangerouslyUseHTMLString?(U(),ce(Pt,{key:1},[Fe(" Caution here, message could've been compromised, never use user's input as message "),ge("p",{class:G(v(o).e("content")),innerHTML:B.message},null,10,["innerHTML"])],2112)):(U(),ce("p",{key:0,class:G(v(o).e("content"))},ct(B.message),3))]),B.showClose?(U(),Qe(v(Lt),{key:2,class:G(v(o).e("closeBtn")),onClick:nn(A,["stop"])},{default:se(()=>[ne(v(r))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],46,["id"]),[[gr,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var lBe=gt(sBe,[["__file","message.vue"]]);let uBe=1;const MX=e=>{const t=!e||Gt(e)||wo(e)||rn(e)?{message:e}:e,n={...es,...t};if(!n.appendTo)n.appendTo=document.body;else if(Gt(n.appendTo)){let r=document.querySelector(n.appendTo);Ll(r)||(r=document.body),n.appendTo=r}return n},cBe=e=>{const t=hc.indexOf(e);if(t===-1)return;hc.splice(t,1);const{handler:n}=e;n.close()},fBe=({appendTo:e,...t},n)=>{const r=`message_${uBe++}`,o=t.onClose,i=document.createElement("div"),a={...t,id:r,onClose:()=>{o==null||o(),cBe(f)},onDestroy:()=>{np(null,i)}},s=ne(lBe,a,rn(a.message)||wo(a.message)?{default:rn(a.message)?a.message:()=>a.message}:null);s.appContext=n||r0._context,np(s,i),e.appendChild(i.firstElementChild);const l=s.component,f={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return f},r0=(e={},t)=>{if(!rr)return{close:()=>{}};if(tn(zM.max)&&hc.length>=zM.max)return{close:()=>{}};const n=MX(e);if(n.grouping&&hc.length){const o=hc.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const r=fBe(n,t);return hc.push(r),r.handler};AX.forEach(e=>{r0[e]=(t={},n)=>{const r=MX(t);return r0({...r,type:e},n)}});function dBe(e){for(const t of hc)(!e||e===t.props.type)&&t.handler.close()}r0.closeAll=dBe;r0._context=null;const Fi=jY(r0,"$message"),hBe=xe({name:"ElMessageBox",directives:{TrapFocus:FTe},components:{ElButton:io,ElFocusTrap:Q1,ElInput:ri,ElOverlay:g3,ElIcon:Lt,...PD},inheritAttrs:!1,props:{buttonSize:{type:String,validator:LY},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:i}=tE("message-box",W(()=>e.buttonSize)),{t:a}=n,{nextZIndex:s}=r,l=ee(!1),u=or({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,confirmButtonLoadingIcon:md(yf),cancelButtonLoadingIcon:md(yf),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),f=W(()=>{const Z=u.type;return{[o.bm("icon",Z)]:Z&&cp[Z]}}),h=Fa(),m=Fa(),y=W(()=>u.icon||cp[u.type]||""),O=W(()=>!!u.message),b=ee(),k=ee(),C=ee(),P=ee(),$=ee(),T=W(()=>u.confirmButtonClass);at(()=>u.inputValue,async Z=>{await Wt(),e.boxType==="prompt"&&Z!==null&&V()},{immediate:!0}),at(()=>l.value,Z=>{var re,J;Z&&(e.boxType!=="prompt"&&(u.autofocus?C.value=(J=(re=$.value)==null?void 0:re.$el)!=null?J:b.value:C.value=b.value),u.zIndex=s()),e.boxType==="prompt"&&(Z?Wt().then(()=>{var z;P.value&&P.value.$el&&(u.autofocus?C.value=(z=X())!=null?z:b.value:C.value=b.value)}):(u.editorErrorMessage="",u.validateError=!1))});const A=W(()=>e.draggable),R=W(()=>e.overflow);BY(b,k,A,R),vn(async()=>{await Wt(),e.closeOnHashChange&&window.addEventListener("hashchange",B)}),qr(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",B)});function B(){!l.value||(l.value=!1,Wt(()=>{u.action&&t("action",u.action)}))}const I=()=>{e.closeOnClickModal&&L(u.distinguishCancelAndClose?"close":"cancel")},N=zD(I),j=Z=>{if(u.inputType!=="textarea")return Z.preventDefault(),L("confirm")},L=Z=>{var re;e.boxType==="prompt"&&Z==="confirm"&&!V()||(u.action=Z,u.beforeClose?(re=u.beforeClose)==null||re.call(u,Z,u,B):B())},V=()=>{if(e.boxType==="prompt"){const Z=u.inputPattern;if(Z&&!Z.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const re=u.inputValidator;if(typeof re=="function"){const J=re(u.inputValue);if(J===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof J=="string")return u.editorErrorMessage=J,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},X=()=>{const Z=P.value.$refs;return Z.input||Z.textarea},oe=()=>{L("close")},K=()=>{e.closeOnPressEscape&&oe()};return e.lockScroll&&RD(l),{...ra(u),ns:o,overlayEvent:N,visible:l,hasMessage:O,typeClass:f,contentId:h,inputId:m,btnSize:i,iconComponent:y,confirmButtonClasses:T,rootRef:b,focusStartRef:C,headerRef:k,inputRef:P,confirmRef:$,doClose:B,handleClose:oe,onCloseRequested:K,handleWrapperClick:I,handleInputEnter:j,handleAction:L,t:a}}});function pBe(e,t,n,r,o,i){const a=Pn("el-icon"),s=Pn("close"),l=Pn("el-input"),u=Pn("el-button"),f=Pn("el-focus-trap"),h=Pn("el-overlay");return U(),Qe(Mi,{name:"fade-in-linear",onAfterLeave:m=>e.$emit("vanish"),persisted:""},{default:se(()=>[bn(ne(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:se(()=>[ge("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:G(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[ne(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:se(()=>[ge("div",{ref:"rootRef",class:G([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ft(e.customStyle),tabindex:"-1",onClick:nn(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(U(),ce("div",{key:0,ref:"headerRef",class:G([e.ns.e("header"),{"show-close":e.showClose}])},[ge("div",{class:G(e.ns.e("title"))},[e.iconComponent&&e.center?(U(),Qe(a,{key:0,class:G([e.ns.e("status"),e.typeClass])},{default:se(()=>[(U(),Qe(jn(e.iconComponent)))]),_:1},8,["class"])):Fe("v-if",!0),ge("span",null,ct(e.title),1)],2),e.showClose?(U(),ce("button",{key:0,type:"button",class:G(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Qr(nn(m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[ne(a,{class:G(e.ns.e("close"))},{default:se(()=>[ne(s)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):Fe("v-if",!0)],2)):Fe("v-if",!0),ge("div",{id:e.contentId,class:G(e.ns.e("content"))},[ge("div",{class:G(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(U(),Qe(a,{key:0,class:G([e.ns.e("status"),e.typeClass])},{default:se(()=>[(U(),Qe(jn(e.iconComponent)))]),_:1},8,["class"])):Fe("v-if",!0),e.hasMessage?(U(),ce("div",{key:1,class:G(e.ns.e("message"))},[Xe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(U(),Qe(jn(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(U(),Qe(jn(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:se(()=>[xt(ct(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Fe("v-if",!0)],2),bn(ge("div",{class:G(e.ns.e("input"))},[ne(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":m=>e.inputValue=m,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:G({invalid:e.validateError}),onKeydown:Qr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ge("div",{class:G(e.ns.e("errormsg")),style:Ft({visibility:e.editorErrorMessage?"visible":"hidden"})},ct(e.editorErrorMessage),7)],2),[[gr,e.showInput]])],10,["id"]),ge("div",{class:G(e.ns.e("btns"))},[e.showCancelButton?(U(),Qe(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:G([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:m=>e.handleAction("cancel"),onKeydown:Qr(nn(m=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:se(()=>[xt(ct(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):Fe("v-if",!0),bn(ne(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:G([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:m=>e.handleAction("confirm"),onKeydown:Qr(nn(m=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:se(()=>[xt(ct(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[gr,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[gr,e.visible]])]),_:3},8,["onAfterLeave"])}var gBe=gt(hBe,[["render",pBe],["__file","index.vue"]]);const e1=new Map,mBe=e=>{let t=document.body;return e.appendTo&&(Gt(e.appendTo)&&(t=document.querySelector(e.appendTo)),Ll(e.appendTo)&&(t=e.appendTo),Ll(t)||(t=document.body)),t},vBe=(e,t,n=null)=>{const r=ne(gBe,e,rn(e.message)||wo(e.message)?{default:rn(e.message)?e.message:()=>e.message}:null);return r.appContext=n,np(r,t),mBe(e).appendChild(t.firstElementChild),r.component},yBe=()=>document.createElement("div"),bBe=(e,t)=>{const n=yBe();e.onVanish=()=>{np(null,n),e1.delete(o)},e.onAction=i=>{const a=e1.get(o);let s;e.showInput?s={value:o.inputValue,action:i}:s=i,e.callback?e.callback(s,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(s)};const r=vBe(e,n,t),o=r.proxy;for(const i in e)sr(e,i)&&!sr(o.$props,i)&&(o[i]=e[i]);return o.visible=!0,o};function $0(e,t=null){if(!rr)return Promise.reject();let n;return Gt(e)||wo(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const i=bBe(e,t!=null?t:$0._context);e1.set(i,{options:e,callback:n,resolve:r,reject:o})})}const _Be=["alert","confirm","prompt"],OBe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};_Be.forEach(e=>{$0[e]=wBe(e)});function wBe(e){return(t,n,r,o)=>{let i="";return $n(n)?(r=n,i=""):zo(n)?i="":i=n,$0(Object.assign({title:i,message:t,type:"",...OBe[e]},r,{boxType:e}),o)}}$0.close=()=>{e1.forEach((e,t)=>{t.doClose()}),e1.clear()};$0._context=null;const Rh=$0;Rh.install=e=>{Rh._context=e._context,e.config.globalProperties.$msgbox=Rh,e.config.globalProperties.$messageBox=Rh,e.config.globalProperties.$alert=Rh.alert,e.config.globalProperties.$confirm=Rh.confirm,e.config.globalProperties.$prompt=Rh.prompt};const SBe=Rh,RX=["success","info","warning","error"],xBe=pt({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Wr},id:{type:String,default:""},message:{type:Le([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Le(Function),default:()=>{}},onClose:{type:Le(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...RX,""],default:""},zIndex:Number}),kBe={destroy:()=>!0},CBe=xe({name:"ElNotification"}),EBe=xe({...CBe,props:xBe,emits:kBe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=tE("notification"),{nextZIndex:i,currentZIndex:a}=o,{Close:s}=TD,l=ee(!1);let u;const f=W(()=>{const $=n.type;return $&&cp[n.type]?r.m($):""}),h=W(()=>n.type&&cp[n.type]||n.icon),m=W(()=>n.position.endsWith("right")?"right":"left"),y=W(()=>n.position.startsWith("top")?"top":"bottom"),O=W(()=>{var $;return{[y.value]:`${n.offset}px`,zIndex:($=n.zIndex)!=null?$:a.value}});function b(){n.duration>0&&({stop:u}=dm(()=>{l.value&&C()},n.duration))}function k(){u==null||u()}function C(){l.value=!1}function P({code:$}){$===Yt.delete||$===Yt.backspace?k():$===Yt.esc?l.value&&C():b()}return vn(()=>{b(),i(),l.value=!0}),Nr(document,"keydown",P),t({visible:l,close:C}),($,T)=>(U(),Qe(Mi,{name:v(r).b("fade"),onBeforeLeave:$.onClose,onAfterLeave:A=>$.$emit("destroy"),persisted:""},{default:se(()=>[bn(ge("div",{id:$.id,class:G([v(r).b(),$.customClass,v(m)]),style:Ft(v(O)),role:"alert",onMouseenter:k,onMouseleave:b,onClick:$.onClick},[v(h)?(U(),Qe(v(Lt),{key:0,class:G([v(r).e("icon"),v(f)])},{default:se(()=>[(U(),Qe(jn(v(h))))]),_:1},8,["class"])):Fe("v-if",!0),ge("div",{class:G(v(r).e("group"))},[ge("h2",{class:G(v(r).e("title")),textContent:ct($.title)},null,10,["textContent"]),bn(ge("div",{class:G(v(r).e("content")),style:Ft($.title?void 0:{margin:0})},[Xe($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(U(),ce(Pt,{key:1},[Fe(" Caution here, message could've been compromised, never use user's input as message "),ge("p",{innerHTML:$.message},null,8,["innerHTML"])],2112)):(U(),ce("p",{key:0},ct($.message),1))])],6),[[gr,$.message]]),$.showClose?(U(),Qe(v(Lt),{key:0,class:G(v(r).e("closeBtn")),onClick:nn(C,["stop"])},{default:se(()=>[ne(v(s))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],2)],46,["id","onClick"]),[[gr,l.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var TBe=gt(EBe,[["__file","notification.vue"]]);const OC={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},IR=16;let PBe=1;const o0=function(e={},t=null){if(!rr)return{close:()=>{}};(typeof e=="string"||wo(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;OC[n].forEach(({vm:f})=>{var h;r+=(((h=f.el)==null?void 0:h.offsetHeight)||0)+IR}),r+=IR;const o=`notification_${PBe++}`,i=e.onClose,a={...e,offset:r,id:o,onClose:()=>{$Be(o,n,i)}};let s=document.body;Ll(e.appendTo)?s=e.appendTo:Gt(e.appendTo)&&(s=document.querySelector(e.appendTo)),Ll(s)||(s=document.body);const l=document.createElement("div"),u=ne(TBe,a,wo(a.message)?{default:()=>a.message}:null);return u.appContext=t!=null?t:o0._context,u.props.onDestroy=()=>{np(null,l)},np(u,l),OC[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};RX.forEach(e=>{o0[e]=(t={})=>((typeof t=="string"||wo(t))&&(t={message:t}),o0({...t,type:e}))});function $Be(e,t,n){const r=OC[t],o=r.findIndex(({vm:u})=>{var f;return((f=u.component)==null?void 0:f.props.id)===e});if(o===-1)return;const{vm:i}=r[o];if(!i)return;n==null||n(i);const a=i.el.offsetHeight,s=t.split("-")[0];r.splice(o,1);const l=r.length;if(!(l<1))for(let u=o;u<l;u++){const{el:f,component:h}=r[u].vm,m=Number.parseInt(f.style[s],10)-a-IR;h.props.offset=m}}function ABe(){for(const e of Object.values(OC))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}o0.closeAll=ABe;o0._context=null;const MBe=jY(o0,"$notify");var RBe=[X6e,eBe,Fi,SBe,MBe,gZ],NBe=aCe([...z6e,...RBe]),IBe={name:"zh-cn",el:{breadcrumb:{label:"\u9762\u5305\u5C51"},colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A",defaultLabel:"\u989C\u8272\u9009\u62E9\u5668",description:"\u5F53\u524D\u989C\u8272 {color}\uFF0C\u6309 Enter \u952E\u9009\u62E9\u65B0\u989C\u8272",alphaLabel:"\u9009\u62E9\u900F\u660E\u5EA6\u7684\u503C"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",dateTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u65E5\u671F",monthTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u6708\u4EFD",yearTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u5E74\u4EFD",selectedDate:"\u5DF2\u9009\u65E5\u671F",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},weeksFull:{sun:"\u661F\u671F\u65E5",mon:"\u661F\u671F\u4E00",tue:"\u661F\u671F\u4E8C",wed:"\u661F\u671F\u4E09",thu:"\u661F\u671F\u56DB",fri:"\u661F\u671F\u4E94",sat:"\u661F\u671F\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},inputNumber:{decrease:"\u51CF\u5C11\u6570\u503C",increase:"\u589E\u52A0\u6570\u503C"},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},dropdown:{toggleDropdown:"\u5207\u6362\u4E0B\u62C9\u9009\u9879"},mention:{loading:"\u52A0\u8F7D\u4E2D"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",page:"\u9875",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",currentPage:"\u7B2C {pager} \u9875",prevPages:"\u5411\u524D {pager} \u9875",nextPages:"\u5411\u540E {pager} \u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},dialog:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},drawer:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!",close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},slider:{defaultLabel:"\u6ED1\u5757\u4ECB\u4E8E {min} \u81F3 {max}",defaultRangeStartLabel:"\u9009\u62E9\u8D77\u59CB\u503C",defaultRangeEndLabel:"\u9009\u62E9\u7ED3\u675F\u503C"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tour:{next:"\u4E0B\u4E00\u6B65",previous:"\u4E0A\u4E00\u6B65",finish:"\u7ED3\u675F\u5BFC\u89C8"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},carousel:{leftArrow:"\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",rightArrow:"\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",indicator:"\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"}}},Kt={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=r,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:s})},o.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var l in i)o.d(s,l,function(u){return i[u]}.bind(null,l));return s},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=221)}([function(n,r,o){o.d(r,"a",function(){return A}),o.d(r,"b",function(){return T}),o.d(r,"c",function(){return Be}),o.d(r,"d",function(){return Ae}),o.d(r,"e",function(){return C}),o.d(r,"f",function(){return $}),o.d(r,"g",function(){return C}),o.d(r,"h",function(){return Ee}),o.d(r,"i",function(){return a}),o.d(r,"j",function(){return ze}),o.d(r,"k",function(){return V});var i,a,s,l,u,f,h,m={},y=[],O=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(_e,ve){for(var Ne in ve)_e[Ne]=ve[Ne];return _e}function k(_e){var ve=_e.parentNode;ve&&ve.removeChild(_e)}function C(_e,ve,Ne){var Se,fe,ye,He={};for(ye in ve)ye=="key"?Se=ve[ye]:ye=="ref"?fe=ve[ye]:He[ye]=ve[ye];if(arguments.length>2&&(He.children=arguments.length>3?i.call(arguments,2):Ne),typeof _e=="function"&&_e.defaultProps!=null)for(ye in _e.defaultProps)He[ye]===void 0&&(He[ye]=_e.defaultProps[ye]);return P(_e,He,Se,fe,null)}function P(_e,ve,Ne,Se,fe){var ye={type:_e,props:ve,key:Ne,ref:Se,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:fe==null?++s:fe};return fe==null&&a.vnode!=null&&a.vnode(ye),ye}function $(){return{current:null}}function T(_e){return _e.children}function A(_e,ve){this.props=_e,this.context=ve}function R(_e,ve){if(ve==null)return _e.__?R(_e.__,_e.__.__k.indexOf(_e)+1):null;for(var Ne;ve<_e.__k.length;ve++)if((Ne=_e.__k[ve])!=null&&Ne.__e!=null)return Ne.__e;return typeof _e.type=="function"?R(_e):null}function B(_e){var ve,Ne;if((_e=_e.__)!=null&&_e.__c!=null){for(_e.__e=_e.__c.base=null,ve=0;ve<_e.__k.length;ve++)if((Ne=_e.__k[ve])!=null&&Ne.__e!=null){_e.__e=_e.__c.base=Ne.__e;break}return B(_e)}}function I(_e){(!_e.__d&&(_e.__d=!0)&&l.push(_e)&&!N.__r++||f!==a.debounceRendering)&&((f=a.debounceRendering)||u)(N)}function N(){for(var _e;N.__r=l.length;)_e=l.sort(function(ve,Ne){return ve.__v.__b-Ne.__v.__b}),l=[],_e.some(function(ve){var Ne,Se,fe,ye,He,be;ve.__d&&(He=(ye=(Ne=ve).__v).__e,(be=Ne.__P)&&(Se=[],(fe=b({},ye)).__v=ye.__v+1,J(be,ye,fe,Ne.__n,be.ownerSVGElement!==void 0,ye.__h!=null?[He]:null,Se,He==null?R(ye):He,ye.__h),z(Se,ye),ye.__e!=He&&B(ye)))})}function j(_e,ve,Ne,Se,fe,ye,He,be,Ie,De){var Me,qe,Oe,Je,lt,Ke,et,bt=Se&&Se.__k||y,Ot=bt.length;for(Ne.__k=[],Me=0;Me<ve.length;Me++)if((Je=Ne.__k[Me]=(Je=ve[Me])==null||typeof Je=="boolean"?null:typeof Je=="string"||typeof Je=="number"||typeof Je=="bigint"?P(null,Je,null,null,Je):Array.isArray(Je)?P(T,{children:Je},null,null,null):Je.__b>0?P(Je.type,Je.props,Je.key,null,Je.__v):Je)!=null){if(Je.__=Ne,Je.__b=Ne.__b+1,(Oe=bt[Me])===null||Oe&&Je.key==Oe.key&&Je.type===Oe.type)bt[Me]=void 0;else for(qe=0;qe<Ot;qe++){if((Oe=bt[qe])&&Je.key==Oe.key&&Je.type===Oe.type){bt[qe]=void 0;break}Oe=null}J(_e,Je,Oe=Oe||m,fe,ye,He,be,Ie,De),lt=Je.__e,(qe=Je.ref)&&Oe.ref!=qe&&(et||(et=[]),Oe.ref&&et.push(Oe.ref,null,Je),et.push(qe,Je.__c||lt,Je)),lt!=null?(Ke==null&&(Ke=lt),typeof Je.type=="function"&&Je.__k===Oe.__k?Je.__d=Ie=L(Je,Ie,_e):Ie=X(_e,Je,Oe,bt,lt,Ie),typeof Ne.type=="function"&&(Ne.__d=Ie)):Ie&&Oe.__e==Ie&&Ie.parentNode!=_e&&(Ie=R(Oe))}for(Ne.__e=Ke,Me=Ot;Me--;)bt[Me]!=null&&(typeof Ne.type=="function"&&bt[Me].__e!=null&&bt[Me].__e==Ne.__d&&(Ne.__d=R(Se,Me+1)),he(bt[Me],bt[Me]));if(et)for(Me=0;Me<et.length;Me++)ue(et[Me],et[++Me],et[++Me])}function L(_e,ve,Ne){for(var Se,fe=_e.__k,ye=0;fe&&ye<fe.length;ye++)(Se=fe[ye])&&(Se.__=_e,ve=typeof Se.type=="function"?L(Se,ve,Ne):X(Ne,Se,Se,fe,Se.__e,ve));return ve}function V(_e,ve){return ve=ve||[],_e==null||typeof _e=="boolean"||(Array.isArray(_e)?_e.some(function(Ne){V(Ne,ve)}):ve.push(_e)),ve}function X(_e,ve,Ne,Se,fe,ye){var He,be,Ie;if(ve.__d!==void 0)He=ve.__d,ve.__d=void 0;else if(Ne==null||fe!=ye||fe.parentNode==null)e:if(ye==null||ye.parentNode!==_e)_e.appendChild(fe),He=null;else{for(be=ye,Ie=0;(be=be.nextSibling)&&Ie<Se.length;Ie+=2)if(be==fe)break e;_e.insertBefore(fe,ye),He=ye}return He!==void 0?He:fe.nextSibling}function oe(_e,ve,Ne){ve[0]==="-"?_e.setProperty(ve,Ne):_e[ve]=Ne==null?"":typeof Ne!="number"||O.test(ve)?Ne:Ne+"px"}function K(_e,ve,Ne,Se,fe){var ye;e:if(ve==="style")if(typeof Ne=="string")_e.style.cssText=Ne;else{if(typeof Se=="string"&&(_e.style.cssText=Se=""),Se)for(ve in Se)Ne&&ve in Ne||oe(_e.style,ve,"");if(Ne)for(ve in Ne)Se&&Ne[ve]===Se[ve]||oe(_e.style,ve,Ne[ve])}else if(ve[0]==="o"&&ve[1]==="n")ye=ve!==(ve=ve.replace(/Capture$/,"")),ve=ve.toLowerCase()in _e?ve.toLowerCase().slice(2):ve.slice(2),_e.l||(_e.l={}),_e.l[ve+ye]=Ne,Ne?Se||_e.addEventListener(ve,ye?re:Z,ye):_e.removeEventListener(ve,ye?re:Z,ye);else if(ve!=="dangerouslySetInnerHTML"){if(fe)ve=ve.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(ve!=="href"&&ve!=="list"&&ve!=="form"&&ve!=="tabIndex"&&ve!=="download"&&ve in _e)try{_e[ve]=Ne==null?"":Ne;break e}catch{}typeof Ne=="function"||(Ne!=null&&(Ne!==!1||ve[0]==="a"&&ve[1]==="r")?_e.setAttribute(ve,Ne):_e.removeAttribute(ve))}}function Z(_e){this.l[_e.type+!1](a.event?a.event(_e):_e)}function re(_e){this.l[_e.type+!0](a.event?a.event(_e):_e)}function J(_e,ve,Ne,Se,fe,ye,He,be,Ie){var De,Me,qe,Oe,Je,lt,Ke,et,bt,Ot,Qt,kt=ve.type;if(ve.constructor!==void 0)return null;Ne.__h!=null&&(Ie=Ne.__h,be=ve.__e=Ne.__e,ve.__h=null,ye=[be]),(De=a.__b)&&De(ve);try{e:if(typeof kt=="function"){if(et=ve.props,bt=(De=kt.contextType)&&Se[De.__c],Ot=De?bt?bt.props.value:De.__:Se,Ne.__c?Ke=(Me=ve.__c=Ne.__c).__=Me.__E:("prototype"in kt&&kt.prototype.render?ve.__c=Me=new kt(et,Ot):(ve.__c=Me=new A(et,Ot),Me.constructor=kt,Me.render=le),bt&&bt.sub(Me),Me.props=et,Me.state||(Me.state={}),Me.context=Ot,Me.__n=Se,qe=Me.__d=!0,Me.__h=[]),Me.__s==null&&(Me.__s=Me.state),kt.getDerivedStateFromProps!=null&&(Me.__s==Me.state&&(Me.__s=b({},Me.__s)),b(Me.__s,kt.getDerivedStateFromProps(et,Me.__s))),Oe=Me.props,Je=Me.state,qe)kt.getDerivedStateFromProps==null&&Me.componentWillMount!=null&&Me.componentWillMount(),Me.componentDidMount!=null&&Me.__h.push(Me.componentDidMount);else{if(kt.getDerivedStateFromProps==null&&et!==Oe&&Me.componentWillReceiveProps!=null&&Me.componentWillReceiveProps(et,Ot),!Me.__e&&Me.shouldComponentUpdate!=null&&Me.shouldComponentUpdate(et,Me.__s,Ot)===!1||ve.__v===Ne.__v){Me.props=et,Me.state=Me.__s,ve.__v!==Ne.__v&&(Me.__d=!1),Me.__v=ve,ve.__e=Ne.__e,ve.__k=Ne.__k,ve.__k.forEach(function(an){an&&(an.__=ve)}),Me.__h.length&&He.push(Me);break e}Me.componentWillUpdate!=null&&Me.componentWillUpdate(et,Me.__s,Ot),Me.componentDidUpdate!=null&&Me.__h.push(function(){Me.componentDidUpdate(Oe,Je,lt)})}Me.context=Ot,Me.props=et,Me.state=Me.__s,(De=a.__r)&&De(ve),Me.__d=!1,Me.__v=ve,Me.__P=_e,De=Me.render(Me.props,Me.state,Me.context),Me.state=Me.__s,Me.getChildContext!=null&&(Se=b(b({},Se),Me.getChildContext())),qe||Me.getSnapshotBeforeUpdate==null||(lt=Me.getSnapshotBeforeUpdate(Oe,Je)),Qt=De!=null&&De.type===T&&De.key==null?De.props.children:De,j(_e,Array.isArray(Qt)?Qt:[Qt],ve,Ne,Se,fe,ye,He,be,Ie),Me.base=ve.__e,ve.__h=null,Me.__h.length&&He.push(Me),Ke&&(Me.__E=Me.__=null),Me.__e=!1}else ye==null&&ve.__v===Ne.__v?(ve.__k=Ne.__k,ve.__e=Ne.__e):ve.__e=q(Ne.__e,ve,Ne,Se,fe,ye,He,Ie);(De=a.diffed)&&De(ve)}catch(an){ve.__v=null,(Ie||ye!=null)&&(ve.__e=be,ve.__h=!!Ie,ye[ye.indexOf(be)]=null),a.__e(an,ve,Ne)}}function z(_e,ve){a.__c&&a.__c(ve,_e),_e.some(function(Ne){try{_e=Ne.__h,Ne.__h=[],_e.some(function(Se){Se.call(Ne)})}catch(Se){a.__e(Se,Ne.__v)}})}function q(_e,ve,Ne,Se,fe,ye,He,be){var Ie,De,Me,qe=Ne.props,Oe=ve.props,Je=ve.type,lt=0;if(Je==="svg"&&(fe=!0),ye!=null){for(;lt<ye.length;lt++)if((Ie=ye[lt])&&"setAttribute"in Ie==!!Je&&(Je?Ie.localName===Je:Ie.nodeType===3)){_e=Ie,ye[lt]=null;break}}if(_e==null){if(Je===null)return document.createTextNode(Oe);_e=fe?document.createElementNS("http://www.w3.org/2000/svg",Je):document.createElement(Je,Oe.is&&Oe),ye=null,be=!1}if(Je===null)qe===Oe||be&&_e.data===Oe||(_e.data=Oe);else{if(ye=ye&&i.call(_e.childNodes),De=(qe=Ne.props||m).dangerouslySetInnerHTML,Me=Oe.dangerouslySetInnerHTML,!be){if(ye!=null)for(qe={},lt=0;lt<_e.attributes.length;lt++)qe[_e.attributes[lt].name]=_e.attributes[lt].value;(Me||De)&&(Me&&(De&&Me.__html==De.__html||Me.__html===_e.innerHTML)||(_e.innerHTML=Me&&Me.__html||""))}if(function(Ke,et,bt,Ot,Qt){var kt;for(kt in bt)kt==="children"||kt==="key"||kt in et||K(Ke,kt,null,bt[kt],Ot);for(kt in et)Qt&&typeof et[kt]!="function"||kt==="children"||kt==="key"||kt==="value"||kt==="checked"||bt[kt]===et[kt]||K(Ke,kt,et[kt],bt[kt],Ot)}(_e,Oe,qe,fe,be),Me)ve.__k=[];else if(lt=ve.props.children,j(_e,Array.isArray(lt)?lt:[lt],ve,Ne,Se,fe&&Je!=="foreignObject",ye,He,ye?ye[0]:Ne.__k&&R(Ne,0),be),ye!=null)for(lt=ye.length;lt--;)ye[lt]!=null&&k(ye[lt]);be||("value"in Oe&&(lt=Oe.value)!==void 0&&(lt!==qe.value||lt!==_e.value||Je==="progress"&&!lt)&&K(_e,"value",lt,qe.value,!1),"checked"in Oe&&(lt=Oe.checked)!==void 0&<!==_e.checked&&K(_e,"checked",lt,qe.checked,!1))}return _e}function ue(_e,ve,Ne){try{typeof _e=="function"?_e(ve):_e.current=ve}catch(Se){a.__e(Se,Ne)}}function he(_e,ve,Ne){var Se,fe;if(a.unmount&&a.unmount(_e),(Se=_e.ref)&&(Se.current&&Se.current!==_e.__e||ue(Se,null,ve)),(Se=_e.__c)!=null){if(Se.componentWillUnmount)try{Se.componentWillUnmount()}catch(ye){a.__e(ye,ve)}Se.base=Se.__P=null}if(Se=_e.__k)for(fe=0;fe<Se.length;fe++)Se[fe]&&he(Se[fe],ve,typeof _e.type!="function");Ne||_e.__e==null||k(_e.__e),_e.__e=_e.__d=void 0}function le(_e,ve,Ne){return this.constructor(_e,Ne)}function ze(_e,ve,Ne){var Se,fe,ye;a.__&&a.__(_e,ve),fe=(Se=typeof Ne=="function")?null:Ne&&Ne.__k||ve.__k,ye=[],J(ve,_e=(!Se&&Ne||ve).__k=C(T,null,[_e]),fe||m,m,ve.ownerSVGElement!==void 0,!Se&&Ne?[Ne]:fe?null:ve.firstChild?i.call(ve.childNodes):null,ye,!Se&&Ne?Ne:fe?fe.__e:ve.firstChild,Se),z(ye,_e)}function Ee(_e,ve){ze(_e,ve,Ee)}function Be(_e,ve,Ne){var Se,fe,ye,He=b({},_e.props);for(ye in ve)ye=="key"?Se=ve[ye]:ye=="ref"?fe=ve[ye]:He[ye]=ve[ye];return arguments.length>2&&(He.children=arguments.length>3?i.call(arguments,2):Ne),P(_e.type,He,Se||_e.key,fe||_e.ref,null)}function Ae(_e,ve){var Ne={__c:ve="__cC"+h++,__:_e,Consumer:function(Se,fe){return Se.children(fe)},Provider:function(Se){var fe,ye;return this.getChildContext||(fe=[],(ye={})[ve]=this,this.getChildContext=function(){return ye},this.shouldComponentUpdate=function(He){this.props.value!==He.value&&fe.some(I)},this.sub=function(He){fe.push(He);var be=He.componentWillUnmount;He.componentWillUnmount=function(){fe.splice(fe.indexOf(He),1),be&&be.call(He)}}),Se.children}};return Ne.Provider.__=Ne.Consumer.contextType=Ne}i=y.slice,a={__e:function(_e,ve){for(var Ne,Se,fe;ve=ve.__;)if((Ne=ve.__c)&&!Ne.__)try{if((Se=Ne.constructor)&&Se.getDerivedStateFromError!=null&&(Ne.setState(Se.getDerivedStateFromError(_e)),fe=Ne.__d),Ne.componentDidCatch!=null&&(Ne.componentDidCatch(_e),fe=Ne.__d),fe)return Ne.__E=Ne}catch(ye){_e=ye}throw _e}},s=0,A.prototype.setState=function(_e,ve){var Ne;Ne=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof _e=="function"&&(_e=_e(b({},Ne),this.props)),_e&&b(Ne,_e),_e!=null&&this.__v&&(ve&&this.__h.push(ve),I(this))},A.prototype.forceUpdate=function(_e){this.__v&&(this.__e=!0,_e&&this.__h.push(_e),I(this))},A.prototype.render=T,l=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,N.__r=0,h=0},function(n,r,o){(function(i,a){o.d(r,"a",function(){return I}),o.d(r,"b",function(){return Zp}),o.d(r,"c",function(){return Go}),o.d(r,"d",function(){return Xt}),o.d(r,"e",function(){return Ze}),o.d(r,"f",function(){return ke}),o.d(r,"g",function(){return qt}),o.d(r,"h",function(){return yl}),o.d(r,"i",function(){return Qt}),o.d(r,"j",function(){return It}),o.d(r,"k",function(){return Xl}),o.d(r,"l",function(){return Lp}),o.d(r,"m",function(){return Ke}),o.d(r,"n",function(){return Ac}),o.d(r,"o",function(){return L}),o.d(r,"p",function(){return Qm}),o.d(r,"q",function(){return ql}),o.d(r,"r",function(){return zd}),o.d(r,"s",function(){return gs}),o.d(r,"t",function(){return Wo}),o.d(r,"u",function(){return Fd}),o.d(r,"v",function(){return zm}),o.d(r,"w",function(){return Qp}),o.d(r,"x",function(){return Mc}),o.d(r,"y",function(){return ps}),o.d(r,"z",function(){return li}),o.d(r,"A",function(){return Ea}),o.d(r,"B",function(){return hl}),o.d(r,"C",function(){return De}),o.d(r,"D",function(){return Wm}),o.d(r,"E",function(){return Kr}),o.d(r,"F",function(){return Gr}),o.d(r,"G",function(){return Dp}),o.d(r,"H",function(){return Di}),o.d(r,"I",function(){return Wp}),o.d(r,"J",function(){return gi}),o.d(r,"K",function(){return Ye}),o.d(r,"L",function(){return fo}),o.d(r,"M",function(){return Wd});var s=[];Object.freeze(s);var l={};function u(){return++On.mobxGuid}function f(Q){throw h(!1,Q),"X"}function h(Q,Y){if(!Q)throw new Error("[mobx] "+(Y||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(l);function m(Q){var Y=!1;return function(){if(!Y)return Y=!0,Q.apply(this,arguments)}}var y=function(){};function O(Q){return Q!==null&&typeof Q=="object"}function b(Q){if(Q===null||typeof Q!="object")return!1;var Y=Object.getPrototypeOf(Q);return Y===Object.prototype||Y===null}function k(Q,Y,ae){Object.defineProperty(Q,Y,{enumerable:!1,writable:!0,configurable:!0,value:ae})}function C(Q,Y){var ae="isMobX"+Q;return Y.prototype[ae]=!0,function(Te){return O(Te)&&Te[ae]===!0}}function P(Q){return Q instanceof Map}function $(Q){return Q instanceof Set}function T(Q){var Y=new Set;for(var ae in Q)Y.add(ae);return Object.getOwnPropertySymbols(Q).forEach(function(Te){Object.getOwnPropertyDescriptor(Q,Te).enumerable&&Y.add(Te)}),Array.from(Y)}function A(Q){return Q&&Q.toString?Q.toString():new String(Q).toString()}function R(Q){return Q===null?null:typeof Q=="object"?""+Q:Q}var B=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(Q){return Object.getOwnPropertyNames(Q).concat(Object.getOwnPropertySymbols(Q))}:Object.getOwnPropertyNames,I=Symbol("mobx administration"),N=function(){function Q(Y){Y===void 0&&(Y="Atom@"+u()),this.name=Y,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=qe.NOT_TRACKING}return Q.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(Y){return Y()})},Q.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(Y){return Y()})},Q.prototype.reportObserved=function(){return Zi(this)},Q.prototype.reportChanged=function(){Un(),function(Y){Y.lowestObserverState!==qe.STALE&&(Y.lowestObserverState=qe.STALE,Y.observers.forEach(function(ae){ae.dependenciesState===qe.UP_TO_DATE&&(ae.isTracing!==Oe.NONE&&si(ae,Y),ae.onBecomeStale()),ae.dependenciesState=qe.STALE}))}(this),hr()},Q.prototype.toString=function(){return this.name},Q}(),j=C("Atom",N);function L(Q,Y,ae){Y===void 0&&(Y=y),ae===void 0&&(ae=y);var Te,We=new N(Q);return Y!==y&&Vm("onBecomeObserved",We,Y,Te),ae!==y&&Kr(We,ae),We}var V={identity:function(Q,Y){return Q===Y},structural:function(Q,Y){return Mt(Q,Y)},default:function(Q,Y){return Object.is(Q,Y)},shallow:function(Q,Y){return Mt(Q,Y,1)}},X=function(Q,Y){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,Te){ae.__proto__=Te}||function(ae,Te){for(var We in Te)Te.hasOwnProperty(We)&&(ae[We]=Te[We])},X(Q,Y)};/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var oe=function(){return oe=Object.assign||function(Q){for(var Y,ae=1,Te=arguments.length;ae<Te;ae++)for(var We in Y=arguments[ae])Object.prototype.hasOwnProperty.call(Y,We)&&(Q[We]=Y[We]);return Q},oe.apply(this,arguments)};function K(Q){var Y=typeof Symbol=="function"&&Q[Symbol.iterator],ae=0;return Y?Y.call(Q):{next:function(){return Q&&ae>=Q.length&&(Q=void 0),{value:Q&&Q[ae++],done:!Q}}}}function Z(Q,Y){var ae=typeof Symbol=="function"&&Q[Symbol.iterator];if(!ae)return Q;var Te,We,st=ae.call(Q),wt=[];try{for(;(Y===void 0||Y-- >0)&&!(Te=st.next()).done;)wt.push(Te.value)}catch(Ut){We={error:Ut}}finally{try{Te&&!Te.done&&(ae=st.return)&&ae.call(st)}finally{if(We)throw We.error}}return wt}function re(){for(var Q=[],Y=0;Y<arguments.length;Y++)Q=Q.concat(Z(arguments[Y]));return Q}var J=Symbol("mobx did run lazy initializers"),z=Symbol("mobx pending decorators"),q={},ue={};function he(Q,Y){var ae=Y?q:ue;return ae[Q]||(ae[Q]={configurable:!0,enumerable:Y,get:function(){return le(this),this[Q]},set:function(Te){le(this),this[Q]=Te}})}function le(Q){var Y,ae;if(Q[J]!==!0){var Te=Q[z];if(Te){k(Q,J,!0);var We=re(Object.getOwnPropertySymbols(Te),Object.keys(Te));try{for(var st=K(We),wt=st.next();!wt.done;wt=st.next()){var Ut=Te[wt.value];Ut.propertyCreator(Q,Ut.prop,Ut.descriptor,Ut.decoratorTarget,Ut.decoratorArguments)}}catch(yn){Y={error:yn}}finally{try{wt&&!wt.done&&(ae=st.return)&&ae.call(st)}finally{if(Y)throw Y.error}}}}}function ze(Q,Y){return function(){var ae,Te=function(We,st,wt,Ut){if(Ut===!0)return Y(We,st,wt,We,ae),null;if(!Object.prototype.hasOwnProperty.call(We,z)){var yn=We[z];k(We,z,oe({},yn))}return We[z][st]={prop:st,propertyCreator:Y,descriptor:wt,decoratorTarget:We,decoratorArguments:ae},he(st,Q)};return Ee(arguments)?(ae=s,Te.apply(null,arguments)):(ae=Array.prototype.slice.call(arguments),Te)}}function Ee(Q){return(Q.length===2||Q.length===3)&&(typeof Q[1]=="string"||typeof Q[1]=="symbol")||Q.length===4&&Q[3]===!0}function Be(Q,Y,ae){return Mc(Q)?Q:Array.isArray(Q)?De.array(Q,{name:ae}):b(Q)?De.object(Q,void 0,{name:ae}):P(Q)?De.map(Q,{name:ae}):$(Q)?De.set(Q,{name:ae}):Q}function Ae(Q){return Q}function _e(Q){h(Q);var Y=ze(!0,function(Te,We,st,wt,Ut){var yn=st?st.initializer?st.initializer.call(Te):st.value:void 0;Ya(Te).addObservableProp(We,yn,Q)}),ae=(i!==void 0&&i.env,Y);return ae.enhancer=Q,ae}var ve={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ne(Q){return Q==null?ve:typeof Q=="string"?{name:Q,deep:!0,proxy:!0}:Q}Object.freeze(ve);var Se=_e(Be),fe=_e(function(Q,Y,ae){return Q==null||Ea(Q)||ps(Q)||li(Q)||ua(Q)?Q:Array.isArray(Q)?De.array(Q,{name:ae,deep:!1}):b(Q)?De.object(Q,void 0,{name:ae,deep:!1}):P(Q)?De.map(Q,{name:ae,deep:!1}):$(Q)?De.set(Q,{name:ae,deep:!1}):f(!1)}),ye=_e(Ae),He=_e(function(Q,Y,ae){return Mt(Q,Y)?Y:Q});function be(Q){return Q.defaultDecorator?Q.defaultDecorator.enhancer:Q.deep===!1?Ae:Be}var Ie={box:function(Q,Y){arguments.length>2&&Me("box");var ae=Ne(Y);return new ro(Q,be(ae),ae.name,!0,ae.equals)},array:function(Q,Y){arguments.length>2&&Me("array");var ae=Ne(Y);return Ff(Q,be(ae),ae.name)},map:function(Q,Y){arguments.length>2&&Me("map");var ae=Ne(Y);return new Zp(Q,be(ae),ae.name)},set:function(Q,Y){arguments.length>2&&Me("set");var ae=Ne(Y);return new ml(Q,be(ae),ae.name)},object:function(Q,Y,ae){typeof arguments[1]=="string"&&Me("object");var Te=Ne(ae);if(Te.proxy===!1)return ql({},Q,Y,Te);var We=Bp(Te),st=ql({},void 0,void 0,Te),wt=Rc(st);return Fm(wt,Q,Y,We),wt},ref:ye,shallow:fe,deep:Se,struct:He},De=function(Q,Y,ae){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return Se.apply(null,arguments);if(Mc(Q))return Q;var Te=b(Q)?De.object(Q,Y,ae):Array.isArray(Q)?De.array(Q,Y):P(Q)?De.map(Q,Y):$(Q)?De.set(Q,Y):Q;if(Te!==Q)return Te;f(!1)};function Me(Q){f("Expected one or two arguments to observable."+Q+". Did you accidentally try to use observable."+Q+" as decorator?")}Object.keys(Ie).forEach(function(Q){return De[Q]=Ie[Q]});var qe,Oe,Je=ze(!1,function(Q,Y,ae,Te,We){var st=ae.get,wt=ae.set,Ut=We[0]||{};Ya(Q).addComputedProp(Q,Y,oe({get:st,set:wt,context:Q},Ut))}),lt=Je({equals:V.structural}),Ke=function(Q,Y,ae){if(typeof Y=="string"||Q!==null&&typeof Q=="object"&&arguments.length===1)return Je.apply(null,arguments);var Te=typeof Y=="object"?Y:{};return Te.get=Q,Te.set=typeof Y=="function"?Y:Te.set,Te.name=Te.name||Q.name||"",new hi(Te)};Ke.struct=lt,function(Q){Q[Q.NOT_TRACKING=-1]="NOT_TRACKING",Q[Q.UP_TO_DATE=0]="UP_TO_DATE",Q[Q.POSSIBLY_STALE=1]="POSSIBLY_STALE",Q[Q.STALE=2]="STALE"}(qe||(qe={})),function(Q){Q[Q.NONE=0]="NONE",Q[Q.LOG=1]="LOG",Q[Q.BREAK=2]="BREAK"}(Oe||(Oe={}));var et=function(Q){this.cause=Q};function bt(Q){return Q instanceof et}function Ot(Q){switch(Q.dependenciesState){case qe.UP_TO_DATE:return!1;case qe.NOT_TRACKING:case qe.STALE:return!0;case qe.POSSIBLY_STALE:for(var Y=ke(!0),ae=me(),Te=Q.observing,We=Te.length,st=0;st<We;st++){var wt=Te[st];if(Wa(wt)){if(On.disableErrorBoundaries)wt.get();else try{wt.get()}catch{return Ve(ae),Ze(Y),!0}if(Q.dependenciesState===qe.STALE)return Ve(ae),Ze(Y),!0}}return rt(Q),Ve(ae),Ze(Y),!1}}function Qt(){return On.trackingDerivation!==null}function kt(Q){var Y=Q.observers.size>0;On.computationDepth>0&&Y&&f(!1),On.allowStateChanges||!Y&&On.enforceActions!=="strict"||f(!1)}function an(Q,Y,ae){var Te=ke(!0);rt(Q),Q.newObserving=new Array(Q.observing.length+100),Q.unboundDepsCount=0,Q.runId=++On.runId;var We,st=On.trackingDerivation;if(On.trackingDerivation=Q,On.disableErrorBoundaries===!0)We=Y.call(ae);else try{We=Y.call(ae)}catch(wt){We=new et(wt)}return On.trackingDerivation=st,function(wt){for(var Ut=wt.observing,yn=wt.observing=wt.newObserving,wr=qe.UP_TO_DATE,dn=0,ao=wt.unboundDepsCount,cr=0;cr<ao;cr++)(Yr=yn[cr]).diffValue===0&&(Yr.diffValue=1,dn!==cr&&(yn[dn]=Yr),dn++),Yr.dependenciesState>wr&&(wr=Yr.dependenciesState);for(yn.length=dn,wt.newObserving=null,ao=Ut.length;ao--;)(Yr=Ut[ao]).diffValue===0&&St(Yr,wt),Yr.diffValue=0;for(;dn--;){var Yr;(Yr=yn[dn]).diffValue===1&&(Yr.diffValue=0,$c(Yr,wt))}wr!==qe.UP_TO_DATE&&(wt.dependenciesState=wr,wt.onBecomeStale())}(Q),Ze(Te),We}function Ce(Q){var Y=Q.observing;Q.observing=[];for(var ae=Y.length;ae--;)St(Y[ae],Q);Q.dependenciesState=qe.NOT_TRACKING}function Ye(Q){var Y=me();try{return Q()}finally{Ve(Y)}}function me(){var Q=On.trackingDerivation;return On.trackingDerivation=null,Q}function Ve(Q){On.trackingDerivation=Q}function ke(Q){var Y=On.allowStateReads;return On.allowStateReads=Q,Y}function Ze(Q){On.allowStateReads=Q}function rt(Q){if(Q.dependenciesState!==qe.UP_TO_DATE){Q.dependenciesState=qe.UP_TO_DATE;for(var Y=Q.observing,ae=Y.length;ae--;)Y[ae].lowestObserverState=qe.UP_TO_DATE}}var zt=0,Fn=1,ot=Object.getOwnPropertyDescriptor(function(){},"name");ot&&ot.configurable;function Bt(Q,Y,ae){var Te=function(){return Sn(Q,Y,ae||this,arguments)};return Te.isMobxAction=!0,Te}function Sn(Q,Y,ae,Te){var We=It();try{return Y.apply(ae,Te)}catch(st){throw We.error=st,st}finally{qt(We)}}function It(Q,Y,ae){var Te=0,We=me();Un();var st={prevDerivation:We,prevAllowStateChanges:xn(!0),prevAllowStateReads:ke(!0),notifySpy:!1,startTime:Te,actionId:Fn++,parentActionId:zt};return zt=st.actionId,st}function qt(Q){zt!==Q.actionId&&f("invalid action stack. did you forget to finish an action?"),zt=Q.parentActionId,Q.error!==void 0&&(On.suppressReactionErrors=!0),Br(Q.prevAllowStateChanges),Ze(Q.prevAllowStateReads),hr(),Ve(Q.prevDerivation),Q.notifySpy,On.suppressReactionErrors=!1}function Xt(Q,Y){var ae,Te=xn(Q);try{ae=Y()}finally{Br(Te)}return ae}function xn(Q){var Y=On.allowStateChanges;return On.allowStateChanges=Q,Y}function Br(Q){On.allowStateChanges=Q}var ro=function(Q){function Y(ae,Te,We,st,wt){We===void 0&&(We="ObservableValue@"+u()),wt===void 0&&(wt=V.default);var Ut=Q.call(this,We)||this;return Ut.enhancer=Te,Ut.name=We,Ut.equals=wt,Ut.hasUnreportedChange=!1,Ut.value=Te(ae,void 0,We),Ut}return function(ae,Te){function We(){this.constructor=ae}X(ae,Te),ae.prototype=Te===null?Object.create(Te):(We.prototype=Te.prototype,new We)}(Y,Q),Y.prototype.dehanceValue=function(ae){return this.dehancer!==void 0?this.dehancer(ae):ae},Y.prototype.set=function(ae){this.value,(ae=this.prepareNewValue(ae))!==On.UNCHANGED&&this.setNewValue(ae)},Y.prototype.prepareNewValue=function(ae){if(kt(this),ka(this)){var Te=Ir(this,{object:this,type:"update",newValue:ae});if(!Te)return On.UNCHANGED;ae=Te.newValue}return ae=this.enhancer(ae,this.value,this.name),this.equals(this.value,ae)?On.UNCHANGED:ae},Y.prototype.setNewValue=function(ae){var Te=this.value;this.value=ae,this.reportChanged(),Ca(this)&&xi(this,{type:"update",object:this,newValue:ae,oldValue:Te})},Y.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},Y.prototype.intercept=function(ae){return Gl(this,ae)},Y.prototype.observe=function(ae,Te){return Te&&ae({object:this,type:"update",newValue:this.value,oldValue:void 0}),gl(this,ae)},Y.prototype.toJSON=function(){return this.get()},Y.prototype.toString=function(){return this.name+"["+this.value+"]"},Y.prototype.valueOf=function(){return R(this.get())},Y.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},Y}(N),Oa=C("ObservableValue",ro),hi=function(){function Q(Y){this.dependenciesState=qe.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=qe.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+u(),this.value=new et(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Oe.NONE,h(Y.get,"missing option for computed: get"),this.derivation=Y.get,this.name=Y.name||"ComputedValue@"+u(),Y.set&&(this.setter=Bt(this.name+"-setter",Y.set)),this.equals=Y.equals||(Y.compareStructural||Y.struct?V.structural:V.default),this.scope=Y.context,this.requiresReaction=!!Y.requiresReaction,this.keepAlive=!!Y.keepAlive}return Q.prototype.onBecomeStale=function(){(function(Y){Y.lowestObserverState===qe.UP_TO_DATE&&(Y.lowestObserverState=qe.POSSIBLY_STALE,Y.observers.forEach(function(ae){ae.dependenciesState===qe.UP_TO_DATE&&(ae.dependenciesState=qe.POSSIBLY_STALE,ae.isTracing!==Oe.NONE&&si(ae,Y),ae.onBecomeStale())}))})(this)},Q.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(Y){return Y()})},Q.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(Y){return Y()})},Q.prototype.get=function(){this.isComputing&&f("Cycle detected in computation "+this.name+": "+this.derivation),On.inBatch!==0||this.observers.size!==0||this.keepAlive?(Zi(this),Ot(this)&&this.trackAndCompute()&&function(ae){ae.lowestObserverState!==qe.STALE&&(ae.lowestObserverState=qe.STALE,ae.observers.forEach(function(Te){Te.dependenciesState===qe.POSSIBLY_STALE?Te.dependenciesState=qe.STALE:Te.dependenciesState===qe.UP_TO_DATE&&(ae.lowestObserverState=qe.UP_TO_DATE)}))}(this)):Ot(this)&&(this.warnAboutUntrackedRead(),Un(),this.value=this.computeValue(!1),hr());var Y=this.value;if(bt(Y))throw Y.cause;return Y},Q.prototype.peek=function(){var Y=this.computeValue(!1);if(bt(Y))throw Y.cause;return Y},Q.prototype.set=function(Y){if(this.setter){h(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,Y)}finally{this.isRunningSetter=!1}}else h(!1,!1)},Q.prototype.trackAndCompute=function(){var Y=this.value,ae=this.dependenciesState===qe.NOT_TRACKING,Te=this.computeValue(!0),We=ae||bt(Y)||bt(Te)||!this.equals(Y,Te);return We&&(this.value=Te),We},Q.prototype.computeValue=function(Y){var ae;if(this.isComputing=!0,On.computationDepth++,Y)ae=an(this,this.derivation,this.scope);else if(On.disableErrorBoundaries===!0)ae=this.derivation.call(this.scope);else try{ae=this.derivation.call(this.scope)}catch(Te){ae=new et(Te)}return On.computationDepth--,this.isComputing=!1,ae},Q.prototype.suspend=function(){this.keepAlive||(Ce(this),this.value=void 0)},Q.prototype.observe=function(Y,ae){var Te=this,We=!0,st=void 0;return Lp(function(){var wt=Te.get();if(!We||ae){var Ut=me();Y({type:"update",object:Te,newValue:wt,oldValue:st}),Ve(Ut)}We=!1,st=wt})},Q.prototype.warnAboutUntrackedRead=function(){},Q.prototype.toJSON=function(){return this.get()},Q.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},Q.prototype.valueOf=function(){return R(this.get())},Q.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},Q}(),Wa=C("ComputedValue",hi),wa=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Bf={};function Zl(){return typeof window!="undefined"?window:a!==void 0?a:typeof self!="undefined"?self:Bf}var Hi=!0,dl=!1,On=function(){var Q=Zl();return Q.__mobxInstanceCount>0&&!Q.__mobxGlobals&&(Hi=!1),Q.__mobxGlobals&&Q.__mobxGlobals.version!==new wa().version&&(Hi=!1),Hi?Q.__mobxGlobals?(Q.__mobxInstanceCount+=1,Q.__mobxGlobals.UNCHANGED||(Q.__mobxGlobals.UNCHANGED={}),Q.__mobxGlobals):(Q.__mobxInstanceCount=1,Q.__mobxGlobals=new wa):(setTimeout(function(){dl||f("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new wa)}();function $c(Q,Y){Q.observers.add(Y),Q.lowestObserverState>Y.dependenciesState&&(Q.lowestObserverState=Y.dependenciesState)}function St(Q,Y){Q.observers.delete(Y),Q.observers.size===0&&on(Q)}function on(Q){Q.isPendingUnobservation===!1&&(Q.isPendingUnobservation=!0,On.pendingUnobservations.push(Q))}function Un(){On.inBatch++}function hr(){if(--On.inBatch==0){_t();for(var Q=On.pendingUnobservations,Y=0;Y<Q.length;Y++){var ae=Q[Y];ae.isPendingUnobservation=!1,ae.observers.size===0&&(ae.isBeingObserved&&(ae.isBeingObserved=!1,ae.onBecomeUnobserved()),ae instanceof hi&&ae.suspend())}On.pendingUnobservations=[]}}function Zi(Q){var Y=On.trackingDerivation;return Y!==null?(Y.runId!==Q.lastAccessedBy&&(Q.lastAccessedBy=Y.runId,Y.newObserving[Y.unboundDepsCount++]=Q,Q.isBeingObserved||(Q.isBeingObserved=!0,Q.onBecomeObserved())),!0):(Q.observers.size===0&&On.inBatch>0&&on(Q),!1)}function si(Q,Y){if(Q.isTracing===Oe.BREAK){var ae=[];Ko(Wo(Q),ae,1),new Function(`debugger;
- /*
- Tracing '`+Q.name+`'
- You are entering this break point because derivation '`+Q.name+"' is being traced and '"+Y.name+`' is now forcing it to update.
- Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
- The stackframe you are looking for is at least ~6-8 stack-frames up.
- `+(Q instanceof hi?Q.derivation.toString().replace(/[*]\//g,"/"):"")+`
- The dependencies for this derivation are:
- `+ae.join(`
- `)+`
- */
- `)()}}function Ko(Q,Y,ae){Y.length>=1e3?Y.push("(and many more)"):(Y.push(""+new Array(ae).join(" ")+Q.name),Q.dependencies&&Q.dependencies.forEach(function(Te){return Ko(Te,Y,ae+1)}))}var Go=function(){function Q(Y,ae,Te,We){Y===void 0&&(Y="Reaction@"+u()),We===void 0&&(We=!1),this.name=Y,this.onInvalidate=ae,this.errorHandler=Te,this.requiresObservable=We,this.observing=[],this.newObserving=[],this.dependenciesState=qe.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+u(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Oe.NONE}return Q.prototype.onBecomeStale=function(){this.schedule()},Q.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,On.pendingReactions.push(this),_t())},Q.prototype.isScheduled=function(){return this._isScheduled},Q.prototype.runReaction=function(){if(!this.isDisposed){if(Un(),this._isScheduled=!1,Ot(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(Y){this.reportExceptionInDerivation(Y)}}hr()}},Q.prototype.track=function(Y){if(!this.isDisposed){Un(),this._isRunning=!0;var ae=an(this,Y,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ce(this),bt(ae)&&this.reportExceptionInDerivation(ae.cause),hr()}},Q.prototype.reportExceptionInDerivation=function(Y){var ae=this;if(this.errorHandler)this.errorHandler(Y,this);else{if(On.disableErrorBoundaries)throw Y;On.suppressReactionErrors,On.globalReactionErrorHandlers.forEach(function(Te){return Te(Y,ae)})}},Q.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Un(),Ce(this),hr()))},Q.prototype.getDisposer=function(){var Y=this.dispose.bind(this);return Y[I]=this,Y},Q.prototype.toString=function(){return"Reaction["+this.name+"]"},Q.prototype.trace=function(Y){Y===void 0&&(Y=!1),function(){for(var ae=[],Te=0;Te<arguments.length;Te++)ae[Te]=arguments[Te];var We=!1;typeof ae[ae.length-1]=="boolean"&&(We=ae.pop());var st=Vr(ae);if(!st)return f(!1);st.isTracing,Oe.NONE,st.isTracing=We?Oe.BREAK:Oe.LOG}(this,Y)},Q}(),pi=function(Q){return Q()};function _t(){On.inBatch>0||On.isRunningReactions||pi(fn)}function fn(){On.isRunningReactions=!0;for(var Q=On.pendingReactions,Y=0;Q.length>0;){++Y==100&&Q.splice(0);for(var ae=Q.splice(0),Te=0,We=ae.length;Te<We;Te++)ae[Te].runReaction()}On.isRunningReactions=!1}var Vn=C("Reaction",Go);function Or(Q){var Y=pi;pi=function(ae){return Q(function(){return Y(ae)})}}function Di(Q){return function(){}}function hs(){f(!1)}function Fu(Q){return function(Y,ae,Te){if(Te){if(Te.value)return{value:Bt(Q,Te.value),enumerable:!1,configurable:!0,writable:!0};var We=Te.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Bt(Q,We.call(this))}}}return Lm(Q).apply(this,arguments)}}function Lm(Q){return function(Y,ae,Te){Object.defineProperty(Y,ae,{configurable:!0,enumerable:!1,get:function(){},set:function(We){k(this,ae,Xl(Q,We))}})}}var Xl=function(Q,Y,ae,Te){return arguments.length===1&&typeof Q=="function"?Bt(Q.name||"<unnamed action>",Q):arguments.length===2&&typeof Y=="function"?Bt(Q,Y):arguments.length===1&&typeof Q=="string"?Fu(Q):Te!==!0?Fu(Y).apply(null,arguments):void k(Q,Y,Bt(Q.name||Y,ae.value,this))};function Dp(Q,Y){return Sn(typeof Q=="string"?Q:Q.name||"<unnamed action>",typeof Q=="function"?Q:Y,this,void 0)}function Fd(Q){return typeof Q=="function"&&Q.isMobxAction===!0}function jp(Q,Y,ae){k(Q,Y,Bt(Y,ae.bind(Q)))}function Lp(Q,Y){Y===void 0&&(Y=l);var ae,Te=Y&&Y.name||Q.name||"Autorun@"+u();if(!Y.scheduler&&!Y.delay)ae=new Go(Te,function(){this.track(wt)},Y.onError,Y.requiresObservable);else{var We=Bm(Y),st=!1;ae=new Go(Te,function(){st||(st=!0,We(function(){st=!1,ae.isDisposed||ae.track(wt)}))},Y.onError,Y.requiresObservable)}function wt(){Q(ae)}return ae.schedule(),ae.getDisposer()}Xl.bound=function(Q,Y,ae,Te){return Te===!0?(jp(Q,Y,ae.value),null):ae?{configurable:!0,enumerable:!1,get:function(){return jp(this,Y,ae.value||ae.initializer.call(this)),this[Y]},set:hs}:{enumerable:!1,configurable:!0,set:function(We){jp(this,Y,We)},get:function(){}}};var z0=function(Q){return Q()};function Bm(Q){return Q.scheduler?Q.scheduler:Q.delay?function(Y){return setTimeout(Y,Q.delay)}:z0}function Gr(Q,Y,ae){ae===void 0&&(ae=l);var Te,We,st,wt=ae.name||"Reaction@"+u(),Ut=Xl(wt,ae.onError?(Te=ae.onError,We=Y,function(){try{return We.apply(this,arguments)}catch(Eo){Te.call(this,Eo)}}):Y),yn=!ae.scheduler&&!ae.delay,wr=Bm(ae),dn=!0,ao=!1,cr=ae.compareStructural?V.structural:ae.equals||V.default,Yr=new Go(wt,function(){dn||yn?ms():ao||(ao=!0,wr(ms))},ae.onError,ae.requiresObservable);function ms(){if(ao=!1,!Yr.isDisposed){var Eo=!1;Yr.track(function(){var Ta=Q(Yr);Eo=dn||!cr(st,Ta),st=Ta}),dn&&ae.fireImmediately&&Ut(st,Yr),dn||Eo!==!0||Ut(st,Yr),dn&&(dn=!1)}}return Yr.schedule(),Yr.getDisposer()}function Kr(Q,Y,ae){return Vm("onBecomeUnobserved",Q,Y,ae)}function Vm(Q,Y,ae,Te){var We=typeof Te=="function"?gs(Y,ae):gs(Y),st=typeof Te=="function"?Te:ae,wt=Q+"Listeners";return We[wt]?We[wt].add(st):We[wt]=new Set([st]),typeof We[Q]!="function"?f(!1):function(){var Ut=We[wt];Ut&&(Ut.delete(st),Ut.size===0&&delete We[wt])}}function Ac(Q){var Y=Q.enforceActions,ae=Q.computedRequiresReaction,Te=Q.computedConfigurable,We=Q.disableErrorBoundaries,st=Q.reactionScheduler,wt=Q.reactionRequiresObservable,Ut=Q.observableRequiresReaction;if(Q.isolateGlobalState===!0&&((On.pendingReactions.length||On.inBatch||On.isRunningReactions)&&f("isolateGlobalState should be called before MobX is running any reactions"),dl=!0,Hi&&(--Zl().__mobxInstanceCount==0&&(Zl().__mobxGlobals=void 0),On=new wa)),Y!==void 0){var yn=void 0;switch(Y){case!0:case"observed":yn=!0;break;case!1:case"never":yn=!1;break;case"strict":case"always":yn="strict";break;default:f("Invalid value for 'enforceActions': '"+Y+"', expected 'never', 'always' or 'observed'")}On.enforceActions=yn,On.allowStateChanges=yn!==!0&&yn!=="strict"}ae!==void 0&&(On.computedRequiresReaction=!!ae),wt!==void 0&&(On.reactionRequiresObservable=!!wt),Ut!==void 0&&(On.observableRequiresReaction=!!Ut,On.allowStateReads=!On.observableRequiresReaction),Te!==void 0&&(On.computedConfigurable=!!Te),We!==void 0&&(On.disableErrorBoundaries=!!We),st&&Or(st)}function ql(Q,Y,ae,Te){var We=Bp(Te=Ne(Te));return le(Q),Ya(Q,Te.name,We.enhancer),Y&&Fm(Q,Y,ae,We),Q}function Bp(Q){return Q.defaultDecorator||(Q.deep===!1?ye:Se)}function Fm(Q,Y,ae,Te){var We,st;Un();try{var wt=B(Y);try{for(var Ut=K(wt),yn=Ut.next();!yn.done;yn=Ut.next()){var wr=yn.value,dn=Object.getOwnPropertyDescriptor(Y,wr),ao=(ae&&wr in ae?ae[wr]:dn.get?Je:Te)(Q,wr,dn,!0);ao&&Object.defineProperty(Q,wr,ao)}}catch(cr){We={error:cr}}finally{try{yn&&!yn.done&&(st=Ut.return)&&st.call(Ut)}finally{if(We)throw We.error}}}finally{hr()}}function Wo(Q,Y){return Vp(gs(Q,Y))}function Vp(Q){var Y,ae,Te={name:Q.name};return Q.observing&&Q.observing.length>0&&(Te.dependencies=(Y=Q.observing,ae=[],Y.forEach(function(We){ae.indexOf(We)===-1&&ae.push(We)}),ae).map(Vp)),Te}var Vf=0;function Fp(){this.message="FLOW_CANCELLED"}function zd(Q){arguments.length!==1&&f("Flow expects 1 argument and cannot be used as decorator");var Y=Q.name||"<unnamed flow>";return function(){var ae,Te=this,We=arguments,st=++Vf,wt=Xl(Y+" - runid: "+st+" - init",Q).apply(Te,We),Ut=void 0,yn=new Promise(function(wr,dn){var ao=0;function cr(Eo){var Ta;Ut=void 0;try{Ta=Xl(Y+" - runid: "+st+" - yield "+ao++,wt.next).call(wt,Eo)}catch(eu){return dn(eu)}ms(Ta)}function Yr(Eo){var Ta;Ut=void 0;try{Ta=Xl(Y+" - runid: "+st+" - yield "+ao++,wt.throw).call(wt,Eo)}catch(eu){return dn(eu)}ms(Ta)}function ms(Eo){if(!Eo||typeof Eo.then!="function")return Eo.done?wr(Eo.value):(Ut=Promise.resolve(Eo.value)).then(cr,Yr);Eo.then(ms,dn)}ae=dn,cr(void 0)});return yn.cancel=Xl(Y+" - runid: "+st+" - cancel",function(){try{Ut&&ji(Ut);var wr=wt.return(void 0),dn=Promise.resolve(wr.value);dn.then(y,y),ji(dn),ae(new Fp)}catch(ao){ae(ao)}}),yn}}function ji(Q){typeof Q.cancel=="function"&&Q.cancel()}function zp(Q,Y){if(Q==null)return!1;if(Y!==void 0){if(Ea(Q)===!1||!Q[I].values.has(Y))return!1;var ae=gs(Q,Y);return Wa(ae)}return Wa(Q)}function zm(Q){return arguments.length>1?f(!1):zp(Q)}function Qp(Q,Y){return typeof Y!="string"?f(!1):zp(Q,Y)}function Qd(Q,Y){return Q!=null&&(Y!==void 0?!!Ea(Q)&&Q[I].values.has(Y):Ea(Q)||!!Q[I]||j(Q)||Vn(Q)||Wa(Q))}function Mc(Q){return arguments.length!==1&&f(!1),Qd(Q)}function hl(Q){return Ea(Q)?Q[I].getKeys():li(Q)||ua(Q)?Array.from(Q.keys()):ps(Q)?Q.map(function(Y,ae){return ae}):f(!1)}function fo(Q){return Ea(Q)?hl(Q).map(function(Y){return Q[Y]}):li(Q)?hl(Q).map(function(Y){return Q.get(Y)}):ua(Q)?Array.from(Q.values()):ps(Q)?Q.slice():f(!1)}function Qm(Q){return Ea(Q)?hl(Q).map(function(Y){return[Y,Q[Y]]}):li(Q)?hl(Q).map(function(Y){return[Y,Q.get(Y)]}):ua(Q)?Array.from(Q.entries()):ps(Q)?Q.map(function(Y,ae){return[ae,Y]}):f(!1)}function Sa(Q,Y,ae){if(arguments.length!==2||ua(Q))if(Ea(Q)){var Te=Q[I],We=Te.values.get(Y);We?Te.write(Y,ae):Te.addObservableProp(Y,ae,Te.defaultEnhancer)}else if(li(Q))Q.set(Y,ae);else if(ua(Q))Q.add(Y);else{if(!ps(Q))return f(!1);typeof Y!="number"&&(Y=parseInt(Y,10)),h(Y>=0,"Not a valid index: '"+Y+"'"),Un(),Y>=Q.length&&(Q.length=Y+1),Q[Y]=ae,hr()}else{Un();var st=Y;try{for(var wt in st)Sa(Q,wt,st[wt])}finally{hr()}}}function Wm(Q,Y,ae,Te){return typeof ae=="function"?function(We,st,wt,Ut){return yl(We,st).observe(wt,Ut)}(Q,Y,ae,Te):function(We,st,wt){return yl(We).observe(st,wt)}(Q,Y,ae)}Fp.prototype=Object.create(Error.prototype);var Ym={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function la(Q,Y,ae,Te){return Te.detectCycles&&Q.set(Y,ae),ae}function xa(Q,Y,ae){if(!Y.recurseEverything&&!Mc(Q)||typeof Q!="object")return Q;if(Q===null)return null;if(Q instanceof Date)return Q;if(Oa(Q))return xa(Q.get(),Y,ae);if(Mc(Q)&&hl(Q),Y.detectCycles===!0&&Q!==null&&ae.has(Q))return ae.get(Q);if(ps(Q)||Array.isArray(Q)){var Te=la(ae,Q,[],Y),We=Q.map(function(cr){return xa(cr,Y,ae)});Te.length=We.length;for(var st=0,wt=We.length;st<wt;st++)Te[st]=We[st];return Te}if(ua(Q)||Object.getPrototypeOf(Q)===Set.prototype){if(Y.exportMapsAsObjects===!1){var Ut=la(ae,Q,new Set,Y);return Q.forEach(function(cr){Ut.add(xa(cr,Y,ae))}),Ut}var yn=la(ae,Q,[],Y);return Q.forEach(function(cr){yn.push(xa(cr,Y,ae))}),yn}if(li(Q)||Object.getPrototypeOf(Q)===Map.prototype){if(Y.exportMapsAsObjects===!1){var wr=la(ae,Q,new Map,Y);return Q.forEach(function(cr,Yr){wr.set(Yr,xa(cr,Y,ae))}),wr}var dn=la(ae,Q,{},Y);return Q.forEach(function(cr,Yr){dn[Yr]=xa(cr,Y,ae)}),dn}var ao=la(ae,Q,{},Y);return T(Q).forEach(function(cr){ao[cr]=xa(Q[cr],Y,ae)}),ao}function Wp(Q,Y){var ae;return typeof Y=="boolean"&&(Y={detectCycles:Y}),Y||(Y=Ym),Y.detectCycles=Y.detectCycles===void 0?Y.recurseEverything===!0:Y.detectCycles===!0,Y.detectCycles&&(ae=new Map),xa(Q,Y,ae)}function Vr(Q){switch(Q.length){case 0:return On.trackingDerivation;case 1:return gs(Q[0]);case 2:return gs(Q[0],Q[1])}}function gi(Q,Y){Y===void 0&&(Y=void 0),Un();try{return Q.apply(Y)}finally{hr()}}function Wd(Q,Y,ae){return arguments.length===1||Y&&typeof Y=="object"?Yp(Q,Y):Um(Q,Y,ae||{})}function Um(Q,Y,ae){var Te;typeof ae.timeout=="number"&&(Te=setTimeout(function(){if(!st[I].isDisposed){st();var wt=new Error("WHEN_TIMEOUT");if(!ae.onError)throw wt;ae.onError(wt)}},ae.timeout)),ae.name=ae.name||"When@"+u();var We=Bt(ae.name+"-effect",Y),st=Lp(function(wt){Q()&&(wt.dispose(),Te&&clearTimeout(Te),We())},ae);return st}function Yp(Q,Y){var ae,Te=new Promise(function(We,st){var wt=Um(Q,We,oe(oe({},Y),{onError:st}));ae=function(){wt(),st("WHEN_CANCELLED")}});return Te.cancel=ae,Te}function Yd(Q){return Q[I]}function pl(Q){return typeof Q=="string"||typeof Q=="number"||typeof Q=="symbol"}var Kl={has:function(Q,Y){if(Y===I||Y==="constructor"||Y===J)return!0;var ae=Yd(Q);return pl(Y)?ae.has(Y):Y in Q},get:function(Q,Y){if(Y===I||Y==="constructor"||Y===J)return Q[Y];var ae=Yd(Q),Te=ae.values.get(Y);if(Te instanceof N){var We=Te.get();return We===void 0&&ae.has(Y),We}return pl(Y)&&ae.has(Y),Q[Y]},set:function(Q,Y,ae){return!!pl(Y)&&(Sa(Q,Y,ae),!0)},deleteProperty:function(Q,Y){return!!pl(Y)&&(Yd(Q).remove(Y),!0)},ownKeys:function(Q){return Yd(Q).keysAtom.reportObserved(),Reflect.ownKeys(Q)},preventExtensions:function(Q){return f("Dynamic observable objects cannot be frozen"),!1}};function Rc(Q){var Y=new Proxy(Q,Kl);return Q[I].proxy=Y,Y}function ka(Q){return Q.interceptors!==void 0&&Q.interceptors.length>0}function Gl(Q,Y){var ae=Q.interceptors||(Q.interceptors=[]);return ae.push(Y),m(function(){var Te=ae.indexOf(Y);Te!==-1&&ae.splice(Te,1)})}function Ir(Q,Y){var ae=me();try{for(var Te=re(Q.interceptors||[]),We=0,st=Te.length;We<st&&(h(!(Y=Te[We](Y))||Y.type,"Intercept handlers should return nothing or a change object"),Y);We++);return Y}finally{Ve(ae)}}function Ca(Q){return Q.changeListeners!==void 0&&Q.changeListeners.length>0}function gl(Q,Y){var ae=Q.changeListeners||(Q.changeListeners=[]);return ae.push(Y),m(function(){var Te=ae.indexOf(Y);Te!==-1&&ae.splice(Te,1)})}function xi(Q,Y){var ae=me(),Te=Q.changeListeners;if(Te){for(var We=0,st=(Te=Te.slice()).length;We<st;We++)Te[We](Y);Ve(ae)}}var Ud={get:function(Q,Y){return Y===I?Q[I]:Y==="length"?Q[I].getArrayLength():typeof Y=="number"?Io.get.call(Q,Y):typeof Y!="string"||isNaN(Y)?Io.hasOwnProperty(Y)?Io[Y]:Q[Y]:Io.get.call(Q,parseInt(Y))},set:function(Q,Y,ae){return Y==="length"&&Q[I].setArrayLength(ae),typeof Y=="number"&&Io.set.call(Q,Y,ae),typeof Y=="symbol"||isNaN(Y)?Q[Y]=ae:Io.set.call(Q,parseInt(Y),ae),!0},preventExtensions:function(Q){return f("Observable arrays cannot be frozen"),!1}};function Ff(Q,Y,ae,Te){ae===void 0&&(ae="ObservableArray@"+u()),Te===void 0&&(Te=!1);var We,st,wt,Ut=new Up(ae,Y,Te);We=Ut.values,st=I,wt=Ut,Object.defineProperty(We,st,{enumerable:!1,writable:!1,configurable:!0,value:wt});var yn=new Proxy(Ut.values,Ud);if(Ut.proxy=yn,Q&&Q.length){var wr=xn(!0);Ut.spliceWithArray(0,0,Q),Br(wr)}return yn}var Up=function(){function Q(Y,ae,Te){this.owned=Te,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new N(Y||"ObservableArray@"+u()),this.enhancer=function(We,st){return ae(We,st,Y+"[..]")}}return Q.prototype.dehanceValue=function(Y){return this.dehancer!==void 0?this.dehancer(Y):Y},Q.prototype.dehanceValues=function(Y){return this.dehancer!==void 0&&Y.length>0?Y.map(this.dehancer):Y},Q.prototype.intercept=function(Y){return Gl(this,Y)},Q.prototype.observe=function(Y,ae){return ae===void 0&&(ae=!1),ae&&Y({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),gl(this,Y)},Q.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},Q.prototype.setArrayLength=function(Y){if(typeof Y!="number"||Y<0)throw new Error("[mobx.array] Out of range: "+Y);var ae=this.values.length;if(Y!==ae)if(Y>ae){for(var Te=new Array(Y-ae),We=0;We<Y-ae;We++)Te[We]=void 0;this.spliceWithArray(ae,0,Te)}else this.spliceWithArray(Y,ae-Y)},Q.prototype.updateArrayLength=function(Y,ae){if(Y!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=ae},Q.prototype.spliceWithArray=function(Y,ae,Te){var We=this;kt(this.atom);var st=this.values.length;if(Y===void 0?Y=0:Y>st?Y=st:Y<0&&(Y=Math.max(0,st+Y)),ae=arguments.length===1?st-Y:ae==null?0:Math.max(0,Math.min(ae,st-Y)),Te===void 0&&(Te=s),ka(this)){var wt=Ir(this,{object:this.proxy,type:"splice",index:Y,removedCount:ae,added:Te});if(!wt)return s;ae=wt.removedCount,Te=wt.added}Te=Te.length===0?Te:Te.map(function(yn){return We.enhancer(yn,void 0)});var Ut=this.spliceItemsIntoValues(Y,ae,Te);return ae===0&&Te.length===0||this.notifyArraySplice(Y,Te,Ut),this.dehanceValues(Ut)},Q.prototype.spliceItemsIntoValues=function(Y,ae,Te){var We;if(Te.length<1e4)return(We=this.values).splice.apply(We,re([Y,ae],Te));var st=this.values.slice(Y,Y+ae);return this.values=this.values.slice(0,Y).concat(Te,this.values.slice(Y+ae)),st},Q.prototype.notifyArrayChildUpdate=function(Y,ae,Te){var We=!this.owned&&!1,st=Ca(this),wt=st||We?{object:this.proxy,type:"update",index:Y,newValue:ae,oldValue:Te}:null;this.atom.reportChanged(),st&&xi(this,wt)},Q.prototype.notifyArraySplice=function(Y,ae,Te){var We=!this.owned&&!1,st=Ca(this),wt=st||We?{object:this.proxy,type:"splice",index:Y,removed:Te,added:ae,removedCount:Te.length,addedCount:ae.length}:null;this.atom.reportChanged(),st&&xi(this,wt)},Q}(),Io={intercept:function(Q){return this[I].intercept(Q)},observe:function(Q,Y){return Y===void 0&&(Y=!1),this[I].observe(Q,Y)},clear:function(){return this.splice(0)},replace:function(Q){var Y=this[I];return Y.spliceWithArray(0,Y.values.length,Q)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(Q,Y){for(var ae=[],Te=2;Te<arguments.length;Te++)ae[Te-2]=arguments[Te];var We=this[I];switch(arguments.length){case 0:return[];case 1:return We.spliceWithArray(Q);case 2:return We.spliceWithArray(Q,Y)}return We.spliceWithArray(Q,Y,ae)},spliceWithArray:function(Q,Y,ae){return this[I].spliceWithArray(Q,Y,ae)},push:function(){for(var Q=[],Y=0;Y<arguments.length;Y++)Q[Y]=arguments[Y];var ae=this[I];return ae.spliceWithArray(ae.values.length,0,Q),ae.values.length},pop:function(){return this.splice(Math.max(this[I].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var Q=[],Y=0;Y<arguments.length;Y++)Q[Y]=arguments[Y];var ae=this[I];return ae.spliceWithArray(0,0,Q),ae.values.length},reverse:function(){var Q=this.slice();return Q.reverse.apply(Q,arguments)},sort:function(Q){var Y=this.slice();return Y.sort.apply(Y,arguments)},remove:function(Q){var Y=this[I],ae=Y.dehanceValues(Y.values).indexOf(Q);return ae>-1&&(this.splice(ae,1),!0)},get:function(Q){var Y=this[I];if(Y&&Q<Y.values.length)return Y.atom.reportObserved(),Y.dehanceValue(Y.values[Q])},set:function(Q,Y){var ae=this[I],Te=ae.values;if(Q<Te.length){kt(ae.atom);var We=Te[Q];if(ka(ae)){var st=Ir(ae,{type:"update",object:ae.proxy,index:Q,newValue:Y});if(!st)return;Y=st.newValue}(Y=ae.enhancer(Y,We))!==We&&(Te[Q]=Y,ae.notifyArrayChildUpdate(Q,Y,We))}else{if(Q!==Te.length)throw new Error("[mobx.array] Index out of bounds, "+Q+" is larger than "+Te.length);ae.spliceWithArray(Q,0,[Y])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(Q){typeof Array.prototype[Q]=="function"&&(Io[Q]=function(){var Y=this[I];Y.atom.reportObserved();var ae=Y.dehanceValues(Y.values);return ae[Q].apply(ae,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(Q){typeof Array.prototype[Q]=="function"&&(Io[Q]=function(Y,ae){var Te=this,We=this[I];return We.atom.reportObserved(),We.dehanceValues(We.values)[Q](function(st,wt){return Y.call(ae,st,wt,Te)},ae)})}),["reduce","reduceRight"].forEach(function(Q){Io[Q]=function(){var Y=this,ae=this[I];ae.atom.reportObserved();var Te=arguments[0];return arguments[0]=function(We,st,wt){return st=ae.dehanceValue(st),Te(We,st,wt,Y)},ae.values[Q].apply(ae.values,arguments)}});var Hd,Jl=C("ObservableArrayAdministration",Up);function ps(Q){return O(Q)&&Jl(Q[I])}var Hp,Q0={},Zp=function(){function Q(Y,ae,Te){if(ae===void 0&&(ae=Be),Te===void 0&&(Te="ObservableMap@"+u()),this.enhancer=ae,this.name=Te,this[Hd]=Q0,this._keysAtom=L(this.name+".keys()"),this[Symbol.toStringTag]="Map",typeof Map!="function")throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(Y)}return Q.prototype._has=function(Y){return this._data.has(Y)},Q.prototype.has=function(Y){var ae=this;if(!On.trackingDerivation)return this._has(Y);var Te=this._hasMap.get(Y);if(!Te){var We=Te=new ro(this._has(Y),Ae,this.name+"."+A(Y)+"?",!1);this._hasMap.set(Y,We),Kr(We,function(){return ae._hasMap.delete(Y)})}return Te.get()},Q.prototype.set=function(Y,ae){var Te=this._has(Y);if(ka(this)){var We=Ir(this,{type:Te?"update":"add",object:this,newValue:ae,name:Y});if(!We)return this;ae=We.newValue}return Te?this._updateValue(Y,ae):this._addValue(Y,ae),this},Q.prototype.delete=function(Y){var ae=this;if(kt(this._keysAtom),ka(this)&&!(We=Ir(this,{type:"delete",object:this,name:Y})))return!1;if(this._has(Y)){var Te=Ca(this),We=Te?{type:"delete",object:this,oldValue:this._data.get(Y).value,name:Y}:null;return gi(function(){ae._keysAtom.reportChanged(),ae._updateHasMapEntry(Y,!1),ae._data.get(Y).setNewValue(void 0),ae._data.delete(Y)}),Te&&xi(this,We),!0}return!1},Q.prototype._updateHasMapEntry=function(Y,ae){var Te=this._hasMap.get(Y);Te&&Te.setNewValue(ae)},Q.prototype._updateValue=function(Y,ae){var Te=this._data.get(Y);if((ae=Te.prepareNewValue(ae))!==On.UNCHANGED){var We=Ca(this),st=We?{type:"update",object:this,oldValue:Te.value,name:Y,newValue:ae}:null;Te.setNewValue(ae),We&&xi(this,st)}},Q.prototype._addValue=function(Y,ae){var Te=this;kt(this._keysAtom),gi(function(){var wt=new ro(ae,Te.enhancer,Te.name+"."+A(Y),!1);Te._data.set(Y,wt),ae=wt.value,Te._updateHasMapEntry(Y,!0),Te._keysAtom.reportChanged()});var We=Ca(this),st=We?{type:"add",object:this,name:Y,newValue:ae}:null;We&&xi(this,st)},Q.prototype.get=function(Y){return this.has(Y)?this.dehanceValue(this._data.get(Y).get()):this.dehanceValue(void 0)},Q.prototype.dehanceValue=function(Y){return this.dehancer!==void 0?this.dehancer(Y):Y},Q.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},Q.prototype.values=function(){var Y=this,ae=this.keys();return $r({next:function(){var Te=ae.next(),We=Te.done,st=Te.value;return{done:We,value:We?void 0:Y.get(st)}}})},Q.prototype.entries=function(){var Y=this,ae=this.keys();return $r({next:function(){var Te=ae.next(),We=Te.done,st=Te.value;return{done:We,value:We?void 0:[st,Y.get(st)]}}})},Q.prototype[Hd=I,Symbol.iterator]=function(){return this.entries()},Q.prototype.forEach=function(Y,ae){var Te,We;try{for(var st=K(this),wt=st.next();!wt.done;wt=st.next()){var Ut=Z(wt.value,2),yn=Ut[0],wr=Ut[1];Y.call(ae,wr,yn,this)}}catch(dn){Te={error:dn}}finally{try{wt&&!wt.done&&(We=st.return)&&We.call(st)}finally{if(Te)throw Te.error}}},Q.prototype.merge=function(Y){var ae=this;return li(Y)&&(Y=Y.toJS()),gi(function(){var Te=xn(!0);try{b(Y)?T(Y).forEach(function(We){return ae.set(We,Y[We])}):Array.isArray(Y)?Y.forEach(function(We){var st=Z(We,2),wt=st[0],Ut=st[1];return ae.set(wt,Ut)}):P(Y)?(Y.constructor!==Map&&f("Cannot initialize from classes that inherit from Map: "+Y.constructor.name),Y.forEach(function(We,st){return ae.set(st,We)})):Y!=null&&f("Cannot initialize map from "+Y)}finally{Br(Te)}}),this},Q.prototype.clear=function(){var Y=this;gi(function(){Ye(function(){var ae,Te;try{for(var We=K(Y.keys()),st=We.next();!st.done;st=We.next()){var wt=st.value;Y.delete(wt)}}catch(Ut){ae={error:Ut}}finally{try{st&&!st.done&&(Te=We.return)&&Te.call(We)}finally{if(ae)throw ae.error}}})})},Q.prototype.replace=function(Y){var ae=this;return gi(function(){var Te,We,st,wt,Ut=function(ca){if(P(ca)||li(ca))return ca;if(Array.isArray(ca))return new Map(ca);if(b(ca)){var Qf=new Map;for(var Ic in ca)Qf.set(Ic,ca[Ic]);return Qf}return f("Cannot convert to map from '"+ca+"'")}(Y),yn=new Map,wr=!1;try{for(var dn=K(ae._data.keys()),ao=dn.next();!ao.done;ao=dn.next()){var cr=ao.value;if(!Ut.has(cr))if(ae.delete(cr))wr=!0;else{var Yr=ae._data.get(cr);yn.set(cr,Yr)}}}catch(ca){Te={error:ca}}finally{try{ao&&!ao.done&&(We=dn.return)&&We.call(dn)}finally{if(Te)throw Te.error}}try{for(var ms=K(Ut.entries()),Eo=ms.next();!Eo.done;Eo=ms.next()){var Ta=Z(Eo.value,2),eu=(cr=Ta[0],Yr=Ta[1],ae._data.has(cr));if(ae.set(cr,Yr),ae._data.has(cr)){var tu=ae._data.get(cr);yn.set(cr,tu),eu||(wr=!0)}}}catch(ca){st={error:ca}}finally{try{Eo&&!Eo.done&&(wt=ms.return)&&wt.call(ms)}finally{if(st)throw st.error}}if(!wr)if(ae._data.size!==yn.size)ae._keysAtom.reportChanged();else for(var zf=ae._data.keys(),qp=yn.keys(),Qu=zf.next(),Xd=qp.next();!Qu.done;){if(Qu.value!==Xd.value){ae._keysAtom.reportChanged();break}Qu=zf.next(),Xd=qp.next()}ae._data=yn}),this},Object.defineProperty(Q.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),Q.prototype.toPOJO=function(){var Y,ae,Te={};try{for(var We=K(this),st=We.next();!st.done;st=We.next()){var wt=Z(st.value,2),Ut=wt[0],yn=wt[1];Te[typeof Ut=="symbol"?Ut:A(Ut)]=yn}}catch(wr){Y={error:wr}}finally{try{st&&!st.done&&(ae=We.return)&&ae.call(We)}finally{if(Y)throw Y.error}}return Te},Q.prototype.toJS=function(){return new Map(this)},Q.prototype.toJSON=function(){return this.toPOJO()},Q.prototype.toString=function(){var Y=this;return this.name+"[{ "+Array.from(this.keys()).map(function(ae){return A(ae)+": "+Y.get(ae)}).join(", ")+" }]"},Q.prototype.observe=function(Y,ae){return gl(this,Y)},Q.prototype.intercept=function(Y){return Gl(this,Y)},Q}(),li=C("ObservableMap",Zp),Nc={},ml=function(){function Q(Y,ae,Te){if(ae===void 0&&(ae=Be),Te===void 0&&(Te="ObservableSet@"+u()),this.name=Te,this[Hp]=Nc,this._data=new Set,this._atom=L(this.name),this[Symbol.toStringTag]="Set",typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(We,st){return ae(We,st,Te)},Y&&this.replace(Y)}return Q.prototype.dehanceValue=function(Y){return this.dehancer!==void 0?this.dehancer(Y):Y},Q.prototype.clear=function(){var Y=this;gi(function(){Ye(function(){var ae,Te;try{for(var We=K(Y._data.values()),st=We.next();!st.done;st=We.next()){var wt=st.value;Y.delete(wt)}}catch(Ut){ae={error:Ut}}finally{try{st&&!st.done&&(Te=We.return)&&Te.call(We)}finally{if(ae)throw ae.error}}})})},Q.prototype.forEach=function(Y,ae){var Te,We;try{for(var st=K(this),wt=st.next();!wt.done;wt=st.next()){var Ut=wt.value;Y.call(ae,Ut,Ut,this)}}catch(yn){Te={error:yn}}finally{try{wt&&!wt.done&&(We=st.return)&&We.call(st)}finally{if(Te)throw Te.error}}},Object.defineProperty(Q.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),Q.prototype.add=function(Y){var ae=this;if(kt(this._atom),ka(this)&&!(We=Ir(this,{type:"add",object:this,newValue:Y})))return this;if(!this.has(Y)){gi(function(){ae._data.add(ae.enhancer(Y,void 0)),ae._atom.reportChanged()});var Te=Ca(this),We=Te?{type:"add",object:this,newValue:Y}:null;Te&&xi(this,We)}return this},Q.prototype.delete=function(Y){var ae=this;if(ka(this)&&!(We=Ir(this,{type:"delete",object:this,oldValue:Y})))return!1;if(this.has(Y)){var Te=Ca(this),We=Te?{type:"delete",object:this,oldValue:Y}:null;return gi(function(){ae._atom.reportChanged(),ae._data.delete(Y)}),Te&&xi(this,We),!0}return!1},Q.prototype.has=function(Y){return this._atom.reportObserved(),this._data.has(this.dehanceValue(Y))},Q.prototype.entries=function(){var Y=0,ae=Array.from(this.keys()),Te=Array.from(this.values());return $r({next:function(){var We=Y;return Y+=1,We<Te.length?{value:[ae[We],Te[We]],done:!1}:{done:!0}}})},Q.prototype.keys=function(){return this.values()},Q.prototype.values=function(){this._atom.reportObserved();var Y=this,ae=0,Te=Array.from(this._data.values());return $r({next:function(){return ae<Te.length?{value:Y.dehanceValue(Te[ae++]),done:!1}:{done:!0}}})},Q.prototype.replace=function(Y){var ae=this;return ua(Y)&&(Y=Y.toJS()),gi(function(){var Te=xn(!0);try{Array.isArray(Y)||$(Y)?(ae.clear(),Y.forEach(function(We){return ae.add(We)})):Y!=null&&f("Cannot initialize set from "+Y)}finally{Br(Te)}}),this},Q.prototype.observe=function(Y,ae){return gl(this,Y)},Q.prototype.intercept=function(Y){return Gl(this,Y)},Q.prototype.toJS=function(){return new Set(this)},Q.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},Q.prototype[Hp=I,Symbol.iterator]=function(){return this.values()},Q}(),ua=C("ObservableSet",ml),Xp=function(){function Q(Y,ae,Te,We){ae===void 0&&(ae=new Map),this.target=Y,this.values=ae,this.name=Te,this.defaultEnhancer=We,this.keysAtom=new N(Te+".keys")}return Q.prototype.read=function(Y){return this.values.get(Y).get()},Q.prototype.write=function(Y,ae){var Te=this.target,We=this.values.get(Y);if(We instanceof hi)We.set(ae);else{if(ka(this)){if(!(wt=Ir(this,{type:"update",object:this.proxy||Te,name:Y,newValue:ae})))return;ae=wt.newValue}if((ae=We.prepareNewValue(ae))!==On.UNCHANGED){var st=Ca(this),wt=st?{type:"update",object:this.proxy||Te,oldValue:We.value,name:Y,newValue:ae}:null;We.setNewValue(ae),st&&xi(this,wt)}}},Q.prototype.has=function(Y){var ae=this.pendingKeys||(this.pendingKeys=new Map),Te=ae.get(Y);if(Te)return Te.get();var We=!!this.values.get(Y);return Te=new ro(We,Ae,this.name+"."+A(Y)+"?",!1),ae.set(Y,Te),Te.get()},Q.prototype.addObservableProp=function(Y,ae,Te){Te===void 0&&(Te=this.defaultEnhancer);var We=this.target;if(ka(this)){var st=Ir(this,{object:this.proxy||We,name:Y,type:"add",newValue:ae});if(!st)return;ae=st.newValue}var wt=new ro(ae,Te,this.name+"."+A(Y),!1);this.values.set(Y,wt),ae=wt.value,Object.defineProperty(We,Y,function(Ut){return zu[Ut]||(zu[Ut]={configurable:!0,enumerable:!0,get:function(){return this[I].read(Ut)},set:function(yn){this[I].write(Ut,yn)}})}(Y)),this.notifyPropertyAddition(Y,ae)},Q.prototype.addComputedProp=function(Y,ae,Te){var We,st,wt,Ut=this.target;Te.name=Te.name||this.name+"."+A(ae),this.values.set(ae,new hi(Te)),(Y===Ut||(We=Y,st=ae,!(wt=Object.getOwnPropertyDescriptor(We,st))||wt.configurable!==!1&&wt.writable!==!1))&&Object.defineProperty(Y,ae,function(yn){return Zd[yn]||(Zd[yn]={configurable:On.computedConfigurable,enumerable:!1,get:function(){return vl(this).read(yn)},set:function(wr){vl(this).write(yn,wr)}})}(ae))},Q.prototype.remove=function(Y){if(this.values.has(Y)){var ae=this.target;if(ka(this)&&!(yn=Ir(this,{object:this.proxy||ae,name:Y,type:"remove"})))return;try{Un();var Te=Ca(this),We=!1,st=this.values.get(Y),wt=st&&st.get();if(st&&st.set(void 0),this.keysAtom.reportChanged(),this.values.delete(Y),this.pendingKeys){var Ut=this.pendingKeys.get(Y);Ut&&Ut.set(!1)}delete this.target[Y];var yn=Te?{type:"remove",object:this.proxy||ae,oldValue:wt,name:Y}:null;Te&&xi(this,yn)}finally{hr()}}},Q.prototype.illegalAccess=function(Y,ae){},Q.prototype.observe=function(Y,ae){return gl(this,Y)},Q.prototype.intercept=function(Y){return Gl(this,Y)},Q.prototype.notifyPropertyAddition=function(Y,ae){var Te=Ca(this),We=Te?{type:"add",object:this.proxy||this.target,name:Y,newValue:ae}:null;if(Te&&xi(this,We),this.pendingKeys){var st=this.pendingKeys.get(Y);st&&st.set(!0)}this.keysAtom.reportChanged()},Q.prototype.getKeys=function(){var Y,ae;this.keysAtom.reportObserved();var Te=[];try{for(var We=K(this.values),st=We.next();!st.done;st=We.next()){var wt=Z(st.value,2),Ut=wt[0];wt[1]instanceof ro&&Te.push(Ut)}}catch(yn){Y={error:yn}}finally{try{st&&!st.done&&(ae=We.return)&&ae.call(We)}finally{if(Y)throw Y.error}}return Te},Q}();function Ya(Q,Y,ae){if(Y===void 0&&(Y=""),ae===void 0&&(ae=Be),Object.prototype.hasOwnProperty.call(Q,I))return Q[I];b(Q)||(Y=(Q.constructor.name||"ObservableObject")+"@"+u()),Y||(Y="ObservableObject@"+u());var Te=new Xp(Q,new Map,A(Y),ae);return k(Q,I,Te),Te}var zu=Object.create(null),Zd=Object.create(null);function vl(Q){var Y=Q[I];return Y||(le(Q),Q[I])}var Ua=C("ObservableObjectAdministration",Xp);function Ea(Q){return!!O(Q)&&(le(Q),Ua(Q[I]))}function gs(Q,Y){if(typeof Q=="object"&&Q!==null){if(ps(Q))return Y!==void 0&&f(!1),Q[I].atom;if(ua(Q))return Q[I];if(li(Q)){var ae=Q;return Y===void 0?ae._keysAtom:((Te=ae._data.get(Y)||ae._hasMap.get(Y))||f(!1),Te)}var Te;if(le(Q),Y&&!Q[I]&&Q[Y],Ea(Q))return Y?((Te=Q[I].values.get(Y))||f(!1),Te):f(!1);if(j(Q)||Wa(Q)||Vn(Q))return Q}else if(typeof Q=="function"&&Vn(Q[I]))return Q[I];return f(!1)}function yl(Q,Y){return Q||f("Expecting some object"),Y!==void 0?yl(gs(Q,Y)):j(Q)||Wa(Q)||Vn(Q)||li(Q)||ua(Q)?Q:(le(Q),Q[I]?Q[I]:void f(!1))}var mt=Object.prototype.toString;function Mt(Q,Y,ae){return ae===void 0&&(ae=-1),Dt(Q,Y,ae)}function Dt(Q,Y,ae,Te,We){if(Q===Y)return Q!==0||1/Q==1/Y;if(Q==null||Y==null)return!1;if(Q!=Q)return Y!=Y;var st=typeof Q;if(st!=="function"&&st!=="object"&&typeof Y!="object")return!1;var wt=mt.call(Q);if(wt!==mt.call(Y))return!1;switch(wt){case"[object RegExp]":case"[object String]":return""+Q==""+Y;case"[object Number]":return+Q!=+Q?+Y!=+Y:+Q==0?1/+Q==1/Y:+Q==+Y;case"[object Date]":case"[object Boolean]":return+Q==+Y;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(Q)===Symbol.valueOf.call(Y);case"[object Map]":case"[object Set]":ae>=0&&ae++}Q=un(Q),Y=un(Y);var Ut=wt==="[object Array]";if(!Ut){if(typeof Q!="object"||typeof Y!="object")return!1;var yn=Q.constructor,wr=Y.constructor;if(yn!==wr&&!(typeof yn=="function"&&yn instanceof yn&&typeof wr=="function"&&wr instanceof wr)&&"constructor"in Q&&"constructor"in Y)return!1}if(ae===0)return!1;ae<0&&(ae=-1),We=We||[];for(var dn=(Te=Te||[]).length;dn--;)if(Te[dn]===Q)return We[dn]===Y;if(Te.push(Q),We.push(Y),Ut){if((dn=Q.length)!==Y.length)return!1;for(;dn--;)if(!Dt(Q[dn],Y[dn],ae-1,Te,We))return!1}else{var ao=Object.keys(Q),cr=void 0;if(dn=ao.length,Object.keys(Y).length!==dn)return!1;for(;dn--;)if(!lr(Y,cr=ao[dn])||!Dt(Q[cr],Y[cr],ae-1,Te,We))return!1}return Te.pop(),We.pop(),!0}function un(Q){return ps(Q)?Q.slice():P(Q)||li(Q)||$(Q)||ua(Q)?Array.from(Q.entries()):Q}function lr(Q,Y){return Object.prototype.hasOwnProperty.call(Q,Y)}function $r(Q){return Q[Symbol.iterator]=vo,Q}function vo(){return this}if(typeof Proxy=="undefined"||typeof Symbol=="undefined")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Di,extras:{getDebugName:function(Q,Y){return(Y!==void 0?gs(Q,Y):Ea(Q)||li(Q)||ua(Q)?yl(Q):gs(Q)).name}},$mobx:I})}).call(this,o(163),o(68))},function(n,r,o){var i=o(113),a=o(42),s=o(179);i||a(Object.prototype,"toString",s,{unsafe:!0})},function(n,r,o){var i=o(41),a=o(100),s=o(80),l=o(58),u=o(116),f="Array Iterator",h=l.set,m=l.getterFor(f);n.exports=u(Array,"Array",function(y,O){h(this,{type:f,target:i(y),index:0,kind:O})},function(){var y=m(this),O=y.target,b=y.kind,k=y.index++;return!O||k>=O.length?(y.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:k,done:!1}:b=="values"?{value:O[k],done:!1}:{value:[k,O[k]],done:!1}},"values"),s.Arguments=s.Array,a("keys"),a("values"),a("entries")},function(n,r,o){var i=o(16),a=o(7),s=o(46),l=o(76),u=o(34),f=o(15),h=o(71),m=o(36),y=o(108),O=o(18),b=o(35),k=o(96),C=o(30),P=o(33),$=o(54),T=o(87),A=o(32),R=o(40),B=o(41),I=o(86),N=o(39),j=o(69),L=o(60),V=o(77),X=o(74),oe=o(139),K=o(112),Z=o(50),re=o(38),J=o(84),z=o(98),q=o(42),ue=o(89),he=o(93),le=o(72),ze=o(90),Ee=o(28),Be=o(140),Ae=o(141),_e=o(78),ve=o(58),Ne=o(79).forEach,Se=he("hidden"),fe="Symbol",ye=Ee("toPrimitive"),He=ve.set,be=ve.getterFor(fe),Ie=Object.prototype,De=a.Symbol,Me=De&&De.prototype,qe=a.TypeError,Oe=a.QObject,Je=s("JSON","stringify"),lt=Z.f,Ke=re.f,et=oe.f,bt=J.f,Ot=f([].push),Qt=ue("symbols"),kt=ue("op-symbols"),an=ue("string-to-symbol-registry"),Ce=ue("symbol-to-string-registry"),Ye=ue("wks"),me=!Oe||!Oe.prototype||!Oe.prototype.findChild,Ve=m&&O(function(){return L(Ke({},"a",{get:function(){return Ke(this,"a",{value:7}).a}})).a!=7})?function(It,qt,Xt){var xn=lt(Ie,qt);xn&&delete Ie[qt],Ke(It,qt,Xt),xn&&It!==Ie&&Ke(Ie,qt,xn)}:Ke,ke=function(It,qt){var Xt=Qt[It]=L(Me);return He(Xt,{type:fe,tag:It,description:qt}),m||(Xt.description=qt),Xt},Ze=function(It,qt,Xt){It===Ie&&Ze(kt,qt,Xt),A(It);var xn=I(qt);return A(Xt),b(Qt,xn)?(Xt.enumerable?(b(It,Se)&&It[Se][xn]&&(It[Se][xn]=!1),Xt=L(Xt,{enumerable:j(0,!1)})):(b(It,Se)||Ke(It,Se,j(1,{})),It[Se][xn]=!0),Ve(It,xn,Xt)):Ke(It,xn,Xt)},rt=function(It,qt){A(It);var Xt=B(qt),xn=V(Xt).concat(Bt(Xt));return Ne(xn,function(Br){m&&!u(zt,Xt,Br)||Ze(It,Br,Xt[Br])}),It},zt=function(It){var qt=I(It),Xt=u(bt,this,qt);return!(this===Ie&&b(Qt,qt)&&!b(kt,qt))&&(!(Xt||!b(this,qt)||!b(Qt,qt)||b(this,Se)&&this[Se][qt])||Xt)},Fn=function(It,qt){var Xt=B(It),xn=I(qt);if(Xt!==Ie||!b(Qt,xn)||b(kt,xn)){var Br=lt(Xt,xn);return!Br||!b(Qt,xn)||b(Xt,Se)&&Xt[Se][xn]||(Br.enumerable=!0),Br}},ot=function(It){var qt=et(B(It)),Xt=[];return Ne(qt,function(xn){b(Qt,xn)||b(le,xn)||Ot(Xt,xn)}),Xt},Bt=function(It){var qt=It===Ie,Xt=et(qt?kt:B(It)),xn=[];return Ne(Xt,function(Br){!b(Qt,Br)||qt&&!b(Ie,Br)||Ot(xn,Qt[Br])}),xn};if(y||(De=function(){if($(Me,this))throw qe("Symbol is not a constructor");var It=arguments.length&&arguments[0]!==void 0?N(arguments[0]):void 0,qt=ze(It),Xt=function(xn){this===Ie&&u(Xt,kt,xn),b(this,Se)&&b(this[Se],qt)&&(this[Se][qt]=!1),Ve(this,qt,j(1,xn))};return m&&me&&Ve(Ie,qt,{configurable:!0,set:Xt}),ke(qt,It)},q(Me=De.prototype,"toString",function(){return be(this).tag}),q(De,"withoutSetter",function(It){return ke(ze(It),It)}),J.f=zt,re.f=Ze,Z.f=Fn,X.f=oe.f=ot,K.f=Bt,Be.f=function(It){return ke(Ee(It),It)},m&&(Ke(Me,"description",{configurable:!0,get:function(){return be(this).description}}),h||q(Ie,"propertyIsEnumerable",zt,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!y,sham:!y},{Symbol:De}),Ne(V(Ye),function(It){Ae(It)}),i({target:fe,stat:!0,forced:!y},{for:function(It){var qt=N(It);if(b(an,qt))return an[qt];var Xt=De(qt);return an[qt]=Xt,Ce[Xt]=qt,Xt},keyFor:function(It){if(!T(It))throw qe(It+" is not a symbol");if(b(Ce,It))return Ce[It]},useSetter:function(){me=!0},useSimple:function(){me=!1}}),i({target:"Object",stat:!0,forced:!y,sham:!m},{create:function(It,qt){return qt===void 0?L(It):rt(L(It),qt)},defineProperty:Ze,defineProperties:rt,getOwnPropertyDescriptor:Fn}),i({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:ot,getOwnPropertySymbols:Bt}),i({target:"Object",stat:!0,forced:O(function(){K.f(1)})},{getOwnPropertySymbols:function(It){return K.f(R(It))}}),Je&&i({target:"JSON",stat:!0,forced:!y||O(function(){var It=De();return Je([It])!="[null]"||Je({a:It})!="{}"||Je(Object(It))!="{}"})},{stringify:function(It,qt,Xt){var xn=z(arguments),Br=qt;if((P(qt)||It!==void 0)&&!T(It))return k(qt)||(qt=function(ro,Oa){if(C(Br)&&(Oa=u(Br,this,ro,Oa)),!T(Oa))return Oa}),xn[1]=qt,l(Je,null,xn)}}),!Me[ye]){var Sn=Me.valueOf;q(Me,ye,function(It){return u(Sn,this)})}_e(De,fe),le[Se]=!0},function(n,r,o){var i=o(7),a=o(152),s=o(153),l=o(3),u=o(57),f=o(28),h=f("iterator"),m=f("toStringTag"),y=l.values,O=function(k,C){if(k){if(k[h]!==y)try{u(k,h,y)}catch{k[h]=y}if(k[m]||u(k,m,C),a[C]){for(var P in l)if(k[P]!==l[P])try{u(k,P,l[P])}catch{k[P]=l[P]}}}};for(var b in a)O(i[b]&&i[b].prototype,b);O(s,"DOMTokenList")},function(n,r,o){var i=o(151).charAt,a=o(39),s=o(58),l=o(116),u="String Iterator",f=s.set,h=s.getterFor(u);l(String,"String",function(m){f(this,{type:u,string:a(m),index:0})},function(){var m,y=h(this),O=y.string,b=y.index;return b>=O.length?{value:void 0,done:!0}:(m=i(O,b),y.index+=m.length,{value:m,done:!1})})},function(n,r,o){(function(i){var a=function(s){return s&&s.Math==Math&&s};n.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i=="object"&&i)||function(){return this}()||Function("return this")()}).call(this,o(68))},function(n,r,o){var i=o(16),a=o(36),s=o(7),l=o(15),u=o(35),f=o(30),h=o(54),m=o(39),y=o(38).f,O=o(134),b=s.Symbol,k=b&&b.prototype;if(a&&f(b)&&(!("description"in k)||b().description!==void 0)){var C={},P=function(){var N=arguments.length<1||arguments[0]===void 0?void 0:m(arguments[0]),j=h(k,this)?new b(N):N===void 0?b():b(N);return N===""&&(C[j]=!0),j};O(P,b),P.prototype=k,k.constructor=P;var $=String(b("test"))=="Symbol(test)",T=l(k.toString),A=l(k.valueOf),R=/^Symbol\((.*)\)[^)]+$/,B=l("".replace),I=l("".slice);y(k,"description",{configurable:!0,get:function(){var N=A(this),j=T(N);if(u(C,N))return"";var L=$?I(j,7,-1):B(j,R,"$1");return L===""?void 0:L}}),i({global:!0,forced:!0},{Symbol:P})}},function(n,r,o){o(141)("iterator")},function(n,r,o){o.d(r,"a",function(){return l.a}),o.d(r,"c",function(){return l.e}),o.d(r,"h",function(){return R}),o.d(r,"i",function(){return $}),o.d(r,"j",function(){return C}),o.d(r,"b",function(){return Z}),o.d(r,"e",function(){return q}),o.d(r,"f",function(){return re}),o.d(r,"g",function(){return Qt});var i,a,s,l=o(0),u=0,f=[],h=l.i.__b,m=l.i.__r,y=l.i.diffed,O=l.i.__c,b=l.i.unmount;function k(Ce,Ye){l.i.__h&&l.i.__h(a,Ce,u||Ye),u=0;var me=a.__H||(a.__H={__:[],__h:[]});return Ce>=me.__.length&&me.__.push({}),me.__[Ce]}function C(Ce){return u=1,P(X,Ce)}function P(Ce,Ye,me){var Ve=k(i++,2);return Ve.t=Ce,Ve.__c||(Ve.__=[me?me(Ye):X(void 0,Ye),function(ke){var Ze=Ve.t(Ve.__[0],ke);Ve.__[0]!==Ze&&(Ve.__=[Ze,Ve.__[1]],Ve.__c.setState({}))}],Ve.__c=a),Ve.__}function $(Ce,Ye){var me=k(i++,3);!l.i.__s&&V(me.__H,Ye)&&(me.__=Ce,me.__H=Ye,a.__H.__h.push(me))}function T(Ce,Ye){var me=k(i++,4);!l.i.__s&&V(me.__H,Ye)&&(me.__=Ce,me.__H=Ye,a.__h.push(me))}function A(Ce,Ye){var me=k(i++,7);return V(me.__H,Ye)&&(me.__=Ce(),me.__H=Ye,me.__h=Ce),me.__}function R(Ce,Ye){return u=8,A(function(){return Ce},Ye)}function B(){var Ce;for(f.sort(function(Ye,me){return Ye.__v.__b-me.__v.__b});Ce=f.pop();)if(Ce.__P)try{Ce.__H.__h.forEach(j),Ce.__H.__h.forEach(L),Ce.__H.__h=[]}catch(Ye){Ce.__H.__h=[],l.i.__e(Ye,Ce.__v)}}l.i.__b=function(Ce){a=null,h&&h(Ce)},l.i.__r=function(Ce){m&&m(Ce),i=0;var Ye=(a=Ce.__c).__H;Ye&&(Ye.__h.forEach(j),Ye.__h.forEach(L),Ye.__h=[])},l.i.diffed=function(Ce){y&&y(Ce);var Ye=Ce.__c;Ye&&Ye.__H&&Ye.__H.__h.length&&(f.push(Ye)!==1&&s===l.i.requestAnimationFrame||((s=l.i.requestAnimationFrame)||N)(B)),a=null},l.i.__c=function(Ce,Ye){Ye.some(function(me){try{me.__h.forEach(j),me.__h=me.__h.filter(function(Ve){return!Ve.__||L(Ve)})}catch(Ve){Ye.some(function(ke){ke.__h&&(ke.__h=[])}),Ye=[],l.i.__e(Ve,me.__v)}}),O&&O(Ce,Ye)},l.i.unmount=function(Ce){b&&b(Ce);var Ye,me=Ce.__c;me&&me.__H&&(me.__H.__.forEach(function(Ve){try{j(Ve)}catch(ke){Ye=ke}}),Ye&&l.i.__e(Ye,me.__v))};var I=typeof requestAnimationFrame=="function";function N(Ce){var Ye,me=function(){clearTimeout(Ve),I&&cancelAnimationFrame(Ye),setTimeout(Ce)},Ve=setTimeout(me,100);I&&(Ye=requestAnimationFrame(me))}function j(Ce){var Ye=a,me=Ce.__c;typeof me=="function"&&(Ce.__c=void 0,me()),a=Ye}function L(Ce){var Ye=a;Ce.__c=Ce.__(),a=Ye}function V(Ce,Ye){return!Ce||Ce.length!==Ye.length||Ye.some(function(me,Ve){return me!==Ce[Ve]})}function X(Ce,Ye){return typeof Ye=="function"?Ye(Ce):Ye}function oe(Ce,Ye){for(var me in Ye)Ce[me]=Ye[me];return Ce}function K(Ce,Ye){for(var me in Ce)if(me!=="__source"&&!(me in Ye))return!0;for(var Ve in Ye)if(Ve!=="__source"&&Ce[Ve]!==Ye[Ve])return!0;return!1}function Z(Ce){this.props=Ce}function re(Ce,Ye){function me(ke){var Ze=this.props.ref,rt=Ze==ke.ref;return!rt&&Ze&&(Ze.call?Ze(null):Ze.current=null),Ye?!Ye(this.props,ke)||!rt:K(this.props,ke)}function Ve(ke){return this.shouldComponentUpdate=me,Object(l.e)(Ce,ke)}return Ve.displayName="Memo("+(Ce.displayName||Ce.name)+")",Ve.prototype.isReactComponent=!0,Ve.__f=!0,Ve}(Z.prototype=new l.a).isPureReactComponent=!0,Z.prototype.shouldComponentUpdate=function(Ce,Ye){return K(this.props,Ce)||K(this.state,Ye)};var J=l.i.__b;l.i.__b=function(Ce){Ce.type&&Ce.type.__f&&Ce.ref&&(Ce.props.ref=Ce.ref,Ce.ref=null),J&&J(Ce)};var z=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function q(Ce){function Ye(me,Ve){var ke=oe({},me);return delete ke.ref,Ce(ke,!(Ve=me.ref||Ve)||typeof Ve=="object"&&!("current"in Ve)?null:Ve)}return Ye.$$typeof=z,Ye.render=Ye,Ye.prototype.isReactComponent=Ye.__f=!0,Ye.displayName="ForwardRef("+(Ce.displayName||Ce.name)+")",Ye}var ue=function(Ce,Ye){return Ce==null?null:Object(l.k)(Object(l.k)(Ce).map(Ye))},he={map:ue,forEach:ue,count:function(Ce){return Ce?Object(l.k)(Ce).length:0},only:function(Ce){var Ye=Object(l.k)(Ce);if(Ye.length!==1)throw"Children.only";return Ye[0]},toArray:l.k},le=l.i.__e;l.i.__e=function(Ce,Ye,me){if(Ce.then){for(var Ve,ke=Ye;ke=ke.__;)if((Ve=ke.__c)&&Ve.__c)return Ye.__e==null&&(Ye.__e=me.__e,Ye.__k=me.__k),Ve.__c(Ce,Ye)}le(Ce,Ye,me)};var ze=l.i.unmount;function Ee(Ce,Ye,me){return Ce&&(Ce.__c&&Ce.__c.__H&&(Ce.__c.__H.__.forEach(function(Ve){typeof Ve.__c=="function"&&Ve.__c()}),Ce.__c.__H=null),(Ce=oe({},Ce)).__c!=null&&(Ce.__c.__P===me&&(Ce.__c.__P=Ye),Ce.__c=null),Ce.__k=Ce.__k&&Ce.__k.map(function(Ve){return Ee(Ve,Ye,me)})),Ce}function Be(Ce,Ye,me){return Ce&&(Ce.__v=null,Ce.__k=Ce.__k&&Ce.__k.map(function(Ve){return Be(Ve,Ye,me)}),Ce.__c&&Ce.__c.__P===Ye&&(Ce.__e&&me.insertBefore(Ce.__e,Ce.__d),Ce.__c.__e=!0,Ce.__c.__P=me)),Ce}function Ae(){this.__u=0,this.t=null,this.__b=null}function _e(Ce){var Ye=Ce.__.__c;return Ye&&Ye.__e&&Ye.__e(Ce)}function ve(){this.u=null,this.o=null}l.i.unmount=function(Ce){var Ye=Ce.__c;Ye&&Ye.__R&&Ye.__R(),Ye&&Ce.__h===!0&&(Ce.type=null),ze&&ze(Ce)},(Ae.prototype=new l.a).__c=function(Ce,Ye){var me=Ye.__c,Ve=this;Ve.t==null&&(Ve.t=[]),Ve.t.push(me);var ke=_e(Ve.__v),Ze=!1,rt=function(){Ze||(Ze=!0,me.__R=null,ke?ke(zt):zt())};me.__R=rt;var zt=function(){if(!--Ve.__u){if(Ve.state.__e){var ot=Ve.state.__e;Ve.__v.__k[0]=Be(ot,ot.__c.__P,ot.__c.__O)}var Bt;for(Ve.setState({__e:Ve.__b=null});Bt=Ve.t.pop();)Bt.forceUpdate()}},Fn=Ye.__h===!0;Ve.__u++||Fn||Ve.setState({__e:Ve.__b=Ve.__v.__k[0]}),Ce.then(rt,rt)},Ae.prototype.componentWillUnmount=function(){this.t=[]},Ae.prototype.render=function(Ce,Ye){if(this.__b){if(this.__v.__k){var me=document.createElement("div"),Ve=this.__v.__k[0].__c;this.__v.__k[0]=Ee(this.__b,me,Ve.__O=Ve.__P)}this.__b=null}var ke=Ye.__e&&Object(l.e)(l.b,null,Ce.fallback);return ke&&(ke.__h=null),[Object(l.e)(l.b,null,Ye.__e?null:Ce.children),ke]};var Ne=function(Ce,Ye,me){if(++me[1]===me[0]&&Ce.o.delete(Ye),Ce.props.revealOrder&&(Ce.props.revealOrder[0]!=="t"||!Ce.o.size))for(me=Ce.u;me;){for(;me.length>3;)me.pop()();if(me[1]<me[0])break;Ce.u=me=me[2]}};function Se(Ce){return this.getChildContext=function(){return Ce.context},Ce.children}function fe(Ce){var Ye=this,me=Ce.i;Ye.componentWillUnmount=function(){Object(l.j)(null,Ye.l),Ye.l=null,Ye.i=null},Ye.i&&Ye.i!==me&&Ye.componentWillUnmount(),Ce.__v?(Ye.l||(Ye.i=me,Ye.l={nodeType:1,parentNode:me,childNodes:[],appendChild:function(Ve){this.childNodes.push(Ve),Ye.i.appendChild(Ve)},insertBefore:function(Ve,ke){this.childNodes.push(Ve),Ye.i.appendChild(Ve)},removeChild:function(Ve){this.childNodes.splice(this.childNodes.indexOf(Ve)>>>1,1),Ye.i.removeChild(Ve)}}),Object(l.j)(Object(l.e)(Se,{context:Ye.context},Ce.__v),Ye.l)):Ye.l&&Ye.componentWillUnmount()}(ve.prototype=new l.a).__e=function(Ce){var Ye=this,me=_e(Ye.__v),Ve=Ye.o.get(Ce);return Ve[0]++,function(ke){var Ze=function(){Ye.props.revealOrder?(Ve.push(ke),Ne(Ye,Ce,Ve)):ke()};me?me(Ze):Ze()}},ve.prototype.render=function(Ce){this.u=null,this.o=new Map;var Ye=Object(l.k)(Ce.children);Ce.revealOrder&&Ce.revealOrder[0]==="b"&&Ye.reverse();for(var me=Ye.length;me--;)this.o.set(Ye[me],this.u=[1,0,this.u]);return Ce.children},ve.prototype.componentDidUpdate=ve.prototype.componentDidMount=function(){var Ce=this;this.o.forEach(function(Ye,me){Ne(Ce,me,Ye)})};var ye=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,He=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,be=typeof document!="undefined",Ie=function(Ce){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(Ce)};l.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(Ce){Object.defineProperty(l.a.prototype,Ce,{configurable:!0,get:function(){return this["UNSAFE_"+Ce]},set:function(Ye){Object.defineProperty(this,Ce,{configurable:!0,writable:!0,value:Ye})}})});var De=l.i.event;function Me(){}function qe(){return this.cancelBubble}function Oe(){return this.defaultPrevented}l.i.event=function(Ce){return De&&(Ce=De(Ce)),Ce.persist=Me,Ce.isPropagationStopped=qe,Ce.isDefaultPrevented=Oe,Ce.nativeEvent=Ce};var Je,lt={configurable:!0,get:function(){return this.class}},Ke=l.i.vnode;l.i.vnode=function(Ce){var Ye=Ce.type,me=Ce.props,Ve=me;if(typeof Ye=="string"){var ke=Ye.indexOf("-")===-1;for(var Ze in Ve={},me){var rt=me[Ze];be&&Ze==="children"&&Ye==="noscript"||Ze==="value"&&"defaultValue"in me&&rt==null||(Ze==="defaultValue"&&"value"in me&&me.value==null?Ze="value":Ze==="download"&&rt===!0?rt="":/ondoubleclick/i.test(Ze)?Ze="ondblclick":/^onchange(textarea|input)/i.test(Ze+Ye)&&!Ie(me.type)?Ze="oninput":/^onfocus$/i.test(Ze)?Ze="onfocusin":/^onblur$/i.test(Ze)?Ze="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Ze)?Ze=Ze.toLowerCase():ke&&He.test(Ze)?Ze=Ze.replace(/[A-Z0-9]/,"-$&").toLowerCase():rt===null&&(rt=void 0),Ve[Ze]=rt)}Ye=="select"&&Ve.multiple&&Array.isArray(Ve.value)&&(Ve.value=Object(l.k)(me.children).forEach(function(zt){zt.props.selected=Ve.value.indexOf(zt.props.value)!=-1})),Ye=="select"&&Ve.defaultValue!=null&&(Ve.value=Object(l.k)(me.children).forEach(function(zt){zt.props.selected=Ve.multiple?Ve.defaultValue.indexOf(zt.props.value)!=-1:Ve.defaultValue==zt.props.value})),Ce.props=Ve,me.class!=me.className&&(lt.enumerable="className"in me,me.className!=null&&(Ve.class=me.className),Object.defineProperty(Ve,"className",lt))}Ce.$$typeof=ye,Ke&&Ke(Ce)};var et=l.i.__r;l.i.__r=function(Ce){et&&et(Ce),Je=Ce.__c};var bt={ReactCurrentDispatcher:{current:{readContext:function(Ce){return Je.__n[Ce.__c].props.value}}}};function Ot(Ce){return!!Ce&&Ce.$$typeof===ye}var Qt=function(Ce,Ye){return Ce(Ye)},kt=l.b,an={useState:C,useReducer:P,useEffect:$,useLayoutEffect:T,useRef:function(Ce){return u=5,A(function(){return{current:Ce}},[])},useImperativeHandle:function(Ce,Ye,me){u=6,T(function(){typeof Ce=="function"?Ce(Ye()):Ce&&(Ce.current=Ye())},me==null?me:me.concat(Ce))},useMemo:A,useCallback:R,useContext:function(Ce){var Ye=a.context[Ce.__c],me=k(i++,9);return me.c=Ce,Ye?(me.__==null&&(me.__=!0,Ye.sub(a)),Ye.props.value):Ce.__},useDebugValue:function(Ce,Ye){l.i.useDebugValue&&l.i.useDebugValue(Ye?Ye(Ce):Ce)},version:"17.0.2",Children:he,render:function(Ce,Ye,me){return Ye.__k==null&&(Ye.textContent=""),Object(l.j)(Ce,Ye),typeof me=="function"&&me(),Ce?Ce.__c:null},hydrate:function(Ce,Ye,me){return Object(l.h)(Ce,Ye),typeof me=="function"&&me(),Ce?Ce.__c:null},unmountComponentAtNode:function(Ce){return!!Ce.__k&&(Object(l.j)(null,Ce),!0)},createPortal:function(Ce,Ye){return Object(l.e)(fe,{__v:Ce,i:Ye})},createElement:l.e,createContext:l.d,createFactory:function(Ce){return l.e.bind(null,Ce)},cloneElement:function(Ce){return Ot(Ce)?l.c.apply(null,arguments):Ce},createRef:l.f,Fragment:l.b,isValidElement:Ot,findDOMNode:function(Ce){return Ce&&(Ce.base||Ce.nodeType===1&&Ce)||null},Component:l.a,PureComponent:Z,memo:re,forwardRef:q,flushSync:function(Ce,Ye){return Ce(Ye)},unstable_batchedUpdates:Qt,StrictMode:kt,Suspense:Ae,SuspenseList:ve,lazy:function(Ce){var Ye,me,Ve;function ke(Ze){if(Ye||(Ye=Ce()).then(function(rt){me=rt.default||rt},function(rt){Ve=rt}),Ve)throw Ve;if(!me)throw Ye;return Object(l.e)(me,Ze)}return ke.displayName="Lazy",ke.__f=!0,ke},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:bt};r.d=an},function(n,r,o){var i=o(7),a=o(152),s=o(153),l=o(187),u=o(57),f=function(m){if(m&&m.forEach!==l)try{u(m,"forEach",l)}catch{m.forEach=l}};for(var h in a)a[h]&&f(i[h]&&i[h].prototype);f(s)},function(n,r,o){o(16)({target:"Object",stat:!0},{setPrototypeOf:o(102)})},function(n,r,o){var i=o(16),a=o(18),s=o(40),l=o(101),u=o(143);i({target:"Object",stat:!0,forced:a(function(){l(1)}),sham:!u},{getPrototypeOf:function(f){return l(s(f))}})},function(n,r,o){var i=o(16),a=o(46),s=o(76),l=o(203),u=o(165),f=o(32),h=o(33),m=o(60),y=o(18),O=a("Reflect","construct"),b=Object.prototype,k=[].push,C=y(function(){function T(){}return!(O(function(){},[],T)instanceof T)}),P=!y(function(){O(function(){})}),$=C||P;i({target:"Reflect",stat:!0,forced:$,sham:$},{construct:function(T,A){u(T),f(A);var R=arguments.length<3?T:u(arguments[2]);if(P&&!C)return O(T,A,R);if(T==R){switch(A.length){case 0:return new T;case 1:return new T(A[0]);case 2:return new T(A[0],A[1]);case 3:return new T(A[0],A[1],A[2]);case 4:return new T(A[0],A[1],A[2],A[3])}var B=[null];return s(k,B,A),new(s(l,T,B))}var I=R.prototype,N=m(h(I)?I:b),j=s(T,N,A);return h(j)?j:N}})},function(n,r){var o=Function.prototype,i=o.bind,a=o.call,s=i&&i.bind(a);n.exports=i?function(l){return l&&s(a,l)}:function(l){return l&&function(){return a.apply(l,arguments)}}},function(n,r,o){var i=o(7),a=o(50).f,s=o(57),l=o(42),u=o(110),f=o(134),h=o(95);n.exports=function(m,y){var O,b,k,C,P,$=m.target,T=m.global,A=m.stat;if(O=T?i:A?i[$]||u($,{}):(i[$]||{}).prototype)for(b in y){if(C=y[b],k=m.noTargetGet?(P=a(O,b))&&P.value:O[b],!h(T?b:$+(A?".":"#")+b,m.forced)&&k!==void 0){if(typeof C==typeof k)continue;f(C,k)}(m.sham||k&&k.sham)&&s(C,"sham",!0),l(O,b,C,m)}}},function(n,r,o){var i=o(16),a=o(7),s=o(96),l=o(99),u=o(33),f=o(75),h=o(45),m=o(41),y=o(62),O=o(28),b=o(81),k=o(98),C=b("slice"),P=O("species"),$=a.Array,T=Math.max;i({target:"Array",proto:!0,forced:!C},{slice:function(A,R){var B,I,N,j=m(this),L=h(j),V=f(A,L),X=f(R===void 0?L:R,L);if(s(j)&&(B=j.constructor,(l(B)&&(B===$||s(B.prototype))||u(B)&&(B=B[P])===null)&&(B=void 0),B===$||B===void 0))return k(j,V,X);for(I=new(B===void 0?$:B)(T(X-V,0)),N=0;V<X;V++,N++)V in j&&y(I,N,j[V]);return I.length=N,I}})},function(n,r){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,r,o){var i=o(16),a=o(103);i({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},function(n,r,o){var i=o(16),a=o(40),s=o(77);i({target:"Object",stat:!0,forced:o(18)(function(){s(1)})},{keys:function(l){return s(a(l))}})},function(n,r,o){var i=o(36),a=o(73).EXISTS,s=o(15),l=o(38).f,u=Function.prototype,f=s(u.toString),h=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,m=s(h.exec);i&&!a&&l(u,"name",{configurable:!0,get:function(){try{return m(h,f(this))[1]}catch{return""}}})},function(n,r,o){var i=o(16),a=o(18),s=o(41),l=o(50).f,u=o(36),f=a(function(){l(1)});i({target:"Object",stat:!0,forced:!u||f,sham:!u},{getOwnPropertyDescriptor:function(h,m){return l(s(h),m)}})},function(n,r,o){var i=o(16),a=o(188);i({target:"Array",stat:!0,forced:!o(120)(function(s){Array.from(s)})},{from:a})},function(n,r,o){var i=o(16),a=o(79).filter;i({target:"Array",proto:!0,forced:!o(81)("filter")},{filter:function(s){return a(this,s,arguments.length>1?arguments[1]:void 0)}})},function(n,r,o){var i=o(16),a=o(36),s=o(135),l=o(41),u=o(50),f=o(62);i({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(h){for(var m,y,O=l(h),b=u.f,k=s(O),C={},P=0;k.length>P;)(y=b(O,m=k[P++]))!==void 0&&f(C,m,y);return C}})},function(n,r,o){var i=o(16),a=o(7),s=o(18),l=o(96),u=o(33),f=o(40),h=o(45),m=o(62),y=o(115),O=o(81),b=o(28),k=o(70),C=b("isConcatSpreadable"),P=9007199254740991,$="Maximum allowed index exceeded",T=a.TypeError,A=k>=51||!s(function(){var I=[];return I[C]=!1,I.concat()[0]!==I}),R=O("concat"),B=function(I){if(!u(I))return!1;var N=I[C];return N!==void 0?!!N:l(I)};i({target:"Array",proto:!0,forced:!A||!R},{concat:function(I){var N,j,L,V,X,oe=f(this),K=y(oe,0),Z=0;for(N=-1,L=arguments.length;N<L;N++)if(B(X=N===-1?oe:arguments[N])){if(Z+(V=h(X))>P)throw T($);for(j=0;j<V;j++,Z++)j in X&&m(K,Z,X[j])}else{if(Z>=P)throw T($);m(K,Z++,X)}return K.length=Z,K}})},,function(n,r,o){var i=o(7),a=o(89),s=o(35),l=o(90),u=o(108),f=o(132),h=a("wks"),m=i.Symbol,y=m&&m.for,O=f?m:m&&m.withoutSetter||l;n.exports=function(b){if(!s(h,b)||!u&&typeof h[b]!="string"){var k="Symbol."+b;u&&s(m,b)?h[b]=m[b]:h[b]=f&&y?y(k):O(k)}return h[b]}},function(n,r,o){var i=o(16),a=o(202);i({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},function(n,r){n.exports=function(o){return typeof o=="function"}},function(n,r,o){var i=o(106),a=typeof self=="object"&&self&&self.Object===Object&&self,s=i.a||a||Function("return this")();r.a=s},function(n,r,o){var i=o(7),a=o(33),s=i.String,l=i.TypeError;n.exports=function(u){if(a(u))return u;throw l(s(u)+" is not an object")}},function(n,r,o){var i=o(30);n.exports=function(a){return typeof a=="object"?a!==null:i(a)}},function(n,r){var o=Function.prototype.call;n.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(n,r,o){var i=o(15),a=o(40),s=i({}.hasOwnProperty);n.exports=Object.hasOwn||function(l,u){return s(a(l),u)}},function(n,r,o){var i=o(18);n.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(n,r,o){var i=o(16),a=o(79).map;i({target:"Array",proto:!0,forced:!o(81)("map")},{map:function(s){return a(this,s,arguments.length>1?arguments[1]:void 0)}})},function(n,r,o){var i=o(7),a=o(36),s=o(133),l=o(32),u=o(86),f=i.TypeError,h=Object.defineProperty;r.f=a?h:function(m,y,O){if(l(m),y=u(y),l(O),s)try{return h(m,y,O)}catch{}if("get"in O||"set"in O)throw f("Accessors not supported");return"value"in O&&(m[y]=O.value),m}},function(n,r,o){var i=o(7),a=o(97),s=i.String;n.exports=function(l){if(a(l)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return s(l)}},function(n,r,o){var i=o(7),a=o(44),s=i.Object;n.exports=function(l){return s(a(l))}},function(n,r,o){var i=o(85),a=o(44);n.exports=function(s){return i(a(s))}},function(n,r,o){var i=o(7),a=o(30),s=o(35),l=o(57),u=o(110),f=o(92),h=o(58),m=o(73).CONFIGURABLE,y=h.get,O=h.enforce,b=String(String).split("String");(n.exports=function(k,C,P,$){var T,A=!!$&&!!$.unsafe,R=!!$&&!!$.enumerable,B=!!$&&!!$.noTargetGet,I=$&&$.name!==void 0?$.name:C;a(P)&&(String(I).slice(0,7)==="Symbol("&&(I="["+String(I).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s(P,"name")||m&&P.name!==I)&&l(P,"name",I),(T=O(P)).source||(T.source=b.join(typeof I=="string"?I:""))),k!==i?(A?!B&&k[C]&&(R=!0):delete k[C],R?k[C]=P:l(k,C,P)):R?k[C]=P:u(C,P)})(Function.prototype,"toString",function(){return a(this)&&y(this).source||f(this)})},function(n,r,o){(function(i){o.d(r,"d",function(){return l}),o.d(r,"c",function(){return u}),o.d(r,"b",function(){return f}),o.d(r,"a",function(){return m});var a=o(10),s=function(y,O){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var k,C,P=b.call(y),$=[];try{for(;(O===void 0||O-- >0)&&!(k=P.next()).done;)$.push(k.value)}catch(T){C={error:T}}finally{try{k&&!k.done&&(b=P.return)&&b.call(P)}finally{if(C)throw C.error}}return $};function l(){var y=s(Object(a.j)(0),2)[1];return Object(a.h)(function(){y(function(O){return O+1})},[])}function u(y){if(!y||typeof y!="object")return!1;var O=Object.getPrototypeOf(y);return!O||O===Object.prototype}function f(y){return typeof Symbol=="function"?Symbol.for(y):"__$mobx-react "+y+"__"}var h={};function m(){return typeof window!="undefined"?window:i!==void 0?i:typeof self!="undefined"?self:h}}).call(this,o(68))},function(n,r,o){var i=o(7).TypeError;n.exports=function(a){if(a==null)throw i("Can't call method on "+a);return a}},function(n,r,o){var i=o(94);n.exports=function(a){return i(a.length)}},function(n,r,o){var i=o(7),a=o(30),s=function(l){return a(l)?l:void 0};n.exports=function(l,u){return arguments.length<2?s(i[l]):i[l]&&i[l][u]}},function(n,r,o){var i=o(16),a=o(34),s=o(33),l=o(32),u=o(204),f=o(50),h=o(101);i({target:"Reflect",stat:!0},{get:function m(y,O){var b,k,C=arguments.length<3?y:arguments[2];return l(y)===C?y[O]:(b=f.f(y,O))?u(b)?b.value:b.get===void 0?void 0:a(b.get,C):s(k=h(y))?m(k,O,C):void 0}})},function(n,r,o){(function(i){var a=o(31),s=o(171),l=t&&!t.nodeType&&t,u=l&&typeof i=="object"&&i&&!i.nodeType&&i,f=u&&u.exports===l?a.a.Buffer:void 0,h=(f?f.isBuffer:void 0)||s.a;r.a=h}).call(this,o(122)(n))},function(n,r,o){(function(i){var a=o(106),s=t&&!t.nodeType&&t,l=s&&typeof i=="object"&&i&&!i.nodeType&&i,u=l&&l.exports===s&&a.a.process,f=function(){try{var h=l&&l.require&&l.require("util").types;return h||u&&u.binding&&u.binding("util")}catch{}}();r.a=f}).call(this,o(122)(n))},function(n,r,o){var i=o(36),a=o(34),s=o(84),l=o(69),u=o(41),f=o(86),h=o(35),m=o(133),y=Object.getOwnPropertyDescriptor;r.f=i?y:function(O,b){if(O=u(O),b=f(b),m)try{return y(O,b)}catch{}if(h(O,b))return l(!a(s.f,O,b),O[b])}},function(n,r,o){var i=o(15),a=i({}.toString),s=i("".slice);n.exports=function(l){return s(a(l),8,-1)}},function(n,r,o){o(182)("Map",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},o(186))},function(n,r,o){var i=o(16),a=o(219).entries;i({target:"Object",stat:!0},{entries:function(s){return a(s)}})},function(n,r,o){var i=o(15);n.exports=i({}.isPrototypeOf)},function(n,r,o){var i=o(46);n.exports=i("navigator","userAgent")||""},function(n,r,o){var i=o(7),a=o(30),s=o(88),l=i.TypeError;n.exports=function(u){if(a(u))return u;throw l(s(u)+" is not a function")}},function(n,r,o){var i=o(36),a=o(38),s=o(69);n.exports=i?function(l,u,f){return a.f(l,u,s(1,f))}:function(l,u,f){return l[u]=f,l}},function(n,r,o){var i,a,s,l=o(175),u=o(7),f=o(15),h=o(33),m=o(57),y=o(35),O=o(109),b=o(93),k=o(72),C="Object already initialized",P=u.TypeError,$=u.WeakMap;if(l||O.state){var T=O.state||(O.state=new $),A=f(T.get),R=f(T.has),B=f(T.set);i=function(N,j){if(R(T,N))throw new P(C);return j.facade=N,B(T,N,j),j},a=function(N){return A(T,N)||{}},s=function(N){return R(T,N)}}else{var I=b("state");k[I]=!0,i=function(N,j){if(y(N,I))throw new P(C);return j.facade=N,m(N,I,j),j},a=function(N){return y(N,I)?N[I]:{}},s=function(N){return y(N,I)}}n.exports={set:i,get:a,has:s,enforce:function(N){return s(N)?a(N):i(N,{})},getterFor:function(N){return function(j){var L;if(!h(j)||(L=a(j)).type!==N)throw P("Incompatible receiver, "+N+" required");return L}}}},function(n,r){var o=Math.ceil,i=Math.floor;n.exports=function(a){var s=+a;return s!=s||s===0?0:(s>0?i:o)(s)}},function(n,r,o){var i,a=o(32),s=o(176),l=o(111),u=o(72),f=o(138),h=o(91),m=o(93),y=m("IE_PROTO"),O=function(){},b=function(P){return"<script>"+P+"<\/script>"},k=function(P){P.write(b("")),P.close();var $=P.parentWindow.Object;return P=null,$},C=function(){try{i=new ActiveXObject("htmlfile")}catch{}var P,$;C=typeof document!="undefined"?document.domain&&i?k(i):(($=h("iframe")).style.display="none",f.appendChild($),$.src=String("javascript:"),(P=$.contentWindow.document).open(),P.write(b("document.F=Object")),P.close(),P.F):k(i);for(var T=l.length;T--;)delete C.prototype[l[T]];return C()};u[y]=!0,n.exports=Object.create||function(P,$){var T;return P!==null?(O.prototype=a(P),T=new O,O.prototype=null,T[y]=P):T=C(),$===void 0?T:s(T,$)}},function(n,r,o){var i=o(56);n.exports=function(a,s){var l=a[s];return l==null?void 0:i(l)}},function(n,r,o){var i=o(86),a=o(38),s=o(69);n.exports=function(l,u,f){var h=i(u);h in l?a.f(l,h,s(0,f)):l[h]=f}},function(n,r,o){var i=o(15),a=o(56),s=i(i.bind);n.exports=function(l,u){return a(l),u===void 0?l:s?s(l,u):function(){return l.apply(u,arguments)}}},function(n,r,o){var i=o(36),a=o(7),s=o(15),l=o(95),u=o(42),f=o(35),h=o(148),m=o(54),y=o(87),O=o(131),b=o(18),k=o(74).f,C=o(50).f,P=o(38).f,$=o(160),T=o(161).trim,A="Number",R=a.Number,B=R.prototype,I=a.TypeError,N=s("".slice),j=s("".charCodeAt),L=function(re){var J=O(re,"number");return typeof J=="bigint"?J:V(J)},V=function(re){var J,z,q,ue,he,le,ze,Ee,Be=O(re,"number");if(y(Be))throw I("Cannot convert a Symbol value to a number");if(typeof Be=="string"&&Be.length>2){if(Be=T(Be),(J=j(Be,0))===43||J===45){if((z=j(Be,2))===88||z===120)return NaN}else if(J===48){switch(j(Be,1)){case 66:case 98:q=2,ue=49;break;case 79:case 111:q=8,ue=55;break;default:return+Be}for(le=(he=N(Be,2)).length,ze=0;ze<le;ze++)if((Ee=j(he,ze))<48||Ee>ue)return NaN;return parseInt(he,q)}}return+Be};if(l(A,!R(" 0o1")||!R("0b1")||R("+0x1"))){for(var X,oe=function(re){var J=arguments.length<1?0:R(L(re)),z=this;return m(B,z)&&b(function(){$(z)})?h(Object(J),z,oe):J},K=i?k(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Z=0;K.length>Z;Z++)f(R,X=K[Z])&&!f(oe,X)&&P(oe,X,C(R,X));oe.prototype=B,B.constructor=oe,u(a,A,oe)}},function(n,r,o){var i=o(16),a=o(15),s=o(85),l=o(41),u=o(121),f=a([].join),h=s!=Object,m=u("join",",");i({target:"Array",proto:!0,forced:h||!m},{join:function(y){return f(l(this),y===void 0?",":y)}})},function(n,r,o){var i=o(15),a=o(73).PROPER,s=o(42),l=o(32),u=o(54),f=o(39),h=o(18),m=o(154),y="toString",O=RegExp.prototype,b=O.toString,k=i(m),C=h(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),P=a&&b.name!=y;(C||P)&&s(RegExp.prototype,y,function(){var $=l(this),T=f($.source),A=$.flags;return"/"+T+"/"+f(A===void 0&&u(O,$)&&!("flags"in O)?k($):A)},{unsafe:!0})},function(n,r,o){var i=o(16),a=o(216),s=o(100);i({target:"Array",proto:!0},{fill:a}),s("fill")},function(n,r){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,r){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,r,o){var i,a,s=o(7),l=o(55),u=s.process,f=s.Deno,h=u&&u.versions||f&&f.version,m=h&&h.v8;m&&(a=(i=m.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&l&&(!(i=l.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=l.match(/Chrome\/(\d+)/))&&(a=+i[1]),n.exports=a},function(n,r){n.exports=!1},function(n,r){n.exports={}},function(n,r,o){var i=o(36),a=o(35),s=Function.prototype,l=i&&Object.getOwnPropertyDescriptor,u=a(s,"name"),f=u&&function(){}.name==="something",h=u&&(!i||i&&l(s,"name").configurable);n.exports={EXISTS:u,PROPER:f,CONFIGURABLE:h}},function(n,r,o){var i=o(136),a=o(111).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(s){return i(s,a)}},function(n,r,o){var i=o(59),a=Math.max,s=Math.min;n.exports=function(l,u){var f=i(l);return f<0?a(f+u,0):s(f,u)}},function(n,r){var o=Function.prototype,i=o.apply,a=o.bind,s=o.call;n.exports=typeof Reflect=="object"&&Reflect.apply||(a?s.bind(i):function(){return s.apply(i,arguments)})},function(n,r,o){var i=o(136),a=o(111);n.exports=Object.keys||function(s){return i(s,a)}},function(n,r,o){var i=o(38).f,a=o(35),s=o(28)("toStringTag");n.exports=function(l,u,f){l&&!a(l=f?l:l.prototype,s)&&i(l,s,{configurable:!0,value:u})}},function(n,r,o){var i=o(63),a=o(15),s=o(85),l=o(40),u=o(45),f=o(115),h=a([].push),m=function(y){var O=y==1,b=y==2,k=y==3,C=y==4,P=y==6,$=y==7,T=y==5||P;return function(A,R,B,I){for(var N,j,L=l(A),V=s(L),X=i(R,B),oe=u(V),K=0,Z=I||f,re=O?Z(A,oe):b||$?Z(A,0):void 0;oe>K;K++)if((T||K in V)&&(j=X(N=V[K],K,L),y))if(O)re[K]=j;else if(j)switch(y){case 3:return!0;case 5:return N;case 6:return K;case 2:h(re,N)}else switch(y){case 4:return!1;case 7:h(re,N)}return P?-1:k||C?C:re}};n.exports={forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findIndex:m(6),filterReject:m(7)}},function(n,r){n.exports={}},function(n,r,o){var i=o(18),a=o(28),s=o(70),l=a("species");n.exports=function(u){return s>=51||!i(function(){var f=[];return(f.constructor={})[l]=function(){return{foo:1}},f[u](Boolean).foo!==1})}},function(n,r,o){var i=o(76),a=o(34),s=o(15),l=o(123),u=o(159),f=o(32),h=o(44),m=o(164),y=o(124),O=o(94),b=o(39),k=o(61),C=o(114),P=o(125),$=o(103),T=o(155),A=o(18),R=T.UNSUPPORTED_Y,B=4294967295,I=Math.min,N=[].push,j=s(/./.exec),L=s(N),V=s("".slice),X=!A(function(){var oe=/(?:)/,K=oe.exec;oe.exec=function(){return K.apply(this,arguments)};var Z="ab".split(oe);return Z.length!==2||Z[0]!=="a"||Z[1]!=="b"});l("split",function(oe,K,Z){var re;return re="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(J,z){var q=b(h(this)),ue=z===void 0?B:z>>>0;if(ue===0)return[];if(J===void 0)return[q];if(!u(J))return a(K,q,J,ue);for(var he,le,ze,Ee=[],Be=(J.ignoreCase?"i":"")+(J.multiline?"m":"")+(J.unicode?"u":"")+(J.sticky?"y":""),Ae=0,_e=new RegExp(J.source,Be+"g");(he=a($,_e,q))&&!((le=_e.lastIndex)>Ae&&(L(Ee,V(q,Ae,he.index)),he.length>1&&he.index<q.length&&i(N,Ee,C(he,1)),ze=he[0].length,Ae=le,Ee.length>=ue));)_e.lastIndex===he.index&&_e.lastIndex++;return Ae===q.length?!ze&&j(_e,"")||L(Ee,""):L(Ee,V(q,Ae)),Ee.length>ue?C(Ee,0,ue):Ee}:"0".split(void 0,0).length?function(J,z){return J===void 0&&z===0?[]:a(K,this,J,z)}:K,[function(J,z){var q=h(this),ue=J==null?void 0:k(J,oe);return ue?a(ue,J,q,z):a(re,b(q),J,z)},function(J,z){var q=f(this),ue=b(J),he=Z(re,q,ue,z,re!==K);if(he.done)return he.value;var le=m(q,RegExp),ze=q.unicode,Ee=(q.ignoreCase?"i":"")+(q.multiline?"m":"")+(q.unicode?"u":"")+(R?"g":"y"),Be=new le(R?"^(?:"+q.source+")":q,Ee),Ae=z===void 0?B:z>>>0;if(Ae===0)return[];if(ue.length===0)return P(Be,ue)===null?[ue]:[];for(var _e=0,ve=0,Ne=[];ve<ue.length;){Be.lastIndex=R?0:ve;var Se,fe=P(Be,R?V(ue,ve):ue);if(fe===null||(Se=I(O(Be.lastIndex+(R?ve:0)),ue.length))===_e)ve=y(ue,ve,ze);else{if(L(Ne,V(ue,_e,ve)),Ne.length===Ae)return Ne;for(var ye=1;ye<=fe.length-1;ye++)if(L(Ne,fe[ye]),Ne.length===Ae)return Ne;ve=_e=Se}}return L(Ne,V(ue,_e)),Ne}]},!X,R)},function(n,r,o){o(16)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(n,r,o){var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,s=a&&!i.call({1:2},1);r.f=s?function(l){var u=a(this,l);return!!u&&u.enumerable}:i},function(n,r,o){var i=o(7),a=o(15),s=o(18),l=o(51),u=i.Object,f=a("".split);n.exports=s(function(){return!u("z").propertyIsEnumerable(0)})?function(h){return l(h)=="String"?f(h,""):u(h)}:u},function(n,r,o){var i=o(131),a=o(87);n.exports=function(s){var l=i(s,"string");return a(l)?l:l+""}},function(n,r,o){var i=o(7),a=o(46),s=o(30),l=o(54),u=o(132),f=i.Object;n.exports=u?function(h){return typeof h=="symbol"}:function(h){var m=a("Symbol");return s(m)&&l(m.prototype,f(h))}},function(n,r,o){var i=o(7).String;n.exports=function(a){try{return i(a)}catch{return"Object"}}},function(n,r,o){var i=o(71),a=o(109);(n.exports=function(s,l){return a[s]||(a[s]=l!==void 0?l:{})})("versions",[]).push({version:"3.19.3",mode:i?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},function(n,r,o){var i=o(15),a=0,s=Math.random(),l=i(1 .toString);n.exports=function(u){return"Symbol("+(u===void 0?"":u)+")_"+l(++a+s,36)}},function(n,r,o){var i=o(7),a=o(33),s=i.document,l=a(s)&&a(s.createElement);n.exports=function(u){return l?s.createElement(u):{}}},function(n,r,o){var i=o(15),a=o(30),s=o(109),l=i(Function.toString);a(s.inspectSource)||(s.inspectSource=function(u){return l(u)}),n.exports=s.inspectSource},function(n,r,o){var i=o(89),a=o(90),s=i("keys");n.exports=function(l){return s[l]||(s[l]=a(l))}},function(n,r,o){var i=o(59),a=Math.min;n.exports=function(s){return s>0?a(i(s),9007199254740991):0}},function(n,r,o){var i=o(18),a=o(30),s=/#|\.prototype\./,l=function(y,O){var b=f[u(y)];return b==m||b!=h&&(a(O)?i(O):!!O)},u=l.normalize=function(y){return String(y).replace(s,".").toLowerCase()},f=l.data={},h=l.NATIVE="N",m=l.POLYFILL="P";n.exports=l},function(n,r,o){var i=o(51);n.exports=Array.isArray||function(a){return i(a)=="Array"}},function(n,r,o){var i=o(7),a=o(113),s=o(30),l=o(51),u=o(28)("toStringTag"),f=i.Object,h=l(function(){return arguments}())=="Arguments";n.exports=a?l:function(m){var y,O,b;return m===void 0?"Undefined":m===null?"Null":typeof(O=function(k,C){try{return k[C]}catch{}}(y=f(m),u))=="string"?O:h?l(y):(b=l(y))=="Object"&&s(y.callee)?"Arguments":b}},function(n,r,o){var i=o(15);n.exports=i([].slice)},function(n,r,o){var i=o(15),a=o(18),s=o(30),l=o(97),u=o(46),f=o(92),h=function(){},m=[],y=u("Reflect","construct"),O=/^\s*(?:class|function)\b/,b=i(O.exec),k=!O.exec(h),C=function(P){if(!s(P))return!1;try{return y(h,m,P),!0}catch{return!1}};n.exports=!y||a(function(){var P;return C(C.call)||!C(Object)||!C(function(){P=!0})||P})?function(P){if(!s(P))return!1;switch(l(P)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return k||!!b(O,f(P))}:C},function(n,r,o){var i=o(28),a=o(60),s=o(38),l=i("unscopables"),u=Array.prototype;u[l]==null&&s.f(u,l,{configurable:!0,value:a(null)}),n.exports=function(f){u[l][f]=!0}},function(n,r,o){var i=o(7),a=o(35),s=o(30),l=o(40),u=o(93),f=o(143),h=u("IE_PROTO"),m=i.Object,y=m.prototype;n.exports=f?m.getPrototypeOf:function(O){var b=l(O);if(a(b,h))return b[h];var k=b.constructor;return s(k)&&b instanceof k?k.prototype:b instanceof m?y:null}},function(n,r,o){var i=o(15),a=o(32),s=o(181);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l,u=!1,f={};try{(l=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(f,[]),u=f instanceof Array}catch{}return function(h,m){return a(h),s(m),u?l(h,m):h.__proto__=m,h}}():void 0)},function(n,r,o){var i,a,s=o(34),l=o(15),u=o(39),f=o(154),h=o(155),m=o(89),y=o(60),O=o(58).get,b=o(190),k=o(191),C=m("native-string-replace",String.prototype.replace),P=RegExp.prototype.exec,$=P,T=l("".charAt),A=l("".indexOf),R=l("".replace),B=l("".slice),I=(a=/b*/g,s(P,i=/a/,"a"),s(P,a,"a"),i.lastIndex!==0||a.lastIndex!==0),N=h.BROKEN_CARET,j=/()??/.exec("")[1]!==void 0;(I||j||N||b||k)&&($=function(L){var V,X,oe,K,Z,re,J,z=this,q=O(z),ue=u(L),he=q.raw;if(he)return he.lastIndex=z.lastIndex,V=s($,he,ue),z.lastIndex=he.lastIndex,V;var le=q.groups,ze=N&&z.sticky,Ee=s(f,z),Be=z.source,Ae=0,_e=ue;if(ze&&(Ee=R(Ee,"y",""),A(Ee,"g")===-1&&(Ee+="g"),_e=B(ue,z.lastIndex),z.lastIndex>0&&(!z.multiline||z.multiline&&T(ue,z.lastIndex-1)!==`
- `)&&(Be="(?: "+Be+")",_e=" "+_e,Ae++),X=new RegExp("^(?:"+Be+")",Ee)),j&&(X=new RegExp("^"+Be+"$(?!\\s)",Ee)),I&&(oe=z.lastIndex),K=s(P,ze?X:z,_e),ze?K?(K.input=B(K.input,Ae),K[0]=B(K[0],Ae),K.index=z.lastIndex,z.lastIndex+=K[0].length):z.lastIndex=0:I&&K&&(z.lastIndex=z.global?K.index+K[0].length:oe),j&&K&&K.length>1&&s(C,K[0],X,function(){for(Z=1;Z<arguments.length-2;Z++)arguments[Z]===void 0&&(K[Z]=void 0)}),K&&le)for(K.groups=re=y(null),Z=0;Z<le.length;Z++)re[(J=le[Z])[0]]=K[J[1]];return K}),n.exports=$},function(n,r,o){var i=o(16),a=o(7),s=o(75),l=o(59),u=o(45),f=o(40),h=o(115),m=o(62),y=o(81)("splice"),O=a.TypeError,b=Math.max,k=Math.min,C=9007199254740991,P="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!y},{splice:function($,T){var A,R,B,I,N,j,L=f(this),V=u(L),X=s($,V),oe=arguments.length;if(oe===0?A=R=0:oe===1?(A=0,R=V-X):(A=oe-2,R=k(b(l(T),0),V-X)),V+A-R>C)throw O(P);for(B=h(L,R),I=0;I<R;I++)(N=X+I)in L&&m(B,I,L[N]);if(B.length=R,A<R){for(I=X;I<V-R;I++)j=I+A,(N=I+R)in L?L[j]=L[N]:delete L[j];for(I=V;I>V-R+A;I--)delete L[I-1]}else if(A>R)for(I=V-R;I>X;I--)j=I+A-1,(N=I+R-1)in L?L[j]=L[N]:delete L[j];for(I=0;I<A;I++)L[I+X]=arguments[I+2];return L.length=V-R+A,B}})},function(n,r,o){var i=o(16),a=o(205);i({target:"String",proto:!0,forced:o(206)("anchor")},{anchor:function(s){return a(this,"a","name",s)}})},function(n,r,o){(function(i){var a=typeof i=="object"&&i&&i.Object===Object&&i;r.a=a}).call(this,o(68))},function(n,r,o){(function(i){var a=o(31),s=t&&!t.nodeType&&t,l=s&&typeof i=="object"&&i&&!i.nodeType&&i,u=l&&l.exports===s?a.a.Buffer:void 0,f=u?u.allocUnsafe:void 0;r.a=function(h,m){if(m)return h.slice();var y=h.length,O=f?f(y):new h.constructor(y);return h.copy(O),O}}).call(this,o(122)(n))},function(n,r,o){var i=o(70),a=o(18);n.exports=!!Object.getOwnPropertySymbols&&!a(function(){var s=Symbol();return!String(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&i&&i<41})},function(n,r,o){var i=o(7),a=o(110),s="__core-js_shared__",l=i[s]||a(s,{});n.exports=l},function(n,r,o){var i=o(7),a=Object.defineProperty;n.exports=function(s,l){try{a(i,s,{value:l,configurable:!0,writable:!0})}catch{i[s]=l}return l}},function(n,r){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(n,r){r.f=Object.getOwnPropertySymbols},function(n,r,o){var i={};i[o(28)("toStringTag")]="z",n.exports=String(i)==="[object z]"},function(n,r,o){var i=o(7),a=o(75),s=o(45),l=o(62),u=i.Array,f=Math.max;n.exports=function(h,m,y){for(var O=s(h),b=a(m,O),k=a(y===void 0?O:y,O),C=u(f(k-b,0)),P=0;b<k;b++,P++)l(C,P,h[b]);return C.length=P,C}},function(n,r,o){var i=o(178);n.exports=function(a,s){return new(i(a))(s===0?0:s)}},function(n,r,o){var i=o(16),a=o(34),s=o(71),l=o(73),u=o(30),f=o(180),h=o(101),m=o(102),y=o(78),O=o(57),b=o(42),k=o(28),C=o(80),P=o(142),$=l.PROPER,T=l.CONFIGURABLE,A=P.IteratorPrototype,R=P.BUGGY_SAFARI_ITERATORS,B=k("iterator"),I="keys",N="values",j="entries",L=function(){return this};n.exports=function(V,X,oe,K,Z,re,J){f(oe,X,K);var z,q,ue,he=function(ve){if(ve===Z&&Ae)return Ae;if(!R&&ve in Ee)return Ee[ve];switch(ve){case I:case N:case j:return function(){return new oe(this,ve)}}return function(){return new oe(this)}},le=X+" Iterator",ze=!1,Ee=V.prototype,Be=Ee[B]||Ee["@@iterator"]||Z&&Ee[Z],Ae=!R&&Be||he(Z),_e=X=="Array"&&Ee.entries||Be;if(_e&&(z=h(_e.call(new V)))!==Object.prototype&&z.next&&(s||h(z)===A||(m?m(z,A):u(z[B])||b(z,B,L)),y(z,le,!0,!0),s&&(C[le]=L)),$&&Z==N&&Be&&Be.name!==N&&(!s&&T?O(Ee,"name",N):(ze=!0,Ae=function(){return a(Be,this)})),Z)if(q={values:he(N),keys:re?Ae:he(I),entries:he(j)},J)for(ue in q)(R||ze||!(ue in Ee))&&b(Ee,ue,q[ue]);else i({target:X,proto:!0,forced:R||ze},q);return s&&!J||Ee[B]===Ae||b(Ee,B,Ae,{name:Z}),C[X]=Ae,q}},function(n,r,o){var i=o(7),a=o(63),s=o(34),l=o(32),u=o(88),f=o(145),h=o(45),m=o(54),y=o(146),O=o(118),b=o(147),k=i.TypeError,C=function($,T){this.stopped=$,this.result=T},P=C.prototype;n.exports=function($,T,A){var R,B,I,N,j,L,V,X=A&&A.that,oe=!(!A||!A.AS_ENTRIES),K=!(!A||!A.IS_ITERATOR),Z=!(!A||!A.INTERRUPTED),re=a(T,X),J=function(q){return R&&b(R,"normal",q),new C(!0,q)},z=function(q){return oe?(l(q),Z?re(q[0],q[1],J):re(q[0],q[1])):Z?re(q,J):re(q)};if(K)R=$;else{if(!(B=O($)))throw k(u($)+" is not iterable");if(f(B)){for(I=0,N=h($);N>I;I++)if((j=z($[I]))&&m(P,j))return j;return new C(!1)}R=y($,B)}for(L=R.next;!(V=s(L,R)).done;){try{j=z(V.value)}catch(q){b(R,"throw",q)}if(typeof j=="object"&&j&&m(P,j))return j}return new C(!1)}},function(n,r,o){var i=o(97),a=o(61),s=o(80),l=o(28)("iterator");n.exports=function(u){if(u!=null)return a(u,l)||a(u,"@@iterator")||s[i(u)]}},function(n,r,o){var i=o(7),a=o(54),s=i.TypeError;n.exports=function(l,u){if(a(u,l))return l;throw s("Incorrect invocation")}},function(n,r,o){var i=o(28)("iterator"),a=!1;try{var s=0,l={next:function(){return{done:!!s++}},return:function(){a=!0}};l[i]=function(){return this},Array.from(l,function(){throw 2})}catch{}n.exports=function(u,f){if(!f&&!a)return!1;var h=!1;try{var m={};m[i]=function(){return{next:function(){return{done:h=!0}}}},u(m)}catch{}return h}},function(n,r,o){var i=o(18);n.exports=function(a,s){var l=[][a];return!!l&&i(function(){l.call(null,s||function(){throw 1},1)})}},function(n,r){n.exports=function(o){if(!o.webpackPolyfill){var i=Object.create(o);i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),Object.defineProperty(i,"exports",{enumerable:!0}),i.webpackPolyfill=1}return i}},function(n,r,o){o(19);var i=o(15),a=o(42),s=o(103),l=o(18),u=o(28),f=o(57),h=u("species"),m=RegExp.prototype;n.exports=function(y,O,b,k){var C=u(y),P=!l(function(){var R={};return R[C]=function(){return 7},""[y](R)!=7}),$=P&&!l(function(){var R=!1,B=/a/;return y==="split"&&((B={}).constructor={},B.constructor[h]=function(){return B},B.flags="",B[C]=/./[C]),B.exec=function(){return R=!0,null},B[C](""),!R});if(!P||!$||b){var T=i(/./[C]),A=O(C,""[y],function(R,B,I,N,j){var L=i(R),V=B.exec;return V===s||V===m.exec?P&&!j?{done:!0,value:T(B,I,N)}:{done:!0,value:L(I,B,N)}:{done:!1}});a(String.prototype,y,A[0]),a(m,C,A[1])}k&&f(m[C],"sham",!0)}},function(n,r,o){var i=o(151).charAt;n.exports=function(a,s,l){return s+(l?i(a,s).length:1)}},function(n,r,o){var i=o(7),a=o(34),s=o(32),l=o(30),u=o(51),f=o(103),h=i.TypeError;n.exports=function(m,y){var O=m.exec;if(l(O)){var b=a(O,m,y);return b!==null&&s(b),b}if(u(m)==="RegExp")return a(f,m,y);throw h("RegExp#exec called on incompatible receiver")}},function(n,r,o){var i=o(76),a=o(34),s=o(15),l=o(123),u=o(18),f=o(32),h=o(30),m=o(59),y=o(94),O=o(39),b=o(44),k=o(124),C=o(61),P=o(201),$=o(125),T=o(28)("replace"),A=Math.max,R=Math.min,B=s([].concat),I=s([].push),N=s("".indexOf),j=s("".slice),L="a".replace(/./,"$0")==="$0",V=!!/./[T]&&/./[T]("a","$0")==="";l("replace",function(X,oe,K){var Z=V?"$":"$0";return[function(re,J){var z=b(this),q=re==null?void 0:C(re,T);return q?a(q,re,z,J):a(oe,O(z),re,J)},function(re,J){var z=f(this),q=O(re);if(typeof J=="string"&&N(J,Z)===-1&&N(J,"$<")===-1){var ue=K(oe,z,q,J);if(ue.done)return ue.value}var he=h(J);he||(J=O(J));var le=z.global;if(le){var ze=z.unicode;z.lastIndex=0}for(var Ee=[];;){var Be=$(z,q);if(Be===null||(I(Ee,Be),!le))break;O(Be[0])===""&&(z.lastIndex=k(q,y(z.lastIndex),ze))}for(var Ae,_e="",ve=0,Ne=0;Ne<Ee.length;Ne++){for(var Se=O((Be=Ee[Ne])[0]),fe=A(R(m(Be.index),q.length),0),ye=[],He=1;He<Be.length;He++)I(ye,(Ae=Be[He])===void 0?Ae:String(Ae));var be=Be.groups;if(he){var Ie=B([Se],ye,fe,q);be!==void 0&&I(Ie,be);var De=O(i(J,void 0,Ie))}else De=P(Se,q,fe,ye,be,J);fe>=ve&&(_e+=j(q,ve,fe)+De,ve=fe+Se.length)}return _e+j(q,ve)}]},!!u(function(){var X=/./;return X.exec=function(){var oe=[];return oe.groups={a:"7"},oe},"".replace(X,"$<a>")!=="7"})||!L||V)},function(n,r,o){var i=o(16),a=Math.hypot,s=Math.abs,l=Math.sqrt;i({target:"Math",stat:!0,forced:!!a&&a(1/0,NaN)!==1/0},{hypot:function(u,f){for(var h,m,y=0,O=0,b=arguments.length,k=0;O<b;)k<(h=s(arguments[O++]))?(y=y*(m=k/h)*m+1,k=h):y+=h>0?(m=h/k)*m:h;return k===1/0?1/0:k*l(y)}})},function(n,r,o){var i=o(51),a=o(7);n.exports=i(a.process)=="process"},function(n,r,o){o(16)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(n,r,o){(function(i,a){var s;/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */(function(){var l,u="Expected a function",f="__lodash_hash_undefined__",h="__lodash_placeholder__",m=16,y=32,O=64,b=128,k=256,C=1/0,P=9007199254740991,$=NaN,T=4294967295,A=[["ary",b],["bind",1],["bindKey",2],["curry",8],["curryRight",m],["flip",512],["partial",y],["partialRight",O],["rearg",k]],R="[object Arguments]",B="[object Array]",I="[object Boolean]",N="[object Date]",j="[object Error]",L="[object Function]",V="[object GeneratorFunction]",X="[object Map]",oe="[object Number]",K="[object Object]",Z="[object Promise]",re="[object RegExp]",J="[object Set]",z="[object String]",q="[object Symbol]",ue="[object WeakMap]",he="[object ArrayBuffer]",le="[object DataView]",ze="[object Float32Array]",Ee="[object Float64Array]",Be="[object Int8Array]",Ae="[object Int16Array]",_e="[object Int32Array]",ve="[object Uint8Array]",Ne="[object Uint8ClampedArray]",Se="[object Uint16Array]",fe="[object Uint32Array]",ye=/\b__p \+= '';/g,He=/\b(__p \+=) '' \+/g,be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ie=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Me=RegExp(Ie.source),qe=RegExp(De.source),Oe=/<%-([\s\S]+?)%>/g,Je=/<%([\s\S]+?)%>/g,lt=/<%=([\s\S]+?)%>/g,Ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/[\\^$.*+?()[\]{}|]/g,Qt=RegExp(Ot.source),kt=/^\s+/,an=/\s/,Ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ye=/\{\n\/\* \[wrapped with (.+)\] \*/,me=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ke=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zt=/\w*$/,Fn=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,Bt=/^\[object .+?Constructor\]$/,Sn=/^0o[0-7]+$/i,It=/^(?:0|[1-9]\d*)$/,qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,xn=/['\n\r\u2028\u2029\\]/g,Br="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ro="\\u2700-\\u27bf",Oa="a-z\\xdf-\\xf6\\xf8-\\xff",hi="A-Z\\xc0-\\xd6\\xd8-\\xde",Wa="\\ufe0e\\ufe0f",wa="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bf="['\u2019]",Zl="[\\ud800-\\udfff]",Hi="["+wa+"]",dl="["+Br+"]",On="\\d+",$c="[\\u2700-\\u27bf]",St="["+Oa+"]",on="[^\\ud800-\\udfff"+wa+On+ro+Oa+hi+"]",Un="\\ud83c[\\udffb-\\udfff]",hr="[^\\ud800-\\udfff]",Zi="(?:\\ud83c[\\udde6-\\uddff]){2}",si="[\\ud800-\\udbff][\\udc00-\\udfff]",Ko="["+hi+"]",Go="(?:"+St+"|"+on+")",pi="(?:"+Ko+"|"+on+")",_t="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",fn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Vn="(?:"+dl+"|"+Un+")?",Or="[\\ufe0e\\ufe0f]?",Di=Or+Vn+("(?:\\u200d(?:"+[hr,Zi,si].join("|")+")"+Or+Vn+")*"),hs="(?:"+[$c,Zi,si].join("|")+")"+Di,Fu="(?:"+[hr+dl+"?",dl,Zi,si,Zl].join("|")+")",Lm=RegExp(Bf,"g"),Xl=RegExp(dl,"g"),Dp=RegExp(Un+"(?="+Un+")|"+Fu+Di,"g"),Fd=RegExp([Ko+"?"+St+"+"+_t+"(?="+[Hi,Ko,"$"].join("|")+")",pi+"+"+fn+"(?="+[Hi,Ko+Go,"$"].join("|")+")",Ko+"?"+Go+"+"+_t,Ko+"+"+fn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",On,hs].join("|"),"g"),jp=RegExp("[\\u200d\\ud800-\\udfff"+Br+Wa+"]"),Lp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,z0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bm=-1,Gr={};Gr[ze]=Gr[Ee]=Gr[Be]=Gr[Ae]=Gr[_e]=Gr[ve]=Gr[Ne]=Gr[Se]=Gr[fe]=!0,Gr[R]=Gr[B]=Gr[he]=Gr[I]=Gr[le]=Gr[N]=Gr[j]=Gr[L]=Gr[X]=Gr[oe]=Gr[K]=Gr[re]=Gr[J]=Gr[z]=Gr[ue]=!1;var Kr={};Kr[R]=Kr[B]=Kr[he]=Kr[le]=Kr[I]=Kr[N]=Kr[ze]=Kr[Ee]=Kr[Be]=Kr[Ae]=Kr[_e]=Kr[X]=Kr[oe]=Kr[K]=Kr[re]=Kr[J]=Kr[z]=Kr[q]=Kr[ve]=Kr[Ne]=Kr[Se]=Kr[fe]=!0,Kr[j]=Kr[L]=Kr[ue]=!1;var Vm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ac=parseFloat,ql=parseInt,Bp=typeof i=="object"&&i&&i.Object===Object&&i,Fm=typeof self=="object"&&self&&self.Object===Object&&self,Wo=Bp||Fm||Function("return this")(),Vp=r&&!r.nodeType&&r,Vf=Vp&&typeof a=="object"&&a&&!a.nodeType&&a,Fp=Vf&&Vf.exports===Vp,zd=Fp&&Bp.process,ji=function(){try{var mt=Vf&&Vf.require&&Vf.require("util").types;return mt||zd&&zd.binding&&zd.binding("util")}catch{}}(),zp=ji&&ji.isArrayBuffer,zm=ji&&ji.isDate,Qp=ji&&ji.isMap,Qd=ji&&ji.isRegExp,Mc=ji&&ji.isSet,hl=ji&&ji.isTypedArray;function fo(mt,Mt,Dt){switch(Dt.length){case 0:return mt.call(Mt);case 1:return mt.call(Mt,Dt[0]);case 2:return mt.call(Mt,Dt[0],Dt[1]);case 3:return mt.call(Mt,Dt[0],Dt[1],Dt[2])}return mt.apply(Mt,Dt)}function Qm(mt,Mt,Dt,un){for(var lr=-1,$r=mt==null?0:mt.length;++lr<$r;){var vo=mt[lr];Mt(un,vo,Dt(vo),mt)}return un}function Sa(mt,Mt){for(var Dt=-1,un=mt==null?0:mt.length;++Dt<un&&Mt(mt[Dt],Dt,mt)!==!1;);return mt}function Wm(mt,Mt){for(var Dt=mt==null?0:mt.length;Dt--&&Mt(mt[Dt],Dt,mt)!==!1;);return mt}function Ym(mt,Mt){for(var Dt=-1,un=mt==null?0:mt.length;++Dt<un;)if(!Mt(mt[Dt],Dt,mt))return!1;return!0}function la(mt,Mt){for(var Dt=-1,un=mt==null?0:mt.length,lr=0,$r=[];++Dt<un;){var vo=mt[Dt];Mt(vo,Dt,mt)&&($r[lr++]=vo)}return $r}function xa(mt,Mt){return!!(mt!=null&&mt.length)&&Rc(mt,Mt,0)>-1}function Wp(mt,Mt,Dt){for(var un=-1,lr=mt==null?0:mt.length;++un<lr;)if(Dt(Mt,mt[un]))return!0;return!1}function Vr(mt,Mt){for(var Dt=-1,un=mt==null?0:mt.length,lr=Array(un);++Dt<un;)lr[Dt]=Mt(mt[Dt],Dt,mt);return lr}function gi(mt,Mt){for(var Dt=-1,un=Mt.length,lr=mt.length;++Dt<un;)mt[lr+Dt]=Mt[Dt];return mt}function Wd(mt,Mt,Dt,un){var lr=-1,$r=mt==null?0:mt.length;for(un&&$r&&(Dt=mt[++lr]);++lr<$r;)Dt=Mt(Dt,mt[lr],lr,mt);return Dt}function Um(mt,Mt,Dt,un){var lr=mt==null?0:mt.length;for(un&&lr&&(Dt=mt[--lr]);lr--;)Dt=Mt(Dt,mt[lr],lr,mt);return Dt}function Yp(mt,Mt){for(var Dt=-1,un=mt==null?0:mt.length;++Dt<un;)if(Mt(mt[Dt],Dt,mt))return!0;return!1}var Yd=Ca("length");function pl(mt,Mt,Dt){var un;return Dt(mt,function(lr,$r,vo){if(Mt(lr,$r,vo))return un=$r,!1}),un}function Kl(mt,Mt,Dt,un){for(var lr=mt.length,$r=Dt+(un?1:-1);un?$r--:++$r<lr;)if(Mt(mt[$r],$r,mt))return $r;return-1}function Rc(mt,Mt,Dt){return Mt==Mt?function(un,lr,$r){for(var vo=$r-1,Q=un.length;++vo<Q;)if(un[vo]===lr)return vo;return-1}(mt,Mt,Dt):Kl(mt,Gl,Dt)}function ka(mt,Mt,Dt,un){for(var lr=Dt-1,$r=mt.length;++lr<$r;)if(un(mt[lr],Mt))return lr;return-1}function Gl(mt){return mt!=mt}function Ir(mt,Mt){var Dt=mt==null?0:mt.length;return Dt?Ud(mt,Mt)/Dt:$}function Ca(mt){return function(Mt){return Mt==null?l:Mt[mt]}}function gl(mt){return function(Mt){return mt==null?l:mt[Mt]}}function xi(mt,Mt,Dt,un,lr){return lr(mt,function($r,vo,Q){Dt=un?(un=!1,$r):Mt(Dt,$r,vo,Q)}),Dt}function Ud(mt,Mt){for(var Dt,un=-1,lr=mt.length;++un<lr;){var $r=Mt(mt[un]);$r!==l&&(Dt=Dt===l?$r:Dt+$r)}return Dt}function Ff(mt,Mt){for(var Dt=-1,un=Array(mt);++Dt<mt;)un[Dt]=Mt(Dt);return un}function Up(mt){return mt&&mt.slice(0,Ea(mt)+1).replace(kt,"")}function Io(mt){return function(Mt){return mt(Mt)}}function Hd(mt,Mt){return Vr(Mt,function(Dt){return mt[Dt]})}function Jl(mt,Mt){return mt.has(Mt)}function ps(mt,Mt){for(var Dt=-1,un=mt.length;++Dt<un&&Rc(Mt,mt[Dt],0)>-1;);return Dt}function Hp(mt,Mt){for(var Dt=mt.length;Dt--&&Rc(Mt,mt[Dt],0)>-1;);return Dt}function Q0(mt,Mt){for(var Dt=mt.length,un=0;Dt--;)mt[Dt]===Mt&&++un;return un}var Zp=gl({\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"}),li=gl({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nc(mt){return"\\"+Vm[mt]}function ml(mt){return jp.test(mt)}function ua(mt){var Mt=-1,Dt=Array(mt.size);return mt.forEach(function(un,lr){Dt[++Mt]=[lr,un]}),Dt}function Xp(mt,Mt){return function(Dt){return mt(Mt(Dt))}}function Ya(mt,Mt){for(var Dt=-1,un=mt.length,lr=0,$r=[];++Dt<un;){var vo=mt[Dt];vo!==Mt&&vo!==h||(mt[Dt]=h,$r[lr++]=Dt)}return $r}function zu(mt){var Mt=-1,Dt=Array(mt.size);return mt.forEach(function(un){Dt[++Mt]=un}),Dt}function Zd(mt){var Mt=-1,Dt=Array(mt.size);return mt.forEach(function(un){Dt[++Mt]=[un,un]}),Dt}function vl(mt){return ml(mt)?function(Mt){for(var Dt=Dp.lastIndex=0;Dp.test(Mt);)++Dt;return Dt}(mt):Yd(mt)}function Ua(mt){return ml(mt)?function(Mt){return Mt.match(Dp)||[]}(mt):function(Mt){return Mt.split("")}(mt)}function Ea(mt){for(var Mt=mt.length;Mt--&&an.test(mt.charAt(Mt)););return Mt}var gs=gl({"&":"&","<":"<",">":">",""":'"',"'":"'"}),yl=function mt(Mt){var Dt,un=(Mt=Mt==null?Wo:yl.defaults(Wo.Object(),Mt,yl.pick(Wo,z0))).Array,lr=Mt.Date,$r=Mt.Error,vo=Mt.Function,Q=Mt.Math,Y=Mt.Object,ae=Mt.RegExp,Te=Mt.String,We=Mt.TypeError,st=un.prototype,wt=vo.prototype,Ut=Y.prototype,yn=Mt["__core-js_shared__"],wr=wt.toString,dn=Ut.hasOwnProperty,ao=0,cr=(Dt=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||""))?"Symbol(src)_1."+Dt:"",Yr=Ut.toString,ms=wr.call(Y),Eo=Wo._,Ta=ae("^"+wr.call(dn).replace(Ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eu=Fp?Mt.Buffer:l,tu=Mt.Symbol,zf=Mt.Uint8Array,qp=eu?eu.allocUnsafe:l,Qu=Xp(Y.getPrototypeOf,Y),Xd=Y.create,ca=Ut.propertyIsEnumerable,Qf=st.splice,Ic=tu?tu.isConcatSpreadable:l,Wu=tu?tu.iterator:l,Yu=tu?tu.toStringTag:l,Kp=function(){try{var S=zc(Y,"defineProperty");return S({},"",{}),S}catch{}}(),FE=Mt.clearTimeout!==Wo.clearTimeout&&Mt.clearTimeout,zE=lr&&lr.now!==Wo.Date.now&&lr.now,lw=Mt.setTimeout!==Wo.setTimeout&&Mt.setTimeout,Hm=Q.ceil,qd=Q.floor,W0=Y.getOwnPropertySymbols,QE=eu?eu.isBuffer:l,uw=Mt.isFinite,WE=st.join,cw=Xp(Y.keys,Y),ki=Q.max,fa=Q.min,Zm=lr.now,Xm=Mt.parseInt,qm=Q.random,YE=st.reverse,Kd=zc(Mt,"DataView"),nu=zc(Mt,"Map"),Y0=zc(Mt,"Promise"),Wf=zc(Mt,"Set"),Gd=zc(Mt,"WeakMap"),Gp=zc(Y,"create"),Km=Gd&&new Gd,Jd={},UE=Xa(Kd),fw=Xa(nu),HE=Xa(Y0),ZE=Xa(Wf),dw=Xa(Gd),Gm=tu?tu.prototype:l,Ci=Gm?Gm.valueOf:l,hw=Gm?Gm.toString:l;function Pe(S){if(Lo(S)&&!pr(S)&&!(S instanceof Lr)){if(S instanceof Fs)return S;if(dn.call(S,"__wrapped__"))return Uw(S)}return new Fs(S)}var eh=function(){function S(){}return function(E){if(!jo(E))return{};if(Xd)return Xd(E);S.prototype=E;var F=new S;return S.prototype=l,F}}();function Jp(){}function Fs(S,E){this.__wrapped__=S,this.__actions__=[],this.__chain__=!!E,this.__index__=0,this.__values__=l}function Lr(S){this.__wrapped__=S,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T,this.__views__=[]}function Yf(S){var E=-1,F=S==null?0:S.length;for(this.clear();++E<F;){var ie=S[E];this.set(ie[0],ie[1])}}function so(S){var E=-1,F=S==null?0:S.length;for(this.clear();++E<F;){var ie=S[E];this.set(ie[0],ie[1])}}function ru(S){var E=-1,F=S==null?0:S.length;for(this.clear();++E<F;){var ie=S[E];this.set(ie[0],ie[1])}}function Dc(S){var E=-1,F=S==null?0:S.length;for(this.__data__=new ru;++E<F;)this.add(S[E])}function zs(S){var E=this.__data__=new so(S);this.size=E.size}function U0(S,E){var F=pr(S),ie=!F&&Kf(S),pe=!F&&!ie&&Ku(S),Re=!F&&!ie&&!pe&&Qc(S),tt=F||ie||pe||Re,it=tt?Ff(S.length,Te):[],ht=it.length;for(var Ue in S)!E&&!dn.call(S,Ue)||tt&&(Ue=="length"||pe&&(Ue=="offset"||Ue=="parent")||Re&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||lu(Ue,ht))||it.push(Ue);return it}function H0(S){var E=S.length;return E?S[tb(0,E-1)]:l}function pw(S,E){return Hf(Za(S),jc(E,0,S.length))}function gw(S){return Hf(Za(S))}function Jm(S,E,F){(F!==l&&!Ao(S[E],F)||F===l&&!(E in S))&&ou(S,E,F)}function th(S,E,F){var ie=S[E];dn.call(S,E)&&Ao(ie,F)&&(F!==l||E in S)||ou(S,E,F)}function eg(S,E){for(var F=S.length;F--;)if(Ao(S[F][0],E))return F;return-1}function mw(S,E,F,ie){return To(S,function(pe,Re,tt){E(ie,pe,F(pe),tt)}),ie}function Z0(S,E){return S&&iu(E,yi(E),S)}function ou(S,E,F){E=="__proto__"&&Kp?Kp(S,E,{configurable:!0,enumerable:!0,value:F,writable:!0}):S[E]=F}function ev(S,E){for(var F=-1,ie=E.length,pe=un(ie),Re=S==null;++F<ie;)pe[F]=Re?l:hg(S,E[F]);return pe}function jc(S,E,F){return S==S&&(F!==l&&(S=S<=F?S:F),E!==l&&(S=S>=E?S:E)),S}function vs(S,E,F,ie,pe,Re){var tt,it=1&E,ht=2&E,Ue=4&E;if(F&&(tt=pe?F(S,ie,pe,Re):F(S)),tt!==l)return tt;if(!jo(S))return S;var Rt=pr(S);if(Rt){if(tt=function(Vt){var Jt=Vt.length,Jn=new Vt.constructor(Jt);return Jt&&typeof Vt[0]=="string"&&dn.call(Vt,"index")&&(Jn.index=Vt.index,Jn.input=Vt.input),Jn}(S),!it)return Za(S,tt)}else{var Zt=Xi(S),Cn=Zt==L||Zt==V;if(Ku(S))return lb(S,it);if(Zt==K||Zt==R||Cn&&!pe){if(tt=ht||Cn?{}:gb(S),!it)return ht?function(Vt,Jt){return iu(Vt,At(Vt),Jt)}(S,function(Vt,Jt){return Vt&&iu(Jt,Bi(Jt),Vt)}(tt,S)):function(Vt,Jt){return iu(Vt,hb(Vt),Jt)}(S,Z0(tt,S))}else{if(!Kr[Zt])return pe?S:{};tt=function(Vt,Jt,Jn){var wn=Vt.constructor;switch(Jt){case he:return ub(Vt);case I:case N:return new wn(+Vt);case le:return function(ar,Mr){var Ln=Mr?ub(ar.buffer):ar.buffer;return new ar.constructor(Ln,ar.byteOffset,ar.byteLength)}(Vt,Jn);case ze:case Ee:case Be:case Ae:case _e:case ve:case Ne:case Se:case fe:return bo(Vt,Jn);case X:return new wn;case oe:case z:return new wn(Vt);case re:return function(ar){var Mr=new ar.constructor(ar.source,zt.exec(ar));return Mr.lastIndex=ar.lastIndex,Mr}(Vt);case J:return new wn;case q:return er=Vt,Ci?Y(Ci.call(er)):{}}var er}(S,Zt,it)}}Re||(Re=new zs);var In=Re.get(S);if(In)return In;Re.set(S,tt),ph(S)?S.forEach(function(Vt){tt.add(vs(Vt,E,F,Vt,S,Re))}):oS(S)&&S.forEach(function(Vt,Jt){tt.set(Jt,vs(Vt,E,F,Jt,S,Re))});var Zn=Rt?l:(Ue?ht?db:ig:ht?Bi:yi)(S);return Sa(Zn||S,function(Vt,Jt){Zn&&(Vt=S[Jt=Vt]),th(tt,Jt,vs(Vt,E,F,Jt,S,Re))}),tt}function X0(S,E,F){var ie=F.length;if(S==null)return!ie;for(S=Y(S);ie--;){var pe=F[ie],Re=E[pe],tt=S[pe];if(tt===l&&!(pe in S)||!Re(tt))return!1}return!0}function q0(S,E,F){if(typeof S!="function")throw new We(u);return fh(function(){S.apply(l,F)},E)}function Uu(S,E,F,ie){var pe=-1,Re=xa,tt=!0,it=S.length,ht=[],Ue=E.length;if(!it)return ht;F&&(E=Vr(E,Io(F))),ie?(Re=Wp,tt=!1):E.length>=200&&(Re=Jl,tt=!1,E=new Dc(E));e:for(;++pe<it;){var Rt=S[pe],Zt=F==null?Rt:F(Rt);if(Rt=ie||Rt!==0?Rt:0,tt&&Zt==Zt){for(var Cn=Ue;Cn--;)if(E[Cn]===Zt)continue e;ht.push(Rt)}else Re(E,Zt,ie)||ht.push(Rt)}return ht}Pe.templateSettings={escape:Oe,evaluate:Je,interpolate:lt,variable:"",imports:{_:Pe}},Pe.prototype=Jp.prototype,Pe.prototype.constructor=Pe,Fs.prototype=eh(Jp.prototype),Fs.prototype.constructor=Fs,Lr.prototype=eh(Jp.prototype),Lr.prototype.constructor=Lr,Yf.prototype.clear=function(){this.__data__=Gp?Gp(null):{},this.size=0},Yf.prototype.delete=function(S){var E=this.has(S)&&delete this.__data__[S];return this.size-=E?1:0,E},Yf.prototype.get=function(S){var E=this.__data__;if(Gp){var F=E[S];return F===f?l:F}return dn.call(E,S)?E[S]:l},Yf.prototype.has=function(S){var E=this.__data__;return Gp?E[S]!==l:dn.call(E,S)},Yf.prototype.set=function(S,E){var F=this.__data__;return this.size+=this.has(S)?0:1,F[S]=Gp&&E===l?f:E,this},so.prototype.clear=function(){this.__data__=[],this.size=0},so.prototype.delete=function(S){var E=this.__data__,F=eg(E,S);return!(F<0)&&(F==E.length-1?E.pop():Qf.call(E,F,1),--this.size,!0)},so.prototype.get=function(S){var E=this.__data__,F=eg(E,S);return F<0?l:E[F][1]},so.prototype.has=function(S){return eg(this.__data__,S)>-1},so.prototype.set=function(S,E){var F=this.__data__,ie=eg(F,S);return ie<0?(++this.size,F.push([S,E])):F[ie][1]=E,this},ru.prototype.clear=function(){this.size=0,this.__data__={hash:new Yf,map:new(nu||so),string:new Yf}},ru.prototype.delete=function(S){var E=uh(this,S).delete(S);return this.size-=E?1:0,E},ru.prototype.get=function(S){return uh(this,S).get(S)},ru.prototype.has=function(S){return uh(this,S).has(S)},ru.prototype.set=function(S,E){var F=uh(this,S),ie=F.size;return F.set(S,E),this.size+=F.size==ie?0:1,this},Dc.prototype.add=Dc.prototype.push=function(S){return this.__data__.set(S,f),this},Dc.prototype.has=function(S){return this.__data__.has(S)},zs.prototype.clear=function(){this.__data__=new so,this.size=0},zs.prototype.delete=function(S){var E=this.__data__,F=E.delete(S);return this.size=E.size,F},zs.prototype.get=function(S){return this.__data__.get(S)},zs.prototype.has=function(S){return this.__data__.has(S)},zs.prototype.set=function(S,E){var F=this.__data__;if(F instanceof so){var ie=F.__data__;if(!nu||ie.length<199)return ie.push([S,E]),this.size=++F.size,this;F=this.__data__=new ru(ie)}return F.set(S,E),this.size=F.size,this};var To=Rw(An),vw=Rw(yo,!0);function yw(S,E){var F=!0;return To(S,function(ie,pe,Re){return F=!!E(ie,pe,Re)}),F}function Jo(S,E,F){for(var ie=-1,pe=S.length;++ie<pe;){var Re=S[ie],tt=E(Re);if(tt!=null&&(it===l?tt==tt&&!qi(tt):F(tt,it)))var it=tt,ht=Re}return ht}function Jr(S,E){var F=[];return To(S,function(ie,pe,Re){E(ie,pe,Re)&&F.push(ie)}),F}function Li(S,E,F,ie,pe){var Re=-1,tt=S.length;for(F||(F=zw),pe||(pe=[]);++Re<tt;){var it=S[Re];E>0&&F(it)?E>1?Li(it,E-1,F,ie,pe):gi(pe,it):ie||(pe[pe.length]=it)}return pe}var kr=Nw(),ui=Nw(!0);function An(S,E){return S&&kr(S,E,yi)}function yo(S,E){return S&&ui(S,E,yi)}function tv(S,E){return la(E,function(F){return Gu(S[F])})}function Hu(S,E){for(var F=0,ie=(E=Bc(E,S)).length;S!=null&&F<ie;)S=S[mi(E[F++])];return F&&F==ie?S:l}function K0(S,E,F){var ie=E(S);return pr(S)?ie:gi(ie,F(S))}function Do(S){return S==null?S===l?"[object Undefined]":"[object Null]":Yu&&Yu in Y(S)?function(E){var F=dn.call(E,Yu),ie=E[Yu];try{E[Yu]=l;var pe=!0}catch{}var Re=Yr.call(E);return pe&&(F?E[Yu]=ie:delete E[Yu]),Re}(S):function(E){return Yr.call(E)}(S)}function Yo(S,E){return S>E}function bw(S,E){return S!=null&&dn.call(S,E)}function _w(S,E){return S!=null&&E in Y(S)}function nv(S,E,F){for(var ie=F?Wp:xa,pe=S[0].length,Re=S.length,tt=Re,it=un(Re),ht=1/0,Ue=[];tt--;){var Rt=S[tt];tt&&E&&(Rt=Vr(Rt,Io(E))),ht=fa(Rt.length,ht),it[tt]=!F&&(E||pe>=120&&Rt.length>=120)?new Dc(tt&&Rt):l}Rt=S[0];var Zt=-1,Cn=it[0];e:for(;++Zt<pe&&Ue.length<ht;){var In=Rt[Zt],Zn=E?E(In):In;if(In=F||In!==0?In:0,!(Cn?Jl(Cn,Zn):ie(Ue,Zn,F))){for(tt=Re;--tt;){var Vt=it[tt];if(!(Vt?Jl(Vt,Zn):ie(S[tt],Zn,F)))continue e}Cn&&Cn.push(Zn),Ue.push(In)}}return Ue}function nh(S,E,F){var ie=(S=bb(S,E=Bc(E,S)))==null?S:S[mi(_o(E))];return ie==null?l:fo(ie,S,F)}function G0(S){return Lo(S)&&Do(S)==R}function rh(S,E,F,ie,pe){return S===E||(S==null||E==null||!Lo(S)&&!Lo(E)?S!=S&&E!=E:function(Re,tt,it,ht,Ue,Rt){var Zt=pr(Re),Cn=pr(tt),In=Zt?B:Xi(Re),Zn=Cn?B:Xi(tt),Vt=(In=In==R?K:In)==K,Jt=(Zn=Zn==R?K:Zn)==K,Jn=In==Zn;if(Jn&&Ku(Re)){if(!Ku(tt))return!1;Zt=!0,Vt=!1}if(Jn&&!Vt)return Rt||(Rt=new zs),Zt||Qc(Re)?Fw(Re,tt,it,ht,Ue,Rt):function(Ln,Xn,bi,Ki,Ol,Ei,cu){switch(bi){case le:if(Ln.byteLength!=Xn.byteLength||Ln.byteOffset!=Xn.byteOffset)return!1;Ln=Ln.buffer,Xn=Xn.buffer;case he:return!(Ln.byteLength!=Xn.byteLength||!Ei(new zf(Ln),new zf(Xn)));case I:case N:case oe:return Ao(+Ln,+Xn);case j:return Ln.name==Xn.name&&Ln.message==Xn.message;case re:case z:return Ln==Xn+"";case X:var wl=ua;case J:var tc=1&Ki;if(wl||(wl=zu),Ln.size!=Xn.size&&!tc)return!1;var nc=cu.get(Ln);if(nc)return nc==Xn;Ki|=2,cu.set(Ln,Xn);var ed=Fw(wl(Ln),wl(Xn),Ki,Ol,Ei,cu);return cu.delete(Ln),ed;case q:if(Ci)return Ci.call(Ln)==Ci.call(Xn)}return!1}(Re,tt,In,it,ht,Ue,Rt);if(!(1&it)){var wn=Vt&&dn.call(Re,"__wrapped__"),er=Jt&&dn.call(tt,"__wrapped__");if(wn||er){var ar=wn?Re.value():Re,Mr=er?tt.value():tt;return Rt||(Rt=new zs),Ue(ar,Mr,it,ht,Rt)}}return Jn?(Rt||(Rt=new zs),function(Ln,Xn,bi,Ki,Ol,Ei){var cu=1&bi,wl=ig(Ln),tc=wl.length,nc=ig(Xn).length;if(tc!=nc&&!cu)return!1;for(var ed=tc;ed--;){var rc=wl[ed];if(!(cu?rc in Xn:dn.call(Xn,rc)))return!1}var _g=Ei.get(Ln),bs=Ei.get(Xn);if(_g&&bs)return _g==Xn&&bs==Ln;var Iv=!0;Ei.set(Ln,Xn),Ei.set(Xn,Ln);for(var _s=cu;++ed<tc;){var Bn=Ln[rc=wl[ed]],Og=Xn[rc];if(Ki)var c_=cu?Ki(Og,Bn,rc,Xn,Ln,Ei):Ki(Bn,Og,rc,Ln,Xn,Ei);if(!(c_===l?Bn===Og||Ol(Bn,Og,bi,Ki,Ei):c_)){Iv=!1;break}_s||(_s=rc=="constructor")}if(Iv&&!_s){var wg=Ln.constructor,Dv=Xn.constructor;wg==Dv||!("constructor"in Ln)||!("constructor"in Xn)||typeof wg=="function"&&wg instanceof wg&&typeof Dv=="function"&&Dv instanceof Dv||(Iv=!1)}return Ei.delete(Ln),Ei.delete(Xn),Iv}(Re,tt,it,ht,Ue,Rt)):!1}(S,E,F,ie,rh,pe))}function rv(S,E,F,ie){var pe=F.length,Re=pe,tt=!ie;if(S==null)return!Re;for(S=Y(S);pe--;){var it=F[pe];if(tt&&it[2]?it[1]!==S[it[0]]:!(it[0]in S))return!1}for(;++pe<Re;){var ht=(it=F[pe])[0],Ue=S[ht],Rt=it[1];if(tt&&it[2]){if(Ue===l&&!(ht in S))return!1}else{var Zt=new zs;if(ie)var Cn=ie(Ue,Rt,ht,S,E,Zt);if(!(Cn===l?rh(Rt,Ue,3,ie,Zt):Cn))return!1}}return!0}function oh(S){return!(!jo(S)||(E=S,cr&&cr in E))&&(Gu(S)?Ta:Bt).test(Xa(S));var E}function J0(S){return typeof S=="function"?S:S==null?ha:typeof S=="object"?pr(S)?ww(S[0],S[1]):Ow(S):s_(S)}function Zu(S){if(!ch(S))return cw(S);var E=[];for(var F in Y(S))dn.call(S,F)&&F!="constructor"&&E.push(F);return E}function XE(S){if(!jo(S))return function(pe){var Re=[];if(pe!=null)for(var tt in Y(pe))Re.push(tt);return Re}(S);var E=ch(S),F=[];for(var ie in S)(ie!="constructor"||!E&&dn.call(S,ie))&&F.push(ie);return F}function Xu(S,E){return S<E}function Qs(S,E){var F=-1,ie=Pa(S)?un(S.length):[];return To(S,function(pe,Re,tt){ie[++F]=E(pe,Re,tt)}),ie}function Ow(S){var E=mv(S);return E.length==1&&E[0][2]?vb(E[0][0],E[0][1]):function(F){return F===S||rv(F,S,E)}}function ww(S,E){return vv(S)&&mb(E)?vb(mi(S),E):function(F){var ie=hg(F,S);return ie===l&&ie===E?pg(F,S):rh(E,ie,3)}}function ov(S,E,F,ie,pe){S!==E&&kr(E,function(Re,tt){if(pe||(pe=new zs),jo(Re))(function(ht,Ue,Rt,Zt,Cn,In,Zn){var Vt=bv(ht,Rt),Jt=bv(Ue,Rt),Jn=Zn.get(Jt);if(Jn)return void Jm(ht,Rt,Jn);var wn=In?In(Vt,Jt,Rt+"",ht,Ue,Zn):l,er=wn===l;if(er){var ar=pr(Jt),Mr=!ar&&Ku(Jt),Ln=!ar&&!Mr&&Qc(Jt);wn=Jt,ar||Mr||Ln?pr(Vt)?wn=Vt:ei(Vt)?wn=Za(Vt):Mr?(er=!1,wn=lb(Jt,!0)):Ln?(er=!1,wn=bo(Jt,!0)):wn=[]:Ju(Jt)||Kf(Jt)?(wn=Vt,Kf(Vt)?wn=Qb(Vt):jo(Vt)&&!Gu(Vt)||(wn=gb(Jt))):er=!1}er&&(Zn.set(Jt,wn),Cn(wn,Jt,Zt,In,Zn),Zn.delete(Jt)),Jm(ht,Rt,wn)})(S,E,tt,F,ov,ie,pe);else{var it=ie?ie(bv(S,tt),Re,tt+"",S,E,pe):l;it===l&&(it=Re),Jm(S,tt,it)}},Bi)}function Sw(S,E){var F=S.length;if(F)return lu(E+=E<0?F:0,F)?S[E]:l}function xw(S,E,F){E=E.length?Vr(E,function(Re){return pr(Re)?function(tt){return Hu(tt,Re.length===1?Re[0]:Re)}:Re}):[ha];var ie=-1;E=Vr(E,Io(Wn()));var pe=Qs(S,function(Re,tt,it){var ht=Vr(E,function(Ue){return Ue(Re)});return{criteria:ht,index:++ie,value:Re}});return function(Re,tt){var it=Re.length;for(Re.sort(tt);it--;)Re[it]=Re[it].value;return Re}(pe,function(Re,tt){return function(it,ht,Ue){for(var Rt=-1,Zt=it.criteria,Cn=ht.criteria,In=Zt.length,Zn=Ue.length;++Rt<In;){var Vt=Mw(Zt[Rt],Cn[Rt]);if(Vt)return Rt>=Zn?Vt:Vt*(Ue[Rt]=="desc"?-1:1)}return it.index-ht.index}(Re,tt,F)})}function kw(S,E,F){for(var ie=-1,pe=E.length,Re={};++ie<pe;){var tt=E[ie],it=Hu(S,tt);F(it,tt)&&ah(Re,Bc(tt,S),it)}return Re}function eb(S,E,F,ie){var pe=ie?ka:Rc,Re=-1,tt=E.length,it=S;for(S===E&&(E=Za(E)),F&&(it=Vr(S,Io(F)));++Re<tt;)for(var ht=0,Ue=E[Re],Rt=F?F(Ue):Ue;(ht=pe(it,Rt,ht,ie))>-1;)it!==S&&Qf.call(it,ht,1),Qf.call(S,ht,1);return S}function ih(S,E){for(var F=S?E.length:0,ie=F-1;F--;){var pe=E[F];if(F==ie||pe!==Re){var Re=pe;lu(pe)?Qf.call(S,pe,1):sv(S,pe)}}return S}function tb(S,E){return S+qd(qm()*(E-S+1))}function iv(S,E){var F="";if(!S||E<1||E>P)return F;do E%2&&(F+=S),(E=qd(E/2))&&(S+=S);while(E);return F}function Cr(S,E){return _v(yb(S,E,ha),S+"")}function qE(S){return H0(Yc(S))}function nb(S,E){var F=Yc(S);return Hf(F,jc(E,0,F.length))}function ah(S,E,F,ie){if(!jo(S))return S;for(var pe=-1,Re=(E=Bc(E,S)).length,tt=Re-1,it=S;it!=null&&++pe<Re;){var ht=mi(E[pe]),Ue=F;if(ht==="__proto__"||ht==="constructor"||ht==="prototype")return S;if(pe!=tt){var Rt=it[ht];(Ue=ie?ie(Rt,ht,it):l)===l&&(Ue=jo(Rt)?Rt:lu(E[pe+1])?[]:{})}th(it,ht,Ue),it=it[ht]}return S}var Cw=Km?function(S,E){return Km.set(S,E),S}:ha,KE=Kp?function(S,E){return Kp(S,"toString",{configurable:!0,enumerable:!1,value:Av(E),writable:!0})}:ha;function GE(S){return Hf(Yc(S))}function Ws(S,E,F){var ie=-1,pe=S.length;E<0&&(E=-E>pe?0:pe+E),(F=F>pe?pe:F)<0&&(F+=pe),pe=E>F?0:F-E>>>0,E>>>=0;for(var Re=un(pe);++ie<pe;)Re[ie]=S[ie+E];return Re}function rb(S,E){var F;return To(S,function(ie,pe,Re){return!(F=E(ie,pe,Re))}),!!F}function av(S,E,F){var ie=0,pe=S==null?ie:S.length;if(typeof E=="number"&&E==E&&pe<=2147483647){for(;ie<pe;){var Re=ie+pe>>>1,tt=S[Re];tt!==null&&!qi(tt)&&(F?tt<=E:tt<E)?ie=Re+1:pe=Re}return pe}return ob(S,E,ha,F)}function ob(S,E,F,ie){var pe=0,Re=S==null?0:S.length;if(Re===0)return 0;for(var tt=(E=F(E))!=E,it=E===null,ht=qi(E),Ue=E===l;pe<Re;){var Rt=qd((pe+Re)/2),Zt=F(S[Rt]),Cn=Zt!==l,In=Zt===null,Zn=Zt==Zt,Vt=qi(Zt);if(tt)var Jt=ie||Zn;else Jt=Ue?Zn&&(ie||Cn):it?Zn&&Cn&&(ie||!In):ht?Zn&&Cn&&!In&&(ie||!Vt):!In&&!Vt&&(ie?Zt<=E:Zt<E);Jt?pe=Rt+1:Re=Rt}return fa(Re,4294967294)}function Ew(S,E){for(var F=-1,ie=S.length,pe=0,Re=[];++F<ie;){var tt=S[F],it=E?E(tt):tt;if(!F||!Ao(it,ht)){var ht=it;Re[pe++]=tt===0?0:tt}}return Re}function ib(S){return typeof S=="number"?S:qi(S)?$:+S}function Ha(S){if(typeof S=="string")return S;if(pr(S))return Vr(S,Ha)+"";if(qi(S))return hw?hw.call(S):"";var E=S+"";return E=="0"&&1/S==-1/0?"-0":E}function Lc(S,E,F){var ie=-1,pe=xa,Re=S.length,tt=!0,it=[],ht=it;if(F)tt=!1,pe=Wp;else if(Re>=200){var Ue=E?null:fb(S);if(Ue)return zu(Ue);tt=!1,pe=Jl,ht=new Dc}else ht=E?[]:it;e:for(;++ie<Re;){var Rt=S[ie],Zt=E?E(Rt):Rt;if(Rt=F||Rt!==0?Rt:0,tt&&Zt==Zt){for(var Cn=ht.length;Cn--;)if(ht[Cn]===Zt)continue e;E&&ht.push(Zt),it.push(Rt)}else pe(ht,Zt,F)||(ht!==it&&ht.push(Zt),it.push(Rt))}return it}function sv(S,E){return(S=bb(S,E=Bc(E,S)))==null||delete S[mi(_o(E))]}function Tw(S,E,F,ie){return ah(S,E,F(Hu(S,E)),ie)}function tg(S,E,F,ie){for(var pe=S.length,Re=ie?pe:-1;(ie?Re--:++Re<pe)&&E(S[Re],Re,S););return F?Ws(S,ie?0:Re,ie?Re+1:pe):Ws(S,ie?Re+1:0,ie?pe:Re)}function Pw(S,E){var F=S;return F instanceof Lr&&(F=F.value()),Wd(E,function(ie,pe){return pe.func.apply(pe.thisArg,gi([ie],pe.args))},F)}function lv(S,E,F){var ie=S.length;if(ie<2)return ie?Lc(S[0]):[];for(var pe=-1,Re=un(ie);++pe<ie;)for(var tt=S[pe],it=-1;++it<ie;)it!=pe&&(Re[pe]=Uu(Re[pe]||tt,S[it],E,F));return Lc(Li(Re,1),E,F)}function $w(S,E,F){for(var ie=-1,pe=S.length,Re=E.length,tt={};++ie<pe;){var it=ie<Re?E[ie]:l;F(tt,S[ie],it)}return tt}function uv(S){return ei(S)?S:[]}function ab(S){return typeof S=="function"?S:ha}function Bc(S,E){return pr(S)?S:vv(S,E)?[S]:Yw(eo(S))}var Aw=Cr;function Vc(S,E,F){var ie=S.length;return F=F===l?ie:F,!E&&F>=ie?S:Ws(S,E,F)}var sb=FE||function(S){return Wo.clearTimeout(S)};function lb(S,E){if(E)return S.slice();var F=S.length,ie=qp?qp(F):new S.constructor(F);return S.copy(ie),ie}function ub(S){var E=new S.constructor(S.byteLength);return new zf(E).set(new zf(S)),E}function bo(S,E){var F=E?ub(S.buffer):S.buffer;return new S.constructor(F,S.byteOffset,S.length)}function Mw(S,E){if(S!==E){var F=S!==l,ie=S===null,pe=S==S,Re=qi(S),tt=E!==l,it=E===null,ht=E==E,Ue=qi(E);if(!it&&!Ue&&!Re&&S>E||Re&&tt&&ht&&!it&&!Ue||ie&&tt&&ht||!F&&ht||!pe)return 1;if(!ie&&!Re&&!Ue&&S<E||Ue&&F&&pe&&!ie&&!Re||it&&F&&pe||!tt&&pe||!ht)return-1}return 0}function Po(S,E,F,ie){for(var pe=-1,Re=S.length,tt=F.length,it=-1,ht=E.length,Ue=ki(Re-tt,0),Rt=un(ht+Ue),Zt=!ie;++it<ht;)Rt[it]=E[it];for(;++pe<tt;)(Zt||pe<Re)&&(Rt[F[pe]]=S[pe]);for(;Ue--;)Rt[it++]=S[pe++];return Rt}function cv(S,E,F,ie){for(var pe=-1,Re=S.length,tt=-1,it=F.length,ht=-1,Ue=E.length,Rt=ki(Re-it,0),Zt=un(Rt+Ue),Cn=!ie;++pe<Rt;)Zt[pe]=S[pe];for(var In=pe;++ht<Ue;)Zt[In+ht]=E[ht];for(;++tt<it;)(Cn||pe<Re)&&(Zt[In+F[tt]]=S[pe++]);return Zt}function Za(S,E){var F=-1,ie=S.length;for(E||(E=un(ie));++F<ie;)E[F]=S[F];return E}function iu(S,E,F,ie){var pe=!F;F||(F={});for(var Re=-1,tt=E.length;++Re<tt;){var it=E[Re],ht=ie?ie(F[it],S[it],it,F,S):l;ht===l&&(ht=S[it]),pe?ou(F,it,ht):th(F,it,ht)}return F}function fv(S,E){return function(F,ie){var pe=pr(F)?Qm:mw,Re=E?E():{};return pe(F,S,Wn(ie,2),Re)}}function Uf(S){return Cr(function(E,F){var ie=-1,pe=F.length,Re=pe>1?F[pe-1]:l,tt=pe>2?F[2]:l;for(Re=S.length>3&&typeof Re=="function"?(pe--,Re):l,tt&&da(F[0],F[1],tt)&&(Re=pe<3?l:Re,pe=1),E=Y(E);++ie<pe;){var it=F[ie];it&&S(E,it,ie,Re)}return E})}function Rw(S,E){return function(F,ie){if(F==null)return F;if(!Pa(F))return S(F,ie);for(var pe=F.length,Re=E?pe:-1,tt=Y(F);(E?Re--:++Re<pe)&&ie(tt[Re],Re,tt)!==!1;);return F}}function Nw(S){return function(E,F,ie){for(var pe=-1,Re=Y(E),tt=ie(E),it=tt.length;it--;){var ht=tt[S?it:++pe];if(F(Re[ht],ht,Re)===!1)break}return E}}function Iw(S){return function(E){var F=ml(E=eo(E))?Ua(E):l,ie=F?F[0]:E.charAt(0),pe=F?Vc(F,1).join(""):E.slice(1);return ie[S]()+pe}}function Fc(S){return function(E){return Wd(_l(Pv(E).replace(Lm,"")),S,"")}}function ng(S){return function(){var E=arguments;switch(E.length){case 0:return new S;case 1:return new S(E[0]);case 2:return new S(E[0],E[1]);case 3:return new S(E[0],E[1],E[2]);case 4:return new S(E[0],E[1],E[2],E[3]);case 5:return new S(E[0],E[1],E[2],E[3],E[4]);case 6:return new S(E[0],E[1],E[2],E[3],E[4],E[5]);case 7:return new S(E[0],E[1],E[2],E[3],E[4],E[5],E[6])}var F=eh(S.prototype),ie=S.apply(F,E);return jo(ie)?ie:F}}function Dw(S){return function(E,F,ie){var pe=Y(E);if(!Pa(E)){var Re=Wn(F,3);E=yi(E),F=function(it){return Re(pe[it],it,pe)}}var tt=S(E,F,ie);return tt>-1?pe[Re?E[tt]:tt]:l}}function jw(S){return $o(function(E){var F=E.length,ie=F,pe=Fs.prototype.thru;for(S&&E.reverse();ie--;){var Re=E[ie];if(typeof Re!="function")throw new We(u);if(pe&&!tt&&bl(Re)=="wrapper")var tt=new Fs([],!0)}for(ie=tt?ie:F;++ie<F;){var it=bl(Re=E[ie]),ht=it=="wrapper"?ag(Re):l;tt=ht&&yv(ht[0])&&ht[1]==424&&!ht[4].length&&ht[9]==1?tt[bl(ht[0])].apply(tt,ht[3]):Re.length==1&&yv(Re)?tt[it]():tt.thru(Re)}return function(){var Ue=arguments,Rt=Ue[0];if(tt&&Ue.length==1&&pr(Rt))return tt.plant(Rt).value();for(var Zt=0,Cn=F?E[Zt].apply(this,Ue):Rt;++Zt<F;)Cn=E[Zt].call(this,Cn);return Cn}})}function rg(S,E,F,ie,pe,Re,tt,it,ht,Ue){var Rt=E&b,Zt=1&E,Cn=2&E,In=24&E,Zn=512&E,Vt=Cn?l:ng(S);return function Jt(){for(var Jn=arguments.length,wn=un(Jn),er=Jn;er--;)wn[er]=arguments[er];if(In)var ar=lh(Jt),Mr=Q0(wn,ar);if(ie&&(wn=Po(wn,ie,pe,In)),Re&&(wn=cv(wn,Re,tt,In)),Jn-=Mr,In&&Jn<Ue){var Ln=Ya(wn,ar);return hv(S,E,rg,Jt.placeholder,F,wn,Ln,it,ht,Ue-Jn)}var Xn=Zt?F:this,bi=Cn?Xn[S]:S;return Jn=wn.length,it?wn=Ww(wn,it):Zn&&Jn>1&&wn.reverse(),Rt&&ht<Jn&&(wn.length=ht),this&&this!==Wo&&this instanceof Jt&&(bi=Vt||ng(bi)),bi.apply(Xn,wn)}}function Lw(S,E){return function(F,ie){return function(pe,Re,tt,it){return An(pe,function(ht,Ue,Rt){Re(it,tt(ht),Ue,Rt)}),it}(F,S,E(ie),{})}}function og(S,E){return function(F,ie){var pe;if(F===l&&ie===l)return E;if(F!==l&&(pe=F),ie!==l){if(pe===l)return ie;typeof F=="string"||typeof ie=="string"?(F=Ha(F),ie=Ha(ie)):(F=ib(F),ie=ib(ie)),pe=S(F,ie)}return pe}}function cb(S){return $o(function(E){return E=Vr(E,Io(Wn())),Cr(function(F){var ie=this;return S(E,function(pe){return fo(pe,ie,F)})})})}function dv(S,E){var F=(E=E===l?" ":Ha(E)).length;if(F<2)return F?iv(E,S):E;var ie=iv(E,Hm(S/vl(E)));return ml(E)?Vc(Ua(ie),0,S).join(""):ie.slice(0,S)}function au(S){return function(E,F,ie){return ie&&typeof ie!="number"&&da(E,F,ie)&&(F=ie=l),E=uu(E),F===l?(F=E,E=0):F=uu(F),function(pe,Re,tt,it){for(var ht=-1,Ue=ki(Hm((Re-pe)/(tt||1)),0),Rt=un(Ue);Ue--;)Rt[it?Ue:++ht]=pe,pe+=tt;return Rt}(E,F,ie=ie===l?E<F?1:-1:uu(ie),S)}}function sh(S){return function(E,F){return typeof E=="string"&&typeof F=="string"||(E=$a(E),F=$a(F)),S(E,F)}}function hv(S,E,F,ie,pe,Re,tt,it,ht,Ue){var Rt=8&E;E|=Rt?y:O,4&(E&=~(Rt?O:y))||(E&=-4);var Zt=[S,E,pe,Rt?Re:l,Rt?tt:l,Rt?l:Re,Rt?l:tt,it,ht,Ue],Cn=F.apply(l,Zt);return yv(S)&&_b(Cn,Zt),Cn.placeholder=ie,Ob(Cn,S,E)}function pv(S){var E=Q[S];return function(F,ie){if(F=$a(F),(ie=ie==null?0:fa(yr(ie),292))&&uw(F)){var pe=(eo(F)+"e").split("e");return+((pe=(eo(E(pe[0]+"e"+(+pe[1]+ie)))+"e").split("e"))[0]+"e"+(+pe[1]-ie))}return E(F)}}var fb=Wf&&1/zu(new Wf([,-0]))[1]==C?function(S){return new Wf(S)}:Mv;function gv(S){return function(E){var F=Xi(E);return F==X?ua(E):F==J?Zd(E):function(ie,pe){return Vr(pe,function(Re){return[Re,ie[Re]]})}(E,S(E))}}function su(S,E,F,ie,pe,Re,tt,it){var ht=2&E;if(!ht&&typeof S!="function")throw new We(u);var Ue=ie?ie.length:0;if(Ue||(E&=-97,ie=pe=l),tt=tt===l?tt:ki(yr(tt),0),it=it===l?it:yr(it),Ue-=pe?pe.length:0,E&O){var Rt=ie,Zt=pe;ie=pe=l}var Cn=ht?l:ag(S),In=[S,E,F,ie,pe,Rt,Zt,Re,tt,it];if(Cn&&function(Vt,Jt){var Jn=Vt[1],wn=Jt[1],er=Jn|wn,ar=er<131,Mr=wn==b&&Jn==8||wn==b&&Jn==k&&Vt[7].length<=Jt[8]||wn==384&&Jt[7].length<=Jt[8]&&Jn==8;if(!ar&&!Mr)return Vt;1&wn&&(Vt[2]=Jt[2],er|=1&Jn?0:4);var Ln=Jt[3];if(Ln){var Xn=Vt[3];Vt[3]=Xn?Po(Xn,Ln,Jt[4]):Ln,Vt[4]=Xn?Ya(Vt[3],h):Jt[4]}(Ln=Jt[5])&&(Xn=Vt[5],Vt[5]=Xn?cv(Xn,Ln,Jt[6]):Ln,Vt[6]=Xn?Ya(Vt[5],h):Jt[6]),(Ln=Jt[7])&&(Vt[7]=Ln),wn&b&&(Vt[8]=Vt[8]==null?Jt[8]:fa(Vt[8],Jt[8])),Vt[9]==null&&(Vt[9]=Jt[9]),Vt[0]=Jt[0],Vt[1]=er}(In,Cn),S=In[0],E=In[1],F=In[2],ie=In[3],pe=In[4],!(it=In[9]=In[9]===l?ht?0:S.length:ki(In[9]-Ue,0))&&24&E&&(E&=-25),E&&E!=1)Zn=E==8||E==m?function(Vt,Jt,Jn){var wn=ng(Vt);return function er(){for(var ar=arguments.length,Mr=un(ar),Ln=ar,Xn=lh(er);Ln--;)Mr[Ln]=arguments[Ln];var bi=ar<3&&Mr[0]!==Xn&&Mr[ar-1]!==Xn?[]:Ya(Mr,Xn);return(ar-=bi.length)<Jn?hv(Vt,Jt,rg,er.placeholder,l,Mr,bi,l,l,Jn-ar):fo(this&&this!==Wo&&this instanceof er?wn:Vt,this,Mr)}}(S,E,it):E!=y&&E!=33||pe.length?rg.apply(l,In):function(Vt,Jt,Jn,wn){var er=1&Jt,ar=ng(Vt);return function Mr(){for(var Ln=-1,Xn=arguments.length,bi=-1,Ki=wn.length,Ol=un(Ki+Xn),Ei=this&&this!==Wo&&this instanceof Mr?ar:Vt;++bi<Ki;)Ol[bi]=wn[bi];for(;Xn--;)Ol[bi++]=arguments[++Ln];return fo(Ei,er?Jn:this,Ol)}}(S,E,F,ie);else var Zn=function(Vt,Jt,Jn){var wn=1&Jt,er=ng(Vt);return function ar(){return(this&&this!==Wo&&this instanceof ar?er:Vt).apply(wn?Jn:this,arguments)}}(S,E,F);return Ob((Cn?Cw:_b)(Zn,In),S,E)}function Bw(S,E,F,ie){return S===l||Ao(S,Ut[F])&&!dn.call(ie,F)?E:S}function Vw(S,E,F,ie,pe,Re){return jo(S)&&jo(E)&&(Re.set(E,S),ov(S,E,l,Vw,Re),Re.delete(E)),S}function JE(S){return Ju(S)?l:S}function Fw(S,E,F,ie,pe,Re){var tt=1&F,it=S.length,ht=E.length;if(it!=ht&&!(tt&&ht>it))return!1;var Ue=Re.get(S),Rt=Re.get(E);if(Ue&&Rt)return Ue==E&&Rt==S;var Zt=-1,Cn=!0,In=2&F?new Dc:l;for(Re.set(S,E),Re.set(E,S);++Zt<it;){var Zn=S[Zt],Vt=E[Zt];if(ie)var Jt=tt?ie(Vt,Zn,Zt,E,S,Re):ie(Zn,Vt,Zt,S,E,Re);if(Jt!==l){if(Jt)continue;Cn=!1;break}if(In){if(!Yp(E,function(Jn,wn){if(!Jl(In,wn)&&(Zn===Jn||pe(Zn,Jn,F,ie,Re)))return In.push(wn)})){Cn=!1;break}}else if(Zn!==Vt&&!pe(Zn,Vt,F,ie,Re)){Cn=!1;break}}return Re.delete(S),Re.delete(E),Cn}function $o(S){return _v(yb(S,l,kb),S+"")}function ig(S){return K0(S,yi,hb)}function db(S){return K0(S,Bi,At)}var ag=Km?function(S){return Km.get(S)}:Mv;function bl(S){for(var E=S.name+"",F=Jd[E],ie=dn.call(Jd,E)?F.length:0;ie--;){var pe=F[ie],Re=pe.func;if(Re==null||Re==S)return pe.name}return E}function lh(S){return(dn.call(Pe,"placeholder")?Pe:S).placeholder}function Wn(){var S=Pe.iteratee||o_;return S=S===o_?J0:S,arguments.length?S(arguments[0],arguments[1]):S}function uh(S,E){var F,ie,pe=S.__data__;return((ie=typeof(F=E))=="string"||ie=="number"||ie=="symbol"||ie=="boolean"?F!=="__proto__":F===null)?pe[typeof E=="string"?"string":"hash"]:pe.map}function mv(S){for(var E=yi(S),F=E.length;F--;){var ie=E[F],pe=S[ie];E[F]=[ie,pe,mb(pe)]}return E}function zc(S,E){var F=function(ie,pe){return ie==null?l:ie[pe]}(S,E);return oh(F)?F:l}var hb=W0?function(S){return S==null?[]:(S=Y(S),la(W0(S),function(E){return ca.call(S,E)}))}:vh,At=W0?function(S){for(var E=[];S;)gi(E,hb(S)),S=Qu(S);return E}:vh,Xi=Do;function pb(S,E,F){for(var ie=-1,pe=(E=Bc(E,S)).length,Re=!1;++ie<pe;){var tt=mi(E[ie]);if(!(Re=S!=null&&F(S,tt)))break;S=S[tt]}return Re||++ie!=pe?Re:!!(pe=S==null?0:S.length)&&Gf(pe)&&lu(tt,pe)&&(pr(S)||Kf(S))}function gb(S){return typeof S.constructor!="function"||ch(S)?{}:eh(Qu(S))}function zw(S){return pr(S)||Kf(S)||!!(Ic&&S&&S[Ic])}function lu(S,E){var F=typeof S;return!!(E=E==null?P:E)&&(F=="number"||F!="symbol"&&It.test(S))&&S>-1&&S%1==0&&S<E}function da(S,E,F){if(!jo(F))return!1;var ie=typeof E;return!!(ie=="number"?Pa(F)&&lu(E,F.length):ie=="string"&&E in F)&&Ao(F[E],S)}function vv(S,E){if(pr(S))return!1;var F=typeof S;return!(F!="number"&&F!="symbol"&&F!="boolean"&&S!=null&&!qi(S))||et.test(S)||!Ke.test(S)||E!=null&&S in Y(E)}function yv(S){var E=bl(S),F=Pe[E];if(typeof F!="function"||!(E in Lr.prototype))return!1;if(S===F)return!0;var ie=ag(F);return!!ie&&S===ie[0]}(Kd&&Xi(new Kd(new ArrayBuffer(1)))!=le||nu&&Xi(new nu)!=X||Y0&&Xi(Y0.resolve())!=Z||Wf&&Xi(new Wf)!=J||Gd&&Xi(new Gd)!=ue)&&(Xi=function(S){var E=Do(S),F=E==K?S.constructor:l,ie=F?Xa(F):"";if(ie)switch(ie){case UE:return le;case fw:return X;case HE:return Z;case ZE:return J;case dw:return ue}return E});var Qw=yn?Gu:bg;function ch(S){var E=S&&S.constructor;return S===(typeof E=="function"&&E.prototype||Ut)}function mb(S){return S==S&&!jo(S)}function vb(S,E){return function(F){return F!=null&&F[S]===E&&(E!==l||S in Y(F))}}function yb(S,E,F){return E=ki(E===l?S.length-1:E,0),function(){for(var ie=arguments,pe=-1,Re=ki(ie.length-E,0),tt=un(Re);++pe<Re;)tt[pe]=ie[E+pe];pe=-1;for(var it=un(E+1);++pe<E;)it[pe]=ie[pe];return it[E]=F(tt),fo(S,this,it)}}function bb(S,E){return E.length<2?S:Hu(S,Ws(E,0,-1))}function Ww(S,E){for(var F=S.length,ie=fa(E.length,F),pe=Za(S);ie--;){var Re=E[ie];S[ie]=lu(Re,F)?pe[Re]:l}return S}function bv(S,E){if((E!=="constructor"||typeof S[E]!="function")&&E!="__proto__")return S[E]}var _b=Ov(Cw),fh=lw||function(S,E){return Wo.setTimeout(S,E)},_v=Ov(KE);function Ob(S,E,F){var ie=E+"";return _v(S,function(pe,Re){var tt=Re.length;if(!tt)return pe;var it=tt-1;return Re[it]=(tt>1?"& ":"")+Re[it],Re=Re.join(tt>2?", ":" "),pe.replace(Ce,`{
- /* [wrapped with `+Re+`] */
- `)}(ie,function(pe,Re){return Sa(A,function(tt){var it="_."+tt[0];Re&tt[1]&&!xa(pe,it)&&pe.push(it)}),pe.sort()}(function(pe){var Re=pe.match(Ye);return Re?Re[1].split(me):[]}(ie),F)))}function Ov(S){var E=0,F=0;return function(){var ie=Zm(),pe=16-(ie-F);if(F=ie,pe>0){if(++E>=800)return arguments[0]}else E=0;return S.apply(l,arguments)}}function Hf(S,E){var F=-1,ie=S.length,pe=ie-1;for(E=E===l?ie:E;++F<E;){var Re=tb(F,pe),tt=S[Re];S[Re]=S[F],S[F]=tt}return S.length=E,S}var Yw=function(S){var E=hh(S,function(ie){return F.size===500&&F.clear(),ie}),F=E.cache;return E}(function(S){var E=[];return S.charCodeAt(0)===46&&E.push(""),S.replace(bt,function(F,ie,pe,Re){E.push(pe?Re.replace(Ze,"$1"):ie||F)}),E});function mi(S){if(typeof S=="string"||qi(S))return S;var E=S+"";return E=="0"&&1/S==-1/0?"-0":E}function Xa(S){if(S!=null){try{return wr.call(S)}catch{}try{return S+""}catch{}}return""}function Uw(S){if(S instanceof Lr)return S.clone();var E=new Fs(S.__wrapped__,S.__chain__);return E.__actions__=Za(S.__actions__),E.__index__=S.__index__,E.__values__=S.__values__,E}var ys=Cr(function(S,E){return ei(S)?Uu(S,Li(E,1,ei,!0)):[]}),Hw=Cr(function(S,E){var F=_o(E);return ei(F)&&(F=l),ei(S)?Uu(S,Li(E,1,ei,!0),Wn(F,2)):[]}),wb=Cr(function(S,E){var F=_o(E);return ei(F)&&(F=l),ei(S)?Uu(S,Li(E,1,ei,!0),l,F):[]});function Sb(S,E,F){var ie=S==null?0:S.length;if(!ie)return-1;var pe=F==null?0:yr(F);return pe<0&&(pe=ki(ie+pe,0)),Kl(S,Wn(E,3),pe)}function xb(S,E,F){var ie=S==null?0:S.length;if(!ie)return-1;var pe=ie-1;return F!==l&&(pe=yr(F),pe=F<0?ki(ie+pe,0):fa(pe,ie-1)),Kl(S,Wn(E,3),pe,!0)}function kb(S){return S!=null&&S.length?Li(S,1):[]}function Cb(S){return S&&S.length?S[0]:l}var Zw=Cr(function(S){var E=Vr(S,uv);return E.length&&E[0]===S[0]?nv(E):[]}),Eb=Cr(function(S){var E=_o(S),F=Vr(S,uv);return E===_o(F)?E=l:F.pop(),F.length&&F[0]===S[0]?nv(F,Wn(E,2)):[]}),sg=Cr(function(S){var E=_o(S),F=Vr(S,uv);return(E=typeof E=="function"?E:l)&&F.pop(),F.length&&F[0]===S[0]?nv(F,l,E):[]});function _o(S){var E=S==null?0:S.length;return E?S[E-1]:l}var eT=Cr(Xw);function Xw(S,E){return S&&S.length&&E&&E.length?eb(S,E):S}var Tb=$o(function(S,E){var F=S==null?0:S.length,ie=ev(S,E);return ih(S,Vr(E,function(pe){return lu(pe,F)?+pe:pe}).sort(Mw)),ie});function wv(S){return S==null?S:YE.call(S)}var qa=Cr(function(S){return Lc(Li(S,1,ei,!0))}),vi=Cr(function(S){var E=_o(S);return ei(E)&&(E=l),Lc(Li(S,1,ei,!0),Wn(E,2))}),tT=Cr(function(S){var E=_o(S);return E=typeof E=="function"?E:l,Lc(Li(S,1,ei,!0),l,E)});function Ka(S){if(!S||!S.length)return[];var E=0;return S=la(S,function(F){if(ei(F))return E=ki(F.length,E),!0}),Ff(E,function(F){return Vr(S,Ca(F))})}function Hn(S,E){if(!S||!S.length)return[];var F=Ka(S);return E==null?F:Vr(F,function(ie){return fo(E,l,ie)})}var Pb=Cr(function(S,E){return ei(S)?Uu(S,E):[]}),$b=Cr(function(S){return lv(la(S,ei))}),Ab=Cr(function(S){var E=_o(S);return ei(E)&&(E=l),lv(la(S,ei),Wn(E,2))}),qw=Cr(function(S){var E=_o(S);return E=typeof E=="function"?E:l,lv(la(S,ei),l,E)}),Kw=Cr(Ka),nT=Cr(function(S){var E=S.length,F=E>1?S[E-1]:l;return F=typeof F=="function"?(S.pop(),F):l,Hn(S,F)});function Gw(S){var E=Pe(S);return E.__chain__=!0,E}function dh(S,E){return E(S)}var rT=$o(function(S){var E=S.length,F=E?S[0]:0,ie=this.__wrapped__,pe=function(Re){return ev(Re,S)};return!(E>1||this.__actions__.length)&&ie instanceof Lr&&lu(F)?((ie=ie.slice(F,+F+(E?1:0))).__actions__.push({func:dh,args:[pe],thisArg:l}),new Fs(ie,this.__chain__).thru(function(Re){return E&&!Re.length&&Re.push(l),Re})):this.thru(pe)}),Mb=fv(function(S,E,F){dn.call(S,F)?++S[F]:ou(S,F,1)}),oT=Dw(Sb),iT=Dw(xb);function Rb(S,E){return(pr(S)?Sa:To)(S,Wn(E,3))}function Zf(S,E){return(pr(S)?Wm:vw)(S,Wn(E,3))}var Jw=fv(function(S,E,F){dn.call(S,F)?S[F].push(E):ou(S,F,[E])}),fr=Cr(function(S,E,F){var ie=-1,pe=typeof E=="function",Re=Pa(S)?un(S.length):[];return To(S,function(tt){Re[++ie]=pe?fo(E,tt,F):nh(tt,E,F)}),Re}),eS=fv(function(S,E,F){ou(S,F,E)});function Xf(S,E){return(pr(S)?Vr:Qs)(S,Wn(E,3))}var Nb=fv(function(S,E,F){S[F?0:1].push(E)},function(){return[[],[]]}),aT=Cr(function(S,E){if(S==null)return[];var F=E.length;return F>1&&da(S,E[0],E[1])?E=[]:F>2&&da(E[0],E[1],E[2])&&(E=[E[0]]),xw(S,Li(E,1),[])}),lg=zE||function(){return Wo.Date.now()};function Ib(S,E,F){return E=F?l:E,E=S&&E==null?S.length:E,su(S,b,l,l,l,l,E)}function Db(S,E){var F;if(typeof E!="function")throw new We(u);return S=yr(S),function(){return--S>0&&(F=E.apply(this,arguments)),S<=1&&(E=l),F}}var jb=Cr(function(S,E,F){var ie=1;if(F.length){var pe=Ya(F,lh(jb));ie|=y}return su(S,ie,E,F,pe)}),tS=Cr(function(S,E,F){var ie=3;if(F.length){var pe=Ya(F,lh(tS));ie|=y}return su(E,ie,S,F,pe)});function nS(S,E,F){var ie,pe,Re,tt,it,ht,Ue=0,Rt=!1,Zt=!1,Cn=!0;if(typeof S!="function")throw new We(u);function In(er){var ar=ie,Mr=pe;return ie=pe=l,Ue=er,tt=S.apply(Mr,ar)}function Zn(er){return Ue=er,it=fh(Jt,E),Rt?In(er):tt}function Vt(er){var ar=er-ht;return ht===l||ar>=E||ar<0||Zt&&er-Ue>=Re}function Jt(){var er=lg();if(Vt(er))return Jn(er);it=fh(Jt,function(ar){var Mr=E-(ar-ht);return Zt?fa(Mr,Re-(ar-Ue)):Mr}(er))}function Jn(er){return it=l,Cn&&ie?In(er):(ie=pe=l,tt)}function wn(){var er=lg(),ar=Vt(er);if(ie=arguments,pe=this,ht=er,ar){if(it===l)return Zn(ht);if(Zt)return sb(it),it=fh(Jt,E),In(ht)}return it===l&&(it=fh(Jt,E)),tt}return E=$a(E)||0,jo(F)&&(Rt=!!F.leading,Re=(Zt="maxWait"in F)?ki($a(F.maxWait)||0,E):Re,Cn="trailing"in F?!!F.trailing:Cn),wn.cancel=function(){it!==l&&sb(it),Ue=0,ie=ht=pe=it=l},wn.flush=function(){return it===l?tt:Jn(lg())},wn}var ug=Cr(function(S,E){return q0(S,1,E)}),sT=Cr(function(S,E,F){return q0(S,$a(E)||0,F)});function hh(S,E){if(typeof S!="function"||E!=null&&typeof E!="function")throw new We(u);var F=function(){var ie=arguments,pe=E?E.apply(this,ie):ie[0],Re=F.cache;if(Re.has(pe))return Re.get(pe);var tt=S.apply(this,ie);return F.cache=Re.set(pe,tt)||Re,tt};return F.cache=new(hh.Cache||ru),F}function Sv(S){if(typeof S!="function")throw new We(u);return function(){var E=arguments;switch(E.length){case 0:return!S.call(this);case 1:return!S.call(this,E[0]);case 2:return!S.call(this,E[0],E[1]);case 3:return!S.call(this,E[0],E[1],E[2])}return!S.apply(this,E)}}hh.Cache=ru;var lT=Aw(function(S,E){var F=(E=E.length==1&&pr(E[0])?Vr(E[0],Io(Wn())):Vr(Li(E,1),Io(Wn()))).length;return Cr(function(ie){for(var pe=-1,Re=fa(ie.length,F);++pe<Re;)ie[pe]=E[pe].call(this,ie[pe]);return fo(S,this,ie)})}),qf=Cr(function(S,E){var F=Ya(E,lh(qf));return su(S,y,l,E,F)}),qu=Cr(function(S,E){var F=Ya(E,lh(qu));return su(S,O,l,E,F)}),Lb=$o(function(S,E){return su(S,k,l,l,l,E)});function Ao(S,E){return S===E||S!=S&&E!=E}var xv=sh(Yo),cg=sh(function(S,E){return S>=E}),Kf=G0(function(){return arguments}())?G0:function(S){return Lo(S)&&dn.call(S,"callee")&&!ca.call(S,"callee")},pr=un.isArray,rS=zp?Io(zp):function(S){return Lo(S)&&Do(S)==he};function Pa(S){return S!=null&&Gf(S.length)&&!Gu(S)}function ei(S){return Lo(S)&&Pa(S)}var Ku=QE||bg,kv=zm?Io(zm):function(S){return Lo(S)&&Do(S)==N};function Bb(S){if(!Lo(S))return!1;var E=Do(S);return E==j||E=="[object DOMException]"||typeof S.message=="string"&&typeof S.name=="string"&&!Ju(S)}function Gu(S){if(!jo(S))return!1;var E=Do(S);return E==L||E==V||E=="[object AsyncFunction]"||E=="[object Proxy]"}function Cv(S){return typeof S=="number"&&S==yr(S)}function Gf(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=P}function jo(S){var E=typeof S;return S!=null&&(E=="object"||E=="function")}function Lo(S){return S!=null&&typeof S=="object"}var oS=Qp?Io(Qp):function(S){return Lo(S)&&Xi(S)==X};function Vb(S){return typeof S=="number"||Lo(S)&&Do(S)==oe}function Ju(S){if(!Lo(S)||Do(S)!=K)return!1;var E=Qu(S);if(E===null)return!0;var F=dn.call(E,"constructor")&&E.constructor;return typeof F=="function"&&F instanceof F&&wr.call(F)==ms}var Fb=Qd?Io(Qd):function(S){return Lo(S)&&Do(S)==re},ph=Mc?Io(Mc):function(S){return Lo(S)&&Xi(S)==J};function fg(S){return typeof S=="string"||!pr(S)&&Lo(S)&&Do(S)==z}function qi(S){return typeof S=="symbol"||Lo(S)&&Do(S)==q}var Qc=hl?Io(hl):function(S){return Lo(S)&&Gf(S.length)&&!!Gr[Do(S)]},gh=sh(Xu),dg=sh(function(S,E){return S<=E});function mh(S){if(!S)return[];if(Pa(S))return fg(S)?Ua(S):Za(S);if(Wu&&S[Wu])return function(F){for(var ie,pe=[];!(ie=F.next()).done;)pe.push(ie.value);return pe}(S[Wu]());var E=Xi(S);return(E==X?ua:E==J?zu:Yc)(S)}function uu(S){return S?(S=$a(S))===C||S===-1/0?17976931348623157e292*(S<0?-1:1):S==S?S:0:S===0?S:0}function yr(S){var E=uu(S),F=E%1;return E==E?F?E-F:E:0}function zb(S){return S?jc(yr(S),0,T):0}function $a(S){if(typeof S=="number")return S;if(qi(S))return $;if(jo(S)){var E=typeof S.valueOf=="function"?S.valueOf():S;S=jo(E)?E+"":E}if(typeof S!="string")return S===0?S:+S;S=Up(S);var F=ot.test(S);return F||Sn.test(S)?ql(S.slice(2),F?2:8):Fn.test(S)?$:+S}function Qb(S){return iu(S,Bi(S))}function eo(S){return S==null?"":Ha(S)}var iS=Uf(function(S,E){if(ch(E)||Pa(E))iu(E,yi(E),S);else for(var F in E)dn.call(E,F)&&th(S,F,E[F])}),Wb=Uf(function(S,E){iu(E,Bi(E),S)}),ec=Uf(function(S,E,F,ie){iu(E,Bi(E),S,ie)}),Yb=Uf(function(S,E,F,ie){iu(E,yi(E),S,ie)}),aS=$o(ev),sS=Cr(function(S,E){S=Y(S);var F=-1,ie=E.length,pe=ie>2?E[2]:l;for(pe&&da(E[0],E[1],pe)&&(ie=1);++F<ie;)for(var Re=E[F],tt=Bi(Re),it=-1,ht=tt.length;++it<ht;){var Ue=tt[it],Rt=S[Ue];(Rt===l||Ao(Rt,Ut[Ue])&&!dn.call(S,Ue))&&(S[Ue]=Re[Ue])}return S}),Ub=Cr(function(S){return S.push(l,Vw),fo(Xb,l,S)});function hg(S,E,F){var ie=S==null?l:Hu(S,E);return ie===l?F:ie}function pg(S,E){return S!=null&&pb(S,E,_w)}var lS=Lw(function(S,E,F){E!=null&&typeof E.toString!="function"&&(E=Yr.call(E)),S[E]=F},Av(ha)),Hb=Lw(function(S,E,F){E!=null&&typeof E.toString!="function"&&(E=Yr.call(E)),dn.call(S,E)?S[E].push(F):S[E]=[F]},Wn),Zb=Cr(nh);function yi(S){return Pa(S)?U0(S):Zu(S)}function Bi(S){return Pa(S)?U0(S,!0):XE(S)}var Wc=Uf(function(S,E,F){ov(S,E,F)}),Xb=Uf(function(S,E,F,ie){ov(S,E,F,ie)}),uS=$o(function(S,E){var F={};if(S==null)return F;var ie=!1;E=Vr(E,function(Re){return Re=Bc(Re,S),ie||(ie=Re.length>1),Re}),iu(S,db(S),F),ie&&(F=vs(F,7,JE));for(var pe=E.length;pe--;)sv(F,E[pe]);return F}),qb=$o(function(S,E){return S==null?{}:function(F,ie){return kw(F,ie,function(pe,Re){return pg(F,Re)})}(S,E)});function Ev(S,E){if(S==null)return{};var F=Vr(db(S),function(ie){return[ie]});return E=Wn(E),kw(S,F,function(ie,pe){return E(ie,pe[0])})}var cS=gv(yi),Kb=gv(Bi);function Yc(S){return S==null?[]:Hd(S,yi(S))}var Tv=Fc(function(S,E,F){return E=E.toLowerCase(),S+(F?gg(E):E)});function gg(S){return ti(eo(S).toLowerCase())}function Pv(S){return(S=eo(S))&&S.replace(qt,Zp).replace(Xl,"")}var Gb=Fc(function(S,E,F){return S+(F?"-":"")+E.toLowerCase()}),fS=Fc(function(S,E,F){return S+(F?" ":"")+E.toLowerCase()}),Jb=Iw("toLowerCase"),dS=Fc(function(S,E,F){return S+(F?"_":"")+E.toLowerCase()}),e_=Fc(function(S,E,F){return S+(F?" ":"")+ti(E)}),uT=Fc(function(S,E,F){return S+(F?" ":"")+E.toUpperCase()}),ti=Iw("toUpperCase");function _l(S,E,F){return S=eo(S),(E=F?l:E)===l?function(ie){return Lp.test(ie)}(S)?function(ie){return ie.match(Fd)||[]}(S):function(ie){return ie.match(Ve)||[]}(S):S.match(E)||[]}var $v=Cr(function(S,E){try{return fo(S,l,E)}catch(F){return Bb(F)?F:new $r(F)}}),t_=$o(function(S,E){return Sa(E,function(F){F=mi(F),ou(S,F,jb(S[F],S))}),S});function Av(S){return function(){return S}}var n_=jw(),r_=jw(!0);function ha(S){return S}function o_(S){return J0(typeof S=="function"?S:vs(S,1))}var Jf=Cr(function(S,E){return function(F){return nh(F,S,E)}}),i_=Cr(function(S,E){return function(F){return nh(S,F,E)}});function mg(S,E,F){var ie=yi(E),pe=tv(E,ie);F!=null||jo(E)&&(pe.length||!ie.length)||(F=E,E=S,S=this,pe=tv(E,yi(E)));var Re=!(jo(F)&&"chain"in F&&!F.chain),tt=Gu(S);return Sa(pe,function(it){var ht=E[it];S[it]=ht,tt&&(S.prototype[it]=function(){var Ue=this.__chain__;if(Re||Ue){var Rt=S(this.__wrapped__),Zt=Rt.__actions__=Za(this.__actions__);return Zt.push({func:ht,args:arguments,thisArg:S}),Rt.__chain__=Ue,Rt}return ht.apply(S,gi([this.value()],arguments))})}),S}function Mv(){}var vg=cb(Vr),yg=cb(Ym),a_=cb(Yp);function s_(S){return vv(S)?Ca(mi(S)):function(E){return function(F){return Hu(F,E)}}(S)}var hS=au(),Vi=au(!0);function vh(){return[]}function bg(){return!1}var l_=og(function(S,E){return S+E},0),pS=pv("ceil"),gS=og(function(S,E){return S/E},1),u_=pv("floor"),yh,mS=og(function(S,E){return S*E},1),Rv=pv("round"),Nv=og(function(S,E){return S-E},0);return Pe.after=function(S,E){if(typeof E!="function")throw new We(u);return S=yr(S),function(){if(--S<1)return E.apply(this,arguments)}},Pe.ary=Ib,Pe.assign=iS,Pe.assignIn=Wb,Pe.assignInWith=ec,Pe.assignWith=Yb,Pe.at=aS,Pe.before=Db,Pe.bind=jb,Pe.bindAll=t_,Pe.bindKey=tS,Pe.castArray=function(){if(!arguments.length)return[];var S=arguments[0];return pr(S)?S:[S]},Pe.chain=Gw,Pe.chunk=function(S,E,F){E=(F?da(S,E,F):E===l)?1:ki(yr(E),0);var ie=S==null?0:S.length;if(!ie||E<1)return[];for(var pe=0,Re=0,tt=un(Hm(ie/E));pe<ie;)tt[Re++]=Ws(S,pe,pe+=E);return tt},Pe.compact=function(S){for(var E=-1,F=S==null?0:S.length,ie=0,pe=[];++E<F;){var Re=S[E];Re&&(pe[ie++]=Re)}return pe},Pe.concat=function(){var S=arguments.length;if(!S)return[];for(var E=un(S-1),F=arguments[0],ie=S;ie--;)E[ie-1]=arguments[ie];return gi(pr(F)?Za(F):[F],Li(E,1))},Pe.cond=function(S){var E=S==null?0:S.length,F=Wn();return S=E?Vr(S,function(ie){if(typeof ie[1]!="function")throw new We(u);return[F(ie[0]),ie[1]]}):[],Cr(function(ie){for(var pe=-1;++pe<E;){var Re=S[pe];if(fo(Re[0],this,ie))return fo(Re[1],this,ie)}})},Pe.conforms=function(S){return function(E){var F=yi(E);return function(ie){return X0(ie,E,F)}}(vs(S,1))},Pe.constant=Av,Pe.countBy=Mb,Pe.create=function(S,E){var F=eh(S);return E==null?F:Z0(F,E)},Pe.curry=function S(E,F,ie){var pe=su(E,8,l,l,l,l,l,F=ie?l:F);return pe.placeholder=S.placeholder,pe},Pe.curryRight=function S(E,F,ie){var pe=su(E,m,l,l,l,l,l,F=ie?l:F);return pe.placeholder=S.placeholder,pe},Pe.debounce=nS,Pe.defaults=sS,Pe.defaultsDeep=Ub,Pe.defer=ug,Pe.delay=sT,Pe.difference=ys,Pe.differenceBy=Hw,Pe.differenceWith=wb,Pe.drop=function(S,E,F){var ie=S==null?0:S.length;return ie?Ws(S,(E=F||E===l?1:yr(E))<0?0:E,ie):[]},Pe.dropRight=function(S,E,F){var ie=S==null?0:S.length;return ie?Ws(S,0,(E=ie-(E=F||E===l?1:yr(E)))<0?0:E):[]},Pe.dropRightWhile=function(S,E){return S&&S.length?tg(S,Wn(E,3),!0,!0):[]},Pe.dropWhile=function(S,E){return S&&S.length?tg(S,Wn(E,3),!0):[]},Pe.fill=function(S,E,F,ie){var pe=S==null?0:S.length;return pe?(F&&typeof F!="number"&&da(S,E,F)&&(F=0,ie=pe),function(Re,tt,it,ht){var Ue=Re.length;for((it=yr(it))<0&&(it=-it>Ue?0:Ue+it),(ht=ht===l||ht>Ue?Ue:yr(ht))<0&&(ht+=Ue),ht=it>ht?0:zb(ht);it<ht;)Re[it++]=tt;return Re}(S,E,F,ie)):[]},Pe.filter=function(S,E){return(pr(S)?la:Jr)(S,Wn(E,3))},Pe.flatMap=function(S,E){return Li(Xf(S,E),1)},Pe.flatMapDeep=function(S,E){return Li(Xf(S,E),C)},Pe.flatMapDepth=function(S,E,F){return F=F===l?1:yr(F),Li(Xf(S,E),F)},Pe.flatten=kb,Pe.flattenDeep=function(S){return S!=null&&S.length?Li(S,C):[]},Pe.flattenDepth=function(S,E){return S!=null&&S.length?Li(S,E=E===l?1:yr(E)):[]},Pe.flip=function(S){return su(S,512)},Pe.flow=n_,Pe.flowRight=r_,Pe.fromPairs=function(S){for(var E=-1,F=S==null?0:S.length,ie={};++E<F;){var pe=S[E];ie[pe[0]]=pe[1]}return ie},Pe.functions=function(S){return S==null?[]:tv(S,yi(S))},Pe.functionsIn=function(S){return S==null?[]:tv(S,Bi(S))},Pe.groupBy=Jw,Pe.initial=function(S){return S!=null&&S.length?Ws(S,0,-1):[]},Pe.intersection=Zw,Pe.intersectionBy=Eb,Pe.intersectionWith=sg,Pe.invert=lS,Pe.invertBy=Hb,Pe.invokeMap=fr,Pe.iteratee=o_,Pe.keyBy=eS,Pe.keys=yi,Pe.keysIn=Bi,Pe.map=Xf,Pe.mapKeys=function(S,E){var F={};return E=Wn(E,3),An(S,function(ie,pe,Re){ou(F,E(ie,pe,Re),ie)}),F},Pe.mapValues=function(S,E){var F={};return E=Wn(E,3),An(S,function(ie,pe,Re){ou(F,pe,E(ie,pe,Re))}),F},Pe.matches=function(S){return Ow(vs(S,1))},Pe.matchesProperty=function(S,E){return ww(S,vs(E,1))},Pe.memoize=hh,Pe.merge=Wc,Pe.mergeWith=Xb,Pe.method=Jf,Pe.methodOf=i_,Pe.mixin=mg,Pe.negate=Sv,Pe.nthArg=function(S){return S=yr(S),Cr(function(E){return Sw(E,S)})},Pe.omit=uS,Pe.omitBy=function(S,E){return Ev(S,Sv(Wn(E)))},Pe.once=function(S){return Db(2,S)},Pe.orderBy=function(S,E,F,ie){return S==null?[]:(pr(E)||(E=E==null?[]:[E]),pr(F=ie?l:F)||(F=F==null?[]:[F]),xw(S,E,F))},Pe.over=vg,Pe.overArgs=lT,Pe.overEvery=yg,Pe.overSome=a_,Pe.partial=qf,Pe.partialRight=qu,Pe.partition=Nb,Pe.pick=qb,Pe.pickBy=Ev,Pe.property=s_,Pe.propertyOf=function(S){return function(E){return S==null?l:Hu(S,E)}},Pe.pull=eT,Pe.pullAll=Xw,Pe.pullAllBy=function(S,E,F){return S&&S.length&&E&&E.length?eb(S,E,Wn(F,2)):S},Pe.pullAllWith=function(S,E,F){return S&&S.length&&E&&E.length?eb(S,E,l,F):S},Pe.pullAt=Tb,Pe.range=hS,Pe.rangeRight=Vi,Pe.rearg=Lb,Pe.reject=function(S,E){return(pr(S)?la:Jr)(S,Sv(Wn(E,3)))},Pe.remove=function(S,E){var F=[];if(!S||!S.length)return F;var ie=-1,pe=[],Re=S.length;for(E=Wn(E,3);++ie<Re;){var tt=S[ie];E(tt,ie,S)&&(F.push(tt),pe.push(ie))}return ih(S,pe),F},Pe.rest=function(S,E){if(typeof S!="function")throw new We(u);return Cr(S,E=E===l?E:yr(E))},Pe.reverse=wv,Pe.sampleSize=function(S,E,F){return E=(F?da(S,E,F):E===l)?1:yr(E),(pr(S)?pw:nb)(S,E)},Pe.set=function(S,E,F){return S==null?S:ah(S,E,F)},Pe.setWith=function(S,E,F,ie){return ie=typeof ie=="function"?ie:l,S==null?S:ah(S,E,F,ie)},Pe.shuffle=function(S){return(pr(S)?gw:GE)(S)},Pe.slice=function(S,E,F){var ie=S==null?0:S.length;return ie?(F&&typeof F!="number"&&da(S,E,F)?(E=0,F=ie):(E=E==null?0:yr(E),F=F===l?ie:yr(F)),Ws(S,E,F)):[]},Pe.sortBy=aT,Pe.sortedUniq=function(S){return S&&S.length?Ew(S):[]},Pe.sortedUniqBy=function(S,E){return S&&S.length?Ew(S,Wn(E,2)):[]},Pe.split=function(S,E,F){return F&&typeof F!="number"&&da(S,E,F)&&(E=F=l),(F=F===l?T:F>>>0)?(S=eo(S))&&(typeof E=="string"||E!=null&&!Fb(E))&&!(E=Ha(E))&&ml(S)?Vc(Ua(S),0,F):S.split(E,F):[]},Pe.spread=function(S,E){if(typeof S!="function")throw new We(u);return E=E==null?0:ki(yr(E),0),Cr(function(F){var ie=F[E],pe=Vc(F,0,E);return ie&&gi(pe,ie),fo(S,this,pe)})},Pe.tail=function(S){var E=S==null?0:S.length;return E?Ws(S,1,E):[]},Pe.take=function(S,E,F){return S&&S.length?Ws(S,0,(E=F||E===l?1:yr(E))<0?0:E):[]},Pe.takeRight=function(S,E,F){var ie=S==null?0:S.length;return ie?Ws(S,(E=ie-(E=F||E===l?1:yr(E)))<0?0:E,ie):[]},Pe.takeRightWhile=function(S,E){return S&&S.length?tg(S,Wn(E,3),!1,!0):[]},Pe.takeWhile=function(S,E){return S&&S.length?tg(S,Wn(E,3)):[]},Pe.tap=function(S,E){return E(S),S},Pe.throttle=function(S,E,F){var ie=!0,pe=!0;if(typeof S!="function")throw new We(u);return jo(F)&&(ie="leading"in F?!!F.leading:ie,pe="trailing"in F?!!F.trailing:pe),nS(S,E,{leading:ie,maxWait:E,trailing:pe})},Pe.thru=dh,Pe.toArray=mh,Pe.toPairs=cS,Pe.toPairsIn=Kb,Pe.toPath=function(S){return pr(S)?Vr(S,mi):qi(S)?[S]:Za(Yw(eo(S)))},Pe.toPlainObject=Qb,Pe.transform=function(S,E,F){var ie=pr(S),pe=ie||Ku(S)||Qc(S);if(E=Wn(E,4),F==null){var Re=S&&S.constructor;F=pe?ie?new Re:[]:jo(S)&&Gu(Re)?eh(Qu(S)):{}}return(pe?Sa:An)(S,function(tt,it,ht){return E(F,tt,it,ht)}),F},Pe.unary=function(S){return Ib(S,1)},Pe.union=qa,Pe.unionBy=vi,Pe.unionWith=tT,Pe.uniq=function(S){return S&&S.length?Lc(S):[]},Pe.uniqBy=function(S,E){return S&&S.length?Lc(S,Wn(E,2)):[]},Pe.uniqWith=function(S,E){return E=typeof E=="function"?E:l,S&&S.length?Lc(S,l,E):[]},Pe.unset=function(S,E){return S==null||sv(S,E)},Pe.unzip=Ka,Pe.unzipWith=Hn,Pe.update=function(S,E,F){return S==null?S:Tw(S,E,ab(F))},Pe.updateWith=function(S,E,F,ie){return ie=typeof ie=="function"?ie:l,S==null?S:Tw(S,E,ab(F),ie)},Pe.values=Yc,Pe.valuesIn=function(S){return S==null?[]:Hd(S,Bi(S))},Pe.without=Pb,Pe.words=_l,Pe.wrap=function(S,E){return qf(ab(E),S)},Pe.xor=$b,Pe.xorBy=Ab,Pe.xorWith=qw,Pe.zip=Kw,Pe.zipObject=function(S,E){return $w(S||[],E||[],th)},Pe.zipObjectDeep=function(S,E){return $w(S||[],E||[],ah)},Pe.zipWith=nT,Pe.entries=cS,Pe.entriesIn=Kb,Pe.extend=Wb,Pe.extendWith=ec,mg(Pe,Pe),Pe.add=l_,Pe.attempt=$v,Pe.camelCase=Tv,Pe.capitalize=gg,Pe.ceil=pS,Pe.clamp=function(S,E,F){return F===l&&(F=E,E=l),F!==l&&(F=(F=$a(F))==F?F:0),E!==l&&(E=(E=$a(E))==E?E:0),jc($a(S),E,F)},Pe.clone=function(S){return vs(S,4)},Pe.cloneDeep=function(S){return vs(S,5)},Pe.cloneDeepWith=function(S,E){return vs(S,5,E=typeof E=="function"?E:l)},Pe.cloneWith=function(S,E){return vs(S,4,E=typeof E=="function"?E:l)},Pe.conformsTo=function(S,E){return E==null||X0(S,E,yi(E))},Pe.deburr=Pv,Pe.defaultTo=function(S,E){return S==null||S!=S?E:S},Pe.divide=gS,Pe.endsWith=function(S,E,F){S=eo(S),E=Ha(E);var ie=S.length,pe=F=F===l?ie:jc(yr(F),0,ie);return(F-=E.length)>=0&&S.slice(F,pe)==E},Pe.eq=Ao,Pe.escape=function(S){return(S=eo(S))&&qe.test(S)?S.replace(De,li):S},Pe.escapeRegExp=function(S){return(S=eo(S))&&Qt.test(S)?S.replace(Ot,"\\$&"):S},Pe.every=function(S,E,F){var ie=pr(S)?Ym:yw;return F&&da(S,E,F)&&(E=l),ie(S,Wn(E,3))},Pe.find=oT,Pe.findIndex=Sb,Pe.findKey=function(S,E){return pl(S,Wn(E,3),An)},Pe.findLast=iT,Pe.findLastIndex=xb,Pe.findLastKey=function(S,E){return pl(S,Wn(E,3),yo)},Pe.floor=u_,Pe.forEach=Rb,Pe.forEachRight=Zf,Pe.forIn=function(S,E){return S==null?S:kr(S,Wn(E,3),Bi)},Pe.forInRight=function(S,E){return S==null?S:ui(S,Wn(E,3),Bi)},Pe.forOwn=function(S,E){return S&&An(S,Wn(E,3))},Pe.forOwnRight=function(S,E){return S&&yo(S,Wn(E,3))},Pe.get=hg,Pe.gt=xv,Pe.gte=cg,Pe.has=function(S,E){return S!=null&&pb(S,E,bw)},Pe.hasIn=pg,Pe.head=Cb,Pe.identity=ha,Pe.includes=function(S,E,F,ie){S=Pa(S)?S:Yc(S),F=F&&!ie?yr(F):0;var pe=S.length;return F<0&&(F=ki(pe+F,0)),fg(S)?F<=pe&&S.indexOf(E,F)>-1:!!pe&&Rc(S,E,F)>-1},Pe.indexOf=function(S,E,F){var ie=S==null?0:S.length;if(!ie)return-1;var pe=F==null?0:yr(F);return pe<0&&(pe=ki(ie+pe,0)),Rc(S,E,pe)},Pe.inRange=function(S,E,F){return E=uu(E),F===l?(F=E,E=0):F=uu(F),function(ie,pe,Re){return ie>=fa(pe,Re)&&ie<ki(pe,Re)}(S=$a(S),E,F)},Pe.invoke=Zb,Pe.isArguments=Kf,Pe.isArray=pr,Pe.isArrayBuffer=rS,Pe.isArrayLike=Pa,Pe.isArrayLikeObject=ei,Pe.isBoolean=function(S){return S===!0||S===!1||Lo(S)&&Do(S)==I},Pe.isBuffer=Ku,Pe.isDate=kv,Pe.isElement=function(S){return Lo(S)&&S.nodeType===1&&!Ju(S)},Pe.isEmpty=function(S){if(S==null)return!0;if(Pa(S)&&(pr(S)||typeof S=="string"||typeof S.splice=="function"||Ku(S)||Qc(S)||Kf(S)))return!S.length;var E=Xi(S);if(E==X||E==J)return!S.size;if(ch(S))return!Zu(S).length;for(var F in S)if(dn.call(S,F))return!1;return!0},Pe.isEqual=function(S,E){return rh(S,E)},Pe.isEqualWith=function(S,E,F){var ie=(F=typeof F=="function"?F:l)?F(S,E):l;return ie===l?rh(S,E,l,F):!!ie},Pe.isError=Bb,Pe.isFinite=function(S){return typeof S=="number"&&uw(S)},Pe.isFunction=Gu,Pe.isInteger=Cv,Pe.isLength=Gf,Pe.isMap=oS,Pe.isMatch=function(S,E){return S===E||rv(S,E,mv(E))},Pe.isMatchWith=function(S,E,F){return F=typeof F=="function"?F:l,rv(S,E,mv(E),F)},Pe.isNaN=function(S){return Vb(S)&&S!=+S},Pe.isNative=function(S){if(Qw(S))throw new $r("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return oh(S)},Pe.isNil=function(S){return S==null},Pe.isNull=function(S){return S===null},Pe.isNumber=Vb,Pe.isObject=jo,Pe.isObjectLike=Lo,Pe.isPlainObject=Ju,Pe.isRegExp=Fb,Pe.isSafeInteger=function(S){return Cv(S)&&S>=-9007199254740991&&S<=P},Pe.isSet=ph,Pe.isString=fg,Pe.isSymbol=qi,Pe.isTypedArray=Qc,Pe.isUndefined=function(S){return S===l},Pe.isWeakMap=function(S){return Lo(S)&&Xi(S)==ue},Pe.isWeakSet=function(S){return Lo(S)&&Do(S)=="[object WeakSet]"},Pe.join=function(S,E){return S==null?"":WE.call(S,E)},Pe.kebabCase=Gb,Pe.last=_o,Pe.lastIndexOf=function(S,E,F){var ie=S==null?0:S.length;if(!ie)return-1;var pe=ie;return F!==l&&(pe=(pe=yr(F))<0?ki(ie+pe,0):fa(pe,ie-1)),E==E?function(Re,tt,it){for(var ht=it+1;ht--;)if(Re[ht]===tt)return ht;return ht}(S,E,pe):Kl(S,Gl,pe,!0)},Pe.lowerCase=fS,Pe.lowerFirst=Jb,Pe.lt=gh,Pe.lte=dg,Pe.max=function(S){return S&&S.length?Jo(S,ha,Yo):l},Pe.maxBy=function(S,E){return S&&S.length?Jo(S,Wn(E,2),Yo):l},Pe.mean=function(S){return Ir(S,ha)},Pe.meanBy=function(S,E){return Ir(S,Wn(E,2))},Pe.min=function(S){return S&&S.length?Jo(S,ha,Xu):l},Pe.minBy=function(S,E){return S&&S.length?Jo(S,Wn(E,2),Xu):l},Pe.stubArray=vh,Pe.stubFalse=bg,Pe.stubObject=function(){return{}},Pe.stubString=function(){return""},Pe.stubTrue=function(){return!0},Pe.multiply=mS,Pe.nth=function(S,E){return S&&S.length?Sw(S,yr(E)):l},Pe.noConflict=function(){return Wo._===this&&(Wo._=Eo),this},Pe.noop=Mv,Pe.now=lg,Pe.pad=function(S,E,F){S=eo(S);var ie=(E=yr(E))?vl(S):0;if(!E||ie>=E)return S;var pe=(E-ie)/2;return dv(qd(pe),F)+S+dv(Hm(pe),F)},Pe.padEnd=function(S,E,F){S=eo(S);var ie=(E=yr(E))?vl(S):0;return E&&ie<E?S+dv(E-ie,F):S},Pe.padStart=function(S,E,F){S=eo(S);var ie=(E=yr(E))?vl(S):0;return E&&ie<E?dv(E-ie,F)+S:S},Pe.parseInt=function(S,E,F){return F||E==null?E=0:E&&(E=+E),Xm(eo(S).replace(kt,""),E||0)},Pe.random=function(S,E,F){if(F&&typeof F!="boolean"&&da(S,E,F)&&(E=F=l),F===l&&(typeof E=="boolean"?(F=E,E=l):typeof S=="boolean"&&(F=S,S=l)),S===l&&E===l?(S=0,E=1):(S=uu(S),E===l?(E=S,S=0):E=uu(E)),S>E){var ie=S;S=E,E=ie}if(F||S%1||E%1){var pe=qm();return fa(S+pe*(E-S+Ac("1e-"+((pe+"").length-1))),E)}return tb(S,E)},Pe.reduce=function(S,E,F){var ie=pr(S)?Wd:xi,pe=arguments.length<3;return ie(S,Wn(E,4),F,pe,To)},Pe.reduceRight=function(S,E,F){var ie=pr(S)?Um:xi,pe=arguments.length<3;return ie(S,Wn(E,4),F,pe,vw)},Pe.repeat=function(S,E,F){return E=(F?da(S,E,F):E===l)?1:yr(E),iv(eo(S),E)},Pe.replace=function(){var S=arguments,E=eo(S[0]);return S.length<3?E:E.replace(S[1],S[2])},Pe.result=function(S,E,F){var ie=-1,pe=(E=Bc(E,S)).length;for(pe||(pe=1,S=l);++ie<pe;){var Re=S==null?l:S[mi(E[ie])];Re===l&&(ie=pe,Re=F),S=Gu(Re)?Re.call(S):Re}return S},Pe.round=Rv,Pe.runInContext=mt,Pe.sample=function(S){return(pr(S)?H0:qE)(S)},Pe.size=function(S){if(S==null)return 0;if(Pa(S))return fg(S)?vl(S):S.length;var E=Xi(S);return E==X||E==J?S.size:Zu(S).length},Pe.snakeCase=dS,Pe.some=function(S,E,F){var ie=pr(S)?Yp:rb;return F&&da(S,E,F)&&(E=l),ie(S,Wn(E,3))},Pe.sortedIndex=function(S,E){return av(S,E)},Pe.sortedIndexBy=function(S,E,F){return ob(S,E,Wn(F,2))},Pe.sortedIndexOf=function(S,E){var F=S==null?0:S.length;if(F){var ie=av(S,E);if(ie<F&&Ao(S[ie],E))return ie}return-1},Pe.sortedLastIndex=function(S,E){return av(S,E,!0)},Pe.sortedLastIndexBy=function(S,E,F){return ob(S,E,Wn(F,2),!0)},Pe.sortedLastIndexOf=function(S,E){if(S!=null&&S.length){var F=av(S,E,!0)-1;if(Ao(S[F],E))return F}return-1},Pe.startCase=e_,Pe.startsWith=function(S,E,F){return S=eo(S),F=F==null?0:jc(yr(F),0,S.length),E=Ha(E),S.slice(F,F+E.length)==E},Pe.subtract=Nv,Pe.sum=function(S){return S&&S.length?Ud(S,ha):0},Pe.sumBy=function(S,E){return S&&S.length?Ud(S,Wn(E,2)):0},Pe.template=function(S,E,F){var ie=Pe.templateSettings;F&&da(S,E,F)&&(E=l),S=eo(S),E=ec({},E,ie,Bw);var pe,Re,tt=ec({},E.imports,ie.imports,Bw),it=yi(tt),ht=Hd(tt,it),Ue=0,Rt=E.interpolate||Xt,Zt="__p += '",Cn=ae((E.escape||Xt).source+"|"+Rt.source+"|"+(Rt===lt?rt:Xt).source+"|"+(E.evaluate||Xt).source+"|$","g"),In="//# sourceURL="+(dn.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bm+"]")+`
- `;S.replace(Cn,function(Jt,Jn,wn,er,ar,Mr){return wn||(wn=er),Zt+=S.slice(Ue,Mr).replace(xn,Nc),Jn&&(pe=!0,Zt+=`' +
- __e(`+Jn+`) +
- '`),ar&&(Re=!0,Zt+=`';
- `+ar+`;
- __p += '`),wn&&(Zt+=`' +
- ((__t = (`+wn+`)) == null ? '' : __t) +
- '`),Ue=Mr+Jt.length,Jt}),Zt+=`';
- `;var Zn=dn.call(E,"variable")&&E.variable;if(Zn){if(ke.test(Zn))throw new $r("Invalid `variable` option passed into `_.template`")}else Zt=`with (obj) {
- `+Zt+`
- }
- `;Zt=(Re?Zt.replace(ye,""):Zt).replace(He,"$1").replace(be,"$1;"),Zt="function("+(Zn||"obj")+`) {
- `+(Zn?"":`obj || (obj = {});
- `)+"var __t, __p = ''"+(pe?", __e = _.escape":"")+(Re?`, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `:`;
- `)+Zt+`return __p
- }`;var Vt=$v(function(){return vo(it,In+"return "+Zt).apply(l,ht)});if(Vt.source=Zt,Bb(Vt))throw Vt;return Vt},Pe.times=function(S,E){if((S=yr(S))<1||S>P)return[];var F=T,ie=fa(S,T);E=Wn(E),S-=T;for(var pe=Ff(ie,E);++F<S;)E(F);return pe},Pe.toFinite=uu,Pe.toInteger=yr,Pe.toLength=zb,Pe.toLower=function(S){return eo(S).toLowerCase()},Pe.toNumber=$a,Pe.toSafeInteger=function(S){return S?jc(yr(S),-9007199254740991,P):S===0?S:0},Pe.toString=eo,Pe.toUpper=function(S){return eo(S).toUpperCase()},Pe.trim=function(S,E,F){if((S=eo(S))&&(F||E===l))return Up(S);if(!S||!(E=Ha(E)))return S;var ie=Ua(S),pe=Ua(E);return Vc(ie,ps(ie,pe),Hp(ie,pe)+1).join("")},Pe.trimEnd=function(S,E,F){if((S=eo(S))&&(F||E===l))return S.slice(0,Ea(S)+1);if(!S||!(E=Ha(E)))return S;var ie=Ua(S);return Vc(ie,0,Hp(ie,Ua(E))+1).join("")},Pe.trimStart=function(S,E,F){if((S=eo(S))&&(F||E===l))return S.replace(kt,"");if(!S||!(E=Ha(E)))return S;var ie=Ua(S);return Vc(ie,ps(ie,Ua(E))).join("")},Pe.truncate=function(S,E){var F=30,ie="...";if(jo(E)){var pe="separator"in E?E.separator:pe;F="length"in E?yr(E.length):F,ie="omission"in E?Ha(E.omission):ie}var Re=(S=eo(S)).length;if(ml(S)){var tt=Ua(S);Re=tt.length}if(F>=Re)return S;var it=F-vl(ie);if(it<1)return ie;var ht=tt?Vc(tt,0,it).join(""):S.slice(0,it);if(pe===l)return ht+ie;if(tt&&(it+=ht.length-it),Fb(pe)){if(S.slice(it).search(pe)){var Ue,Rt=ht;for(pe.global||(pe=ae(pe.source,eo(zt.exec(pe))+"g")),pe.lastIndex=0;Ue=pe.exec(Rt);)var Zt=Ue.index;ht=ht.slice(0,Zt===l?it:Zt)}}else if(S.indexOf(Ha(pe),it)!=it){var Cn=ht.lastIndexOf(pe);Cn>-1&&(ht=ht.slice(0,Cn))}return ht+ie},Pe.unescape=function(S){return(S=eo(S))&&Me.test(S)?S.replace(Ie,gs):S},Pe.uniqueId=function(S){var E=++ao;return eo(S)+E},Pe.upperCase=uT,Pe.upperFirst=ti,Pe.each=Rb,Pe.eachRight=Zf,Pe.first=Cb,mg(Pe,(yh={},An(Pe,function(S,E){dn.call(Pe.prototype,E)||(yh[E]=S)}),yh),{chain:!1}),Pe.VERSION="4.17.21",Sa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(S){Pe[S].placeholder=Pe}),Sa(["drop","take"],function(S,E){Lr.prototype[S]=function(F){F=F===l?1:ki(yr(F),0);var ie=this.__filtered__&&!E?new Lr(this):this.clone();return ie.__filtered__?ie.__takeCount__=fa(F,ie.__takeCount__):ie.__views__.push({size:fa(F,T),type:S+(ie.__dir__<0?"Right":"")}),ie},Lr.prototype[S+"Right"]=function(F){return this.reverse()[S](F).reverse()}}),Sa(["filter","map","takeWhile"],function(S,E){var F=E+1,ie=F==1||F==3;Lr.prototype[S]=function(pe){var Re=this.clone();return Re.__iteratees__.push({iteratee:Wn(pe,3),type:F}),Re.__filtered__=Re.__filtered__||ie,Re}}),Sa(["head","last"],function(S,E){var F="take"+(E?"Right":"");Lr.prototype[S]=function(){return this[F](1).value()[0]}}),Sa(["initial","tail"],function(S,E){var F="drop"+(E?"":"Right");Lr.prototype[S]=function(){return this.__filtered__?new Lr(this):this[F](1)}}),Lr.prototype.compact=function(){return this.filter(ha)},Lr.prototype.find=function(S){return this.filter(S).head()},Lr.prototype.findLast=function(S){return this.reverse().find(S)},Lr.prototype.invokeMap=Cr(function(S,E){return typeof S=="function"?new Lr(this):this.map(function(F){return nh(F,S,E)})}),Lr.prototype.reject=function(S){return this.filter(Sv(Wn(S)))},Lr.prototype.slice=function(S,E){S=yr(S);var F=this;return F.__filtered__&&(S>0||E<0)?new Lr(F):(S<0?F=F.takeRight(-S):S&&(F=F.drop(S)),E!==l&&(F=(E=yr(E))<0?F.dropRight(-E):F.take(E-S)),F)},Lr.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},Lr.prototype.toArray=function(){return this.take(T)},An(Lr.prototype,function(S,E){var F=/^(?:filter|find|map|reject)|While$/.test(E),ie=/^(?:head|last)$/.test(E),pe=Pe[ie?"take"+(E=="last"?"Right":""):E],Re=ie||/^find/.test(E);pe&&(Pe.prototype[E]=function(){var tt=this.__wrapped__,it=ie?[1]:arguments,ht=tt instanceof Lr,Ue=it[0],Rt=ht||pr(tt),Zt=function(Jn){var wn=pe.apply(Pe,gi([Jn],it));return ie&&Cn?wn[0]:wn};Rt&&F&&typeof Ue=="function"&&Ue.length!=1&&(ht=Rt=!1);var Cn=this.__chain__,In=!!this.__actions__.length,Zn=Re&&!Cn,Vt=ht&&!In;if(!Re&&Rt){tt=Vt?tt:new Lr(this);var Jt=S.apply(tt,it);return Jt.__actions__.push({func:dh,args:[Zt],thisArg:l}),new Fs(Jt,Cn)}return Zn&&Vt?S.apply(this,it):(Jt=this.thru(Zt),Zn?ie?Jt.value()[0]:Jt.value():Jt)})}),Sa(["pop","push","shift","sort","splice","unshift"],function(S){var E=st[S],F=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",ie=/^(?:pop|shift)$/.test(S);Pe.prototype[S]=function(){var pe=arguments;if(ie&&!this.__chain__){var Re=this.value();return E.apply(pr(Re)?Re:[],pe)}return this[F](function(tt){return E.apply(pr(tt)?tt:[],pe)})}}),An(Lr.prototype,function(S,E){var F=Pe[E];if(F){var ie=F.name+"";dn.call(Jd,ie)||(Jd[ie]=[]),Jd[ie].push({name:E,func:F})}}),Jd[rg(l,2).name]=[{name:"wrapper",func:l}],Lr.prototype.clone=function(){var S=new Lr(this.__wrapped__);return S.__actions__=Za(this.__actions__),S.__dir__=this.__dir__,S.__filtered__=this.__filtered__,S.__iteratees__=Za(this.__iteratees__),S.__takeCount__=this.__takeCount__,S.__views__=Za(this.__views__),S},Lr.prototype.reverse=function(){if(this.__filtered__){var S=new Lr(this);S.__dir__=-1,S.__filtered__=!0}else(S=this.clone()).__dir__*=-1;return S},Lr.prototype.value=function(){var S=this.__wrapped__.value(),E=this.__dir__,F=pr(S),ie=E<0,pe=F?S.length:0,Re=function(Mr,Ln,Xn){for(var bi=-1,Ki=Xn.length;++bi<Ki;){var Ol=Xn[bi],Ei=Ol.size;switch(Ol.type){case"drop":Mr+=Ei;break;case"dropRight":Ln-=Ei;break;case"take":Ln=fa(Ln,Mr+Ei);break;case"takeRight":Mr=ki(Mr,Ln-Ei)}}return{start:Mr,end:Ln}}(0,pe,this.__views__),tt=Re.start,it=Re.end,ht=it-tt,Ue=ie?it:tt-1,Rt=this.__iteratees__,Zt=Rt.length,Cn=0,In=fa(ht,this.__takeCount__);if(!F||!ie&&pe==ht&&In==ht)return Pw(S,this.__actions__);var Zn=[];e:for(;ht--&&Cn<In;){for(var Vt=-1,Jt=S[Ue+=E];++Vt<Zt;){var Jn=Rt[Vt],wn=Jn.iteratee,er=Jn.type,ar=wn(Jt);if(er==2)Jt=ar;else if(!ar){if(er==1)continue e;break e}}Zn[Cn++]=Jt}return Zn},Pe.prototype.at=rT,Pe.prototype.chain=function(){return Gw(this)},Pe.prototype.commit=function(){return new Fs(this.value(),this.__chain__)},Pe.prototype.next=function(){this.__values__===l&&(this.__values__=mh(this.value()));var S=this.__index__>=this.__values__.length;return{done:S,value:S?l:this.__values__[this.__index__++]}},Pe.prototype.plant=function(S){for(var E,F=this;F instanceof Jp;){var ie=Uw(F);ie.__index__=0,ie.__values__=l,E?pe.__wrapped__=ie:E=ie;var pe=ie;F=F.__wrapped__}return pe.__wrapped__=S,E},Pe.prototype.reverse=function(){var S=this.__wrapped__;if(S instanceof Lr){var E=S;return this.__actions__.length&&(E=new Lr(this)),(E=E.reverse()).__actions__.push({func:dh,args:[wv],thisArg:l}),new Fs(E,this.__chain__)}return this.thru(wv)},Pe.prototype.toJSON=Pe.prototype.valueOf=Pe.prototype.value=function(){return Pw(this.__wrapped__,this.__actions__)},Pe.prototype.first=Pe.prototype.head,Wu&&(Pe.prototype[Wu]=function(){return this}),Pe}();Wo._=yl,(s=function(){return yl}.call(r,o,r,a))===l||(a.exports=s)}).call(this)}).call(this,o(68),o(220)(n))},function(n,r,o){var i=o(7),a=o(34),s=o(33),l=o(87),u=o(61),f=o(174),h=o(28),m=i.TypeError,y=h("toPrimitive");n.exports=function(O,b){if(!s(O)||l(O))return O;var k,C=u(O,y);if(C){if(b===void 0&&(b="default"),k=a(C,O,b),!s(k)||l(k))return k;throw m("Can't convert object to primitive value")}return b===void 0&&(b="number"),f(O,b)}},function(n,r,o){var i=o(108);n.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(n,r,o){var i=o(36),a=o(18),s=o(91);n.exports=!i&&!a(function(){return Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a!=7})},function(n,r,o){var i=o(35),a=o(135),s=o(50),l=o(38);n.exports=function(u,f){for(var h=a(f),m=l.f,y=s.f,O=0;O<h.length;O++){var b=h[O];i(u,b)||m(u,b,y(f,b))}}},function(n,r,o){var i=o(46),a=o(15),s=o(74),l=o(112),u=o(32),f=a([].concat);n.exports=i("Reflect","ownKeys")||function(h){var m=s.f(u(h)),y=l.f;return y?f(m,y(h)):m}},function(n,r,o){var i=o(15),a=o(35),s=o(41),l=o(137).indexOf,u=o(72),f=i([].push);n.exports=function(h,m){var y,O=s(h),b=0,k=[];for(y in O)!a(u,y)&&a(O,y)&&f(k,y);for(;m.length>b;)a(O,y=m[b++])&&(~l(k,y)||f(k,y));return k}},function(n,r,o){var i=o(41),a=o(75),s=o(45),l=function(u){return function(f,h,m){var y,O=i(f),b=s(O),k=a(m,b);if(u&&h!=h){for(;b>k;)if((y=O[k++])!=y)return!0}else for(;b>k;k++)if((u||k in O)&&O[k]===h)return u||k||0;return!u&&-1}};n.exports={includes:l(!0),indexOf:l(!1)}},function(n,r,o){var i=o(46);n.exports=i("document","documentElement")},function(n,r,o){var i=o(51),a=o(41),s=o(74).f,l=o(114),u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(f){return u&&i(f)=="Window"?function(h){try{return s(h)}catch{return l(u)}}(f):s(a(f))}},function(n,r,o){var i=o(28);r.f=i},function(n,r,o){var i=o(177),a=o(35),s=o(140),l=o(38).f;n.exports=function(u){var f=i.Symbol||(i.Symbol={});a(f,u)||l(f,u,{value:s.f(u)})}},function(n,r,o){var i,a,s,l=o(18),u=o(30),f=o(60),h=o(101),m=o(42),y=o(28),O=o(71),b=y("iterator"),k=!1;[].keys&&("next"in(s=[].keys())?(a=h(h(s)))!==Object.prototype&&(i=a):k=!0),i==null||l(function(){var C={};return i[b].call(C)!==C})?i={}:O&&(i=f(i)),u(i[b])||m(i,b,function(){return this}),n.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:k}},function(n,r,o){var i=o(18);n.exports=!i(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},function(n,r,o){var i=o(16),a=o(15),s=o(72),l=o(33),u=o(35),f=o(38).f,h=o(74),m=o(139),y=o(183),O=o(90),b=o(185),k=!1,C=O("meta"),P=0,$=function(A){f(A,C,{value:{objectID:"O"+P++,weakData:{}}})},T=n.exports={enable:function(){T.enable=function(){},k=!0;var A=h.f,R=a([].splice),B={};B[C]=1,A(B).length&&(h.f=function(I){for(var N=A(I),j=0,L=N.length;j<L;j++)if(N[j]===C){R(N,j,1);break}return N},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:m.f}))},fastKey:function(A,R){if(!l(A))return typeof A=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!u(A,C)){if(!y(A))return"F";if(!R)return"E";$(A)}return A[C].objectID},getWeakData:function(A,R){if(!u(A,C)){if(!y(A))return!0;if(!R)return!1;$(A)}return A[C].weakData},onFreeze:function(A){return b&&k&&y(A)&&!u(A,C)&&$(A),A}};s[C]=!0},function(n,r,o){var i=o(28),a=o(80),s=i("iterator"),l=Array.prototype;n.exports=function(u){return u!==void 0&&(a.Array===u||l[s]===u)}},function(n,r,o){var i=o(7),a=o(34),s=o(56),l=o(32),u=o(88),f=o(118),h=i.TypeError;n.exports=function(m,y){var O=arguments.length<2?f(m):y;if(s(O))return l(a(O,m));throw h(u(m)+" is not iterable")}},function(n,r,o){var i=o(34),a=o(32),s=o(61);n.exports=function(l,u,f){var h,m;a(l);try{if(!(h=s(l,"return"))){if(u==="throw")throw f;return f}h=i(h,l)}catch(y){m=!0,h=y}if(u==="throw")throw f;if(m)throw h;return a(h),f}},function(n,r,o){var i=o(30),a=o(33),s=o(102);n.exports=function(l,u,f){var h,m;return s&&i(h=u.constructor)&&h!==f&&a(m=h.prototype)&&m!==f.prototype&&s(l,m),l}},function(n,r,o){var i=o(42);n.exports=function(a,s,l){for(var u in s)i(a,u,s[u],l);return a}},function(n,r,o){var i=o(46),a=o(38),s=o(28),l=o(36),u=s("species");n.exports=function(f){var h=i(f),m=a.f;l&&h&&!h[u]&&m(h,u,{configurable:!0,get:function(){return this}})}},function(n,r,o){var i=o(15),a=o(59),s=o(39),l=o(44),u=i("".charAt),f=i("".charCodeAt),h=i("".slice),m=function(y){return function(O,b){var k,C,P=s(l(O)),$=a(b),T=P.length;return $<0||$>=T?y?"":void 0:(k=f(P,$))<55296||k>56319||$+1===T||(C=f(P,$+1))<56320||C>57343?y?u(P,$):k:y?h(P,$,$+2):C-56320+(k-55296<<10)+65536}};n.exports={codeAt:m(!1),charAt:m(!0)}},function(n,r){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(n,r,o){var i=o(91)("span").classList,a=i&&i.constructor&&i.constructor.prototype;n.exports=a===Object.prototype?void 0:a},function(n,r,o){var i=o(32);n.exports=function(){var a=i(this),s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),a.dotAll&&(s+="s"),a.unicode&&(s+="u"),a.sticky&&(s+="y"),s}},function(n,r,o){var i=o(18),a=o(7).RegExp,s=i(function(){var f=a("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),l=s||i(function(){return!a("a","y").sticky}),u=s||i(function(){var f=a("^r","gy");return f.lastIndex=2,f.exec("str")!=null});n.exports={BROKEN_CARET:u,MISSED_STICKY:l,UNSUPPORTED_Y:s}},function(n,r,o){var i=o(16),a=o(79).find,s=o(100),l="find",u=!0;l in[]&&Array(1).find(function(){u=!1}),i({target:"Array",proto:!0,forced:u},{find:function(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}}),s(l)},function(n,r,o){var i=o(16),a=o(137).includes,s=o(100);i({target:"Array",proto:!0},{includes:function(l){return a(this,l,arguments.length>1?arguments[1]:void 0)}}),s("includes")},function(n,r,o){var i=o(16),a=o(15),s=o(197),l=o(44),u=o(39),f=o(198),h=a("".indexOf);i({target:"String",proto:!0,forced:!f("includes")},{includes:function(m){return!!~h(u(l(this)),u(s(m)),arguments.length>1?arguments[1]:void 0)}})},function(n,r,o){var i=o(33),a=o(51),s=o(28)("match");n.exports=function(l){var u;return i(l)&&((u=l[s])!==void 0?!!u:a(l)=="RegExp")}},function(n,r,o){var i=o(15);n.exports=i(1 .valueOf)},function(n,r,o){var i=o(15),a=o(44),s=o(39),l=o(162),u=i("".replace),f="["+l+"]",h=RegExp("^"+f+f+"*"),m=RegExp(f+f+"*$"),y=function(O){return function(b){var k=s(a(b));return 1&O&&(k=u(k,h,"")),2&O&&(k=u(k,m,"")),k}};n.exports={start:y(1),end:y(2),trim:y(3)}},function(n,r){n.exports=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(n,r){var o,i,a=n.exports={};function s(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function u(P){if(o===setTimeout)return setTimeout(P,0);if((o===s||!o)&&setTimeout)return o=setTimeout,setTimeout(P,0);try{return o(P,0)}catch{try{return o.call(null,P,0)}catch{return o.call(this,P,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:s}catch{o=s}try{i=typeof clearTimeout=="function"?clearTimeout:l}catch{i=l}})();var f,h=[],m=!1,y=-1;function O(){m&&f&&(m=!1,f.length?h=f.concat(h):y=-1,h.length&&b())}function b(){if(!m){var P=u(O);m=!0;for(var $=h.length;$;){for(f=h,h=[];++y<$;)f&&f[y].run();y=-1,$=h.length}f=null,m=!1,function(T){if(i===clearTimeout)return clearTimeout(T);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(T);try{i(T)}catch{try{return i.call(null,T)}catch{return i.call(this,T)}}}(P)}}function k(P,$){this.fun=P,this.array=$}function C(){}a.nextTick=function(P){var $=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)$[T-1]=arguments[T];h.push(new k(P,$)),h.length!==1||m||u(b)},k.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=C,a.addListener=C,a.once=C,a.off=C,a.removeListener=C,a.removeAllListeners=C,a.emit=C,a.prependListener=C,a.prependOnceListener=C,a.listeners=function(P){return[]},a.binding=function(P){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(P){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(n,r,o){var i=o(32),a=o(165),s=o(28)("species");n.exports=function(l,u){var f,h=i(l).constructor;return h===void 0||(f=i(h)[s])==null?u:a(f)}},function(n,r,o){var i=o(7),a=o(99),s=o(88),l=i.TypeError;n.exports=function(u){if(a(u))return u;throw l(s(u)+" is not a constructor")}},function(n,r,o){var i=o(16),a=o(161).trim;i({target:"String",proto:!0,forced:o(200)("trim")},{trim:function(){return a(this)}})},function(n,r,o){var i=o(34),a=o(123),s=o(32),l=o(94),u=o(39),f=o(44),h=o(61),m=o(124),y=o(125);a("match",function(O,b,k){return[function(C){var P=f(this),$=C==null?void 0:h(C,O);return $?i($,C,P):new RegExp(C)[O](u(P))},function(C){var P=s(this),$=u(C),T=k(b,P,$);if(T.done)return T.value;if(!P.global)return y(P,$);var A=P.unicode;P.lastIndex=0;for(var R,B=[],I=0;(R=y(P,$))!==null;){var N=u(R[0]);B[I]=N,N===""&&(P.lastIndex=m($,l(P.lastIndex),A)),I++}return I===0?null:B}]})},function(n,r,o){var i,a,s,l,u=o(7),f=o(76),h=o(63),m=o(30),y=o(35),O=o(18),b=o(138),k=o(98),C=o(91),P=o(169),$=o(128),T=u.setImmediate,A=u.clearImmediate,R=u.process,B=u.Dispatch,I=u.Function,N=u.MessageChannel,j=u.String,L=0,V={},X="onreadystatechange";try{i=u.location}catch{}var oe=function(J){if(y(V,J)){var z=V[J];delete V[J],z()}},K=function(J){return function(){oe(J)}},Z=function(J){oe(J.data)},re=function(J){u.postMessage(j(J),i.protocol+"//"+i.host)};T&&A||(T=function(J){var z=k(arguments,1);return V[++L]=function(){f(m(J)?J:I(J),void 0,z)},a(L),L},A=function(J){delete V[J]},$?a=function(J){R.nextTick(K(J))}:B&&B.now?a=function(J){B.now(K(J))}:N&&!P?(l=(s=new N).port2,s.port1.onmessage=Z,a=h(l.postMessage,l)):u.addEventListener&&m(u.postMessage)&&!u.importScripts&&i&&i.protocol!=="file:"&&!O(re)?(a=re,u.addEventListener("message",Z,!1)):a=X in C("script")?function(J){b.appendChild(C("script")).onreadystatechange=function(){b.removeChild(this),oe(J)}}:function(J){setTimeout(K(J),0)}),n.exports={set:T,clear:A}},function(n,r,o){var i=o(55);n.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},function(n,r,o){var i=o(56),a=function(s){var l,u;this.promise=new s(function(f,h){if(l!==void 0||u!==void 0)throw TypeError("Bad Promise constructor");l=f,u=h}),this.resolve=i(l),this.reject=i(u)};n.exports.f=function(s){return new a(s)}},function(n,r,o){r.a=function(){return!1}},function(n,r,o){(function(i){o.d(r,"a",function(){return R});var a=o(1);function s(N){throw new Error("[mobx-utils] "+N)}function l(N,j){j===void 0&&(j="Illegal state"),N||s(j)}var u=function(N){return N&&N!==Object.prototype&&Object.getOwnPropertyNames(N).concat(u(Object.getPrototypeOf(N))||[])},f=function(N){return function(j){var L=u(j);return L.filter(function(V,X){return L.indexOf(V)===X})}(N).filter(function(j){return j!=="constructor"&&!~j.indexOf("__")})},h="pending",m="fulfilled",y="rejected";function O(N){switch(this.state){case h:return N.pending&&N.pending(this.value);case y:return N.rejected&&N.rejected(this.value);case m:return N.fulfilled?N.fulfilled(this.value):this.value}}function b(N,j){if(l(arguments.length<=2,"fromPromise expects up to two arguments"),l(typeof N=="function"||typeof N=="object"&&N&&typeof N.then=="function","Please pass a promise or function to fromPromise"),N.isPromiseBasedObservable===!0)return N;typeof N=="function"&&(N=new Promise(N));var L=N;N.then(Object(a.k)("observableFromPromise-resolve",function(X){L.value=X,L.state=m}),Object(a.k)("observableFromPromise-reject",function(X){L.value=X,L.state=y})),L.isPromiseBasedObservable=!0,L.case=O;var V=j&&j.state===m?j.value:void 0;return Object(a.q)(L,{value:V,state:h},{},{deep:!1}),L}(function(N){N.reject=Object(a.k)("fromPromise.reject",function(j){var L=N(Promise.reject(j));return L.state=y,L.value=j,L}),N.resolve=Object(a.k)("fromPromise.resolve",function(j){j===void 0&&(j=void 0);var L=N(Promise.resolve(j));return L.state=m,L.value=j,L})})(b||(b={}));var k=function(N,j,L,V){var X,oe=arguments.length,K=oe<3?j:V===null?V=Object.getOwnPropertyDescriptor(j,L):V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(N,j,L,V);else for(var Z=N.length-1;Z>=0;Z--)(X=N[Z])&&(K=(oe<3?X(K):oe>3?X(j,L,K):X(j,L))||K);return oe>3&&K&&Object.defineProperty(j,L,K),K};(function(){function N(j,L){var V=this;Object(a.G)(function(){V.current=L,V.subscription=j.subscribe(V)})}N.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},N.prototype.next=function(j){this.current=j},N.prototype.complete=function(){this.dispose()},N.prototype.error=function(j){this.current=j,this.dispose()},k([a.C.ref],N.prototype,"current",void 0),k([a.k.bound],N.prototype,"next",null),k([a.k.bound],N.prototype,"complete",null),k([a.k.bound],N.prototype,"error",null)})();var C=function(){return C=Object.assign||function(N){for(var j,L=1,V=arguments.length;L<V;L++)for(var X in j=arguments[L])Object.prototype.hasOwnProperty.call(j,X)&&(N[X]=j[X]);return N},C.apply(this,arguments)},P=function(N,j,L,V){var X,oe=arguments.length,K=oe<3?j:V===null?V=Object.getOwnPropertyDescriptor(j,L):V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(N,j,L,V);else for(var Z=N.length-1;Z>=0;Z--)(X=N[Z])&&(K=(oe<3?X(K):oe>3?X(j,L,K):X(j,L))||K);return oe>3&&K&&Object.defineProperty(j,L,K),K},$=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function N(j){var L=this;this.model=j,this.localValues=a.C.map({}),this.localComputedValues=a.C.map({}),this.isPropertyDirty=function(V){return L.localValues.has(V)},l(Object(a.A)(j),"createViewModel expects an observable object"),f(j).forEach(function(V){if(V!==a.a&&V!=="__mobxDidRunLazyInitializers"){if(l($.indexOf(V)===-1,"The propertyname "+V+" is reserved and cannot be used with viewModels"),Object(a.w)(j,V)){var X=Object(a.h)(j,V).derivation;L.localComputedValues.set(V,Object(a.m)(X.bind(L)))}var oe=Object.getOwnPropertyDescriptor(j,V),K=oe?{enumerable:oe.enumerable}:{};Object.defineProperty(L,V,C(C({},K),{configurable:!0,get:function(){return Object(a.w)(j,V)?L.localComputedValues.get(V).get():L.isPropertyDirty(V)?L.localValues.get(V):L.model[V]},set:Object(a.k)(function(Z){Z!==L.model[V]?L.localValues.set(V,Z):L.localValues.delete(V)})}))}})}Object.defineProperty(N.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),N.prototype.submit=function(){var j=this;Object(a.B)(this.localValues).forEach(function(L){var V=j.localValues.get(L),X=j.model[L];Object(a.y)(X)?X.replace(V):Object(a.z)(X)?(X.clear(),X.merge(V)):Object(a.v)(V)||(j.model[L]=V)}),this.localValues.clear()},N.prototype.reset=function(){this.localValues.clear()},N.prototype.resetProperty=function(j){this.localValues.delete(j)},P([a.m],N.prototype,"isDirty",null),P([a.m],N.prototype,"changedValues",null),P([a.k.bound],N.prototype,"submit",null),P([a.k.bound],N.prototype,"reset",null),P([a.k.bound],N.prototype,"resetProperty",null)})();function T(N){if(!N)return"ROOT";for(var j=[];N.parent;)j.push(N.path),N=N.parent;return j.reverse().join("/")}function A(N){return Object(a.A)(N)||Object(a.y)(N)||Object(a.z)(N)}function R(N,j){var L=new WeakMap;function V(K){var Z=L.get(K.object);(function(re,J){switch(re.type){case"add":X(re.newValue,J,re.name);break;case"update":oe(re.oldValue),X(re.newValue,J,re.name||""+re.index);break;case"remove":case"delete":oe(re.oldValue);break;case"splice":re.removed.map(oe),re.added.forEach(function(ue,he){return X(ue,J,""+(re.index+he))});for(var z=re.index+re.addedCount;z<re.object.length;z++)if(A(re.object[z])){var q=L.get(re.object[z]);q&&(q.path=""+z)}}})(K,Z),j(K,T(Z),N)}function X(K,Z,re){if(A(K)){var J=L.get(K);if(J){if(J.parent!==Z||J.path!==re)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+T(Z)+"/"+re+"', but it already exists at '"+T(J.parent)+"/"+J.path+"'")}else{var z={parent:Z,path:re,dispose:Object(a.D)(K,V)};L.set(K,z),Object(a.p)(K).forEach(function(q){var ue=q[0];return X(q[1],z,ue)})}}}function oe(K){if(A(K)){var Z=L.get(K);if(!Z)return;L.delete(K),Z.dispose(),Object(a.L)(K).forEach(oe)}}return X(N,void 0,""),function(){oe(N)}}var B,I=(B=function(N,j){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,V){L.__proto__=V}||function(L,V){for(var X in V)V.hasOwnProperty(X)&&(L[X]=V[X])},B(N,j)},function(N,j){function L(){this.constructor=N}B(N,j),N.prototype=j===null?Object.create(j):(L.prototype=j.prototype,new L)});(function(N){function j(L,V,X){var oe=X===void 0?{}:X,K=oe.name,Z=K===void 0?"ogm"+(1e3*Math.random()|0):K,re=oe.keyToName,J=re===void 0?function(ue){return""+ue}:re,z=N.call(this)||this;z._keyToName=J,z._groupBy=V,z._ogmInfoKey=Symbol("ogmInfo"+Z),z._base=L;for(var q=0;q<L.length;q++)z._addItem(L[q]);return z._disposeBaseObserver=Object(a.D)(z._base,function(ue){if(ue.type==="splice")Object(a.J)(function(){for(var he=0,le=ue.removed;he<le.length;he++){var ze=le[he];z._removeItem(ze)}for(var Ee=0,Be=ue.added;Ee<Be.length;Ee++){var Ae=Be[Ee];z._addItem(Ae)}});else{if(ue.type!=="update")throw new Error("illegal state");Object(a.J)(function(){z._removeItem(ue.oldValue),z._addItem(ue.newValue)})}}),z}I(j,N),j.prototype.clear=function(){throw new Error("not supported")},j.prototype.delete=function(L){throw new Error("not supported")},j.prototype.set=function(L,V){throw new Error("not supported")},j.prototype.dispose=function(){this._disposeBaseObserver();for(var L=0;L<this._base.length;L++){var V=this._base[L];V[this._ogmInfoKey].reaction(),delete V[this._ogmInfoKey]}},j.prototype._getGroupArr=function(L){var V=N.prototype.get.call(this,L);return V===void 0&&(V=Object(a.C)([],{name:"GroupArray["+this._keyToName(L)+"]",deep:!1}),N.prototype.set.call(this,L,V)),V},j.prototype._removeFromGroupArr=function(L,V){var X=N.prototype.get.call(this,L);X.length===1?N.prototype.delete.call(this,L):(V===X.length-1||(X[V]=X[X.length-1],X[V][this._ogmInfoKey].groupArrIndex=V),X.length--)},j.prototype._addItem=function(L){var V=this,X=this._groupBy(L),oe=this._getGroupArr(X),K={groupByValue:X,groupArrIndex:oe.length,reaction:Object(a.F)(function(){return V._groupBy(L)},function(Z,re){var J=L[V._ogmInfoKey];V._removeFromGroupArr(J.groupByValue,J.groupArrIndex);var z=V._getGroupArr(Z),q=z.length;z.push(L),J.groupByValue=Z,J.groupArrIndex=q})};Object.defineProperty(L,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:K}),oe.push(L)},j.prototype._removeItem=function(L){var V=L[this._ogmInfoKey];this._removeFromGroupArr(V.groupByValue,V.groupArrIndex),V.reaction(),delete L[this._ogmInfoKey]}})(a.b),function(){function N(j,L){this.base=j,this.args=L,this.closestIdx=0,this.isDisposed=!1;for(var V=this.closest=this.root=j,X=0;X<this.args.length-1&&(V=V.get(L[X]));X++)this.closest=V;this.closestIdx=X}return N.prototype.exists=function(){this.assertNotDisposed();var j=this.args.length;return this.closestIdx>=j-1&&this.closest.has(this.args[j-1])},N.prototype.get=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])},N.prototype.set=function(j){this.assertNotDisposed();for(var L=this.args.length,V=this.closest,X=this.closestIdx;X<L-1;X++){var oe=new Map;V.set(this.args[X],oe),V=oe}this.closestIdx=L-1,this.closest=V,V.set(this.args[L-1],j)},N.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var j=this.args.length;this.closest.delete(this.args[j-1]);for(var L=this.root,V=[L],X=0;X<j-1;X++)L=L.get(this.args[X]),V.push(L);for(X=V.length-1;X>0;X--)V[X].size===0&&V[X-1].delete(this.args[X-1]);this.isDisposed=!0},N.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},N}(),Promise.resolve(),typeof queueMicrotask!="undefined"||i!==void 0&&i.nextTick}).call(this,o(163))},function(n,r,o){var i;(function(a,s,l){if(a){for(var u,f={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},h={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},m={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},y={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},O=1;O<20;++O)f[111+O]="f"+O;for(O=0;O<=9;++O)f[O+96]=O.toString();A.prototype.bind=function(R,B,I){var N=this;return R=R instanceof Array?R:[R],N._bindMultiple.call(N,R,B,I),N},A.prototype.unbind=function(R,B){return this.bind.call(this,R,function(){},B)},A.prototype.trigger=function(R,B){var I=this;return I._directMap[R+":"+B]&&I._directMap[R+":"+B]({},R),I},A.prototype.reset=function(){var R=this;return R._callbacks={},R._directMap={},R},A.prototype.stopCallback=function(R,B){if((" "+B.className+" ").indexOf(" mousetrap ")>-1||T(B,this.target))return!1;if("composedPath"in R&&typeof R.composedPath=="function"){var I=R.composedPath()[0];I!==R.target&&(B=I)}return B.tagName=="INPUT"||B.tagName=="SELECT"||B.tagName=="TEXTAREA"||B.isContentEditable},A.prototype.handleKey=function(){var R=this;return R._handleKey.apply(R,arguments)},A.addKeycodes=function(R){for(var B in R)R.hasOwnProperty(B)&&(f[B]=R[B]);u=null},A.init=function(){var R=A(s);for(var B in R)B.charAt(0)!=="_"&&(A[B]=function(I){return function(){return R[I].apply(R,arguments)}}(B))},A.init(),a.Mousetrap=A,n.exports&&(n.exports=A),(i=function(){return A}.call(r,o,r,n))===void 0||(n.exports=i)}function b(R,B,I){R.addEventListener?R.addEventListener(B,I,!1):R.attachEvent("on"+B,I)}function k(R){if(R.type=="keypress"){var B=String.fromCharCode(R.which);return R.shiftKey||(B=B.toLowerCase()),B}return f[R.which]?f[R.which]:h[R.which]?h[R.which]:String.fromCharCode(R.which).toLowerCase()}function C(R){return R=="shift"||R=="ctrl"||R=="alt"||R=="meta"}function P(R,B,I){return I||(I=function(){if(!u)for(var N in u={},f)N>95&&N<112||f.hasOwnProperty(N)&&(u[f[N]]=N);return u}()[R]?"keydown":"keypress"),I=="keypress"&&B.length&&(I="keydown"),I}function $(R,B){var I,N,j,L=[];for(I=function(V){return V==="+"?["+"]:(V=V.replace(/\+{2}/g,"+plus")).split("+")}(R),j=0;j<I.length;++j)N=I[j],y[N]&&(N=y[N]),B&&B!="keypress"&&m[N]&&(N=m[N],L.push("shift")),C(N)&&L.push(N);return{key:N,modifiers:L,action:B=P(N,L,B)}}function T(R,B){return R!==null&&R!==s&&(R===B||T(R.parentNode,B))}function A(R){var B=this;if(R=R||s,!(B instanceof A))return new A(R);B.target=R,B._callbacks={},B._directMap={};var I,N={},j=!1,L=!1,V=!1;function X(z){z=z||{};var q,ue=!1;for(q in N)z[q]?ue=!0:N[q]=0;ue||(V=!1)}function oe(z,q,ue,he,le,ze){var Ee,Be,Ae,_e,ve=[],Ne=ue.type;if(!B._callbacks[z])return[];for(Ne=="keyup"&&C(z)&&(q=[z]),Ee=0;Ee<B._callbacks[z].length;++Ee)if(Be=B._callbacks[z][Ee],(he||!Be.seq||N[Be.seq]==Be.level)&&Ne==Be.action&&(Ne=="keypress"&&!ue.metaKey&&!ue.ctrlKey||(Ae=q,_e=Be.modifiers,Ae.sort().join(",")===_e.sort().join(",")))){var Se=!he&&Be.combo==le,fe=he&&Be.seq==he&&Be.level==ze;(Se||fe)&&B._callbacks[z].splice(Ee,1),ve.push(Be)}return ve}function K(z,q,ue,he){B.stopCallback(q,q.target||q.srcElement,ue,he)||z(q,ue)===!1&&(function(le){le.preventDefault?le.preventDefault():le.returnValue=!1}(q),function(le){le.stopPropagation?le.stopPropagation():le.cancelBubble=!0}(q))}function Z(z){typeof z.which!="number"&&(z.which=z.keyCode);var q=k(z);q&&(z.type!="keyup"||j!==q?B.handleKey(q,function(ue){var he=[];return ue.shiftKey&&he.push("shift"),ue.altKey&&he.push("alt"),ue.ctrlKey&&he.push("ctrl"),ue.metaKey&&he.push("meta"),he}(z),z):j=!1)}function re(z,q,ue,he){function le(Ae){return function(){V=Ae,++N[z],clearTimeout(I),I=setTimeout(X,1e3)}}function ze(Ae){K(ue,Ae,z),he!=="keyup"&&(j=k(Ae)),setTimeout(X,10)}N[z]=0;for(var Ee=0;Ee<q.length;++Ee){var Be=Ee+1===q.length?ze:le(he||$(q[Ee+1]).action);J(q[Ee],Be,he,z,Ee)}}function J(z,q,ue,he,le){B._directMap[z+":"+ue]=q;var ze,Ee=(z=z.replace(/\s+/g," ")).split(" ");Ee.length>1?re(z,Ee,q,ue):(ze=$(z,ue),B._callbacks[ze.key]=B._callbacks[ze.key]||[],oe(ze.key,ze.modifiers,{type:ze.action},he,z,le),B._callbacks[ze.key][he?"unshift":"push"]({callback:q,modifiers:ze.modifiers,action:ze.action,seq:he,level:le,combo:z}))}B._handleKey=function(z,q,ue){var he,le=oe(z,q,ue),ze={},Ee=0,Be=!1;for(he=0;he<le.length;++he)le[he].seq&&(Ee=Math.max(Ee,le[he].level));for(he=0;he<le.length;++he)if(le[he].seq){if(le[he].level!=Ee)continue;Be=!0,ze[le[he].seq]=1,K(le[he].callback,ue,le[he].combo,le[he].seq)}else Be||K(le[he].callback,ue,le[he].combo);var Ae=ue.type=="keypress"&&L;ue.type!=V||C(z)||Ae||X(ze),L=Be&&ue.type=="keydown"},B._bindMultiple=function(z,q,ue){for(var he=0;he<z.length;++he)J(z[he],q,ue)},b(R,"keypress",Z),b(R,"keydown",Z),b(R,"keyup",Z)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)},function(n,r,o){var i=o(7),a=o(34),s=o(30),l=o(33),u=i.TypeError;n.exports=function(f,h){var m,y;if(h==="string"&&s(m=f.toString)&&!l(y=a(m,f))||s(m=f.valueOf)&&!l(y=a(m,f))||h!=="string"&&s(m=f.toString)&&!l(y=a(m,f)))return y;throw u("Can't convert object to primitive value")}},function(n,r,o){var i=o(7),a=o(30),s=o(92),l=i.WeakMap;n.exports=a(l)&&/native code/.test(s(l))},function(n,r,o){var i=o(36),a=o(38),s=o(32),l=o(41),u=o(77);n.exports=i?Object.defineProperties:function(f,h){s(f);for(var m,y=l(h),O=u(h),b=O.length,k=0;b>k;)a.f(f,m=O[k++],y[m]);return f}},function(n,r,o){var i=o(7);n.exports=i},function(n,r,o){var i=o(7),a=o(96),s=o(99),l=o(33),u=o(28)("species"),f=i.Array;n.exports=function(h){var m;return a(h)&&(m=h.constructor,(s(m)&&(m===f||a(m.prototype))||l(m)&&(m=m[u])===null)&&(m=void 0)),m===void 0?f:m}},function(n,r,o){var i=o(113),a=o(97);n.exports=i?{}.toString:function(){return"[object "+a(this)+"]"}},function(n,r,o){var i=o(142).IteratorPrototype,a=o(60),s=o(69),l=o(78),u=o(80),f=function(){return this};n.exports=function(h,m,y,O){var b=m+" Iterator";return h.prototype=a(i,{next:s(+!O,y)}),l(h,b,!1,!0),u[b]=f,h}},function(n,r,o){var i=o(7),a=o(30),s=i.String,l=i.TypeError;n.exports=function(u){if(typeof u=="object"||a(u))return u;throw l("Can't set "+s(u)+" as a prototype")}},function(n,r,o){var i=o(16),a=o(7),s=o(15),l=o(95),u=o(42),f=o(144),h=o(117),m=o(119),y=o(30),O=o(33),b=o(18),k=o(120),C=o(78),P=o(148);n.exports=function($,T,A){var R=$.indexOf("Map")!==-1,B=$.indexOf("Weak")!==-1,I=R?"set":"add",N=a[$],j=N&&N.prototype,L=N,V={},X=function(z){var q=s(j[z]);u(j,z,z=="add"?function(ue){return q(this,ue===0?0:ue),this}:z=="delete"?function(ue){return!(B&&!O(ue))&&q(this,ue===0?0:ue)}:z=="get"?function(ue){return B&&!O(ue)?void 0:q(this,ue===0?0:ue)}:z=="has"?function(ue){return!(B&&!O(ue))&&q(this,ue===0?0:ue)}:function(ue,he){return q(this,ue===0?0:ue,he),this})};if(l($,!y(N)||!(B||j.forEach&&!b(function(){new N().entries().next()}))))L=A.getConstructor(T,$,R,I),f.enable();else if(l($,!0)){var oe=new L,K=oe[I](B?{}:-0,1)!=oe,Z=b(function(){oe.has(1)}),re=k(function(z){new N(z)}),J=!B&&b(function(){for(var z=new N,q=5;q--;)z[I](q,q);return!z.has(-0)});re||((L=T(function(z,q){m(z,j);var ue=P(new N,z,L);return q!=null&&h(q,ue[I],{that:ue,AS_ENTRIES:R}),ue})).prototype=j,j.constructor=L),(Z||J)&&(X("delete"),X("has"),R&&X("get")),(J||K)&&X(I),B&&j.clear&&delete j.clear}return V[$]=L,i({global:!0,forced:L!=N},V),C(L,$),B||A.setStrong(L,$,R),L}},function(n,r,o){var i=o(18),a=o(33),s=o(51),l=o(184),u=Object.isExtensible,f=i(function(){});n.exports=f||l?function(h){return!!a(h)&&(!l||s(h)!="ArrayBuffer")&&(!u||u(h))}:u},function(n,r,o){var i=o(18);n.exports=i(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},function(n,r,o){var i=o(18);n.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(n,r,o){var i=o(38).f,a=o(60),s=o(149),l=o(63),u=o(119),f=o(117),h=o(116),m=o(150),y=o(36),O=o(144).fastKey,b=o(58),k=b.set,C=b.getterFor;n.exports={getConstructor:function(P,$,T,A){var R=P(function(L,V){u(L,B),k(L,{type:$,index:a(null),first:void 0,last:void 0,size:0}),y||(L.size=0),V!=null&&f(V,L[A],{that:L,AS_ENTRIES:T})}),B=R.prototype,I=C($),N=function(L,V,X){var oe,K,Z=I(L),re=j(L,V);return re?re.value=X:(Z.last=re={index:K=O(V,!0),key:V,value:X,previous:oe=Z.last,next:void 0,removed:!1},Z.first||(Z.first=re),oe&&(oe.next=re),y?Z.size++:L.size++,K!=="F"&&(Z.index[K]=re)),L},j=function(L,V){var X,oe=I(L),K=O(V);if(K!=="F")return oe.index[K];for(X=oe.first;X;X=X.next)if(X.key==V)return X};return s(B,{clear:function(){for(var L=I(this),V=L.index,X=L.first;X;)X.removed=!0,X.previous&&(X.previous=X.previous.next=void 0),delete V[X.index],X=X.next;L.first=L.last=void 0,y?L.size=0:this.size=0},delete:function(L){var V=this,X=I(V),oe=j(V,L);if(oe){var K=oe.next,Z=oe.previous;delete X.index[oe.index],oe.removed=!0,Z&&(Z.next=K),K&&(K.previous=Z),X.first==oe&&(X.first=K),X.last==oe&&(X.last=Z),y?X.size--:V.size--}return!!oe},forEach:function(L){for(var V,X=I(this),oe=l(L,arguments.length>1?arguments[1]:void 0);V=V?V.next:X.first;)for(oe(V.value,V.key,this);V&&V.removed;)V=V.previous},has:function(L){return!!j(this,L)}}),s(B,T?{get:function(L){var V=j(this,L);return V&&V.value},set:function(L,V){return N(this,L===0?0:L,V)}}:{add:function(L){return N(this,L=L===0?0:L,L)}}),y&&i(B,"size",{get:function(){return I(this).size}}),R},setStrong:function(P,$,T){var A=$+" Iterator",R=C($),B=C(A);h(P,$,function(I,N){k(this,{type:A,target:I,state:R(I),kind:N,last:void 0})},function(){for(var I=B(this),N=I.kind,j=I.last;j&&j.removed;)j=j.previous;return I.target&&(I.last=j=j?j.next:I.state.first)?N=="keys"?{value:j.key,done:!1}:N=="values"?{value:j.value,done:!1}:{value:[j.key,j.value],done:!1}:(I.target=void 0,{value:void 0,done:!0})},T?"entries":"values",!T,!0),m($)}}},function(n,r,o){var i=o(79).forEach,a=o(121)("forEach");n.exports=a?[].forEach:function(s){return i(this,s,arguments.length>1?arguments[1]:void 0)}},function(n,r,o){var i=o(7),a=o(63),s=o(34),l=o(40),u=o(189),f=o(145),h=o(99),m=o(45),y=o(62),O=o(146),b=o(118),k=i.Array;n.exports=function(C){var P=l(C),$=h(this),T=arguments.length,A=T>1?arguments[1]:void 0,R=A!==void 0;R&&(A=a(A,T>2?arguments[2]:void 0));var B,I,N,j,L,V,X=b(P),oe=0;if(!X||this==k&&f(X))for(B=m(P),I=$?new this(B):k(B);B>oe;oe++)V=R?A(P[oe],oe):P[oe],y(I,oe,V);else for(L=(j=O(P,X)).next,I=$?new this:[];!(N=s(L,j)).done;oe++)V=R?u(j,A,[N.value,oe],!0):N.value,y(I,oe,V);return I.length=oe,I}},function(n,r,o){var i=o(32),a=o(147);n.exports=function(s,l,u,f){try{return f?l(i(u)[0],u[1]):l(u)}catch(h){a(s,"throw",h)}}},function(n,r,o){var i=o(18),a=o(7).RegExp;n.exports=i(function(){var s=a(".","s");return!(s.dotAll&&s.exec(`
- `)&&s.flags==="s")})},function(n,r,o){var i=o(18),a=o(7).RegExp;n.exports=i(function(){var s=a("(?<a>b)","g");return s.exec("b").groups.a!=="b"||"b".replace(s,"$<a>c")!=="bc"})},function(n,r,o){var i=o(16),a=o(15),s=o(56),l=o(40),u=o(45),f=o(39),h=o(18),m=o(193),y=o(121),O=o(194),b=o(195),k=o(70),C=o(196),P=[],$=a(P.sort),T=a(P.push),A=h(function(){P.sort(void 0)}),R=h(function(){P.sort(null)}),B=y("sort"),I=!h(function(){if(k)return k<70;if(!(O&&O>3)){if(b)return!0;if(C)return C<603;var N,j,L,V,X="";for(N=65;N<76;N++){switch(j=String.fromCharCode(N),N){case 66:case 69:case 70:case 72:L=3;break;case 68:case 71:L=4;break;default:L=2}for(V=0;V<47;V++)P.push({k:j+V,v:L})}for(P.sort(function(oe,K){return K.v-oe.v}),V=0;V<P.length;V++)j=P[V].k.charAt(0),X.charAt(X.length-1)!==j&&(X+=j);return X!=="DGBEFHACIJK"}});i({target:"Array",proto:!0,forced:A||!R||!B||!I},{sort:function(N){N!==void 0&&s(N);var j=l(this);if(I)return N===void 0?$(j):$(j,N);var L,V,X=[],oe=u(j);for(V=0;V<oe;V++)V in j&&T(X,j[V]);for(m(X,function(K){return function(Z,re){return re===void 0?-1:Z===void 0?1:K!==void 0?+K(Z,re)||0:f(Z)>f(re)?1:-1}}(N)),L=X.length,V=0;V<L;)j[V]=X[V++];for(;V<oe;)delete j[V++];return j}})},function(n,r,o){var i=o(114),a=Math.floor,s=function(f,h){var m=f.length,y=a(m/2);return m<8?l(f,h):u(f,s(i(f,0,y),h),s(i(f,y),h),h)},l=function(f,h){for(var m,y,O=f.length,b=1;b<O;){for(y=b,m=f[b];y&&h(f[y-1],m)>0;)f[y]=f[--y];y!==b++&&(f[y]=m)}return f},u=function(f,h,m,y){for(var O=h.length,b=m.length,k=0,C=0;k<O||C<b;)f[k+C]=k<O&&C<b?y(h[k],m[C])<=0?h[k++]:m[C++]:k<O?h[k++]:m[C++];return f};n.exports=s},function(n,r,o){var i=o(55).match(/firefox\/(\d+)/i);n.exports=!!i&&+i[1]},function(n,r,o){var i=o(55);n.exports=/MSIE|Trident/.test(i)},function(n,r,o){var i=o(55).match(/AppleWebKit\/(\d+)\./);n.exports=!!i&&+i[1]},function(n,r,o){var i=o(7),a=o(159),s=i.TypeError;n.exports=function(l){if(a(l))throw s("The method doesn't accept regular expressions");return l}},function(n,r,o){var i=o(28)("match");n.exports=function(a){var s=/./;try{"/./"[a](s)}catch{try{return s[i]=!1,"/./"[a](s)}catch{}}return!1}},function(n,r,o){o(16)({target:"Number",stat:!0},{isNaN:function(i){return i!=i}})},function(n,r,o){var i=o(73).PROPER,a=o(18),s=o(162);n.exports=function(l){return a(function(){return!!s[l]()||"\u200B\x85\u180E"[l]()!=="\u200B\x85\u180E"||i&&s[l].name!==l})}},function(n,r,o){var i=o(15),a=o(40),s=Math.floor,l=i("".charAt),u=i("".replace),f=i("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,m=/\$([$&'`]|\d{1,2})/g;n.exports=function(y,O,b,k,C,P){var $=b+y.length,T=k.length,A=m;return C!==void 0&&(C=a(C),A=h),u(P,A,function(R,B){var I;switch(l(B,0)){case"$":return"$";case"&":return y;case"`":return f(O,0,b);case"'":return f(O,$);case"<":I=C[f(B,1,-1)];break;default:var N=+B;if(N===0)return R;if(N>T){var j=s(N/10);return j===0?R:j<=T?k[j-1]===void 0?l(B,1):k[j-1]+l(B,1):R}I=k[N-1]}return I===void 0?"":I})}},function(n,r,o){var i=o(36),a=o(15),s=o(34),l=o(18),u=o(77),f=o(112),h=o(84),m=o(40),y=o(85),O=Object.assign,b=Object.defineProperty,k=a([].concat);n.exports=!O||l(function(){if(i&&O({b:1},O(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var C={},P={},$=Symbol(),T="abcdefghijklmnopqrst";return C[$]=7,T.split("").forEach(function(A){P[A]=A}),O({},C)[$]!=7||u(O({},P)).join("")!=T})?function(C,P){for(var $=m(C),T=arguments.length,A=1,R=f.f,B=h.f;T>A;)for(var I,N=y(arguments[A++]),j=R?k(u(N),R(N)):u(N),L=j.length,V=0;L>V;)I=j[V++],i&&!s(B,N,I)||($[I]=N[I]);return $}:O},function(n,r,o){var i=o(7),a=o(15),s=o(56),l=o(33),u=o(35),f=o(98),h=i.Function,m=a([].concat),y=a([].join),O={},b=function(k,C,P){if(!u(O,C)){for(var $=[],T=0;T<C;T++)$[T]="a["+T+"]";O[C]=h("C,a","return new C("+y($,",")+")")}return O[C](k,P)};n.exports=h.bind||function(k){var C=s(this),P=C.prototype,$=f(arguments,1),T=function(){var A=m($,f(arguments));return this instanceof T?b(C,A.length,A):C.apply(k,A)};return l(P)&&(T.prototype=P),T}},function(n,r,o){var i=o(35);n.exports=function(a){return a!==void 0&&(i(a,"value")||i(a,"writable"))}},function(n,r,o){var i=o(15),a=o(44),s=o(39),l=/"/g,u=i("".replace);n.exports=function(f,h,m,y){var O=s(a(f)),b="<"+h;return m!==""&&(b+=" "+m+'="'+u(s(y),l,""")+'"'),b+">"+O+"</"+h+">"}},function(n,r,o){var i=o(18);n.exports=function(a){return i(function(){var s=""[a]('"');return s!==s.toLowerCase()||s.split('"').length>3})}},function(n,r,o){var i,a,s,l,u=o(16),f=o(71),h=o(7),m=o(46),y=o(34),O=o(208),b=o(42),k=o(149),C=o(102),P=o(78),$=o(150),T=o(56),A=o(30),R=o(33),B=o(119),I=o(92),N=o(117),j=o(120),L=o(164),V=o(168).set,X=o(209),oe=o(212),K=o(213),Z=o(170),re=o(214),J=o(58),z=o(95),q=o(28),ue=o(215),he=o(128),le=o(70),ze=q("species"),Ee="Promise",Be=J.getterFor(Ee),Ae=J.set,_e=J.getterFor(Ee),ve=O&&O.prototype,Ne=O,Se=ve,fe=h.TypeError,ye=h.document,He=h.process,be=Z.f,Ie=be,De=!!(ye&&ye.createEvent&&h.dispatchEvent),Me=A(h.PromiseRejectionEvent),qe="unhandledrejection",Oe=!1,Je=z(Ee,function(){var me=I(Ne),Ve=me!==String(Ne);if(!Ve&&le===66||f&&!Se.finally)return!0;if(le>=51&&/native code/.test(me))return!1;var ke=new Ne(function(rt){rt(1)}),Ze=function(rt){rt(function(){},function(){})};return(ke.constructor={})[ze]=Ze,!(Oe=ke.then(function(){})instanceof Ze)||!Ve&&ue&&!Me}),lt=Je||!j(function(me){Ne.all(me).catch(function(){})}),Ke=function(me){var Ve;return!(!R(me)||!A(Ve=me.then))&&Ve},et=function(me,Ve){if(!me.notified){me.notified=!0;var ke=me.reactions;X(function(){for(var Ze=me.value,rt=me.state==1,zt=0;ke.length>zt;){var Fn,ot,Bt,Sn=ke[zt++],It=rt?Sn.ok:Sn.fail,qt=Sn.resolve,Xt=Sn.reject,xn=Sn.domain;try{It?(rt||(me.rejection===2&&kt(me),me.rejection=1),It===!0?Fn=Ze:(xn&&xn.enter(),Fn=It(Ze),xn&&(xn.exit(),Bt=!0)),Fn===Sn.promise?Xt(fe("Promise-chain cycle")):(ot=Ke(Fn))?y(ot,Fn,qt,Xt):qt(Fn)):Xt(Ze)}catch(Br){xn&&!Bt&&xn.exit(),Xt(Br)}}me.reactions=[],me.notified=!1,Ve&&!me.rejection&&Ot(me)})}},bt=function(me,Ve,ke){var Ze,rt;De?((Ze=ye.createEvent("Event")).promise=Ve,Ze.reason=ke,Ze.initEvent(me,!1,!0),h.dispatchEvent(Ze)):Ze={promise:Ve,reason:ke},!Me&&(rt=h["on"+me])?rt(Ze):me===qe&&K("Unhandled promise rejection",ke)},Ot=function(me){y(V,h,function(){var Ve,ke=me.facade,Ze=me.value;if(Qt(me)&&(Ve=re(function(){he?He.emit("unhandledRejection",Ze,ke):bt(qe,ke,Ze)}),me.rejection=he||Qt(me)?2:1,Ve.error))throw Ve.value})},Qt=function(me){return me.rejection!==1&&!me.parent},kt=function(me){y(V,h,function(){var Ve=me.facade;he?He.emit("rejectionHandled",Ve):bt("rejectionhandled",Ve,me.value)})},an=function(me,Ve,ke){return function(Ze){me(Ve,Ze,ke)}},Ce=function(me,Ve,ke){me.done||(me.done=!0,ke&&(me=ke),me.value=Ve,me.state=2,et(me,!0))},Ye=function(me,Ve,ke){if(!me.done){me.done=!0,ke&&(me=ke);try{if(me.facade===Ve)throw fe("Promise can't be resolved itself");var Ze=Ke(Ve);Ze?X(function(){var rt={done:!1};try{y(Ze,Ve,an(Ye,rt,me),an(Ce,rt,me))}catch(zt){Ce(rt,zt,me)}}):(me.value=Ve,me.state=1,et(me,!1))}catch(rt){Ce({done:!1},rt,me)}}};if(Je&&(Se=(Ne=function(me){B(this,Se),T(me),y(i,this);var Ve=Be(this);try{me(an(Ye,Ve),an(Ce,Ve))}catch(ke){Ce(Ve,ke)}}).prototype,(i=function(me){Ae(this,{type:Ee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=k(Se,{then:function(me,Ve){var ke=_e(this),Ze=ke.reactions,rt=be(L(this,Ne));return rt.ok=!A(me)||me,rt.fail=A(Ve)&&Ve,rt.domain=he?He.domain:void 0,ke.parent=!0,Ze[Ze.length]=rt,ke.state!=0&&et(ke,!1),rt.promise},catch:function(me){return this.then(void 0,me)}}),a=function(){var me=new i,Ve=Be(me);this.promise=me,this.resolve=an(Ye,Ve),this.reject=an(Ce,Ve)},Z.f=be=function(me){return me===Ne||me===s?new a(me):Ie(me)},!f&&A(O)&&ve!==Object.prototype)){l=ve.then,Oe||(b(ve,"then",function(me,Ve){var ke=this;return new Ne(function(Ze,rt){y(l,ke,Ze,rt)}).then(me,Ve)},{unsafe:!0}),b(ve,"catch",Se.catch,{unsafe:!0}));try{delete ve.constructor}catch{}C&&C(ve,Se)}u({global:!0,wrap:!0,forced:Je},{Promise:Ne}),P(Ne,Ee,!1,!0),$(Ee),s=m(Ee),u({target:Ee,stat:!0,forced:Je},{reject:function(me){var Ve=be(this);return y(Ve.reject,void 0,me),Ve.promise}}),u({target:Ee,stat:!0,forced:f||Je},{resolve:function(me){return oe(f&&this===s?Ne:this,me)}}),u({target:Ee,stat:!0,forced:lt},{all:function(me){var Ve=this,ke=be(Ve),Ze=ke.resolve,rt=ke.reject,zt=re(function(){var Fn=T(Ve.resolve),ot=[],Bt=0,Sn=1;N(me,function(It){var qt=Bt++,Xt=!1;Sn++,y(Fn,Ve,It).then(function(xn){Xt||(Xt=!0,ot[qt]=xn,--Sn||Ze(ot))},rt)}),--Sn||Ze(ot)});return zt.error&&rt(zt.value),ke.promise},race:function(me){var Ve=this,ke=be(Ve),Ze=ke.reject,rt=re(function(){var zt=T(Ve.resolve);N(me,function(Fn){y(zt,Ve,Fn).then(ke.resolve,Ze)})});return rt.error&&Ze(rt.value),ke.promise}})},function(n,r,o){var i=o(7);n.exports=i.Promise},function(n,r,o){var i,a,s,l,u,f,h,m,y=o(7),O=o(63),b=o(50).f,k=o(168).set,C=o(169),P=o(210),$=o(211),T=o(128),A=y.MutationObserver||y.WebKitMutationObserver,R=y.document,B=y.process,I=y.Promise,N=b(y,"queueMicrotask"),j=N&&N.value;j||(i=function(){var L,V;for(T&&(L=B.domain)&&L.exit();a;){V=a.fn,a=a.next;try{V()}catch(X){throw a?l():s=void 0,X}}s=void 0,L&&L.enter()},C||T||$||!A||!R?!P&&I&&I.resolve?((h=I.resolve(void 0)).constructor=I,m=O(h.then,h),l=function(){m(i)}):T?l=function(){B.nextTick(i)}:(k=O(k,y),l=function(){k(i)}):(u=!0,f=R.createTextNode(""),new A(i).observe(f,{characterData:!0}),l=function(){f.data=u=!u})),n.exports=j||function(L){var V={fn:L,next:void 0};s&&(s.next=V),a||(a=V,l()),s=V}},function(n,r,o){var i=o(55),a=o(7);n.exports=/ipad|iphone|ipod/i.test(i)&&a.Pebble!==void 0},function(n,r,o){var i=o(55);n.exports=/web0s(?!.*chrome)/i.test(i)},function(n,r,o){var i=o(32),a=o(33),s=o(170);n.exports=function(l,u){if(i(l),a(u)&&u.constructor===l)return u;var f=s.f(l);return(0,f.resolve)(u),f.promise}},function(n,r,o){var i=o(7);n.exports=function(a,s){var l=i.console;l&&l.error&&(arguments.length==1?l.error(a):l.error(a,s))}},function(n,r){n.exports=function(o){try{return{error:!1,value:o()}}catch(i){return{error:!0,value:i}}}},function(n,r){n.exports=typeof window=="object"},function(n,r,o){var i=o(40),a=o(75),s=o(45);n.exports=function(l){for(var u=i(this),f=s(u),h=arguments.length,m=a(h>1?arguments[1]:void 0,f),y=h>2?arguments[2]:void 0,O=y===void 0?f:a(y,f);O>m;)u[m++]=l;return u}},function(n,r,o){var i=o(16),a=o(7),s=o(15),l=o(59),u=o(160),f=o(218),h=o(18),m=a.RangeError,y=a.String,O=Math.floor,b=s(f),k=s("".slice),C=s(1 .toFixed),P=function(R,B,I){return B===0?I:B%2==1?P(R,B-1,I*R):P(R*R,B/2,I)},$=function(R,B,I){for(var N=-1,j=I;++N<6;)j+=B*R[N],R[N]=j%1e7,j=O(j/1e7)},T=function(R,B){for(var I=6,N=0;--I>=0;)N+=R[I],R[I]=O(N/B),N=N%B*1e7},A=function(R){for(var B=6,I="";--B>=0;)if(I!==""||B===0||R[B]!==0){var N=y(R[B]);I=I===""?N:I+b("0",7-N.length)+N}return I};i({target:"Number",proto:!0,forced:h(function(){return C(8e-5,3)!=="0.000"||C(.9,0)!=="1"||C(1.255,2)!=="1.25"||C(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!h(function(){C({})})},{toFixed:function(R){var B,I,N,j,L=u(this),V=l(R),X=[0,0,0,0,0,0],oe="",K="0";if(V<0||V>20)throw m("Incorrect fraction digits");if(L!=L)return"NaN";if(L<=-1e21||L>=1e21)return y(L);if(L<0&&(oe="-",L=-L),L>1e-21)if(I=(B=function(Z){for(var re=0,J=Z;J>=4096;)re+=12,J/=4096;for(;J>=2;)re+=1,J/=2;return re}(L*P(2,69,1))-69)<0?L*P(2,-B,1):L/P(2,B,1),I*=4503599627370496,(B=52-B)>0){for($(X,0,I),N=V;N>=7;)$(X,1e7,0),N-=7;for($(X,P(10,N,1),0),N=B-1;N>=23;)T(X,1<<23),N-=23;T(X,1<<N),$(X,1,1),T(X,2),K=A(X)}else $(X,0,I),$(X,1<<-B,0),K=A(X)+b("0",V);return K=V>0?oe+((j=K.length)<=V?"0."+b("0",V-j)+K:k(K,0,j-V)+"."+k(K,j-V)):oe+K}})},function(n,r,o){var i=o(7),a=o(59),s=o(39),l=o(44),u=i.RangeError;n.exports=function(f){var h=s(l(this)),m="",y=a(f);if(y<0||y==1/0)throw u("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(h+=h))1&y&&(m+=h);return m}},function(n,r,o){var i=o(36),a=o(15),s=o(77),l=o(41),u=a(o(84).f),f=a([].push),h=function(m){return function(y){for(var O,b=l(y),k=s(b),C=k.length,P=0,$=[];C>P;)O=k[P++],i&&!u(b,O)||f($,m?[O,b[O]]:b[O]);return $}};n.exports={entries:h(!0),values:h(!1)}},function(n,r){n.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(n,r,o){o.r(r),o.d(r,"observer",function(){return sc}),o.d(r,"LogicFlow",function(){return V$}),o.d(r,"h",function(){return Oe.g}),o.d(r,"LogicFlowUtil",function(){return i}),o.d(r,"BaseNode",function(){return id}),o.d(r,"RectNode",function(){return AP}),o.d(r,"CircleNode",function(){return IP}),o.d(r,"PolygonNode",function(){return VP}),o.d(r,"DiamondNode",function(){return WP}),o.d(r,"EllipseNode",function(){return XP}),o.d(r,"TextNode",function(){return GP}),o.d(r,"HtmlNode",function(){return n$}),o.d(r,"BaseEdge",function(){return __}),o.d(r,"LineEdge",function(){return m$}),o.d(r,"PolylineEdge",function(){return O$}),o.d(r,"BezierEdge",function(){return k$}),o.d(r,"Arrow",function(){return Kre}),o.d(r,"BaseEdgeModel",function(){return Pb}),o.d(r,"BezierEdgeModel",function(){return jT}),o.d(r,"LineEdgeModel",function(){return Xf}),o.d(r,"PolylineEdgeModel",function(){return xv}),o.d(r,"BaseNodeModel",function(){return od}),o.d(r,"CircleNodeModel",function(){return QT}),o.d(r,"DiamondNodeModel",function(){return ZT}),o.d(r,"EllipseNodeModel",function(){return GT}),o.d(r,"PolygonNodeModel",function(){return oP}),o.d(r,"RectNodeModel",function(){return lP}),o.d(r,"TextNodeModel",function(){return dP}),o.d(r,"HtmlNodeModel",function(){return gP}),o.d(r,"EditConfigModel",function(){return K0}),o.d(r,"GraphModel",function(){return wg}),o.d(r,"SnaplineModel",function(){return D8}),o.d(r,"Keyboard",function(){return SL}),o.d(r,"get",function(){return w4}),o.d(r,"defaults",function(){return x4}),o.d(r,"ElementState",function(){return Jr}),o.d(r,"ModelType",function(){return kr}),o.d(r,"ElementType",function(){return ui}),o.d(r,"EventType",function(){return An}),o.d(r,"formateAnchorConnectValidateData",function(){return sg});var i={};o.r(i),o.d(i,"createUuid",function(){return bl}),o.d(i,"refreshGraphId",function(){return lh}),o.d(i,"StepDrag",function(){return _l}),o.d(i,"setupEdgeModel",function(){return oS}),o.d(i,"isBboxOverLapping",function(){return Vb}),o.d(i,"filterRepeatPoints",function(){return Ju}),o.d(i,"getSimplePolyline",function(){return Fb}),o.d(i,"getExpandedBBox",function(){return ph}),o.d(i,"pointDirection",function(){return fg}),o.d(i,"getExpandedBBoxPoint",function(){return qi}),o.d(i,"mergeBBox",function(){return Qc}),o.d(i,"getBBoxOfPoints",function(){return gh}),o.d(i,"getPointsFromBBox",function(){return dg}),o.d(i,"isPointOutsideBBox",function(){return mh}),o.d(i,"getBBoxXCrossPoints",function(){return uu}),o.d(i,"getBBoxYCrossPoints",function(){return yr}),o.d(i,"getBBoxCrossPointsByPoint",function(){return zb}),o.d(i,"estimateDistance",function(){return $a}),o.d(i,"costByPoints",function(){return Qb}),o.d(i,"heuristicCostEstimate",function(){return eo}),o.d(i,"rebuildPath",function(){return iS}),o.d(i,"removeClosePointFromOpenList",function(){return Wb}),o.d(i,"isSegmentsIntersected",function(){return ec}),o.d(i,"isSegmentCrossingBBox",function(){return Yb}),o.d(i,"getNextNeighborPoints",function(){return aS}),o.d(i,"pathFinder",function(){return sS}),o.d(i,"getBoxByOriginNode",function(){return Ub}),o.d(i,"pointFilter",function(){return hg}),o.d(i,"getPolylinePoints",function(){return pg}),o.d(i,"getLongestEdge",function(){return lS}),o.d(i,"isSegmentsInNode",function(){return Hb}),o.d(i,"isSegmentsCrossNode",function(){return Zb}),o.d(i,"getCrossPointInRect",function(){return yi}),o.d(i,"segmentDirection",function(){return Bi}),o.d(i,"points2PointsList",function(){return Wc}),o.d(i,"getSimplePoints",function(){return Xb}),o.d(i,"getBytesLength",function(){return qb}),o.d(i,"getTextWidth",function(){return cS}),o.d(i,"getAppendAttributes",function(){return Kb}),o.d(i,"getBezierControlPoints",function(){return Yc}),o.d(i,"getBezierPoints",function(){return Tv}),o.d(i,"getEndTangent",function(){return Pv}),o.d(i,"getClosestPointOfPolyline",function(){return Gb}),o.d(i,"pickEdgeConfig",function(){return fS}),o.d(i,"twoPointDistance",function(){return Jb}),o.d(i,"createEdgeGenerator",function(){return dS}),o.d(i,"snapToGrid",function(){return au}),o.d(i,"getGridOffset",function(){return sh}),o.d(i,"sampleCubic",function(){return pr}),o.d(i,"getThetaOfVector",function(){return Pa}),o.d(i,"degrees",function(){return ei}),o.d(i,"Vector",function(){return Vi}),o.d(i,"Point",function(){return vh}),o.d(i,"Matrix",function(){return Ln}),o.d(i,"RotateMatrix",function(){return Xn}),o.d(i,"ScaleMatrix",function(){return bi}),o.d(i,"TranslateMatrix",function(){return Ki});var a=o(1),s=o(10);if(!s.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!a.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var l=o(43),u=Object(l.b)("observerBatching");function f(d){d()}var h=!1;function m(){return h}function y(d){return Object(a.t)(d)}var O,b=1e4,k=new Set;function C(){O===void 0&&(O=setTimeout(P,1e4))}function P(){O=void 0;var d=Date.now();k.forEach(function(c){var p=c.current;p&&d>=p.cleanAt&&(p.reaction.dispose(),c.current=null,k.delete(c))}),k.size>0&&C()}var $=!1,T=[],A={};function R(d){return"observer"+d}function B(d,c,p){c===void 0&&(c="observed"),p===void 0&&(p=A),m();var g,w=function(H){return function(){$?T.push(H):H()}}((p.useForceUpdate||l.d)()),_=s.d.useRef(null);if(!_.current){var x=new a.c(R(c),function(){M.mounted?w():(x.dispose(),_.current=null)}),M=function(H){return{cleanAt:Date.now()+b,reaction:H}}(x);_.current=M,g=_,k.add(g),C()}var D=_.current.reaction;return s.d.useDebugValue(D,y),s.d.useEffect(function(){var H;return H=_,k.delete(H),_.current?_.current.mounted=!0:(_.current={reaction:new a.c(R(c),function(){w()}),cleanAt:1/0},w()),function(){_.current.reaction.dispose(),_.current=null}},[]),function(H){$=!0,T=[];try{var te=H();$=!1;var de=T.length>0?T:void 0;return s.d.useLayoutEffect(function(){de&&de.forEach(function(we){return we()})},[de]),te}finally{$=!1}}(function(){var H,te;if(D.track(function(){try{H=d()}catch(de){te=de}}),te)throw te;return H})}var I=function(){return I=Object.assign||function(d){for(var c,p=1,g=arguments.length;p<g;p++)for(var w in c=arguments[p])Object.prototype.hasOwnProperty.call(c,w)&&(d[w]=c[w]);return d},I.apply(this,arguments)};function N(d,c){var p,g,w,_=I({forwardRef:!1},c),x=d.displayName||d.name,M=function(D,H){return B(function(){return d(D,H)},x)};return M.displayName=x,p=_.forwardRef?Object(s.f)(Object(s.e)(M)):Object(s.f)(M),g=d,w=p,Object.keys(g).forEach(function(D){j[D]||Object.defineProperty(w,D,Object.getOwnPropertyDescriptor(g,D))}),p.displayName=x,p}var j={$$typeof:!0,render:!0,compare:!0,type:!0};function L(d){var c=d.children,p=d.render,g=c||p;return typeof g!="function"?null:B(g)}function V(d,c,p,g,w){var _=c==="children"?"render":"children",x=typeof d[c]=="function",M=typeof d[_]=="function";return x&&M?new Error("MobX Observer: Do not use children and render in the same time in`"+p):x||M?null:new Error("Invalid prop `"+w+"` of type `"+typeof d[c]+"` supplied to `"+p+"`, expected `function`.")}L.propTypes={children:V,render:V},L.displayName="Observer";var X;(X=s.g)||(X=f),Object(a.n)({reactionScheduler:X}),Object(l.a)()[u]=!0;var oe=0,K={};function Z(d){return K[d]||(K[d]=function(c){if(typeof Symbol=="function")return Symbol(c);var p="__$mobx-react "+c+" ("+oe+")";return oe++,p}(d)),K[d]}function re(d,c){if(J(d,c))return!0;if(typeof d!="object"||d===null||typeof c!="object"||c===null)return!1;var p=Object.keys(d),g=Object.keys(c);if(p.length!==g.length)return!1;for(var w=0;w<p.length;w++)if(!Object.hasOwnProperty.call(c,p[w])||!J(d[p[w]],c[p[w]]))return!1;return!0}function J(d,c){return d===c?d!==0||1/d==1/c:d!=d&&c!=c}function z(d,c,p){Object.hasOwnProperty.call(d,c)?d[c]=p:Object.defineProperty(d,c,{enumerable:!1,configurable:!0,writable:!0,value:p})}var q=Z("patchMixins"),ue=Z("patchedDefinition");function he(d,c){for(var p=this,g=arguments.length,w=new Array(g>2?g-2:0),_=2;_<g;_++)w[_-2]=arguments[_];c.locks++;try{var x;return d!=null&&(x=d.apply(this,w)),x}finally{c.locks--,c.locks===0&&c.methods.forEach(function(M){M.apply(p,w)})}}function le(d,c){return function(){for(var p=arguments.length,g=new Array(p),w=0;w<p;w++)g[w]=arguments[w];he.call.apply(he,[this,d,c].concat(g))}}function ze(d,c,p){var g=function(M,D){var H=M[q]=M[q]||{},te=H[D]=H[D]||{};return te.locks=te.locks||0,te.methods=te.methods||[],te}(d,c);g.methods.indexOf(p)<0&&g.methods.push(p);var w=Object.getOwnPropertyDescriptor(d,c);if(!w||!w[ue]){var _=d[c],x=Ee(d,c,w?w.enumerable:void 0,g,_);Object.defineProperty(d,c,x)}}function Ee(d,c,p,g,w){var _,x=le(w,g);return(_={})[ue]=!0,_.get=function(){return x},_.set=function(M){if(this===d)x=le(M,g);else{var D=Ee(this,c,p,g,M);Object.defineProperty(this,c,D)}},_.configurable=!0,_.enumerable=p,_}var Be=a.a||"$mobx",Ae=Z("isMobXReactObserver"),_e=Z("isUnmounted"),ve=Z("skipRender"),Ne=Z("isForcingUpdate");function Se(d){var c=d.prototype;if(d[Ae]?fe(c):d[Ae]=!0,c.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(d.__proto__!==s.b)if(c.shouldComponentUpdate){if(c.shouldComponentUpdate!==He)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else c.shouldComponentUpdate=He;be(c,"props"),be(c,"state");var p=c.render;return c.render=function(){return ye.call(this,p)},ze(c,"componentWillUnmount",function(){var g;(g=this.render[Be])===null||g===void 0||g.dispose(),this[_e]=!0,!this.render[Be]&&fe(this)}),d}function fe(d){return d.displayName||d.name||d.constructor&&(d.constructor.displayName||d.constructor.name)||"<component>"}function ye(d){var c=this;z(this,ve,!1),z(this,Ne,!1);var p=fe(this),g=d.bind(this),w=!1,_=new a.c(p+".render()",function(){if(!w&&(w=!0,c[_e]!==!0)){var M=!0;try{z(c,Ne,!0),c[ve]||s.a.prototype.forceUpdate.call(c),M=!1}finally{z(c,Ne,!1),M&&_.dispose()}}});function x(){w=!1;var M=void 0,D=void 0;if(_.track(function(){try{D=Object(a.d)(!1,g)}catch(H){M=H}}),M)throw M;return D}return _.reactComponent=this,x[Be]=_,this.render=x,x.call(this)}function He(d,c){return this.state!==c||!re(this.props,d)}function be(d,c){var p=Z("reactProp_"+c+"_valueHolder"),g=Z("reactProp_"+c+"_atomHolder");function w(){return this[g]||z(this,g,Object(a.o)("reactive "+c)),this[g]}Object.defineProperty(d,c,{configurable:!0,enumerable:!0,get:function(){var _=!1;return a.f&&a.e&&(_=Object(a.f)(!0)),w.call(this).reportObserved(),a.f&&a.e&&Object(a.e)(_),this[p]},set:function(_){this[Ne]||re(this[p],_)?z(this,p,_):(z(this,p,_),z(this,ve,!0),w.call(this).reportChanged(),z(this,ve,!1))}})}var Ie=typeof Symbol=="function"&&Symbol.for,De=Ie?Symbol.for("react.forward_ref"):typeof s.e=="function"&&Object(s.e)(function(d){return null}).$$typeof,Me=Ie?Symbol.for("react.memo"):typeof s.f=="function"&&Object(s.f)(function(d){return null}).$$typeof;function qe(d){if(d.isMobxInjector,Me&&d.$$typeof===Me)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(De&&d.$$typeof===De){var c=d.render;if(typeof c!="function")throw new Error("render property of ForwardRef was not a function");return Object(s.e)(function(){var p=arguments;return Object(s.c)(L,null,function(){return c.apply(void 0,p)})})}return typeof d!="function"||d.prototype&&d.prototype.render||d.isReactClass||Object.prototype.isPrototypeOf.call(s.a,d)?Se(d):N(d)}if(!s.a)throw new Error("mobx-react requires React to be available");if(!a.C)throw new Error("mobx-react requires mobx to be available");var Oe=o(0);o(4),o(8),o(2),o(3),o(52),o(6),o(5),o(11),o(37),o(26),o(21),o(20),o(24),o(22),o(25),o(9),o(17),o(23),o(19),o(192),o(156),o(104),o(157),o(158),o(199),o(64);var Je=function(d,c){for(var p=-1,g=d==null?0:d.length,w=Array(g);++p<g;)w[p]=c(d[p],p,d);return w},lt=function(){this.__data__=[],this.size=0},Ke=function(d,c){return d===c||d!=d&&c!=c},et=function(d,c){for(var p=d.length;p--;)if(Ke(d[p][0],c))return p;return-1},bt=Array.prototype.splice,Ot=function(d){var c=this.__data__,p=et(c,d);return!(p<0)&&(p==c.length-1?c.pop():bt.call(c,p,1),--this.size,!0)},Qt=function(d){var c=this.__data__,p=et(c,d);return p<0?void 0:c[p][1]},kt=function(d){return et(this.__data__,d)>-1},an=function(d,c){var p=this.__data__,g=et(p,d);return g<0?(++this.size,p.push([d,c])):p[g][1]=c,this};function Ce(d){var c=-1,p=d==null?0:d.length;for(this.clear();++c<p;){var g=d[c];this.set(g[0],g[1])}}Ce.prototype.clear=lt,Ce.prototype.delete=Ot,Ce.prototype.get=Qt,Ce.prototype.has=kt,Ce.prototype.set=an;var Ye=Ce,me=function(){this.__data__=new Ye,this.size=0},Ve=function(d){var c=this.__data__,p=c.delete(d);return this.size=c.size,p},ke=function(d){return this.__data__.get(d)},Ze=function(d){return this.__data__.has(d)},rt=o(31),zt=rt.a.Symbol,Fn=Object.prototype,ot=Fn.hasOwnProperty,Bt=Fn.toString,Sn=zt?zt.toStringTag:void 0,It=function(d){var c=ot.call(d,Sn),p=d[Sn];try{d[Sn]=void 0;var g=!0}catch{}var w=Bt.call(d);return g&&(c?d[Sn]=p:delete d[Sn]),w},qt=Object.prototype.toString,Xt=function(d){return qt.call(d)},xn=zt?zt.toStringTag:void 0,Br=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":xn&&xn in Object(d)?It(d):Xt(d)},ro=function(d){var c=typeof d;return d!=null&&(c=="object"||c=="function")},Oa,hi=function(d){if(!ro(d))return!1;var c=Br(d);return c=="[object Function]"||c=="[object GeneratorFunction]"||c=="[object AsyncFunction]"||c=="[object Proxy]"},Wa=rt.a["__core-js_shared__"],wa=(Oa=/[^.]+$/.exec(Wa&&Wa.keys&&Wa.keys.IE_PROTO||""))?"Symbol(src)_1."+Oa:"",Bf=function(d){return!!wa&&wa in d},Zl=Function.prototype.toString,Hi=function(d){if(d!=null){try{return Zl.call(d)}catch{}try{return d+""}catch{}}return""},dl=/^\[object .+?Constructor\]$/,On=Function.prototype,$c=Object.prototype,St=On.toString,on=$c.hasOwnProperty,Un=RegExp("^"+St.call(on).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=function(d){return!(!ro(d)||Bf(d))&&(hi(d)?Un:dl).test(Hi(d))},Zi=function(d,c){return d==null?void 0:d[c]},si=function(d,c){var p=Zi(d,c);return hr(p)?p:void 0},Ko=si(rt.a,"Map"),Go=si(Object,"create"),pi=function(){this.__data__=Go?Go(null):{},this.size=0},_t=function(d){var c=this.has(d)&&delete this.__data__[d];return this.size-=c?1:0,c},fn=Object.prototype.hasOwnProperty,Vn=function(d){var c=this.__data__;if(Go){var p=c[d];return p==="__lodash_hash_undefined__"?void 0:p}return fn.call(c,d)?c[d]:void 0},Or=Object.prototype.hasOwnProperty,Di=function(d){var c=this.__data__;return Go?c[d]!==void 0:Or.call(c,d)},hs=function(d,c){var p=this.__data__;return this.size+=this.has(d)?0:1,p[d]=Go&&c===void 0?"__lodash_hash_undefined__":c,this};function Fu(d){var c=-1,p=d==null?0:d.length;for(this.clear();++c<p;){var g=d[c];this.set(g[0],g[1])}}Fu.prototype.clear=pi,Fu.prototype.delete=_t,Fu.prototype.get=Vn,Fu.prototype.has=Di,Fu.prototype.set=hs;var Lm=Fu,Xl=function(){this.size=0,this.__data__={hash:new Lm,map:new(Ko||Ye),string:new Lm}},Dp=function(d){var c=typeof d;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?d!=="__proto__":d===null},Fd=function(d,c){var p=d.__data__;return Dp(c)?p[typeof c=="string"?"string":"hash"]:p.map},jp=function(d){var c=Fd(this,d).delete(d);return this.size-=c?1:0,c},Lp=function(d){return Fd(this,d).get(d)},z0=function(d){return Fd(this,d).has(d)},Bm=function(d,c){var p=Fd(this,d),g=p.size;return p.set(d,c),this.size+=p.size==g?0:1,this};function Gr(d){var c=-1,p=d==null?0:d.length;for(this.clear();++c<p;){var g=d[c];this.set(g[0],g[1])}}Gr.prototype.clear=Xl,Gr.prototype.delete=jp,Gr.prototype.get=Lp,Gr.prototype.has=z0,Gr.prototype.set=Bm;var Kr=Gr,Vm=function(d,c){var p=this.__data__;if(p instanceof Ye){var g=p.__data__;if(!Ko||g.length<199)return g.push([d,c]),this.size=++p.size,this;p=this.__data__=new Kr(g)}return p.set(d,c),this.size=p.size,this};function Ac(d){var c=this.__data__=new Ye(d);this.size=c.size}Ac.prototype.clear=me,Ac.prototype.delete=Ve,Ac.prototype.get=ke,Ac.prototype.has=Ze,Ac.prototype.set=Vm;var ql=Ac,Bp=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},Fm=function(d){return this.__data__.has(d)};function Wo(d){var c=-1,p=d==null?0:d.length;for(this.__data__=new Kr;++c<p;)this.add(d[c])}Wo.prototype.add=Wo.prototype.push=Bp,Wo.prototype.has=Fm;var Vp=Wo,Vf=function(d,c){for(var p=-1,g=d==null?0:d.length;++p<g;)if(c(d[p],p,d))return!0;return!1},Fp=function(d,c){return d.has(c)},zd=function(d,c,p,g,w,_){var x=1&p,M=d.length,D=c.length;if(M!=D&&!(x&&D>M))return!1;var H=_.get(d),te=_.get(c);if(H&&te)return H==c&&te==d;var de=-1,we=!0,je=2&p?new Vp:void 0;for(_.set(d,c),_.set(c,d);++de<M;){var Ge=d[de],nt=c[de];if(g)var ft=x?g(nt,Ge,de,c,d,_):g(Ge,nt,de,d,c,_);if(ft!==void 0){if(ft)continue;we=!1;break}if(je){if(!Vf(c,function(dt,vt){if(!Fp(je,vt)&&(Ge===dt||w(Ge,dt,p,g,_)))return je.push(vt)})){we=!1;break}}else if(Ge!==nt&&!w(Ge,nt,p,g,_)){we=!1;break}}return _.delete(d),_.delete(c),we},ji=rt.a.Uint8Array,zp=function(d){var c=-1,p=Array(d.size);return d.forEach(function(g,w){p[++c]=[w,g]}),p},zm=function(d){var c=-1,p=Array(d.size);return d.forEach(function(g){p[++c]=g}),p},Qp=zt?zt.prototype:void 0,Qd=Qp?Qp.valueOf:void 0,Mc=function(d,c,p,g,w,_,x){switch(p){case"[object DataView]":if(d.byteLength!=c.byteLength||d.byteOffset!=c.byteOffset)return!1;d=d.buffer,c=c.buffer;case"[object ArrayBuffer]":return!(d.byteLength!=c.byteLength||!_(new ji(d),new ji(c)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ke(+d,+c);case"[object Error]":return d.name==c.name&&d.message==c.message;case"[object RegExp]":case"[object String]":return d==c+"";case"[object Map]":var M=zp;case"[object Set]":var D=1&g;if(M||(M=zm),d.size!=c.size&&!D)return!1;var H=x.get(d);if(H)return H==c;g|=2,x.set(d,c);var te=zd(M(d),M(c),g,w,_,x);return x.delete(d),te;case"[object Symbol]":if(Qd)return Qd.call(d)==Qd.call(c)}return!1},hl=function(d,c){for(var p=-1,g=c.length,w=d.length;++p<g;)d[w+p]=c[p];return d},fo=Array.isArray,Qm=function(d,c,p){var g=c(d);return fo(d)?g:hl(g,p(d))},Sa=function(d,c){for(var p=-1,g=d==null?0:d.length,w=0,_=[];++p<g;){var x=d[p];c(x,p,d)&&(_[w++]=x)}return _},Wm=function(){return[]},Ym=Object.prototype.propertyIsEnumerable,la=Object.getOwnPropertySymbols,xa=la?function(d){return d==null?[]:(d=Object(d),Sa(la(d),function(c){return Ym.call(d,c)}))}:Wm,Wp=function(d,c){for(var p=-1,g=Array(d);++p<d;)g[p]=c(p);return g},Vr=function(d){return d!=null&&typeof d=="object"},gi=function(d){return Vr(d)&&Br(d)=="[object Arguments]"},Wd=Object.prototype,Um=Wd.hasOwnProperty,Yp=Wd.propertyIsEnumerable,Yd=gi(function(){return arguments}())?gi:function(d){return Vr(d)&&Um.call(d,"callee")&&!Yp.call(d,"callee")},pl=Yd,Kl=o(48),Rc=/^(?:0|[1-9]\d*)$/,ka=function(d,c){var p=typeof d;return!!(c=c==null?9007199254740991:c)&&(p=="number"||p!="symbol"&&Rc.test(d))&&d>-1&&d%1==0&&d<c},Gl=function(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991},Ir={};Ir["[object Float32Array]"]=Ir["[object Float64Array]"]=Ir["[object Int8Array]"]=Ir["[object Int16Array]"]=Ir["[object Int32Array]"]=Ir["[object Uint8Array]"]=Ir["[object Uint8ClampedArray]"]=Ir["[object Uint16Array]"]=Ir["[object Uint32Array]"]=!0,Ir["[object Arguments]"]=Ir["[object Array]"]=Ir["[object ArrayBuffer]"]=Ir["[object Boolean]"]=Ir["[object DataView]"]=Ir["[object Date]"]=Ir["[object Error]"]=Ir["[object Function]"]=Ir["[object Map]"]=Ir["[object Number]"]=Ir["[object Object]"]=Ir["[object RegExp]"]=Ir["[object Set]"]=Ir["[object String]"]=Ir["[object WeakMap]"]=!1;var Ca=function(d){return Vr(d)&&Gl(d.length)&&!!Ir[Br(d)]},gl=function(d){return function(c){return d(c)}},xi=o(49),Ud=xi.a&&xi.a.isTypedArray,Ff=Ud?gl(Ud):Ca,Up=Object.prototype.hasOwnProperty,Io=function(d,c){var p=fo(d),g=!p&&pl(d),w=!p&&!g&&Object(Kl.a)(d),_=!p&&!g&&!w&&Ff(d),x=p||g||w||_,M=x?Wp(d.length,String):[],D=M.length;for(var H in d)!c&&!Up.call(d,H)||x&&(H=="length"||w&&(H=="offset"||H=="parent")||_&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||ka(H,D))||M.push(H);return M},Hd=Object.prototype,Jl=function(d){var c=d&&d.constructor;return d===(typeof c=="function"&&c.prototype||Hd)},ps=function(d,c){return function(p){return d(c(p))}},Hp=ps(Object.keys,Object),Q0=Object.prototype.hasOwnProperty,Zp=function(d){if(!Jl(d))return Hp(d);var c=[];for(var p in Object(d))Q0.call(d,p)&&p!="constructor"&&c.push(p);return c},li=function(d){return d!=null&&Gl(d.length)&&!hi(d)},Nc=function(d){return li(d)?Io(d):Zp(d)},ml=function(d){return Qm(d,Nc,xa)},ua=Object.prototype.hasOwnProperty,Xp=function(d,c,p,g,w,_){var x=1&p,M=ml(d),D=M.length;if(D!=ml(c).length&&!x)return!1;for(var H=D;H--;){var te=M[H];if(!(x?te in c:ua.call(c,te)))return!1}var de=_.get(d),we=_.get(c);if(de&&we)return de==c&&we==d;var je=!0;_.set(d,c),_.set(c,d);for(var Ge=x;++H<D;){var nt=d[te=M[H]],ft=c[te];if(g)var dt=x?g(ft,nt,te,c,d,_):g(nt,ft,te,d,c,_);if(!(dt===void 0?nt===ft||w(nt,ft,p,g,_):dt)){je=!1;break}Ge||(Ge=te=="constructor")}if(je&&!Ge){var vt=d.constructor,Nt=c.constructor;vt==Nt||!("constructor"in d)||!("constructor"in c)||typeof vt=="function"&&vt instanceof vt&&typeof Nt=="function"&&Nt instanceof Nt||(je=!1)}return _.delete(d),_.delete(c),je},Ya=si(rt.a,"DataView"),zu=si(rt.a,"Promise"),Zd=si(rt.a,"Set"),vl=si(rt.a,"WeakMap"),Ua="[object Map]",Ea="[object Promise]",gs="[object Set]",yl="[object WeakMap]",mt="[object DataView]",Mt=Hi(Ya),Dt=Hi(Ko),un=Hi(zu),lr=Hi(Zd),$r=Hi(vl),vo=Br;(Ya&&vo(new Ya(new ArrayBuffer(1)))!=mt||Ko&&vo(new Ko)!=Ua||zu&&vo(zu.resolve())!=Ea||Zd&&vo(new Zd)!=gs||vl&&vo(new vl)!=yl)&&(vo=function(d){var c=Br(d),p=c=="[object Object]"?d.constructor:void 0,g=p?Hi(p):"";if(g)switch(g){case Mt:return mt;case Dt:return Ua;case un:return Ea;case lr:return gs;case $r:return yl}return c});var Q=vo,Y="[object Arguments]",ae="[object Array]",Te="[object Object]",We=Object.prototype.hasOwnProperty,st=function(d,c,p,g,w,_){var x=fo(d),M=fo(c),D=x?ae:Q(d),H=M?ae:Q(c),te=(D=D==Y?Te:D)==Te,de=(H=H==Y?Te:H)==Te,we=D==H;if(we&&Object(Kl.a)(d)){if(!Object(Kl.a)(c))return!1;x=!0,te=!1}if(we&&!te)return _||(_=new ql),x||Ff(d)?zd(d,c,p,g,w,_):Mc(d,c,D,p,g,w,_);if(!(1&p)){var je=te&&We.call(d,"__wrapped__"),Ge=de&&We.call(c,"__wrapped__");if(je||Ge){var nt=je?d.value():d,ft=Ge?c.value():c;return _||(_=new ql),w(nt,ft,p,g,_)}}return!!we&&(_||(_=new ql),Xp(d,c,p,g,w,_))},wt=function d(c,p,g,w,_){return c===p||(c==null||p==null||!Vr(c)&&!Vr(p)?c!=c&&p!=p:st(c,p,g,w,d,_))},Ut=function(d,c,p,g){var w=p.length,_=w,x=!g;if(d==null)return!_;for(d=Object(d);w--;){var M=p[w];if(x&&M[2]?M[1]!==d[M[0]]:!(M[0]in d))return!1}for(;++w<_;){var D=(M=p[w])[0],H=d[D],te=M[1];if(x&&M[2]){if(H===void 0&&!(D in d))return!1}else{var de=new ql;if(g)var we=g(H,te,D,d,c,de);if(!(we===void 0?wt(te,H,3,g,de):we))return!1}}return!0},yn=function(d){return d==d&&!ro(d)},wr=function(d){for(var c=Nc(d),p=c.length;p--;){var g=c[p],w=d[g];c[p]=[g,w,yn(w)]}return c},dn=function(d,c){return function(p){return p!=null&&p[d]===c&&(c!==void 0||d in Object(p))}},ao=function(d){var c=wr(d);return c.length==1&&c[0][2]?dn(c[0][0],c[0][1]):function(p){return p===d||Ut(p,d,c)}},cr=function(d){return typeof d=="symbol"||Vr(d)&&Br(d)=="[object Symbol]"},Yr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ms=/^\w*$/,Eo=function(d,c){if(fo(d))return!1;var p=typeof d;return!(p!="number"&&p!="symbol"&&p!="boolean"&&d!=null&&!cr(d))||ms.test(d)||!Yr.test(d)||c!=null&&d in Object(c)};function Ta(d,c){if(typeof d!="function"||c!=null&&typeof c!="function")throw new TypeError("Expected a function");var p=function(){var g=arguments,w=c?c.apply(this,g):g[0],_=p.cache;if(_.has(w))return _.get(w);var x=d.apply(this,g);return p.cache=_.set(w,x)||_,x};return p.cache=new(Ta.Cache||Kr),p}Ta.Cache=Kr;var eu=Ta,tu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/\\(\\)?/g,qp=function(d){var c=eu(d,function(g){return p.size===500&&p.clear(),g}),p=c.cache;return c}(function(d){var c=[];return d.charCodeAt(0)===46&&c.push(""),d.replace(tu,function(p,g,w,_){c.push(w?_.replace(zf,"$1"):g||p)}),c}),Qu=zt?zt.prototype:void 0,Xd=Qu?Qu.toString:void 0,ca=function d(c){if(typeof c=="string")return c;if(fo(c))return Je(c,d)+"";if(cr(c))return Xd?Xd.call(c):"";var p=c+"";return p=="0"&&1/c==-1/0?"-0":p},Qf=function(d){return d==null?"":ca(d)},Ic=function(d,c){return fo(d)?d:Eo(d,c)?[d]:qp(Qf(d))},Wu=function(d){if(typeof d=="string"||cr(d))return d;var c=d+"";return c=="0"&&1/d==-1/0?"-0":c},Yu=function(d,c){for(var p=0,g=(c=Ic(c,d)).length;d!=null&&p<g;)d=d[Wu(c[p++])];return p&&p==g?d:void 0},Kp=function(d,c,p){var g=d==null?void 0:Yu(d,c);return g===void 0?p:g},FE=function(d,c){return d!=null&&c in Object(d)},zE=function(d,c,p){for(var g=-1,w=(c=Ic(c,d)).length,_=!1;++g<w;){var x=Wu(c[g]);if(!(_=d!=null&&p(d,x)))break;d=d[x]}return _||++g!=w?_:!!(w=d==null?0:d.length)&&Gl(w)&&ka(x,w)&&(fo(d)||pl(d))},lw=function(d,c){return d!=null&&zE(d,c,FE)},Hm=function(d,c){return Eo(d)&&yn(c)?dn(Wu(d),c):function(p){var g=Kp(p,d);return g===void 0&&g===c?lw(p,d):wt(c,g,3)}},qd=function(d){return d},W0=function(d){return function(c){return c==null?void 0:c[d]}},QE=function(d){return function(c){return Yu(c,d)}},uw=function(d){return Eo(d)?W0(Wu(d)):QE(d)},WE=function(d){return typeof d=="function"?d:d==null?qd:typeof d=="object"?fo(d)?Hm(d[0],d[1]):ao(d):uw(d)},cw=function(d){return function(c,p,g){for(var w=-1,_=Object(c),x=g(c),M=x.length;M--;){var D=x[d?M:++w];if(p(_[D],D,_)===!1)break}return c}}(),ki=function(d,c){return function(p,g){if(p==null)return p;if(!li(p))return d(p,g);for(var w=p.length,_=c?w:-1,x=Object(p);(c?_--:++_<w)&&g(x[_],_,x)!==!1;);return p}}(function(d,c){return d&&cw(d,c,Nc)}),fa=function(d,c){var p=-1,g=li(d)?Array(d.length):[];return ki(d,function(w,_,x){g[++p]=c(w,_,x)}),g},Zm=function(d,c){return(fo(d)?Je:fa)(d,WE(c))};Object(a.n)({isolateGlobalState:!0});var Xm=function(){try{var d=si(Object,"defineProperty");return d({},"",{}),d}catch{}}(),qm=function(d,c,p){c=="__proto__"&&Xm?Xm(d,c,{configurable:!0,enumerable:!0,value:p,writable:!0}):d[c]=p},YE=Object.prototype.hasOwnProperty,Kd=function(d,c,p){var g=d[c];YE.call(d,c)&&Ke(g,p)&&(p!==void 0||c in d)||qm(d,c,p)},nu=function(d,c,p,g){var w=!p;p||(p={});for(var _=-1,x=c.length;++_<x;){var M=c[_],D=g?g(p[M],d[M],M,p,d):void 0;D===void 0&&(D=d[M]),w?qm(p,M,D):Kd(p,M,D)}return p},Y0=function(d,c,p){switch(p.length){case 0:return d.call(c);case 1:return d.call(c,p[0]);case 2:return d.call(c,p[0],p[1]);case 3:return d.call(c,p[0],p[1],p[2])}return d.apply(c,p)},Wf=Math.max,Gd=function(d,c,p){return c=Wf(c===void 0?d.length-1:c,0),function(){for(var g=arguments,w=-1,_=Wf(g.length-c,0),x=Array(_);++w<_;)x[w]=g[c+w];w=-1;for(var M=Array(c+1);++w<c;)M[w]=g[w];return M[c]=p(x),Y0(d,this,M)}},Gp=function(d){return function(){return d}},Km=Xm?function(d,c){return Xm(d,"toString",{configurable:!0,enumerable:!1,value:Gp(c),writable:!0})}:qd,Jd=Date.now,UE=function(d){var c=0,p=0;return function(){var g=Jd(),w=16-(g-p);if(p=g,w>0){if(++c>=800)return arguments[0]}else c=0;return d.apply(void 0,arguments)}},fw=UE(Km),HE=function(d,c){return fw(Gd(d,c,qd),d+"")},ZE=function(d,c,p){if(!ro(p))return!1;var g=typeof c;return!!(g=="number"?li(p)&&ka(c,p.length):g=="string"&&c in p)&&Ke(p[c],d)},dw=function(d){return HE(function(c,p){var g=-1,w=p.length,_=w>1?p[w-1]:void 0,x=w>2?p[2]:void 0;for(_=d.length>3&&typeof _=="function"?(w--,_):void 0,x&&ZE(p[0],p[1],x)&&(_=w<3?void 0:_,w=1),c=Object(c);++g<w;){var M=p[g];M&&d(c,M,g,_)}return c})},Gm=Object.prototype.hasOwnProperty,Ci=dw(function(d,c){if(Jl(c)||li(c))nu(c,Nc(c),d);else for(var p in c)Gm.call(c,p)&&Kd(d,p,c[p])}),hw=function(d,c,p,g){if(!ro(d))return d;for(var w=-1,_=(c=Ic(c,d)).length,x=_-1,M=d;M!=null&&++w<_;){var D=Wu(c[w]),H=p;if(D==="__proto__"||D==="constructor"||D==="prototype")return d;if(w!=x){var te=M[D];(H=g?g(te,D,M):void 0)===void 0&&(H=ro(te)?te:ka(c[w+1])?[]:{})}Kd(M,D,H),M=M[D]}return d},Pe=function(d,c,p){for(var g=-1,w=c.length,_={};++g<w;){var x=c[g],M=Yu(d,x);p(M,x)&&hw(_,Ic(x,d),M)}return _},eh=function(d,c){return Pe(d,c,function(p,g){return lw(d,g)})},Jp=zt?zt.isConcatSpreadable:void 0,Fs=function(d){return fo(d)||pl(d)||!!(Jp&&d&&d[Jp])},Lr=function d(c,p,g,w,_){var x=-1,M=c.length;for(g||(g=Fs),_||(_=[]);++x<M;){var D=c[x];p>0&&g(D)?p>1?d(D,p-1,g,w,_):hl(_,D):w||(_[_.length]=D)}return _},Yf=function(d){return d!=null&&d.length?Lr(d,1):[]},so,ru,Dc,zs,U0,H0,pw,gw,Jm,th,eg,mw,Z0,ou,ev,jc,vs,X0,q0,Uu=function(d){return fw(Gd(d,void 0,Yf),d+"")}(function(d,c){return d==null?{}:eh(d,c)});function To(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function vw(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function yw(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Jo(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var Jr,Li,kr,ui,An,yo,tv={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotation:!1,nodeSelectedOutline:!0,nodeTextEdit:!1,edgeTextEdit:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Hu=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","allowRotation","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],K0=(ru=Jo((so=function(){function d(g){(function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")})(this,d),To(this,"isSilentMode",ru,this),To(this,"stopZoomGraph",Dc,this),To(this,"stopScrollGraph",zs,this),To(this,"stopMoveGraph",U0,this),To(this,"adjustEdge",H0,this),To(this,"adjustEdgeMiddle",pw,this),To(this,"adjustEdgeStartAndEnd",gw,this),To(this,"adjustNodePosition",Jm,this),To(this,"hideAnchors",th,this),To(this,"allowRotation",eg,this),To(this,"hoverOutline",mw,this),To(this,"nodeSelectedOutline",Z0,this),To(this,"edgeSelectedOutline",ou,this),To(this,"nodeTextEdit",ev,this),To(this,"edgeTextEdit",jc,this),To(this,"nodeTextDraggable",vs,this),To(this,"edgeTextDraggable",X0,this),To(this,"autoExpand",q0,this),yw(this,"multipleSelectKey",""),yw(this,"defaultConfig",{}),Ci(this,this.getConfigDetail(g))}var c,p;return c=d,(p=[{key:"updateEditConfig",value:function(g){var w=this.getConfigDetail(g);Ci(this,w)}},{key:"getConfigDetail",value:function(g){var w=g.isSilentMode,_=g.textEdit,x={};if(w===!1&&Ci(x,this.defaultConfig),w===!0&&w!==this.isSilentMode){var M=Uu(tv,Hu);this.defaultConfig={stopZoomGraph:this.stopZoomGraph,stopScrollGraph:this.stopScrollGraph,stopMoveGraph:this.stopMoveGraph,adjustEdge:this.adjustEdge,adjustEdgeMiddle:this.adjustEdgeMiddle,adjustEdgeStartAndEnd:this.adjustEdgeStartAndEnd,adjustNodePosition:this.adjustNodePosition,hideAnchors:this.hideAnchors,allowRotation:this.allowRotation,hoverOutline:this.hoverOutline,nodeSelectedOutline:this.nodeSelectedOutline,edgeSelectedOutline:this.edgeSelectedOutline,nodeTextEdit:this.nodeTextEdit,edgeTextEdit:this.edgeTextEdit,nodeTextDraggable:this.nodeTextDraggable,edgeTextDraggable:this.edgeTextDraggable,autoExpand:this.autoExpand},Ci(x,M)}_===!1&&Ci(x,{nodeTextEdit:!1,edgeTextEdit:!1});var D=Uu(g,Hu);return Ci(x,D)}},{key:"getConfig",value:function(){return Uu(this,Hu)}}])&&vw(c.prototype,p),d}()).prototype,"isSilentMode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dc=Jo(so.prototype,"stopZoomGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zs=Jo(so.prototype,"stopScrollGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),U0=Jo(so.prototype,"stopMoveGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H0=Jo(so.prototype,"adjustEdge",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),pw=Jo(so.prototype,"adjustEdgeMiddle",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gw=Jo(so.prototype,"adjustEdgeStartAndEnd",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jm=Jo(so.prototype,"adjustNodePosition",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),th=Jo(so.prototype,"hideAnchors",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),eg=Jo(so.prototype,"allowRotation",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mw=Jo(so.prototype,"hoverOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Z0=Jo(so.prototype,"nodeSelectedOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ou=Jo(so.prototype,"edgeSelectedOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ev=Jo(so.prototype,"nodeTextEdit",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),jc=Jo(so.prototype,"edgeTextEdit",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),vs=Jo(so.prototype,"nodeTextDraggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X0=Jo(so.prototype,"edgeTextDraggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q0=Jo(so.prototype,"autoExpand",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jo(so.prototype,"updateEditConfig",[a.k],Object.getOwnPropertyDescriptor(so.prototype,"updateEditConfig"),so.prototype),so);o(65),o(66),function(d){d[d.DEFAULT=1]="DEFAULT",d[d.TEXT_EDIT=2]="TEXT_EDIT",d[d.SHOW_MENU=3]="SHOW_MENU",d[d.ALLOW_CONNECT=4]="ALLOW_CONNECT",d[d.NOT_ALLOW_CONNECT=5]="NOT_ALLOW_CONNECT"}(Jr||(Jr={})),function(d){d.KEY="logic-flow",d.NODE_NAME="lf-node",d.EDGE_NAME="lf-edge"}(Li||(Li={})),function(d){d.NODE="node",d.CIRCLE_NODE="circle-node",d.POLYGON_NODE="polygon-node",d.RECT_NODE="rect-node",d.TEXT_NODE="text-node",d.ELLIPSE_NODE="ellipse-node",d.DIAMOND_NODE="diamond-node",d.HTML_NODE="html-node",d.EDGE="edge",d.LINE_EDGE="line-edge",d.POLYLINE_EDGE="polyline-edge",d.BEZIER_EDGE="bezier-edge",d.GRAPH="graph"}(kr||(kr={})),function(d){d.NODE="node",d.EDGE="edge",d.GRAPH="graph"}(ui||(ui={})),function(d){d.ELEMENT_CLICK="element:click",d.NODE_CLICK="node:click",d.NODE_DBCLICK="node:dbclick",d.NODE_DELETE="node:delete",d.NODE_ADD="node:add",d.NODE_GROUP_COPY="node:group-copy-add",d.NODE_DND_ADD="node:dnd-add",d.NODE_DND_DRAG="node:dnd-drag",d.NODE_MOUSEDOWN="node:mousedown",d.NODE_DRAGSTART="node:dragstart",d.NODE_DRAG="node:drag",d.NODE_DROP="node:drop",d.NODE_MOUSEUP="node:mouseup",d.NODE_MOUSEMOVE="node:mousemove",d.NODE_MOUSEENTER="node:mouseenter",d.NODE_MOUSELEAVE="node:mouseleave",d.NODE_CONTEXTMENU="node:contextmenu",d.NODE_ROTATE="node:rotate",d.EDGE_DELETE="edge:delete",d.EDGE_ADD="edge:add",d.EDGE_CLICK="edge:click",d.EDGE_DBCLICK="edge:dbclick",d.EDGE_MOUSEENTER="edge:mouseenter",d.EDGE_MOUSELEAVE="edge:mouseleave",d.EDGE_CONTEXTMENU="edge:contextmenu",d.EDGE_ADJUST="edge:adjust",d.EDGE_EXCHANGE_NODE="edge:exchange-node",d.ANCHOR_DRAGSTART="anchor:dragstart",d.ANCHOR_DRAG="anchor:drag",d.ANCHOR_DROP="anchor:drop",d.ANCHOR_DRAGEND="anchor:dragend",d.ADJUST_POINT_MOUSEDOWN="adjustPoint:mousedown",d.ADJUST_POINT_MOUSEUP="adjustPoint:mouseup",d.ADJUST_POINT_MOUSEMOVE="adjustPoint:mousemove",d.ADJUST_POINT_DRAGSTART="adjustPoint:dragstart",d.ADJUST_POINT_DRAG="adjustPoint:drag",d.ADJUST_POINT_DROP="adjustPoint:drop",d.ADJUST_POINT_DRAGEND="adjustPoint:dragend",d.BLANK_MOUSEDOWN="blank:mousedown",d.BLANK_DRAGSTART="blank:dragstart",d.BLANK_DRAG="blank:drag",d.BLANK_DROP="blank:drop",d.BLANK_MOUSEMOVE="blank:mousemove",d.BLANK_MOUSEUP="blank:mouseup",d.BLANK_CLICK="blank:click",d.BLANK_CONTEXTMENU="blank:contextmenu",d.SELECTION_MOUSEDOWN="selection:mousedown",d.SELECTION_DRAGSTART="selection:dragstart",d.SELECTION_DRAG="selection:drag",d.SELECTION_DROP="selection:drop",d.SELECTION_MOUSEMOVE="selection:mousemove",d.SELECTION_MOUSEUP="selection:mouseup",d.SELECTION_CONTEXTMENU="selection:contextmenu",d.CONNECTION_NOT_ALLOWED="connection:not-allowed",d.HISTORY_CHANGE="history:change",d.TEXT_UPDATE="text:update",d.GRAPH_TRANSFORM="graph:transform",d.GRAPH_RENDERED="graph:rendered"}(An||(An={})),function(d){d.HORIZONTAL="horizontal",d.VERTICAL="vertical"}(yo||(yo={}));var Do,Yo,bw,_w,nv,nh,G0,rh,rv;function oh(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return J0(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return J0(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function J0(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function Zu(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function XE(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function Xu(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Qs(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}(function(d){d[d.DEFAULT=0]="DEFAULT",d[d.INCREASE=1]="INCREASE"})(Do||(Do={}));var Ow={false:[-1/0,-1/0,1/0,1/0],true:[0,0,0,0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},ww=(Yo=function(){function d(g,w){(function(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")})(this,d),Xu(this,"MINI_SCALE_SIZE",.2),Xu(this,"MAX_SCALE_SIZE",16),Zu(this,"SCALE_X",bw,this),Zu(this,"SKEW_Y",_w,this),Zu(this,"SKEW_X",nv,this),Zu(this,"SCALE_Y",nh,this),Zu(this,"TRANSLATE_X",G0,this),Zu(this,"TRANSLATE_Y",rh,this),Zu(this,"ZOOM_SIZE",rv,this),Xu(this,"eventCenter",void 0),Xu(this,"translateLimitMinX",void 0),Xu(this,"translateLimitMinY",void 0),Xu(this,"translateLimitMaxX",void 0),Xu(this,"translateLimitMaxY",void 0),this.eventCenter=g;var _=w.stopMoveGraph,x=_!==void 0&&_;this.updateTranslateLimits(x)}var c,p;return c=d,p=[{key:"setZoomMiniSize",value:function(g){this.MINI_SCALE_SIZE=g}},{key:"setZoomMaxSize",value:function(g){this.MAX_SCALE_SIZE=g}},{key:"HtmlPointToCanvasPoint",value:function(g){var w=oh(g,2),_=w[0],x=w[1];return[(_-this.TRANSLATE_X)/this.SCALE_X,(x-this.TRANSLATE_Y)/this.SCALE_Y]}},{key:"CanvasPointToHtmlPoint",value:function(g){var w=oh(g,2),_=w[0],x=w[1];return[_*this.SCALE_X+this.TRANSLATE_X,x*this.SCALE_Y+this.TRANSLATE_Y]}},{key:"moveCanvasPointByHtml",value:function(g,w,_){var x=oh(g,2),M=x[0],D=x[1];return[M+w/this.SCALE_X,D+_/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(g,w){return[g/this.SCALE_X,w/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var g=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(g,")")}}},{key:"zoom",value:function(){var g=arguments.length>0&&arguments[0]!==void 0&&arguments[0],w=arguments.length>1?arguments[1]:void 0,_=this.SCALE_X,x=this.SCALE_Y;return g===!0?(_+=this.ZOOM_SIZE,x+=this.ZOOM_SIZE):g===!1?(_-=this.ZOOM_SIZE,x-=this.ZOOM_SIZE):typeof g=="number"&&(_=g,x=g),_<this.MINI_SCALE_SIZE||_>this.MAX_SCALE_SIZE||(w&&(this.TRANSLATE_X-=(_-this.SCALE_X)*w[0],this.TRANSLATE_Y-=(x-this.SCALE_Y)*w[1]),this.SCALE_X=_,this.SCALE_Y=x,this.emitGraphTransform("zoom")),"".concat(100*this.SCALE_X,"%")}},{key:"emitGraphTransform",value:function(g){this.eventCenter.emit(An.GRAPH_TRANSFORM,{type:g,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})}},{key:"resetZoom",value:function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")}},{key:"translate",value:function(g,w){this.TRANSLATE_X+g<=this.translateLimitMaxX&&this.TRANSLATE_X+g>=this.translateLimitMinX&&(this.TRANSLATE_X+=g),this.TRANSLATE_Y+w<=this.translateLimitMaxY&&this.TRANSLATE_Y+w>=this.translateLimitMinY&&(this.TRANSLATE_Y+=w),this.emitGraphTransform("translate")}},{key:"focusOn",value:function(g,w,_,x){var M=oh(this.CanvasPointToHtmlPoint([g,w]),2),D=_/2-M[0],H=x/2-M[1];this.TRANSLATE_X+=D,this.TRANSLATE_Y+=H,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(g){var w=oh(Array.isArray(g)&&g.length===4?g:Ow[g.toString()],4);this.translateLimitMinX=w[0],this.translateLimitMinY=w[1],this.translateLimitMaxX=w[2],this.translateLimitMaxY=w[3]}}],p&&XE(c.prototype,p),d}(),bw=Qs(Yo.prototype,"SCALE_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),_w=Qs(Yo.prototype,"SKEW_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),nv=Qs(Yo.prototype,"SKEW_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),nh=Qs(Yo.prototype,"SCALE_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),G0=Qs(Yo.prototype,"TRANSLATE_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),rh=Qs(Yo.prototype,"TRANSLATE_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),rv=Qs(Yo.prototype,"ZOOM_SIZE",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),Qs(Yo.prototype,"zoom",[a.k],Object.getOwnPropertyDescriptor(Yo.prototype,"zoom"),Yo.prototype),Qs(Yo.prototype,"resetZoom",[a.k],Object.getOwnPropertyDescriptor(Yo.prototype,"resetZoom"),Yo.prototype),Qs(Yo.prototype,"translate",[a.k],Object.getOwnPropertyDescriptor(Yo.prototype,"translate"),Yo.prototype),Qs(Yo.prototype,"focusOn",[a.k],Object.getOwnPropertyDescriptor(Yo.prototype,"focusOn"),Yo.prototype),Yo),ov=function(d,c){for(var p=-1,g=d==null?0:d.length;++p<g&&c(d[p],p,d)!==!1;);return d},Sw=function(d,c){return d&&nu(c,Nc(c),d)},xw=function(d){var c=[];if(d!=null)for(var p in Object(d))c.push(p);return c},kw=Object.prototype.hasOwnProperty,eb=function(d){if(!ro(d))return xw(d);var c=Jl(d),p=[];for(var g in d)(g!="constructor"||!c&&kw.call(d,g))&&p.push(g);return p},ih=function(d){return li(d)?Io(d,!0):eb(d)},tb=function(d,c){return d&&nu(c,ih(c),d)},iv=o(107),Cr=function(d,c){var p=-1,g=d.length;for(c||(c=Array(g));++p<g;)c[p]=d[p];return c},qE=function(d,c){return nu(d,xa(d),c)},nb=ps(Object.getPrototypeOf,Object),ah=Object.getOwnPropertySymbols?function(d){for(var c=[];d;)hl(c,xa(d)),d=nb(d);return c}:Wm,Cw=function(d,c){return nu(d,ah(d),c)},KE=function(d){return Qm(d,ih,ah)},GE=Object.prototype.hasOwnProperty,Ws=function(d){var c=d.length,p=new d.constructor(c);return c&&typeof d[0]=="string"&&GE.call(d,"index")&&(p.index=d.index,p.input=d.input),p},rb=function(d){var c=new d.constructor(d.byteLength);return new ji(c).set(new ji(d)),c},av=function(d,c){var p=c?rb(d.buffer):d.buffer;return new d.constructor(p,d.byteOffset,d.byteLength)},ob=/\w*$/,Ew=function(d){var c=new d.constructor(d.source,ob.exec(d));return c.lastIndex=d.lastIndex,c},ib=zt?zt.prototype:void 0,Ha=ib?ib.valueOf:void 0,Lc=function(d){return Ha?Object(Ha.call(d)):{}},sv=function(d,c){var p=c?rb(d.buffer):d.buffer;return new d.constructor(p,d.byteOffset,d.length)},Tw=function(d,c,p){var g=d.constructor;switch(c){case"[object ArrayBuffer]":return rb(d);case"[object Boolean]":case"[object Date]":return new g(+d);case"[object DataView]":return av(d,p);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return sv(d,p);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(d);case"[object RegExp]":return Ew(d);case"[object Symbol]":return Lc(d)}},tg=Object.create,Pw=function(){function d(){}return function(c){if(!ro(c))return{};if(tg)return tg(c);d.prototype=c;var p=new d;return d.prototype=void 0,p}}(),lv=function(d){return typeof d.constructor!="function"||Jl(d)?{}:Pw(nb(d))},$w=function(d){return Vr(d)&&Q(d)=="[object Map]"},uv=xi.a&&xi.a.isMap,ab=uv?gl(uv):$w,Bc=function(d){return Vr(d)&&Q(d)=="[object Set]"},Aw=xi.a&&xi.a.isSet,Vc=Aw?gl(Aw):Bc,sb="[object Arguments]",lb="[object Function]",ub="[object Object]",bo={};bo[sb]=bo["[object Array]"]=bo["[object ArrayBuffer]"]=bo["[object DataView]"]=bo["[object Boolean]"]=bo["[object Date]"]=bo["[object Float32Array]"]=bo["[object Float64Array]"]=bo["[object Int8Array]"]=bo["[object Int16Array]"]=bo["[object Int32Array]"]=bo["[object Map]"]=bo["[object Number]"]=bo["[object Object]"]=bo["[object RegExp]"]=bo["[object Set]"]=bo["[object String]"]=bo["[object Symbol]"]=bo["[object Uint8Array]"]=bo["[object Uint8ClampedArray]"]=bo["[object Uint16Array]"]=bo["[object Uint32Array]"]=!0,bo["[object Error]"]=bo[lb]=bo["[object WeakMap]"]=!1;var Mw=function d(c,p,g,w,_,x){var M,D=1&p,H=2&p,te=4&p;if(g&&(M=_?g(c,w,_,x):g(c)),M!==void 0)return M;if(!ro(c))return c;var de=fo(c);if(de){if(M=Ws(c),!D)return Cr(c,M)}else{var we=Q(c),je=we==lb||we=="[object GeneratorFunction]";if(Object(Kl.a)(c))return Object(iv.a)(c,D);if(we==ub||we==sb||je&&!_){if(M=H||je?{}:lv(c),!D)return H?Cw(c,tb(M,c)):qE(c,Sw(M,c))}else{if(!bo[we])return _?c:{};M=Tw(c,we,D)}}x||(x=new ql);var Ge=x.get(c);if(Ge)return Ge;x.set(c,M),Vc(c)?c.forEach(function(ft){M.add(d(ft,p,g,ft,c,x))}):ab(c)&&c.forEach(function(ft,dt){M.set(dt,d(ft,p,g,dt,c,x))});var nt=de?void 0:(te?H?KE:ml:H?ih:Nc)(c);return ov(nt||c,function(ft,dt){nt&&(ft=c[dt=ft]),Kd(M,dt,d(ft,p,g,dt,c,x))}),M},Po=function(d){return Mw(d,5)},cv=function(d,c,p){(p!==void 0&&!Ke(d[c],p)||p===void 0&&!(c in d))&&qm(d,c,p)},Za=function(d){return Vr(d)&&li(d)},iu=Function.prototype,fv=Object.prototype,Uf=iu.toString,Rw=fv.hasOwnProperty,Nw=Uf.call(Object),Iw=function(d){if(!Vr(d)||Br(d)!="[object Object]")return!1;var c=nb(d);if(c===null)return!0;var p=Rw.call(c,"constructor")&&c.constructor;return typeof p=="function"&&p instanceof p&&Uf.call(p)==Nw},Fc=function(d,c){if((c!=="constructor"||typeof d[c]!="function")&&c!="__proto__")return d[c]},ng=function(d){return nu(d,ih(d))},Dw=function(d,c,p,g,w,_,x){var M=Fc(d,p),D=Fc(c,p),H=x.get(D);if(H)cv(d,p,H);else{var te=_?_(M,D,p+"",d,c,x):void 0,de=te===void 0;if(de){var we=fo(D),je=!we&&Object(Kl.a)(D),Ge=!we&&!je&&Ff(D);te=D,we||je||Ge?fo(M)?te=M:Za(M)?te=Cr(M):je?(de=!1,te=Object(iv.a)(D,!0)):Ge?(de=!1,te=sv(D,!0)):te=[]:Iw(D)||pl(D)?(te=M,pl(M)?te=ng(M):ro(M)&&!hi(M)||(te=lv(D))):de=!1}de&&(x.set(D,te),w(te,D,g,_,x),x.delete(D)),cv(d,p,te)}},jw=function d(c,p,g,w,_){c!==p&&cw(p,function(x,M){if(_||(_=new ql),ro(x))Dw(c,p,M,g,d,w,_);else{var D=w?w(Fc(c,M),x,M+"",c,p,_):void 0;D===void 0&&(D=x),cv(c,M,D)}},ih)},rg=dw(function(d,c,p){jw(d,c,p)}),Lw={baseNode:{fill:"#FFFFFF",stroke:"#000000",strokeWidth:2},baseEdge:{stroke:"#000000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000000",fill:"#FFFFFF",r:4,hover:{fill:"#949494",fillOpacity:.5,stroke:"#949494",r:10}},nodeText:{color:"#000000",overflowMode:"default",lineHeight:1.2,fontSize:12},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#FFFFFF"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",stroke:"#949494",fillOpacity:1}},arrow:{offset:10,verticalLength:5},anchorLine:{stroke:"#000000",strokeWidth:2,strokeDasharray:"3,2"},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#FFFFFF",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10 10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5}},og=function(d){var c=Po(Lw);return d&&(c=rg(c,d)),c};o(82),o(166);function cb(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}var dv=function(){function d(){var g,w,_;(function(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")})(this,d),_={},(w="_events")in(g=this)?Object.defineProperty(g,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[w]=_}var c,p;return c=d,(p=[{key:"on",value:function(g,w,_){var x=this;return g==null||g.split(",").forEach(function(M){M=M.trim(),x._events[M]||(x._events[M]=[]),x._events[M].push({callback:w,once:!!_})}),this}},{key:"once",value:function(g,w){var _=this;g==null||g.split(",").forEach(function(x){return x=x.trim(),_.on(x,w,!0)})}},{key:"emit",value:function(g,w){var _=this;g==null||g.split(",").forEach(function(x){var M=_._events[x]||[],D=_._events["*"]||[],H=function(te){for(var de=te.length,we=0;we<de;we++)if(te[we]){var je=te[we],Ge=je.callback;je.once&&(te.splice(we,1),te.length===0&&delete _._events[x],de--,we--),Ge.apply(_,[w])}};H(M),H(D)})}},{key:"off",value:function(g,w){var _=this;return g||(this._events={}),g.split(",").forEach(function(x){if(w){for(var M=_._events[x]||[],D=M.length,H=0;H<D;H++)M[H].callback===w&&(M.splice(H,1),D--,H--);M.length===0&&delete _._events[x]}else delete _._events[x]}),this}},{key:"getEvents",value:function(){return this._events}}])&&cb(c.prototype,p),d}();function au(d,c){return c*Math.round(d/c)||d}function sh(d,c){return d%c}function hv(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return pv(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return pv(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function pv(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}var fb,gv=function(d,c,p){var g=hv(d,2),w=g[0],_=g[1],x=hv(c,2),M=x[0],D=x[1],H=hv(p,2),te=H[0],de=H[1];return w>M&&w<te&&_>D&&_<de},su=function(d,c){var p=!1;switch(c.multipleSelectKey){case"meta":p=d.metaKey;break;case"alt":p=d.altKey;break;case"shift":p=d.shiftKey;break;case"ctrl":p=d.ctrlKey;break;default:p=!1}return p},Bw=(o(167),o(126),o(83),o(29),o(12),o(13),o(14),o(47),new Uint8Array(16));function Vw(){if(!fb&&!(fb=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fb(Bw)}for(var JE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Fw=function(d){return typeof d=="string"&&JE.test(d)},$o=[],ig=0;ig<256;++ig)$o.push((ig+256).toString(16).substr(1));var db=function(d){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,p=($o[d[c+0]]+$o[d[c+1]]+$o[d[c+2]]+$o[d[c+3]]+"-"+$o[d[c+4]]+$o[d[c+5]]+"-"+$o[d[c+6]]+$o[d[c+7]]+"-"+$o[d[c+8]]+$o[d[c+9]]+"-"+$o[d[c+10]]+$o[d[c+11]]+$o[d[c+12]]+$o[d[c+13]]+$o[d[c+14]]+$o[d[c+15]]).toLowerCase();if(!Fw(p))throw TypeError("Stringified UUID is invalid");return p},ag=function(d,c,p){var g=(d=d||{}).random||(d.rng||Vw)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,c){p=p||0;for(var w=0;w<16;++w)c[p+w]=g[w];return c}return db(g)},bl=function(){return ag()},lh=function(d){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",p=d.nodes.reduce(function(g,w){return g[w.id]=c+ag(),w.id=g[w.id],g},{});return d.edges.forEach(function(g){g.id=c+ag(),g.sourceNodeId=p[g.sourceNodeId],g.targetNodeId=p[g.targetNodeId]}),d},Wn=(o(105),o(127),function(d,c,p){var g=d.x,w=d.y;return(g-c.x)*(g-p.x)<=0&&(w-c.y)*(w-p.y)<=0});function uh(d){return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},uh(d)}function mv(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function zc(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?mv(Object(p),!0).forEach(function(g){hb(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):mv(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function hb(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var At,Xi,pb,gb,zw,lu,da,vv,yv,Qw,ch,mb,vb,yb,bb,Ww,bv,_b,fh,_v,Ob,Ov=function(d){return d.anchors},Hf=function(d,c){for(var p,g=c.nodes,w=g.length-1;w>=0;w--){var _=g[w];if(Uw(d,_)){var x=_.getTargetAnchor(d);if(x){var M={node:_,anchorIndex:x.index,anchor:x.anchor};p&&!Yw(_,p.node,c)||(p=M)}}}return p},Yw=function(d,c,p){return d.zIndex>c.zIndex||p.nodesMap[d.id].index>p.nodesMap[c.id].index},mi=function(d,c,p,g){return Math.hypot(d-p,c-g)},Xa=function(d,c){var p=!1,g=ys(c);return d.x>=g.minX-0&&d.x<=g.maxX+0&&d.y>=g.minY-0&&d.y<=g.maxY+0&&(p=!0),p},Uw=function(d,c){var p=!1,g=ys(c);return d.x>=g.minX-5&&d.x<=g.maxX+5&&d.y>=g.minY-5&&d.y<=g.maxY+5&&(p=!0),p},ys=function(d){var c=d.x,p=d.y,g=d.width,w=d.height;return{minX:c-g/2,minY:p-w/2,maxX:c+g/2,maxY:p+w/2,x:c,y:p,width:g,height:w,centerX:c,centerY:p}},Hw=function(d,c,p){var g,w=function(x){var M=x,D=M.x,H=M.y,te=M.width,de=M.height,we=M.radius;return[{x:D-te/2+we,y:H-de/2+we,r:we},{x:D+te/2-we,y:H-de/2+we,r:we},{x:D-te/2+we,y:H+de/2-we,r:we},{x:D+te/2-we,y:H+de/2-we,r:we}]}(p),_=Number.MAX_SAFE_INTEGER;return w.forEach(function(x){var M=mi(d.x,d.y,x.x,x.y);M<_&&(_=M,g=x)}),wb(d,c,g)},wb=function(d,c,p){var g,w=p,_=w.x,x=w.y,M=w.r;if(c===yo.HORIZONTAL){var D=_-Math.sqrt(M*M-(d.y-x)*(d.y-x)),H=_+Math.sqrt(M*M-(d.y-x)*(d.y-x));g={x:Math.abs(D-d.x)<Math.abs(H-d.x)?D:H,y:d.y}}else if(c===yo.VERTICAL){var te=x-Math.sqrt(M*M-(d.x-_)*(d.x-_)),de=x+Math.sqrt(M*M-(d.x-_)*(d.x-_)),we=Math.abs(te-d.y)<Math.abs(de-d.y)?te:de;g={x:d.x,y:we}}return g},Sb=function(d,c){var p=c,g=!1,w=p.x-p.width/2+p.radius,_=p.x+p.width/2-p.radius,x=p.y-p.height/2+p.radius,M=p.y+p.height/2-p.radius,D=p.x,H=p.y,te=p.width,de=p.height;return d.y===H+de/2||d.y===H-de/2?g=d.x>w&&d.x<_:d.x!==D+te/2&&d.x!==D-te/2||(g=d.y>x&&d.y<M),g},xb=function(d,c,p){var g,w=p,_=w.x,x=w.y,M=w.rx,D=w.ry;if(c===yo.HORIZONTAL){var H=_-Math.sqrt(M*M-(d.y-x)*(d.y-x)*M*M/(D*D)),te=_+Math.sqrt(M*M-(d.y-x)*(d.y-x)*M*M/(D*D));g={x:Math.abs(H-d.x)<Math.abs(te-d.x)?H:te,y:d.y}}else if(c===yo.VERTICAL){var de=x-Math.sqrt(D*D-(d.x-_)*(d.x-_)*D*D/(M*M)),we=x+Math.sqrt(D*D-(d.x-_)*(d.x-_)*D*D/(M*M)),je=Math.abs(de-d.y)<Math.abs(we-d.y)?de:we;g={x:d.x,y:je}}return g},kb=function(d,c,p){for(var g,w=p.pointsPosition,_=Number.MAX_SAFE_INTEGER,x=[],M=0;M<w.length;M++)x.push({start:w[M],end:w[(M+1)%w.length]});return x.forEach(function(D){var H=D.start,te=D.end,de=H,we=te;H.x>te.x&&(de=te,we=H);var je={x:d.x,y:d.y};if(de.x===we.x&&c===yo.HORIZONTAL&&(je={x:de.x,y:d.y}),de.y===we.y&&c===yo.VERTICAL&&(je={x:d.x,y:de.y}),de.x!==we.x&&de.y!==we.y){var Ge=(we.y-de.y)/(we.x-de.x),nt=(de.x*we.y-we.x*de.y)/(de.x-we.x);c===yo.HORIZONTAL?je={x:(d.y-nt)/Ge,y:d.y}:c===yo.VERTICAL&&(je={x:d.x,y:Ge*d.x+nt})}if(Wn(je,H,te)){var ft=mi(je.x,je.y,d.x,d.y);ft<_&&(_=ft,g=je)}}),g},Cb=function(d,c,p,g){var w=d.x,_=d.y;return c.x>d.x?w=d.x+p/2:c.x<d.x&&(w=d.x-p/2),c.y>d.y?_=d.y+g/2:c.y<d.y&&(_=d.y-g/2),{x:w,y:_}},Zw=function(d){var c=d.rows,p=d.style,g=d.rowsLength,w=d.className,_=document.createElement("div");_.style.fontSize=p.fontSize,_.style.width=p.width,_.className=w,_.style.lineHeight=p.lineHeight,_.style.padding=p.padding,p.fontFamily&&(_.style.fontFamily=p.fontFamily),g>1?c.forEach(function(M){var D=document.createElement("div");D.textContent=M,_.appendChild(D)}):_.textContent=c,document.body.appendChild(_);var x=_.clientHeight;return document.body.removeChild(_),x},Eb=function(d){var c=d.rows,p=d.rowsLength,g=d.fontSize,w=0;return c&&c.forEach(function(_){var x=qb(_);w=x>w?x:w}),{width:Math.ceil(w/2)*g+g/4,height:p*(g+2)+g/4}},sg=function(d){return uh(d)!=="object"?{isAllPass:!!d,msg:d?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:d},_o=function(d){try{return JSON.parse(JSON.stringify(d))}catch{return d}},eT=1e3,Xw=999,Tb=function(){return++eT};function wv(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function qa(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?wv(Object(p),!0).forEach(function(g){Ka(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):wv(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function vi(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function tT(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function Ka(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Hn(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var Pb=(At=function(){function d(g,w){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,d),Ka(this,"id",""),vi(this,"type",Xi,this),vi(this,"sourceNodeId",pb,this),vi(this,"targetNodeId",gb,this),vi(this,"startPoint",zw,this),vi(this,"endPoint",lu,this),vi(this,"text",da,this),vi(this,"properties",vv,this),vi(this,"points",yv,this),vi(this,"pointsList",Qw,this),vi(this,"isSelected",ch,this),vi(this,"isHovered",mb,this),vi(this,"isHitable",vb,this),vi(this,"draggable",yb,this),vi(this,"visible",bb,this),Ka(this,"virtual",!1),vi(this,"isAnimation",Ww,this),vi(this,"isShowAdjustPoint",bv,this),Ka(this,"graphModel",void 0),vi(this,"zIndex",_b,this),Ka(this,"BaseType",ui.EDGE),Ka(this,"modelType",kr.EDGE),vi(this,"state",fh,this),Ka(this,"additionStateData",void 0),Ka(this,"sourceAnchorId",""),Ka(this,"targetAnchorId",""),Ka(this,"menu",void 0),Ka(this,"customTextPosition",!1),vi(this,"style",_v,this),vi(this,"arrowConfig",Ob,this),this.graphModel=w,this.initEdgeData(g),this.setAttributes()}var c,p;return c=d,p=[{key:"initEdgeData",value:function(g){if(g.properties||(g.properties={}),!g.id){var w=this.graphModel.idGenerator,_=w&&w(g.type),x=this.createId();g.id=x||_||bl()}this.arrowConfig.markerEnd="url(#marker-end-".concat(g.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(g.id,")");var M=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=M,Ci(this,fS(g)),this.graphModel.overlapMode===Do.INCREASE&&(this.zIndex=g.zIndex||Tb()),this.setAnchors(),this.initPoints(),this.formatText(g)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return qa(qa({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return qa({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var g=this.graphModel.theme.edgeText;return Po(g)}},{key:"getEdgeAnimationStyle",value:function(){var g=this.graphModel.theme.edgeAnimation;return Po(g)}},{key:"getArrowStyle",value:function(){var g=this.getEdgeStyle(),w=this.getEdgeAnimationStyle(),_=this.graphModel.theme.arrow,x=this.isAnimation?w.stroke:g.stroke;return qa(qa({},g),{},{fill:x,stroke:x},_)}},{key:"getOutlineStyle",value:function(){var g=this.graphModel.theme.outline;return Po(g)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var g,w;return(g=this.graphModel)===null||g===void 0||(w=g.nodesMap[this.sourceNodeId])===null||w===void 0?void 0:w.model}},{key:"targetNode",get:function(){var g,w;return(g=this.graphModel)===null||g===void 0||(w=g.nodesMap[this.targetNodeId])===null||w===void 0?void 0:w.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(g,w){var _,x;return Ov(g).forEach(function(M){var D=Jb(M,w);(x===void 0||D<x)&&(x=D,_=M)}),_}},{key:"getEndAnchor",value:function(g){var w,_,x=this;return Ov(g).forEach(function(M){var D=Jb(M,x.startPoint);(_===void 0||D<_)&&(_=D,w=M)}),w}},{key:"getProperties",value:function(){return Object(a.I)(this.properties)}},{key:"getData",value:function(){var g=this.text,w=g.x,_=g.y,x=g.value,M={id:this.id,type:this.type,sourceNodeId:this.sourceNode.id,targetNodeId:this.targetNode.id,startPoint:Object.assign({},this.startPoint),endPoint:Object.assign({},this.endPoint),properties:Object(a.I)(this.properties)};return x&&(M.text={x:w,y:_,value:x}),this.graphModel.overlapMode===Do.INCREASE&&(M.zIndex=this.zIndex),M}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(g,w){this.properties[g]=_o(w),this.setAttributes()}},{key:"deleteProperty",value:function(g){delete this.properties[g],this.setAttributes()}},{key:"setProperties",value:function(g){this.properties=qa(qa({},Object(a.I)(this.properties)),_o(g)),this.setAttributes()}},{key:"changeEdgeId",value:function(g){var w=this.arrowConfig,_=w.markerEnd,x=w.markerStart;x&&x==="url(#marker-start-".concat(this.id,")")&&(this.arrowConfig.markerStart="url(#marker-start-".concat(g,")")),_&&_==="url(#marker-end-".concat(this.id,")")&&(this.arrowConfig.markerEnd="url(#marker-end-".concat(g,")")),this.id=g}},{key:"setStyle",value:function(g,w){this.style=qa(qa({},this.style),{},Ka({},g,_o(w)))}},{key:"setStyles",value:function(g){this.style=qa(qa({},this.style),_o(g))}},{key:"updateStyles",value:function(g){this.style=qa({},_o(g))}},{key:"formatText",value:function(g){var w=this.textPosition,_=w.x,x=w.y;g.text&&typeof g.text!="string"?Object.prototype.toString.call(g.text)==="[object Object]"&&(this.text={x:g.text.x||_,y:g.text.y||x,value:g.text.value||"",draggable:this.text.draggable,editable:this.text.editable}):this.text={value:g.text||"",x:_,y:x,draggable:this.text.draggable,editable:this.text.editable}}},{key:"resetTextPosition",value:function(){var g=this.textPosition,w=g.x,_=g.y;this.text.x=w,this.text.y=_}},{key:"moveText",value:function(g,w){if(this.text){var _=this.text,x=_.x,M=_.y,D=_.value,H=_.draggable,te=_.editable;this.text={value:D,draggable:H,x:x+g,y:M+w,editable:te}}}},{key:"setText",value:function(g){g&&Ci(this.text,g)}},{key:"updateText",value:function(g){this.text=qa(qa({},Object(a.I)(this.text)),{},{value:g})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var g=this.getBeginAnchor(this.sourceNode,this.targetNode);if(!(g||this.startPoint&&this.sourceAnchorId))throw new Error("\u65E0\u6CD5\u83B7\u53D6beginAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.startPoint||(this.startPoint={x:g.x,y:g.y}),this.sourceAnchorId||(this.sourceAnchorId=g.id)}if(!this.targetAnchorId||!this.endPoint){var w=this.getEndAnchor(this.targetNode);if(!(w||this.endPoint&&this.targetAnchorId))throw new Error("\u65E0\u6CD5\u83B7\u53D6endAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.endPoint||(this.endPoint={x:w.x,y:w.y}),this.targetAnchorId||(this.targetAnchorId=w.id)}}},{key:"setSelected",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=g}},{key:"setHovered",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=g}},{key:"setHitable",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=g}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(g,w){this.state=g,this.additionStateData=w}},{key:"updateStartPoint",value:function(g){this.startPoint=g}},{key:"moveStartPoint",value:function(g,w){this.startPoint.x+=g,this.startPoint.y+=w}},{key:"updateEndPoint",value:function(g){this.endPoint=g}},{key:"moveEndPoint",value:function(g,w){this.endPoint.x+=g,this.endPoint.y+=w}},{key:"setZIndex",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=g}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(g){Ci(this,g)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(g){var w=g.startPoint,_=g.endPoint;this.updateStartPoint({x:w.x,y:w.y}),this.updateEndPoint({x:_.x,y:_.y})}}],p&&tT(c.prototype,p),d}(),Xi=Hn(At.prototype,"type",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),pb=Hn(At.prototype,"sourceNodeId",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),gb=Hn(At.prototype,"targetNodeId",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),zw=Hn(At.prototype,"startPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lu=Hn(At.prototype,"endPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),da=Hn(At.prototype,"text",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),vv=Hn(At.prototype,"properties",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),yv=Hn(At.prototype,"points",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Qw=Hn(At.prototype,"pointsList",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ch=Hn(At.prototype,"isSelected",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mb=Hn(At.prototype,"isHovered",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vb=Hn(At.prototype,"isHitable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),yb=Hn(At.prototype,"draggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),bb=Hn(At.prototype,"visible",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ww=Hn(At.prototype,"isAnimation",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bv=Hn(At.prototype,"isShowAdjustPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_b=Hn(At.prototype,"zIndex",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),fh=Hn(At.prototype,"state",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),_v=Hn(At.prototype,"style",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ob=Hn(At.prototype,"arrowConfig",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")}}}),Hn(At.prototype,"sourceNode",[a.m],Object.getOwnPropertyDescriptor(At.prototype,"sourceNode"),At.prototype),Hn(At.prototype,"targetNode",[a.m],Object.getOwnPropertyDescriptor(At.prototype,"targetNode"),At.prototype),Hn(At.prototype,"textPosition",[a.m],Object.getOwnPropertyDescriptor(At.prototype,"textPosition"),At.prototype),Hn(At.prototype,"setProperty",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setProperty"),At.prototype),Hn(At.prototype,"deleteProperty",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"deleteProperty"),At.prototype),Hn(At.prototype,"setProperties",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setProperties"),At.prototype),Hn(At.prototype,"changeEdgeId",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"changeEdgeId"),At.prototype),Hn(At.prototype,"setStyle",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setStyle"),At.prototype),Hn(At.prototype,"setStyles",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setStyles"),At.prototype),Hn(At.prototype,"updateStyles",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"updateStyles"),At.prototype),Hn(At.prototype,"formatText",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"formatText"),At.prototype),Hn(At.prototype,"resetTextPosition",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"resetTextPosition"),At.prototype),Hn(At.prototype,"moveText",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"moveText"),At.prototype),Hn(At.prototype,"setText",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setText"),At.prototype),Hn(At.prototype,"updateText",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"updateText"),At.prototype),Hn(At.prototype,"setAnchors",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setAnchors"),At.prototype),Hn(At.prototype,"setSelected",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setSelected"),At.prototype),Hn(At.prototype,"setHovered",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setHovered"),At.prototype),Hn(At.prototype,"setHitable",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setHitable"),At.prototype),Hn(At.prototype,"openEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"openEdgeAnimation"),At.prototype),Hn(At.prototype,"closeEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"closeEdgeAnimation"),At.prototype),Hn(At.prototype,"setElementState",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setElementState"),At.prototype),Hn(At.prototype,"updateStartPoint",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"updateStartPoint"),At.prototype),Hn(At.prototype,"moveStartPoint",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"moveStartPoint"),At.prototype),Hn(At.prototype,"updateEndPoint",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"updateEndPoint"),At.prototype),Hn(At.prototype,"moveEndPoint",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"moveEndPoint"),At.prototype),Hn(At.prototype,"setZIndex",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"setZIndex"),At.prototype),Hn(At.prototype,"initPoints",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"initPoints"),At.prototype),Hn(At.prototype,"updateAttributes",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"updateAttributes"),At.prototype),Hn(At.prototype,"getAdjustStart",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"getAdjustStart"),At.prototype),Hn(At.prototype,"getAdjustEnd",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"getAdjustEnd"),At.prototype),Hn(At.prototype,"updateAfterAdjustStartAndEnd",[a.k],Object.getOwnPropertyDescriptor(At.prototype,"updateAfterAdjustStartAndEnd"),At.prototype),At),$b=Pb;function Ab(d){return Ab=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Ab(d)}function qw(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function Kw(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?qw(Object(p),!0).forEach(function(g){Jw(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):qw(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function nT(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Gw(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function dh(){return dh=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=rT(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},dh.apply(this,arguments)}function rT(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=Zf(d))!==null;);return d}function Mb(d,c){return Mb=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},Mb(d,c)}function oT(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=Zf(d);if(c){var w=Zf(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return iT(this,p)}}function iT(d,c){if(c&&(Ab(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rb(d)}function Rb(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Zf(d){return Zf=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Zf(d)}function Jw(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var fr,eS,Xf=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&Mb(_,x)})(w,d);var c,p,g=oT(w);function w(){var _;nT(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return Jw(Rb(_=g.call.apply(g,[this].concat(M))),"modelType",kr.LINE_EDGE),_}return c=w,(p=[{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.line;return Kw(Kw({},dh(Zf(w.prototype),"getEdgeStyle",this).call(this)),Po(_))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&Gw(c.prototype,p),w}($b);function Nb(d){return Nb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Nb(d)}function aT(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return lg(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return lg(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lg(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function Ib(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function Db(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?Ib(Object(p),!0).forEach(function(g){Lb(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):Ib(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function jb(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function tS(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function nS(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function ug(){return ug=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=sT(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},ug.apply(this,arguments)}function sT(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=qu(d))!==null;);return d}function hh(d,c){return hh=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},hh(d,c)}function Sv(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=qu(d);if(c){var w=qu(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return lT(this,p)}}function lT(d,c){if(c&&(Nb(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qf(d)}function qf(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function qu(d){return qu=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},qu(d)}function Lb(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Ao(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var xv=(fr=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&hh(_,x)})(w,d);var c,p,g=Sv(w);function w(){var _;tS(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return Lb(qf(_=g.call.apply(g,[this].concat(M))),"modelType",kr.POLYLINE_EDGE),Lb(qf(_),"draggingPointList",void 0),jb(qf(_),"dbClickPosition",eS,qf(_)),_}return c=w,(p=[{key:"initEdgeData",value:function(_){this.offset=30,ug(qu(w.prototype),"initEdgeData",this).call(this,_)}},{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.polyline;return Db(Db({},ug(qu(w.prototype),"getEdgeStyle",this).call(this)),Po(_))}},{key:"getTextPosition",value:function(){var _,x=(_=this.text)===null||_===void 0?void 0:_.value;if(this.dbClickPosition&&!x){var M=this.dbClickPosition;return{x:M.x,y:M.y}}var D=Wc(this.points),H=aT(lS(D),2),te=H[0],de=H[1];return{x:(te.x+de.x)/2,y:(te.y+de.y)/2}}},{key:"getAfterAnchor",value:function(_,x,M){var D,H;return M.forEach(function(te){var de;_===yo.HORIZONTAL?de=Math.abs(x.y-te.y):_===yo.VERTICAL&&(de=Math.abs(x.x-te.x)),(!H||H>de)&&(H=de,D=te)}),D}},{key:"getCrossPoint",value:function(_,x,M){var D;return _===yo.HORIZONTAL?D={x:M.x,y:x.y}:_===yo.VERTICAL&&(D={x:x.x,y:M.y}),D}},{key:"removeCrossPoints",value:function(_,x,M){var D=M.map(function(dt){return dt});if(_===1){var H=D[_],te=D[x],de=D[_-1];if(Hb(de,H,this.sourceNode)){if(Zb(H,te,this.sourceNode)){var we=yi(H,te,this.sourceNode);we&&(D[_]=we,D.splice(_-1,1),_--,x--)}}else this.sourceNode.anchors.forEach(function(dt){(dt.x===de.x&&dt.x===H.x||dt.y===de.y&&dt.y===H.y)&&mi(dt.x,dt.y,H.x,H.y)<mi(de.x,de.y,H.x,H.y)&&(D[_-1]=dt)})}if(x===M.length-2){var je=D[_],Ge=D[x],nt=D[x+1];if(Hb(Ge,nt,this.targetNode)){if(Zb(je,Ge,this.targetNode)){var ft=yi(je,Ge,this.targetNode);ft&&(D[x]=ft,D.splice(x+1,1))}}else this.targetNode.anchors.forEach(function(dt){(dt.x===nt.x&&dt.x===Ge.x||dt.y===nt.y&&dt.y===Ge.y)&&mi(dt.x,dt.y,Ge.x,Ge.y)<mi(nt.x,nt.y,Ge.x,Ge.y)&&(D[x+1]=dt)})}return D}},{key:"getDraggingPoints",value:function(_,x,M,D,H){var te=H.map(function(je){return je}),de=this.getAfterAnchor(_,M,D),we=this.getCrossPoint(_,M,de);return x==="start"?(te.unshift(we),te.unshift(de)):(te.push(we),te.push(de)),te}},{key:"updateCrossPoints",value:function(_){var x=_.map(function(Nt){return Nt}),M=_[0],D=_[1],H=_[x.length-2],te=_[x.length-1],de=this.sourceNode,we=this.targetNode,je=de.modelType,Ge=we.modelType,nt=Bi(M,D),ft=x[0];switch(je){case kr.RECT_NODE:de.radius!==0&&(Sb(M,de)||(ft=Hw(M,nt,de)));break;case kr.CIRCLE_NODE:ft=wb(M,nt,de);break;case kr.ELLIPSE_NODE:ft=xb(M,nt,de);break;case kr.DIAMOND_NODE:case kr.POLYGON_NODE:ft=kb(M,nt,de)}x[0]=ft;var dt=Bi(H,te),vt=x[x.length-1];switch(Ge){case kr.RECT_NODE:we.radius!==0&&(Sb(te,we)||(vt=Hw(te,dt,we)));break;case kr.CIRCLE_NODE:vt=wb(te,dt,we);break;case kr.ELLIPSE_NODE:vt=xb(te,dt,we);break;case kr.DIAMOND_NODE:case kr.POLYGON_NODE:vt=kb(te,dt,we)}return x[x.length-1]=vt,x}},{key:"getData",value:function(){var _=ug(qu(w.prototype),"getData",this).call(this),x=this.pointsList.map(function(M){return{x:M.x,y:M.y}});return Object.assign({},_,{pointsList:x})}},{key:"initPoints",value:function(){this.pointsList.length>0?this.points=this.pointsList.map(function(_){return"".concat(_.x,",").concat(_.y)}).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var _=pg({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=_,this.points=_.map(function(x){return"".concat(x.x,",").concat(x.y)}).join(" ")}},{key:"updateStartPoint",value:function(_){this.startPoint=_,this.updatePoints()}},{key:"moveStartPoint",value:function(_,x){this.startPoint.x+=_,this.startPoint.y+=x,this.updatePoints()}},{key:"updateEndPoint",value:function(_){this.endPoint=_,this.updatePoints()}},{key:"moveEndPoint",value:function(_,x){this.endPoint.x+=_,this.endPoint.y+=x,this.updatePoints()}},{key:"dragAppendStart",value:function(){this.draggingPointList=this.pointsList.map(function(_){return _})}},{key:"dragAppendSimple",value:function(_,x){this.isDragging=!0;var M=_.start,D=_.end,H=_.startIndex,te=_.endIndex,de=_.direction,we=this.pointsList,je=we;return de===yo.HORIZONTAL?(we[H]={x:M.x,y:M.y+x.y},we[te]={x:D.x,y:D.y+x.y},je=this.pointsList.map(function(Ge){return Ge})):de===yo.VERTICAL&&(we[H]={x:M.x+x.x,y:M.y},we[te]={x:D.x+x.x,y:D.y},je=this.pointsList.map(function(Ge){return Ge})),this.updatePointsAfterDrag(je),this.draggingPointList=je,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},we[H]),end:Object.assign({},we[te]),startIndex:H,endIndex:te,direction:de}}},{key:"dragAppend",value:function(_,x){this.isDragging=!0;var M=_.start,D=_.end,H=_.startIndex,te=_.endIndex,de=_.direction,we=this.pointsList;if(de===yo.HORIZONTAL){we[H]={x:M.x,y:M.y+x.y},we[te]={x:D.x,y:D.y+x.y};var je=this.pointsList.map(function(ln){return ln});if(H!==0&&te!==this.pointsList.length-1&&(je=this.removeCrossPoints(H,te,je)),H===0){var Ge={x:M.x,y:M.y+x.y};if(!Xa(Ge,this.sourceNode)){var nt=this.sourceNode.anchors;je=this.getDraggingPoints(de,"start",Ge,nt,je)}}if(te===this.pointsList.length-1){var ft={x:D.x,y:D.y+x.y};if(!Xa(ft,this.targetNode)){var dt=this.targetNode.anchors;je=this.getDraggingPoints(de,"end",ft,dt,je)}}this.updatePointsAfterDrag(je),this.draggingPointList=je}else if(de===yo.VERTICAL){we[H]={x:M.x+x.x,y:M.y},we[te]={x:D.x+x.x,y:D.y};var vt=this.pointsList.map(function(ln){return ln});if(H!==0&&te!==this.pointsList.length-1&&(vt=this.removeCrossPoints(H,te,vt)),H===0){var Nt={x:M.x+x.x,y:M.y};if(!Xa(Nt,this.sourceNode)){var sn=this.sourceNode.anchors;vt=this.getDraggingPoints(de,"start",Nt,sn,vt)}}if(te===this.pointsList.length-1){var hn={x:D.x+x.x,y:D.y};if(!Xa(hn,this.targetNode)){var Qn=this.targetNode.anchors;vt=this.getDraggingPoints(de,"end",hn,Qn,vt)}}this.updatePointsAfterDrag(vt),this.draggingPointList=vt}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},we[H]),end:Object.assign({},we[te]),startIndex:H,endIndex:te,direction:de}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var _=hg(Wc(this.points));this.pointsList=_.map(function(D){return D}),this.draggingPointList=[];var x=_[0];this.startPoint=Object.assign({},x);var M=_[_.length-1];this.endPoint=Object.assign({},M)}this.isDragging=!1}},{key:"updatePointsAfterDrag",value:function(_){var x=this.updateCrossPoints(_);this.points=x.map(function(M){return"".concat(M.x,",").concat(M.y)}).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var _=this.pointsList;return _[_.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(_){var x=_.startPoint,M=_.endPoint,D=_.sourceNode,H=_.targetNode,te=pg({x:x.x,y:x.y},{x:M.x,y:M.y},D,H,this.offset||0);this.pointsList=te,this.initPoints()}}])&&nS(c.prototype,p),w}($b),eS=Ao(fr.prototype,"dbClickPosition",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ao(fr.prototype,"initPoints",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"initPoints"),fr.prototype),Ao(fr.prototype,"updatePoints",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"updatePoints"),fr.prototype),Ao(fr.prototype,"updateStartPoint",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"updateStartPoint"),fr.prototype),Ao(fr.prototype,"moveStartPoint",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"moveStartPoint"),fr.prototype),Ao(fr.prototype,"updateEndPoint",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"updateEndPoint"),fr.prototype),Ao(fr.prototype,"moveEndPoint",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"moveEndPoint"),fr.prototype),Ao(fr.prototype,"dragAppendStart",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"dragAppendStart"),fr.prototype),Ao(fr.prototype,"dragAppendSimple",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"dragAppendSimple"),fr.prototype),Ao(fr.prototype,"dragAppend",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"dragAppend"),fr.prototype),Ao(fr.prototype,"dragAppendEnd",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"dragAppendEnd"),fr.prototype),Ao(fr.prototype,"updatePointsAfterDrag",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"updatePointsAfterDrag"),fr.prototype),Ao(fr.prototype,"getAdjustStart",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"getAdjustStart"),fr.prototype),Ao(fr.prototype,"getAdjustEnd",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"getAdjustEnd"),fr.prototype),Ao(fr.prototype,"updateAfterAdjustStartAndEnd",[a.k],Object.getOwnPropertyDescriptor(fr.prototype,"updateAfterAdjustStartAndEnd"),fr.prototype),fr),cg=function(d){var c=d.start,p=d.end,g=d.offset,w=d.verticalLength,_=d.type,x={leftX:0,leftY:0,rightX:0,rightY:0},M=Math.atan((p.y-c.y)/(p.x-c.x)),D=Math.atan(g/w),H=Math.sqrt(w*w+g*g);return _==="start"?p.x>=c.x?(x.leftX=c.x+H*Math.sin(M+D),x.leftY=c.y-H*Math.cos(M+D),x.rightX=c.x-H*Math.sin(M-D),x.rightY=c.y+H*Math.cos(M-D)):(x.leftX=c.x-H*Math.sin(M+D),x.leftY=c.y+H*Math.cos(M+D),x.rightX=c.x+H*Math.sin(M-D),x.rightY=c.y-H*Math.cos(M-D)):_==="end"&&(p.x>=c.x?(x.leftX=p.x+H*Math.sin(M-D),x.leftY=p.y-H*Math.cos(M-D),x.rightX=p.x-H*Math.sin(M+D),x.rightY=p.y+H*Math.cos(M+D)):(x.leftX=p.x-H*Math.sin(M-D),x.leftY=p.y+H*Math.cos(M-D),x.rightX=p.x+H*Math.sin(M+D),x.rightY=p.y-H*Math.cos(M+D))),x},Kf={x:1,y:0,z:0};function pr(d,c,p,g,w){for(var _=function(Ge){if(Ge<0||Ge>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:d.x*Math.pow(1-Ge,3)+3*c.x*Ge*Math.pow(1-Ge,2)+3*p.x*Math.pow(Ge,2)*(1-Ge)+g.x*Math.pow(Ge,3),y:d.y*Math.pow(1-Ge,3)+3*c.y*Ge*Math.pow(1-Ge,2)+3*p.y*Math.pow(Ge,2)*(1-Ge)+g.y*Math.pow(Ge,3)}},x=0,M=2,D=g.x,H=g.y,te=g;x<w&&M<50;){var de=te=_(1-M/100),we=de.x,je=de.y;x=mi(D,H,we,je),M++}return te}function rS(d){var c=Math.hypot(d.x,d.y);return{x:d.x/c,y:d.y/c,z:0}}function Pa(d){return g=function(_,x){return _.x*x.y-_.y*x.x}(c=Kf,p=d),w=Math.acos(function(_,x){var M=[_.x,_.y,_.z];return[x.x,x.y,x.z].reduce(function(D,H,te){return D+H*M[te]})}(rS(c),rS(p))),g>=0?w:-w;var c,p,g,w}function ei(d){return d*(180/Math.PI)}function Ku(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function kv(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?Ku(Object(p),!0).forEach(function(g){Bb(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):Ku(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function Bb(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Gu(d){return function(c){if(Array.isArray(c))return Lo(c)}(d)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(d)||jo(d)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Cv(d){return Cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Cv(d)}function Gf(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||jo(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function jo(d,c){if(d){if(typeof d=="string")return Lo(d,c);var p=Object.prototype.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?Lo(d,c):void 0}}function Lo(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}var oS=function(d,c){var p;switch(d.type){case"line":default:p=new Xf(d,c);break;case"polyline":p=new xv(d,c)}return p},Vb=function(d,c){return 2*Math.abs(d.centerX-c.centerX)<d.width+c.width&&2*Math.abs(d.centerY-c.centerY)<d.height+c.height},Ju=function(d){var c=[],p={};return d.forEach(function(g){var w="".concat(g.x,"-").concat(g.y);g.id=w,p[w]=g}),Object.keys(p).forEach(function(g){c.push(p[g])}),c},Fb=function(d,c){var p=[d,{x:d.x,y:c.y},c];return Ju(p)},ph=function(d,c){return d.width===0&&d.height===0?d:{centerX:d.centerX,centerY:d.centerY,minX:d.minX-c,minY:d.minY-c,maxX:d.maxX+c,maxY:d.maxY+c,height:d.height+2*c,width:d.width+2*c}},fg=function(d,c){var p=Math.abs(d.x-c.centerX),g=Math.abs(d.y-c.centerY);return p/c.width>g/c.height?yo.HORIZONTAL:yo.VERTICAL},qi=function(d,c,p){return fg(p,c)===yo.HORIZONTAL?{x:p.x>d.centerX?d.maxX:d.minX,y:p.y}:{x:p.x,y:p.y>d.centerY?d.maxY:d.minY}},Qc=function(d,c){var p=Math.min(d.minX,c.minX),g=Math.min(d.minY,c.minY),w=Math.max(d.maxX,c.maxX),_=Math.max(d.maxY,c.maxY);return{centerX:(p+w)/2,centerY:(g+_)/2,minX:p,minY:g,maxX:w,maxY:_,height:_-g,width:w-p}},gh=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0,p=[],g=[];d.forEach(function(te){p.push(te.x),g.push(te.y)});var w=Math.min.apply(Math,p),_=Math.max.apply(Math,p),x=Math.min.apply(Math,g),M=Math.max.apply(Math,g),D=_-w,H=M-x;return c&&(D+=c,H+=c),{centerX:(w+_)/2,centerY:(x+M)/2,maxX:_,maxY:M,minX:w,minY:x,x:(w+_)/2,y:(x+M)/2,height:H,width:D}},dg=function(d){var c=d.minX,p=d.minY,g=d.maxX,w=d.maxY;return[{x:c,y:p},{x:g,y:p},{x:g,y:w},{x:c,y:w}]},mh=function(d,c){var p=d.x,g=d.y;return p<c.minX||p>c.maxX||g<c.minY||g>c.maxY},uu=function(d,c){return c<d.minX||c>d.maxX?[]:[{x:c,y:d.minY},{x:c,y:d.maxY}]},yr=function(d,c){return c<d.minY||c>d.maxY?[]:[{x:d.minX,y:c},{x:d.maxX,y:c}]},zb=function(d,c){return uu(d,c.x).concat(yr(d,c.y))},$a=function(d,c){return Math.abs(d.x-c.x)+Math.abs(d.y-c.y)},Qb=function(d,c){var p=0;return c.forEach(function(g){g&&(d.x===g.x&&(p+=-2),d.y===g.y&&(p+=-2))}),p},eo=function(d,c,p,g,w){return $a(d,c)+$a(d,p)+Qb(d,[c,p,g,w])},iS=function d(c,p,g,w,_){_||(_=0),c.unshift(p[w]),g[w]&&g[w]!==w&&_<=100&&d(c,p,g,g[w],_+1)},Wb=function(d,c){var p=d.indexOf(c);p>-1&&d.splice(p,1)},ec=function(d,c,p,g){var w=c.x-d.x,_=c.y-d.y,x=g.x-p.x,M=g.y-p.y,D=(-_*(d.x-p.x)+w*(d.y-p.y))/(-x*_+w*M),H=(x*(d.y-p.y)-M*(d.x-p.x))/(-x*_+w*M);return D>=0&&D<=1&&H>=0&&H<=1},Yb=function(d,c,p){if(p.width===0&&p.height===0)return!1;var g=Gf(dg(p),4),w=g[0],_=g[1],x=g[2],M=g[3];return ec(d,c,w,_)||ec(d,c,w,M)||ec(d,c,_,x)||ec(d,c,x,M)},aS=function(d,c,p,g){var w=[];return d.forEach(function(_){_!==c&&(_.x!==c.x&&_.y!==c.y||Yb(_,c,p)||Yb(_,c,g)||w.push(_))}),Ju(w)},sS=function(d,c,p,g,w,_,x){var M=[],D=[c],H={},te={},de={};te[c.id]=0,de[c.id]=eo(c,p,c);var we={};d.forEach(function(nt){we[nt.id]=nt});for(var je=function(){var nt=void 0,ft=1/0;if(D.forEach(function(vt){de[vt.id]<ft&&(ft=de[vt.id],nt=vt)}),nt===p){var dt=[];return iS(dt,we,H,p.id),{v:dt}}Wb(D,nt),M.push(nt),aS(d,nt,g,w).forEach(function(vt){if(M.indexOf(vt)===-1){D.indexOf(vt)===-1&&D.push(vt);var Nt=de[nt.id]+$a(nt,vt);te[vt.id]&&Nt>=te[vt.id]||(H[vt.id]=nt.id,te[vt.id]=Nt,de[vt.id]=te[vt.id]+eo(vt,p,c,_,x))}})};D.length;){var Ge=je();if(Cv(Ge)==="object")return Ge.v}return[c,p]},Ub=function(d){return ys(d)},hg=function(d){for(var c=1;c<d.length-1;){var p=d[c-1],g=d[c],w=d[c+1];p.x===g.x&&g.x===w.x||p.y===g.y&&g.y===w.y?d.splice(c,1):c++}return d},pg=function(d,c,p,g,w){var _=Ub(p),x=Ub(g),M=ph(_,w),D=ph(x,w),H=qi(M,_,d),te=qi(D,x,c);if(Vb(M,D)){var de=Xb(d,c,H,te);return[d,H].concat(Gu(de),[te,c])}var we=gh([H,te]),je=Qc(M,we),Ge=Qc(D,we),nt=[];nt=(nt=nt.concat(dg(je))).concat(dg(Ge));var ft={x:(d.x+c.x)/2,y:(d.y+c.y)/2};[we,je,Ge].forEach(function(vt){nt=nt.concat(zb(vt,ft).filter(function(Nt){return mh(Nt,M)&&mh(Nt,D)}))}),[{x:H.x,y:te.y},{x:te.x,y:H.y}].forEach(function(vt){mh(vt,M)&&mh(vt,D)&&nt.push(vt)}),nt.unshift(H),nt.push(te),nt=Ju(nt);var dt=sS(nt,H,te,_,x,d,c);return dt.unshift(d),dt.push(c),dt.length>2&&(dt=hg(dt)),Ju(dt)},lS=function(d){var c;if(d.length===1)c=[d[0],d[0]];else if(d.length>=2){for(var p=d[0],g=d[1],w=mi(p.x,p.y,g.x,g.y),_=1;_<d.length-1;_++){var x=d[_],M=d[_+1],D=mi(x.x,x.y,M.x,M.y);D>w&&(w=D,p=x,g=M)}c=[p,g]}return c},Hb=function(d,c,p){var g=Xa(d,p),w=Xa(c,p);return g&&w},Zb=function(d,c,p){var g=Xa(d,p),w=Xa(c,p);return!(g&&w)&&(g||w)},yi=function(d,c,p){for(var g,w,_=ys(p),x=dg(_),M=0;M<x.length;M++)ec(d,c,x[M],x[(M+1)%x.length])&&(w=[x[M],x[(M+1)%x.length]]);return w&&(g=function(D,H,te,de){var we=(H.y-D.y)*(de.x-te.x)-(D.x-H.x)*(te.y-de.y);if(we===0)return!1;var je=((H.x-D.x)*(de.x-te.x)*(te.y-D.y)+(H.y-D.y)*(de.x-te.x)*D.x-(de.y-te.y)*(H.x-D.x)*te.x)/we,Ge=-((H.y-D.y)*(de.y-te.y)*(te.x-D.x)+(H.x-D.x)*(de.y-te.y)*D.y-(de.x-te.x)*(H.y-D.y)*te.y)/we;return(je-D.x)*(je-H.x)<=0&&(Ge-D.y)*(Ge-H.y)<=0&&(je-te.x)*(je-de.x)<=0&&(Ge-te.y)*(Ge-de.y)<=0&&{x:je,y:Ge}}(d,c,w[0],w[1])),g},Bi=function(d,c){var p;return d.x===c.x?p=yo.VERTICAL:d.y===c.y&&(p=yo.HORIZONTAL),p},Wc=function(d){var c=d.split(" "),p=[];return c&&c.forEach(function(g){var w=Gf(g.split(","),2),_=w[0],x=w[1];p.push({x:Number(_),y:Number(x)})}),p},Xb=function(d,c,p,g){var w=[];if(Bi(d,p)===Bi(c,g))d.y===p.y?(w.push({x:p.x,y:(p.y+g.y)/2}),w.push({x:g.x,y:(p.y+g.y)/2})):(w.push({x:(p.x+g.x)/2,y:p.y}),w.push({x:(p.x+g.x)/2,y:g.y}));else{var _={x:p.x,y:g.y},x=Wn(_,d,p),M=Wn(_,c,g);if(x||M)_={x:g.x,y:p.y};else{var D=uS(_,d,p),H=uS(_,c,g);D&&H&&(_={x:g.x,y:p.y})}w.push(_)}return w},uS=function(d,c,p){return d.x===c.x&&d.x===p.x||d.y===c.y&&d.y===p.y},qb=function(d){if(!d)return 0;for(var c=0,p=0;p<d.length;p++){var g=d.charCodeAt(p);d.match(/[A-Z]/)?c+=1.5:c+=g>=1&&g<=126||g>=65376&&g<=65439?1:2}return c},Ev=null,cS=function(d,c){Ev||(Ev=document.createElement("canvas"));var p=Ev.getContext("2d");return p.font=c,p.measureText(d).width},Kb=function(d){var c,p=d.start,g=d.end;if(p.x===g.x&&p.y===g.y)c="";else{var w={start:p,end:g,offset:10,verticalLength:5},_=cg(kv(kv({},w),{},{type:"start"})),x=cg(kv(kv({},w),{},{type:"end"}));c="M".concat(_.leftX," ").concat(_.leftY,`
- L`).concat(_.rightX," ").concat(_.rightY,`
- L`).concat(x.rightX," ").concat(x.rightY,`
- L`).concat(x.leftX," ").concat(x.leftY," z")}return{d:c,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},Yc=function(d){var c=d.start,p=d.end,g=d.sourceNode,w=d.targetNode,_=d.offset,x=ys(g),M=ys(w),D=ph(x,_),H=ph(M,_);return{sNext:qi(D,x,c),ePre:qi(H,M,p)}},Tv=function(d){var c=d.replace(/M/g,"").replace(/C/g,",").split(",");return[gg(c[0]),gg(c[1]),gg(c[2]),gg(c[3])]},gg=function(d){var c=Gf(d.replace(/(^\s*)/g,"").split(" "),2);return{x:+c[0],y:+c[1]}},Pv=function(d,c){var p=Gf(d,4);return[pr(p[0],p[1],p[2],p[3],c),d[3]]},Gb=function(d,c){for(var p,g=d.x,w=d.y,_=Wc(c),x=Number.MAX_SAFE_INTEGER,M=[],D=0;D<_.length;D++)M.push({start:_[D],end:_[(D+1)%_.length]});if(M.forEach(function(we){var je=we.start,Ge=we.end;if(je.x===Ge.x){var nt={x:je.x,y:w};if(Wn(nt,je,Ge)){var ft=Math.abs(je.x-g);ft<x&&(x=ft,p=nt)}}else if(je.y===Ge.y){var dt={x:g,y:je.y};if(Wn(dt,je,Ge)){var vt=Math.abs(je.y-w);vt<x&&(x=vt,p=dt)}}}),!p){var H=M[0],te=H.start,de=H.end;p={x:te.x+(de.x-te.x)/2,y:te.y+(de.y-te.y)/2}}return p},fS=function(d){return Uu(d,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Jb=function(d,c){return Math.sqrt(Math.pow(d.x-c.x,2)+Math.pow(d.y-c.y,2))};function dS(d,c){return typeof c!="function"?function(p,g,w){return Object.assign({type:d.edgeType},w)}:function(p,g,w){var _=c(p,g,w);return _?typeof _=="string"?Object.assign({},w,{type:_}):Object.assign({type:_},w):{type:d.edgeType}}}o(207);var e_=function(){};function uT(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function ti(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var _l=function(){function d(g){var w=this,_=g.onDragStart,x=_===void 0?e_:_,M=g.onDragging,D=M===void 0?e_:M,H=g.onDragEnd,te=H===void 0?e_:H,de=g.eventType,we=de===void 0?"":de,je=g.eventCenter,Ge=je===void 0?null:je,nt=g.step,ft=nt===void 0?1:nt,dt=g.isStopPropagation,vt=dt===void 0||dt,Nt=g.model,sn=Nt===void 0?null:Nt,hn=g.data,Qn=hn===void 0?null:hn;(function(ln,Mn){if(!(ln instanceof Mn))throw new TypeError("Cannot call a class as a function")})(this,d),ti(this,"onDragStart",void 0),ti(this,"onDragging",void 0),ti(this,"onDragEnd",void 0),ti(this,"step",void 0),ti(this,"isStopPropagation",void 0),ti(this,"isDragging",!1),ti(this,"isStartDragging",!1),ti(this,"startX",0),ti(this,"startY",0),ti(this,"sumDeltaX",0),ti(this,"sumDeltaY",0),ti(this,"eventType",void 0),ti(this,"eventCenter",void 0),ti(this,"model",void 0),ti(this,"data",void 0),ti(this,"startTime",void 0),ti(this,"handleMouseDown",function(ln){var Mn,mn,Ar,Dr=(Mn=window)===null||Mn===void 0?void 0:Mn.document;if(ln.button===0){w.isStopPropagation&&ln.stopPropagation(),w.isStartDragging=!0,w.startX=ln.clientX,w.startY=ln.clientY,Dr.addEventListener("mousemove",w.handleMouseMove,!1),Dr.addEventListener("mouseup",w.handleMouseUp,!1);var tr=(mn=w.model)===null||mn===void 0?void 0:mn.getData();(Ar=w.eventCenter)===null||Ar===void 0||Ar.emit(An["".concat(w.eventType,"_MOUSEDOWN")],{e:ln,data:w.data||tr}),w.startTime=new Date().getTime()}}),ti(this,"handleMouseMove",function(ln){if(w.isStopPropagation&&ln.stopPropagation(),w.isStartDragging&&(w.sumDeltaX+=ln.clientX-w.startX,w.sumDeltaY+=ln.clientY-w.startY,w.startX=ln.clientX,w.startY=ln.clientY,w.step<=1||Math.abs(w.sumDeltaX)>w.step||Math.abs(w.sumDeltaY)>w.step)){var Mn,mn=w.sumDeltaX%w.step,Ar=w.sumDeltaY%w.step,Dr=w.sumDeltaX-mn,tr=w.sumDeltaY-Ar;w.sumDeltaX=mn,w.sumDeltaY=Ar;var Ur,ci=(Mn=w.model)===null||Mn===void 0?void 0:Mn.getData();w.isDragging||((Ur=w.eventCenter)===null||Ur===void 0||Ur.emit(An["".concat(w.eventType,"_DRAGSTART")],{e:ln,data:w.data||ci}),w.onDragStart({event:ln})),w.isDragging=!0,Promise.resolve().then(function(){var fi,Ma;w.onDragging({deltaX:Dr,deltaY:tr,event:ln}),(fi=w.eventCenter)===null||fi===void 0||fi.emit(An["".concat(w.eventType,"_MOUSEMOVE")],{e:ln,data:w.data||ci}),(Ma=w.eventCenter)===null||Ma===void 0||Ma.emit(An["".concat(w.eventType,"_DRAG")],{e:ln,data:w.data||ci})})}}),ti(this,"handleMouseUp",function(ln){var Mn=window.document;w.isStartDragging=!1,w.isStopPropagation&&ln.stopPropagation(),Promise.resolve().then(function(){var mn,Ar,Dr;Mn.removeEventListener("mousemove",w.handleMouseMove,!1),Mn.removeEventListener("mouseup",w.handleMouseUp,!1);var tr=(mn=w.model)===null||mn===void 0?void 0:mn.getData();(Ar=w.eventCenter)===null||Ar===void 0||Ar.emit(An["".concat(w.eventType,"_MOUSEUP")],{e:ln,data:w.data||tr}),w.isDragging&&(w.isDragging=!1,w.onDragEnd({event:ln}),(Dr=w.eventCenter)===null||Dr===void 0||Dr.emit(An["".concat(w.eventType,"_DROP")],{e:ln,data:w.data||tr}))})}),ti(this,"cancelDrag",function(){var ln,Mn=(ln=window)===null||ln===void 0?void 0:ln.document;Mn.removeEventListener("mousemove",w.handleMouseMove,!1),Mn.removeEventListener("mouseup",w.handleMouseUp,!1),w.onDragEnd({event:null}),w.isDragging=!1}),this.onDragStart=x,this.onDragging=D,this.onDragEnd=te,this.step=ft,this.isStopPropagation=vt,this.eventType=we,this.eventCenter=Ge,this.model=sn,this.data=Qn}var c,p;return c=d,(p=[{key:"setStep",value:function(g){this.step=g}},{key:"setModel",value:function(g){this.model=g}}])&&uT(c.prototype,p),d}();function $v(d){return $v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},$v(d)}function t_(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Av(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function n_(d,c,p){return c&&Av(d.prototype,c),p&&Av(d,p),d}function r_(d,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(c&&c.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),c&&vg(d,c)}function ha(d){var c=Mv();return function(){var p,g=yg(d);if(c){var w=yg(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return o_(this,p)}}function o_(d,c){if(c&&($v(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jf(d)}function Jf(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function i_(d){var c=typeof Map=="function"?new Map:void 0;return i_=function(p){if(p===null||(g=p,Function.toString.call(g).indexOf("[native code]")===-1))return p;var g;if(typeof p!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(p))return c.get(p);c.set(p,w)}function w(){return mg(p,arguments,yg(this).constructor)}return w.prototype=Object.create(p.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),vg(w,p)},i_(d)}function mg(d,c,p){return mg=Mv()?Reflect.construct:function(g,w,_){var x=[null];x.push.apply(x,w);var M=new(Function.bind.apply(g,x));return _&&vg(M,_.prototype),M},mg.apply(null,arguments)}function Mv(){if(typeof Reflect=="undefined"||!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 vg(d,c){return vg=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},vg(d,c)}function yg(d){return yg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},yg(d)}function a_(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function s_(d,c){return d instanceof Vi&&c instanceof Vi}var hS=function(d){r_(p,d);var c=ha(p);function p(g,w,_){var x;return t_(this,p),a_(Jf(x=c.call(this,3)),"x",void 0),a_(Jf(x),"y",void 0),a_(Jf(x),"z",void 0),x[0]=g,x[1]=w,x[2]=_,x.x=g,x.y=w,x.z=_,Object.setPrototypeOf(Jf(x),p.prototype),x}return n_(p,[{key:"add",value:function(g){if(s_(this,g))return new Vi(this.x+g.x,this.y+g.y);var w=this.z+g.z;return new vh((this.x+g.x)/w,(this.y+g.y)/w)}},{key:"subtract",value:function(g){if(s_(this,g))return new Vi(this.x-g.x,this.y-g.y);var w=this.z-g.z;return w===0?new Vi(this.x-g.x,this.y-g.y):new vh((this.x-g.x)/w,(this.y-g.y)/w)}}]),p}(i_(Array)),Vi=function(d){r_(p,d);var c=ha(p);function p(g,w,_){var x;return t_(this,p),x=c.call(this,g,w,_!=null?_:0),Object.setPrototypeOf(Jf(x),p.prototype),x}return n_(p,[{key:"toString",value:function(){return"Vector"}},{key:"dot",value:function(g){var w=this;return g.reduce(function(_,x,M){return _+x*w[M]})}},{key:"cross",value:function(g){return new p(this.y*g.z-this.z*g.y,this.z*g.x-this.x*g.z,this.x*g.y-this.y*g.x)}},{key:"getLength",value:function(){return Math.hypot(this.x,this.y)}},{key:"normalize",value:function(){var g=this.getLength();return new p(this.x/g,this.y/g)}},{key:"crossZ",value:function(g){return this.x*g.y-this.y*g.x}},{key:"angle",value:function(g){var w=this.crossZ(g),_=Math.acos(this.normalize().dot(g.normalize()));return w>=0?_:-_}}]),p}(hS),vh=function(d){r_(p,d);var c=ha(p);function p(g,w){var _;return t_(this,p),_=c.call(this,g,w,1),Object.setPrototypeOf(Jf(_),p.prototype),_}return n_(p,[{key:"toString",value:function(){return"Point"}}]),p}(hS);o(67),o(217);function bg(d){return bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},bg(d)}function l_(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||gS(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function pS(d){return function(c){if(Array.isArray(c))return u_(c)}(d)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(d)||gS(d)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gS(d,c){if(d){if(typeof d=="string")return u_(d,c);var p=Object.prototype.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?u_(d,c):void 0}}function u_(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function yh(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function mS(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function Rv(d,c,p){return c&&mS(d.prototype,c),p&&mS(d,p),d}function Nv(d,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(c&&c.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),c&&tt(d,c)}function S(d){var c=Re();return function(){var p,g=it(d);if(c){var w=it(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return E(this,p)}}function E(d,c){if(c&&(bg(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(d)}function F(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function ie(d){var c=typeof Map=="function"?new Map:void 0;return ie=function(p){if(p===null||(g=p,Function.toString.call(g).indexOf("[native code]")===-1))return p;var g;if(typeof p!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(p))return c.get(p);c.set(p,w)}function w(){return pe(p,arguments,it(this).constructor)}return w.prototype=Object.create(p.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),tt(w,p)},ie(d)}function pe(d,c,p){return pe=Re()?Reflect.construct:function(g,w,_){var x=[null];x.push.apply(x,w);var M=new(Function.bind.apply(g,x));return _&&tt(M,_.prototype),M},pe.apply(null,arguments)}function Re(){if(typeof Reflect=="undefined"||!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 tt(d,c){return tt=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},tt(d,c)}function it(d){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},it(d)}function ht(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var Ue,Rt,Zt,Cn,In,Zn,Vt,Jt,Jn,wn,er,ar,Mr,Ln=function(d){Nv(p,d);var c=S(p);function p(){var g;yh(this,p);for(var w=arguments.length,_=new Array(w),x=0;x<w;x++)_[x]=arguments[x];return ht(F(g=c.call(this,_.length)),"rows",void 0),ht(F(g),"columns",void 0),g.fill(new Array(3)),_.forEach(function(M,D){g[D]=M}),g.columns=_[0].length,g.rows=_.length,Object.setPrototypeOf(F(g),p.prototype),g}return Rv(p,[{key:"getRow",value:function(g){return this[g]}},{key:"getColumn",value:function(g){return pS(this.map(function(w){return w[g]}))}},{key:"transpose",value:function(){for(var g=[],w=0;w<this.columns;w++)g.push(this.getColumn(w));return pe(p,g)}},{key:"cross",value:function(g){var w=new Array(this.rows).fill("").map(function(){return[]});if(this.columns===g.rows)for(var _=0;_<this.rows;_++)for(var x=this.getRow(_),M=function(H){var te=g.getColumn(H);w[_][H]=x.reduce(function(de,we,je){return de+we*te[je]},0)},D=0;D<g.columns;D++)M(D);return pe(p,pS(w))}},{key:"to2D",value:function(){return this.map(function(g){return[g[0],g[1]]})}},{key:"toPoints",value:function(){return this.map(function(g){return new vh(g[0],g[1])})}},{key:"toString",value:function(){var g=l_(this[0],2),w=g[0],_=g[1],x=l_(this[1],2),M=x[0],D=x[1],H=l_(this[2],2),te=H[0],de=H[1];return"matrix(".concat(w," ").concat(_," ").concat(M," ").concat(D," ").concat(te," ").concat(de,")")}},{key:"translate",value:function(g,w){return this.cross(new Ki(g,w))}},{key:"rotate",value:function(g){return this.cross(new Xn(g))}},{key:"scale",value:function(g,w){return this.cross(new bi(g,w))}}]),p}(ie(Array)),Xn=function(d){Nv(p,d);var c=S(p);function p(g){var w;return yh(this,p),w=c.call(this,new Vi(+Math.cos(g).toFixed(2),+Math.sin(g).toFixed(2),0),new Vi(-Math.sin(g).toFixed(2),+Math.cos(g).toFixed(2),0),new Vi(0,0,1)),Object.setPrototypeOf(F(w),p.prototype),w}return Rv(p,[{key:"inverse",value:function(){return this.transpose()}}]),p}(Ln),bi=function(d){Nv(p,d);var c=S(p);function p(g,w){var _;return yh(this,p),ht(F(_=c.call(this,new Vi(g,0,0),new Vi(0,w,0),new Vi(0,0,1))),"sx",void 0),ht(F(_),"sy",void 0),_.sx=g,_.sy=w,Object.setPrototypeOf(F(_),p.prototype),_}return Rv(p,[{key:"inverse",value:function(){return new p(1/this.sx,1/this.sy)}}]),p}(Ln),Ki=function(d){Nv(p,d);var c=S(p);function p(g,w){var _;return yh(this,p),ht(F(_=c.call(this,new Vi(1,0,0),new Vi(0,1,0),new Vi(g,w,1))),"tx",void 0),ht(F(_),"ty",void 0),_.tx=g,_.ty=w,Object.setPrototypeOf(F(_),p.prototype),_}return Rv(p,[{key:"inverse",value:function(){return new p(-this.tx,-this.ty)}}]),p}(Ln),Ol={node:!1,edge:!1},Ei={node:!0,edge:!0};function cu(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function wl(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?cu(Object(p),!0).forEach(function(g){_s(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):cu(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function tc(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||ed(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function nc(d){return function(c){if(Array.isArray(c))return rc(c)}(d)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(d)||ed(d)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ed(d,c){if(d){if(typeof d=="string")return rc(d,c);var p=Object.prototype.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?rc(d,c):void 0}}function rc(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function _g(d){return _g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},_g(d)}function bs(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function Iv(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function _s(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Bn(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var Og,c_=200,wg=(Ue=function(){function d(g){(function(je,Ge){if(!(je instanceof Ge))throw new TypeError("Cannot call a class as a function")})(this,d),_s(this,"rootEl",void 0),bs(this,"width",Rt,this),bs(this,"height",Zt,this),_s(this,"theme",void 0),_s(this,"eventCenter",void 0),_s(this,"modelMap",new Map),_s(this,"topElement",void 0),_s(this,"animation",void 0),_s(this,"idGenerator",void 0),_s(this,"edgeGenerator",void 0),_s(this,"nodeMoveRules",[]),_s(this,"customTrajectory",void 0),bs(this,"edgeType",Cn,this),bs(this,"nodes",In,this),bs(this,"edges",Zn,this),bs(this,"overlapMode",Vt,this),bs(this,"background",Jt,this),bs(this,"transformModel",Jn,this),bs(this,"editConfigModel",wn,this),bs(this,"gridSize",er,this),bs(this,"partial",ar,this),bs(this,"fakerNode",Mr,this);var w,_=g.container,x=g.background,M=x===void 0?{}:x,D=g.grid,H=g.idGenerator,te=g.edgeGenerator,de=g.animation,we=g.customTrajectory;this.background=M,_g(D)==="object"&&(this.gridSize=D.size),this.rootEl=_,this.editConfigModel=new K0(g),this.eventCenter=new dv,this.transformModel=new ww(this.eventCenter,g),this.theme=og(g.style),this.edgeType=g.edgeType||"polyline",this.width=g.width,this.height=g.height,this.animation=(w=de)&&typeof w!="boolean"?rg(Po(Ol),w):Po(w===!0?Ei:Ol),this.partial=g.partial,this.overlapMode=g.overlapMode||0,this.idGenerator=H,this.customTrajectory=we,this.edgeGenerator=dS(this,te),this.width=g.width||this.rootEl.getBoundingClientRect().width,this.height=g.height||this.rootEl.getBoundingClientRect().height,this.flowId=bl()}var c,p;return c=d,p=[{key:"nodesMap",get:function(){return this.nodes.reduce(function(g,w,_){return g[w.id]={index:_,model:w},g},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(g,w,_){return g[w.id]={index:_,model:w},g},{})}},{key:"modelsMap",get:function(){return[].concat(nc(this.nodes),nc(this.edges)).reduce(function(g,w){return g[w.id]=w,g},{})}},{key:"sortElements",get:function(){var g=[];this.nodes.forEach(function(H){return g.push(H)}),this.edges.forEach(function(H){return g.push(H)}),g=g.sort(function(H,te){return H.zIndex-te.zIndex});for(var w=[],_=[-200,-200],x=[this.width+c_,this.height+c_],M=0;M<g.length;M++){var D=g[M];D.visible&&(!this.partial||D.isSelected||this.isElementInArea(D,_,x,!1,!1))&&w.push(D)}return w}},{key:"textEditElement",get:function(){var g=this.nodes.find(function(_){return _.state===Jr.TEXT_EDIT}),w=this.edges.find(function(_){return _.state===Jr.TEXT_EDIT});return g||w}},{key:"selectElements",get:function(){var g=new Map;return this.nodes.forEach(function(w){w.isSelected&&g.set(w.id,w)}),this.edges.forEach(function(w){w.isSelected&&g.set(w.id,w)}),g}},{key:"selectNodes",get:function(){var g=[];return this.nodes.forEach(function(w){w.isSelected&&g.push(w)}),g}},{key:"getAreaElement",value:function(g,w){var _=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],x=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],M=arguments.length>4&&arguments[4]!==void 0&&arguments[4],D=[],H=[];this.nodes.forEach(function(we){return H.push(we)}),this.edges.forEach(function(we){return H.push(we)});for(var te=0;te<H.length;te++){var de=H[te];M&&!de.visible||!this.isElementInArea(de,g,w,_,x)||D.push(de)}return D}},{key:"getModel",value:function(g){return this.modelMap.get(g)}},{key:"getNodeModelById",value:function(g){var w;return this.fakerNode&&g===this.fakerNode.id?this.fakerNode:(w=this.nodesMap[g])===null||w===void 0?void 0:w.model}},{key:"getPointByClient",value:function(g){var w=g.x,_=g.y,x=this.rootEl.getBoundingClientRect(),M={x:w-x.left,y:_-x.top},D=tc(this.transformModel.HtmlPointToCanvasPoint([M.x,M.y]),2);return{domOverlayPosition:M,canvasOverlayPosition:{x:D[0],y:D[1]}}}},{key:"isElementInArea",value:function(g,w,_){var x=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],M=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];if(g.BaseType===ui.NODE){for(var D=ys(g=g),H=D.minX,te=D.minY,de=D.maxX,we=D.maxY,je=[{x:H,y:te},{x:de,y:te},{x:de,y:we},{x:H,y:we}],Ge=M,nt=0;nt<je.length;nt++){var ft=je[nt],dt=ft.x,vt=ft.y,Nt=this.transformModel.CanvasPointToHtmlPoint([dt,vt]),sn=tc(Nt,2);if(dt=sn[0],vt=sn[1],gv([dt,vt],w,_)!==M){Ge=!M;break}}return Ge}if(g.BaseType===ui.EDGE){var hn=g=g,Qn=hn.startPoint,ln=hn.endPoint,Mn=this.transformModel.CanvasPointToHtmlPoint([Qn.x,Qn.y]),mn=this.transformModel.CanvasPointToHtmlPoint([ln.x,ln.y]),Ar=gv(Mn,w,_),Dr=gv(mn,w,_);return x?Ar&&Dr:Ar||Dr}return!1}},{key:"graphDataToModel",value:function(g){var w=this;if(this.width&&this.height||this.resize(),!g)return this.nodes=[],void(this.edges=[]);g.nodes?this.nodes=Zm(g.nodes,function(_){var x=w.getModel(_.type);if(!x)throw new Error("\u627E\u4E0D\u5230".concat(_.type,"\u5BF9\u5E94\u7684\u8282\u70B9\u3002"));var M=_.x,D=_.y;return M&&D&&(_.x=au(M,w.gridSize),_.y=au(D,w.gridSize),_g(_.text)==="object"&&(_.text.x-=sh(M,w.gridSize),_.text.y-=sh(D,w.gridSize))),new x(_,w)}):this.nodes=[],g.edges?this.edges=Zm(g.edges,function(_){var x=w.getModel(_.type);if(!x)throw new Error("\u627E\u4E0D\u5230".concat(_.type,"\u5BF9\u5E94\u7684\u8FB9\u3002"));return new x(_,w)}):this.edges=[]}},{key:"modelToGraphData",value:function(){var g=[];this.edges.forEach(function(_){var x=_.getData();x&&!_.virtual&&g.push(x)});var w=[];return this.nodes.forEach(function(_){var x=_.getData();x&&!_.virtual&&w.push(x)}),{nodes:w,edges:g}}},{key:"modelToHistoryData",value:function(){for(var g=!1,w=[],_=0;_<this.nodes.length;_++){var x=this.nodes[_];if(x.isDragging){g=!0;break}w.push(x.getHistoryData())}if(g)return!1;for(var M=!1,D=[],H=0;H<this.edges.length;H++){var te=this.edges[H];if(te.isDragging){M=!0;break}D.push(te.getHistoryData())}return!M&&{nodes:w,edges:D}}},{key:"getEdgeModelById",value:function(g){var w;return(w=this.edgesMap[g])===null||w===void 0?void 0:w.model}},{key:"getElement",value:function(g){return this.modelsMap[g]}},{key:"getNodeEdges",value:function(g){for(var w=[],_=0;_<this.edges.length;_++){var x=this.edges[_],M=this.edges[_].sourceNodeId===g,D=this.edges[_].targetNodeId===g;(M||D)&&w.push(x)}return w}},{key:"getSelectElements",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],w=this.selectElements,_={nodes:[],edges:[]};return w.forEach(function(x){if(x.BaseType===ui.NODE&&_.nodes.push(x.getData()),x.BaseType===ui.EDGE){var M=x.getData(),D=w.get(M.sourceNodeId)&&w.get(M.targetNodeId);(g||D)&&_.edges.push(M)}}),_}},{key:"updateAttributes",value:function(g,w){this.getElement(g).updateAttributes(w)}},{key:"changeNodeId",value:function(g,w){return w||(w=bl()),this.nodesMap[w]?"":this.nodesMap[g]?(this.edges.forEach(function(_){_.sourceNodeId===g&&(_.sourceNodeId=w),_.targetNodeId===g&&(_.targetNodeId=w)}),this.nodesMap[g].model.id=w,this.nodesMap[w]=this.nodesMap[g],w):""}},{key:"changeEdgeId",value:function(g,w){return w||(w=bl()),this.edgesMap[w]?"":this.edgesMap[g]?(this.edges.forEach(function(_){_.id===g&&_.changeEdgeId(w)}),w):""}},{key:"setFakerNode",value:function(g){this.fakerNode=g}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(g,w){return this.modelMap.set(g,w)}},{key:"toFront",value:function(g){var w,_,x,M=((w=this.nodesMap[g])===null||w===void 0?void 0:w.model)||((_=this.edgesMap[g])===null||_===void 0?void 0:_.model);M&&(this.overlapMode===Do.DEFAULT&&((x=this.topElement)===null||x===void 0||x.setZIndex(),M.setZIndex(9999),this.topElement=M),this.overlapMode===Do.INCREASE&&this.setElementZIndex(g,"top"))}},{key:"setElementZIndex",value:function(g,w){var _,x,M,D=((_=this.nodesMap[g])===null||_===void 0?void 0:_.model)||((x=this.edgesMap[g])===null||x===void 0?void 0:x.model);D&&(typeof w=="number"&&(M=w),w==="top"&&(M=Tb()),w==="bottom"&&(M=--Xw),D.setZIndex(M))}},{key:"deleteNode",value:function(g){var w=this.nodesMap[g].model.getData();this.deleteEdgeBySource(g),this.deleteEdgeByTarget(g),this.nodes.splice(this.nodesMap[g].index,1),this.eventCenter.emit(An.NODE_DELETE,{data:w})}},{key:"addNode",value:function(g){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:An.NODE_ADD,_=arguments.length>2?arguments[2]:void 0,x=_o(g);x.id&&this.nodesMap[g.id]&&delete x.id;var M=this.getModel(x.type);if(!M)throw new Error("\u627E\u4E0D\u5230".concat(x.type,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));x.x=au(x.x,this.gridSize),x.y=au(x.y,this.gridSize);var D=new M(x,this);this.nodes.push(D);var H=D.getData(),te={data:H};return _&&(te.e=_),this.eventCenter.emit(w,te),D}},{key:"cloneNode",value:function(g){var w=this.getNodeModelById(g),_=w.getData();_.x+=30,_.y+=30,delete _.id,_.text&&(_.text.x+=30,_.text.y+=30);var x=this.addNode(_);return x.setSelected(!0),w.setSelected(!1),x.getData()}},{key:"moveNode",value:function(g,w,_){var x=arguments.length>3&&arguments[3]!==void 0&&arguments[3],M=this.nodesMap[g];if(M){var D=M.model,H=D.getMoveDistance(w,_,x),te=tc(H,2);w=te[0],_=te[1],this.moveEdge(g,w,_)}}},{key:"moveNode2Coordinate",value:function(g,w,_){var x=arguments.length>3&&arguments[3]!==void 0&&arguments[3],M=this.nodesMap[g];if(M){var D=M.model,H=D.x,te=D.y,de=w-H,we=_-te;this.moveNode(g,de,we,x)}}},{key:"editText",value:function(g){this.setElementStateById(g,Jr.TEXT_EDIT)}},{key:"addEdge",value:function(g){var w=_o(g),_=w.type;_||(_=this.edgeType),w.id&&this.edgesMap[w.id]&&delete w.id;var x=this.getModel(_);if(!x)throw new Error("\u627E\u4E0D\u5230".concat(_,"\u5BF9\u5E94\u7684\u8FB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8FB9\u3002"));var M=new x(wl(wl({},w),{},{type:_}),this),D=M.getData();return this.edges.push(M),this.eventCenter.emit(An.EDGE_ADD,{data:D}),M}},{key:"moveEdge",value:function(g,w,_){for(var x=0;x<this.edges.length;x++){var M=this.edges[x],D=M.textPosition,H=D.x,te=D.y,de=this.edges[x].sourceNodeId===g,we=this.edges[x].targetNodeId===g;de&&M.moveStartPoint(w,_),we&&M.moveEndPoint(w,_),(de||we)&&this.handleEdgeTextMove(M,H,te)}}},{key:"handleEdgeTextMove",value:function(g,w,_){var x;if(g.customTextPosition===!0)g.resetTextPosition();else if(g.modelType===kr.POLYLINE_EDGE&&(x=g.text)!==null&&x!==void 0&&x.value){var M=g.text,D=Gb(M,g.points);g.moveText(D.x-M.x,D.y-M.y)}else{var H=g.textPosition,te=H.x,de=H.y;g.moveText(te-w,de-_)}}},{key:"deleteEdgeBySourceAndTarget",value:function(g,w){for(var _=0;_<this.edges.length;_++)if(this.edges[_].sourceNodeId===g&&this.edges[_].targetNodeId===w){var x=this.edges[_].getData();this.edges.splice(_,1),_--,this.eventCenter.emit(An.EDGE_DELETE,{data:x})}}},{key:"deleteEdgeById",value:function(g){if(this.edgesMap[g]){var w=this.edgesMap[g].index,_=this.edgesMap[g].model.getData();this.edges.splice(w,1),this.eventCenter.emit(An.EDGE_DELETE,{data:_})}}},{key:"deleteEdgeBySource",value:function(g){for(var w=0;w<this.edges.length;w++)if(this.edges[w].sourceNodeId===g){var _=this.edges[w].getData();this.edges.splice(w,1),w--,this.eventCenter.emit(An.EDGE_DELETE,{data:_})}}},{key:"deleteEdgeByTarget",value:function(g){for(var w=0;w<this.edges.length;w++)if(this.edges[w].targetNodeId===g){var _=this.edges[w].getData();this.edges.splice(w,1),w--,this.eventCenter.emit(An.EDGE_DELETE,{data:_})}}},{key:"setElementStateById",value:function(g,w,_){this.nodes.forEach(function(x){x.id===g?x.setElementState(w,_):x.setElementState(Jr.DEFAULT)}),this.edges.forEach(function(x){x.id===g?x.setElementState(w,_):x.setElementState(Jr.DEFAULT)})}},{key:"updateText",value:function(g,w){this.nodes.forEach(function(_){_.id===g&&_.updateText(w)}),this.edges.forEach(function(_){_.id===g&&_.updateText(w)})}},{key:"selectNodeById",value:function(g){var w,_=arguments.length>1&&arguments[1]!==void 0&&arguments[1];_||this.clearSelectElements();var x=(w=this.nodesMap[g])===null||w===void 0?void 0:w.model;x==null||x.setSelected(!0)}},{key:"selectEdgeById",value:function(g){var w,_=arguments.length>1&&arguments[1]!==void 0&&arguments[1];_||this.clearSelectElements();var x=(w=this.edgesMap[g])===null||w===void 0?void 0:w.model;x==null||x.setSelected(!0)}},{key:"selectElementById",value:function(g){var w=arguments.length>1&&arguments[1]!==void 0&&arguments[1];w||this.clearSelectElements();var _=this.getElement(g);_==null||_.setSelected(!0)}},{key:"clearSelectElements",value:function(){var g;this.selectElements.forEach(function(w){w==null||w.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===Do.DEFAULT&&((g=this.topElement)===null||g===void 0||g.setZIndex())}},{key:"moveNodes",value:function(g,w,_){for(var x=this,M=arguments.length>3&&arguments[3]!==void 0&&arguments[3],D=g.reduce(function(sn,hn){var Qn=x.nodesMap[hn].model.getMoveDistance(w,_,M);return sn[hn]=Qn,sn},{}),H=0;H<this.edges.length;H++){var te=this.edges[H],de=te.textPosition,we=de.x,je=de.y,Ge=D[te.sourceNodeId],nt=void 0,ft=void 0;if(Ge){var dt=tc(Ge,2);nt=dt[0],ft=dt[1],te.moveStartPoint(nt,ft)}var vt=D[te.targetNodeId];if(vt){var Nt=tc(vt,2);nt=Nt[0],ft=Nt[1],te.moveEndPoint(nt,ft)}(Ge||vt)&&this.handleEdgeTextMove(te,we,je)}}},{key:"addNodeMoveRules",value:function(g){this.nodeMoveRules.includes(g)||this.nodeMoveRules.push(g)}},{key:"setDefaultEdgeType",value:function(g){this.edgeType=g}},{key:"changeNodeType",value:function(g,w){var _=this.getNodeModelById(g);if(_){var x=_.getData();x.type=w;var M=this.getModel(w);if(!M)throw new Error("\u627E\u4E0D\u5230".concat(w,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var D=new M(x,this);this.nodes.splice(this.nodesMap[g].index,1,D),this.getNodeEdges(g).forEach(function(H){if(H.sourceNodeId===g){var te=Cb(D,H.startPoint,D.width,D.height);H.updateStartPoint(te)}if(H.targetNodeId===g){var de=Cb(D,H.endPoint,D.width,D.height);H.updateEndPoint(de)}})}}},{key:"changeEdgeType",value:function(g,w){var _=this.getEdgeModelById(g);if(_&&_.type!==w){var x=_.getData();x.type=w;var M=this.getModel(w);if(!M)throw new Error("\u627E\u4E0D\u5230".concat(w,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));delete x.pointsList;var D=new M(x,this);this.edges.splice(this.edgesMap[g].index,1,D)}}},{key:"getNodeIncomingEdge",value:function(g){var w=[];return this.edges.forEach(function(_){_.targetNodeId===g&&w.push(_)}),w}},{key:"getNodeOutgoingEdge",value:function(g){var w=[];return this.edges.forEach(function(_){_.sourceNodeId===g&&w.push(_)}),w}},{key:"getNodeIncomingNode",value:function(g){var w=this,_=[];return this.edges.forEach(function(x){x.targetNodeId===g&&_.push(w.nodesMap[x.sourceNodeId].model)}),_}},{key:"getNodeOutgoingNode",value:function(g){var w=this,_=[];return this.edges.forEach(function(x){x.sourceNodeId===g&&_.push(w.nodesMap[x.targetNodeId].model)}),_}},{key:"setTheme",value:function(g){this.theme=og(wl(wl({},this.theme),g))}},{key:"resize",value:function(g,w){this.width=g||this.rootEl.getBoundingClientRect().width,this.height=w||this.rootEl.getBoundingClientRect().height,!this.width||this.height}},{key:"clearData",value:function(){this.nodes=[],this.edges=[]}},{key:"getVirtualRectSize",value:function(){var g=this.nodes,w=[],_=[];g.forEach(function(de){var we=de.x,je=de.y,Ge=de.width,nt=de.height,ft=de.getNodeStyle().strokeWidth,dt=ft===void 0?0:ft,vt=we+Ge/2+dt,Nt=we-Ge/2-dt,sn=je+nt/2+dt,hn=je-nt/2-dt;w=w.concat([vt,Nt].filter(function(Qn){return!Number.isNaN(Qn)})),_=_.concat([sn,hn].filter(function(Qn){return!Number.isNaN(Qn)}))});var x=Math.min.apply(Math,nc(w)),M=Math.max.apply(Math,nc(w)),D=Math.min.apply(Math,nc(_)),H=M-x||0,te=Math.max.apply(Math,nc(_))-D||0;return{virtualRectWidth:H,virtualRectHeight:te,virtualRectCenterPositionX:x+H/2,virtualRectCenterPositionY:D+te/2}}},{key:"translateCenter",value:function(){var g=this.nodes,w=this.width,_=this.height,x=this.rootEl,M=this.transformModel;if(g.length){var D=w||x.clientWidth,H=_||x.clientHeight,te=this.getVirtualRectSize(),de=te.virtualRectCenterPositionX,we=te.virtualRectCenterPositionY;M.focusOn(de,we,D,H)}}},{key:"fitView",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:20,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,_=this.nodes,x=this.width,M=this.height,D=this.rootEl,H=this.transformModel;if(_.length){var te=x||D.clientWidth,de=M||D.clientHeight,we=this.getVirtualRectSize(),je=we.virtualRectWidth,Ge=we.virtualRectHeight,nt=we.virtualRectCenterPositionX,ft=we.virtualRectCenterPositionY,dt=(je+w)/te,vt=(Ge+g)/de,Nt=0;Nt=1/Math.max(dt,vt);var sn=[te/2,de/2];H.zoom(Nt,sn),H.focusOn(nt,ft,te,de)}}},{key:"openEdgeAnimation",value:function(g){this.getEdgeModelById(g).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(g){this.getEdgeModelById(g).closeEdgeAnimation()}}],p&&Iv(c.prototype,p),d}(),Rt=Bn(Ue.prototype,"width",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zt=Bn(Ue.prototype,"height",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Cn=Bn(Ue.prototype,"edgeType",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),In=Bn(Ue.prototype,"nodes",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Zn=Bn(Ue.prototype,"edges",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Vt=Bn(Ue.prototype,"overlapMode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Do.DEFAULT}}),Jt=Bn(Ue.prototype,"background",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jn=Bn(Ue.prototype,"transformModel",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wn=Bn(Ue.prototype,"editConfigModel",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),er=Bn(Ue.prototype,"gridSize",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),ar=Bn(Ue.prototype,"partial",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mr=Bn(Ue.prototype,"fakerNode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bn(Ue.prototype,"nodesMap",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"nodesMap"),Ue.prototype),Bn(Ue.prototype,"edgesMap",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"edgesMap"),Ue.prototype),Bn(Ue.prototype,"modelsMap",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"modelsMap"),Ue.prototype),Bn(Ue.prototype,"sortElements",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"sortElements"),Ue.prototype),Bn(Ue.prototype,"textEditElement",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"textEditElement"),Ue.prototype),Bn(Ue.prototype,"selectElements",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"selectElements"),Ue.prototype),Bn(Ue.prototype,"selectNodes",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"selectNodes"),Ue.prototype),Bn(Ue.prototype,"setFakerNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setFakerNode"),Ue.prototype),Bn(Ue.prototype,"removeFakerNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"removeFakerNode"),Ue.prototype),Bn(Ue.prototype,"setModel",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setModel"),Ue.prototype),Bn(Ue.prototype,"toFront",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"toFront"),Ue.prototype),Bn(Ue.prototype,"setElementZIndex",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setElementZIndex"),Ue.prototype),Bn(Ue.prototype,"deleteNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteNode"),Ue.prototype),Bn(Ue.prototype,"addNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"addNode"),Ue.prototype),Bn(Ue.prototype,"cloneNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"cloneNode"),Ue.prototype),Bn(Ue.prototype,"moveNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"moveNode"),Ue.prototype),Bn(Ue.prototype,"moveNode2Coordinate",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"moveNode2Coordinate"),Ue.prototype),Bn(Ue.prototype,"editText",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"editText"),Ue.prototype),Bn(Ue.prototype,"addEdge",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"addEdge"),Ue.prototype),Bn(Ue.prototype,"moveEdge",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"moveEdge"),Ue.prototype),Bn(Ue.prototype,"deleteEdgeBySourceAndTarget",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteEdgeBySourceAndTarget"),Ue.prototype),Bn(Ue.prototype,"deleteEdgeById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteEdgeById"),Ue.prototype),Bn(Ue.prototype,"deleteEdgeBySource",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteEdgeBySource"),Ue.prototype),Bn(Ue.prototype,"deleteEdgeByTarget",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteEdgeByTarget"),Ue.prototype),Bn(Ue.prototype,"setElementStateById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setElementStateById"),Ue.prototype),Bn(Ue.prototype,"updateText",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"updateText"),Ue.prototype),Bn(Ue.prototype,"selectNodeById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"selectNodeById"),Ue.prototype),Bn(Ue.prototype,"selectEdgeById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"selectEdgeById"),Ue.prototype),Bn(Ue.prototype,"selectElementById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"selectElementById"),Ue.prototype),Bn(Ue.prototype,"clearSelectElements",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"clearSelectElements"),Ue.prototype),Bn(Ue.prototype,"moveNodes",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"moveNodes"),Ue.prototype),Bn(Ue.prototype,"setDefaultEdgeType",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setDefaultEdgeType"),Ue.prototype),Bn(Ue.prototype,"changeNodeType",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"changeNodeType"),Ue.prototype),Bn(Ue.prototype,"changeEdgeType",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"changeEdgeType"),Ue.prototype),Bn(Ue.prototype,"getNodeIncomingEdge",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"getNodeIncomingEdge"),Ue.prototype),Bn(Ue.prototype,"getNodeOutgoingEdge",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"getNodeOutgoingEdge"),Ue.prototype),Bn(Ue.prototype,"getNodeIncomingNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"getNodeIncomingNode"),Ue.prototype),Bn(Ue.prototype,"getNodeOutgoingNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"getNodeOutgoingNode"),Ue.prototype),Bn(Ue.prototype,"setTheme",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setTheme"),Ue.prototype),Bn(Ue.prototype,"resize",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"resize"),Ue.prototype),Bn(Ue.prototype,"clearData",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"clearData"),Ue.prototype),Bn(Ue.prototype,"translateCenter",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"translateCenter"),Ue.prototype),Bn(Ue.prototype,"fitView",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"fitView"),Ue.prototype),Bn(Ue.prototype,"openEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"openEdgeAnimation"),Ue.prototype),Bn(Ue.prototype,"closeEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"closeEdgeAnimation"),Ue.prototype),Ue),Dv=wg;function cT(d){return cT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},cT(d)}function fT(){return fT=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},fT.apply(this,arguments)}function Cee(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function dT(d,c){return dT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},dT(d,c)}function Eee(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=vS(d);if(c){var w=vS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Tee(this,p)}}function Tee(d,c){if(c&&(cT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uc(d)}function Uc(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function vS(d){return vS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},vS(d)}function td(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var Jj,Pee=sc(Og=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&dT(_,x)})(w,d);var c,p,g=Eee(w);function w(_){var x;(function(te,de){if(!(te instanceof de))throw new TypeError("Cannot call a class as a function")})(this,w),td(Uc(x=g.call(this)),"stepDrag",void 0),td(Uc(x),"stepScrollX",0),td(Uc(x),"stepScrollY",0),td(Uc(x),"onDragging",function(te){var de=te.deltaX,we=te.deltaY;x.setState({isDragging:!0});var je=x.props.graphModel,Ge=je.transformModel;je.editConfigModel.stopMoveGraph!==!0&&Ge.translate(de,we)}),td(Uc(x),"onDragEnd",function(){x.setState({isDragging:!1})}),td(Uc(x),"zoomHandler",function(te){var de=x.props,we=de.graphModel,je=we.editConfigModel,Ge=we.transformModel,nt=we.gridSize,ft=de.graphModel,dt=te.deltaX,vt=te.deltaY;if(je.stopScrollGraph||te.ctrlKey===!0){if(!je.stopZoomGraph){te.preventDefault();var Nt=ft.getPointByClient({x:te.clientX,y:te.clientY}).canvasOverlayPosition,sn=Nt.x,hn=Nt.y;Ge.zoom(te.deltaY<0,[sn,hn])}}else{if(te.preventDefault(),x.stepScrollX+=dt,x.stepScrollY+=vt,Math.abs(x.stepScrollX)>=nt){var Qn=x.stepScrollX%nt,ln=x.stepScrollX-Qn;Ge.translate(-ln*Ge.SCALE_X,0),x.stepScrollX=Qn}if(Math.abs(x.stepScrollY)>=nt){var Mn=x.stepScrollY%nt,mn=x.stepScrollY-Mn;Ge.translate(0,-mn*Ge.SCALE_Y),x.stepScrollY=Mn}}}),td(Uc(x),"clickHandler",function(te){if(te.target.getAttribute("name")==="canvas-overlay"){var de=x.props.graphModel;de.selectElements.size>0&&de.clearSelectElements(),de.eventCenter.emit(An.BLANK_CLICK,{e:te})}}),td(Uc(x),"handleContextMenu",function(te){if(te.target.getAttribute("name")==="canvas-overlay"){te.preventDefault();var de=x.props.graphModel,we=de.getPointByClient({x:te.clientX,y:te.clientY});de.eventCenter.emit(An.BLANK_CONTEXTMENU,{e:te,position:we})}}),td(Uc(x),"mouseDownHandler",function(te){var de=x.props.graphModel,we=de.eventCenter,je=de.editConfigModel,Ge=de.transformModel.SCALE_X,nt=de.gridSize,ft=te.target,dt=!je.adjustEdge&&!je.adjustNodePosition;(ft.getAttribute("name")==="canvas-overlay"||dt)&&(je.stopMoveGraph!==!0?(x.stepDrag.setStep(nt*Ge),x.stepDrag.handleMouseDown(te)):we.emit(An.BLANK_MOUSEDOWN,{e:te}),x.clickHandler(te))});var M=_.graphModel,D=M.gridSize,H=M.eventCenter;return x.stepDrag=new _l({onDragging:x.onDragging,onDragEnd:x.onDragEnd,step:D,eventType:"BLANK",isStopPropagation:!1,eventCenter:H,model:null}),x.state={isDragging:!1},x}return c=w,(p=[{key:"render",value:function(){var _=this.props.graphModel.transformModel.getTransformStyle().transform,x=this.props,M=x.children,D=x.dnd,H=this.state.isDragging;return Object(Oe.g)("svg",fT({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:H?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},D.eventMap()),Object(Oe.g)("g",{transform:_},M))}}])&&Cee(c.prototype,p),w}(Oe.a))||Og;function hT(d){return hT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},hT(d)}function $ee(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Aee(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function pT(d,c){return pT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},pT(d,c)}function Mee(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=yS(d);if(c){var w=yS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Ree(this,p)}}function Ree(d,c){if(c&&(hT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function yS(d){return yS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},yS(d)}var Nee=sc(Jj=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&pT(_,x)})(w,d);var c,p,g=Mee(w);function w(){return $ee(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"componentDidMount",value:function(){this.triggerToolRender()}},{key:"componentDidUpdate",value:function(){this.triggerToolRender()}},{key:"getTools",value:function(){var _=this.props,x=_.tool,M=_.graphModel,D=x.getTools().map(function(H){return Object(Oe.g)(H,{graphModel:M,logicFlow:x.instance})});return x.components=D,D}},{key:"triggerToolRender",value:function(){var _=this.props,x=_.tool,M=_.graphModel,D=document.querySelector("#ToolOverlay_".concat(M.flowId)),H=x.getInstance();H.components.forEach(function(te){return te(H,D)}),H.components=[]}},{key:"render",value:function(){var _=this.props.graphModel;return Object(Oe.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(_.flowId)},this.getTools())}}])&&Aee(c.prototype,p),w}(Oe.a))||Jj;function gT(d){return gT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},gT(d)}function Iee(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Dee(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function mT(d,c){return mT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},mT(d,c)}function jee(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=bS(d);if(c){var w=bS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Lee(this,p)}}function Lee(d,c){if(c&&(gT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function bS(d){return bS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},bS(d)}var e4,Bee=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&mT(_,x)})(w,d);var c,p,g=jee(w);function w(){return Iee(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"render",value:function(){var _=this.props.background;return Object(Oe.g)("div",{className:"lf-background"},Object(Oe.g)("div",{style:_,className:"lf-background-area"}))}}])&&Dee(c.prototype,p),w}(Oe.a);function vT(d){return vT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},vT(d)}function Vee(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Fee(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function yT(d,c){return yT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},yT(d,c)}function zee(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=_S(d);if(c){var w=_S(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Qee(this,p)}}function Qee(d,c){if(c&&(vT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t4(d)}function t4(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function _S(d){return _S=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},_S(d)}function Wee(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var n4=sc(e4=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&yT(_,x)})(w,d);var c,p,g=zee(w);function w(){var _;Vee(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return Wee(t4(_=g.call.apply(g,[this].concat(M))),"id",bl()),_}return c=w,(p=[{key:"renderDot",value:function(){var _=this.props,x=_.config,M=x.color,D=x.thickness,H=D===void 0?2:D,te=_.size,de=_.visible,we=Math.min(Math.max(2,H),te/2),je=1;return de||(je=0),Object(Oe.g)("rect",{width:we,height:we,rx:we/2,ry:we/2,fill:M,opacity:je})}},{key:"renderMesh",value:function(){var _=this.props,x=_.config,M=x.color,D=x.thickness,H=D===void 0?1:D,te=_.size,de=_.visible,we=Math.min(Math.max(1,H),te/2),je="M ".concat(te," 0 H0 M0 0 V0 ").concat(te),Ge=1;return de||(Ge=0),Object(Oe.g)("path",{d:je,stroke:M,strokeWidth:we,opacity:Ge})}},{key:"render",value:function(){var _=this.props,x=_.type,M=_.size,D=_.graphModel.transformModel,H=[D.SCALE_X,D.SKEW_Y,D.SKEW_X,D.SCALE_Y,D.TRANSLATE_X,D.TRANSLATE_Y].join(","),te="matrix(".concat(H,")");return Object(Oe.g)("div",{className:"lf-grid"},Object(Oe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(Oe.g)("defs",null,Object(Oe.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:te,x:"0",y:"0",width:M,height:M},x==="dot"&&this.renderDot(),x==="mesh"&&this.renderMesh())),Object(Oe.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&Fee(c.prototype,p),w}(Oe.a))||e4;n4.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(53);function bT(d){return bT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},bT(d)}function Yee(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return r4(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return r4(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function r4(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}var o4,jv=function(d){var c={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(d).forEach(function(p){var g=Yee(p,2),w=g[0],_=g[1];(w==="style"||bT(_)!=="object")&&(c[w]=_)}),Object(Oe.g)("line",c)};function _T(d){return _T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},_T(d)}function i4(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function OS(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?i4(Object(p),!0).forEach(function(g){Uee(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):i4(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function Uee(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Hee(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Zee(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function OT(d,c){return OT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},OT(d,c)}function Xee(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=wS(d);if(c){var w=wS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return qee(this,p)}}function qee(d,c){if(c&&(_T(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function wS(d){return wS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},wS(d)}var a4,Kee=sc(o4=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&OT(_,x)})(w,d);var c,p,g=Xee(w);function w(){return Hee(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"render",value:function(){var _=this.props.snaplineModel,x=_.position,M=_.isShowHorizontal,D=_.isShowVertical,H=_.getStyle(),te=x.x,de=te===void 0?0:te,we=x.y,je=we===void 0?0:we,Ge=OS(OS({x1:-1e5,y1:je,x2:1e5,y2:je},H),{},{stroke:M?H.stroke:"none"}),nt=OS(OS({x1:de,y1:-1e5,x2:de,y2:1e5},H),{},{stroke:D?H.stroke:"none"});return Object(Oe.g)("g",{className:"lf-snapline"},Object(Oe.g)(jv,Ge),Object(Oe.g)(jv,nt))}}])&&Zee(c.prototype,p),w}(Oe.a))||o4;function wT(d){return wT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},wT(d)}function Gee(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return s4(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return s4(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function s4(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function bh(d){var c=d.x,p=d.y,g=d.width,w=d.height,_=d.className,x=d.radius,M=c-g/2,D=p-w/2,H={};return Object.entries(d).forEach(function(te){var de=Gee(te,2),we=de[0],je=de[1];wT(je)!=="object"&&(H[we]=je)}),H.className=_?"lf-basic-shape ".concat(_):"lf-basic-shape",x&&(H.rx=x,H.ry=x),H.x=M,H.y=D,Object(Oe.g)("rect",H)}function ST(d){return ST=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},ST(d)}function Lv(){return Lv=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},Lv.apply(this,arguments)}function l4(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function u4(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?l4(Object(p),!0).forEach(function(g){Jee(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):l4(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function Jee(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function ete(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function tte(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function xT(d,c){return xT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},xT(d,c)}function nte(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=SS(d);if(c){var w=SS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return rte(this,p)}}function rte(d,c){if(c&&(ST(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function SS(d){return SS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},SS(d)}bh.defaultProps={className:"",radius:""};var c4,ote=sc(a4=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&xT(_,x)})(w,d);var c,p,g=nte(w);function w(){return ete(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getNodesOutline",value:function(){var _=this.props.graphModel,x=_.nodes,M=_.editConfigModel,D=M.hoverOutline,H=M.nodeSelectedOutline,te=[];return x.forEach(function(de){if(de.isHovered||de.isSelected){var we=de.isHovered,je=de.isSelected,Ge=de.x,nt=de.y,ft=de.width,dt=de.height;if(H&&je||D&&we){var vt=de.getOutlineStyle(),Nt={};if(Object.keys(vt).forEach(function(hn){hn!=="hover"&&(Nt[hn]=vt[hn])}),we){var sn=vt.hover;Nt=u4(u4({},Nt),sn)}te.push(Object(Oe.g)(bh,Lv({transform:de.transform,className:"lf-outline-node",x:Ge,y:nt,width:ft+10,height:dt+10},Nt)))}}}),te}},{key:"getEdgeOutline",value:function(){for(var _=this.props.graphModel,x=_.edges,M=_.editConfigModel,D=M.edgeSelectedOutline,H=M.hoverOutline,te=[],de=0;de<x.length;de++){var we=x[de];(D&&we.isSelected||H&&we.isHovered)&&(we.modelType===kr.LINE_EDGE?te.push(this.getLineOutline(we)):we.modelType===kr.POLYLINE_EDGE?te.push(this.getPolylineOutline(we)):we.modelType===kr.BEZIER_EDGE&&te.push(this.getBezierOutline(we)))}return te}},{key:"getLineOutline",value:function(_){var x=_.startPoint,M=_.endPoint,D=(x.x+M.x)/2,H=(x.y+M.y)/2,te=Math.abs(x.x-M.x)+10,de=Math.abs(x.y-M.y)+10,we=_.getOutlineStyle();return Object(Oe.g)(bh,Lv({className:"lf-outline-edge",x:D,y:H,width:te,height:de},we))}},{key:"getPolylineOutline",value:function(_){var x=_.points,M=Wc(x),D=gh(M,8),H=D.x,te=D.y,de=D.width,we=D.height,je=_.getOutlineStyle();return Object(Oe.g)(bh,Lv({className:"lf-outline",x:H,y:te,width:de,height:we},je))}},{key:"getBezierOutline",value:function(_){var x=_.path,M=Tv(x),D=gh(M,8),H=D.x,te=D.y,de=D.width,we=D.height,je=_.getOutlineStyle();return Object(Oe.g)(bh,Lv({className:"lf-outline",x:H,y:te,width:de,height:we},je))}},{key:"render",value:function(){return Object(Oe.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&tte(c.prototype,p),w}(Oe.a))||a4;function kT(d){return kT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},kT(d)}function ite(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return f4(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return f4(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function f4(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function Bv(d){var c=d.x,p=c===void 0?0:c,g=d.y,w=g===void 0?0:g,_=d.r,x=_===void 0?4:_,M=d.className,D={cx:p,cy:w,r:x,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(d).forEach(function(H){var te=ite(H,2),de=te[0],we=te[1];kT(we)!=="object"&&(D[de]=we)}),D.className=M?"lf-basic-shape ".concat(M):"lf-basic-shape",Object(Oe.g)("circle",D)}function CT(d){return CT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},CT(d)}function ate(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return d4(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return d4(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function d4(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function f_(){return f_=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},f_.apply(this,arguments)}function h4(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function p4(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function g4(d,c,p){return c&&p4(d.prototype,c),p&&p4(d,p),d}function m4(d,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(c&&c.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),c&&ET(d,c)}function ET(d,c){return ET=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},ET(d,c)}function v4(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=kS(d);if(c){var w=kS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return ste(this,p)}}function ste(d,c){if(c&&(CT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xS(d)}function xS(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function kS(d){return kS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},kS(d)}function TT(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var y4,b4=function(d){m4(p,d);var c=v4(p);function p(){var g;return h4(this,p),TT(xS(g=c.call(this)),"dragHandler",void 0),TT(xS(g),"onDragging",function(w){var _=w.event,x=g.props,M=x.graphModel,D=x.bezierModel,H=x.type,te=M.getPointByClient({x:_.clientX,y:_.clientY}).canvasOverlayPosition,de=te.x,we=te.y;D.updateAdjustAnchor({x:de,y:we},H),M.eventCenter.emit(An.EDGE_ADJUST,{data:D.getData()})}),TT(xS(g),"onDragEnd",function(){g.props.bezierModel.isDragging=!1}),g.dragHandler=new _l({onDragging:g.onDragging,onDragEnd:g.onDragEnd}),g}return g4(p,[{key:"render",value:function(){var g=this,w=this.props.position,_=w.x,x=w.y,M=this.props.bezierModel.getEdgeStyle().adjustAnchor;return Object(Oe.g)(Bv,f_({className:"lf-bezier-adjust-anchor",x:_,y:x},M,{onMouseDown:function(D){g.dragHandler.handleMouseDown(D)}}))}}]),p}(Oe.a),lte=sc(c4=function(d){m4(p,d);var c=v4(p);function p(){return h4(this,p),c.apply(this,arguments)}return g4(p,[{key:"getBezierAdjust",value:function(g,w){var _=g.path,x=g.id,M=ate(Tv(_),4),D=M[0],H=M[1],te=M[2],de=M[3],we=g.getEdgeStyle().adjustLine,je=[];return je.push(Object(Oe.g)(jv,f_({x1:D.x,y1:D.y,x2:H.x,y2:H.y},we))),je.push(Object(Oe.g)(b4,{position:H,bezierModel:g,graphModel:w,key:"".concat(x,"_ePre"),type:"sNext"})),je.push(Object(Oe.g)(jv,f_({x1:de.x,y1:de.y,x2:te.x,y2:te.y},we))),je.push(Object(Oe.g)(b4,{position:te,bezierModel:g,graphModel:w,key:"".concat(x,"_sNext"),type:"ePre"})),je}},{key:"selectedBezierEdge",value:function(){for(var g=this.props.graphModel,w=g.edges,_=[],x=0;x<w.length;x++){var M=w[x];M.isSelected&&M.modelType===kr.BEZIER_EDGE&&M.draggable&&_.push(this.getBezierAdjust(M,g))}return _}},{key:"render",value:function(){return Object(Oe.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),p}(Oe.a))||c4;function PT(d){return PT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},PT(d)}function ute(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function cte(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function $T(d,c){return $T=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},$T(d,c)}function fte(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=CS(d);if(c){var w=CS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return dte(this,p)}}function dte(d,c){if(c&&(PT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function CS(d){return CS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},CS(d)}var _4,hte=sc(y4=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&$T(_,x)})(w,d);var c,p,g=fte(w);function w(){return ute(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"render",value:function(){var _=this.props.graphModel.transformModel.getTransformStyle().transform,x=this.props.children;return Object(Oe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(Oe.g)("g",{transform:_},x))}}])&&cte(c.prototype,p),w}(Oe.a))||y4;function AT(d){return AT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},AT(d)}function MT(){return MT=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},MT.apply(this,arguments)}function pte(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function gte(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function RT(d,c){return RT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},RT(d,c)}function mte(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=ES(d);if(c){var w=ES(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return vte(this,p)}}function vte(d,c){if(c&&(AT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function ES(d){return ES=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ES(d)}var yte=sc(_4=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&RT(_,x)})(w,d);var c,p,g=mte(w);function w(){return pte(this,w),g.apply(this,arguments)}return c=w,p=[{key:"getComponent",value:function(_,x){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"canvas-overlay",D=this.props.getView,H=D(_.type);return Object(Oe.g)(H,{key:_.id,model:_,graphModel:x,overlay:M})}},{key:"render",value:function(){var _=this,x=this.props,M=x.graphModel,D=x.tool,H=x.options,te=x.dnd,de=x.snaplineModel,we={};H.width&&(we.width="".concat(M.width,"px")),H.height&&(we.height="".concat(M.height,"px"));var je=H.grid,Ge=M.fakerNode,nt=M.editConfigModel.adjustEdge;return Object(Oe.g)("div",{className:"lf-graph","flow-id":M.flowId,style:we},Object(Oe.g)(Pee,{graphModel:M,dnd:te},Object(Oe.g)("g",{className:"lf-base"},Zm(M.sortElements,function(ft){return _.getComponent(ft,M)})),Ge?this.getComponent(Ge,M):""),Object(Oe.g)(hte,{graphModel:M},Object(Oe.g)(ote,{graphModel:M}),nt?Object(Oe.g)(lte,{graphModel:M}):"",H.snapline!==!1?Object(Oe.g)(Kee,{snaplineModel:de}):""),Object(Oe.g)(Nee,{graphModel:M,tool:D}),H.background&&Object(Oe.g)(Bee,{background:H.background}),H.grid&&Object(Oe.g)(n4,MT({},je,{graphModel:M})))}}],p&>e(c.prototype,p),w}(Oe.a))||_4,bte=yte;function O4(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function TS(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?O4(Object(p),!0).forEach(function(g){nd(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):O4(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function _te(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function nd(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var Ote=function(){function d(g){var w=this;(function(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")})(this,d),nd(this,"nodeConfig",void 0),nd(this,"lf",void 0),nd(this,"fakerNode",void 0),nd(this,"stopDrag",function(){w.nodeConfig=null,window.document.removeEventListener("mouseup",w.stopDrag)}),nd(this,"dragEnter",function(x){w.nodeConfig&&!w.fakerNode&&(w.fakerNode=w.lf.createFakerNode(TS(TS({},w.nodeConfig),w.clientToLocalPoint({x:x.clientX,y:x.clientY}))))}),nd(this,"onDragOver",function(x){if(x.preventDefault(),w.fakerNode){var M=w.clientToLocalPoint({x:x.clientX,y:x.clientY}),D=M.x,H=M.y;w.fakerNode.moveTo(D,H);var te=w.fakerNode.getData();w.lf.setNodeSnapLine(te),w.lf.graphModel.eventCenter.emit(An.NODE_DND_DRAG,{data:te})}return!1}),nd(this,"onDragLeave",function(){w.fakerNode&&(w.lf.removeNodeSnapLine(),w.lf.graphModel.removeFakerNode(),w.fakerNode=null)}),nd(this,"onDrop",function(x){w.lf.graphModel&&x&&w.nodeConfig&&(w.lf.addNode(TS(TS({},w.nodeConfig),w.clientToLocalPoint({x:x.clientX,y:x.clientY})),An.NODE_DND_ADD,x),x.preventDefault(),x.stopPropagation(),w.nodeConfig=null,w.lf.removeNodeSnapLine(),w.lf.graphModel.removeFakerNode(),w.fakerNode=null)});var _=g.lf;this.lf=_}var c,p;return c=d,(p=[{key:"clientToLocalPoint",value:function(g){var w=g.x,_=g.y,x=Kp(this.lf.options,["grid","size"]),M=this.lf.graphModel.getPointByClient({x:w,y:_}).canvasOverlayPosition,D=M.x,H=M.y;return{x:au(D,x),y:au(H,x)}}},{key:"startDrag",value:function(g){this.lf.options.isSilentMode||(this.nodeConfig=g,window.document.addEventListener("mouseup",this.stopDrag))}},{key:"eventMap",value:function(){return{onMouseEnter:this.dragEnter,onMouseOver:this.dragEnter,onMouseMove:this.onDragOver,onMouseLeave:this.onDragLeave,onMouseUp:this.onDrop}}}])&&_te(c.prototype,p),d}();function w4(d){var c=d.container,p=d.grid,g=d.width,w=d.height;if(!c)throw new Error("\u8BF7\u68C0\u67E5 container \u53C2\u6570\u662F\u5426\u6709\u6548");if(typeof g=="string"||typeof w=="string")throw new Error("width\u6216height\u4E0D\u652F\u6301\u4F20\u5165\u5B57\u7B26\u4E32\uFF0C\u8BF7\u4F20\u6570\u5B57");return p&&(d.grid=Ci({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},p)),Ci({},x4,d)}var oo,S4,x4={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function NT(d){return NT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},NT(d)}function IT(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return k4(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return k4(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function k4(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function C4(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function PS(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?C4(Object(p),!0).forEach(function(g){E4(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):C4(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function wte(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function Ste(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function xte(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function d_(){return d_=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=kte(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},d_.apply(this,arguments)}function kte(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=_h(d))!==null;);return d}function DT(d,c){return DT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},DT(d,c)}function Cte(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=_h(d);if(c){var w=_h(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Ete(this,p)}}function Ete(d,c){if(c&&(NT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $S(d)}function $S(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function _h(d){return _h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},_h(d)}function E4(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function oc(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var jT=(oo=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&DT(_,x)})(w,d);var c,p,g=Cte(w);function w(){var _;Ste(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return E4($S(_=g.call.apply(g,[this].concat(M))),"modelType",kr.BEZIER_EDGE),wte($S(_),"path",S4,$S(_)),_}return c=w,(p=[{key:"initEdgeData",value:function(_){this.offset=100,d_(_h(w.prototype),"initEdgeData",this).call(this,_)}},{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.bezier;return PS(PS({},d_(_h(w.prototype),"getEdgeStyle",this).call(this)),Po(_))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var _=0,x=0;return this.pointsList.forEach(function(M){var D=M.x,H=M.y;_+=D,x+=H}),{x:_/this.pointsList.length,y:x/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}},{key:"getData",value:function(){var _=d_(_h(w.prototype),"getData",this).call(this),x=this.pointsList.map(function(M){return{x:M.x,y:M.y}});return PS(PS({},_),{},{pointsList:x})}},{key:"getControls",value:function(){var _=this.startPoint,x=this.endPoint;return Yc({start:_,end:x,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(_){var x=IT(_,4),M=x[0],D=x[1],H=x[2],te=x[3];return"M ".concat(M.x," ").concat(M.y,`
- C `).concat(D.x," ").concat(D.y,`,
- `).concat(H.x," ").concat(H.y,`,
- `).concat(te.x," ").concat(te.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var _=this.getControls(),x=_.sNext,M=_.ePre;this.updatePath(x,M)}},{key:"updatePath",value:function(_,x){_=Po(_),x=Po(x);var M={x:this.startPoint.x,y:this.startPoint.y},D={x:this.endPoint.x,y:this.endPoint.y};if(!_||!x){var H=this.getControls();_=H.sNext,x=H.ePre}this.pointsList=[M,_,x,D],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(_){this.startPoint=_,this.updatePoints()}},{key:"updateEndPoint",value:function(_){this.endPoint=_,this.updatePoints()}},{key:"moveStartPoint",value:function(_,x){this.startPoint.x+=_,this.startPoint.y+=x;var M=IT(this.pointsList,3),D=M[1],H=M[2];D.x+=_,D.y+=x,this.updatePath(D,H)}},{key:"moveEndPoint",value:function(_,x){this.endPoint.x+=_,this.endPoint.y+=x;var M=IT(this.pointsList,3),D=M[1],H=M[2];H.x+=_,H.y+=x,this.updatePath(D,H)}},{key:"updateAdjustAnchor",value:function(_,x){x==="sNext"?this.pointsList[1]=_:x==="ePre"&&(this.pointsList[2]=_),this.path=this.getPath(this.pointsList),this.setText(Object.assign({},this.text,this.textPosition))}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var _=this.pointsList;return _[_.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(_){var x=_.startPoint,M=_.endPoint,D=_.sourceNode,H=_.targetNode,te=Yc({start:x,end:M,sourceNode:D,targetNode:H,offset:this.offset}),de=te.sNext,we=te.ePre;this.pointsList=[x,de,we,M],this.initPoints()}}])&&xte(c.prototype,p),w}($b),S4=oc(oo.prototype,"path",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),oc(oo.prototype,"initPoints",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"initPoints"),oo.prototype),oc(oo.prototype,"updatePoints",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"updatePoints"),oo.prototype),oc(oo.prototype,"updateStartPoint",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"updateStartPoint"),oo.prototype),oc(oo.prototype,"updateEndPoint",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"updateEndPoint"),oo.prototype),oc(oo.prototype,"moveStartPoint",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"moveStartPoint"),oo.prototype),oc(oo.prototype,"moveEndPoint",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"moveEndPoint"),oo.prototype),oc(oo.prototype,"updateAdjustAnchor",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"updateAdjustAnchor"),oo.prototype),oc(oo.prototype,"getAdjustStart",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"getAdjustStart"),oo.prototype),oc(oo.prototype,"getAdjustEnd",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"getAdjustEnd"),oo.prototype),oc(oo.prototype,"updateAfterAdjustStartAndEnd",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"updateAfterAdjustStartAndEnd"),oo.prototype),oo),en,T4,P4,$4,A4,M4,R4,N4,I4,D4,j4,L4,B4,V4,F4,z4,Q4,W4,Y4,U4,H4,Z4,X4,Tte=function(d){return d==null};function Pte(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||q4(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function LT(d){return LT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},LT(d)}function q4(d,c){if(d){if(typeof d=="string")return K4(d,c);var p=Object.prototype.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?K4(d,c):void 0}}function K4(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function G4(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function Os(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?G4(Object(p),!0).forEach(function(g){Ys(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):G4(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function _i(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function $te(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function Ys(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function br(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var rd,J4,od=(en=function(){function d(g,w){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,d),Ys(this,"id",""),_i(this,"type",T4,this),_i(this,"x",P4,this),_i(this,"y",$4,this),_i(this,"text",A4,this),_i(this,"properties",M4,this),_i(this,"_width",R4,this),_i(this,"_height",N4,this),_i(this,"anchorsOffset",I4,this),_i(this,"isSelected",D4,this),_i(this,"isHovered",j4,this),_i(this,"isShowAnchor",L4,this),_i(this,"isDragging",B4,this),_i(this,"isHitable",V4,this),_i(this,"draggable",F4,this),_i(this,"visible",z4,this),_i(this,"enableRotate",Q4,this),Ys(this,"virtual",!1),Ys(this,"graphModel",void 0),_i(this,"zIndex",W4,this),_i(this,"state",Y4,this),_i(this,"autoToFront",U4,this),_i(this,"style",H4,this),_i(this,"transform",Z4,this),_i(this,"_rotate",X4,this),Ys(this,"BaseType",ui.NODE),Ys(this,"modelType",kr.NODE),Ys(this,"additionStateData",void 0),Ys(this,"targetRules",[]),Ys(this,"sourceRules",[]),Ys(this,"moveRules",[]),Ys(this,"hasSetTargetRules",!1),Ys(this,"hasSetSourceRules",!1),this.graphModel=w,this.initNodeData(g),this.setAttributes()}var c,p;return c=d,p=[{key:"width",get:function(){return this._width},set:function(g){this._width=g}},{key:"height",get:function(){return this._height},set:function(g){this._height=g}},{key:"rotate",get:function(){return this._rotate},set:function(g){this._rotate=g;var w=this.x,_=w===void 0?0:w,x=this.y,M=x===void 0?0:x;this.transform=new Ki(-_,-M).rotate(g).translate(_,M).toString()}},{key:"incoming",get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}}},{key:"outgoing",get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}}},{key:"initNodeData",value:function(g){if(g.properties||(g.properties={}),!g.id){var w=this.graphModel.idGenerator,_=w&&w(g.type),x=this.createId();g.id=x||_||bl()}this.formatText(g),Ci(this,function(M){return Uu(M,["id","type","x","y","text","properties","virtual","rotate"])}(g)),this.graphModel.overlapMode===Do.INCREASE&&(this.zIndex=g.zIndex||Tb())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(g){g.text||(g.text={value:"",x:g.x,y:g.y,draggable:!1,editable:!0}),g.text&&typeof g.text=="string"?g.text={value:g.text,x:g.x,y:g.y,draggable:!1,editable:!0}:g.text&&g.text.editable===void 0&&(g.text.editable=!0)}},{key:"getData",value:function(){var g=this.text,w=g.x,_=g.y,x=g.value,M=this.properties;Object(a.x)(M)&&(M=Object(a.I)(M));var D={id:this.id,type:this.type,x:this.x,y:this.y,properties:M};return this.rotate&&(D.rotate=this.rotate),this.graphModel.overlapMode===Do.INCREASE&&(D.zIndex=this.zIndex),x&&(D.text={x:w,y:_,value:x}),D}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"getProperties",value:function(){return Object(a.I)(this.properties)}},{key:"getOuterGAttributes",value:function(){return{className:""}}},{key:"getNodeStyle",value:function(){return Os(Os({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var g=this.graphModel.theme.nodeText;return Po(g)}},{key:"getRotateControlStyle",value:function(){var g=this.graphModel.theme.rotateControl;return Po(g)}},{key:"getAnchorStyle",value:function(g){var w=this.graphModel.theme.anchor;return Po(w)}},{key:"getAnchorLineStyle",value:function(g){var w=this.graphModel.theme.anchorLine;return Po(w)}},{key:"getOutlineStyle",value:function(){var g=this.graphModel.theme.outline;return Po(g)}},{key:"isAllowConnectedAsSource",value:function(g,w,_,x){var M=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var D,H=!0,te=0;te<M.length;te++){var de=M[te];if(!de.validate.call(this,this,g,w,_,x)){H=!1,D=de.message;break}}return{isAllPass:H,msg:D}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(g,w,_,x){var M=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var D,H=!0,te=0;te<M.length;te++){var de=M[te];if(!de.validate.call(this,g,this,w,_,x)){H=!1,D=de.message;break}}return{isAllPass:H,msg:D}}},{key:"isAllowMoveNode",value:function(g,w){var _,x=!0,M=!0,D=function(de,we){var je=typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(!je){if(Array.isArray(de)||(je=q4(de))||we&&de&&typeof de.length=="number"){je&&(de=je);var Ge=0,nt=function(){};return{s:nt,n:function(){return Ge>=de.length?{done:!0}:{done:!1,value:de[Ge++]}},e:function(Nt){throw Nt},f:nt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ft,dt=!0,vt=!1;return{s:function(){je=je.call(de)},n:function(){var Nt=je.next();return dt=Nt.done,Nt},e:function(Nt){vt=!0,ft=Nt},f:function(){try{dt||je.return==null||je.return()}finally{if(vt)throw ft}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(D.s();!(_=D.n()).done;){var H=(0,_.value)(this,g,w);if(!H)return!1;if(LT(H)==="object"){var te=H;if(te.x===!1&&te.y===!1)return!1;x=x&&te.x,M=M&&te.y}}}catch(de){D.e(de)}finally{D.f()}return{x,y:M}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var g=this.anchorsOffset,w=this.id,_=this.x,x=this.y;return g&&g.length>0?g.map(function(M,D){return M.length?(M=M,{id:"".concat(w,"_").concat(D),x:_+M[0],y:x+M[1]}):Os(Os({},M=M),{},{x:_+M.x,y:x+M.y,id:M.id||"".concat(w,"_").concat(D)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(g){return function(w,_){for(var x,M=Ov(_),D=Number.MAX_SAFE_INTEGER,H=0;H<M.length;H++){var te=mi(w.x,w.y,M[H].x,M[H].y);te<D&&(D=te,x={index:H,anchor:zc(zc({},M[H]),{},{x:M[H].x,y:M[H].y,id:M[H].id})})}return x}(g,this)}},{key:"getBounds",value:function(){return{x1:this.x-this.width/2,y1:this.y-this.height/2,x2:this.x+this.width/2,y2:this.y+this.height/2}}},{key:"anchors",get:function(){var g=this.getAnchorsByOffset(),w=this.x,_=this.y,x=this.rotate;return g.forEach(function(M){var D=M.x,H=M.y,te=Pte(new Ln([D,H,1]).translate(-w,-_).rotate(x).translate(w,_)[0],2),de=te[0],we=te[1];M.x=de,M.y=we}),g}},{key:"getAnchorInfo",value:function(g){if(!Tte(g))for(var w=0;w<this.anchors.length;w++){var _=this.anchors[w];if(_.id===g)return _}}},{key:"addNodeMoveRules",value:function(g){this.moveRules.includes(g)||this.moveRules.push(g)}},{key:"move",value:function(g,w){var _=arguments.length>2&&arguments[2]!==void 0&&arguments[2],x=!1,M=!1;if(_)x=!0,M=!0;else{var D=this.isAllowMoveNode(g,w);typeof D=="boolean"?(x=D,M=D):(x=D.x,M=D.y)}if(x){var H=this.x+g;this.x=H,this.text&&this.moveText(g,0)}if(M){var te=this.y+w;this.y=te,this.text&&this.moveText(0,w)}return x||M}},{key:"getMoveDistance",value:function(g,w){var _=arguments.length>2&&arguments[2]!==void 0&&arguments[2],x=!1,M=!1,D=0,H=0;if(_)x=!0,M=!0;else{var te=this.isAllowMoveNode(g,w);typeof te=="boolean"?(x=te,M=te):(x=te.x,M=te.y)}if(x&&g){var de=this.x+g;this.x=de,this.text&&this.moveText(g,0),D=g}if(M&&w){var we=this.y+w;this.y=we,this.text&&this.moveText(0,w),H=w}return[D,H]}},{key:"moveTo",value:function(g,w){var _=arguments.length>2&&arguments[2]!==void 0&&arguments[2],x=g-this.x,M=w-this.y;return!(!_&&!this.isAllowMoveNode(x,M)||(this.text&&this.text&&this.moveText(x,M),this.x=g,this.y=w,0))}},{key:"moveText",value:function(g,w){var _=this.text,x=_.x,M=_.y,D=_.value,H=_.draggable,te=_.editable;this.text={value:D,editable:te,draggable:H,x:x+g,y:M+w}}},{key:"updateText",value:function(g){this.text=Os(Os({},Object(a.I)(this.text)),{},{value:g})}},{key:"setSelected",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=g}},{key:"setHovered",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=g,this.setIsShowAnchor(g)}},{key:"setIsShowAnchor",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isShowAnchor=g}},{key:"setEnableRotate",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.enableRotate=g}},{key:"setHitable",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=g}},{key:"setElementState",value:function(g,w){this.state=g,this.additionStateData=w}},{key:"setProperty",value:function(g,w){this.properties=Os(Os({},Object(a.I)(this.properties)),{},Ys({},g,_o(w))),this.setAttributes()}},{key:"setProperties",value:function(g){this.properties=Os(Os({},Object(a.I)(this.properties)),_o(g)),this.setAttributes()}},{key:"deleteProperty",value:function(g){delete this.properties[g],this.setAttributes()}},{key:"setStyle",value:function(g,w){this.style=Os(Os({},this.style),{},Ys({},g,_o(w)))}},{key:"setStyles",value:function(g){this.style=Os(Os({},this.style),_o(g))}},{key:"updateStyles",value:function(g){this.style=Os({},_o(g))}},{key:"setZIndex",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=g}},{key:"updateAttributes",value:function(g){Ci(this,g)}}],p&&$te(c.prototype,p),d}(),T4=br(en.prototype,"type",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),P4=br(en.prototype,"x",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$4=br(en.prototype,"y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),A4=br(en.prototype,"text",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),M4=br(en.prototype,"properties",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),R4=br(en.prototype,"_width",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),N4=br(en.prototype,"_height",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),I4=br(en.prototype,"anchorsOffset",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D4=br(en.prototype,"isSelected",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j4=br(en.prototype,"isHovered",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),L4=br(en.prototype,"isShowAnchor",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),B4=br(en.prototype,"isDragging",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V4=br(en.prototype,"isHitable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),F4=br(en.prototype,"draggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),z4=br(en.prototype,"visible",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Q4=br(en.prototype,"enableRotate",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),W4=br(en.prototype,"zIndex",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Y4=br(en.prototype,"state",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),U4=br(en.prototype,"autoToFront",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),H4=br(en.prototype,"style",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Z4=br(en.prototype,"transform",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X4=br(en.prototype,"_rotate",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),br(en.prototype,"incoming",[a.m],Object.getOwnPropertyDescriptor(en.prototype,"incoming"),en.prototype),br(en.prototype,"outgoing",[a.m],Object.getOwnPropertyDescriptor(en.prototype,"outgoing"),en.prototype),br(en.prototype,"addNodeMoveRules",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"addNodeMoveRules"),en.prototype),br(en.prototype,"move",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"move"),en.prototype),br(en.prototype,"getMoveDistance",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"getMoveDistance"),en.prototype),br(en.prototype,"moveTo",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"moveTo"),en.prototype),br(en.prototype,"moveText",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"moveText"),en.prototype),br(en.prototype,"updateText",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"updateText"),en.prototype),br(en.prototype,"setSelected",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setSelected"),en.prototype),br(en.prototype,"setHovered",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setHovered"),en.prototype),br(en.prototype,"setIsShowAnchor",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setIsShowAnchor"),en.prototype),br(en.prototype,"setEnableRotate",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setEnableRotate"),en.prototype),br(en.prototype,"setHitable",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setHitable"),en.prototype),br(en.prototype,"setElementState",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setElementState"),en.prototype),br(en.prototype,"setProperty",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setProperty"),en.prototype),br(en.prototype,"setProperties",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setProperties"),en.prototype),br(en.prototype,"deleteProperty",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"deleteProperty"),en.prototype),br(en.prototype,"setStyle",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setStyle"),en.prototype),br(en.prototype,"setStyles",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setStyles"),en.prototype),br(en.prototype,"updateStyles",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"updateStyles"),en.prototype),br(en.prototype,"setZIndex",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"setZIndex"),en.prototype),br(en.prototype,"updateAttributes",[a.k],Object.getOwnPropertyDescriptor(en.prototype,"updateAttributes"),en.prototype),en);function BT(d){return BT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},BT(d)}function e8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function t8(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?e8(Object(p),!0).forEach(function(g){n8(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):e8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function Ate(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function Mte(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Rte(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function VT(){return VT=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=Nte(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},VT.apply(this,arguments)}function Nte(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=Vv(d))!==null;);return d}function FT(d,c){return FT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},FT(d,c)}function Ite(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=Vv(d);if(c){var w=Vv(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Dte(this,p)}}function Dte(d,c){if(c&&(BT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AS(d)}function AS(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Vv(d){return Vv=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Vv(d)}function n8(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function zT(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var Ga,r8,o8,QT=(rd=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&FT(_,x)})(w,d);var c,p,g=Ite(w);function w(){var _;Mte(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return n8(AS(_=g.call.apply(g,[this].concat(M))),"modelType",kr.CIRCLE_NODE),Ate(AS(_),"r",J4,AS(_)),_}return c=w,(p=[{key:"width",get:function(){return 2*this.r}},{key:"height",get:function(){return 2*this.r}},{key:"getNodeStyle",value:function(){var _=VT(Vv(w.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.circle;return t8(t8({},_),Po(x))}},{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.r;return[{x:_,y:x-M,id:"".concat(this.id,"_0")},{x:_+M,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+M,id:"".concat(this.id,"_2")},{x:_-M,y:x,id:"".concat(this.id,"_3")}]}}])&&Rte(c.prototype,p),w}(od),J4=zT(rd.prototype,"r",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),zT(rd.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(rd.prototype,"width"),rd.prototype),zT(rd.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(rd.prototype,"height"),rd.prototype),rd);o(129);function WT(d){return WT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},WT(d)}function YT(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return i8(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return i8(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i8(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function a8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function s8(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?a8(Object(p),!0).forEach(function(g){u8(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):a8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function l8(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function jte(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Lte(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function UT(){return UT=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=Bte(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},UT.apply(this,arguments)}function Bte(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=zv(d))!==null;);return d}function HT(d,c){return HT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},HT(d,c)}function Vte(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=zv(d);if(c){var w=zv(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Fte(this,p)}}function Fte(d,c){if(c&&(WT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fv(d)}function Fv(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function zv(d){return zv=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},zv(d)}function u8(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Qv(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var Hc,c8,f8,ZT=(Ga=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&HT(_,x)})(w,d);var c,p,g=Vte(w);function w(){var _;jte(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return u8(Fv(_=g.call.apply(g,[this].concat(M))),"modelType",kr.DIAMOND_NODE),l8(Fv(_),"rx",r8,Fv(_)),l8(Fv(_),"ry",o8,Fv(_)),_}return c=w,(p=[{key:"getNodeStyle",value:function(){var _=UT(zv(w.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.diamond;return s8(s8({},_),Po(x))}},{key:"points",get:function(){var _=this.x,x=this.y,M=this.rx,D=this.ry;return[[_,x-D],[_+M,x],[_,x+D],[_-M,x]]}},{key:"pointsPosition",get:function(){return this.points.map(function(_){return{x:_[0],y:_[1]}})}},{key:"width",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var D=YT(M,1)[0];D<_&&(_=D),D>x&&(x=D)}),x-_}},{key:"height",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var D=YT(M,2)[1];D<_&&(_=D),D>x&&(x=D)}),x-_}},{key:"getDefaultAnchor",value:function(){var _=this;return this.points.map(function(x,M){var D=YT(x,2);return{x:D[0],y:D[1],id:"".concat(_.id,"_").concat(M)}})}}])&&Lte(c.prototype,p),w}(od),r8=Qv(Ga.prototype,"rx",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),o8=Qv(Ga.prototype,"ry",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Qv(Ga.prototype,"points",[a.m],Object.getOwnPropertyDescriptor(Ga.prototype,"points"),Ga.prototype),Qv(Ga.prototype,"pointsPosition",[a.m],Object.getOwnPropertyDescriptor(Ga.prototype,"pointsPosition"),Ga.prototype),Qv(Ga.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Ga.prototype,"width"),Ga.prototype),Qv(Ga.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Ga.prototype,"height"),Ga.prototype),Ga);function XT(d){return XT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},XT(d)}function d8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function h8(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?d8(Object(p),!0).forEach(function(g){g8(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):d8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function p8(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function zte(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Qte(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function qT(){return qT=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=Wte(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},qT.apply(this,arguments)}function Wte(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=Yv(d))!==null;);return d}function KT(d,c){return KT=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},KT(d,c)}function Yte(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=Yv(d);if(c){var w=Yv(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Ute(this,p)}}function Ute(d,c){if(c&&(XT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wv(d)}function Wv(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Yv(d){return Yv=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Yv(d)}function g8(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function MS(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var fu,m8,GT=(Hc=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&KT(_,x)})(w,d);var c,p,g=Yte(w);function w(){var _;zte(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return g8(Wv(_=g.call.apply(g,[this].concat(M))),"modelType",kr.ELLIPSE_NODE),p8(Wv(_),"rx",c8,Wv(_)),p8(Wv(_),"ry",f8,Wv(_)),_}return c=w,(p=[{key:"getNodeStyle",value:function(){var _=qT(Yv(w.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.ellipse;return h8(h8({},_),Po(x))}},{key:"width",get:function(){return 2*this.rx}},{key:"height",get:function(){return 2*this.ry}},{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.rx,D=this.ry;return[{x:_,y:x-D,id:"".concat(this.id,"_0")},{x:_+M,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+D,id:"".concat(this.id,"_2")},{x:_-M,y:x,id:"".concat(this.id,"_3")}]}}])&&Qte(c.prototype,p),w}(od),c8=MS(Hc.prototype,"rx",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),f8=MS(Hc.prototype,"ry",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),MS(Hc.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Hc.prototype,"width"),Hc.prototype),MS(Hc.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Hc.prototype,"height"),Hc.prototype),Hc);function JT(d){return JT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},JT(d)}function eP(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return v8(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return v8(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v8(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function y8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function b8(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?y8(Object(p),!0).forEach(function(g){_8(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):y8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function Hte(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function Zte(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Xte(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function tP(){return tP=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=qte(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},tP.apply(this,arguments)}function qte(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=Uv(d))!==null;);return d}function nP(d,c){return nP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},nP(d,c)}function Kte(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=Uv(d);if(c){var w=Uv(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Gte(this,p)}}function Gte(d,c){if(c&&(JT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RS(d)}function RS(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Uv(d){return Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Uv(d)}function _8(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function NS(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var rP,O8,oP=(fu=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&nP(_,x)})(w,d);var c,p,g=Kte(w);function w(){var _;Zte(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return _8(RS(_=g.call.apply(g,[this].concat(M))),"modelType",kr.POLYGON_NODE),Hte(RS(_),"points",m8,RS(_)),_}return c=w,(p=[{key:"getNodeStyle",value:function(){var _=tP(Uv(w.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.polygon;return b8(b8({},_),Po(x))}},{key:"pointsPosition",get:function(){var _=this.x,x=this.y,M=this.width,D=this.height;return this.points.map(function(H){return{x:H[0]+_-M/2,y:H[1]+x-D/2}})}},{key:"width",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var D=eP(M,1)[0];D<_&&(_=D),D>x&&(x=D)}),x-_}},{key:"height",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var D=eP(M,2)[1];D<_&&(_=D),D>x&&(x=D)}),x-_}},{key:"getDefaultAnchor",value:function(){var _=this,x=this.x,M=this.y,D=this.width,H=this.height;return this.points.map(function(te,de){var we=eP(te,2),je=we[0],Ge=we[1];return{x:x+je-D/2,y:M+Ge-H/2,id:"".concat(_.id,"_").concat(de)}})}}])&&Xte(c.prototype,p),w}(od),m8=NS(fu.prototype,"points",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),NS(fu.prototype,"pointsPosition",[a.m],Object.getOwnPropertyDescriptor(fu.prototype,"pointsPosition"),fu.prototype),NS(fu.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(fu.prototype,"width"),fu.prototype),NS(fu.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(fu.prototype,"height"),fu.prototype),fu);function iP(d){return iP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},iP(d)}function w8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function S8(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?w8(Object(p),!0).forEach(function(g){x8(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):w8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function Jte(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function ene(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function tne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function aP(){return aP=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=nne(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},aP.apply(this,arguments)}function nne(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=Hv(d))!==null;);return d}function sP(d,c){return sP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},sP(d,c)}function rne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=Hv(d);if(c){var w=Hv(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return one(this,p)}}function one(d,c){if(c&&(iP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IS(d)}function IS(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Hv(d){return Hv=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Hv(d)}function x8(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var Oh,lP=(rP=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&sP(_,x)})(w,d);var c,p,g=rne(w);function w(){var _;ene(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return x8(IS(_=g.call.apply(g,[this].concat(M))),"modelType",kr.RECT_NODE),Jte(IS(_),"radius",O8,IS(_)),_}return c=w,(p=[{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.width,D=this.height;return[{x:_,y:x-D/2,id:"".concat(this.id,"_0")},{x:_+M/2,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+D/2,id:"".concat(this.id,"_2")},{x:_-M/2,y:x,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var _=aP(Hv(w.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.rect;return S8(S8({},_),Po(x))}}])&&tne(c.prototype,p),w}(od),O8=function(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}(rP.prototype,"radius",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),rP);function uP(d){return uP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},uP(d)}function k8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function C8(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?k8(Object(p),!0).forEach(function(g){T8(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):k8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function ine(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function ane(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function cP(){return cP=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(d,c,p){var g=sne(d,c);if(g){var w=Object.getOwnPropertyDescriptor(g,c);return w.get?w.get.call(arguments.length<3?d:p):w.value}},cP.apply(this,arguments)}function sne(d,c){for(;!Object.prototype.hasOwnProperty.call(d,c)&&(d=Zv(d))!==null;);return d}function fP(d,c){return fP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},fP(d,c)}function lne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=Zv(d);if(c){var w=Zv(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return une(this,p)}}function une(d,c){if(c&&(uP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E8(d)}function E8(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Zv(d){return Zv=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Zv(d)}function T8(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function P8(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var dP=(Oh=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&fP(_,x)})(w,d);var c,p,g=lne(w);function w(){var _;ine(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return T8(E8(_=g.call.apply(g,[this].concat(M))),"modelType",kr.TEXT_NODE),_}return c=w,(p=[{key:"getTextStyle",value:function(){var _=cP(Zv(w.prototype),"getTextStyle",this).call(this),x=this.graphModel.theme.text;return C8(C8({},_),Po(x))}},{key:"width",get:function(){var _=String(this.text.value).split(/[\r\n]/g),x=this.getTextStyle().fontSize;return Eb({rows:_,fontSize:x,rowsLength:_.length}).width}},{key:"height",get:function(){var _=String(this.text.value).split(/[\r\n]/g),x=this.getTextStyle().fontSize;return Eb({rows:_,fontSize:x,rowsLength:_.length}).height}}])&&ane(c.prototype,p),w}(od),P8(Oh.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Oh.prototype,"width"),Oh.prototype),P8(Oh.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Oh.prototype,"height"),Oh.prototype),Oh);function hP(d){return hP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},hP(d)}function cne(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function fne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function pP(d,c){return pP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},pP(d,c)}function dne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=DS(d);if(c){var w=DS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return hne(this,p)}}function hne(d,c){if(c&&(hP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $8(d)}function $8(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function DS(d){return DS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},DS(d)}function pne(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var ic,A8,M8,R8,gP=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&pP(_,x)})(w,d);var c,p,g=dne(w);function w(){var _;cne(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return pne($8(_=g.call.apply(g,[this].concat(M))),"modelType",kr.HTML_NODE),_}return c=w,(p=[{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.width,D=this.height;return[{x:_,y:x-D/2,id:"".concat(this.id,"_0")},{x:_+M/2,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+D/2,id:"".concat(this.id,"_2")},{x:_-M/2,y:x,id:"".concat(this.id,"_3")}]}}])&&fne(c.prototype,p),w}(od);function N8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function mP(d,c,p,g){p&&Object.defineProperty(d,c,{enumerable:p.enumerable,configurable:p.configurable,writable:p.writable,value:p.initializer?p.initializer.call(g):void 0})}function gne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function I8(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function h_(d,c,p,g,w){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=p.slice().reverse().reduce(function(x,M){return M(d,c,x)||x},_),w&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(w):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(d,c,_),_=null),_}var D8=(ic=function(){function d(g){(function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")})(this,d),I8(this,"graphModel",void 0),mP(this,"isShowHorizontal",A8,this),mP(this,"isShowVertical",M8,this),mP(this,"position",R8,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=g}var c,p;return c=d,p=[{key:"getStyle",value:function(){return function(g){for(var w=1;w<arguments.length;w++){var _=arguments[w]!=null?arguments[w]:{};w%2?N8(Object(_),!0).forEach(function(x){I8(g,x,_[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(_)):N8(Object(_)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(_,x))})}return g}({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(g,w){for(var _=g.x,x=g.y,M=!1,D=!1,H=0;H<w.length;H++){var te=w[H];if(te.id!==g.id&&(_===te.x&&(M=!0),x===te.y&&(D=!0),M&&D))break}return{isShowVertical:M,isShowHorizontal:D,position:{x:_,y:x}}}},{key:"getHorizontalSnapline",value:function(g,w){var _,x,M=!1,D=g.id;if(D){var H=this.graphModel.fakerNode;if(H&&H.id===D)x=ys(H);else{var te=this.graphModel.getNodeModelById(D);x=ys(te)}}for(var de=0;de<w.length;de++){var we=w[de];if(we.id!==g.id){var je=ys(we);if(je.minY===x.minY||je.maxY===x.minY){M=!0,_=x.minY;break}if(je.minY===x.maxY||je.maxY===x.maxY){M=!0,_=x.maxY;break}}}return Ci({isShowHorizontal:M,position:{y:_}})}},{key:"getVerticalSnapline",value:function(g,w){var _,x,M=!1,D=g.id;if(D){var H=this.graphModel.fakerNode;if(H&&H.id===D)x=ys(H);else{var te=this.graphModel.getNodeModelById(D);x=ys(te)}}for(var de=0;de<w.length;de++){var we=w[de];if(we.id!==g.id){var je=ys(we);if(je.minX===x.minX||je.maxX===x.minX){M=!0,_=x.minX;break}if(je.minX===x.maxX||je.maxX===x.maxX){M=!0,_=x.maxX;break}}}return Ci({isShowVertical:M,position:{x:_}})}},{key:"getSnapLinePosition",value:function(g,w){var _=this.getCenterSnapLine(g,w),x=_.isShowHorizontal,M=_.isShowVertical;if(!x){var D=this.getHorizontalSnapline(g,w);D.isShowHorizontal&&(_.isShowHorizontal=D.isShowHorizontal,_.position.y=D.position.y)}if(!M){var H=this.getVerticalSnapline(g,w);H.isShowVertical&&(_.isShowVertical=H.isShowVertical,_.position.x=H.position.x)}return _}},{key:"setSnaplineInfo",value:function(g){var w=g.isShowHorizontal,_=g.isShowVertical,x=g.position;this.position=x,this.isShowHorizontal=w,this.isShowVertical=_}},{key:"clearSnapline",value:function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1}},{key:"setNodeSnapLine",value:function(g){var w=this.graphModel.nodes,_=this.getSnapLinePosition(g,w);this.setSnaplineInfo(_)}}],p&&gne(c.prototype,p),d}(),A8=h_(ic.prototype,"isShowHorizontal",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M8=h_(ic.prototype,"isShowVertical",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R8=h_(ic.prototype,"position",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h_(ic.prototype,"clearSnapline",[a.k],Object.getOwnPropertyDescriptor(ic.prototype,"clearSnapline"),ic.prototype),h_(ic.prototype,"setNodeSnapLine",[a.k],Object.getOwnPropertyDescriptor(ic.prototype,"setNodeSnapLine"),ic.prototype),ic),p_=new Map,j8=function(d){var c=bl(),p=window.requestAnimationFrame(function g(){if(d(),p_.get(c)){var w=window.requestAnimationFrame(g);p_.set(c,w)}});return p_.set(c,p),c},jS=function(d){var c=p_.get(d);c&&(window.cancelAnimationFrame(c),p_.delete(d))};function vP(d){return vP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},vP(d)}function g_(){return g_=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},g_.apply(this,arguments)}function L8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function m_(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?L8(Object(p),!0).forEach(function(g){Xc(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):L8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function mne(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return B8(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return B8(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B8(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function vne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function yP(d,c){return yP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},yP(d,c)}function yne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=LS(d);if(c){var w=LS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return bne(this,p)}}function bne(d,c){if(c&&(vP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zc(d)}function Zc(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function LS(d){return LS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},LS(d)}function Xc(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var _ne=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&yP(_,x)})(w,d);var c,p,g=yne(w);function w(){var _;return function(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")}(this,w),Xc(Zc(_=g.call(this)),"preTargetNode",void 0),Xc(Zc(_),"sourceRuleResults",void 0),Xc(Zc(_),"targetRuleResults",void 0),Xc(Zc(_),"dragHandler",void 0),Xc(Zc(_),"t",void 0),Xc(Zc(_),"onDragStart",function(x){var M=x.event,D=_.props,H=D.anchorData,te=D.nodeModel,de=D.graphModel;de.overlapMode,de.selectNodeById(te.id),te.autoToFront&&de.toFront(te.id),de.eventCenter.emit(An.ANCHOR_DRAGSTART,{data:H,e:M,nodeModel:te}),_.setState({startX:H.x,startY:H.y,endX:H.x,endY:H.y})}),Xc(Zc(_),"onDragging",function(x){var M=x.event,D=_.props,H=D.graphModel,te=D.nodeModel,de=D.anchorData,we=H.transformModel,je=H.eventCenter,Ge=H.width,nt=H.height,ft=H.editConfigModel,dt=ft.autoExpand,vt=ft.stopMoveGraph,Nt=M.clientX,sn=M.clientY,hn=H.getPointByClient({x:Nt,y:sn}),Qn=hn.domOverlayPosition,ln=Qn.x,Mn=Qn.y,mn=hn.canvasOverlayPosition,Ar=mn.x,Dr=mn.y;_.t&&jS(_.t);var tr=[];ln<10?tr=[10,0]:ln+10>Ge?tr=[-10,0]:Mn<10?tr=[0,10]:Mn+10>nt&&(tr=[0,-10]),_.setState({endX:Ar,endY:Dr,dragging:!0}),_.moveAnchorEnd(Ar,Dr),tr.length>0&&!vt&&dt&&(_.t=j8(function(){var Ur=mne(tr,2),ci=Ur[0],fi=Ur[1];we.translate(ci,fi);var Ma=_.state,kl=Ma.endX,Cl=Ma.endY;_.setState({endX:kl-ci,endY:Cl-fi}),_.moveAnchorEnd(kl-ci,Cl-fi)})),je.emit(An.ANCHOR_DRAG,{data:de,e:M,nodeModel:te})}),Xc(Zc(_),"onDragEnd",function(x){var M=x.event;_.t&&jS(_.t);var D=_.checkEnd(M);_.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),_.sourceRuleResults.clear(),_.targetRuleResults.clear();var H=_.props,te=H.graphModel,de=H.nodeModel,we=H.anchorData;te.eventCenter.emit(An.ANCHOR_DRAGEND,{data:we,e:M,nodeModel:de,edgeModel:D})}),Xc(Zc(_),"checkEnd",function(x){var M=_.props,D=M.graphModel,H=M.nodeModel,te=M.anchorData,de=te.x,we=te.y,je=te.id,Ge=(D.edgeType,_.state),nt=Ge.endX,ft=Ge.endY,dt=Ge.dragging,vt=Hf({x:nt,y:ft},D);if(_.preTargetNode&&_.preTargetNode.state!==Jr.DEFAULT&&_.preTargetNode.setElementState(Jr.DEFAULT),dt&&vt&&vt.node){var Nt=vt.node,sn=vt.anchor.id,hn="".concat(H.id,"_").concat(Nt.id,"_").concat(sn,"_").concat(je),Qn=_.sourceRuleResults.get(hn)||{},ln=Qn.isAllPass,Mn=Qn.msg,mn=_.targetRuleResults.get(hn)||{},Ar=mn.isAllPass,Dr=mn.msg;if(ln&&Ar){Nt.setElementState(Jr.DEFAULT);var tr=D.edgeGenerator(H.getData(),D.getNodeModelById(vt.node.id).getData()),Ur=D.addEdge(m_(m_({},tr),{},{sourceNodeId:H.id,sourceAnchorId:je,startPoint:{x:de,y:we},targetNodeId:vt.node.id,targetAnchorId:vt.anchor.id,endPoint:{x:vt.anchor.x,y:vt.anchor.y}})),ci=_.props.anchorData;return D.eventCenter.emit(An.ANCHOR_DROP,{data:ci,e:x,nodeModel:H,edgeModel:Ur}),Ur}var fi=Nt.getData();return D.eventCenter.emit(An.CONNECTION_NOT_ALLOWED,{data:fi,msg:Dr||Mn}),null}}),_.sourceRuleResults=new Map,_.targetRuleResults=new Map,_.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},_.dragHandler=new _l({onDragStart:_.onDragStart,onDragging:_.onDragging,onDragEnd:_.onDragEnd}),_}return c=w,(p=[{key:"getAnchorShape",value:function(){var _=this.props,x=_.anchorData,M=_.style,D=_.node.getAnchorShape(x);if(D)return D;var H=x.x,te=x.y,de=m_(m_({},M),M.hover);return Object(Oe.g)("g",null,Object(Oe.g)(Bv,g_({className:"lf-node-anchor-hover"},de,{x:H,y:te})),Object(Oe.g)(Bv,g_({className:"lf-node-anchor"},M,{x:H,y:te})))}},{key:"customTrajectory",get:function(){return this.props.graphModel.customTrajectory}},{key:"moveAnchorEnd",value:function(_,x){var M=this.props,D=M.graphModel,H=M.nodeModel,te=M.anchorData,de=Hf({x:_,y:x},D);if(de){var we=de.node,je=de.anchor.id;if(this.preTargetNode&&this.preTargetNode!==de.node&&this.preTargetNode.setElementState(Jr.DEFAULT),te.id===je)return;this.preTargetNode=we;var Ge="".concat(H.id,"_").concat(we.id,"_").concat(je,"_").concat(te.id);if(!this.targetRuleResults.has(Ge)){var nt=de.anchor,ft=H.isAllowConnectedAsSource(we,te,nt),dt=we.isAllowConnectedAsTarget(H,te,nt);this.sourceRuleResults.set(Ge,sg(ft)),this.targetRuleResults.set(Ge,sg(dt))}var vt=this.sourceRuleResults.get(Ge).isAllPass,Nt=this.targetRuleResults.get(Ge).isAllPass;vt&&Nt?we.setElementState(Jr.ALLOW_CONNECT):we.setElementState(Jr.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==Jr.DEFAULT&&this.preTargetNode.setElementState(Jr.DEFAULT)}},{key:"isShowLine",value:function(){var _=this.state,x=_.startX,M=_.startY,D=_.endX,H=_.endY;return mi(x,M,D,H)>10}},{key:"render",value:function(){var _=this,x=this.state,M=x.startX,D=x.startY,H=x.endX,te=x.endY,de=this.props,we=de.anchorData.edgeAddable,je=de.edgeStyle;return Object(Oe.g)("g",{className:"lf-anchor"},Object(Oe.g)("g",{onMouseDown:function(Ge){we!==!1&&_.dragHandler.handleMouseDown(Ge)}},this.getAnchorShape()),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(m_({sourcePoint:{x:M,y:D},targetPoint:{x:H,y:te}},je)):Object(Oe.g)(jv,g_({x1:M,y1:D,x2:H,y2:te},je,{"pointer-events":"none"}))))}}])&&vne(c.prototype,p),w}(Oe.a);function V8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function One(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?V8(Object(p),!0).forEach(function(g){wne(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):V8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function wne(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function bP(d){return bP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},bP(d)}function Sne(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return F8(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return F8(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function F8(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function z8(d){var c=d.x,p=c===void 0?0:c,g=d.y,w=g===void 0?0:g,_=d.value,x=d.fontSize,M=d.fill,D=M===void 0?"currentColor":M,H=d.overflowMode,te=H===void 0?"default":H,de=d.textWidth,we=de===void 0?"":de,je=d.model,Ge={textAnchor:"middle","dominant-baseline":"middle",x:p,y:w,fill:D};if(Object.entries(d).forEach(function(sn){var hn=Sne(sn,2),Qn=hn[0],ln=hn[1];bP(ln)!=="object"&&(Ge[Qn]=ln)}),_){var nt=String(_).split(/[\r\n]/g),ft=nt.length;if(te!=="default"){var dt=je.BaseType,vt=je.modelType;if(dt===ui.NODE&&vt!==kr.TEXT_NODE||dt===ui.EDGE&&we)return function(sn){var hn=sn.value,Qn=sn.fontSize,ln=sn.model,Mn=sn.fontFamily,mn=Mn===void 0?"":Mn,Ar=sn.lineHeight,Dr=sn.wrapPadding,tr=Dr===void 0?"0, 0":Dr,Ur=sn.overflowMode,ci=sn.x,fi=sn.y,Ma=ln.width,kl=ln.textHeight,Cl=sn.textWidth||Ma,Gc=String(hn).split(/[\r\n]/g),Eg=Gc.length,ux=Zw({rows:Gc,style:{fontSize:"".concat(Qn,"px"),width:"".concat(Cl,"px"),fontFamily:mn,lineHeight:Ar,padding:tr},rowsLength:Eg,className:"lf-get-text-height"}),Tg=ln.height>ux?ln.height:ux;kl&&(Tg=kl);var xh=Ur==="ellipsis";return xh&&(Tg=Qn+2),Object(Oe.g)("g",null,Object(Oe.g)("foreignObject",{width:Cl,height:Tg,x:ci-Cl/2,y:fi-Tg/2},Object(Oe.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:Tg,width:Cl,padding:tr}},Object(Oe.g)("div",{className:xh?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:xh?Gc.join(""):"",style:One({},sn)},Gc.map(function(kh){return Object(Oe.g)("div",{className:"lf-node-text--auto-wrap-inner"},kh)})))))}(d)}if(ft>1){var Nt=nt.map(function(sn,hn){var Qn=(hn-(ft-1)/2)*(x+2);return Object(Oe.g)("tspan",{className:"lf-text-tspan",x:p,y:w+Qn},sn)});return Object(Oe.g)("text",Ge,Nt)}return Object(Oe.g)("text",Ge,_)}}function _P(d){return _P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},_P(d)}function OP(){return OP=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},OP.apply(this,arguments)}function xne(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return Q8(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return Q8(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Q8(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function kne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function wP(d,c){return wP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},wP(d,c)}function Cne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=BS(d);if(c){var w=BS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Ene(this,p)}}function Ene(d,c){if(c&&(_P(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wh(d)}function wh(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function BS(d){return BS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},BS(d)}function Sg(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var W8=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&wP(_,x)})(w,d);var c,p,g=Cne(w);function w(_){var x;(function(D,H){if(!(D instanceof H))throw new TypeError("Cannot call a class as a function")})(this,w),Sg(wh(x=g.call(this)),"dragHandler",void 0),Sg(wh(x),"sumDeltaX",0),Sg(wh(x),"sumDeltaY",0),Sg(wh(x),"stepDrag",void 0),Sg(wh(x),"onDragging",function(D){var H=D.deltaX,te=D.deltaY,de=x.props,we=de.model,je=xne(de.graphModel.transformModel.fixDeltaXY(H,te),2),Ge=je[0],nt=je[1];we.moveText(Ge,nt)}),Sg(wh(x),"dblClickHandler",function(){x.props.editable&&x.props.model.setElementState(Jr.TEXT_EDIT)}),Sg(wh(x),"mouseDownHandle",function(D){var H=x.props,te=H.draggable,de=H.model,we=H.graphModel.editConfigModel.nodeTextDraggable;(te||we)&&(x.stepDrag.model=de,x.stepDrag.handleMouseDown(D))}),_.model;var M=_.draggable;return x.stepDrag=new _l({onDragging:x.onDragging,step:1,isStopPropagation:M}),x}return c=w,(p=[{key:"getShape",value:function(){var _=this.props,x=_.model,M=_.graphModel,D=x.text,H=M.editConfigModel,te=D.value,de=D.x,we=D.y,je=D.editable,Ge=D.draggable,nt={x:de,y:we,className:"",value:te};je?nt.className="lf-element-text":Ge||H.nodeTextDraggable?nt.className="lf-text-draggable":nt.className="lf-text-disabled";var ft=x.getTextStyle();return Object(Oe.g)(z8,OP({},nt,ft,{model:x}))}},{key:"render",value:function(){if(this.props.model.text)return Object(Oe.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&kne(c.prototype,p),w}(Oe.a),Tne=window.navigator.userAgent.match(/MSIE|Trident/)!==null,Y8=o(130);function SP(d){return SP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},SP(d)}function xP(){return xP=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},xP.apply(this,arguments)}function Pne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function kP(d,c){return kP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},kP(d,c)}function $ne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=VS(d);if(c){var w=VS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Ane(this,p)}}function Ane(d,c){if(c&&(SP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xv(d)}function Xv(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function VS(d){return VS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},VS(d)}function v_(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var Mne=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&kP(_,x)})(w,d);var c,p,g=$ne(w);function w(_){var x;return function(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}(this,w),v_(Xv(x=g.call(this,_)),"style",{}),v_(Xv(x),"defaultAngle",void 0),v_(Xv(x),"normal",void 0),v_(Xv(x),"stepperDrag",void 0),v_(Xv(x),"onDragging",function(M){var D,H=M.event,te=x.props,de=te.graphModel,we=te.nodeModel,je=te.eventCenter,Ge=de.selectNodes,nt=we.x,ft=we.y,dt=H.clientX,vt=H.clientY,Nt=de.getPointByClient({x:dt,y:vt}).canvasOverlayPosition,sn=Nt.x,hn=Nt.y,Qn=new Vi(sn-nt,hn-ft),ln=((D=x.normal)===null||D===void 0?void 0:D.angle(Qn))-x.defaultAngle,Mn=new Ki(-nt,-ft).rotate(ln).translate(nt,ft).toString();we.transform=Mn,we.rotate=ln;var mn=Object(Y8.map)(Ge,function(Dr){return Dr.id});mn.indexOf(we.id)===-1&&(mn=[we.id]);var Ar=Object(Y8.reduce)(mn,function(Dr,tr){var Ur=de.getNodeModelById(tr);return Dr[tr]=Ur==null?void 0:Ur.getMoveDistance(0,0,!1),Dr},{});mn.forEach(function(Dr){de.getNodeEdges(Dr).forEach(function(tr){if(Ar[tr.sourceNodeId]){var Ur=de.getNodeModelById(tr.sourceNodeId).anchors.find(function(fi){return fi.id===tr.sourceAnchorId});tr.updateStartPoint(Ur)}if(Ar[tr.targetNodeId]){var ci=de.getNodeModelById(tr.targetNodeId).anchors.find(function(fi){return fi.id===tr.targetAnchorId});tr.updateEndPoint(ci)}})}),je.emit(An.NODE_ROTATE,{e:H,nodeModel:we})}),x.style=_.style,x.stepperDrag=new _l({onDragging:x.onDragging}),x}return c=w,(p=[{key:"render",value:function(){var _=this,x=this.props.nodeModel,M=x.x,D=x.y,H=M+x.width/2+20,te=D-x.height/2-20;return this.normal=new Vi(1,0),this.defaultAngle=this.normal.angle(new Vi(H-M,te-D)),x.defaultAngle=this.defaultAngle,Object(Oe.g)("g",{className:"lf-rotate-control"},Object(Oe.g)("g",{onMouseDown:function(de){_.stepperDrag.handleMouseDown(de)}},Object(Oe.g)(Bv,xP({},this.style,{cx:H,cy:te}))))}}])&&Pne(c.prototype,p),w}(Oe.a);function CP(d){return CP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},CP(d)}var Rne=["className"];function FS(){return FS=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},FS.apply(this,arguments)}function Nne(d,c){if(d==null)return{};var p,g,w=function(x,M){if(x==null)return{};var D,H,te={},de=Object.keys(x);for(H=0;H<de.length;H++)D=de[H],M.indexOf(D)>=0||(te[D]=x[D]);return te}(d,c);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(d);for(g=0;g<_.length;g++)p=_[g],c.indexOf(p)>=0||Object.prototype.propertyIsEnumerable.call(d,p)&&(w[p]=d[p])}return w}function zS(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return U8(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return U8(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function U8(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function H8(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function EP(d,c){return EP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},EP(d,c)}function Ine(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=QS(d);if(c){var w=QS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Dne(this,p)}}function Dne(d,c){if(c&&(CP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aa(d)}function Aa(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function QS(d){return QS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},QS(d)}function Ja(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var id=function(d){(function(x,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(M&&M.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),M&&EP(x,M)})(_,d);var c,p,g,w=Ine(_);function _(x){var M;(function(we,je){if(!(we instanceof je))throw new TypeError("Cannot call a class as a function")})(this,_),Ja(Aa(M=w.call(this)),"t",void 0),Ja(Aa(M),"moveOffset",void 0),Ja(Aa(M),"stepDrag",void 0),Ja(Aa(M),"contextMenuTime",void 0),Ja(Aa(M),"startTime",void 0),Ja(Aa(M),"clickTimer",void 0),Ja(Aa(M),"modelDisposer",void 0),Ja(Aa(M),"onDragStart",function(we){var je=we.event,Ge=je.clientX,nt=je.clientY,ft=M.props,dt=ft.model,vt=ft.graphModel.getPointByClient({x:Ge,y:nt}).canvasOverlayPosition,Nt=vt.x,sn=vt.y;M.moveOffset={x:dt.x-Nt,y:dt.y-sn}}),Ja(Aa(M),"onDragging",function(we){var je=we.event,Ge=M.props,nt=Ge.model,ft=Ge.graphModel,dt=ft.editConfigModel,vt=dt.stopMoveGraph,Nt=dt.autoExpand,sn=ft.transformModel,hn=ft.selectNodes,Qn=ft.width,ln=ft.height,Mn=ft.gridSize;nt.isDragging=!0;var mn=je.clientX,Ar=je.clientY,Dr=ft.getPointByClient({x:mn,y:Ar}).canvasOverlayPosition,tr=Dr.x,Ur=Dr.y,ci=zS(sn.CanvasPointToHtmlPoint([tr,Ur]),2),fi=ci[0],Ma=ci[1];if(tr+=M.moveOffset.x,Ur+=M.moveOffset.y,tr=au(tr,Mn),Ur=au(Ur,Mn),Qn&&ln){if(!Nt||vt||!(fi<0||Ma<0||fi>Qn||Ma>ln)){var kl=zS(sn.CanvasPointToHtmlPoint([tr-nt.width/2,Ur-nt.height/2]),2),Cl=kl[0],Gc=kl[1],Eg=zS(sn.CanvasPointToHtmlPoint([tr+nt.width/2,Ur+nt.height/2]),2),ux=Eg[0],Tg=Eg[1],xh=Math.max(Mn,20),kh=[];Cl<0?kh=[xh,0]:ux>ft.width?kh=[-xh,0]:Gc<0?kh=[0,xh]:Tg>ft.height&&(kh=[0,-xh]),M.t&&jS(M.t);var Eoe=new Ki(-tr,-Ur).rotate(nt.rotate).translate(tr,Ur).toString();nt.transform=Eoe;var cx=hn.map(function(fx){return fx.id});cx.indexOf(nt.id)===-1&&(cx=[nt.id]),kh.length>0&&!vt&&Nt?M.t=j8(function(){var fx=zS(kh,2),TL=fx[0],PL=fx[1];sn.translate(TL,PL);var Toe=-TL/sn.SCALE_X,Poe=-PL/sn.SCALE_X;ft.moveNodes(cx,Toe,Poe)}):ft.moveNodes(cx,tr-nt.x,Ur-nt.y)}}else ft.moveNode2Coordinate(nt.id,tr,Ur)}),Ja(Aa(M),"onDragEnd",function(){M.t&&jS(M.t),M.props.model.isDragging=!1}),Ja(Aa(M),"handleClick",function(we){if(M.startTime&&!(new Date().getTime()-M.startTime>200)){var je=M.props,Ge=je.model,nt=je.graphModel,ft={data:Ge.getData(),e:we,position:nt.getPointByClient({x:we.clientX,y:we.clientY}),isSelected:!1,isMultiple:!1},dt=we.button===2,vt=we.detail===2;if(!dt){var Nt=nt.editConfigModel,sn=su(we,Nt);ft.isMultiple=sn,Ge.isSelected&&!vt&&sn?(ft.isSelected=!1,Ge.setSelected(!1)):(nt.selectNodeById(Ge.id,sn),ft.isSelected=!0,M.toFront()),vt?(Nt.nodeTextEdit&&Ge.text.editable&&(Ge.setSelected(!1),nt.setElementStateById(Ge.id,Jr.TEXT_EDIT)),nt.eventCenter.emit(An.NODE_DBCLICK,ft)):(nt.eventCenter.emit(An.ELEMENT_CLICK,ft),nt.eventCenter.emit(An.NODE_CLICK,ft))}}}),Ja(Aa(M),"handleContextMenu",function(we){we.preventDefault();var je=M.props,Ge=je.model,nt=je.graphModel,ft=Ge.getData(),dt=nt.getPointByClient({x:we.clientX,y:we.clientY});nt.setElementStateById(Ge.id,Jr.SHOW_MENU,dt.domOverlayPosition),Ge.isSelected||nt.selectNodeById(Ge.id),nt.eventCenter.emit(An.NODE_CONTEXTMENU,{data:ft,e:we,position:dt}),M.toFront()}),Ja(Aa(M),"handleMouseDown",function(we){var je=M.props,Ge=je.model,nt=je.graphModel;M.startTime=new Date().getTime(),nt.editConfigModel.adjustNodePosition&&Ge.draggable&&M.stepDrag&&M.stepDrag.handleMouseDown(we)}),Ja(Aa(M),"setHoverON",function(we){var je=M.props,Ge=je.model,nt=je.graphModel;if(!Ge.isHovered){var ft=Ge.getData();Ge.setHovered(!0),nt.eventCenter.emit(An.NODE_MOUSEENTER,{data:ft,e:we})}}),Ja(Aa(M),"setHoverOFF",function(we){var je=M.props,Ge=je.model,nt=je.graphModel,ft=Ge.getData();Ge.isHovered&&(Ge.setHovered(!1),nt.eventCenter.emit(An.NODE_MOUSELEAVE,{data:ft,e:we}))}),Ja(Aa(M),"onMouseOut",function(we){Tne&&M.setHoverOFF(we)});var D=x.graphModel,H=D.gridSize,te=D.eventCenter,de=x.model;return M.stepDrag=new _l({onDragStart:M.onDragStart,onDragging:M.onDragging,onDragEnd:M.onDragEnd,step:H,eventType:"NODE",isStopPropagation:!1,eventCenter:te,model:de}),M.modelDisposer=Object(a.F)(function(){return M.props},function(we){we&&we.model&&M.stepDrag.setModel(we.model)}),M}return c=_,g=[{key:"getModel",value:function(x){return x}}],(p=[{key:"componentWillUnmount",value:function(){this.modelDisposer&&this.modelDisposer()}},{key:"getAnchorShape",value:function(x){return null}},{key:"getAnchors",value:function(){var x=this,M=this.props,D=M.model,H=M.graphModel,te=D.isSelected,de=D.isHitable,we=D.isDragging,je=D.isShowAnchor;return de&&(te||je)&&!we?Zm(D.anchors,function(Ge,nt){var ft=D.getAnchorLineStyle(Ge),dt=D.getAnchorStyle(Ge);return Object(Oe.g)(_ne,{anchorData:Ge,node:x,style:dt,edgeStyle:ft,anchorIndex:nt,nodeModel:D,graphModel:H,setHoverOFF:x.setHoverOFF})}):[]}},{key:"getRotateControl",value:function(){var x=this.props,M=x.model,D=x.graphModel,H=M.isSelected,te=M.isHitable,de=M.enableRotate,we=M.isHovered,je=M.getRotateControlStyle().style;if(te&&(H||we)&&de)return Object(Oe.g)(Mne,{graphModel:D,nodeModel:M,eventCenter:D.eventCenter,style:je})}},{key:"getText",value:function(){var x=this.props,M=x.model,D=x.graphModel;if(M.state===Jr.TEXT_EDIT)return"";if(M.text){var H=D.editConfigModel,te=!1;return(M.text.draggable||H.nodeTextDraggable)&&(te=!0),Object(Oe.g)(W8,{editable:H.nodeTextEdit&&M.text.editable,model:M,graphModel:D,draggable:te})}}},{key:"getStateClassName",value:function(){var x=this.props.model,M=x.state,D=x.isDragging,H=x.isSelected,te="lf-node";switch(M){case Jr.ALLOW_CONNECT:te+=" lf-node-allow";break;case Jr.NOT_ALLOW_CONNECT:te+=" lf-node-not-allow";break;default:te+=" lf-node-default"}return D&&(te+=" lf-isDragging"),H&&(te+=" lf-node-selected"),te}},{key:"toFront",value:function(){var x=this.props,M=x.model,D=x.graphModel;M.autoToFront&&D.toFront(M.id)}},{key:"render",value:function(){var x,M=this.props,D=M.model,H=M.graphModel,te=H.editConfigModel,de=te.hideAnchors,we=te.adjustNodePosition,je=te.allowRotation,Ge=H.gridSize,nt=H.transformModel.SCALE_X,ft=D.isHitable,dt=D.draggable,vt=D.transform,Nt=D.getOuterGAttributes(),sn=Nt.className,hn=sn===void 0?"":sn,Qn=Nne(Nt,Rne),ln=Object(Oe.g)("g",{className:"lf-node-content"},Object(Oe.g)("g",{transform:vt},this.getShape(),this.getText(),je&&this.getRotateControl()),!de&&this.getAnchors());return ft?(we&&dt&&this.stepDrag.setStep(Ge*nt),x=Object(Oe.g)("g",FS({className:"".concat(this.getStateClassName()," ").concat(hn),onMouseDown:this.handleMouseDown,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},Qn),ln)):x=Object(Oe.g)("g",FS({className:"".concat(this.getStateClassName()," ").concat(hn)},Qn),ln),x}}])&&H8(c.prototype,p),g&&H8(c,g),_}(Oe.a);function TP(d){return TP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},TP(d)}function PP(){return PP=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},PP.apply(this,arguments)}function jne(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Lne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function $P(d,c){return $P=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},$P(d,c)}function Bne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=WS(d);if(c){var w=WS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Vne(this,p)}}function Vne(d,c){if(c&&(TP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function WS(d){return WS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},WS(d)}var AP=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&$P(_,x)})(w,d);var c,p,g=Bne(w);function w(){return jne(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getShape",value:function(){var _=this.props.model,x=_.getNodeStyle();return Object(Oe.g)(bh,PP({},x,{x:_.x,y:_.y,width:_.width,height:_.height,radius:_.radius}))}}])&&Lne(c.prototype,p),w}(id);function MP(d){return MP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},MP(d)}function RP(){return RP=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},RP.apply(this,arguments)}function Fne(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function zne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function NP(d,c){return NP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},NP(d,c)}function Qne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=YS(d);if(c){var w=YS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Wne(this,p)}}function Wne(d,c){if(c&&(MP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function YS(d){return YS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},YS(d)}var IP=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&NP(_,x)})(w,d);var c,p,g=Qne(w);function w(){return Fne(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getShape",value:function(){var _=this.props.model,x=_.x,M=_.y,D=_.r,H=_.getNodeStyle();return Object(Oe.g)(Bv,RP({},H,{x,y:M,r:D}))}}])&&zne(c.prototype,p),w}(id);function DP(d){return DP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},DP(d)}function Yne(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return Z8(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return Z8(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Z8(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function X8(d){var c=d.points,p=d.className,g={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(d).forEach(function(w){var _=Yne(w,2),x=_[0],M=_[1];DP(M)!=="object"&&(g[x]=M)}),g.className=p?"lf-basic-shape ".concat(p):"lf-basic-shape",g.points=c.map(function(w){return w.join(",")}).join(" "),Object(Oe.g)("polygon",g)}function jP(d){return jP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},jP(d)}function LP(){return LP=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},LP.apply(this,arguments)}function Une(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Hne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function BP(d,c){return BP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},BP(d,c)}function Zne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=US(d);if(c){var w=US(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Xne(this,p)}}function Xne(d,c){if(c&&(jP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function US(d){return US=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},US(d)}var VP=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&BP(_,x)})(w,d);var c,p,g=Zne(w);function w(){return Une(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getShape",value:function(){var _=this.props.model,x=_.x,M=_.y,D=_.width,H=_.height,te=_.points,de=_.getNodeStyle(),we={transform:"matrix(1 0 0 1 ".concat(x-D/2," ").concat(M-H/2,")")};return Object(Oe.g)("g",we,Object(Oe.g)(X8,LP({},de,{points:te,x,y:M})))}}])&&Hne(c.prototype,p),w}(id);function FP(d){return FP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},FP(d)}function zP(){return zP=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},zP.apply(this,arguments)}function qne(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Kne(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function QP(d,c){return QP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},QP(d,c)}function Gne(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=HS(d);if(c){var w=HS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Jne(this,p)}}function Jne(d,c){if(c&&(FP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function HS(d){return HS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},HS(d)}var WP=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&QP(_,x)})(w,d);var c,p,g=Gne(w);function w(){return qne(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getShape",value:function(){var _=this.props.model,x=_.getNodeStyle();return Object(Oe.g)("g",null,Object(Oe.g)(X8,zP({},x,{points:_.points,x:_.x,y:_.y})))}}])&&Kne(c.prototype,p),w}(id);function YP(d){return YP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},YP(d)}function ere(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return q8(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return q8(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function q8(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function tre(d){var c=d.x,p=c===void 0?0:c,g=d.y,w=g===void 0?0:g,_=d.rx,x=_===void 0?4:_,M=d.ry,D=M===void 0?4:M,H=d.className,te={cx:p,cy:w,rx:x,ry:D,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(d).forEach(function(de){var we=ere(de,2),je=we[0],Ge=we[1];YP(Ge)!=="object"&&(te[je]=Ge)}),te.className=H?"lf-basic-shape ".concat(H):"lf-basic-shape",Object(Oe.g)("ellipse",te)}function UP(d){return UP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},UP(d)}function HP(){return HP=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},HP.apply(this,arguments)}function nre(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function rre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function ZP(d,c){return ZP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},ZP(d,c)}function ore(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=ZS(d);if(c){var w=ZS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return ire(this,p)}}function ire(d,c){if(c&&(UP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function ZS(d){return ZS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ZS(d)}var XP=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&ZP(_,x)})(w,d);var c,p,g=ore(w);function w(){return nre(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getShape",value:function(){var _=this.props.model,x=_.getNodeStyle();return Object(Oe.g)(tre,HP({},x,{x:_.x,y:_.y,rx:_.rx,ry:_.ry}))}}])&&rre(c.prototype,p),w}(id);function qP(d){return qP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},qP(d)}function K8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function G8(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?K8(Object(p),!0).forEach(function(g){are(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):K8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function are(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function sre(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function lre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function KP(d,c){return KP=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},KP(d,c)}function ure(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=XS(d);if(c){var w=XS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return cre(this,p)}}function cre(d,c){if(c&&(qP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function XS(d){return XS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},XS(d)}var GP=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&KP(_,x)})(w,d);var c,p,g=ure(w);function w(){return sre(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getBackground",value:function(){var _=this.props.model,x=_.getTextStyle(),M=_.width,D=_.height,H=_.x,te=_.y,de=G8(G8({},x.background),{},{x:H,y:te-1,width:M,height:D});return Object(Oe.g)(bh,de)}},{key:"getShape",value:function(){return Object(Oe.g)("g",null,this.getBackground())}}])&&lre(c.prototype,p),w}(id);function JP(d){return JP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},JP(d)}function e$(){return e$=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},e$.apply(this,arguments)}function fre(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function dre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function t$(d,c){return t$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},t$(d,c)}function hre(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=qS(d);if(c){var w=qS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return pre(this,p)}}function pre(d,c){if(c&&(JP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y_(d)}function y_(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function qS(d){return qS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},qS(d)}function KS(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var n$=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&t$(_,x)})(w,d);var c,p,g=hre(w);function w(){var _;fre(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return KS(y_(_=g.call.apply(g,[this].concat(M))),"ref",void 0),KS(y_(_),"currentProperties",void 0),KS(y_(_),"preProperties",void 0),KS(y_(_),"setRef",function(H){_.ref=H}),_}return c=w,(p=[{key:"rootEl",get:function(){return this.ref}},{key:"setHtml",value:function(_){_.appendChild(document.createElement("div"))}},{key:"shouldUpdate",value:function(){if(!this.preProperties||this.preProperties!==this.currentProperties)return this.preProperties=this.currentProperties,!0}},{key:"componentDidMount",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"componentDidUpdate",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"getShape",value:function(){var _=this.props.model,x=_.x,M=_.y,D=_.height,H=_.width,te=_.getNodeStyle();return this.currentProperties=JSON.stringify(_.properties),Object(Oe.g)("foreignObject",e$({},te,{x:x-H/2,y:M-D/2,width:H,height:D,ref:this.setRef}))}}])&&dre(c.prototype,p),w}(id);function r$(d){return r$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r$(d)}function o$(){return o$=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},o$.apply(this,arguments)}function J8(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function xg(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?J8(Object(p),!0).forEach(function(g){s$(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):J8(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function gre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function i$(d,c){return i$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},i$(d,c)}function mre(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=GS(d);if(c){var w=GS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return vre(this,p)}}function vre(d,c){if(c&&(r$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a$(d)}function a$(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function GS(d){return GS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},GS(d)}function s$(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var yre=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&i$(_,x)})(w,d);var c,p,g=mre(w);function w(_){var x;return function(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}(this,w),s$(a$(x=g.call(this,_)),"setHoverON",function(){x.setState({isHovered:!0})}),s$(a$(x),"setHoverOFF",function(){x.setState({isHovered:!1})}),x.state={isHovered:!1},x}return c=w,(p=[{key:"getBackground",value:function(){var _=this.props.model,x=_.getTextStyle(),M=_.text,D=_.width,H=x.background||{};if(this.state.isHovered&&x.hover&&x.hover.background&&(H=xg(xg({},H),x.hover.background)),M&&M.value&&H.fill!=="transparent"){var te,de=x.fontSize,we=x.overflowMode,je=x.lineHeight,Ge=x.wrapPadding,nt=x.textWidth,ft=M.value,dt=M.x,vt=M.y,Nt=String(ft).split(/[\r\n]/g),sn=Nt.length;if(we==="autoWrap"&&nt){var hn=Zw({rows:Nt,style:{fontSize:"".concat(de,"px"),width:"".concat(nt,"px"),lineHeight:je,padding:Ge},rowsLength:sn,className:"lf-get-text-height"});te=xg(xg({},H),{},{x:dt-1,y:vt-1,width:nt,height:hn})}else{Nt&&Nt.forEach(function(Ar){qb(Ar)});var Qn=Eb({rows:Nt,fontSize:de,rowsLength:sn}),ln=Qn.width,Mn=Qn.height;if(we==="ellipsis"&&(ln=nt||D,Mn=de+2),typeof H.wrapPadding=="string"){var mn=H.wrapPadding.split(",").filter(function(Ar){return Ar.trim()}).map(function(Ar){return parseFloat(Ar.trim())});mn.length>0&&mn.length<=4&&(mn.length===1?mn=[mn[0],mn[0],mn[0],mn[0]]:mn.length===2?mn=[mn[0],mn[1],mn[0],mn[1]]:mn.length===3&&(mn=[mn[0],mn[1],mn[2],mn[1]]),ln+=mn[1]+mn[3],Mn+=mn[0]+mn[2],dt+=(mn[1]-mn[3])/2,vt+=(mn[2]-mn[0])/2)}te=xg(xg({},H),{},{x:dt-1,y:vt-1,width:ln,height:Mn})}return Object(Oe.g)(bh,te)}}},{key:"getShape",value:function(){var _=this.props.model,x=_.text,M=x.value,D=x.x,H=x.y;if(M){var te=xg({x:D,y:H,className:"lf-element-text",value:M},_.getTextStyle());return Object(Oe.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(Oe.g)(z8,o$({},te,{model:_})))}}}])&&gre(c.prototype,p),w}(W8);function l$(d){return l$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l$(d)}var qc,bre=["text","sourceAnchorId","targetAnchorId"];function eL(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function ad(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?eL(Object(p),!0).forEach(function(g){xl(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):eL(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function _re(d,c){if(d==null)return{};var p,g,w=function(x,M){if(x==null)return{};var D,H,te={},de=Object.keys(x);for(H=0;H<de.length;H++)D=de[H],M.indexOf(D)>=0||(te[D]=x[D]);return te}(d,c);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(d);for(g=0;g<_.length;g++)p=_[g],c.indexOf(p)>=0||Object.prototype.propertyIsEnumerable.call(d,p)&&(w[p]=d[p])}return w}function Ore(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return tL(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return tL(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function tL(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function wre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function u$(d,c){return u$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},u$(d,c)}function Sre(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=JS(d);if(c){var w=JS(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return xre(this,p)}}function xre(d,c){if(c&&(l$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sl(d)}function Sl(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function JS(d){return JS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},JS(d)}function xl(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}(function(d){d.SOURCE="SOURCE",d.TARGET="TARGET"})(qc||(qc={}));var nL=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&u$(_,x)})(w,d);var c,p,g=Sre(w);function w(_){var x;(function(te,de){if(!(te instanceof de))throw new TypeError("Cannot call a class as a function")})(this,w),xl(Sl(x=g.call(this)),"stepDragData",void 0),xl(Sl(x),"stepDrag",void 0),xl(Sl(x),"oldEdge",void 0),xl(Sl(x),"preTargetNode",void 0),xl(Sl(x),"targetRuleResults",void 0),xl(Sl(x),"sourceRuleResults",void 0),xl(Sl(x),"handleMouseDown",function(te){x.stepDrag&&x.stepDrag.handleMouseDown(te)}),xl(Sl(x),"onDragStart",function(){var te=x.props,de=te.x,we=te.y,je=te.edgeModel,Ge=je.startPoint,nt=je.endPoint,ft=je.pointsList;x.oldEdge={startPoint:Ge,endPoint:nt,pointsList:ft},x.setState({endX:de,endY:we,dragging:!0})}),xl(Sl(x),"onDragging",function(te){var de=te.deltaX,we=te.deltaY,je=x.state,Ge=je.endX,nt=je.endY,ft=x.props,dt=ft.graphModel,vt=ft.type,Nt=dt.transformModel,sn=dt.editConfigModel,hn=Ore(Nt.moveCanvasPointByHtml([Ge,nt],de,we),2),Qn=hn[0],ln=hn[1];x.setState({endX:Qn,endY:ln,dragging:!0});var Mn=x.props.edgeModel,mn=Hf({x:Ge,y:nt},dt);if(mn&&mn.node&&x.isAllowAdjust(mn).pass){var Ar,Dr=Mn.startPoint,tr=Mn.endPoint,Ur=Mn.sourceNode,ci=Mn.targetNode;vt===qc.SOURCE?Ar={startPoint:{x:mn.anchor.x,y:mn.anchor.y},endPoint:{x:tr.x,y:tr.y},sourceNode:mn.node,targetNode:ci}:vt===qc.TARGET&&(Ar={startPoint:{x:Dr.x,y:Dr.y},endPoint:{x:mn.anchor.x,y:mn.anchor.y},sourceNode:Ur,targetNode:mn.node}),Mn.updateAfterAdjustStartAndEnd(Ar)}else vt===qc.SOURCE?Mn.updateStartPoint({x:Qn,y:ln}):vt===qc.TARGET&&Mn.updateEndPoint({x:Qn,y:ln});Mn.text.value&&sn.adjustEdge&&Mn.setText(Object.assign({},Mn.text,Mn.textPosition))}),xl(Sl(x),"onDragEnd",function(te){var de=te.event;try{var we;x.setState({dragging:!1});var je=x.props,Ge=je.graphModel,nt=je.edgeModel,ft=je.type,dt=x.state,vt=dt.endX,Nt=dt.endY,sn=dt.dragging,hn=Hf({x:vt,y:Nt},Ge);if(!sn)return;var Qn,ln=!1;if(hn&&hn.node){var Mn=x.isAllowAdjust(hn),mn=Mn.pass,Ar=Mn.msg,Dr=Mn.newTargetNode;if(mn){var tr=nt.getData(),Ur=tr.text,ci=tr.sourceAnchorId,fi=ci===void 0?"":ci,Ma=tr.targetAnchorId;Qn=ad(ad({sourceAnchorId:fi,targetAnchorId:Ma===void 0?"":Ma},_re(tr,bre)),{},{text:(Ur==null?void 0:Ur.value)||""}),ft===qc.SOURCE?(Qn=ad(ad({},Ge.edgeGenerator(Ge.getNodeModelById(hn.node.id).getData(),Ge.getNodeModelById(nt.targetNodeId).getData(),Qn)),{},{sourceNodeId:hn.node.id,sourceAnchorId:hn.anchor.id,startPoint:{x:hn.anchor.x,y:hn.anchor.y},targetNodeId:nt.targetNodeId,endPoint:ad({},nt.endPoint)}),nt.sourceNodeId===hn.node.id&&nt.sourceAnchorId===hn.anchor.id&&(ln=!0)):ft===qc.TARGET&&(Qn=ad(ad({},Ge.edgeGenerator(Ge.getNodeModelById(nt.sourceNodeId).getData(),Ge.getNodeModelById(hn.node.id).getData(),Qn)),{},{sourceNodeId:nt.sourceNodeId,startPoint:ad({},nt.startPoint),targetNodeId:hn.node.id,targetAnchorId:hn.anchor.id,endPoint:{x:hn.anchor.x,y:hn.anchor.y}}),nt.targetNodeId===hn.node.id&&nt.targetAnchorId===hn.anchor.id&&(ln=!0))}else{ln=!0;var kl=Dr.getData();Ge.eventCenter.emit(An.CONNECTION_NOT_ALLOWED,{data:kl,msg:Ar})}}else ln=!0;if(ln)x.recoveryEdge();else{var Cl=nt.getData();Ge.deleteEdgeById(nt.id);var Gc=Ge.addEdge(ad({},Qn));Ge.eventCenter.emit(An.EDGE_EXCHANGE_NODE,{data:{newEdge:Gc.getData(),oldEdge:Cl}})}(we=x.preTargetNode)===null||we===void 0||we.setElementState(Jr.DEFAULT)}finally{x.props.graphModel.eventCenter.emit(An.ADJUST_POINT_DRAGEND,{e:de,data:x.stepDragData})}}),xl(Sl(x),"recoveryEdge",function(){var te=x.props.edgeModel,de=x.oldEdge,we=de.startPoint,je=de.endPoint,Ge=de.pointsList;te.updateStartPoint(we),te.updateEndPoint(je),te.modelType!==kr.LINE_EDGE&&(te.pointsList=Ge,te.initPoints())}),xl(Sl(x),"getAdjustPointStyle",function(){var te=x.props,de=te.graphModel.theme;return te.edgeModel,de.edgeAdjust}),x.state={dragging:!1,endX:0,endY:0},x.targetRuleResults=new Map,x.sourceRuleResults=new Map;var M=_.type,D=_.edgeModel,H=_.graphModel.eventCenter;return x.stepDragData={type:M,edgeData:D.getData()},x.stepDrag=new _l({onDragStart:x.onDragStart,onDragging:x.onDragging,onDragEnd:x.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:H,data:x.stepDragData}),x}return c=w,(p=[{key:"isAllowAdjust",value:function(_){var x=this.props,M=x.edgeModel,D=M.id,H=M.sourceNode,te=M.targetNode,de=M.sourceAnchorId,we=M.targetAnchorId,je=x.type,Ge=null,nt=null,ft=null,dt=null;if(je===qc.SOURCE?(Ge=_.node,nt=te,ft=_.anchor,dt=te.getAnchorInfo(we)):(Ge=H,nt=_.node,dt=_.anchor,ft=H.getAnchorInfo(de)),this.preTargetNode&&this.preTargetNode!==_.node&&this.preTargetNode.setElementState(Jr.DEFAULT),this.preTargetNode=_.node,dt.id===ft.id)return{pass:!1,msg:"",newTargetNode:nt};var vt="".concat(Ge.id,"_").concat(nt.id,"_").concat(ft.id,"_").concat(dt.id);if(!this.targetRuleResults.has(vt)){var Nt=Ge.isAllowConnectedAsSource(nt,ft,dt,D),sn=nt.isAllowConnectedAsTarget(Ge,ft,dt,D);this.sourceRuleResults.set(vt,sg(Nt)),this.targetRuleResults.set(vt,sg(sn))}var hn=this.sourceRuleResults.get(vt),Qn=hn.isAllPass,ln=hn.msg,Mn=this.targetRuleResults.get(vt),mn=Mn.isAllPass,Ar=Mn.msg,Dr=Qn&&mn?Jr.ALLOW_CONNECT:Jr.NOT_ALLOW_CONNECT;return je===qc.SOURCE?Ge.setElementState(Dr):nt.setElementState(Dr),{pass:Qn&&mn,msg:Ar||ln,newTargetNode:nt}}},{key:"render",value:function(){var _=this.props,x=_.x,M=_.y,D=_.getAdjustPointShape,H=_.edgeModel,te=this.state.dragging;return Object(Oe.g)("g",{pointerEvents:te?"none":"",onMouseDown:this.handleMouseDown},te?"":D(x,M,H))}}])&&wre(c.prototype,p),w}(Oe.a);function c$(d){return c$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},c$(d)}function b_(){return b_=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},b_.apply(this,arguments)}function kre(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return rL(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return rL(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function rL(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function Cre(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Ere(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function f$(d,c){return f$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},f$(d,c)}function Tre(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=ex(d);if(c){var w=ex(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Pre(this,p)}}function Pre(d,c){if(c&&(c$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ac(d)}function ac(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function ex(d){return ex=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ex(d)}function Kc(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var __=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&f$(_,x)})(w,d);var c,p,g=Tre(w);function w(){var _;Cre(this,w);for(var x=arguments.length,M=new Array(x),D=0;D<x;D++)M[D]=arguments[D];return Kc(ac(_=g.call.apply(g,[this].concat(M))),"startTime",void 0),Kc(ac(_),"contextMenuTime",void 0),Kc(ac(_),"clickTimer",void 0),Kc(ac(_),"textRef",Object(Oe.f)()),Kc(ac(_),"handleHover",function(H,te){var de=_.props,we=de.model,je=de.graphModel.eventCenter;we.setHovered(H);var Ge=H?An.EDGE_MOUSEENTER:An.EDGE_MOUSELEAVE,nt=we.getData();je.emit(Ge,{data:nt,e:te})}),Kc(ac(_),"setHoverON",function(H){_.props.model.isHovered||(_.textRef&&_.textRef.current&&_.textRef.current.setHoverON(),_.handleHover(!0,H))}),Kc(ac(_),"setHoverOFF",function(H){_.props.model.isHovered&&(_.textRef&&_.textRef.current&&_.textRef.current.setHoverOFF(),_.handleHover(!1,H))}),Kc(ac(_),"handleContextMenu",function(H){H.preventDefault(),_.contextMenuTime=new Date().getTime(),_.clickTimer&&clearTimeout(_.clickTimer);var te=_.props,de=te.model,we=te.graphModel,je=we.getPointByClient({x:H.clientX,y:H.clientY});we.setElementStateById(de.id,Jr.SHOW_MENU,je.domOverlayPosition),_.toFront(),de.isSelected||we.selectEdgeById(de.id);var Ge=de==null?void 0:de.getData();we.eventCenter.emit(An.EDGE_CONTEXTMENU,{data:Ge,e:H,position:je})}),Kc(ac(_),"handleMouseDown",function(H){H.stopPropagation(),_.startTime=new Date().getTime()}),Kc(ac(_),"handleMouseUp",function(H){if(_.startTime&&!(new Date().getTime()-_.startTime>200||H.button===2)){var te=H.detail===2,de=_.props,we=de.model,je=de.graphModel,Ge=we==null?void 0:we.getData(),nt=je.getPointByClient({x:H.clientX,y:H.clientY});if(te){var ft=je.editConfigModel,dt=je.textEditElement;if(dt&&dt.id===we.id&&je.setElementStateById(we.id,Jr.DEFAULT),ft.edgeTextEdit&&we.text.editable&&je.setElementStateById(we.id,Jr.TEXT_EDIT),we.modelType===kr.POLYLINE_EDGE){var vt=we,Nt=je.getPointByClient({x:H.x,y:H.y}).canvasOverlayPosition,sn=Nt.x,hn=Nt.y,Qn=Gb({x:sn,y:hn},vt.points);vt.dbClickPosition=Qn}je.eventCenter.emit(An.EDGE_DBCLICK,{data:Ge,e:H,position:nt})}else je.eventCenter.emit(An.ELEMENT_CLICK,{data:Ge,e:H,position:nt}),je.eventCenter.emit(An.EDGE_CLICK,{data:Ge,e:H,position:nt});var ln=je.editConfigModel;je.selectEdgeById(we.id,su(H,ln)),_.toFront()}}),_}return c=w,(p=[{key:"getShape",value:function(){return Object(Oe.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var _=this.props,x=_.model,M=_.graphModel;if(x.state===Jr.TEXT_EDIT)return null;var D=!1,H=M.editConfigModel;return(x.text.draggable||H.edgeTextDraggable)&&(D=!0),Object(Oe.g)(yre,{ref:this.textRef,editable:H.edgeTextEdit&&x.text.editable,model:x,graphModel:M,draggable:D})}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=_.startPoint,M=_.endPoint,D=_.isSelected;return{start:x,end:M,hover:this.state.hover,isSelected:D}}},{key:"getLastTwoPoints",value:function(){var _=this.props.model;return[_.startPoint,_.endPoint]}},{key:"getArrowStyle",value:function(){return null}},{key:"getArrow",value:function(){var _=this.props.model,x=_.id,M=_.getArrowStyle(),D=M.refY,H=D===void 0?0:D,te=M.refX,de=te===void 0?2:te,we=kre(this.getLastTwoPoints(),2),je=we[0],Ge=we[1],nt="auto";return je!==null&&Ge!==null&&(nt=ei(Pa({x:Ge.x-je.x,y:Ge.y-je.y,z:0}))),Object(Oe.g)("g",null,Object(Oe.g)("defs",null,Object(Oe.g)("marker",{id:"marker-start-".concat(x),refX:-de,refY:H,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(Oe.g)("marker",{id:"marker-end-".concat(x),refX:de,refY:H,overflow:"visible",orient:nt,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var _=this.props.model.getArrowStyle();return _.stroke,_.strokeWidth,_.offset,_.verticalLength,Object(Oe.g)("path",null)}},{key:"getEndArrow",value:function(){var _=this.props.model.getArrowStyle(),x=_.stroke,M=_.strokeWidth,D=_.offset,H=_.verticalLength;return Object(Oe.g)("path",{stroke:x,fill:x,strokeWidth:M,transform:"rotate(180)",d:"M 0 0 L ".concat(D," -").concat(H," L ").concat(D," ").concat(H," Z")})}},{key:"getAdjustPointShape",value:function(_,x,M){var D=M.getAdjustPointStyle();return Object(Oe.g)(Bv,b_({className:"lf-edge-adjust-point"},D,{x:_,y:x}))}},{key:"getAdjustPoints",value:function(){var _=this.props,x=_.model,M=_.graphModel,D=x.getAdjustStart(),H=x.getAdjustEnd();return Object(Oe.g)("g",null,Object(Oe.g)(nL,b_({type:"SOURCE"},D,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:x,graphModel:M})),Object(Oe.g)(nL,b_({type:"TARGET"},H,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:x,graphModel:M})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(Oe.g)("g",null)}},{key:"getAppend",value:function(){return Object(Oe.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"getEdge",value:function(){return null}},{key:"toFront",value:function(){var _=this.props,x=_.graphModel,M=_.model;x.toFront(M.id)}},{key:"render",value:function(){var _=this.props,x=_.model,M=x.isSelected,D=x.isHitable,H=x.isShowAdjustPoint;return _.graphModel.animation,Object(Oe.g)("g",null,Object(Oe.g)("g",{className:["lf-edge",!D&&"pointer-none",M&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverON,onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getShape(),this.getAppend(),this.getText(),this.getArrow()),H&&M?this.getAdjustPoints():"")}}])&&Ere(c.prototype,p),w}(Oe.a);function d$(d){return d$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},d$(d)}function $re(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return oL(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return oL(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function oL(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}var O_=function(d){var c={d:""};return Object.entries(d).forEach(function(p){var g=$re(p,2),w=g[0],_=g[1],x=d$(_);w!=="style"&&x==="object"||(c[w]=_)}),Object(Oe.g)("path",c)};function h$(d){return h$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},h$(d)}function p$(){return p$=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},p$.apply(this,arguments)}function Are(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Mre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function g$(d,c){return g$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},g$(d,c)}function Rre(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=tx(d);if(c){var w=tx(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Nre(this,p)}}function Nre(d,c){if(c&&(h$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function tx(d){return tx=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},tx(d)}var m$=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&g$(_,x)})(w,d);var c,p,g=Rre(w);function w(){return Are(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getEdge",value:function(){var _=this.props.model,x=_.startPoint,M=_.endPoint,D=_.isAnimation,H=_.arrowConfig,te=_.getEdgeStyle(),de=_.getEdgeAnimationStyle(),we=de.strokeDasharray,je=de.stroke,Ge=de.strokeDashoffset,nt=de.animationName,ft=de.animationDuration,dt=de.animationIterationCount,vt=de.animationTimingFunction,Nt=de.animationDirection;return Object(Oe.g)(jv,p$({},te,{x1:x.x,y1:x.y,x2:M.x,y2:M.y},H,D?{strokeDasharray:we,stroke:je,style:{strokeDashoffset:Ge,animationName:nt,animationDuration:ft,animationIterationCount:dt,animationTimingFunction:vt,animationDirection:Nt}}:{}))}},{key:"getAppendWidth",value:function(){var _=this.props.model,x=_.startPoint,M=_.endPoint,D=Kb({start:x,end:M}),H=D.d,te=D.strokeWidth,de=D.fill,we=D.strokeDasharray,je=D.stroke;return Object(Oe.g)(O_,{d:H,fill:de,strokeWidth:te,stroke:je,strokeDasharray:we})}}])&&Mre(c.prototype,p),w}(__);function v$(d){return v$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},v$(d)}function Ire(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return iL(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return iL(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function iL(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}var Dre=function(d){var c={points:"",fill:"none"};return Object.entries(d).forEach(function(p){var g=Ire(p,2),w=g[0],_=g[1];(w==="style"||v$(_)!=="object")&&(c[w]=_)}),Object(Oe.g)("polyline",c)};function y$(d){return y$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},y$(d)}function aL(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function nx(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?aL(Object(p),!0).forEach(function(g){ld(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):aL(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function b$(){return b$=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},b$.apply(this,arguments)}function jre(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return sL(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return sL(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sL(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function Lre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function _$(d,c){return _$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},_$(d,c)}function Bre(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=rx(d);if(c){var w=rx(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Vre(this,p)}}function Vre(d,c){if(c&&(y$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sd(d)}function sd(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function rx(d){return rx=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},rx(d)}function ld(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var O$=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&_$(_,x)})(w,d);var c,p,g=Bre(w);function w(){var _;return function(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")}(this,w),ld(sd(_=g.call(this)),"drag",void 0),ld(sd(_),"isDragging",void 0),ld(sd(_),"isShowAdjustPointTemp",void 0),ld(sd(_),"appendInfo",void 0),ld(sd(_),"onDragStart",function(){var x=_.props.model;x.dragAppendStart(),_.isShowAdjustPointTemp=x.isShowAdjustPoint,x.isShowAdjustPoint=!1}),ld(sd(_),"onDragging",function(x){var M=x.deltaX,D=x.deltaY,H=_.props,te=H.model,de=H.graphModel;_.isDragging=!0;var we=de.transformModel,je=de.editConfigModel,Ge=jre(we.fixDeltaXY(M,D),2),nt=Ge[0],ft=Ge[1],dt=te,vt=je.adjustEdgeMiddle;_.appendInfo=vt?dt.dragAppendSimple(_.appendInfo,{x:nt,y:ft}):dt.dragAppend(_.appendInfo,{x:nt,y:ft})}),ld(sd(_),"onDragEnd",function(){var x=_.props,M=x.model,D=x.graphModel.eventCenter,H=M;H.dragAppendEnd(),_.isDragging=!1,H.isShowAdjustPoint=_.isShowAdjustPointTemp,_.appendInfo=void 0,D.emit(An.EDGE_ADJUST,{data:H.getData()})}),ld(sd(_),"beforeDragStart",function(x,M){M.dragAble&&_.drag.handleMouseDown(x),_.appendInfo=M}),_.drag=new _l({onDragStart:_.onDragStart,onDragging:_.onDragging,onDragEnd:_.onDragEnd,isStopPropagation:!1}),_}return c=w,(p=[{key:"getEdge",value:function(){var _=this.props.model,x=_.points,M=_.isAnimation,D=_.arrowConfig,H=_.getEdgeStyle(),te=_.getEdgeAnimationStyle(),de=te.strokeDasharray,we=te.stroke,je=te.strokeDashoffset,Ge=te.animationName,nt=te.animationDuration,ft=te.animationIterationCount,dt=te.animationTimingFunction,vt=te.animationDirection;return Object(Oe.g)(Dre,b$({points:x},H,D,M?{strokeDasharray:de,stroke:we,style:{strokeDashoffset:je,animationName:Ge,animationDuration:nt,animationIterationCount:ft,animationTimingFunction:dt,animationDirection:vt}}:{}))}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=_.points,M=_.isSelected,D={start:null,end:null,hover:this.state.hover,isSelected:M},H=Wc(x);return H.length>=2&&(D.start=H[H.length-2],D.end=H[H.length-1]),D}},{key:"getLastTwoPoints",value:function(){var _=this.props.model.points,x=Wc(_);return x.length>=2?[x[x.length-2],x[x.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(_){var x,M=_.start,D=_.end;if(M.x===D.x&&M.y===D.y)x="";else{var H={start:M,end:D,offset:10,verticalLength:5},te=cg(nx(nx({},H),{},{type:"start"})),de=cg(nx(nx({},H),{},{type:"end"}));x="M".concat(te.leftX," ").concat(te.leftY,`
- L`).concat(te.rightX," ").concat(te.rightY,`
- L`).concat(de.rightX," ").concat(de.rightY,`
- L`).concat(de.leftX," ").concat(de.leftY," z")}return{d:x,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(_){var x=this.getAppendAttributes(_),M=x.d,D=x.strokeWidth,H=x.fill,te=x.strokeDasharray,de=x.stroke;return Object(Oe.g)(O_,{d:M,fill:H,strokeWidth:D,stroke:de,strokeDasharray:te})}},{key:"getAppendWidth",value:function(){for(var _=this,x=this.props,M=x.model,D=x.graphModel,H=M.pointsList,te=M.draggable,de=[],we=H.length,je=function(nt){var ft="lf-polyline-append",dt={start:{x:H[nt].x,y:H[nt].y},end:{x:H[nt+1].x,y:H[nt+1].y},startIndex:nt,endIndex:nt+1,direction:"",dragAble:!0},vt=Object(Oe.g)("g",{className:ft},_.getAppendShape(dt)),Nt=D.editConfigModel,sn=Nt.adjustEdge,hn=Nt.adjustEdgeMiddle;if(sn&&te){var Qn=dt.startIndex,ln=dt.endIndex,Mn=hn&&(Qn===0||ln===we-1);dt.dragAble=!Mn,dt.start.x===dt.end.x?(dt.dragAble&&(ft+="-ew-resize"),dt.direction=yo.VERTICAL):dt.start.y===dt.end.y&&(dt.dragAble&&(ft+="-ns-resize"),dt.direction=yo.HORIZONTAL),vt=Object(Oe.g)("g",{className:_.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(mn){return _.beforeDragStart(mn,dt)}},Object(Oe.g)("g",{className:ft},_.getAppendShape(dt)))}de.push(vt)},Ge=0;Ge<we-1;Ge++)je(Ge);return Object(Oe.g)("g",null,de)}}])&&Lre(c.prototype,p),w}(__);function w$(d){return w$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},w$(d)}function Fre(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return lL(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return lL(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lL(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function S$(){return S$=Object.assign||function(d){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},S$.apply(this,arguments)}function zre(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Qre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function x$(d,c){return x$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},x$(d,c)}function Wre(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=ox(d);if(c){var w=ox(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return Yre(this,p)}}function Yre(d,c){if(c&&(w$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function ox(d){return ox=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ox(d)}var k$=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&x$(_,x)})(w,d);var c,p,g=Wre(w);function w(){return zre(this,w),g.apply(this,arguments)}return c=w,(p=[{key:"getEdge",value:function(){var _=this.props.model,x=_.getEdgeStyle(),M=_.path,D=_.isAnimation,H=_.arrowConfig,te=_.getEdgeAnimationStyle(),de=te.strokeDasharray,we=te.stroke,je=te.strokeDashoffset,Ge=te.animationName,nt=te.animationDuration,ft=te.animationIterationCount,dt=te.animationTimingFunction,vt=te.animationDirection;return Object(Oe.g)(O_,S$({d:M},x,H,D?{strokeDasharray:de,stroke:we,style:{strokeDashoffset:je,animationName:Ge,animationDuration:nt,animationIterationCount:ft,animationTimingFunction:dt,animationDirection:vt}}:{}))}},{key:"getAppendWidth",value:function(){var _=this.props.model.path;return Object(Oe.g)(O_,{d:_,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=this.state.hover,M=_.isSelected,D=_.getArrowStyle().offset,H=_.pointsList.map(function(de){return{x:de.x,y:de.y}}),te=Fre(Pv(H,D),2);return{start:te[0],end:te[1],hover:x,isSelected:M}}},{key:"getLastTwoPoints",value:function(){var _=this.props.model,x=_.getArrowStyle().offset,M=_.pointsList.map(function(D){return{x:D.x,y:D.y}});return Pv(M,x)}}])&&Qre(c.prototype,p),w}(__);function C$(d){return C$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},C$(d)}function uL(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function Ure(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function Hre(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function Zre(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function E$(d,c){return E$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},E$(d,c)}function Xre(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=ix(d);if(c){var w=ix(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return qre(this,p)}}function qre(d,c){if(c&&(C$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(d)}function ix(d){return ix=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ix(d)}var Kre=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&E$(_,x)})(w,d);var c,p,g=Xre(w);function w(){return Hre(this,w),g.apply(this,arguments)}return c=w,p=[{key:"getArrowAttributes",value:function(){var _=this.props,x=_.arrowInfo,M=_.style,D=x.start,H=x.end,te={start:D,end:H,offset:M.offset,verticalLength:M.verticalLength,type:"end"},de=cg(te),we=de.leftX,je=de.leftY,Ge=de.rightX,nt=de.rightY;return function(ft){for(var dt=1;dt<arguments.length;dt++){var vt=arguments[dt]!=null?arguments[dt]:{};dt%2?uL(Object(vt),!0).forEach(function(Nt){Ure(ft,Nt,vt[Nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ft,Object.getOwnPropertyDescriptors(vt)):uL(Object(vt)).forEach(function(Nt){Object.defineProperty(ft,Nt,Object.getOwnPropertyDescriptor(vt,Nt))})}return ft}({d:"M".concat(we," ").concat(je," L").concat(H.x," ").concat(H.y," L").concat(Ge," ").concat(nt," z")},M)}},{key:"getShape",value:function(){var _=this.getArrowAttributes(),x=_.d,M=_.strokeWidth,D=_.stroke,H=_.fill;return Object(Oe.g)(O_,{d:x,fill:H,strokeWidth:M,stroke:D})}},{key:"render",value:function(){return Object(Oe.g)("g",{className:"lf-arrow"},this.getShape())}}],p&&Zre(c.prototype,p),w}(Oe.a),cL=function(d,c){return wt(d,c)},Gre=function(d){var c=d==null?0:d.length;return c?d[c-1]:void 0},T$=function(){return rt.a.Date.now()},Jre=/\s/,eoe=function(d){for(var c=d.length;c--&&Jre.test(d.charAt(c)););return c},toe=/^\s+/,noe=function(d){return d&&d.slice(0,eoe(d)+1).replace(toe,"")},roe=/^[-+]0x[0-9a-f]+$/i,ooe=/^0b[01]+$/i,ioe=/^0o[0-7]+$/i,aoe=parseInt,fL=function(d){if(typeof d=="number")return d;if(cr(d))return NaN;if(ro(d)){var c=typeof d.valueOf=="function"?d.valueOf():d;d=ro(c)?c+"":c}if(typeof d!="string")return d===0?d:+d;d=noe(d);var p=ooe.test(d);return p||ioe.test(d)?aoe(d.slice(2),p?2:8):roe.test(d)?NaN:+d},soe=Math.max,loe=Math.min,uoe=function(d,c,p){var g,w,_,x,M,D,H=0,te=!1,de=!1,we=!0;if(typeof d!="function")throw new TypeError("Expected a function");function je(Nt){var sn=g,hn=w;return g=w=void 0,H=Nt,x=d.apply(hn,sn)}function Ge(Nt){return H=Nt,M=setTimeout(ft,c),te?je(Nt):x}function nt(Nt){var sn=Nt-D;return D===void 0||sn>=c||sn<0||de&&Nt-H>=_}function ft(){var Nt=T$();if(nt(Nt))return dt(Nt);M=setTimeout(ft,function(sn){var hn=c-(sn-D);return de?loe(hn,_-(sn-H)):hn}(Nt))}function dt(Nt){return M=void 0,we&&g?je(Nt):(g=w=void 0,x)}function vt(){var Nt=T$(),sn=nt(Nt);if(g=arguments,w=this,D=Nt,sn){if(M===void 0)return Ge(D);if(de)return clearTimeout(M),M=setTimeout(ft,c),je(D)}return M===void 0&&(M=setTimeout(ft,c)),x}return c=fL(c)||0,ro(p)&&(te=!!p.leading,_=(de="maxWait"in p)?soe(fL(p.maxWait)||0,c):_,we="trailing"in p?!!p.trailing:we),vt.cancel=function(){M!==void 0&&clearTimeout(M),H=0,g=D=w=M=void 0},vt.flush=function(){return M===void 0?x:dt(T$())},vt},coe=o(172);function foe(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function Sh(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var dL,hL,pL,doe=function(){function d(g){(function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")})(this,d),Sh(this,"undos",[]),Sh(this,"redos",[]),Sh(this,"callbacks",[]),Sh(this,"stopWatch",null),Sh(this,"curData",null),Sh(this,"maxSize",50),Sh(this,"waitTime",100),Sh(this,"eventCenter",void 0),this.eventCenter=g}var c,p;return c=d,(p=[{key:"add",value:function(g){cL(Gre(this.undos),g)||(this.undos.push(g),cL(this.curData,g)||(this.redos=[]),this.eventCenter.emit(An.HISTORY_CHANGE,{data:{undos:this.undos,redos:this.redos,undoAble:this.undos.length>1,redoAble:this.redos.length>0}}),this.undos.length>this.maxSize&&this.undos.shift())}},{key:"undoAble",value:function(){return this.undos.length>1}},{key:"undo",value:function(){if(this.undoAble()){var g=this.undos.pop();this.redos.push(g);var w=this.undos.pop();return this.curData=Po(w),w}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var g=this.redos.pop();return this.curData=Po(g),g}}},{key:"watch",value:function(g){var w=this;this.stopWatch&&this.stopWatch(),this.undos.push(g.modelToGraphData()),this.stopWatch=Object(coe.a)(g,uoe(function(){var _=g.modelToHistoryData();_&&w.add(_)},this.waitTime))}}])&&foe(c.prototype,p),d}();function P$(d){return P$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},P$(d)}function hoe(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||function(p,g){if(!!p){if(typeof p=="string")return gL(p,g);var w=Object.prototype.toString.call(p).slice(8,-1);if(w==="Object"&&p.constructor&&(w=p.constructor.name),w==="Map"||w==="Set")return Array.from(p);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return gL(p,g)}}(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gL(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function mL(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function kg(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?mL(Object(p),!0).forEach(function(g){Cg(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):mL(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function vL(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function $$(d,c){return $$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},$$(d,c)}function poe(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=ax(d);if(c){var w=ax(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return goe(this,p)}}function goe(d,c){if(c&&(P$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qv(d)}function qv(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function ax(d){return ax=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ax(d)}function Cg(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var yL,bL,_L,A$=sc((pL=hL=function(d){(function(x,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(M&&M.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),M&&$$(x,M)})(_,d);var c,p,g,w=poe(_);function _(){var x;return function(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}(this,_),Cg(qv(x=w.call(this)),"ref",Object(Oe.f)()),Cg(qv(x),"__prevText",{type:"",text:"",id:""}),Cg(qv(x),"keyupHandler",function(M){var D=x.props.graphModel.textEditElement;M.key==="Enter"&&M.altKey&&D.setElementState(0)}),Cg(qv(x),"inputHandler",function(M){var D=M.target.innerText,H=x.props.graphModel.textEditElement;x.__prevText={type:H.type,text:D.replace(/(\r\n)+$|(\n)+$/,""),id:H.id}}),Cg(qv(x),"keydownHandler",function(M){M.stopPropagation()}),x.state={style:{left:0,top:0}},x}return c=_,g=[{key:"getDerivedStateFromProps",value:function(x){var M,D=x.graphModel,H=D.transformModel,te=D.theme,de=te.inputText,we=D.textEditElement;if(we){var je;if((je=we.text)===null||je===void 0||!je.value)if(we.BaseType===ui.EDGE){var Ge=(we=we).text,nt=we.textPosition,ft=nt.x,dt=nt.y;Ge.x=ft,Ge.y=dt,we.setText(Ge)}else we=we;var vt={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(we.BaseType===ui.EDGE){var Nt=te.edgeText,sn=Nt.overflowMode,hn=Nt.lineHeight,Qn=Nt.wrapPadding,ln=Nt.textWidth;ln&&sn==="autoWrap"&&(M=kg(kg({},vt),{},{width:ln,minWidth:ln,lineHeight:hn,padding:Qn}))}else if(we.BaseType===ui.NODE){var Mn=te.nodeText,mn=Mn.overflowMode,Ar=Mn.lineHeight,Dr=Mn.wrapPadding,tr=Mn.textWidth,Ur=we,ci=Ur.width,fi=Ur.modelType,Ma=Ur.textWidth||tr||ci;(fi!==kr.TEXT_NODE&&mn==="autoWrap"||fi===kr.TEXT_NODE&&tr)&&(M=kg(kg({},vt),{},{width:Ma,minWidth:Ma,lineHeight:Ar,padding:Dr}))}var kl=we.text,Cl=kl.x,Gc=kl.y,Eg=hoe(H.CanvasPointToHtmlPoint([Cl,Gc]),2);return{style:kg(kg({left:Eg[0],top:Eg[1]},M),de)}}}}],(p=[{key:"componentDidUpdate",value:function(){var x=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var M=this.__prevText,D=M.text,H=M.id;x.updateText(H,D),x.eventCenter.emit(An.TEXT_UPDATE,kg({},this.__prevText)),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}}},{key:"placeCaretAtEnd",value:function(x){if(window.getSelection!==void 0&&document.createRange!==void 0){var M=document.createRange();M.selectNodeContents(x),M.collapse(!1);var D=window.getSelection();D.removeAllRanges(),D.addRange(M)}}},{key:"render",value:function(){var x,M=this.props.graphModel.textEditElement,D=this.state.style;return M?Object(Oe.g)("div",{contentEditable:!0,className:"lf-text-input",style:D,ref:this.ref,key:M.id,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler},(x=M.text)===null||x===void 0?void 0:x.value):null}}])&&vL(c.prototype,p),g&&vL(c,g),_}(Oe.a),Cg(hL,"toolName","textEdit"),dL=pL))||dL,moe=function(d){return d.modelType===kr.LINE_EDGE?function(c){var p=c.startPoint,g=c.endPoint,w=(p.x+g.x)/2,_=(p.y+g.y)/2,x=Math.abs(p.x-g.x)+10,M=Math.abs(p.y-g.y)+10;return{x:w-x/2,y:_-M/2,x1:w+x/2,y1:_+M/2}}(d):d.modelType===kr.POLYLINE_EDGE?function(c){var p=c.points,g=Wc(p),w=gh(g,8),_=w.x,x=w.y,M=w.width,D=w.height;return{x:_-M/2,y:x-D/2,x1:_+M/2,y1:x+D/2}}(d):d.modelType===kr.BEZIER_EDGE?function(c){var p=c.path,g=Tv(p),w=gh(g,8),_=w.x,x=w.y,M=w.width,D=w.height;return{x:_-M/2,y:x-D/2,x1:_+M/2,y1:x+D/2}}(d):void 0};function M$(d){return M$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},M$(d)}function OL(d,c){return function(p){if(Array.isArray(p))return p}(d)||function(p,g){var w=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(w!=null){var _,x,M=[],D=!0,H=!1;try{for(w=w.call(p);!(D=(_=w.next()).done)&&(M.push(_.value),!g||M.length!==g);D=!0);}catch(te){H=!0,x=te}finally{try{D||w.return==null||w.return()}finally{if(H)throw x}}return M}}(d,c)||wL(d,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function voe(d){return function(c){if(Array.isArray(c))return R$(c)}(d)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(d)||wL(d)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function wL(d,c){if(d){if(typeof d=="string")return R$(d,c);var p=Object.prototype.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?R$(d,c):void 0}}function R$(d,c){(c==null||c>d.length)&&(c=d.length);for(var p=0,g=new Array(c);p<c;p++)g[p]=d[p];return g}function yoe(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function N$(d,c){return N$=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},N$(d,c)}function boe(d){var c=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var p,g=sx(d);if(c){var w=sx(this).constructor;p=Reflect.construct(g,arguments,w)}else p=g.apply(this,arguments);return _oe(this,p)}}function _oe(d,c){if(c&&(M$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w_(d)}function w_(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function sx(d){return sx=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},sx(d)}function S_(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var I$=sc((_L=bL=function(d){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&N$(_,x)})(w,d);var c,p,g=boe(w);function w(_){var x;(function(te,de){if(!(te instanceof de))throw new TypeError("Cannot call a class as a function")})(this,w),S_(w_(x=g.call(this)),"stepDrag",void 0),S_(w_(x),"handleMouseDown",function(te){x.stepDrag.handleMouseDown(te)}),S_(w_(x),"onDragging",function(te){var de=te.deltaX,we=te.deltaY,je=x.props.graphModel,Ge=je.getSelectElements(!0);je.moveNodes(Ge.nodes.map(function(nt){return nt.id}),de,we)}),S_(w_(x),"handleContextMenu",function(te){te.preventDefault();var de=x.props,we=de.graphModel,je=de.graphModel,Ge=je.eventCenter,nt=je.selectElements,ft=we.getPointByClient({x:te.clientX,y:te.clientY}),dt={nodes:[],edges:[]};voe(nt.values()).forEach(function(vt){vt.BaseType===ui.NODE&&dt.nodes.push(vt.getData()),vt.BaseType===ui.EDGE&&dt.edges.push(vt.getData())}),Ge.emit(An.SELECTION_CONTEXTMENU,{data:dt,e:te,position:ft})});var M=_.graphModel,D=M.gridSize,H=M.eventCenter;return x.stepDrag=new _l({onDragging:x.onDragging,step:D,eventType:"SELECTION",eventCenter:H}),x}return c=w,(p=[{key:"render",value:function(){var _=this.props.graphModel,x=_.selectElements,M=_.transformModel;if(!(x.size<=1)){var D=Number.MAX_SAFE_INTEGER,H=Number.MAX_SAFE_INTEGER,te=Number.MIN_SAFE_INTEGER,de=Number.MIN_SAFE_INTEGER;x.forEach(function(nt){var ft={x:0,y:0,x1:0,y1:0};nt.BaseType===ui.NODE&&(ft=function(dt){var vt=dt.x,Nt=dt.y,sn=dt.width,hn=dt.height;return{x:vt-sn/2,y:Nt-hn/2,x1:vt+sn/2,y1:Nt+hn/2}}(nt)),nt.BaseType===ui.EDGE&&(ft=moe(nt)),D=Math.min(D,ft.x),H=Math.min(H,ft.y),te=Math.max(te,ft.x1),de=Math.max(de,ft.y1)});var we=OL(M.CanvasPointToHtmlPoint([D,H]),2);D=we[0],H=we[1];var je=OL(M.CanvasPointToHtmlPoint([te,de]),2);te=je[0],de=je[1];var Ge={left:"".concat(D-10,"px"),top:"".concat(H-10,"px"),width:"".concat(te-D+20,"px"),height:"".concat(de-H+20,"px")};return Object(Oe.g)("div",{className:"lf-multiple-select",style:Ge,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu})}}}])&&yoe(c.prototype,p),w}(Oe.a),S_(bL,"toolName","multipleSelect"),yL=_L))||yL;function Ooe(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function lx(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var woe=function(){function d(g){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,d),lx(this,"tools",void 0),lx(this,"components",void 0),lx(this,"toolMap",new Map),lx(this,"instance",void 0),this.instance=g,this.isDisabledTool(A$.toolName)||this.registerTool(A$.toolName,A$),this.isDisabledTool(I$.toolName)||this.registerTool(I$.toolName,I$);var w=g.graphModel;w.eventCenter.on("".concat(An.GRAPH_TRANSFORM,",").concat(An.NODE_CLICK,",").concat(An.BLANK_CLICK," "),function(){var _=w.textEditElement,x=w.editConfigModel,M=x.edgeTextEdit,D=x.nodeTextEdit;(M||D)&&_&&w.textEditElement.setElementState(Jr.DEFAULT)})}var c,p;return c=d,(p=[{key:"isDisabledTool",value:function(g){return this.instance.options.disabledTools.indexOf(g)!==-1}},{key:"registerTool",value:function(g,w){this.toolMap.set(g,w)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}])&&Ooe(c.prototype,p),d}(),Soe=o(173),xoe=o.n(Soe);function koe(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function D$(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var SL=function(){function d(g){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,d),D$(this,"mousetrap",void 0),D$(this,"options",void 0),D$(this,"target",void 0),g.keyboard||(g.keyboard={enabled:!1}),this.options=g;var w=g.lf;this.target=w.container,this.mousetrap=new xoe.a(this.target),g.keyboard.enabled&&this.enable(!0)}var c,p;return c=d,(p=[{key:"initShortcuts",value:function(){var g=this,w=this.options.keyboard.shortcuts;if(w)if(fo(w))w.forEach(function(D){var H=D.keys,te=D.callback,de=D.action;return g.on(H,te,de)});else{var _=w.keys,x=w.callback,M=w.action;this.on(_,x,M)}}},{key:"on",value:function(g,w,_){this.mousetrap.bind(this.getKeys(g),w,_)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(g,w){this.mousetrap.unbind(this.getKeys(g),w)}},{key:"enable",value:function(g){(this.disabled||g)&&(this.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))}},{key:"disable",value:function(){this.disabled||(this.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}},{key:"getKeys",value:function(g){var w=this;return(Array.isArray(g)?g:[g]).map(function(_){return w.formatKey(_)})}},{key:"formatKey",value:function(g){return g.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")}}])&&koe(c.prototype,p),d}(),Coe=SL,ud=null;function xL(d,c){return d.x+=c,d.y+=c,d.text&&(d.text.x+=c,d.text.y+=c),d}function kL(d,c){return d.startPoint&&(d.startPoint.x+=c,d.startPoint.y+=c),d.endPoint&&(d.endPoint.x+=c,d.endPoint.y+=c),d.pointsList&&d.pointsList.length>0&&d.pointsList.forEach(function(p){p.x+=c,p.y+=c}),d.text&&(d.text.x+=c,d.text.y+=c),d}var Kv=40,j$=40;function L$(d){return L$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},L$(d)}function CL(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),p.push.apply(p,g)}return p}function x_(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?CL(Object(p),!0).forEach(function(g){ni(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):CL(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function EL(d,c){for(var p=0;p<c.length;p++){var g=c[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function ni(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}var B$=Symbol("plugin register by Logicflow.use"),V$=function(){function d(w){var _,x,M=this;(function(D,H){if(!(D instanceof H))throw new TypeError("Cannot call a class as a function")})(this,d),ni(this,"container",void 0),ni(this,"width",void 0),ni(this,"height",void 0),ni(this,"graphModel",void 0),ni(this,"history",void 0),ni(this,"viewMap",new Map),ni(this,"tool",void 0),ni(this,"keyboard",void 0),ni(this,"dnd",void 0),ni(this,"options",void 0),ni(this,"snaplineModel",void 0),ni(this,"components",[]),ni(this,"plugins",void 0),ni(this,"extension",{}),ni(this,"adapterIn",void 0),ni(this,"adapterOut",void 0),ni(this,"getView",function(D){return M.viewMap.get(D)}),w=w4(w),this.options=w,this.container=this.initContainer(w.container),this.plugins=w.plugins,this.graphModel=new Dv(x_({},w)),this.tool=new woe(this),this.history=new doe(this.graphModel.eventCenter),this.dnd=new Ote({lf:this}),this.keyboard=new Coe({lf:this,keyboard:w.keyboard}),w.snapline!==!1&&(this.snaplineModel=new D8(this.graphModel),_=this.graphModel.eventCenter,x=this.snaplineModel,_.on("node:mousemove",function(D){var H=D.data;x.setNodeSnapLine(H)}),_.on("node:mouseup",function(){x.clearSnapline()})),this.options.isSilentMode||(function(D,H){var te=D.keyboard,de=te.options.keyboard;te.on(["cmd + c","ctrl + c"],function(){if(j$=Kv,!de.enabled||H.textEditElement)return!0;var we=D.options.guards,je=H.getSelectElements(!1);return we&&we.beforeClone&&!we.beforeClone(je)||je.nodes.length===0&&je.edges.length===0?(ud=null,!0):((ud=je).nodes.forEach(function(Ge){return xL(Ge,Kv)}),ud.edges.forEach(function(Ge){return kL(Ge,Kv)}),!1)}),te.on(["cmd + v","ctrl + v"],function(){if(!de.enabled||H.textEditElement)return!0;if(ud&&(ud.nodes||ud.edges)){D.clearSelectElements();var we=D.addElements(ud,j$);if(!we)return!0;we.nodes.forEach(function(je){return D.selectElementById(je.id,!0)}),we.edges.forEach(function(je){return D.selectElementById(je.id,!0)}),ud.nodes.forEach(function(je){return xL(je,Kv)}),ud.edges.forEach(function(je){return kL(je,Kv)}),j$+=Kv}return!1}),te.on(["cmd + z","ctrl + z"],function(){return!de.enabled||!!H.textEditElement||(D.undo(),!1)}),te.on(["cmd + y","ctrl + y"],function(){return!de.enabled||!!H.textEditElement||(D.redo(),!1)}),te.on(["backspace"],function(){if(!de.enabled||H.textEditElement)return!0;var we=H.getSelectElements(!0);return D.clearSelectElements(),we.edges.forEach(function(je){return D.deleteEdge(je.id)}),we.nodes.forEach(function(je){return D.deleteNode(je.id)}),!1})}(this,this.graphModel),this.keyboard.initShortcuts()),this.defaultRegister(),this.installPlugins(w.disabledPlugins)}var c,p,g;return c=d,p=[{key:"register",value:function(w,_){var x=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(typeof w=="string"){var M={BaseEdge:__,BaseEdgeModel:Pb,BaseNode:id,BaseNodeModel:od,RectNode:AP,RectNodeModel:lP,CircleNode:IP,CircleNodeModel:QT,PolygonNode:VP,PolygonNodeModel:oP,TextNode:GP,TextNodeModel:dP,LineEdge:m$,LineEdgeModel:Xf,DiamondNode:WP,DiamondNodeModel:ZT,PolylineEdge:O$,PolylineEdgeModel:xv,BezierEdge:k$,BezierEdgeModel:jT,EllipseNode:XP,EllipseNodeModel:GT,HtmlNode:n$,HtmlNodeModel:gP,h:Oe.g,type:w};this.viewMap.forEach(function(we){var je=we.extendKey;je&&(M[je]=we)}),this.graphModel.modelMap.forEach(function(we){var je=we.extendKey;je&&(M[je]=we)});var D=_(M),H=D.view,te=D.model,de=H;x&&!de.isObervered&&(de.isObervered=!0,de=qe(de)),this.setView(w,de),this.graphModel.setModel(w,te)}else this.registerElement(w)}},{key:"registerElement",value:function(w){var _=w.view;w.isObserverView===!1||_.isObervered||(_.isObervered=!0,_=qe(_)),this.setView(w.type,_),this.graphModel.setModel(w.type,w.model)}},{key:"batchRegister",value:function(){var w=this,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(x){w.registerElement(x)})}},{key:"defaultRegister",value:function(){this.registerElement({view:AP,model:lP,type:"rect"}),this.registerElement({type:"circle",view:IP,model:QT}),this.registerElement({type:"polygon",view:VP,model:oP}),this.registerElement({type:"line",view:m$,model:Xf}),this.registerElement({type:"polyline",view:O$,model:xv}),this.registerElement({type:"bezier",view:k$,model:jT}),this.registerElement({type:"text",view:GP,model:dP}),this.registerElement({type:"ellipse",view:XP,model:GT}),this.registerElement({type:"diamond",view:WP,model:ZT}),this.registerElement({type:"html",view:n$,model:gP})}},{key:"selectElementById",value:function(w){var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],x=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.graphModel.selectElementById(w,_),!_&&x&&this.graphModel.toFront(w)}},{key:"focusOn",value:function(w){var _=this.graphModel.transformModel,x=w.coordinate,M=w.id;if(!x){var D=this.getNodeModelById(M);D&&(x=D.getData());var H=this.getEdgeModelById(M);H&&(x=H.textPosition)}var te=x,de=te.x,we=te.y;_.focusOn(de,we,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(w){this.graphModel.setTheme(w)}},{key:"resize",value:function(w,_){this.graphModel.resize(w,_),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height}},{key:"setDefaultEdgeType",value:function(w){this.graphModel.setDefaultEdgeType(w)}},{key:"updateText",value:function(w,_){this.graphModel.updateText(w,_)}},{key:"deleteElement",value:function(w){var _,x,M,D=this.getModelById(w);return!!D&&(x=(M=(ni(_={},ui.NODE,this.deleteNode),ni(_,ui.EDGE,this.deleteEdge),_)[D.BaseType])===null||M===void 0?void 0:M.call(this,w))!==null&&x!==void 0&&x}},{key:"getModelById",value:function(w){return this.graphModel.getElement(w)}},{key:"getDataById",value:function(w){var _;return(_=this.graphModel.getElement(w))===null||_===void 0?void 0:_.getData()}},{key:"changeNodeType",value:function(w,_){this.graphModel.changeNodeType(w,_)}},{key:"changeEdgeType",value:function(w,_){this.graphModel.changeEdgeType(w,_)}},{key:"getNodeEdges",value:function(w){return this.graphModel.getNodeEdges(w)}},{key:"addNode",value:function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:An.NODE_ADD,x=arguments.length>2?arguments[2]:void 0;return this.graphModel.addNode(w,_,x)}},{key:"deleteNode",value:function(w){var _=this.graphModel.getNodeModelById(w);if(!_)return!1;var x=_.getData(),M=this.options.guards,D=!M||!M.beforeDelete||M.beforeDelete(x);return D&&this.graphModel.deleteNode(w),D}},{key:"cloneNode",value:function(w){var _=this.graphModel.getNodeModelById(w).getData(),x=this.options.guards;if(!x||!x.beforeClone||x.beforeClone(_))return this.graphModel.cloneNode(w)}},{key:"changeNodeId",value:function(w,_){return this.graphModel.changeNodeId(w,_)}},{key:"getNodeModelById",value:function(w){return this.graphModel.getNodeModelById(w)}},{key:"getNodeDataById",value:function(w){var _;return(_=this.graphModel.getNodeModelById(w))===null||_===void 0?void 0:_.getData()}},{key:"addEdge",value:function(w){return this.graphModel.addEdge(w)}},{key:"deleteEdge",value:function(w){var _=this.options.guards,x=this.graphModel.edgesMap[w];if(!x)return!1;var M=x.model.getData(),D=!_||!_.beforeDelete||_.beforeDelete(M);return D&&this.graphModel.deleteEdgeById(w),D}},{key:"deleteEdgeByNodeId",value:function(w){var _=w.sourceNodeId,x=w.targetNodeId;_&&x?this.graphModel.deleteEdgeBySourceAndTarget(_,x):_?this.graphModel.deleteEdgeBySource(_):x&&this.graphModel.deleteEdgeByTarget(x)}},{key:"changeEdgeId",value:function(w,_){return this.graphModel.changeEdgeId(w,_)}},{key:"getEdgeModelById",value:function(w){var _;return(_=this.graphModel.edgesMap[w])===null||_===void 0?void 0:_.model}},{key:"getEdgeModels",value:function(w){var _=this.graphModel.edges,x=w.sourceNodeId,M=w.targetNodeId;if(x&&M){var D=[];return _.forEach(function(de){de.sourceNodeId===x&&de.targetNodeId===M&&D.push(de)}),D}if(x){var H=[];return _.forEach(function(de){de.sourceNodeId===x&&H.push(de)}),H}if(M){var te=[];return _.forEach(function(de){de.targetNodeId===M&&te.push(de)}),te}return[]}},{key:"getEdgeDataById",value:function(w){var _;return(_=this.getEdgeModelById(w))===null||_===void 0?void 0:_.getData()}},{key:"getNodeIncomingEdge",value:function(w){return this.graphModel.getNodeIncomingEdge(w)}},{key:"getNodeOutgoingEdge",value:function(w){return this.graphModel.getNodeOutgoingEdge(w)}},{key:"getNodeIncomingNode",value:function(w){return this.graphModel.getNodeIncomingNode(w)}},{key:"getNodeOutgoingNode",value:function(w){return this.graphModel.getNodeOutgoingNode(w)}},{key:"editText",value:function(w){this.graphModel.editText(w)}},{key:"setProperties",value:function(w,_){var x;(x=this.graphModel.getElement(w))===null||x===void 0||x.setProperties(_o(_))}},{key:"deleteProperty",value:function(w,_){var x;(x=this.graphModel.getElement(w))===null||x===void 0||x.deleteProperty(_)}},{key:"getProperties",value:function(w){var _;return(_=this.graphModel.getElement(w))===null||_===void 0?void 0:_.getProperties()}},{key:"toFront",value:function(w){this.graphModel.toFront(w)}},{key:"setElementZIndex",value:function(w,_){return this.graphModel.setElementZIndex(w,_)}},{key:"addElements",value:function(w){for(var _=this,x=w.nodes,M=w.edges,D={},H={nodes:[],edges:[]},te=0;te<x.length;te++){var de=x[te],we=de.id,je=this.addNode(de);if(!je)return;we&&(D[we]=je.id),H.nodes.push(je)}return M.forEach(function(Ge){var nt=Ge.sourceNodeId,ft=Ge.targetNodeId;D[nt]&&(nt=D[nt]),D[ft]&&(ft=D[ft]);var dt=_.graphModel.addEdge(x_(x_({},Ge),{},{sourceNodeId:nt,targetNodeId:ft}));H.edges.push(dt)}),H}},{key:"getAreaElement",value:function(w,_){var x=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],M=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],D=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(w,_,x,M,D).map(function(H){return H.getData()})}},{key:"getSelectElements",value:function(){var w=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.graphModel.getSelectElements(w)}},{key:"clearSelectElements",value:function(){this.graphModel.clearSelectElements()}},{key:"getGraphData",value:function(){var w=this.graphModel.modelToGraphData();if(this.adapterOut){for(var _=arguments.length,x=new Array(_),M=0;M<_;M++)x[M]=arguments[M];return this.adapterOut.apply(this,[w].concat(x))}return w}},{key:"getGraphRawData",value:function(){return this.graphModel.modelToGraphData()}},{key:"clearData",value:function(){this.graphModel.clearData()}},{key:"updateEditConfig",value:function(w){this.graphModel.editConfigModel.updateEditConfig(w)}},{key:"getEditConfig",value:function(){return this.graphModel.editConfigModel.getConfig()}},{key:"getPointByClient",value:function(w,_){return this.graphModel.getPointByClient({x:w,y:_})}},{key:"undo",value:function(){if(this.history.undoAble()){var w=_o(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(w)}}},{key:"redo",value:function(){if(this.history.redoAble()){var w=_o(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(w)}}},{key:"zoom",value:function(w,_){return this.graphModel.transformModel.zoom(w,_)}},{key:"resetZoom",value:function(){this.graphModel.transformModel.resetZoom()}},{key:"setZoomMiniSize",value:function(w){this.graphModel.transformModel.setZoomMiniSize(w)}},{key:"setZoomMaxSize",value:function(w){this.graphModel.transformModel.setZoomMaxSize(w)}},{key:"getTransform",value:function(){var w=this.graphModel.transformModel;return{SCALE_X:w.SCALE_X,SCALE_Y:w.SCALE_Y,TRANSLATE_X:w.TRANSLATE_X,TRANSLATE_Y:w.TRANSLATE_Y}}},{key:"translate",value:function(w,_){this.graphModel.transformModel.translate(w,_)}},{key:"resetTranslate",value:function(){var w=this.graphModel.transformModel,_=w.TRANSLATE_X,x=w.TRANSLATE_Y;this.translate(-_,-x)}},{key:"translateCenter",value:function(){this.graphModel.translateCenter()}},{key:"fitView",value:function(w,_){_===void 0&&(_=w),this.graphModel.fitView(w,_)}},{key:"openEdgeAnimation",value:function(w){this.graphModel.openEdgeAnimation(w)}},{key:"closeEdgeAnimation",value:function(w){this.graphModel.closeEdgeAnimation(w)}},{key:"on",value:function(w,_){this.graphModel.eventCenter.on(w,_)}},{key:"off",value:function(w,_){this.graphModel.eventCenter.off(w,_)}},{key:"once",value:function(w,_){this.graphModel.eventCenter.once(w,_)}},{key:"emit",value:function(w,_){this.graphModel.eventCenter.emit(w,_)}},{key:"initContainer",value:function(w){var _=document.createElement("div");return _.style.position="relative",_.style.width="100%",_.style.height="100%",w.innerHTML="",w.appendChild(_),_}},{key:"installPlugins",value:function(){var w,_=this,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=(w=this.plugins)!==null&&w!==void 0?w:d.extensions;M.forEach(function(D){var H=null,te=null;D[B$]?(H=D.extension,te=D.props):H=D;var de=H.pluginName||H.name;x.indexOf(de)===-1&&_.installPlugin(H,te)})}},{key:"installPlugin",value:function(w,_){if(L$(w)==="object"){var x=w.install,M=w.render;return x&&x.call(w,this,d),M&&this.components.push(M.bind(w)),void(this.extension[w.pluginName]=w)}var D=w,H=new D({lf:this,LogicFlow:d,options:this.options.pluginsOptions,props:_});H.render&&this.components.push(H.render.bind(H)),this.extension[D.pluginName]=H}},{key:"updateAttributes",value:function(w,_){this.graphModel.updateAttributes(w,_)}},{key:"createFakerNode",value:function(w){var _=this.graphModel.modelMap.get(w.type);if(_){var x=new _(x_(x_({},w),{},{virtual:!0}),this.graphModel);return this.graphModel.setFakerNode(x),x}}},{key:"removeFakerNode",value:function(){this.graphModel.removeFakerNode()}},{key:"setNodeSnapLine",value:function(w){this.snaplineModel&&this.snaplineModel.setNodeSnapLine(w)}},{key:"removeNodeSnapLine",value:function(){this.snaplineModel&&this.snaplineModel.clearSnapline()}},{key:"setView",value:function(w,_){this.viewMap.set(w,_)}},{key:"renderRawData",value:function(w){this.graphModel.graphDataToModel(_o(w)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(Oe.j)(Object(Oe.g)(bte,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(An.GRAPH_RENDERED,this.graphModel.modelToGraphData())}},{key:"render",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.adapterIn&&(w=this.adapterIn(w)),this.renderRawData(w)}}],g=[{key:"use",value:function(w,_){var x,M,D=w.pluginName;D||(D=w.name);var H=(x=this.extensions.get(D))===null||x===void 0?void 0:x.extension;H&&H.destroy&&H.destroy(),this.extensions.set(D,(ni(M={},B$,B$),ni(M,"extension",w),ni(M,"props",_),M))}}],p&&EL(c.prototype,p),g&&EL(c,g),d}();function sc(d){return qe(d)}ni(V$,"extensions",new Map),r.default=V$}])})})(Kt,Kt.exports);var DR=NTe(Kt.exports),DBe=function(){function e(){globalThis._ids=this,this._ids=new Set}return e.prototype.generateId=function(){var t="xxxxxxx".replace(/[x]/g,function(n){var r=Math.random()*16|0,o=n==="x"?r:r&3|8;return o.toString(16)});return t},e.prototype.next=function(){for(var t=this.generateId();this._ids.has(t);)t=this.generateId();return this._ids.add(t),t},e}(),jBe=(globalThis==null?void 0:globalThis._ids)||new DBe;function A0(){return jBe.next()}var NX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){NX(t,e);function t(n,r){var o=this;return n.id||(n.id="Event_"+A0()),n.text||(n.text=""),n.text&&typeof n.text=="string"&&(n.text={value:n.text,x:n.x,y:n.y+40}),o=e.call(this,n,r)||this,o}return t.prototype.setAttributes=function(){this.r=18},t.prototype.getConnectedTargetRules=function(){var n=e.prototype.getConnectedTargetRules.call(this),r={message:"\u8D77\u59CB\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u7EC8\u70B9",validate:function(){return!1}};return n.push(r),n},t.extendKey="StartEventModel",t})(Kt.exports.CircleNodeModel);(function(e){NX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.extendKey="StartEventNode",t})(Kt.exports.CircleNode);var IX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wC=globalThis&&globalThis.__assign||function(){return wC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wC.apply(this,arguments)};(function(e){IX(t,e);function t(n,r){var o=this;return n.id||(n.id="Event_"+A0()),n.text||(n.text=""),n.text&&typeof n.text=="string"&&(n.text={value:n.text,x:n.x,y:n.y+40}),o=e.call(this,n,r)||this,o}return t.prototype.setAttributes=function(){this.r=18},t.prototype.getConnectedSourceRules=function(){var n=e.prototype.getConnectedSourceRules.call(this),r={message:"\u7ED3\u675F\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u8D77\u70B9",validate:function(){return!1}};return n.push(r),n},t.extendKey="EndEventModel",t})(Kt.exports.CircleNodeModel);(function(e){IX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},t.prototype.getShape=function(){var n=this.props.model,r=n.getNodeStyle(),o=n.x,i=n.y,a=n.r,s=e.prototype.getShape.call(this);return Kt.exports.h("g",{},s,Kt.exports.h("circle",wC(wC({},r),{cx:o,cy:i,r:a-5})))},t.extendKey="EndEventView",t})(Kt.exports.CircleNode);var DX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dO=globalThis&&globalThis.__assign||function(){return dO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dO.apply(this,arguments)};(function(e){DX(t,e);function t(n,r){var o=this;return n.id||(n.id="Gateway_"+A0()),n.text||(n.text=""),n.text&&typeof n.text=="string"&&(n.text={value:n.text,x:n.x,y:n.y+40}),o=e.call(this,n,r)||this,o.points=[[25,0],[50,25],[25,50],[0,25]],o}return t.extendKey="ExclusiveGatewayModel",t})(Kt.exports.PolygonNodeModel);(function(e){DX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.points,l=n.getNodeStyle();return Kt.exports.h("g",{transform:"matrix(1 0 0 1 "+(r-i/2)+" "+(o-a/2)+")"},Kt.exports.h("polygon",dO(dO({},l),{x:r,y:o,points:s})),Kt.exports.h("path",dO({d:"m 16,15 7.42857142857143,9.714285714285715 -7.42857142857143,9.714285714285715 3.428571428571429,0 5.714285714285715,-7.464228571428572 5.714285714285715,7.464228571428572 3.428571428571429,0 -7.42857142857143,-9.714285714285715 7.42857142857143,-9.714285714285715 -3.428571428571429,0 -5.714285714285715,7.464228571428572 -5.714285714285715,-7.464228571428572 -3.428571428571429,0 z"},l)))},t.extendKey="ExclusiveGatewayNode",t})(Kt.exports.PolygonNode);var jX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),SC=globalThis&&globalThis.__assign||function(){return SC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},SC.apply(this,arguments)};(function(e){jX(t,e);function t(n,r){var o=this;return n.id||(n.id="Activity_"+A0()),o=e.call(this,n,r)||this,o}return t.extendKey="UserTaskModel",t})(Kt.exports.RectNodeModel);(function(e){jX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.getNodeStyle();return Kt.exports.h("svg",{x:r-i/2+5,y:o-a/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},Kt.exports.h("path",{fill:s.stroke,d:"M655.807326 287.35973m-223.989415 0a218.879 218.879 0 1 0 447.978829 0 218.879 218.879 0 1 0-447.978829 0ZM1039.955839 895.482975c-0.490184-212.177424-172.287821-384.030443-384.148513-384.030443-211.862739 0-383.660376 171.85302-384.15056 384.030443L1039.955839 895.482975z"}))},t.prototype.getShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,l=n.getNodeStyle();return Kt.exports.h("g",{},[Kt.exports.h("rect",SC(SC({},l),{x:r-i/2,y:o-a/2,rx:s,ry:s,width:i,height:a})),this.getLabelShape()])},t.extendKey="UserTaskNode",t})(Kt.exports.RectNode);var LX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jR=globalThis&&globalThis.__assign||function(){return jR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jR.apply(this,arguments)};(function(e){LX(t,e);function t(n,r){var o=this;return n.id||(n.id="Activity_"+A0()),o=e.call(this,n,r)||this,o}return t.extendKey="ServiceTaskModel",t})(Kt.exports.RectNodeModel);(function(e){LX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.getNodeStyle();return Kt.exports.h("svg",{x:r-i/2+5,y:o-a/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},Kt.exports.h("path",{fill:s.stroke,d:"M882.527918 434.149934c-2.234901-5.303796-7.311523-8.853645-13.059434-9.138124l-61.390185-3.009544c-6.635117-20.973684-15.521508-41.175795-26.513864-60.282968l42.051745-47.743374c4.308119-4.889357 4.955872-12.004405 1.602498-17.59268-46.384423-77.30362-103.969956-101.422947-106.400309-102.410438-5.332449-2.170432-11.432377-1.090844-15.693424 2.77009L654.674467 240.664222c-17.004279-8.654101-35.092239-15.756869-53.995775-21.210068l-3.26537-66.490344c-0.280386-5.747911-3.833305-10.824533-9.134031-13.059434-1.683339-0.709151-30.193673-12.391215-76.866668-12.051477-46.672996-0.339738-75.18333 11.342326-76.866668 12.051477-5.300726 2.234901-8.853645 7.311523-9.134031 13.059434l-3.26537 66.490344c-18.903535 5.453199-36.991496 12.555967-53.995775 21.210068l-48.450479-43.922349c-4.261047-3.860934-10.360975-4.940522-15.693424-2.77009-2.430352 0.98749-60.015885 25.106818-106.400309 102.410438-3.353374 5.588275-2.705622 12.703323 1.602498 17.59268l42.051745 47.743374c-10.992355 19.107173-19.878746 39.309284-26.513864 60.282968l-61.390185 3.009544c-5.747911 0.284479-10.824533 3.834328-13.059434 9.138124-1.01512 2.415003-24.687262 60.190871-2.822278 147.651828 1.583055 6.324032 7.072069 10.893094 13.57518 11.308557 5.892197 0.37146 11.751648 0.523933 17.419741 0.667196 14.498202 0.372483 28.193109 0.723477 40.908712 4.63353 4.212952 1.294482 6.435573 8.270361 9.349949 18.763342 1.287319 4.640694 2.617617 9.43693 4.484128 14.010085 1.794879 4.393054 3.75758 8.570189 5.66093 12.607132 1.302669 2.765997 2.529613 5.380544 3.689019 8.018627 2.986007 6.803963 2.682086 9.773598 2.578732 10.349719-3.061732 3.672646-6.391571 7.238868-9.91379 11.015891-1.810229 1.943258-3.680832 3.949962-5.523807 5.980201l-22.560832 24.8909c-3.865028 4.261047-4.940522 10.365068-2.774183 15.693424 0.991584 2.426259 25.102724 60.011792 102.414531 106.400309 5.588275 3.353374 12.703323 2.701528 17.591657-1.603521l23.476691-20.682042c2.346441-2.061962 4.64888-4.336772 6.875594-6.534833 9.05319-8.93858 14.018272-12.95608 17.73185-11.576663 3.305279 1.222851 6.907317 3.166109 10.720156 5.228071 3.325745 1.794879 6.764054 3.650133 10.465352 5.288446 6.016017 2.662643 12.120039 4.688789 18.019399 6.65149 6.827499 2.266623 13.279445 4.409426 18.819624 7.275707 1.518586 0.782829 1.926886 0.994654 2.358721 7.830339 0.726547 11.496845 1.25048 23.276123 1.753947 34.672684 0.264013 5.900384 0.528026 11.803837 0.815575 17.700127 0.284479 5.743818 3.833305 10.82044 9.138124 13.05534 1.654686 0.698918 29.371958 12.063757 74.869175 12.063757 0.328481 0 3.65832 0 3.986801 0 45.497217 0 73.214489-11.364839 74.869175-12.063757 5.304819-2.234901 8.853645-7.311523 9.138124-13.05534 0.287549-5.89629 0.551562-11.799744 0.815575-17.700127 0.503467-11.396561 1.027399-23.175839 1.753947-34.672684 0.431835-6.835685 0.840134-7.04751 2.358721-7.830339 5.54018-2.866281 11.992125-5.009084 18.819624-7.275707 5.89936-1.962701 12.003382-3.988848 18.019399-6.65149 3.701299-1.638313 7.139607-3.493567 10.465352-5.288446 3.812839-2.061962 7.414877-4.00522 10.720156-5.228071 3.713578-1.379417 8.67866 2.638083 17.73185 11.576663 2.226714 2.198062 4.529153 4.472871 6.875594 6.534833l23.476691 20.682042c4.888334 4.305049 12.003382 4.956895 17.591657 1.603521 77.311807-46.388517 101.422947-103.97405 102.414531-106.400309 2.166339-5.328355 1.090844-11.432377-2.774183-15.693424l-22.560832-24.8909c-1.842974-2.030239-3.713578-4.036943-5.523807-5.980201-3.52222-3.777023-6.852058-7.343245-9.91379-11.015891-0.103354-0.576121-0.407276-3.545756 2.578732-10.349719 1.159406-2.638083 2.38635-5.252631 3.689019-8.018627 1.90335-4.036943 3.866051-8.214079 5.66093-12.607132 1.866511-4.573155 3.196809-9.369392 4.484128-14.010085 2.914376-10.492982 5.136997-17.46886 9.349949-18.763342 12.715603-3.910053 26.41051-4.261047 40.908712-4.63353 5.668093-0.143263 11.527544-0.295735 17.419741-0.667196 6.503111-0.415462 11.992125-4.984524 13.57518-11.308557C907.21518 494.340805 883.543038 436.564937 882.527918 434.149934zM643.49894 643.761929c-35.280528 35.280528-82.191954 54.711066-132.086317 54.711066s-96.806813-19.430538-132.086317-54.711066c-35.280528-35.279504-54.711066-82.191954-54.711066-132.086317 0-49.894364 19.430538-96.80272 54.711066-132.082224 35.283598-35.284621 82.191954-54.711066 132.086317-54.711066s96.80579 19.426445 132.086317 54.711066c35.279504 35.279504 54.711066 82.187861 54.711066 132.082224C698.210006 561.569976 678.782537 608.482425 643.49894 643.761929z"}))},t.prototype.getShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,l=n.getNodeStyle();return Kt.exports.h("g",{},[Kt.exports.h("rect",jR({x:r-i/2,y:o-a/2,rx:s,ry:s,width:i,height:a},l)),this.getLabelShape()])},t.extendKey="ServiceTaskNode",t})(Kt.exports.RectNode);var BX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){BX(t,e);function t(n,r){var o=this;return n.id||(n.id="Flow_"+A0()),o=e.call(this,n,r)||this,o}return t.extendKey="SequenceFlowModel",t})(Kt.exports.PolylineEdgeModel);(function(e){BX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.extendKey="SequenceFlowEdge",t})(Kt.exports.PolylineEdge);var TV={width:40,height:40},PV={width:40,height:40},$V={width:40,height:40},AV={width:100,height:80},MV={width:100,height:80},LBe=function(){function e(){globalThis._ids=this,this._ids=new Set}return e.prototype.generateId=function(){var t="xxxxxxx".replace(/[x]/g,function(n){var r=Math.random()*16|0,o=n==="x"?r:r&3|8;return o.toString(16)});return t},e.prototype.next=function(){for(var t=this.generateId();this._ids.has(t);)t=this.generateId();return this._ids.add(t),t},e}(),BBe=(globalThis==null?void 0:globalThis._ids)||new LBe;function RV(){return BBe.next()}function VX(e){return Object.prototype.toString.call(e)}function VBe(e){return" ".repeat(e)}function xC(e){var t=e;return VX(e)==="[object Object]"?(t={},Object.keys(e).forEach(function(n){var r=n;n.charAt(0)==="-"&&(r=n.substring(1)),t[r]=xC(e[n])})):Array.isArray(e)&&(t=[],e.forEach(function(n,r){t[r]=xC(n)})),t}function FBe(e){var t=e;try{typeof t!="string"&&(t=JSON.parse(e))}catch{t=JSON.stringify(xC(e)).replace(/"/g,"'")}return t}var ry=`
- `;function Pk(e,t,n){var r=VBe(n),o="";if(t==="#text")return ry+r+e;if(t==="#cdata-section")return ry+r+"<![CDATA["+e+"]]>";if(t==="#comment")return ry+r+"<!--"+e+"-->";if((""+t).charAt(0)==="-")return" "+t.substring(1)+'="'+FBe(e)+'"';if(Array.isArray(e))e.forEach(function(l){o+=Pk(l,t,n+1)});else if(VX(e)==="[object Object]"){var i=Object.keys(e),a="",s="";o+=(n===0?"":ry+r)+"<"+t,i.forEach(function(l){l.charAt(0)==="-"?a+=Pk(e[l],l,n+1):s+=Pk(e[l],l,n+1)}),o+=a+(s!==""?">"+s+(ry+r)+"</"+t+">":" />")}else o+=ry+r+("<"+t+">"+e.toString()+"</"+t+">");return o}function zBe(e){var t="";for(var n in e)t+=Pk(e[n],n,0);return t}var Bs=function(){};Bs.ObjTree=function(){return this};Bs.ObjTree.VERSION="0.23";Bs.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
- `;Bs.ObjTree.prototype.attr_prefix="-";Bs.ObjTree.prototype.parseXML=function(e){var t;if(window.DOMParser){var n=new DOMParser,r=n.parseFromString(e,"application/xml");if(!r)return;t=r.documentElement}else window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLDOM"),n.async=!1,n.loadXML(e),t=n.documentElement);if(!!t)return this.parseDOM(t)};Bs.ObjTree.prototype.parseHTTP=function(e,t,n){var r={};for(var o in t)r[o]=t[o];if(r.method||(typeof r.postBody=="undefined"&&typeof r.postbody=="undefined"&&typeof r.parameters=="undefined"?r.method="get":r.method="post"),n){r.asynchronous=!0;var i=this,a=n,s=r.onComplete;r.onComplete=function(f){var h;f&&f.responseXML&&f.responseXML.documentElement&&(h=i.parseDOM(f.responseXML.documentElement)),a(h,f),s&&s(f)}}else r.asynchronous=!1;var l;if(typeof HTTP!="undefined"&&HTTP.Request){r.uri=e;var u=new HTTP.Request(r);u&&(l=u.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var u=new Ajax.Request(e,r);u&&(l=u.transport)}if(n)return l;if(l&&l.responseXML&&l.responseXML.documentElement)return this.parseDOM(l.responseXML.documentElement)};Bs.ObjTree.prototype.parseDOM=function(e){if(!!e){if(this.__force_array={},this.force_array)for(var t=0;t<this.force_array.length;t++)this.__force_array[this.force_array[t]]=1;var n=this.parseElement(e);if(this.__force_array[e.nodeName]&&(n=[n]),e.nodeType!=11){var r={};r[e.nodeName]=n,n=r}return n}};Bs.ObjTree.prototype.parseElement=function(e){if(e.nodeType!=7){if(e.nodeType==3||e.nodeType==4||e.nodeType==8){var t=e.nodeValue.match(/[^\x00-\x20]/);return t==null?void 0:e.nodeValue}var n=null,r={};if(e.attributes&&e.attributes.length){n={};for(var o=0;o<e.attributes.length;o++){var i=e.attributes[o].nodeName;if(typeof i=="string"){var a=e.attributes[o].nodeValue;try{a=JSON.parse(e.attributes[o].nodeValue.replace(/'/g,'"'))}catch{a=e.attributes[o].nodeValue}!a||(i=this.attr_prefix+i,typeof r[i]=="undefined"&&(r[i]=0),r[i]++,this.addNode(n,i,r[i],a))}}}if(e.childNodes&&e.childNodes.length){var s=!0;n&&(s=!1);for(var o=0;o<e.childNodes.length&&s;o++){var l=e.childNodes[o].nodeType;l==3||l==4||l==8||(s=!1)}if(s){n||(n="");for(var o=0;o<e.childNodes.length;o++)n+=e.childNodes[o].nodeValue}else{n||(n={});for(var o=0;o<e.childNodes.length;o++){var i=e.childNodes[o].nodeName;if(typeof i=="string"){var a=this.parseElement(e.childNodes[o]);!a||(typeof r[i]=="undefined"&&(r[i]=0),r[i]++,this.addNode(n,i,r[i],a))}}}}else n===null&&(n={});return n}};Bs.ObjTree.prototype.addNode=function(e,t,n,r){this.__force_array[t]?(n==1&&(e[t]=[]),e[t][e[t].length]=r):n==1?e[t]=r:n==2?e[t]=[e[t],r]:e[t][e[t].length]=r};Bs.ObjTree.prototype.writeXML=function(e){var t=this.hash_to_xml(null,e);return this.xmlDecl+t};Bs.ObjTree.prototype.hash_to_xml=function(e,t){var n=[],r=[];for(var o in t)if(!!t.hasOwnProperty(o)){var i=t[o];o.charAt(0)!=this.attr_prefix?typeof i=="undefined"||i==null?n[n.length]="<"+o+" />":typeof i=="object"&&i.constructor==Array?n[n.length]=this.array_to_xml(o,i):typeof i=="object"?n[n.length]=this.hash_to_xml(o,i):n[n.length]=this.scalar_to_xml(o,i):r[r.length]=" "+o.substring(1)+'="'+this.xml_escape(i)+'"'}var a=r.join(""),s=n.join("");return typeof e=="undefined"||e==null||(n.length>0?s.match(/\n/)?s="<"+e+a+`>
- `+s+"</"+e+`>
- `:s="<"+e+a+">"+s+"</"+e+`>
- `:s="<"+e+a+` />
- `),s};Bs.ObjTree.prototype.array_to_xml=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r];typeof o=="undefined"||o==null?n[n.length]="<"+e+" />":typeof o=="object"&&o.constructor==Array?n[n.length]=this.array_to_xml(e,o):typeof o=="object"?n[n.length]=this.hash_to_xml(e,o):n[n.length]=this.scalar_to_xml(e,o)}return n.join("")};Bs.ObjTree.prototype.scalar_to_xml=function(e,t){return e=="#text"?this.xml_escape(t):"<"+e+">"+this.xml_escape(t)+"</"+e+`>
- `};Bs.ObjTree.prototype.xml_escape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var QBe=function(e){return new Bs.ObjTree().parseXML(e)},WBe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),LR=globalThis&&globalThis.__assign||function(){return LR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},LR.apply(this,arguments)},pE=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},wf;(function(e){e.START="bpmn:startEvent",e.END="bpmn:endEvent",e.GATEWAY="bpmn:exclusiveGateway",e.USER="bpmn:userTask",e.SYSTEM="bpmn:serviceTask",e.FLOW="bpmn:sequenceFlow"})(wf||(wf={}));var FX=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],NV=["properties","startPoint","endPoint","pointsList"];function IV(e){var t=e?NV.concat(e):NV;return function(n){function r(o){var i={};return typeof o=="string"?o:Array.isArray(o)?o.map(function(a){return r(a)}):(Object.entries(o).forEach(function(a){var s=pE(a,2),l=s[0],u=s[1];typeof u!="object"?l.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(l)?i[l]=u:i["-"+l]=u:t.includes(l)?i["-"+l]=r(u):i[l]=r(u)}),i)}return r(n)}}function kC(e){var t={};return Object.entries(e).forEach(function(n){var r=pE(n,2),o=r[0],i=r[1];o.indexOf("-")===0?t[o.substring(1)]=xC(i):typeof i=="string"?t[o]=i:Object.prototype.toString.call(i)==="[object Object]"?t[o]=kC(i):Array.isArray(i)?t[o]=i.map(function(a){return kC(a)}):t[o]=i}),t}function YBe(e,t,n){var r=new Map;t.nodes.forEach(function(i){var a,s={"-id":i.id};if(!((a=i.text)===null||a===void 0)&&a.value&&(s["-name"]=i.text.value),i.properties){var l=IV(n)(i.properties);Object.assign(s,l)}r.set(i.id,s),e[i.type]?Array.isArray(e[i.type])?e[i.type].push(s):e[i.type]=[e[i.type],s]:e[i.type]=s});var o=t.edges.map(function(i){var a,s,l=r.get(i.targetNodeId);l["bpmn:incoming"]?Array.isArray(l["bpmn:incoming"])?l["bpmn:incoming"].push(i.id):l["bpmn:incoming"]=[l["bpmn:incoming"],i.id]:l["bpmn:incoming"]=i.id;var u={"-id":i.id,"-sourceRef":i.sourceNodeId,"-targetRef":i.targetNodeId};if(!((a=i.text)===null||a===void 0)&&a.value&&(u["-name"]=(s=i.text)===null||s===void 0?void 0:s.value),i.properties){var f=IV(n)(i.properties);Object.assign(u,f)}return u});t.edges.forEach(function(i){var a=r.get(i.sourceNodeId);a["bpmn:outgoing"]?Array.isArray(a["bpmn:outgoing"])?a["bpmn:outgoing"].push(i.id):a["bpmn:outgoing"]=[a["bpmn:outgoing"],i.id]:a["bpmn:outgoing"]=i.id}),e[wf.FLOW]=o}function UBe(e,t){e["bpmndi:BPMNEdge"]=t.edges.map(function(n){var r,o=n.id,i=n.pointsList.map(function(s){var l=s.x,u=s.y;return{"-x":l,"-y":u}}),a={"-id":o+"_di","-bpmnElement":o,"di:waypoint":i};return!((r=n.text)===null||r===void 0)&&r.value&&(a["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":n.text.x-n.text.value.length*10/2,"-y":n.text.y-7,"-width":n.text.value.length*10,"-height":14}}),a}),e["bpmndi:BPMNShape"]=t.nodes.map(function(n){var r,o=n.id,i=100,a=80,s=n.x,l=n.y,u=Mp.shapeConfigMap.get(n.type);u&&(i=u.width,a=u.height),s-=i/2,l-=a/2;var f={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":s,"-y":l,"-width":i,"-height":a}};return!((r=n.text)===null||r===void 0)&&r.value&&(f["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":n.text.x-n.text.value.length*10/2,"-y":n.text.y-7,"-width":n.text.value.length*10,"-height":14}}),f})}function HBe(e){var t=[],n=[],r=e["bpmn:definitions"];if(r){var o=r["bpmn:process"];Object.keys(o).forEach(function(i){if(i.indexOf("bpmn:")===0){var a=o[i];if(i===wf.FLOW){var s=r["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];n=XBe(a,s)}else{var l=r["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];t=t.concat(ZBe(a,l,i))}}})}return{nodes:t,edges:n}}function ZBe(e,t,n){var r=[];if(Array.isArray(e))e.forEach(function(a){var s;Array.isArray(t)?s=t.find(function(u){return u["-bpmnElement"]===a["-id"]}):s=t;var l=DV(s,n,a);r.push(l)});else{var o=void 0;Array.isArray(t)?o=t.find(function(a){return a["-bpmnElement"]===e["-id"]}):o=t;var i=DV(o,n,e);r.push(i)}return r}function DV(e,t,n){var r=Number(e["dc:Bounds"]["-x"]),o=Number(e["dc:Bounds"]["-y"]),i=n["-name"],a=Mp.shapeConfigMap.get(t);a&&(r+=a.width/2,o+=a.height/2);var s;Object.entries(n).forEach(function(h){var m=pE(h,2),y=m[0],O=m[1];FX.indexOf(y)===-1&&(s||(s={}),s[y]=O)}),s&&(s=kC(s));var l;if(i&&(l={x:r,y:o,value:i},e["bpmndi:BPMNLabel"]&&e["bpmndi:BPMNLabel"]["dc:Bounds"])){var u=e["bpmndi:BPMNLabel"]["dc:Bounds"];l.x=Number(u["-x"])+Number(u["-width"])/2,l.y=Number(u["-y"])+Number(u["-height"])/2}var f={id:e["-bpmnElement"],type:t,x:r,y:o,properties:s};return l&&(f.text=l),f}function XBe(e,t){var n=[];if(Array.isArray(e))e.forEach(function(o){var i;Array.isArray(t)?i=t.find(function(a){return a["-bpmnElement"]===o["-id"]}):i=t,n.push(jV(i,o))});else{var r=void 0;Array.isArray(t)?r=t.find(function(o){return o["-bpmnElement"]===e["-id"]}):r=t,n.push(jV(r,e))}return n}function jV(e,t){var n,r=t["-name"];if(r){var o=e["bpmndi:BPMNLabel"]["dc:Bounds"],i=0;r.split(`
- `).forEach(function(l){i<l.length&&(i=l.length)}),n={value:r,x:Number(o["-x"])+i*10/2,y:Number(o["-y"])+7}}var a;Object.entries(t).forEach(function(l){var u=pE(l,2),f=u[0],h=u[1];FX.indexOf(f)===-1&&(a||(a={}),a[f]=h)}),a&&(a=kC(a));var s={id:t["-id"],type:wf.FLOW,pointsList:e["di:waypoint"].map(function(l){return{x:Number(l["-x"]),y:Number(l["-y"])}}),sourceNodeId:t["-sourceRef"],targetNodeId:t["-targetRef"],properties:a};return n&&(s.text=n),s}var Mp=function(){function e(t){var n=this,r=t.lf;this.adapterOut=function(o,i){var a=LR({},n.processAttributes);YBe(a,o,i);var s={"-id":"BPMNPlane_1","-bpmnElement":a["-id"]};UBe(s,o);var l=n.definitionAttributes;l["bpmn:process"]=a,l["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":s};var u={"bpmn:definitions":l};return u},this.adapterIn=function(o){if(o)return HBe(o)},r.adapterIn=function(o){return n.adapterIn(o)},r.adapterOut=function(o,i){return n.adapterOut(o,i)},this.processAttributes={"-isExecutable":"true","-id":"Process_"+RV()},this.definitionAttributes={"-id":"Definitions_"+RV(),"-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.0"}}return e.prototype.setCustomShape=function(t,n){e.shapeConfigMap.set(t,n)},e.pluginName="bpmn-adapter",e.shapeConfigMap=new Map,e}();Mp.shapeConfigMap.set(wf.START,{width:TV.width,height:TV.height});Mp.shapeConfigMap.set(wf.END,{width:PV.width,height:PV.height});Mp.shapeConfigMap.set(wf.GATEWAY,{width:$V.width,height:$V.height});Mp.shapeConfigMap.set(wf.SYSTEM,{width:AV.width,height:AV.height});Mp.shapeConfigMap.set(wf.USER,{width:MV.width,height:MV.height});(function(e){WBe(t,e);function t(n){var r=e.call(this,n)||this;r.adapterXmlIn=function(i){var a=QBe(i);return r.adapterIn(a)},r.adapterXmlOut=function(i,a){var s=r.adapterOut(i,a);return zBe(s)};var o=n.lf;return o.adapterIn=r.adapterXmlIn,o.adapterOut=r.adapterXmlOut,r}return t.pluginName="bpmnXmlAdapter",t})(Mp);var qBe=function(){function e(){globalThis._ids=this,this._ids=new Set}return e.prototype.generateId=function(){var t="xxxxxxx".replace(/[x]/g,function(n){var r=Math.random()*16|0,o=n==="x"?r:r&3|8;return o.toString(16)});return t},e.prototype.next=function(){for(var t=this.generateId();this._ids.has(t);)t=this.generateId();return this._ids.add(t),t},e}(),KBe=(globalThis==null?void 0:globalThis._ids)||new qBe;function GBe(){return KBe.next()}globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var LV=globalThis&&globalThis.__assign||function(){return LV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},LV.apply(this,arguments)},JBe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var BV=globalThis&&globalThis.__assign||function(){return BV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},BV.apply(this,arguments)},eVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var VV=globalThis&&globalThis.__assign||function(){return VV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},VV.apply(this,arguments)},tVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var FV=globalThis&&globalThis.__assign||function(){return FV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},FV.apply(this,arguments)},nVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var zV=globalThis&&globalThis.__assign||function(){return zV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zV.apply(this,arguments)},rVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;Kt.exports.h("circle",{cx:18,cy:18,r:11,style:"stroke-linecap: round;stroke-linejoin: round;stroke: rgb(34, 36, 42);stroke-width: 2px;fill: white"}),Kt.exports.h("path",{d:"M 18,18 l 2.25,-7.5 m -2.25,7.5 l 5.25,1.5",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(0,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(30,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(60,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(90,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(120,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(150,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(180,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(210,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(240,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(270,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(300,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),Kt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(330,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"});Kt.exports.h("circle",{cx:18,cy:18,r:10,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 4px; fill: rgb(34, 36, 42);"});Kt.exports.h("circle",{cx:25,cy:25,r:13,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2.5px; fill: white;"});globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var QV=globalThis&&globalThis.__assign||function(){return QV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},QV.apply(this,arguments)};globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var WV=globalThis&&globalThis.__assign||function(){return WV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},WV.apply(this,arguments)},oVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;var Z3,zi,zX,hO,YV,QX={},WX=[],iVe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function zh(e,t){for(var n in t)e[n]=t[n];return e}function YX(e){var t=e.parentNode;t&&t.removeChild(e)}function pO(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Z3.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return $k(e,a,r,o,null)}function $k(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++zX:o};return o==null&&zi.vnode!=null&&zi.vnode(i),i}function X3(e){return e.children}function Ay(e,t){this.props=e,this.context=t}function i0(e,t){if(t==null)return e.__?i0(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?i0(e):null}function UX(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return UX(e)}}function UV(e){(!e.__d&&(e.__d=!0)&&hO.push(e)&&!CC.__r++||YV!==zi.debounceRendering)&&((YV=zi.debounceRendering)||setTimeout)(CC)}function CC(){for(var e;CC.__r=hO.length;)e=hO.sort(function(t,n){return t.__v.__b-n.__v.__b}),hO=[],e.some(function(t){var n,r,o,i,a,s;t.__d&&(a=(i=(n=t).__v).__e,(s=n.__P)&&(r=[],(o=zh({},i)).__v=i.__v+1,qX(s,i,o,n.__n,s.ownerSVGElement!==void 0,i.__h!=null?[a]:null,r,a==null?i0(i):a,i.__h),sVe(r,i),i.__e!=a&&UX(i)))})}function HX(e,t,n,r,o,i,a,s,l,u){var f,h,m,y,O,b,k,C=r&&r.__k||WX,P=C.length;for(n.__k=[],f=0;f<t.length;f++)if((y=n.__k[f]=(y=t[f])==null||typeof y=="boolean"?null:typeof y=="string"||typeof y=="number"||typeof y=="bigint"?$k(null,y,null,null,y):Array.isArray(y)?$k(X3,{children:y},null,null,null):y.__b>0?$k(y.type,y.props,y.key,null,y.__v):y)!=null){if(y.__=n,y.__b=n.__b+1,(m=C[f])===null||m&&y.key==m.key&&y.type===m.type)C[f]=void 0;else for(h=0;h<P;h++){if((m=C[h])&&y.key==m.key&&y.type===m.type){C[h]=void 0;break}m=null}qX(e,y,m=m||QX,o,i,a,s,l,u),O=y.__e,(h=y.ref)&&m.ref!=h&&(k||(k=[]),m.ref&&k.push(m.ref,null,y),k.push(h,y.__c||O,y)),O!=null?(b==null&&(b=O),typeof y.type=="function"&&y.__k===m.__k?y.__d=l=ZX(y,l,e):l=XX(e,y,m,C,O,l),typeof n.type=="function"&&(n.__d=l)):l&&m.__e==l&&l.parentNode!=e&&(l=i0(m))}for(n.__e=b,f=P;f--;)C[f]!=null&&(typeof n.type=="function"&&C[f].__e!=null&&C[f].__e==n.__d&&(n.__d=i0(r,f+1)),GX(C[f],C[f]));if(k)for(f=0;f<k.length;f++)KX(k[f],k[++f],k[++f])}function ZX(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?ZX(r,t,n):XX(n,r,r,o,r.__e,t));return t}function XX(e,t,n,r,o,i){var a,s,l;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return a!==void 0?a:o.nextSibling}function aVe(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||EC(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||EC(e,i,t[i],n[i],r)}function HV(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||iVe.test(t)?n:n+"px"}function EC(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||HV(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||HV(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?XV:ZV,i):e.removeEventListener(t,i?XV:ZV,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function ZV(e){this.l[e.type+!1](zi.event?zi.event(e):e)}function XV(e){this.l[e.type+!0](zi.event?zi.event(e):e)}function qX(e,t,n,r,o,i,a,s,l){var u,f,h,m,y,O,b,k,C,P,$,T,A,R=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=zi.__b)&&u(t);try{e:if(typeof R=="function"){if(k=t.props,C=(u=R.contextType)&&r[u.__c],P=u?C?C.props.value:u.__:r,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in R&&R.prototype.render?t.__c=f=new R(k,P):(t.__c=f=new Ay(k,P),f.constructor=R,f.render=uVe),C&&C.sub(f),f.props=k,f.state||(f.state={}),f.context=P,f.__n=r,h=f.__d=!0,f.__h=[]),f.__s==null&&(f.__s=f.state),R.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=zh({},f.__s)),zh(f.__s,R.getDerivedStateFromProps(k,f.__s))),m=f.props,y=f.state,h)R.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(R.getDerivedStateFromProps==null&&k!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(k,P),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(k,f.__s,P)===!1||t.__v===n.__v){f.props=k,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(B){B&&(B.__=t)}),f.__h.length&&a.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(k,f.__s,P),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,y,O)})}if(f.context=P,f.props=k,f.__v=t,f.__P=e,$=zi.__r,T=0,"prototype"in R&&R.prototype.render)f.state=f.__s,f.__d=!1,$&&$(t),u=f.render(f.props,f.state,f.context);else do f.__d=!1,$&&$(t),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++T<25);f.state=f.__s,f.getChildContext!=null&&(r=zh(zh({},r),f.getChildContext())),h||f.getSnapshotBeforeUpdate==null||(O=f.getSnapshotBeforeUpdate(m,y)),A=u!=null&&u.type===X3&&u.key==null?u.props.children:u,HX(e,Array.isArray(A)?A:[A],t,n,r,o,i,a,s,l),f.base=t.__e,t.__h=null,f.__h.length&&a.push(f),b&&(f.__E=f.__=null),f.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=lVe(n.__e,t,n,r,o,i,a,l);(u=zi.diffed)&&u(t)}catch(B){t.__v=null,(l||i!=null)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),zi.__e(B,t,n)}}function sVe(e,t){zi.__c&&zi.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){zi.__e(r,n.__v)}})}function lVe(e,t,n,r,o,i,a,s){var l,u,f,h=n.props,m=t.props,y=t.type,O=0;if(y==="svg"&&(o=!0),i!=null){for(;O<i.length;O++)if((l=i[O])&&"setAttribute"in l==!!y&&(y?l.localName===y:l.nodeType===3)){e=l,i[O]=null;break}}if(e==null){if(y===null)return document.createTextNode(m);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,m.is&&m),i=null,s=!1}if(y===null)h===m||s&&e.data===m||(e.data=m);else{if(i=i&&Z3.call(e.childNodes),u=(h=n.props||QX).dangerouslySetInnerHTML,f=m.dangerouslySetInnerHTML,!s){if(i!=null)for(h={},O=0;O<e.attributes.length;O++)h[e.attributes[O].name]=e.attributes[O].value;(f||u)&&(f&&(u&&f.__html==u.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(aVe(e,m,h,o,s),f)t.__k=[];else if(O=t.props.children,HX(e,Array.isArray(O)?O:[O],t,n,r,o&&y!=="foreignObject",i,a,i?i[0]:n.__k&&i0(n,0),s),i!=null)for(O=i.length;O--;)i[O]!=null&&YX(i[O]);s||("value"in m&&(O=m.value)!==void 0&&(O!==e.value||y==="progress"&&!O||y==="option"&&O!==h.value)&&EC(e,"value",O,h.value,!1),"checked"in m&&(O=m.checked)!==void 0&&O!==e.checked&&EC(e,"checked",O,h.checked,!1))}return e}function KX(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){zi.__e(r,n)}}function GX(e,t,n){var r,o;if(zi.unmount&&zi.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||KX(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){zi.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&GX(r[o],t,typeof e.type!="function");n||e.__e==null||YX(e.__e),e.__e=e.__d=void 0}function uVe(e,t,n){return this.constructor(e,n)}Z3=WX.slice,zi={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},zX=0,Ay.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=zh({},this.state),typeof e=="function"&&(e=e(zh({},n),this.props)),e&&zh(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),UV(this))},Ay.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),UV(this))},Ay.prototype.render=X3,hO=[],CC.__r=0;var gO=globalThis&&globalThis.__assign||function(){return gO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},gO.apply(this,arguments)};function q3(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.radius,a=e.className,s=t-r/2,l=n-o/2,u=gO(gO({width:10,height:10,cx:0,cy:0,rx:i||0,ry:i||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape "+a},e),{x:s,y:l});return Kt.exports.h("rect",gO({},u))}q3.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var my;(function(e){e.NODE="node",e.CIRCLE_NODE="circle-node",e.POLYGON_NODE="polygon-node",e.RECT_NODE="rect-node",e.HTML_NODE="html-node",e.TEXT_NODE="text-node",e.ELLIPSE_NODE="ellipse-node",e.DIAMOND_NODE="diamond-node",e.EDGE="edge",e.LINE_EDGE="line-edge",e.POLYLINE_EDGE="polyline-edge",e.BEZIER_EDGE="bezier-edge",e.GRAPH="graph"})(my||(my={}));var cVe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zg=globalThis&&globalThis.__assign||function(){return zg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zg.apply(this,arguments)},fVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},dVe=Kt.exports.LogicFlowUtil.StepDrag,hVe=function(e){cVe(t,e);function t(n){var r=e.call(this)||this;return r.updatePosition=function(o){var i=o.deltaX,a=o.deltaY,s=r.nodeModel,l=s.x,u=s.y;r.nodeModel.x=l+i/2,r.nodeModel.y=u+a/2,r.nodeModel.moveText(i/2,a/2)},r.getResize=function(o){var i=o.index,a=o.deltaX,s=o.deltaY,l=o.width,u=o.height,f=o.PCTResizeInfo,h=o.pct,m=h===void 0?1:h,y={width:l,height:u,deltaX:a,deltaY:s};if(f){var O=4,b=0,k=0;switch(i){case 0:k=(a*-1-s)/O;break;case 1:k=(a-s)/O;break;case 2:k=(a+s)/O;break;case 3:k=(a*-1+s)/O;break}k!==0&&(b=Math.round(k/f.ResizeBasis.basisHeight*1e5)/1e3),f.ResizePCT.widthPCT=Math.max(Math.min(f.ResizePCT.widthPCT+b,f.ScaleLimit.maxScaleLimit),f.ScaleLimit.minScaleLimit),f.ResizePCT.hightPCT=Math.max(Math.min(f.ResizePCT.hightPCT+b,f.ScaleLimit.maxScaleLimit),f.ScaleLimit.minScaleLimit);var C=Math.round(f.ResizePCT.widthPCT*f.ResizeBasis.basisWidth/100),P=Math.round(f.ResizePCT.hightPCT*f.ResizeBasis.basisHeight/100);switch(i){case 0:a=l-C,s=u-P;break;case 1:a=C-l,s=u-P;break;case 2:a=C-l,s=P-u;break;case 3:a=l-C,s=P-u;break}return y.width=C,y.height=P,y.deltaX=a/m,y.deltaY=s/m,y}switch(i){case 0:y.width=l-a*m,y.height=u-s*m;break;case 1:y.width=l+a*m,y.height=u-s*m;break;case 2:y.width=l+a*m,y.height=u+s*m;break;case 3:y.width=l-a*m,y.height=u+s*m;break}return y},r.updateEdgePointByAnchors=function(){var o=r.nodeModel,i=o.id,a=o.anchors,s=r.getNodeEdges(i);s.sourceEdges.forEach(function(l){var u=a.find(function(f){return f.id===l.sourceAnchorId});l.updateStartPoint({x:u.x,y:u.y})}),s.targetEdges.forEach(function(l){var u=a.find(function(f){return f.id===l.targetAnchorId});l.updateEndPoint({x:u.x,y:u.y})})},r.updateRect=function(o){var i=o.deltaX,a=o.deltaY,s=r.nodeModel,l=s.id,u=s.x,f=s.y,h=s.width,m=s.height,y=s.radius,O=s.PCTResizeInfo,b=r.index,k=r.getResize({index:b,deltaX:i,deltaY:a,width:h,height:m,PCTResizeInfo:O,pct:1}),C=r.nodeModel,P=C.minWidth,$=C.minHeight,T=C.maxWidth,A=C.maxHeight;if(k.width<P||k.width>T||k.height<$||k.height>A){r.dragHandler.cancelDrag();return}r.updatePosition({deltaX:k.deltaX,deltaY:k.deltaY}),r.nodeModel.width=k.width,r.nodeModel.height=k.height,r.nodeModel.setProperties({nodeSize:{width:k.width,height:k.height}}),r.getNodeEdges(l);var R={x:u,y:f,width:h,height:m,radius:y},B={x:r.nodeModel.x,y:r.nodeModel.y,width:r.nodeModel.width,height:r.nodeModel.height,radius:y};r.updateEdgePointByAnchors(),r.eventEmit({beforeNode:R,afterNode:B})},r.updateEllipse=function(o){var i=o.deltaX,a=o.deltaY,s=r.nodeModel,l=s.id,u=s.rx,f=s.ry,h=s.x,m=s.y,y=s.PCTResizeInfo,O=r.index,b=u,k=f,C=r.getResize({index:O,deltaX:i,deltaY:a,width:b,height:k,PCTResizeInfo:y,pct:1/2}),P=r.nodeModel,$=P.minWidth,T=P.minHeight,A=P.maxWidth,R=P.maxHeight;if(C.width<$/2||C.width>A/2||C.height<T/2||C.height>R/2){r.dragHandler.cancelDrag();return}r.updatePosition({deltaX:C.deltaX,deltaY:C.deltaY}),r.nodeModel.rx=C.width,r.nodeModel.ry=C.height,r.nodeModel.setProperties({nodeSize:{rx:C.width,ry:C.height}}),r.getNodeEdges(l);var B={x:h,y:m},I={rx:C.width,ry:C.height,x:r.nodeModel.x,y:r.nodeModel.y};r.updateEdgePointByAnchors(),r.eventEmit({beforeNode:zg(zg({},B),{rx:u,ry:f}),afterNode:I})},r.updateDiamond=function(o){var i=o.deltaX,a=o.deltaY,s=r.nodeModel;s.id;var l=s.rx,u=s.ry,f=s.x,h=s.y,m=s.PCTResizeInfo,y=r.index,O=l,b=u,k=r.getResize({index:y,deltaX:i,deltaY:a,width:O,height:b,PCTResizeInfo:m,pct:1/2}),C=r.nodeModel,P=C.minWidth,$=C.minHeight,T=C.maxWidth,A=C.maxHeight;if(k.width<P/2||k.width>T/2||k.height<$/2||k.height>A/2){r.dragHandler.cancelDrag();return}r.updatePosition({deltaX:k.deltaX,deltaY:k.deltaY}),r.nodeModel.rx=k.width,r.nodeModel.ry=k.height,r.nodeModel.setProperties({nodeSize:{rx:k.width,ry:k.height}});var R={x:f,y:h,rx:l,ry:u},B={rx:k.width,ry:k.height,x:r.nodeModel.x,y:r.nodeModel.y};r.updateEdgePointByAnchors(),r.eventEmit({beforeNode:R,afterNode:B})},r.eventEmit=function(o){var i=o.beforeNode,a=o.afterNode,s=r.nodeModel,l=s.id,u=s.modelType,f=s.type,h=zg({id:l,modelType:u,type:f},i),m=zg({id:l,modelType:u,type:f},a);r.graphModel.eventCenter.emit("node:resize",{oldNodeSize:h,newNodeSize:m})},r.onDragging=function(o){var i,a=o.deltaX,s=o.deltaY,l=r.graphModel.transformModel,u=r.nodeModel.modelType;i=fVe(l.fixDeltaXY(a,s),2),a=i[0],s=i[1],u===my.RECT_NODE||u===my.HTML_NODE?r.updateRect({deltaX:a,deltaY:s}):u===my.ELLIPSE_NODE?r.updateEllipse({deltaX:a,deltaY:s}):u===my.DIAMOND_NODE&&r.updateDiamond({deltaX:a,deltaY:s})},r.onDragEnd=function(){r.updateEdgePointByAnchors();var o=r.graphModel.gridSize,i=o===void 0?1:o,a=i*Math.round(r.nodeModel.x/i),s=i*Math.round(r.nodeModel.y/i);r.nodeModel.moveTo(a,s)},r.index=n.index,r.nodeModel=n.model,r.graphModel=n.graphModel,r.state={},r.dragHandler=new dVe({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:1}),r}return t.prototype.getNodeEdges=function(n){for(var r=this.graphModel,o=r.edges,i=[],a=[],s=0;s<o.length;s++){var l=o[s];l.sourceNodeId===n?i.push(l):o[s].targetNodeId===n&&a.push(l)}return{sourceEdges:i,targetEdges:a}},t.prototype.render=function(){var n=this.props,r=n.x,o=n.y,i=n.index,a=n.model,s=a.getControlPointStyle();return pO("g",{className:"lf-resize-control-"+i},pO(q3,zg({className:"lf-node-control"},{x:r,y:o},s,{onMouseDown:this.dragHandler.handleMouseDown})))},t}(Ay),pVe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),TC=globalThis&&globalThis.__assign||function(){return TC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},TC.apply(this,arguments)},gE=function(e){pVe(t,e);function t(){var n=e.call(this)||this;return n.state={},n}return t.prototype.getResizeControl=function(){var n=this.props,r=n.model,o=n.graphModel,i=r.x,a=r.y,s=r.width,l=r.height,u={minX:i-s/2,minY:a-l/2,maxX:i+s/2,maxY:a+l/2},f=u.minX,h=u.minY,m=u.maxX,y=u.maxY,O=[{x:f,y:h},{x:m,y:h},{x:m,y},{x:f,y}];return O.map(function(b,k){return pO(hVe,TC({index:k},b,{model:r,graphModel:o}))})},t.prototype.getGroupSolid=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.getResizeOutlineStyle();return pO(q3,TC({fill:"none"},s,{x:r,y:o,width:i,height:a}))},t.prototype.render=function(){return pO("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},t}(Ay),JX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gVe=function(e){JX(t,e);function t(n,r){var o=e.call(this,n,r)||this,i=o.properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return t.prototype.initNodeData=function(n){e.prototype.initNodeData.call(this,n),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},t.prototype.getOutlineStyle=function(){var n=e.prototype.getOutlineStyle.call(this),r=this.graphModel.editConfigModel.isSilentMode;return r||(n.stroke="none",n.hover&&(n.hover.stroke="none")),n},t.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},t.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},t.prototype.resize=function(n,r){console.log(n,r)},t.prototype.enableProportionResize=function(n){if(n===void 0&&(n=!0),n){var r={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},i={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:r,ResizeBasis:o,ScaleLimit:i}}else delete this.PCTResizeInfo},t}(Kt.exports.RectNodeModel),mVe=function(e){JX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props,r=n.model,o=n.graphModel;return Kt.exports.h(gE,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){return e.prototype.getShape.call(this)},t.prototype.getShape=function(){var n=this.props,r=n.model.isSelected,o=n.graphModel.editConfigModel.isSilentMode;return Kt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t}(Kt.exports.RectNode),eq={type:"rect",view:mVe,model:gVe},tq=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){tq(t,e);function t(n,r){var o=e.call(this,n,r)||this,i=o.properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return t.prototype.initNodeData=function(n){e.prototype.initNodeData.call(this,n),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},t.prototype.getOutlineStyle=function(){var n=e.prototype.getOutlineStyle.call(this),r=this.graphModel.editConfigModel.isSilentMode;return r||(n.stroke="none",n.hover&&(n.hover.stroke="none")),n},t.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},t.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},t.prototype.enableProportionResize=function(n){if(n===void 0&&(n=!0),n){var r={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},i={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:r,ResizeBasis:o,ScaleLimit:i}}else delete this.PCTResizeInfo},t})(Kt.exports.EllipseNodeModel);(function(e){tq(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props,r=n.model,o=n.graphModel;return Kt.exports.h(gE,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){return e.prototype.getShape.call(this)},t.prototype.getShape=function(){var n=this.props,r=n.model,o=n.graphModel.editConfigModel.isSilentMode;return Kt.exports.h("g",null,this.getResizeShape(),r.isSelected&&!o?this.getControlGroup():"")},t})(Kt.exports.EllipseNode);var BR=globalThis&&globalThis.__assign||function(){return BR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},BR.apply(this,arguments)};function vVe(e){var t=e.fillOpacity,n=t===void 0?1:t,r=e.strokeWidth,o=r===void 0?1:r,i=e.strokeOpacity,a=i===void 0?1:i,s=e.fill,l=s===void 0?"transparent":s,u=e.stroke,f=u===void 0?"#000":u,h=e.points,m=e.className,y=m===void 0?"lf-basic-shape":m,O={fill:l,fillOpacity:n,strokeWidth:o,stroke:f,strokeOpacity:a,points:"",className:y};return O.points=h.map(function(b){return b.join(",")}).join(" "),Kt.exports.h("polygon",BR({},O))}var nq=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),VR=globalThis&&globalThis.__assign||function(){return VR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},VR.apply(this,arguments)};(function(e){nq(t,e);function t(n,r){var o=e.call(this,n,r)||this,i=o.properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return t.prototype.initNodeData=function(n){e.prototype.initNodeData.call(this,n),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},t.prototype.getOutlineStyle=function(){var n=e.prototype.getOutlineStyle.call(this),r=this.graphModel.editConfigModel.isSilentMode;return r||(n.stroke="none",n.hover&&(n.hover.stroke="none")),n},t.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},t.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},t.prototype.enableProportionResize=function(n){if(n===void 0&&(n=!0),n){var r={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},i={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:r,ResizeBasis:o,ScaleLimit:i}}else delete this.PCTResizeInfo},t})(Kt.exports.DiamondNodeModel);(function(e){nq(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props,r=n.model,o=n.graphModel;return Kt.exports.h(gE,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){var n=this.props.model,r=n.points,o=n.getNodeStyle();return Kt.exports.h("g",null,Kt.exports.h(vVe,VR({},o,{points:r})))},t.prototype.getShape=function(){var n=this.props,r=n.model.isSelected,o=n.graphModel.editConfigModel.isSilentMode;return Kt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t})(Kt.exports.DiamondNode);var rq=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){rq(t,e);function t(n,r){var o=e.call(this,n,r)||this,i=o.properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return t.prototype.initNodeData=function(n){e.prototype.initNodeData.call(this,n),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},t.prototype.getOutlineStyle=function(){var n=e.prototype.getOutlineStyle.call(this),r=this.graphModel.editConfigModel.isSilentMode;return r||(n.stroke="none",n.hover&&(n.hover.stroke="none")),n},t.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},t.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},t.prototype.enableProportionResize=function(n){if(n===void 0&&(n=!0),n){var r={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},i={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:r,ResizeBasis:o,ScaleLimit:i}}else delete this.PCTResizeInfo},t})(Kt.exports.HtmlNodeModel);(function(e){rq(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props,r=n.model,o=n.graphModel;return Kt.exports.h(gE,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){return e.prototype.getShape.call(this)},t.prototype.getShape=function(){var n=this.props,r=n.model.isSelected,o=n.graphModel.editConfigModel.isSilentMode;return Kt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t})(Kt.exports.HtmlNode);var oq=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),PC=globalThis&&globalThis.__assign||function(){return PC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},PC.apply(this,arguments)},yVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},bVe=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(yVe(arguments[t]));return e},qV=500,KV=300,_Ve=-1e4;(function(e){oq(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isGroup=!0,n.unfoldedWidth=qV,n.unfoldedHight=KV,n.childrenLastFoldStatus={},n}return t.prototype.initNodeData=function(n){var r=this;e.prototype.initNodeData.call(this,n);var o=[];Array.isArray(n.children)&&(o=n.children),this.children=new Set(o),this.width=qV,this.height=KV,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=_Ve,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!1,this.properties.isFolded===void 0&&(this.properties.isFolded=!1),this.isFolded=this.properties.isFolded,setTimeout(function(){r.isFolded&&r.foldGroup(r.isFolded)})},t.prototype.getResizeOutlineStyle=function(){var n=e.prototype.getResizeOutlineStyle.call(this);return n.stroke="none",n},t.prototype.foldGroup=function(n){var r=this;if(n!==this.isFolded){this.setProperty("isFolded",n),this.isFolded=n,n?(this.x=this.x-this.width/2+this.foldedWidth/2,this.y=this.y-this.height/2+this.foldedHeight/2,this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.width=this.foldedWidth,this.height=this.foldedHeight):(this.width=this.unfoldedWidth,this.height=this.unfoldedHight,this.x=this.x+this.width/2-this.foldedWidth/2,this.y=this.y+this.height/2-this.foldedHeight/2);var o=this.incoming.edges.concat(this.outgoing.edges);this.children.forEach(function(i){var a=r.graphModel.getElement(i),s=a.isFolded;if(a.isGroup&&!a.isFolded&&a.foldGroup(n),a.isGroup&&!n){var l=r.childrenLastFoldStatus[i];l!==void 0&&l!==a.isFolded&&a.foldGroup(l)}r.childrenLastFoldStatus[i]=s,a.visible=!n,o=o.concat(a.incoming.edges.concat(a.outgoing.edges))}),this.foldEdge(n,o)}},t.prototype.getAnchorStyle=function(n){var r=e.prototype.getAnchorStyle.call(this,n);return r.stroke="transparent",r.fill="transparent",r.hover.fill="transparent",r.hover.stroke="transparent",r},t.prototype.foldEdge=function(n,r){var o=this;r.forEach(function(i,a){var s=i.id,l=i.sourceNodeId,u=i.targetNodeId,f=i.startPoint,h=i.endPoint,m=i.type,y=i.text,O=i.getProperties(),b={id:s+"__"+a,sourceNodeId:l,targetNodeId:u,startPoint:f,endPoint:h,type:m,properties:O,text:y==null?void 0:y.value};i.virtual&&o.graphModel.deleteEdgeById(i.id);var k=o.graphModel.group.getNodeGroup(u);k||(k=o.graphModel.getNodeModelById(u));var C=o.graphModel.group.getNodeGroup(l);C||(C=o.graphModel.getNodeModelById(l)),n&&i.visible!==!1&&(o.children.has(l)||o.id===l?(b.startPoint=void 0,b.sourceNodeId=o.id):(b.endPoint=void 0,b.targetNodeId=o.id),(k.id!==o.id||C.id!==o.id)&&o.createVirtualEdge(b),i.visible=!1),!n&&i.visible===!1&&(k&&k.isGroup&&k.isFolded?(b.targetNodeId=k.id,b.endPoint=void 0,o.createVirtualEdge(b)):C&&C.isGroup&&C.isFolded?(b.sourceNodeId=C.id,b.startPoint=void 0,o.createVirtualEdge(b)):i.visible=!0)})},t.prototype.createVirtualEdge=function(n){n.pointsList=void 0;var r=this.graphModel.addEdge(n);r.virtual=!0,r.text.editable=!1,r.isFoldedEdge=!0},t.prototype.isInRange=function(n){var r=n.x1,o=n.y1,i=n.x2,a=n.y2;return r>=this.x-this.width/2&&i<=this.x+this.width/2&&o>=this.y-this.height/2&&a<=this.y+this.height/2},t.prototype.isAllowMoveTo=function(n){var r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x:r>=this.x-this.width/2&&i<=this.x+this.width/2,y:o>=this.y-this.height/2&&a<=this.y+this.height/2}},t.prototype.setAllowAppendChild=function(n){this.setProperty("groupAddable",n)},t.prototype.addChild=function(n){this.children.add(n),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})},t.prototype.removeChild=function(n){this.children.delete(n),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})},t.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},t.prototype.getData=function(){var n=this,r=e.prototype.getData.call(this);r.children=[],this.children.forEach(function(i){var a=n.graphModel.getNodeModelById(i);a&&!a.virtual&&r.children.push(i)});var o=r.properties;return delete o.groupAddable,delete o.isFolded,r},t.prototype.getHistoryData=function(){var n=e.prototype.getData.call(this);n.children=bVe(this.children),n.isGroup=!0;var r=n.properties;return delete r.groupAddable,r.isFolded&&(n.x=n.x+this.unfoldedWidth/2-this.foldedWidth/2,n.y=n.y+this.unfoldedHight/2-this.foldedHeight/2),n},t.prototype.isAllowAppendIn=function(n){return!0},t.prototype.toBack=function(){this.zIndex--},t})(eq.model);(function(e){oq(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props.model,r=n.resizable,o=n.properties;return r&&!o.isFolded?e.prototype.getControlGroup.call(this):null},t.prototype.getAddableShape=function(){var n=this.props.model,r=n.width,o=n.height,i=n.x,a=n.y,s=n.radius,l=n.properties;if(!l.groupAddable)return null;var u=this.props.model.getNodeStyle().strokeWidth,f=this.props.model.getAddableOutlineStyle(),h=r+u+8,m=o+u+8;return Kt.exports.h("rect",PC(PC({},f),{width:h,height:m,x:i-h/2,y:a-m/2,rx:s,ry:s}))},t.prototype.getFoldIcon=function(){var n=this.props.model,r=n.x-n.width/2+5,o=n.y-n.height/2+5;if(!n.foldable)return null;var i=Kt.exports.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:n.properties.isFolded?"M "+(r+3)+","+(o+6)+" "+(r+11)+","+(o+6)+" M"+(r+7)+","+(o+2)+" "+(r+7)+","+(o+10):"M "+(r+3)+","+(o+6)+" "+(r+11)+","+(o+6)+" "});return Kt.exports.h("g",{},[Kt.exports.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:n.x-n.width/2+5,y:n.y-n.height/2+5,onClick:function(){n.foldGroup(!n.properties.isFolded)}}),i])},t.prototype.getResizeShape=function(){return Kt.exports.h("g",{},[this.getAddableShape(),e.prototype.getResizeShape.call(this),this.getFoldIcon()])},t})(eq.view);var GV=globalThis&&globalThis.__assign||function(){return GV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},GV.apply(this,arguments)};globalThis&&globalThis.__rest;var OVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var JV=globalThis&&globalThis.__assign||function(){return JV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},JV.apply(this,arguments)};globalThis&&globalThis.__values;var eF=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),mO=globalThis&&globalThis.__assign||function(){return mO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mO.apply(this,arguments)};function wVe(e){var t=function(r){eF(o,r);function o(i,a){var s=this;i.id||(i.id="Flow_"+GBe());var l=mO(mO(mO({},e||{}),i.properties),{isDefaultFlow:!1});return i.properties=l,s=r.call(this,i,a)||this,s}return o.extendKey="SequenceFlowModel",o}(Kt.exports.PolylineEdgeModel),n=function(r){eF(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}return o.prototype.getStartArrow=function(){var i=this.props.model,a=i.properties.isDefaultFlow;return a?Kt.exports.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):Kt.exports.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(Kt.exports.PolylineEdge);return{type:"bpmn:sequenceFlow",view:n,model:t}}wVe();globalThis&&globalThis.__read;var tF={width:40,height:40},nF={width:40,height:40},rF={width:100,height:80},$C={width:100,height:80},oF={width:100,height:80},iF={width:100,height:80},aF={width:100,height:80},sF={width:100,height:80},lF={width:100,height:80},uF={width:100,height:80},Vs=function(){};Vs.ObjTree=function(){return this};Vs.ObjTree.VERSION="0.23";Vs.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
- `;Vs.ObjTree.prototype.attr_prefix="-";Vs.ObjTree.prototype.parseXML=function(e){var t;if(window.DOMParser){var n=new DOMParser,r=n.parseFromString(e,"application/xml");if(!r)return;t=r.documentElement}else window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLDOM"),n.async=!1,n.loadXML(e),t=n.documentElement);if(!!t){var o=this.parseDOM(t);return o}};Vs.ObjTree.prototype.parseHTTP=function(e,t,n){var r={};for(var o in t)r[o]=t[o];if(r.method||(typeof r.postBody=="undefined"&&typeof r.postbody=="undefined"&&typeof r.parameters=="undefined"?r.method="get":r.method="post"),n){r.asynchronous=!0;var i=this,a=n,s=r.onComplete;r.onComplete=function(f){var h;f&&f.responseXML&&f.responseXML.documentElement&&(h=i.parseDOM(f.responseXML.documentElement)),a(h,f),s&&s(f)}}else r.asynchronous=!1;var l;if(typeof HTTP!="undefined"&&HTTP.Request){r.uri=e;var u=new HTTP.Request(r);u&&(l=u.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var u=new Ajax.Request(e,r);u&&(l=u.transport)}if(n)return l;if(l&&l.responseXML&&l.responseXML.documentElement)return this.parseDOM(l.responseXML.documentElement)};Vs.ObjTree.prototype.parseDOM=function(e){if(!!e){if(this.__force_array={},this.force_array)for(var t=0;t<this.force_array.length;t++)this.__force_array[this.force_array[t]]=1;var n=this.parseElement(e);if(this.__force_array[e.nodeName]&&(n=[n]),e.nodeType!==11){var r={};r[e.nodeName]=n,n=r}return n}};Vs.ObjTree.prototype.parseElement=function(e){if(e.nodeType!==7){if(e.nodeType===3||e.nodeType===4||e.nodeType===8){var t=e.nodeValue.match(/[^\x00-\x20]/);return t==null?void 0:e.nodeValue}var n=null,r={};if(e.attributes&&e.attributes.length){n={};for(var o=0;o<e.attributes.length;o++){var i=e.attributes[o].nodeName;if(typeof i=="string"){var a=e.attributes[o].nodeValue;try{a=JSON.parse(e.attributes[o].nodeValue.replace(/'/g,'"'))}catch{a=e.attributes[o].nodeValue}a!=null&&(i=this.attr_prefix+i,typeof r[i]=="undefined"&&(r[i]=0),r[i]++,this.addNode(n,i,r[i],a))}}}if(e.childNodes&&e.childNodes.length){var s=!0;n&&(s=!1);for(var o=0;o<e.childNodes.length&&s;o++){var l=e.childNodes[o].nodeType;l===3||l===4||l===8||(s=!1)}if(s){n||(n="");for(var o=0;o<e.childNodes.length;o++)n+=e.childNodes[o].nodeValue}else{n||(n={});for(var o=0;o<e.childNodes.length;o++){var i=e.childNodes[o].nodeName;if(typeof i=="string"){var a=this.parseElement(e.childNodes[o]);!a||(typeof r[i]=="undefined"&&(r[i]=0),r[i]++,this.addNode(n,i,r[i],a))}}}}else n===null&&(n={});return n}};Vs.ObjTree.prototype.addNode=function(e,t,n,r){this.__force_array[t]?(n===1&&(e[t]=[]),e[t][e[t].length]=r):n===1?e[t]=r:n===2?e[t]=[e[t],r]:e[t][e[t].length]=r};Vs.ObjTree.prototype.writeXML=function(e){var t=this.hash_to_xml(null,e);return this.xmlDecl+t};Vs.ObjTree.prototype.hash_to_xml=function(e,t){var n=[],r=[];for(var o in t)if(!!(t!=null&&t.hasOwnProperty(o))){var i=t[o];o.charAt(0)!==this.attr_prefix?typeof i=="undefined"||i==null?n[n.length]="<"+o+" />":typeof i=="object"&&i.constructor===Array?n[n.length]=this.array_to_xml(o,i):typeof i=="object"?n[n.length]=this.hash_to_xml(o,i):n[n.length]=this.scalar_to_xml(o,i):r[r.length]=" "+o.substring(1)+'="'+this.xml_escape(i)+'"'}var a=r.join(""),s=n.join("");return typeof e=="undefined"||e==null||(n.length>0?s.match(/\n/)?s="<"+e+a+`>
- `+s+"</"+e+`>
- `:s="<"+e+a+">"+s+"</"+e+`>
- `:s="<"+e+a+` />
- `),s};Vs.ObjTree.prototype.array_to_xml=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r];typeof o=="undefined"||o==null?n[n.length]="<"+e+" />":typeof o=="object"&&o.constructor===Array?n[n.length]=this.array_to_xml(e,o):typeof o=="object"?n[n.length]=this.hash_to_xml(e,o):n[n.length]=this.scalar_to_xml(e,o)}return n.join("")};Vs.ObjTree.prototype.scalar_to_xml=function(e,t){return e==="#text"?this.xml_escape(t):"<"+e+">"+this.xml_escape(t)+"</"+e+`>
- `};Vs.ObjTree.prototype.xml_escape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var SVe=function(e){return new Vs.ObjTree().parseXML(e)};function iq(e){return Object.prototype.toString.call(e)}function cF(e){return" ".repeat(e)}function AC(e){return iq(e)==="[object Object]"?Object.keys(e).reduce(function(t,n){var r=n;return n.charAt(0)==="-"&&(r=n.substring(1)),t[r]=AC(e[n]),t},{}):Array.isArray(e)?e.map(function(t){return AC(t)}):e}function xVe(e){var t=e;try{typeof t!="string"&&(t=JSON.parse(e))}catch{t=JSON.stringify(AC(e)).replace(/"/g,"'")}return t}var fF=`
- `;function Ak(e,t,n){var r=cF(n),o="",i=fF+r;if(t==="-json")return"";if(t==="#text")return i+e;if(t==="#cdata-section")return i+"<![CDATA["+e+"]]>";if(t==="#comment")return i+"<!--"+e+"-->";if((""+t).charAt(0)==="-")return" "+t.substring(1)+'="'+xVe(e)+'"';if(Array.isArray(e))o+=e.map(function(u){return Ak(u,t,n+1)}).join("");else if(iq(e)==="[object Object]"){var a=Object.keys(e),s="",l=e["-json"]?fF+cF(n+1)+e["-json"]:"";o+=(n===0?"":i)+"<"+t,a.forEach(function(u){u.charAt(0)==="-"?s+=Ak(e[u],u,n+1):l+=Ak(e[u],u,n+1)}),o+=s+(l!==""?">"+l+i+"</"+t+">":" />")}else o+=i+"<"+t+">"+e.toString()+"</"+t+">";return o}function kVe(e){var t="";for(var n in e)t+=Ak(e[n],n,0);return t}var CVe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),FR=globalThis&&globalThis.__assign||function(){return FR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},FR.apply(this,arguments)},dF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},K3=globalThis&&globalThis.__values||function(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.")},M0=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},My=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(M0(arguments[t]));return e},Ns;(function(e){e.START="bpmn:startEvent",e.END="bpmn:endEvent",e.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",e.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",e.BOUNDARY="bpmn:boundaryEvent",e.PARALLEL_GATEWAY="bpmn:parallelGateway",e.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",e.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",e.USER="bpmn:userTask",e.SYSTEM="bpmn:serviceTask",e.FLOW="bpmn:sequenceFlow",e.SUBPROCESS="bpmn:subProcess"})(Ns||(Ns={}));var aq=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],EVe=["properties","startPoint","endPoint","pointsList"],MC={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},sq=function(e,t){var n=Object.keys(t||{});return n.forEach(function(r){if(e[r]){var o=t[r],i=o.in,a=o.out;i&&(e[r].in=i),a&&(e[r].out=a)}else e[r]=t[r]}),e},yu={"bpmn:startEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=yu[r.definitionType])===null||t===void 0?void 0:t.out)===null||n===void 0?void 0:n.call(t,e))||{}}},"bpmn:intermediateCatchEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=yu[r.definitionType])===null||t===void 0?void 0:t.out)===null||n===void 0?void 0:n.call(t,e))||{}}},"bpmn:intermediateThrowEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=yu[r.definitionType])===null||t===void 0?void 0:t.out)===null||n===void 0?void 0:n.call(t,e))||{}}},"bpmn:boundaryEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=yu[r.definitionType])===null||t===void 0?void 0:t.out)===null||n===void 0?void 0:n.call(t,e))||{}}},"bpmn:sequenceFlow":{out:function(e){var t=e.properties,n=t.expressionType,r=t.condition;return r?n==="cdata"?{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${'+r+"}]]></bpmn:conditionExpression>"}:{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression">'+r+"</bpmn:conditionExpression>"}:{json:""}}},"bpmn:timerEventDefinition":{out:function(e){var t=e.properties,n=t.timerType,r=t.timerValue,o=t.definitionId,i=function(){return"<bpmn:"+n+' xsi:type="bpmn:tFormalExpression">'+r+"</bpmn:"+n+">"};return{json:'<bpmn:timerEventDefinition id="'+o+'"'+(n&&r?">"+i()+"</bpmn:timerEventDefinition>":"/>")}},in:function(e,t){var n,r,o,i,a=e,s=t["-id"],l="",u="";try{for(var f=K3(Object.keys(t)),h=f.next();!h.done;h=f.next()){var m=h.value;m.includes("bpmn:")&&(o=M0(m.split(":"),2),l=o[1],u=(i=t[m])===null||i===void 0?void 0:i["#text"])}}catch(y){n={error:y}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}return{"-definitionId":s,"-definitionType":a,"-timerType":l,"-timerValue":u}}},"bpmn:conditionExpression":{in:function(e,t){var n,r="",o="";return t["#cdata-section"]?(o="cdata",r=((n=/^\$\{(.*)\}$/g.exec(t["#cdata-section"]))===null||n===void 0?void 0:n[1])||""):t["#text"]&&(o="normal",r=t["#text"]),{"-condition":r,"-expressionType":o}}}};function TVe(e){var t=e!=null?e:{},n=t.retainedAttrsFields,r=t.excludeFields,o=t.transformer,i=new Set(My(EVe,n||[])),a={in:new Set(My(MC.in,(r==null?void 0:r.in)||[])),out:new Set(My(MC.out,(r==null?void 0:r.out)||[]))};return yu=sq(yu,o),function(s){var l=s.nodes,u=s.edges;function f(h,m){var y,O,b;if((h==null?void 0:h.flag)!==1){var k;if((k=yu[h.type])&&k.out){var C=k.out(h),P=Object.keys(C);P.length>0&&P.forEach(function(j){h[j]=C[j]})}h!=null&&h.children&&(h.children=h.children.map(function(j){var L=l.find(function(V){return V.id===j})||u.find(function(V){return V.id===j});return L||{}}));var $={};if(typeof h=="string")return h;if(Array.isArray(h))return h.map(function(j){return f(j,"")}).filter(function(j){return j!=null});try{for(var T=K3(Object.entries(h)),A=T.next();!A.done;A=T.next()){var R=M0(A.value,2),B=R[0],I=R[1];if(((b=I)===null||b===void 0?void 0:b.flag)===1)return;var N=[m,B].filter(function(j){return j}).join(".");a.out.has(N)||(typeof I!="object"?B.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(B)?$[B]=I:$["-"+B]=I:i.has(N)?$["-"+B]=f(I,N):$[B]=f(I,N))}}catch(j){y={error:j}}finally{try{A&&!A.done&&(O=T.return)&&O.call(T)}finally{if(y)throw y.error}}return $}}return f(s,"")}}function RC(e){var t,n,r={};try{for(var o=K3(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a=M0(i.value,2),s=a[0],l=a[1];s.indexOf("-")===0?r[s.substring(1)]=AC(l):typeof l=="string"?r[s]=l:Object.prototype.toString.call(l)==="[object Object]"?r[s]=RC(l):Array.isArray(l)?r[s]=l.map(function(u){return RC(u)}):r[s]=l}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function PVe(e,t,n){var r,o=new Map,i=TVe(n)(t);i.nodes.forEach(function(s){var l=s["-id"],u=s["-type"],f=s.text,h=s.children,m=dF(s,["-id","-type","text","children"]),y={"-id":l};f!=null&&f["-value"]&&(y["-name"]=f["-value"]),m["-json"]&&(y["-json"]=m["-json"]),m["-properties"]&&Object.assign(y,m["-properties"]),h&&(y.children=h),e[u]||(e[u]=[]),e[u].push(y),o.set(l,y)});var a=i.edges.map(function(s){var l=s["-id"];s["-type"];var u=s["-sourceNodeId"],f=s["-targetNodeId"],h=s.text,m=dF(s,["-id","-type","-sourceNodeId","-targetNodeId","text"]),y=o.get(f);y["bpmn:incoming"]||(y["bpmn:incoming"]=[]),y["bpmn:incoming"].push(l);var O={"-id":l,"-sourceRef":u,"-targetRef":f};return h!=null&&h["-value"]&&(O["-name"]=h["-value"]),m["-json"]&&(O["-json"]=m["-json"]),m["-properties"]&&Object.assign(O,m["-properties"]),O});return t.edges.forEach(function(s){var l=s.sourceNodeId,u=s.id,f=o.get(l);f["bpmn:outgoing"]||(f["bpmn:outgoing"]=[]),f["bpmn:outgoing"].push(u)}),(r=e["bpmn:subProcess"])===null||r===void 0||r.forEach(function(s){var l={"bpmn:incoming":new Set,"bpmn:outgoing":new Set},u=[];s.children.forEach(function(b){var k,C=o.get(b["-id"]);["bpmn:incoming","bpmn:outgoing"].forEach(function($){C[$]&&C[$].forEach(function(T){l[$].add(T)})});var P=(k=e[b["-type"]])===null||k===void 0?void 0:k.findIndex(function($){return $["-id"]===b["-id"]});P>=0&&e[b["-type"]].splice(P,1),o.delete(b["-id"]),s[b["-type"]]||(s[b["-type"]]=[]),s[b["-type"]].push(C)});var f=l["bpmn:incoming"],h=l["bpmn:outgoing"];h.forEach(function(b){f.has(b)&&u.push(b)});for(var m=function(b){var k=a.findIndex(function(C){return C["-id"]===u[b]});k>=0?(s["bpmn:sequenceFlow"]||(s["bpmn:sequenceFlow"]=[]),s["bpmn:sequenceFlow"].push(a[k]),a.splice(k,1)):b++,y=b},y,O=0;O<u.length;)m(O),O=y;delete s.children}),e[Ns.FLOW]=a,e}function $Ve(e,t){e["bpmndi:BPMNEdge"]=t.edges.map(function(n){var r,o=n.id,i=n.pointsList.map(function(s){var l=s.x,u=s.y;return{"-x":l,"-y":u}}),a={"-id":o+"_di","-bpmnElement":o,"di:waypoint":i};return!((r=n.text)===null||r===void 0)&&r.value&&(a["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":n.text.x-n.text.value.length*10/2,"-y":n.text.y-7,"-width":n.text.value.length*10,"-height":14}}),a}),e["bpmndi:BPMNShape"]=t.nodes.map(function(n){var r,o=n.id,i=100,a=80,s=n.x,l=n.y,u=fl.shapeConfigMap.get(n.type);u&&(i=u.width,a=u.height),s-=i/2,l-=a/2;var f={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":s,"-y":l,"-width":i,"-height":a}};return!((r=n.text)===null||r===void 0)&&r.value&&(f["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":n.text.x-n.text.value.length*10/2,"-y":n.text.y-7,"-width":n.text.value.length*10,"-height":14}}),f})}var AVe=["bpmn:incoming","bpmn:outgoing"];function MVe(e,t){var n=[],r=[],o=new Map,i=t!=null?t:{},a=i.transformer,s=i.excludeFields,l={in:new Set(My(MC.in,(s==null?void 0:s.in)||[])),out:new Set(My(MC.out,(s==null?void 0:s.out)||[]))};yu=sq(yu,a);var u=e["bpmn:definitions"];if(u){var f=u["bpmn:process"];(function(m,y){y.forEach(function(O){try{Object.keys(m).forEach(function(b){try{O(b)}catch(k){console.error(k)}})}catch(b){console.error(b)}})})(f,[function(m){function y(b){b["-children"]||(b["-children"]=[]),Object.keys(b).forEach(function(k){var C;k.indexOf("bpmn:")===0&&!AVe.includes(k)&&(f[k]||(f[k]=[]),!Array.isArray(f[k])&&(f[k]=[f[k]]),Array.isArray(b[k])?(C=f[k]).push.apply(C,My(b[k])):f[k].push(b[k]),Array.isArray(b[k])?b[k].forEach(function(P){!k.includes("Flow")&&b["-children"].push(P["-id"])}):!k.includes("Flow")&&b["-children"].push(b[k]["-id"]),delete b[k])})}if(m==="bpmn:subProcess"){var O=f[m];Array.isArray(O)?O.forEach(function(b){m==="bpmn:subProcess"&&y(b)}):y(O)}},function(m){var y=function(b){Object.keys(b).forEach(function(k){var C,P;if(k.includes("bpmn:")){var $={};yu[k]&&yu[k].in?($=(P=(C=yu[k]).in)===null||P===void 0?void 0:P.call(C,k,$e.cloneDeep(b[k])),delete b[k]):O(b[k]);var T=void 0;(T=Reflect.ownKeys($)).length>0&&T.forEach(function(A){Reflect.set(b,A,$[A])})}})};function O(b){o.set(b["-id"],b),Array.isArray(b)?b.forEach(function(k){O(k)}):typeof b=="object"&&y(b)}O(f[m])},function(m){if(m.indexOf("bpmn:")===0){var y=f[m];if(m==="bpmn:sequenceFlow"){var O=u["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];r=NVe(y,O)}else{var b=u["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(m==="bpmn:boundaryEvent"){var k=f[m],C=function(P){var $=P["-attachedToRef"],T=o.get($);T["-boundaryEvents"]||(T["-boundaryEvents"]=[]),T["-boundaryEvents"].push(P["-id"])};Array.isArray(k)?k.forEach(function(P){C(P)}):C(k)}n=n.concat(RVe(y,b,m))}}}])}var h=function(m,y,O){Object.keys(m).forEach(function(b){var k=O?O+"."+b:b;y.has(k)?delete m[b]:typeof m[b]=="object"&&h(m[b],y,k)})};return n.forEach(function(m){var y,O;if(!((y=t==null?void 0:t.mapping)===null||y===void 0)&&y.in){var b=(O=t==null?void 0:t.mapping)===null||O===void 0?void 0:O.in,k=m.type;b[k]&&(m.type=b[k])}h(m,l.in,"")}),r.forEach(function(m){var y,O;if(!((y=t==null?void 0:t.mapping)===null||y===void 0)&&y.in){var b=(O=t==null?void 0:t.mapping)===null||O===void 0?void 0:O.in,k=m.type;b[k]&&(m.type=b[k])}h(m,l.in,"")}),{nodes:n,edges:r}}function RVe(e,t,n){var r=[];if(Array.isArray(e))e.forEach(function(a){var s;Array.isArray(t)?s=t.find(function(u){return u["-bpmnElement"]===a["-id"]}):s=t;var l=hF(s,n,a);r.push(l)});else{var o=void 0;Array.isArray(t)?o=t.find(function(a){return a["-bpmnElement"]===e["-id"]}):o=t;var i=hF(o,n,e);r.push(i)}return r}function hF(e,t,n){var r=Number(e["dc:Bounds"]["-x"]),o=Number(e["dc:Bounds"]["-y"]),i=n["-children"],a=n["-name"],s=fl.shapeConfigMap.get(t);s&&(r+=s.width/2,o+=s.height/2);var l={};Object.entries(n).forEach(function(m){var y=M0(m,2),O=y[0],b=y[1];aq.includes(O)||(l[O]=b)}),l=RC(l);var u;if(a&&(u={x:r,y:o,value:a},e["bpmndi:BPMNLabel"]&&e["bpmndi:BPMNLabel"]["dc:Bounds"])){var f=e["bpmndi:BPMNLabel"]["dc:Bounds"];u.x=Number(f["-x"])+Number(f["-width"])/2,u.y=Number(f["-y"])+Number(f["-height"])/2}var h={id:e["-bpmnElement"],type:t,x:r,y:o,properties:l};return i&&(h.children=i),u&&(h.text=u),h}function NVe(e,t){var n=[];if(Array.isArray(e))e.forEach(function(o){var i;Array.isArray(t)?i=t.find(function(a){return a["-bpmnElement"]===o["-id"]}):i=t,n.push(pF(i,o))});else{var r=void 0;Array.isArray(t)?r=t.find(function(o){return o["-bpmnElement"]===e["-id"]}):r=t,n.push(pF(r,e))}return n}function pF(e,t){var n,r=t["-name"];if(r){var o=e["bpmndi:BPMNLabel"]["dc:Bounds"],i=0;r.split(`
- `).forEach(function(u){i<u.length&&(i=u.length)}),n={value:r,x:Number(o["-x"])+i*10/2,y:Number(o["-y"])+7}}var a={};Object.entries(t).forEach(function(u){var f=M0(u,2),h=f[0],m=f[1];aq.includes(h)||(a[h]=m)}),a=RC(a);var s=e["di:waypoint"].map(function(u){return{x:Number(u["-x"]),y:Number(u["-y"])}}),l={id:t["-id"],type:Ns.FLOW,pointsList:s,sourceNodeId:t["-sourceRef"],targetNodeId:t["-targetRef"],properties:a};return n&&(l.text=n),l}var fl=function(){function e(t){var n=this,r=t.lf;this.adapterOut=function(o,i){var a,s,l=FR({},n.processAttributes);PVe(l,o,i);var u={"-id":"BPMNPlane_1","-bpmnElement":l["-id"]};$Ve(u,o);var f=n.definitionAttributes;f["bpmn:process"]=l,f["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":u};var h={"bpmn:definitions":f};if(!((a=i==null?void 0:i.mapping)===null||a===void 0)&&a.out){var m=(s=i==null?void 0:i.mapping)===null||s===void 0?void 0:s.out,y=function(O){Array.isArray(O)&&O.forEach(function(b){return y(b)}),typeof O=="object"&&Object.keys(O).forEach(function(b){var k;(k=m[b])?(O[k]=$e.cloneDeep(O[b]),delete O[b],y(O[k])):y(O[b])})};y(h)}return h},this.adapterIn=function(o,i){if(o)return MVe(o,i)},r.adapterIn=this.adapterIn,r.adapterOut=this.adapterOut,this.processAttributes={"-isExecutable":"true","-id":"Process"},this.definitionAttributes={"-id":"Definitions","-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.10"}}return e.prototype.setCustomShape=function(t,n){e.shapeConfigMap.set(t,n)},e.pluginName="bpmn-adapter",e.shapeConfigMap=new Map,e}();fl.shapeConfigMap.set(Ns.START,{width:tF.width,height:tF.height});fl.shapeConfigMap.set(Ns.END,{width:nF.width,height:nF.height});fl.shapeConfigMap.set(Ns.INTERMEDIATE_CATCH,{width:$C.width,height:$C.height});fl.shapeConfigMap.set(Ns.INTERMEDIATE_THROW,{width:$C.width,height:$C.height});fl.shapeConfigMap.set(Ns.BOUNDARY,{width:rF.width,height:rF.height});fl.shapeConfigMap.set(Ns.PARALLEL_GATEWAY,{width:oF.width,height:oF.height});fl.shapeConfigMap.set(Ns.INCLUSIVE_GATEWAY,{width:iF.width,height:iF.height});fl.shapeConfigMap.set(Ns.EXCLUSIVE_GATEWAY,{width:aF.width,height:aF.height});fl.shapeConfigMap.set(Ns.SYSTEM,{width:sF.width,height:sF.height});fl.shapeConfigMap.set(Ns.USER,{width:lF.width,height:lF.height});fl.shapeConfigMap.set(Ns.SUBPROCESS,{width:uF.width,height:uF.height});(function(e){CVe(t,e);function t(n){var r=e.call(this,n)||this;r.adapterXmlIn=function(a){var s=SVe(a);return r.adapterIn(s,r.props)},r.adapterXmlOut=function(a){var s=r.adapterOut(a,r.props);return kVe(s)};var o=n.lf,i=n.props;return o.adapterIn=r.adapterXmlIn,o.adapterOut=r.adapterXmlOut,r.props=i,r}return t.pluginName="BPMNAdapter",t})(fl);var IVe=function(){function e(t){var n=this,r=t.lf;this.lf=r,this.customCssRules="",this.useGlobalRules=!0,r.getSnapshot=function(o,i){n.getSnapshot(o,i)},r.getSnapshotBlob=function(o){return n.getSnapshotBlob(o)},r.getSnapshotBase64=function(o){return n.getSnapshotBase64(o)}}return e.prototype.getSvgRootElement=function(t){var n=t.container.querySelector(".lf-canvas-overlay");return n},e.prototype.triggerDownload=function(t){var n=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0}),r=document.createElement("a");r.setAttribute("download",this.fileName),r.setAttribute("href",t),r.setAttribute("target","_blank"),r.dispatchEvent(n)},e.prototype.removeAnchor=function(t){for(var n=t.childNodes,r=t.childNodes&&t.childNodes.length,o=0;o<r;o++){var i=n[o],a=i.classList&&Array.from(i.classList)||[];a.indexOf("lf-anchor")>-1&&(t.removeChild(t.childNodes[o]),r--,o--)}},e.prototype.removeRotateControl=function(t){for(var n=t.childNodes,r=t.childNodes&&t.childNodes.length,o=0;o<r;o++){var i=n[o],a=i.classList&&Array.from(i.classList)||[];a.indexOf("lf-rotate-control")>-1&&(t.removeChild(t.childNodes[o]),r--,o--)}},e.prototype.getSnapshot=function(t,n){var r=this;this.fileName=t||"logic-flow."+Date.now()+".png";var o=this.getSvgRootElement(this.lf);this.getCanvasData(o,n).then(function(i){var a=i.toDataURL("image/png").replace("image/png","image/octet-stream");r.triggerDownload(a)})},e.prototype.getSnapshotBase64=function(t){var n=this,r=this.getSvgRootElement(this.lf);return new Promise(function(o){n.getCanvasData(r,t).then(function(i){var a=i.toDataURL("image/png");o({data:a,width:i.width,height:i.height})})})},e.prototype.getSnapshotBlob=function(t){var n=this,r=this.getSvgRootElement(this.lf);return new Promise(function(o){n.getCanvasData(r,t).then(function(i){i.toBlob(function(a){o({data:a,width:i.width,height:i.height})},"image/png")})})},e.prototype.getClassRules=function(){var t="";if(this.useGlobalRules)for(var n=document.styleSheets,r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.cssRules.length;i++)t+=o.cssRules[i].cssText;return this.customCssRules&&(t+=this.customCssRules),t},e.prototype.getCanvasData=function(t,n){var r=this,o=t.cloneNode(!0),i=o.lastChild,a=i.childNodes&&i.childNodes.length;if(a)for(var s=0;s<a;s++){var l=i.childNodes[s],u=l.classList&&Array.from(l.classList);if(u&&u.indexOf("lf-base")<0)i.removeChild(i.childNodes[s]),a--,s--;else{var f=i.childNodes[s];f&&f.childNodes.forEach(function(oe){var K=oe;r.removeAnchor(K.firstChild),r.removeRotateControl(K.firstChild)})}}var h=window.devicePixelRatio||1;h<1&&(h=1);var m=document.createElement("canvas"),y=this.lf.graphModel.rootEl.querySelector(".lf-base"),O=y.getBoundingClientRect(),b=document.querySelector(".lf-canvas-overlay").getBoundingClientRect(),k=O.x-b.x,C=O.y-b.y,P=this.lf.graphModel,$=P.transformModel,T=$.SCALE_X,A=$.SCALE_Y,R=$.TRANSLATE_X,B=$.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-k+R)*(1/T)+10)+", "+((-C+B)*(1/A)+10)+")";var I=Math.ceil(O.width/T),N=Math.ceil(O.height/A);m.style.width=I+"px",m.style.height=N+"px",m.width=I*h+80,m.height=N*h+80;var j=m.getContext("2d");j.clearRect(0,0,m.width,m.height),j.scale(h,h),n?(j.fillStyle=n,j.fillRect(0,0,I*h+80,N*h+80)):j.clearRect(0,0,I,N);var L=new Image,V=document.createElement("style");V.innerHTML=this.getClassRules();var X=document.createElement("foreignObject");return X.appendChild(V),o.appendChild(X),new Promise(function(oe){L.onload=function(){var re=navigator.userAgent.indexOf("Firefox")>-1;try{re?createImageBitmap(L,{resizeWidth:m.width,resizeHeight:m.height}).then(function(J){j.drawImage(J,0,0),oe(m)}):(j.drawImage(L,0,0),oe(m))}catch{j.drawImage(L,0,0),oe(m)}};var K="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(o),Z=K.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");L.src=Z})},e.pluginName="snapshot",e}(),gF=globalThis&&globalThis.__assign||function(){return gF=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},gF.apply(this,arguments)};globalThis&&globalThis.__read;var mF;(function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"})(mF||(mF={}));var DVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;var jVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;var LVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__read;var BVe=function(){function e(t){var n=this,r=t.lf;this.__disabled=!1,this.isDefaultStopMoveGraph=!1,this.isWholeNode=!0,this.isWholeEdge=!0,this.__draw=function(i){var a=n.lf.getPointByClient(i.clientX,i.clientY).domOverlayPosition,s=a.x,l=a.y;n.endPoint={x:s,y:l};var u=n.startPoint,f=u.x,h=u.y,m=n.wrapper.style,y=f,O=h,b=s-f,k=l-h;s<f&&(y=s,b=f-s),l<h&&(O=l,k=h-l),m.left=y+"px",m.top=O+"px",m.width=b+"px",m.height=k+"px"},this.__drawOff=function(){document.removeEventListener("mousemove",n.__draw),document.removeEventListener("mouseup",n.__drawOff),n.wrapper.oncontextmenu=null,n.__domContainer.removeChild(n.wrapper);var i=n.startPoint,a=i.x,s=i.y,l=n.endPoint,u=l.x,f=l.y;if(!(Math.abs(u-a)<10&&Math.abs(f-s)<10)){var h=[Math.min(a,u),Math.min(s,f)],m=[Math.max(a,u),Math.max(s,f)],y=n.lf.graphModel.getAreaElement(h,m,n.isWholeEdge,n.isWholeNode,!0),O=n.lf.graphModel.group;y.forEach(function(b){(!O||!O.getNodeGroup(b.id))&&n.lf.selectElementById(b.id,!0)}),n.lf.emit("selection:selected",y)}},this.lf=r;var o=r.getEditConfig().stopMoveGraph;this.isDefaultStopMoveGraph=o,r.openSelectionSelect=function(){n.openSelectionSelect()},r.closeSelectionSelect=function(){n.closeSelectionSelect()}}return e.prototype.render=function(t,n){var r=this;this.__domContainer=n,t.on("blank:mousedown",function(o){var i=o.e,a=t.getEditConfig();if(!(!a.stopMoveGraph||r.__disabled)){var s=i.button===2;if(!s){var l=t.getPointByClient(i.clientX,i.clientY).domOverlayPosition,u=l.x,f=l.y;r.startPoint={x:u,y:f},r.endPoint={x:u,y:f};var h=document.createElement("div");h.className="lf-selection-select",h.oncontextmenu=function(y){y.preventDefault()},h.style.top=r.startPoint.y+"px",h.style.left=r.startPoint.x+"px",n.appendChild(h),r.wrapper=h,document.addEventListener("mousemove",r.__draw),document.addEventListener("mouseup",r.__drawOff)}}})},e.prototype.setSelectionSense=function(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0),this.isWholeEdge=t,this.isWholeNode=n},e.prototype.openSelectionSelect=function(){var t=this.lf.getEditConfig().stopMoveGraph;t||(this.isDefaultStopMoveGraph=!1,this.lf.updateEditConfig({stopMoveGraph:!0})),this.open()},e.prototype.closeSelectionSelect=function(){this.isDefaultStopMoveGraph||this.lf.updateEditConfig({stopMoveGraph:!1}),this.close()},e.prototype.open=function(){this.__disabled=!1},e.prototype.close=function(){this.__disabled=!0},e.pluginName="selectionSelect",e}(),VVe=globalThis&&globalThis.__values||function(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.")},vF=function(){function e(t){var n=this,r=t.lf,o=t.LogicFlow,i=t.options;this.lf=null,this.container=null,this.miniMapWrap=null,this.miniMapContainer=null,this.lfMap=null,this.viewport=null,this.width=150,this.height=220,this.leftPosition=void 0,this.topPosition=void 0,this.rightPosition=void 0,this.bottomPosition=void 0,this.miniMapWidth=450,this.miniMapHeight=660,this.viewPortTop=0,this.viewPortLeft=0,this.startPosition=null,this.viewPortScale=1,this.viewPortWidth=150,this.viewPortHeight=75,this.resetDataX=0,this.resetDataY=0,this.LogicFlow=null,this.isShow=!1,this.isShowHeader=!0,this.isShowCloseIcon=!0,this.dragging=!1,this.disabledPlugins=["miniMap","control","selectionSelect"],this.show=function(a,s){n.setView(),n.isShow||n.createMiniMap(a,s),n.isShow=!0},this.hide=function(){n.isShow&&n.removeMiniMap(),n.isShow=!1},this.reset=function(){n.lf.resetTranslate(),n.lf.resetZoom(),n.hide(),n.show()},this.startDrag=function(a){document.addEventListener("mousemove",n.drag),document.addEventListener("mouseup",n.drop),n.startPosition={x:a.x,y:a.y}},this.moveViewport=function(a,s){var l=n.viewport.style;n.viewPortTop=a,n.viewPortLeft=s,l.top=n.viewPortTop+"px",l.left=n.viewPortLeft+"px"},this.drag=function(a){n.dragging=!0;var s=n.viewPortTop+a.y-n.startPosition.y,l=n.viewPortLeft+a.x-n.startPosition.x;n.moveViewport(s,l),n.startPosition={x:a.x,y:a.y};var u=(n.viewPortLeft+n.viewPortWidth/2)/n.viewPortScale,f=(n.viewPortTop+n.viewPortHeight/2)/n.viewPortScale;n.lf.focusOn({coordinate:{x:u+n.resetDataX,y:f+n.resetDataY}})},this.drop=function(){document.removeEventListener("mousemove",n.drag),document.removeEventListener("mouseup",n.drop);var a=n.viewPortTop,s=n.viewPortLeft;n.viewPortLeft>n.width&&(s=n.width-n.viewPortWidth),n.viewPortTop>n.height&&(a=n.height-n.viewPortHeight),n.viewPortLeft<-n.width&&(s=0),n.viewPortTop<-n.height&&(a=0),n.moveViewport(a,s)},this.mapClick=function(a){if(n.dragging)n.dragging=!1;else{var s=a.layerX,l=a.layerY,u=s,f=l,h=n.lf.getGraphRawData(),m=n.getBounds(h),y=m.left,O=m.top,b=y+u/n.viewPortScale,k=O+f/n.viewPortScale;n.lf.focusOn({coordinate:{x:b,y:k}})}},this.lf=r,i&&i.MiniMap&&this.setOption(i),this.miniMapWidth=r.graphModel.width,this.miniMapHeight=r.graphModel.width*this.height/this.width,this.LogicFlow=o,this.initMiniMap()}return e.prototype.render=function(t,n){var r=this;this.container=n,this.lf.on("history:change",function(){r.isShow&&r.setView()}),this.lf.on("graph:transform",yd(function(){r.isShow&&!r.dragging&&r.setView()},300))},e.prototype.init=function(t){this.disabledPlugins=this.disabledPlugins.concat(t.disabledPlugins||[])},e.prototype.setOption=function(t){var n=t.MiniMap,r=n.width,o=r===void 0?150:r,i=n.height,a=i===void 0?220:i,s=n.isShowHeader,l=s===void 0?!0:s,u=n.isShowCloseIcon,f=u===void 0?!0:u,h=n.leftPosition,m=h===void 0?0:h,y=n.topPosition,O=y===void 0?0:y,b=n.rightPosition,k=n.bottomPosition;this.width=o,this.height=a,this.isShowHeader=l,this.isShowCloseIcon=f,this.viewPortWidth=o,this.leftPosition=m,this.topPosition=O,this.rightPosition=b,this.bottomPosition=k},e.prototype.initMiniMap=function(){var t=document.createElement("div");t.className="lf-mini-map-graph",t.style.width=this.width+4+"px",t.style.height=this.height+"px",this.lfMap=new this.LogicFlow({container:t,isSilentMode:!0,stopZoomGraph:!0,stopScrollGraph:!0,stopMoveGraph:!0,hideAnchors:!0,hoverOutline:!1,disabledPlugins:this.disabledPlugins}),this.lfMap.adapterIn=function(n){return n},this.lfMap.adapterOut=function(n){return n},this.miniMapWrap=t,this.createViewPort(),t.addEventListener("click",this.mapClick)},e.prototype.createMiniMap=function(t,n){var r=document.createElement("div");r.appendChild(this.miniMapWrap),typeof t!="undefined"||typeof n!="undefined"?(r.style.left=(t||0)+"px",r.style.top=(n||0)+"px"):(typeof this.rightPosition!="undefined"?r.style.right=this.rightPosition+"px":typeof this.leftPosition!="undefined"&&(r.style.left=this.leftPosition+"px"),typeof this.bottomPosition!="undefined"?r.style.bottom=this.bottomPosition+"px":typeof this.topPosition!="undefined"&&(r.style.top=this.topPosition+"px")),r.style.position="absolute",r.className="lf-mini-map",this.isShowCloseIcon||r.classList.add("lf-mini-map-no-close-icon"),this.isShowHeader||r.classList.add("lf-mini-map-no-header"),this.container.appendChild(r),this.miniMapWrap.appendChild(this.viewport);var o=document.createElement("div");o.className="lf-mini-map-header",o.innerText=e.headerTitle,r.appendChild(o);var i=document.createElement("span");i.className="lf-mini-map-close",i.addEventListener("click",this.hide),r.appendChild(i),this.miniMapContainer=r},e.prototype.removeMiniMap=function(){this.container.removeChild(this.miniMapContainer)},e.prototype.getBounds=function(t){var n=0,r=this.miniMapWidth,o=0,i=this.miniMapHeight,a=t.nodes;return a&&a.length>0&&a.forEach(function(s){var l=s.x,u=s.y,f=s.width,h=f===void 0?200:f,m=s.height,y=m===void 0?200:m,O=l-h/2,b=l+h/2,k=u-y/2,C=u+y/2;n=O<n?O:n,r=b>r?b:r,o=k<o?k:o,i=C>i?C:i}),{left:n,top:o,bottom:i,right:r}},e.prototype.resetData=function(t){var n=t.nodes,r=t.edges,o=0,i=0;return n&&n.length>0&&(n.forEach(function(a){var s=a.x,l=a.y,u=a.width,f=u===void 0?200:u,h=a.height,m=h===void 0?200:h,y=s-f/2,O=l-m/2;o=y<o?y:o,i=O<i?O:i}),(o<0||i<0)&&(this.resetDataX=o,this.resetDataY=i,n.forEach(function(a){a.x=a.x-o,a.y=a.y-i,a.text&&(a.text.x=a.text.x-o,a.text.y=a.text.y-i)}),r.forEach(function(a){a.startPoint&&(a.startPoint.x=a.startPoint.x-o,a.startPoint.y=a.startPoint.y-i),a.endPoint&&(a.endPoint.x=a.endPoint.x-o,a.endPoint.y=a.endPoint.y-i),a.text&&(a.text.x=a.text.x-o,a.text.y=a.text.y-i),a.pointsList&&a.pointsList.forEach(function(s){s.x=s.x-o,s.y=s.y-i})}))),t},e.prototype.setView=function(){var t,n,r=this.lf.getGraphRawData(),o=this.resetData(r),i=this.lf.viewMap,a=this.lf.graphModel.modelMap,s=this.lfMap.viewMap;try{for(var l=VVe(i.keys()),u=l.next();!u.done;u=l.next()){var f=u.value;s.has(f)||(this.lfMap.setView(f,i.get(f)),this.lfMap.graphModel.modelMap.set(f,a.get(f)))}}catch(T){t={error:T}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}this.lfMap.render(o);var h=this.getBounds(o),m=h.left,y=h.top,O=h.right,b=h.bottom,k=this.width/(O-m),C=this.height/(b-y),P=this.miniMapWrap.firstChild.style,$=Math.min(k,C);P.pointerEvents="none",P.transform="matrix("+$+", 0, 0, "+$+", 0, 0)",P.transformOrigin="left top",P.height=b-Math.min(y,0)+"px",P.width=O-Math.min(m,0)+"px",this.viewPortScale=$,this.setViewPort($,{left:m,top:y,right:O,bottom:b})},e.prototype.setViewPort=function(t,n){var r=n.left,o=n.right;n.top,n.bottom;var i=this.viewport.style;i.width=this.viewPortWidth+"px",i.height=this.viewPortWidth/(this.lf.graphModel.width/this.lf.graphModel.height)+"px";var a=this.lf.getTransform(),s=a.TRANSLATE_X,l=a.TRANSLATE_Y,u=a.SCALE_X,f=a.SCALE_Y,h=o-r,m=this.width/(h/this.lf.graphModel.width),y=this.width*(m/this.width),O=this.lf.graphModel.width/this.lf.graphModel.height,b=y/O,k=this.lf.getGraphRawData(),C=this.getBounds(k),P=C.left,$=C.top,T=P,A=$;T+=s/u,A+=l/f,this.viewPortTop=A>0?0:-A*t,this.viewPortLeft=T>0?0:-T*t,this.viewPortWidth=y,this.viewPortHeight=b,i.top=this.viewPortTop+"px",i.left=this.viewPortLeft+"px",i.width=y/u+"px",i.height=b/f+"px"},e.prototype.createViewPort=function(){var t=document.createElement("div");t.className="lf-minimap-viewport",t.addEventListener("mousedown",this.startDrag),this.viewport=t},e.pluginName="miniMap",e.width=150,e.height=220,e.viewPortWidth=150,e.viewPortHeight=75,e.isShowHeader=!0,e.isShowCloseIcon=!0,e.leftPosition=0,e.topPosition=0,e.rightPosition=null,e.bottomPosition=null,e.headerTitle="\u5BFC\u822A",e}(),lq=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vy=globalThis&&globalThis.__assign||function(){return vy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vy.apply(this,arguments)},vO=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},FVe={tr:"tl",lb:"tl",tl:"tr",rb:"tr",br:"bl",lt:"bl",bl:"br",rt:"br"};function zVe(e){for(var t=e,n=1;n<t.length-1;){var r=vO(t[n-1],2),o=r[0],i=r[1],a=vO(t[n],2),s=a[0],l=a[1],u=vO(t[n+1],2),f=u[0],h=u[1];o===s&&s===f||i===l&&l===h?t.splice(n,1):n++}return t}function QVe(e,t,n,r){var o=[e[0],e[1]],i=[e[0],e[1]];switch(n){case"tl":return t==="tr"?(o[1]+=r,i[0]+=r):t==="lb"&&(o[0]+=r,i[1]+=r),[o,i];case"tr":return t==="tl"?(o[1]+=r,i[0]-=r):t==="rb"&&(o[0]-=r,i[1]+=r),[o,i];case"bl":return t==="br"?(o[1]-=r,i[0]+=r):t==="lt"&&(o[0]+=r,i[1]-=r),[o,i];case"br":return t==="bl"?(o[1]-=r,i[0]-=r):t==="rt"&&(o[0]-=r,i[1]-=r),[o,i];default:return[]}}function WVe(e,t,n,r){var o,i="",a="";e[0]===t[0]?i=e[1]>t[1]?"t":"b":e[1]===t[1]&&(i=e[0]>t[0]?"l":"r"),t[0]===n[0]?a=t[1]>n[1]?"t":"b":t[1]===n[1]&&(a=t[0]>n[0]?"l":"r");var s=Math.min(Math.hypot(t[0]-e[0],t[1]-e[1])/2,Math.hypot(n[0]-t[0],n[1]-t[1])/2,r)||1/5*r,l=""+i+a,u=FVe[l]||"-",f="L "+e[0]+" "+e[1];if(u==="-")f+="L "+t[0]+" "+t[1]+" L "+n[0]+" "+n[1];else{var h=vO(QVe(t,l,u,s),2),m=h[0],y=h[1];m&&y&&(f+="L "+m[0]+" "+m[1]+" Q "+t[0]+" "+t[1]+" "+y[0]+" "+y[1],o=vO(y,2),t[0]=o[0],t[1]=o[1])}return f}function YVe(e,t){var n=0,r="";if(e.length===2)r+="M"+e[n][0]+" "+e[n++][1]+" L "+e[n][0]+" "+e[n][1];else{for(r+="M"+e[n][0]+" "+e[n++][1];n+1<e.length;){var o=e[n-1],i=e[n],a=e[n+++1];r+=WVe(o,i,a,t)}r+="L "+e[n][0]+" "+e[n][1]}return r}(function(e){lq(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getEdge=function(){var n=this.props.model,r=n.points,o=n.isAnimation,i=n.arrowConfig,a=n.radius,s=a===void 0?5:a,l=n.getEdgeStyle(),u=n.getEdgeAnimationStyle(),f=zVe(r.split(" ").map(function(y){return y.split(",").map(function(O){return+O})})),h=YVe(f,s),m=vy(vy(vy({style:o?u:{}},l),i),{fill:"none"});return Kt.exports.h("path",vy({d:h},m))},t})(Kt.exports.PolylineEdge);(function(e){lq(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Kt.exports.PolylineEdgeModel);var UVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;var yF=globalThis&&globalThis.__assign||function(){return yF=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yF.apply(this,arguments)},bF=globalThis&&globalThis.__assign||function(){return bF=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bF.apply(this,arguments)},HVe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;const qn="/plugin/rule",ZVe={endpoints:{label:"\u8F93\u5165\u7AEF",background:"#A6BBCFFF",nodeType:"endpoint-node"},filter:{label:"\u8FC7\u6EE4\u5668",background:"#f1e861",nodeType:"simple-node"},transform:{label:"\u8F6C\u6362\u5668",background:"#79cef1",nodeType:"simple-node"},action:{label:"\u52A8\u4F5C",background:"#f1928f",nodeType:"simple-node"},external:{label:"\u5916\u90E8\u7684",background:"#fbc766",nodeType:"simple-node"},ai:{label:"AI",background:"#7cbaf8",nodeType:"simple-node"},ci:{label:"CI/CD",background:"#9ec9c9",nodeType:"simple-node"},iot:{label:"IoT",background:"#FFA500",nodeType:"simple-node"},flow:{label:"\u5B50\u89C4\u5219\u94FE",background:"#E6E0F8FF",nodeType:"simple-node"}},_F={Input:"\u8F93\u5165",relationTypes:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",True:"\u771F",False:"\u5047"}},zR={endpoints:{"endpoint/mqtt":{notInput:!0,label:"MQTT",icon:qn+"/images/endpoint/mqtt.svg",desc:"<ul><li>MQTT\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5MQTT Server\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u4E3B\u9898\u89E6\u53D1\u89C4\u5219\u94FE</li></ul>",server:{label:"MQTT Server\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},maxReconnectInterval:{label:"\u91CD\u8FDE\u95F4\u9694\uFF0C\u5355\u4F4D\u79D2",desc:""},qOS:{label:"QOS",desc:""},router:{from:{path:{label:"\u8BA2\u9605\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8BA2\u9605\u4E3B\u9898\u6570\u636E\u89E6\u53D1\uFF0C\u4F8B\u5982: devices/msg"}}}},"endpoint/net":{notInput:!0,label:"TCP/UDP",icon:qn+"/images/endpoint/net.svg",desc:"<ul><li>TCP/UDP\u670D\u52A1\u5668\u63A5\u5165\u7AEF\u3002</li><li>\u542F\u52A8TCP/UPD\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u6B63\u5219\u8868\u8FBE\u5F0F\u8DEF\u7531\u6570\u636E\u89E6\u53D1\u89C4\u5219\u94FE\u3002</li></ul>",protocol:{label:"\u534F\u8BAE",desc:"tcp/udp",rules:[{required:!0,message:"\u534F\u8BAE\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!1,multiple:!1,options:[{label:"TCP",value:"tcp"},{label:"UDP",value:"udp"}]}},server:{label:"\u76D1\u542C\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B: :6335"},readTimeout:{label:"\u8BFB\u8D85\u65F6(\u5355\u4F4D\u79D2)",desc:""},router:{from:{path:{label:"\u8DEF\u7531\u6B63\u5219\u8868\u8FBE\u5F0F",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u901A\u8FC7\u6B63\u5219\u8868\u8FBE\u5F0F\u5339\u914D\u6EE1\u8DB3\u6761\u4EF6\u7684\u6570\u636E\u89E6\u53D1"}}}},"endpoint/http":{notInput:!0,label:"HTTP",icon:qn+"/images/endpoint/http.svg",desc:"<ul><li>HTTP\u670D\u52A1\u5668\u63A5\u5165\u7AEF\u3002</li><li>\u542F\u52A8HTTP\u670D\u52A1\u5668\uFF0C\u5904\u7406\u8DEF\u7531\u7ED9\u5B9AURL\u8BF7\u6C42\uFF0C\u628A\u8BF7\u6C42\u6570\u636E\u8DEF\u8DEF\u7531\u5230\u89C4\u5219\u94FE\u3002</li></ul>",server:{label:"\u76D1\u542C\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B: :6335",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},router:{from:{path:{label:"Path",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u5BA2\u6237\u7AEF\u8BF7\u6C42\u8BE5URL\u89E6\u53D1\uFF0C\u5982:/api/v1/msg "}}}},"endpoint/ws":{notInput:!0,label:"Websocket",icon:qn+"/images/endpoint/websocket.svg",desc:"<ul><li>Websocket\u670D\u52A1\u5668\u63A5\u5165\u7AEF\u3002</li><li>\u542F\u52A8Websocket\u670D\u52A1\u5668\uFF0C\u5904\u7406\u8DEF\u7531\u7ED9\u5B9AURL\u8BF7\u6C42\uFF0C\u628A\u8BF7\u6C42\u6570\u636E\u8DEF\u8DEF\u7531\u5230\u89C4\u5219\u94FE\u3002</li></ul>",server:{label:"\u76D1\u542C\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B: :6335",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},router:{from:{path:{label:"Path",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u5BA2\u6237\u7AEF\u8BF7\u6C42\u8BE5URL\u89E6\u53D1\uFF0C\u5982:/api/ms/ws "}}}},"endpoint/schedule":{notInput:!0,label:"\u5B9A\u65F6\u8C03\u5EA6",icon:qn+"/images/endpoint/schedule.svg",desc:"<ul><li>\u5B9A\u65F6\u8C03\u5EA6\u63A5\u5165\u7AEF</li><li>\u901A\u8FC7\u8DEF\u7531\u7ED9\u5B9ACron\u8868\u8FBE\u5F0F\u5468\u671F\u89E6\u53D1\u89C4\u5219\u94FE</li></ul>",router:{from:{path:{label:"cron\u8868\u8FBE\u5F0F",rules:[{required:!0,message:"\u8BF7\u8F93\u5165cron\u8868\u8FBE\u5F0F\u5982: */10 * * * * *"}],desc:"\u901A\u8FC7cron\u8868\u8FBE\u5F0F\u5468\u671F\u89E6\u53D1\uFF0C\u5982: */10 * * * * *"}}}},"endpoint/kafka":{notInput:!0,label:"Kafka",icon:qn+"/images/endpoint/kafka.svg",desc:"<ul><li>Kafka\u8BA2\u9605\u63A5\u5165\u7AEF\uFF0C\u7528\u6765\u521B\u5EFA\u548C\u542F\u52A8Kafka\u8BA2\u9605\u670D\u52A1</li><li>\u8FDE\u63A5Kafka\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u4E3B\u9898\u89E6\u53D1\u89C4\u5219\u94FE</li></ul>",server:{label:"kafka\u670D\u52A1\u5668\u5730\u5740",desc:"\u591A\u4E2A\u5730\u5740\u7528\u9017\u53F7\u9694\u5F00\uFF0C\u5982: 127.0.0.1:9092,127.0.0.2:9092",rules:[{required:!0,message:"\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}]},groupId:{label:"\u6D88\u8D39\u8005\u7EC4ID",desc:"\u9ED8\u8BA4rulego"},router:{from:{path:{label:"\u8BA2\u9605\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8BA2\u9605\u4E3B\u9898\u6570\u636E\u89E6\u53D1\uFF0C\u4F8B\u5982: devices/msg"}}}},"endpoint/nats":{notInput:!0,label:"Nats",icon:qn+"/images/endpoint/nats.svg",desc:"<ul><li>Nats\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5Nats\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u4E3B\u9898\u89E6\u53D1\u89C4\u5219\u94FE</li></ul>",server:{label:"NATS\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B: nats://127.0.0.1:4222",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},router:{from:{path:{label:"\u8BA2\u9605\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8BA2\u9605\u4E3B\u9898\u6570\u636E\u89E6\u53D1\uFF0C\u4F8B\u5982: devices/msg"}}}},"endpoint/redis":{notInput:!0,label:"Redis",icon:qn+"/images/endpoint/redis.svg",desc:"<ul><li>Redis\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5Redis\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u8BA2\u9605\u901A\u9053\u89E6\u53D1\u89C4\u5219\u94FE</li></ul>",server:{label:"Redis\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B: 127.0.0.1:6379",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},password:{label:"\u5BC6\u7801",desc:""},db:{label:"\u6570\u636E\u5E93\u7F16\u53F7",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"},{type:"integer",required:!0,message:"\u5FC5\u987B\u662F\u6574\u578B"}],desc:"\u9ED8\u8BA40"},router:{from:{path:{label:"\u8BA2\u9605Redis\u901A\u9053",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u591A\u4E2A\u901A\u9053\u4E0E\u9017\u53F7\u5206\u5272\uFF0C\u4F8B\u5982: devices/msg,devices/msg2"}}}},"endpoint/redis/stream":{notInput:!0,label:"Redis\u6D41",icon:qn+"/images/endpoint/redis_stream.svg",desc:"<ul><li>Redis Steam\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5Redis\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u6D41\u540D\u79F0\u89E6\u53D1\u89C4\u5219\u94FE</li></ul>",server:{label:"Redis\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B: 127.0.0.1:6379",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},password:{label:"\u5BC6\u7801",desc:""},db:{label:"\u6570\u636E\u5E93\u7F16\u53F7",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"},{type:"integer",required:!0,message:"\u5FC5\u987B\u662F\u6574\u578B"}],desc:"\u9ED8\u8BA40"},groupId:{label:"\u6D88\u8D39\u8005\u7EC4ID",desc:"\u9ED8\u8BA4rulego"},router:{from:{path:{label:"\u8BA2\u9605\u6D41\u540D\u79F0",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u591A\u4E2A\u6D41\u4E0E\u9017\u53F7\u5206\u5272\uFF0C\u4F8B\u5982: devices/msg,devices/msg2"}}}},"endpoint/rabbitmq":{notInput:!0,label:"RabbitMQ",icon:qn+"/images/endpoint/rabbitmq.svg",desc:"<ul><li>rabbitmq\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u652F\u6301AMQP\u534F\u8BAE</li><li>\u8FDE\u63A5rabbitmq\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u8DEF\u7531\u952E\u89E6\u53D1\u89C4\u5219\u94FE</li><li>\u5982\u679C\u4EA4\u6362\u673A\u4E0D\u5B58\u5728\u5219\u81EA\u52A8\u58F0\u660E</li></ul>",server:{label:"\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u683C\u5F0F:amqp://[\u7528\u6237\u540D:\u5BC6\u7801]@host/[\u865A\u62DF\u673A\u540D\u79F0]",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},exchange:{label:"\u4EA4\u6362\u673A\u540D\u79F0",desc:""},exchangeType:{label:"\u4EA4\u6362\u673A\u7C7B\u578B",desc:"direct/fanout/headers/topic"},durable:{label:"\u662F\u5426\u6301\u4E45\u5316",desc:""},autoDelete:{label:"\u662F\u5426\u81EA\u52A8\u5220\u9664",desc:""},router:{from:{path:{label:"\u8DEF\u7531\u952E",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""}}}},"endpoint/sagoo/devicein":{notInput:!0,label:"\u8BBE\u5907\u6570\u636E",icon:qn+"/images/devicein.svg",desc:"\u7528\u4E8E\u83B7\u53D6\u8BBE\u5907\u6570\u636E\u3002",productKey:{label:"\u9009\u62E9\u4EA7\u54C1",desc:"",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],component:{type:"select",optionApi:"/product/list",autoGetData:!0,resDataKey:"product",resDataLabelKey:"name",resDataValueKey:"key",onChangeGetDataKey:"deviceKey",filterable:!0,allowCreate:!1,placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1",multiple:!1,options:[]}},deviceKey:{label:"\u9009\u62E9\u8BBE\u5907",desc:"",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],component:{type:"select",autoGetData:!1,optionApi:"/product/device/list",resDataKey:"device",getDataByKey:"productKey",resDataLabelKey:"name",resDataValueKey:"key",apiParams:{productKey:""},filterable:!0,allowCreate:!1,placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",multiple:!1,options:[],defineOptions:[{label:"\u5168\u90E8",value:"all"}]}},antiShake:{label:"\u542F\u7528\u9632\u6296",desc:""},antiShakeMs:{label:"\u9632\u6296\u65F6\u95F4",desc:"\u5355\u4F4D\uFF1A\u79D2"},antiShakeNum:{label:"\u9632\u6296\u6B21\u6570",desc:""},processFirstItem:{label:"\u9996\u6761\u6570\u636E\u7ACB\u5373\u5904\u7406",desc:""},router:{from:{path:{label:"\u89E6\u53D1\u7C7B\u578B",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",options:[{label:"\u5C5E\u6027\u4E0A\u62A5",value:"reportAttribute"},{label:"\u4E8B\u4EF6\u4E0A\u62A5",value:"reportEvent"}]}}}}},nodes:{comment:{notInput:!0,notOutput:!0,label:"\u6CE8\u91CA",icon:qn+"/images/comment.svg",desc:"\u628A\u8282\u70B9\u540D\u79F0\u4F5C\u4E3A\u6CE8\u91CA\u5185\u5BB9\u663E\u793A\u5728\u753B\u5E03\u4E0A",nodeType:"comment-node"},delay:{label:"\u5EF6\u8FDF",icon:qn+"/images/delay.svg",desc:"",periodInSeconds:{label:"\u5EF6\u8FDF\u65F6\u95F4(\u79D2)",desc:""},maxPendingMsgs:{label:"\u6700\u5927\u5141\u8BB8\u6302\u8D77\u6D88\u606F\u7684\u6570\u91CF",desc:"\u5982\u679C\u542F\u7528\u8986\u76D6\u6A21\u5F0F\uFF0C\u8BE5\u53C2\u6570\u5931\u6548"},periodInSecondsPattern:{label:"\u5EF6\u8FDF\u65F6\u95F4\u8868\u8FBE\u5F0F(\u79D2)",desc:"\u901A\u8FC7 ${metadata.key} \u4ECE\u5143\u6570\u636E\u53D8\u91CF\u4E2D\u83B7\u53D6\u6216\u8005\u901A\u8FC7 ${msg.key} \u4ECE\u6D88\u606F\u8D1F\u8377\u4E2D\u83B7\u53D6\uFF0C\u5EF6\u8FDF\u65F6\u95F4\uFF0C\u5982\u679C\u8BE5\u503C\u6709\u503C\uFF0C\u4F18\u5148\u53D6\u8BE5\u503C\u3002"},overwrite:{label:"\u8986\u76D6\u6A21\u5F0F",desc:"\u5982\u679C\u542F\u7528\uFF0C\u5468\u671F\u5185\u53EA\u5141\u8BB8\u6302\u8D77\u4E00\u6761\u6D88\u606F\uFF0C\u65B0\u6D88\u606F\u4F1A\u8986\u76D6\u4E0A\u4E00\u6761\u6D88\u606F"}},log:{label:"\u65E5\u5FD7",icon:qn+"/images/log.svg",desc:"",jsScript:{label:"function String(msg, metadata, msgType) {",desc:"}"}},for:{label:"for",icon:qn+"/images/for.svg",desc:"",range:{label:"\u8FED\u4EE3\u503C\u8868\u8FBE\u5F0F",desc:"\u4F8B\u5982:msg.items;1..3;\u5982\u679C\u7A7A\u5219\u904D\u5386\u6574\u4E2Amsg"},do:{label:"\u5904\u7406\u8282\u70B9ID",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u4F8B\u5982:s3(\u5B50\u94FE\u8D77\u70B9\u8282\u70B9ID);chain:rule03(\u5B50\u89C4\u5219\u94FE)\u3002"},mode:{label:"\u7ED3\u679C\u5408\u5E76\u6A21\u5F0F",desc:"0 - \u5FFD\u7565\uFF0C1 - \u8FFD\u52A0\uFF0C2 - \u8986\u76D6"}},functions:{label:"\u51FD\u6570",desc:"",functionName:{label:"\u51FD\u6570\u540D\u79F0",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u51FD\u6570\u540D"}}},dbClient:{label:"\u6570\u636E\u5E93",icon:qn+"/images/db.svg",desc:"",sql:{label:"SQL\u8BED\u53E5",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ? \u5360\u4F4D\u7B26"},params:{label:"\u5360\u4F4D\u7B26\u53C2\u6570\u5217\u8868",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},getOne:{label:"\u8FD4\u56DE\u4E00\u6761\u8BB0\u5F55",desc:""},poolSize:{label:"\u8FDE\u63A5\u6C60\u5927\u5C0F",desc:""},driverName:{label:"\u6570\u636E\u5E93\u9A71\u52A8\u540D\u79F0",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"mysql\u6216postgres"},dsn:{label:"\u6570\u636E\u5E93\u8FDE\u63A5",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u5141\u8BB8\u9009\u62E9\u8FDE\u63A5\u6C60\u8FDB\u884C\u8FDE\u63A5",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}}},mqttClient:{label:"MQTT",icon:qn+"/images/mqtt.svg",desc:"",topic:{label:"\u53D1\u5E03\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},server:{label:"MQTT \u670D\u52A1\u5668\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B: 127.0.0.1:1883 \u3002\u5141\u8BB8\u9009\u62E9\u8FDE\u63A5\u6C60\u8FDB\u884C\u8FDE\u63A5",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},maxReconnectInterval:{label:"\u91CD\u8FDE\u95F4\u9694\uFF0C\u5355\u4F4D\u79D2",desc:""},qOS:{label:"QoS",desc:""},clientID:{label:"\u5BA2\u6237\u7AEFID",desc:""},cleanSession:{label:"\u6E05\u9664\u4F1A\u8BDD",desc:""},cAFile:{label:"\u8BC1\u4E66\u9881\u53D1\u673A\u6784(CA)\u6587\u4EF6",desc:""},certFile:{label:"\u8BC1\u4E66\u6587\u4EF6",desc:""},certKeyFile:{label:"\u8BC1\u4E66\u5BC6\u94A5\u6587\u4EF6",desc:""}},restApiCall:{label:"REST",icon:qn+"/images/rest.svg",desc:"",restEndpointUrlPattern:{label:"HTTP URL\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},requestMethod:{label:"\u8BF7\u6C42\u65B9\u6CD5",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!1,multiple:!1,options:[{label:"POST",value:"POST"},{label:"GET",value:"GET"},{label:"DELETE",value:"DELETE"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"},{label:"HEAD",value:"HEAD"}]},desc:"POST/GET/DELETE/PUT/PATCH/HEAD"},withoutRequestBody:{label:"\u4E0D\u4F20\u8F93request body",desc:"\u4E0D\u628A\u6D88\u606F\u8D1F\u8377\u4F20\u8F93\u7ED9\u914D\u7F6E\u7684\u670D\u52A1\u5730\u5740"},headers:{label:"\u8BF7\u6C42\u5934",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},readTimeoutMs:{label:"\u8D85\u65F6\uFF0C\u5355\u4F4D\u6BEB\u79D2\u3002\u9ED8\u8BA4:0",desc:"0\u4EE3\u8868\u4E0D\u8D85\u65F6"},maxParallelRequestsCount:{label:"\u6700\u5927\u5E76\u53D1\u5927\u5C0F",desc:"0\u4EE3\u8868\u4E0D\u9650\u5236"},enableProxy:{label:"\u5F00\u542F\u4EE3\u7406",desc:""},useSystemProxyProperties:{label:"\u4F7F\u7528\u7CFB\u7EDF\u4EE3\u7406\u914D\u7F6E",desc:""},proxyScheme:{label:"\u4EE3\u7406\u534F\u8BAE",desc:""},proxyHost:{label:"\u4EE3\u7406\u4E3B\u673A",desc:""},proxyPort:{label:"\u4EE3\u7406\u7AEF\u53E3",desc:""},proxyUser:{label:"\u7528\u6237\u540D",desc:""},proxyPassword:{label:"\u5BC6\u7801",desc:""}},sendEmail:{label:"\u53D1\u90AE\u4EF6",icon:qn+"/images/email.svg",desc:"",smtpHost:{label:"SMTP \u4E3B\u673A\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},smtpPort:{label:"SMTP \u4E3B\u673A\u7AEF\u53E3",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},username:{label:"\u7528\u6237\u540D",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},password:{label:"\u6388\u6743\u7801",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},enableTls:{label:"\u662F\u5426\u5F00\u542FTLS",desc:""},email:{label:"\u90AE\u4EF6\u5185\u5BB9",desc:"",from:{label:"\u53D1\u4EF6\u4EBA\u90AE\u7BB1",desc:"\u591A\u4E2A\u4E0E`,`\u9694\u5F00"},to:{label:"\u6536\u4EF6\u4EBA\u90AE\u7BB1",desc:"\u591A\u4E2A\u4E0E`,`\u9694\u5F00"},cc:{label:"\u6284\u9001\u4EBA\u90AE\u7BB1",desc:"\u591A\u4E2A\u4E0E`,`\u9694\u5F00"},bcc:{label:"\u5BC6\u9001\u4EBA\u90AE\u7BB1",desc:"\u591A\u4E2A\u4E0E`,`\u9694\u5F00"},subject:{label:"\u90AE\u4EF6\u4E3B\u9898",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},body:{label:"\u90AE\u4EF6\u5185\u5BB9",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"}},connectTimeout:{label:"\u8FDE\u63A5\u8D85\u65F6,\u5355\u4F4D\u79D2\u3002\u9ED8\u8BA4:10",desc:""}},ssh:{label:"SSH",icon:qn+"/images/ssh.svg",desc:"",host:{label:"ssh\u4E3B\u673A\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},port:{label:"ssh\u4E3B\u673A\u7AEF\u53E3",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},username:{label:"ssh\u767B\u5F55\u7528\u6237\u540D",desc:""},password:{label:"ssh\u767B\u5F55\u5BC6\u7801",desc:""},cmd:{label:"shell\u547D\u4EE4",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"}},fieldFilter:{label:"\u5B57\u6BB5\u8FC7\u6EE4",desc:"",checkAllKeys:{label:"\u662F\u5426\u6EE1\u8DB3\u9700\u8981\u6240\u6709\u5B57\u6BB5key\u5B58\u5728",desc:""},dataNames:{label:"msg data\u5B57\u6BB5key",desc:"\u591A\u4E2A\u4E0E\u9017\u53F7\u9694\u5F00"},metadataNames:{label:"metadata\u5B57\u6BB5key",desc:"\u591A\u4E2A\u4E0E\u9017\u53F7\u9694\u5F00"}},jsFilter:{label:"js\u8FC7\u6EE4",icon:qn+"/images/jsFilter.svg",desc:"",jsScript:{label:"function Filter(msg, metadata, msgType) {",desc:"}"}},jsSwitch:{label:"js\u8DEF\u7531",desc:"",jsScript:{label:"function Switch(msg, metadata, msgType) {",desc:"}"}},msgTypeSwitch:{label:"\u6D88\u606F\u8DEF\u7531",icon:qn+"/images/msgTypeSwitch.svg",desc:""},exprFilter:{label:"\u8868\u8FBE\u5F0F\u8FC7\u6EE4",icon:qn+"/images/exp.svg",desc:"<ul><li>\u4F7F\u7528expr\u8868\u8FBE\u5F0F\u8FC7\u6EE4\u6D88\u606F</li><li>\u901A\u8FC7`msg`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u4F53\u3002\u4F8B\u5982 `msg.temperature`</li><li>\u901A\u8FC7`metadata`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u5143\u6570\u636E\u3002\u4F8B\u5982 `metadata.customerName`</li><li>\u901A\u8FC7`type`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u7C7B\u578B</li><li>\u901A\u8FC7`dataType`\u53D8\u91CF\u8BBF\u95EE\u6570\u636E\u7C7B\u578B</li></ul>",expr:{label:"\u8FC7\u6EE4\u8868\u8FBE\u5F0F",desc:"\u4F8B\u5982:msg.temperature>50\uFF0C\u8FD4\u56DE\u503C\u5FC5\u987B\u662F\u5E03\u5C14\u7C7B\u578B",rules:[{required:!0,message:"\u8FC7\u6EE4\u8868\u8FBE\u5F0F\u662F\u5FC5\u987B\u7684"}]}},switch:{label:"\u6761\u4EF6\u5206\u652F",icon:qn+"/images/msgTypeSwitch.svg",desc:"",cases:{label:"\u6761\u4EF6\u5217\u8868",desc:"\u4F9D\u6B21\u5339\u914D\u6761\u4EF6\u5217\u8868\uFF0C\u5982\u679C\u5339\u914D\u5230\u6839\u636E\u8DEF\u7531\u6267\u884C\u540E\u7EED\u8282\u70B9\uFF0C\u5982\u679C\u6CA1\u6709\u5339\u914D\u5230\u5219\u6267\u884CDefault\u94FE",component:{type:"switchNode"}},relationTypeDynamics:!0},exprTransform:{label:"\u8868\u8FBE\u5F0F\u8F6C\u6362",icon:qn+"/images/exp.svg",desc:"<ul><li>\u4F7F\u7528expr\u8868\u8FBE\u5F0F\u8F6C\u6362\u6216\u8005\u521B\u5EFA\u65B0\u7684msg</li><li>\u901A\u8FC7`msg`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u4F53\u3002\u4F8B\u5982 `msg.temperature`</li><li>\u901A\u8FC7`metadata`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u5143\u6570\u636E\u3002\u4F8B\u5982 `metadata.customerName`</li><li>\u901A\u8FC7`type`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u7C7B\u578B</li><li>\u901A\u8FC7`dataType`\u53D8\u91CF\u8BBF\u95EE\u6570\u636E\u7C7B\u578B</li></ul>",expr:{label:"\u8F6C\u6362\u8868\u8FBE\u5F0F",desc:"\u4F8B\u5982:msg.name\u3002\u5982\u679C\u8BE5\u5B57\u6BB5\u6709\u503C\u5219\u4F18\u5148\u4F7F\u7528\u8BE5\u5B57\u6BB5\u3002"},mapping:{label:"\u5B57\u6BB5-\u8868\u8FBE\u5F0F\u6620\u5C04\u5217\u8868\uFF08\u521B\u5EFA\u65B0\u7684Msg\uFF09",desc:"Key:\u5B57\u6BB5\u540D,Value:\u8868\u8FBE\u5F0F\u3002\u5982\u679C\u8BE5\u5B57\u6BB5\u6709\u503C\uFF0C\u6839\u636E\u6307\u5B9A\u7684\u5B57\u6BB5\u548C\u8F6C\u6362\u8868\u8FBE\u5F0F\u521B\u5EFA\u65B0\u7684Msg"}},metadataTransform:{label:"\u5143\u6570\u636E\u8F6C\u6362",icon:qn+"/images/metadata.svg",desc:"<ul><li>\u4F7F\u7528expr\u8868\u8FBE\u5F0F\u8F6C\u6362\u6216\u8005\u521B\u5EFA\u65B0\u7684\u5143\u6570\u636E</li><li>\u901A\u8FC7`msg`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u4F53\u3002\u4F8B\u5982 `msg.temperature`</li><li>\u901A\u8FC7`metadata`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u5143\u6570\u636E\u3002\u4F8B\u5982 `metadata.customerName`</li><li>\u901A\u8FC7`type`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u7C7B\u578B</li><li>\u901A\u8FC7`dataType`\u53D8\u91CF\u8BBF\u95EE\u6570\u636E\u7C7B\u578B</li></ul>",mapping:{label:"\u5B57\u6BB5-\u8868\u8FBE\u5F0F\u6620\u5C04\u5217\u8868",desc:"Key:\u5B57\u6BB5\u540D,Value:\u8F6C\u6362\u8868\u8FBE\u5F0F\u3002\u5982\u679C\u4E0D\u662F\u8868\u8FBE\u5F0F\uFF0C\u4F7F\u7528\u5355\u5F15\u53F7\uFF0C\u5982\uFF1A'xx'"},isNew:{label:"\u662F\u5426\u521B\u5EFA\u65B0\u7684\u5143\u6570\u636E\u5217\u8868",desc:"true:\u521B\u5EFA\u65B0\u7684\u5143\u6570\u636E\u5217\u8868,false:\u66F4\u65B0\u5BF9\u5E94\u7684\u5143\u6570\u636Ekey"}},jsTransform:{label:"js\u8F6C\u6362",desc:"",jsScript:{label:"function Transform(msg, metadata, msgType) {",desc:"}"}},net:{label:"TCP/UDP",icon:qn+"/images/net.svg",desc:"",protocol:{label:"\u534F\u8BAE",desc:"tcp/udp",rules:[{required:!0,message:"\u534F\u8BAE\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!1,multiple:!1,options:[{label:"TCP",value:"tcp"},{label:"UDP",value:"udp"}]}},server:{label:"\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u670D\u52A1\u5730\u5740\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B:127.0.0.1:6335"},connectTimeout:{label:"\u8FDE\u63A5\u8D85\u65F6\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA460"},heartbeatInterval:{label:"\u5FC3\u8DF3\u95F4\u9694\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA460"}},flow:{label:"\u5B50\u89C4\u5219\u94FE",desc:"",targetId:{label:"\u5B50\u89C4\u5219\u94FEID",desc:"",rules:[{required:!0,message:"\u5B50\u89C4\u5219\u94FEID\u662F\u5FC5\u987B\u7684"}]}},ref:{label:"\u8282\u70B9\u5F15\u7528",icon:qn+"/images/ref.svg",relationTypeAllowCreate:!0,relationTypes:[{label:"\u6210\u529F",value:"Success"},{label:"\u5931\u8D25",value:"Failure"},{label:"\u771F",value:"True"},{label:"\u5047",value:"False"}],desc:"",targetId:{label:"\u8282\u70B9ID",desc:"\u683C\u5F0F\uFF1A[{chainId}:]{nodeId}\uFF0C\u5982\uFF1Achain01:s1\uFF0C\u5982\u679C\u662F\u5F15\u5165\u672C\u89C4\u5219\u94FE\uFF0C\u5219\u683C\u5F0F\u4E3A\uFF1A{nodeId}\uFF0C\u5982\uFF1As1",rules:[{required:!0,message:"\u8282\u70B9ID\u662F\u5FC5\u987B\u7684"}]}},groupFilter:{label:"\u8FC7\u6EE4\u5668\u7EC4",icon:qn+"/images/groupFilter.svg",desc:"",allMatches:{label:"\u662F\u5426\u9700\u8981\u5168\u5339\u914D",desc:""},nodeIds:{label:"\u7EC4\u5185\u8282\u70B9ID\uFF0C\u591A\u4E2A\u4E0E','\u9694\u5F00",desc:"",rules:[{required:!0,message:"\u7EC4\u5185\u8282\u70B9ID\u662F\u5FC5\u987B\u7684"}]},timeout:{label:"\u7EC4\u5185\u6267\u884C\u8D85\u65F6\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA40",desc:"\u9ED8\u8BA40\uFF0C\u4EE3\u8868\u4E0D\u8D85\u65F6"}},groupAction:{label:"\u8282\u70B9\u7EC4",desc:"<ul><li>\u5F02\u6B65\u6267\u884C\u591A\u4E2A\u8282\u70B9\uFF0C\u628A\u6240\u6709\u8282\u70B9\u7ED3\u679C\u5408\u5E76\uFF0C\u53D1\u9001\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9</li><li>\u5982\u679C\u5339\u914D\u5230\u6307\u5B9A\u6570\u91CF\u8282\u70B9\u90FD\u662F\u6307\u5B9A\u5173\u7CFB\u7C7B\u578B\uFF0C\u5219\u628A\u6570\u636E\u5230`Success`\u94FE, \u5426\u5219\u53D1\u5230`Failure`\u94FE</li></ul>",icon:qn+"/images/groupAction.svg",matchRelationType:{label:"\u5339\u914D\u5173\u7CFB\uFF0C\u9ED8\u8BA4Success",desc:""},matchNum:{label:"\u5339\u914D\u6EE1\u8DB3\u8282\u70B9\u6570\u91CF\uFF0C\u9ED8\u8BA40",desc:"\u9ED8\u8BA40\uFF0C\u8868\u793A\u6240\u6709\u8282\u70B9\u90FD\u6EE1\u8DB3\u6307\u5B9A\u5173\u7CFB"},nodeIds:{label:"\u7EC4\u5185\u8282\u70B9ID\uFF0C\u591A\u4E2A\u4E0E','\u9694\u5F00",desc:"",rules:[{required:!0,message:"\u7EC4\u5185\u8282\u70B9ID\u662F\u5FC5\u987B\u7684"}]},timeout:{label:"\u7EC4\u5185\u6267\u884C\u8D85\u65F6\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA40",desc:"\u9ED8\u8BA40\uFF0C\u4EE3\u8868\u4E0D\u8D85\u65F6"}},iterator:{label:"\u8FED\u4EE3\u5668",desc:"<ul><li>\u5F03\u7528\uFF0C\u4F7F\u7528for\u7EC4\u4EF6\u4EE3\u66FF</li><li>\u904D\u5386msg\u6216\u8005msg\u4E2D\u6307\u5B9A\u5B57\u6BB5item\u503C\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9\uFF0C\u904D\u5386\u5B57\u6BB5\u503C\u5FC5\u987B\u662F`\u6570\u7EC4`\u6216\u8005`{key:value}`\u7C7B\u578B</li><li>\u5982\u679Citem\u6EE1\u8DB3jsScript\uFF0C\u5219\u4F1A\u628Aitem\u6570\u636E\u901A\u8FC7`True`\u94FE\u53D1\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9\uFF0C\u5426\u5219\u901A\u8FC7`False`\u94FE\u53D1\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9</li><li>\u5982\u679C\u627E\u4E0D\u5230\u6307\u5B9A\u5B57\u6BB5\u3001js\u811A\u672C\u6267\u884C\u5931\u8D25\u6216\u8005\u904D\u5386\u7684\u5BF9\u8C61\u4E0D\u662F `\u6570\u7EC4`\u6216\u8005`{key:value}`\uFF0C\u5219\u4F1A\u628A\u9519\u8BEF\u4FE1\u606F\u901A\u8FC7`Failure`\u94FE\u53D1\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9</li><li>\u904D\u5386\u7ED3\u675F\u540E\uFF0C\u901A\u8FC7`Success`\u94FE\u628A\u539F\u59CBmsg\u53D1\u9001\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9</li></ul>",icon:qn+"/images/iterator.svg",fieldName:{label:"\u904D\u5386\u5B57\u6BB5",desc:"\u5982\u679C\u7A7A\uFF0C\u904D\u5386\u6574\u4E2Amsg\uFF0C\u652F\u6301\u5D4C\u5957\u65B9\u5F0F\u83B7\u53D6msg\u5B57\u6BB5\u503C\uFF0C\u4F8B\u5982items.value\u3001items"},jsScript:{label:"function Filter(item,index,metadata) {",desc:"} \u5339\u914Ditem\u7684js\u811A\u672C\uFF0C\u53EF\u9009\uFF0C\u5982\u679C\u7A7A\u5219\u904D\u5386\u6240\u6709item"}},join:{label:"\u5408\u5E76",desc:"<ul><li>\u5408\u5E76\u591A\u4E2A\u5F02\u6B65\u8282\u70B9\u6267\u884C\u7ED3\u679C</li></ul>",icon:qn+"/images/join.svg",timeout:{label:"\u7EC4\u5185\u6267\u884C\u8D85\u65F6\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA40",desc:"\u9ED8\u8BA40\uFF0C\u4EE3\u8868\u4E0D\u8D85\u65F6"}},fork:{label:"\u5E76\u884C\u7F51\u5173",desc:"<ul><li>\u628A\u6D41\u5206\u6210\u591A\u4E2A\u5E76\u884C\u6267\u884C\u7684\u8DEF\u5F84</li></ul>",icon:qn+"/images/fork.svg"},"text/template":{label:"\u6A21\u677F\u8F6C\u6362",icon:qn+"/images/template.svg",desc:"",template:{label:"\u6A21\u677F\u5185\u5BB9\u6216\u8005\u6587\u4EF6\u8DEF\u5F84",desc:"\u5982\u679C\u662F\u6A21\u677F\u6587\u4EF6\u8DEF\u5F84\u4F7F\u7528file:\u5F00\u5934"}},exec:{label:"\u547D\u4EE4\u884C",icon:qn+"/images/ssh.svg",desc:"<ul><li>\u53EA\u6267\u884C\u7CFB\u7EDF\u767D\u540D\u5355\u7684\u547D\u4EE4</li></ul>",cmd:{label:"\u6267\u884C\u547D\u4EE4",desc:"",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u662F\u5FC5\u987B\u7684"}]},args:{label:"\u53C2\u6570",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},log:{label:"\u6253\u5370\u6807\u51C6\u8F93\u51FA",desc:""},replaceData:{label:"\u66FF\u6362Data",desc:"\u628AData\u66FF\u6362\u4E3A\u6807\u51C6\u8F93\u51FA\uFF0C\u9ED8\u8BA4\u4E3Afalse"}},"x/redisClient":{label:"Redis",icon:qn+"/images/redis.svg",desc:"",server:{label:"redis\u670D\u52A1\u5668\u5730\u5740",desc:"",rules:[{required:!0,message:"redis\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},password:{label:"\u5BC6\u7801",desc:""},poolSize:{label:"\u8FDE\u63A5\u6C60\u5927\u5C0F",desc:""},db:{label:"\u6570\u636E\u5E93\u7F16\u53F7",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"},{type:"integer",required:!0,message:"\u5FC5\u987B\u662F\u6574\u578B"}],desc:"\u9ED8\u8BA40"},cmd:{label:"\u6267\u884C\u547D\u4EE4\uFF0C\u4F8B\u5982SET/GET/DEL/HMSET/HMGET",desc:"\u652F\u6301${metadata.key}\u5360\u4F4D\u7B26\u8BFB\u53D6metadata\u5143\u6570\u636E\uFF0C\u652F\u6301${msg.key}\u5360\u4F4D\u7B26\u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u6307\u5B9Akey\u6570\u636E\uFF0C\u652F\u6301${data}\u83B7\u53D6\u6D88\u606F\u539F\u59CB\u8D1F\u8377",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u662F\u5FC5\u987B\u7684"}]},paramsExpr:{label:"\u547D\u4EE4\u52A8\u6001\u53C2\u6570",desc:'\u652F\u6301Expr\u8868\u8FBE\u5F0F\u3002\u5982:["myhash2", "field1", "value1"]\uFF0C\u6216\u8005\u901A\u8FC7\u53D8\u91CF\u53D6\u503C\u5982:msg\u8868\u793A\u53D6\u6D88\u606F\u8D1F\u8377\u3002\u547D\u4EE4\u52A8\u6001\u53C2\u6570\u548C\u547D\u4EE4\u9759\u6001\u53C2\u6570\uFF0C\u4F18\u5148\u53D6\u547D\u4EE4\u52A8\u6001\u53C2\u6570\u503C\u3002'},params:{label:"\u547D\u4EE4\u9759\u6001\u53C2\u6570",desc:"\u652F\u6301${metadata.key}\u5360\u4F4D\u7B26\u8BFB\u53D6metadata\u5143\u6570\u636E\uFF0C\u652F\u6301${msg.key}\u5360\u4F4D\u7B26\u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u6307\u5B9Akey\u6570\u636E\uFF0C\u652F\u6301${data}\u83B7\u53D6\u6D88\u606F\u539F\u59CB\u8D1F\u8377"}},"x/redisPub":{label:"Redis \u53D1\u5E03",icon:"/images/redis.svg",desc:"<ul><li>redis\u53D1\u5E03\u7EC4\u4EF6</li><li>\u5F80\u6307\u5B9A\u7684\u9891\u9053\u53D1\u5E03\u6570\u636E\u3002</li></ul>",server:{label:"redis\u670D\u52A1\u5668\u5730\u5740",desc:"",rules:[{required:!0,message:"redis\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},password:{label:"\u5BC6\u7801",desc:""},poolSize:{label:"\u8FDE\u63A5\u6C60\u5927\u5C0F",desc:""},db:{label:"\u6570\u636E\u5E93\u7F16\u53F7",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"},{type:"integer",required:!0,message:"\u5FC5\u987B\u662F\u6574\u578B"}],desc:"\u9ED8\u8BA40"},channel:{label:"\u53D1\u5E03\u901A\u9053",desc:"\u652F\u6301${metadata.key}\u5360\u4F4D\u7B26\u8BFB\u53D6metadata\u5143\u6570\u636E\uFF0C\u652F\u6301${msg.key}\u5360\u4F4D\u7B26\u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u6307\u5B9Akey\u6570\u636E",rules:[{required:!0,message:"\u53D1\u5E03\u901A\u9053\u662F\u5FC5\u987B\u7684"}]}},"x/kafkaProducer":{label:"Kafka",icon:qn+"/images/kafka.svg",desc:"",server:{label:"kafka\u670D\u52A1\u5668\u5730\u5740",desc:"\u591A\u4E2A\u670D\u52A1\u5668\u5730\u5740\u7528\u9017\u53F7\u9694\u5F00\uFF0C\u5982: 127.0.0.1:9092,127.0.0.2:9092",rules:[{required:!0,message:"\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}]},topic:{label:"\u53D1\u5E03\u4E3B\u9898",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362",rules:[{required:!0,message:"\u4E3B\u9898\u662F\u5FC5\u987B\u7684"}]},key:{label:"\u5206\u533A\u952E",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},partition:{label:"\u5206\u533A\u7F16\u53F7",desc:""}},"x/luaFilter":{label:"Lua\u811A\u672C\u8FC7\u6EE4",icon:qn+"/images/lua.svg",desc:"<ul><li>\u4F7F\u7528Lua\u811A\u672C\u5BF9msg\u3001metadata\u3001msgType\u8FDB\u884C\u8FC7\u6EE4\u3002\u6839\u636E\u811A\u672C\u8FD4\u56DE\u503C\u8DEF\u7531\u5230True\u6216\u8005False\u94FE\u3002</li><li>\u4E5F\u53EF\u4EE5\u4F7F\u7528lua\u811A\u672C\uFF0C\u8FDB\u884C\u4F8B\u5982\uFF1A\u52A0\u89E3\u5BC6\u3001I/O\u3001\u7F51\u7EDC\u3001\u6587\u4EF6\u7B49\u9AD8\u7EA7\u64CD\u4F5C</li></ul>",script:{label:"\u811A\u672C\u51FD\u6570\u4F53\u6216\u8005\u662F\u811A\u672C\u6587\u4EF6\u8DEF\u5F84",desc:"\u53EA\u9700\u8981\u63D0\u4F9B\u51FD\u6570\u4F53\u5185\u5BB9\uFF0C\u5982\u679C\u662F\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5219\u9700\u8981\u63D0\u4F9B\u5B8C\u6574\u7684\u811A\u672C\u51FD\u6570"}},"x/luaTransform":{label:"Lua\u811A\u672C\u8F6C\u6362",icon:qn+"/images/lua.svg",desc:"<ul><li>lua\u811A\u672C\u8F6C\u6362\u5668\u3002\u53EF\u4EE5\u4F7F\u7528Lua\u811A\u672C\u5BF9msg\u3001metadata\u3001msgType\u8FDB\u884C\u8F6C\u6362\u6216\u589E\u5F3A\u3002</li><li>\u4E5F\u53EF\u4EE5\u4F7F\u7528lua\u811A\u672C\uFF0C\u8FDB\u884C\u4F8B\u5982\uFF1A\u52A0\u89E3\u5BC6\u3001I/O\u3001\u7F51\u7EDC\u3001\u6587\u4EF6\u7B49\u9AD8\u7EA7\u64CD\u4F5C</li></ul>",script:{label:"\u811A\u672C\u51FD\u6570\u4F53\u6216\u8005\u662F\u811A\u672C\u6587\u4EF6\u8DEF\u5F84",desc:"\u53EA\u9700\u8981\u63D0\u4F9B\u51FD\u6570\u4F53\u5185\u5BB9\uFF0C\u5982\u679C\u662F\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5219\u9700\u8981\u63D0\u4F9B\u5B8C\u6574\u7684\u811A\u672C\u51FD\u6570"}},"x/natsClient":{label:"NATS",icon:qn+"/images/nats.svg",desc:"",topic:{label:"\u53D1\u5E03\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},server:{label:"NATS\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u793A\u4F8B: nats://127.0.0.1:4222",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""}},"x/rabbitmqClient":{label:"RabbitMQ",icon:qn+"/images/rabbitmq.svg",desc:"<ul><li>\u53D1\u6D88\u606F\u8D1F\u8377\u53D1\u9001\u5230rabbitmq\u961F\u5217</li><li>\u652F\u6301AMQP\u534F\u8BAE</li><li></ul></a>",server:{label:"\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u683C\u5F0F:amqp://[\u7528\u6237\u540D:\u5BC6\u7801]@host/[\u865A\u62DF\u673A\u540D\u79F0]",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},key:{label:"\u8DEF\u7531\u952E",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},exchange:{label:"\u4EA4\u6362\u673A\u540D\u79F0",desc:""},exchangeType:{label:"\u4EA4\u6362\u673A\u7C7B\u578B",desc:"\u53EF\u9009\u7C7B\u578B\uFF1Adirect/fanout/headers/topic"},durable:{label:"\u662F\u5426\u6301\u4E45\u5316",desc:""},autoDelete:{label:"\u662F\u5426\u81EA\u52A8\u5220\u9664",desc:""}},"x/opengeminiWrite":{label:"opengemini\u5199",icon:qn+"/images/opengemini-write.svg",desc:"",server:{label:"opengemini\u670D\u52A1\u5730\u5740",desc:"\u683C\u5F0F: \u4E3B\u673A\u540D:\u7AEF\u53E3\uFF0C\u591A\u4E2A\u670D\u52A1\u5730\u5740\u7528\u9017\u53F7\u9694\u5F00",rules:[{required:!0,message:"\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},database:{label:"\u6570\u636E\u5E93",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF\uFF0C\u4F8B\u5982\uFF1A${metadata.key}\u3001${msg.key}",rules:[{required:!0,message:"\u6570\u636E\u5E93\u662F\u5FC5\u987B\u7684"}]},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},token:{label:"Token",desc:"\u5982\u679CToken\u4E0D\u4E3A\u7A7A\uFF0C\u4F7F\u7528Token\u8BA4\u8BC1"}},"x/opengeminiQuery":{label:"opengemini\u8BFB",icon:qn+"/images/opengemini.svg",desc:"",server:{label:"opengemini\u670D\u52A1\u5730\u5740",desc:"\u683C\u5F0F: \u4E3B\u673A\u540D:\u7AEF\u53E3\uFF0C\u591A\u4E2A\u670D\u52A1\u5730\u5740\u7528\u9017\u53F7\u9694\u5F00",rules:[{required:!0,message:"\u670D\u52A1\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},database:{label:"\u6570\u636E\u5E93",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF\uFF0C\u4F8B\u5982\uFF1A${metadata.key}\u3001${msg.key}",rules:[{required:!0,message:"\u6570\u636E\u5E93\u662F\u5FC5\u987B\u7684"}]},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},token:{label:"Token",desc:"\u5982\u679CToken\u4E0D\u4E3A\u7A7A\uFF0C\u4F7F\u7528Token\u8BA4\u8BC1"},command:{label:"\u67E5\u8BE2\u8BED\u53E5",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF\uFF0C\u4F8B\u5982\uFF1A${metadata.key}\u3001${msg.key}",rules:[{required:!0,message:"\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}]}},"x/grpcClient":{label:"gRPC \u5BA2\u6237\u7AEF",icon:qn+"/images/grpc.svg",desc:"<ul><li>\u52A8\u6001\u8C03\u7528gRPC\u670D\u52A1</li></li></ul>",server:{label:"gRPC\u670D\u52A1\u5730\u5740",desc:"\u683C\u5F0F: \u4E3B\u673A\u540D:\u7AEF\u53E3",rules:[{required:!0,message:"\u670D\u52A1\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},service:{label:"\u670D\u52A1\u540D\u79F0",desc:"\u793A\u4F8B\uFF1Ahelloworld.Greeter\u3002\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF",rules:[{required:!0,message:"\u670D\u52A1\u540D\u79F0\u662F\u5FC5\u987B\u7684"}]},method:{label:"\u65B9\u6CD5\u540D\u79F0",desc:"\u793A\u4F8B\uFF1ASayHello\u3002\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF",rules:[{required:!0,message:"\u65B9\u6CD5\u540D\u79F0\u662F\u5FC5\u987B\u7684"}]},request:{label:"\u8BF7\u6C42\u53C2\u6570\u5185\u5BB9",desc:'\u793A\u4F8B\uFF1A{"name":"lala"}\u3002\u5982\u679C\u7A7A\uFF0C\u5219\u4F7F\u7528\u5F53\u524D\u6D88\u606F\u8D1F\u8377\u3002\u53C2\u6570\u4F7F\u7528JSON\u7F16\u7801\uFF0C\u5FC5\u987B\u548Cservice/method\u8981\u6C42\u4E00\u81F4\u3002\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF'},headers:{label:"\u8BF7\u6C42\u5934",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF"}},"x/mongodbClient":{label:"MongoDB",icon:"/images/mongodb.svg",desc:"<ul><li>MongoDB \u5BA2\u6237\u7AEF</li><li>\u53EF\u4EE5\u5BF9MongoDB\u8FDB\u884C\u589E\u5220\u4FEE\u6539\u67E5\u64CD\u4F5C</li></li></ul>",server:{label:"MongoDB\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u5141\u8BB8\u9009\u62E9\u8FDE\u63A5\u6C60\u8FDB\u884C\u8FDE\u63A5",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},database:{label:"\u6570\u636E\u5E93",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}]},collection:{label:"\u96C6\u5408",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}]},opType:{label:"\u64CD\u4F5C\u7C7B\u578B",component:{type:"select",filterable:!0,allowCreate:!1,multiple:!1,options:[{label:"\u63D2\u5165",value:"INSERT"},{label:"\u67E5\u8BE2",value:"QUERY"},{label:"\u66F4\u65B0",value:"UPDATE"},{label:"\u5220\u9664",value:"DELETE"}]},rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},filter:{label:"\u8FC7\u6EE4\u6761\u4EF6",desc:'\u67E5\u8BE2\u662F\u53EF\u4E3A\u7A7A\u3002\u5141\u8BB8Expr\u8868\u8FBE\u5F0F\uFF0C\u793A\u4F8B\uFF1A{"age"": {"$gte": 18 }\u3002'},doc:{label:"\u66F4\u65B0/\u63D2\u5165\u6587\u6863",desc:'\u67E5\u8BE2\u6216\u8005\u5220\u9664\u53EF\u4E3A\u7A7A\u3002\u5141\u8BB8Expr\u8868\u8FBE\u5F0F\uFF0C\u793A\u4F8B\uFF1A{"name":"test","age":18}\u3002'},one:{label:"\u662F\u5426\u64CD\u4F5C1\u6761\u8BB0\u5F55",desc:""}},"ai/generate-image":{label:"AI\u56FE\u50CF\u751F\u6210",icon:qn+"/images/generate-image.svg",desc:"<ul><li>\u901A\u8FC7\u63D0\u793A\u8BCD\u751F\u6210\u56FE\u7247</li></ul>",url:{label:"API\u5730\u5740",desc:""},key:{label:"\u6388\u6743\u79D8\u94A5",desc:""},model:{label:"\u6A21\u578B",desc:""}},"ai/generate-text":{label:"AI\u6587\u672C\u751F\u6210",icon:qn+"/images/generate-text.svg",desc:"<ul><li>\u901A\u8FC7\u63D0\u793A\u8BCD\u751F\u6210\u6587\u672C</li></ul>",url:{label:"API\u5730\u5740",desc:""},key:{label:"\u6388\u6743\u79D8\u94A5",desc:""},model:{label:"\u6A21\u578B",desc:""}},"ci/exec":{label:"\u547D\u4EE4\u884C",icon:qn+"/images/ssh.svg",desc:"<ul><li>\u53EA\u6267\u884C\u7CFB\u7EDF\u767D\u540D\u5355\u7684\u547D\u4EE4</li></ul>",command:{label:"\u6267\u884C\u547D\u4EE4",desc:""},args:{label:"\u53C2\u6570",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},log:{label:"\u6253\u5370\u6807\u51C6\u8F93\u51FA",desc:""},replaceData:{label:"\u66FF\u6362Data",desc:"\u628AData\u66FF\u6362\u4E3A\u6807\u51C6\u8F93\u51FA\uFF0C\u9ED8\u8BA4\u4E3Afalse"}},"ci/gitClone":{label:"Git\u62C9\u53D6",icon:qn+"/images/git.svg",desc:"<ul><li>git\u514B\u9686\u6216\u8005\u62C9\u53D6\u4ED3\u5E93\u4EE3\u7801</li></ul>",repository:{label:"\u4ED3\u5E93\u5730\u5740",desc:"\u793A\u4F8B:https://github.com/sagoo-cloud/sagooiot.git"},directory:{label:"\u514B\u9686\u5230\u672C\u5730\u76EE\u5F55",desc:"\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2DworkDir\u503C"},reference:{label:"\u5F15\u7528\u540D\u79F0",desc:"\u53EF\u4EE5\u662F\u5206\u652F\u540D\u3001\u6807\u7B7E\u540D\u5B8C\u6574\u5F15\u7528\u540D\u3002\u4F8B\u5982\uFF1Arefs/heads/main\u3002\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2Dref\u503C"},authType:{label:"\u8BA4\u8BC1\u7C7B\u578B",desc:"\u53EF\u4EE5\u662F:ssh/password/token"},authUser:{label:"\u7528\u6237\u540D",desc:""},authPassword:{label:"\u5BC6\u7801\u6216 token",desc:"\u5BC6\u7801\u6216 token"},authPemFile:{label:"\u79D8\u94A5\u6587\u4EF6\u8DEF\u5F84",desc:""},proxyUrl:{label:"\u4EE3\u7406URL",desc:""},proxyUsername:{label:"\u4EE3\u7406\u7528\u6237\u540D",desc:""},proxyPassword:{label:"\u4EE3\u7406\u5BC6\u7801",desc:""}},"ci/gitPush":{label:"Git\u63A8\u9001",icon:qn+"/images/git-push.svg",desc:"<ul><li>git\u63A8\u9001</li></ul>",repository:{label:"\u4ED3\u5E93\u5730\u5740",desc:"\u793A\u4F8B:https://github.com/sagoo-cloud/sagooiot.git"},directory:{label:"\u672C\u5730\u76EE\u5F55",desc:"\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2DworkDir\u503C"},refSpecs:{label:"\u672C\u5730\u5206\u652F\u4E0E\u8FDC\u7A0B\u5206\u652F\u6620\u5C04\u5173\u7CFB",desc:"\u4F8B\u5982\uFF1Arefs/heads/your-branch:refs/heads/your-branch\uFF0C\u591A\u4E2A\u6620\u5C04\u5173\u7CFB\u4E0E\u9017\u53F7\u9694\u5F00"},authType:{label:"\u8BA4\u8BC1\u7C7B\u578B",desc:"\u53EF\u4EE5\u662F:ssh/password/token"},authUser:{label:"\u7528\u6237\u540D",desc:""},authPassword:{label:"\u5BC6\u7801\u6216 token",desc:"\u5BC6\u7801\u6216 token"},authPemFile:{label:"\u79D8\u94A5\u6587\u4EF6\u8DEF\u5F84",desc:""},proxyUrl:{label:"\u4EE3\u7406\u5730\u5740",desc:""},proxyUsername:{label:"\u4EE3\u7406\u7528\u6237\u540D",desc:""},proxyPassword:{label:"\u4EE3\u7406\u5BC6\u7801",desc:""}},"ci/gitCommit":{label:"Git\u63D0\u4EA4",icon:qn+"/images/git-commit.svg",desc:"<ul><li>git\u63D0\u4EA4\uFF0C\u5982\u679C\u6587\u4EF6\u6CA1\u53D8\u66F4\u5219\u8F6C\u53D1\u5230\u5931\u8D25\u94FE</li></ul>",directory:{label:"\u672C\u5730\u76EE\u5F55",desc:"\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2DworkDir\u503C"},pattern:{label:"\u6DFB\u52A0\u7684\u6587\u4EF6\u5339\u914D\u6A21\u5F0F",desc:"\u5FC5\u987B\u5F53\u524D\u5DE5\u4F5C\u533A\u76F8\u5BF9\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/example/*.go",rules:[{required:!0,message:"\u6DFB\u52A0\u7684\u6587\u4EF6\u5339\u914D\u6A21\u5F0F\u662F\u5FC5\u987B\u7684"}]},message:{label:"Git\u63D0\u4EA4",desc:"",rules:[{required:!0,message:"\u63D0\u4EA4\u6D88\u606F\u662F\u5FC5\u987B\u7684"}]},signature:{label:"\u4F5C\u8005\u4FE1\u606F",desc:"",authorName:{label:"\u4F5C\u8005\u540D\u79F0",desc:""},authorEmail:{label:"\u4F5C\u8005\u90AE\u7BB1",desc:""}}},"ci/gitCreateTag":{label:"Git\u521B\u5EFA\u6807\u7B7E",icon:qn+"/images/git-tag.svg",desc:"<ul><li>git\u63D0\u4EA4\uFF0C\u5982\u679C\u6587\u4EF6\u6CA1\u53D8\u66F4\u5219\u8F6C\u53D1\u5230\u5931\u8D25\u94FE</li></ul>",directory:{label:"\u672C\u5730\u76EE\u5F55",desc:"\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2DworkDir\u503C"},tag:{label:"\u6807\u7B7E\u540D\u79F0",desc:"",rules:[{required:!0,message:"\u6807\u7B7E\u540D\u79F0\u662F\u5FC5\u987B\u7684"}]},message:{label:"\u6807\u7B7E\u6D88\u606F",desc:"",rules:[{required:!0,message:"\u6807\u7B7E\u6D88\u606F\u662F\u5FC5\u987B\u7684"}]},signature:{label:"\u4F5C\u8005\u4FE1\u606F",desc:"",authorName:{label:"\u4F5C\u8005\u540D\u79F0",desc:""},authorEmail:{label:"\u4F5C\u8005\u90AE\u7BB1",desc:""}}},"ci/ps":{label:"\u670D\u52A1\u5668\u6307\u6807",icon:qn+"/images/ps.svg",desc:"\u7528\u4E8E\u76D1\u63A7\u670D\u52A1\u5668CPU\u3001\u5185\u5B58\u3001\u78C1\u76D8\u7B49\u6307\u6807\u3002",options:{label:"\u6307\u6807\u5217\u8868",desc:"\u5982\u679C\u4E3A\u7A7A\uFF0C\u5219\u67E5\u8BE2\u6240\u6709\u6307\u6807",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!0,options:[{label:"\u4E3B\u673A\u4FE1\u606F",value:"host/info"},{label:"CPU\u4FE1\u606F",value:"cpu/info"},{label:"\u865A\u62DF\u5185\u5B58\u4FE1\u606F",value:"mem/virtualMemory"},{label:"\u4EA4\u6362\u5185\u5B58\u4FE1\u606F",value:"mem/swapMemory"},{label:"\u78C1\u76D8\u4F7F\u7528\u60C5\u51B5",value:"disk/usage"},{label:"\u78C1\u76D8IO\u8BA1\u6570\u5668\u4FE1\u606F",value:"disk/ioCounters"},{label:"\u7F51\u7EDCIO\u8BA1\u6570\u5668\u4FE1\u606F",value:"net/ioCounters"},{label:"\u7F51\u7EDC\u63A5\u53E3\u4FE1\u606F",value:"net/interfaces"}],placeholder:"\u8BF7\u9009\u62E9\u67E5\u8BE2\u6307\u6807"}}},"action/sagoo/deviceaction":{label:"\u8BBE\u5907\u52A8\u4F5C",icon:qn+"/images/deviceaction.svg",desc:"\u7528\u4E8E\u6267\u884C\u8BBE\u5907\u7684\u64CD\u4F5C",productKey:{label:"\u9009\u62E9\u4EA7\u54C1",desc:"",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],component:{type:"select",optionApi:"/product/list",autoGetData:!0,resDataKey:"product",resDataLabelKey:"name",resDataValueKey:"key",onChangeGetDataKey:"deviceKey",filterable:!0,allowCreate:!1,placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1",multiple:!1,options:[]}},deviceKey:{label:"\u9009\u62E9\u8BBE\u5907",desc:"",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],component:{type:"select",autoGetData:!1,optionApi:"/product/device/list",resDataKey:"device",getDataByKey:"productKey",resDataLabelKey:"name",resDataValueKey:"key",apiParams:{productKey:""},filterable:!0,allowCreate:!1,placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",multiple:!1,options:[],defineOptions:[{label:"\u5168\u90E8",value:"all"}]}},triggerType:{label:"\u64CD\u4F5C\u7C7B\u578B",desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1,options:[{label:"\u8BBE\u5907\u529F\u80FD\u8C03\u7528",value:"functionCall"},{label:"\u83B7\u53D6\u8BBE\u5907\u5C5E\u6027",value:"getProperties"},{label:"\u8BBE\u7F6E\u8BBE\u5907\u5C5E\u6027",value:"setProperties"}],placeholder:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}},funcKey:{label:"\u529F\u80FD\u6807\u8BC6",desc:"\u5E73\u53F0\u8BBE\u7F6E\u7684\u529F\u80FD\u7684Key"},parameter:{label:"\u8BF7\u6C42\u53C2\u6570",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"}}}},XVe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let OF=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=XVe[n[e]&63];return t};const Ry=(e,t)=>{if(e&&t){let n=_F[t];if(n)return n[e]||e}else if(e)return _F[e]||e;return e},uq=e=>{if(!e)return 0;let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);e.match(/[A-Z]/)?t+=1.5:r>=1&&r<=126||r>=65376&&r<=65439?t+=1:t+=1.8}return t},qVe=e=>{let t=JSON.parse(JSON.stringify(ZVe));e.endpoints&&e.endpoints.forEach(n=>{wF(e.builtins,t,n,!0)}),e.nodes||(e.nodes=e),e.nodes.forEach(n=>{wF(e.builtins,t,n,!1)});for(let n in t){let r=t[n];(!r.components||Array.isArray(r.components)&&r.components.length===0)&&delete t[n]}return t},wF=(e,t,n,r)=>{let o="";if(r)o="endpoints";else{o=n.category.split("/")[0];let a=n.type.split("/")[0];t[a]&&(o=a)}let i=t[o];i?(n.background=n.background||i.background,i.components?i.components.push(n):i.components=[n]):t[o]={label:o,background:"#86B4E5FF",components:[n]},n.category=o,KVe(n,r),lFe(e,n,o),GVe(n),n.nodeType=n.nodeType||i&&i.nodeType||"simple-node"},KVe=(e,t)=>{let n={};t?n=zR.endpoints[e.type]:n=zR.nodes[e.type],n?(e.notInput=n.notInput||e.notInput,e.notOutput=n.notOutput||e.notOutput,e.label=n.label||e.label,e.desc=n.desc||e.desc,e.rules=n.rules||e.rules,e.icon=n.icon||e.icon,e.nodeType=n.nodeType||e.nodeType,e.relationTypes=n.relationTypes||SF(e.relationTypes),e.relationTypeAllowCreate=n.relationTypeAllowCreate||e.relationTypeAllowCreate,e.relationTypeDynamics=n.relationTypeDynamics||e.relationTypeDynamics,cq(e,n),t&&(e.router=n.router||e.router)):e.relationTypes=SF(e.relationTypes),t&&(e.router=e.router||{})},SF=e=>{if(e){let t=[];return e.forEach(n=>{let r=n.value!==void 0&&n.value!==null?n.value:n,o=n.label!==void 0&&n.label!==null?n.label:n;t.push({value:r,label:Ry(o,"relationTypes")})}),t}return e},cq=(e,t)=>{e.fields&&e.fields.forEach(n=>{let r=t[n.name];r&&fq(n,r),n.fields&&r&&cq(n,r)})},GVe=e=>{e.fields&&e.fields.forEach(t=>{t.type.indexOf("int")>-1&&!t.rules?t.rules=[{type:"number",message:"\u5FC5\u987B\u662F\u6570\u503C\u7C7B\u578B"}]:t.type.indexOf("float")>-1&&!t.rules&&(t.rules=[{pattern:/^-?\d+(\.\d+)?$/,message:"\u5FC5\u987B\u662F\u6D6E\u70B9\u7C7B\u578B"}])})},QR=(e,t)=>{let n={};return e&&e.forEach(r=>{r.id===t&&(n=r)}),n},JVe=(e,t,n)=>{let r=null;return e&&e.forEach(o=>{o.sourceNodeId===t&&o.targetNodeId===n&&(r=o)}),r},eFe=(e,t,n)=>{let r={id:"edge_"+e.edgeCount,type:"flow-link",sourceNodeId:n.fromId,targetNodeId:n.toId,startPoint:{},endPoint:{},text:Ry(n.type,"relationTypes")||"",properties:{model:{...n}}},o=QR(t,r.sourceNodeId),i=QR(t,r.targetNodeId);return o&&(r.startPoint.x=o.x+e.nodeWidth/2,r.startPoint.y=o.y),i&&(r.endPoint.x=i.x-e.nodeWidth/2-10,r.endPoint.y=i.y),r},tFe=e=>{let t=e.split("_");if(t.length>0){let n=parseInt(t[t.length-1]);return isNaN(n)?0:n}},nFe=(e,t,n)=>{let r={};e.forEach(i=>{let a=i.properties.model||{};a.routerId&&(r[a.routerId]=i.id)});let o=[];return t.routers&&t.routers.forEach(i=>{if(!r[i.id]||r[i.id]===n){let a=Z1(i);o.push({label:a,value:i.id||a})}}),o},rFe=(e,t)=>{let n=[];return e.type==="switch"&&(t.configuration&&t.configuration.cases&&t.configuration.cases.forEach(r=>{n.push({label:r.then,value:r.then})}),n.push({label:"Default",value:"Default"}),n.push({label:"\u5931\u8D25",value:"Failure"})),n},oFe=(e,t)=>{let n=[];return e.routers&&e.routers.forEach(r=>{if(r.id===t){let o=Z1(r);n.push({label:o,value:t})}}),n},iFe=(e,t,n)=>{let r=[];return n?(t.routers&&t.routers.length>0&&t.routers.forEach(o=>{if(o.to&&o.to.path){let i=o.to.path.split(":"),a=Z1(o);if(i.length<=1)r.push({fromId:e,toId:n.id,routerId:o.id,nodeType:"endpoint-node",type:a});else for(let s=1;s<i.length;s++)r.push({fromId:e,toId:i[s],nodeType:"endpoint-node",routerId:o.id,type:a})}}),r):[]},aFe=(e,t,n)=>{e.routers=e.routers||[],e.routers.forEach(r=>{r.to||(r.to={}),r.to.path=t}),n.forEach(r=>{r.fromId===e.id&&e.routers&&e.routers.forEach(o=>{let i=Z1(o);(o.id===r.type||i===r.type)&&(o.to.path=o.to.path+":"+r.toId)})})},Z1=(e,t)=>{var r,o,i,a,s;if(t){const l=(a=(i=(o=(r=zR.endpoints[t])==null?void 0:r.router)==null?void 0:o.from)==null?void 0:i.path)==null?void 0:a.options;if(l){const u=(s=l.find(f=>{var h;return f.value===((h=e==null?void 0:e.from)==null?void 0:h.path)}))==null?void 0:s.label;if(u)return u}}return e.from?(e.params?e.params.join(" "):"")+" "+(e.from&&e.from.path):""},sFe=e=>OF(e||12),lFe=(e,t,n)=>{if(n==="endpoints"){let o=e.endpoints;o&&t.router&&(t.router.options={},Object.keys(o).forEach(i=>{t.router.options[i]=o[i]}))}let r=e.nodePool&&e.nodePool[t.type];if(r&&t.fields){let o=uFe(r);t.fields.forEach(i=>{i.component&&(i.component.options=o)})}Object.keys(e).forEach(o=>{t.type===o&&t.fields&&t.fields.forEach(i=>{e[o][i.name]&&(i.component=i.component||{},i.component.options=e[o][i.name])})})};function uFe(e){let t=[];return e&&e.forEach(n=>{t.push({label:n.name,value:`ref://${n.id}`})}),t}function fq(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n=r=>r&&typeof r=="object"&&!Array.isArray(r);for(const r of t)if(n(r))for(const o in r)n(r[o])&&n(e[o])?fq(e[o],r[o]):e[o]=r[o];return e}const cFe=(e,t,n)=>t.map(r=>{const o=e.find(i=>i.value!==void 0&&i.value!==null?i.value===r:i===r);return o&&o.label?o.label:Ry(r,n)}).filter(r=>r!==void 0),fFe=e=>new Promise((t,n)=>{if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(e).then(()=>t(!0)).catch(r=>n(r));else{const r=document.createElement("textarea");r.value=e,document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")?t(!0):n("execCommand copy failed")}catch(o){n(o)}finally{document.body.removeChild(r)}}}),dFe=()=>new Promise((e,t)=>{navigator.clipboard&&window.isSecureContext?navigator.clipboard.readText().then(n=>e(n)).catch(n=>{xF().then(e,t)}):xF().then(e,t)});function xF(){return new Promise((e,t)=>{let n="";const r=document.createElement("textarea");r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("paste")?(n=r.value,e(n)):t("execCommand paste failed")}catch(o){t(o)}finally{document.body.removeChild(r)}})}const Sr={};Sr.getNodeSeq=tFe;Sr.adapterComponents=qVe;Sr.getNodeByID=QR;Sr.getEdgeBySourceNodeIdAndTargetNodeId=JVe;Sr.createEdge=eFe;Sr.getRelationTypeOptionsFromRouters=nFe;Sr.getEndpointConnections=iFe;Sr.updateEndpointRouterToPath=aFe;Sr.toFromPath=Z1;Sr.getRouterRelationTypeLabel=oFe;Sr.genId=sFe;Sr.getSelectedLabels=cFe;Sr.copyToClipboard=fFe;Sr.readFromClipboard=dFe;Sr.getRelationTypeOptionsFromNode=rFe;class hFe extends Kt.exports.RectNodeModel{initNodeData(t){super.initNodeData(t),this.width=120,this.height=30,this.radius=5,this.text.x=this.x+10,this.iconPosition="",this.defaultFill="#a6bbcf";const n={message:"\u53EA\u5141\u8BB8\u4ECE\u53F3\u8FB9\u7684\u951A\u70B9\u8FDE\u51FA",validate:(a,s,l,u)=>{let f=a.graphModel.getNodeEdges(a.id);return f&&f.length>0&&f.filter(m=>m.sourceNode.id===a.id&&m.targetNode.id===s.id).length>0?!1:l.type==="right"}},r={message:"Input\u8282\u70B9\u53EA\u80FD\u5141\u8BB8\u5F15\u51FA\u4E00\u6761\u8FB9",validate:(a,s,l,u)=>{let f=a.graphModel.getNodeEdges(a.id);return!(f&&f.length>1&&a.type==="start-node"||s.type==="start-node"||s.type==="endpoint-node")}},o={message:"\u76F8\u540C\u7684\u8F93\u5165\u548C\u8F93\u51FA\u8282\u70B9\uFF0C\u53EA\u80FD\u5141\u8BB8\u521B\u5EFA\u4E00\u6761\u8FB9",validate:(a,s,l,u)=>{let f=a.graphModel.getNodeEdges(a.id);return!(f&&f.length>0&&f.filter(m=>m.sourceNode.id==a.id&&m.targetNode.id==s.id).length>0)}};this.sourceRules.push(n),this.sourceRules.push(r),this.sourceRules.push(o);const i={message:"\u53EA\u5141\u8BB8\u4ECE\u5DE6\u8FB9\u951A\u70B9\u8FDE\u5165",validate:(a,s,l,u)=>u.type==="left"};this.targetRules.push(i)}getData(){const t=super.getData();return t.properties.ui="node-red",t}setAttributes(){if(this.text.value){let t=30+uq(this.text.value)*9;t=Math.ceil(t/20)*20;let n=Math.ceil((t-this.width)/20);if(n>0){let r=this.text.value.length-n;r>0&&(this.text.value=this.text.value.substring(0,r)+"...")}}}updateText(t){super.updateText(t),this.setAttributes()}getNodeStyle(){const t=super.getNodeStyle(),n=this.properties.view||{};return this.isSelected?(t.strokeWidth=Number(n.borderWidth)||2,t.stroke=n.borderColor||"#ff7f0e"):(t.strokeWidth=Number(n.borderWidth)||1,t.stroke=n.borderColor||"#999"),t.fill=n.background||this.defaultFill||"rgb(230, 224, 248)",this.icon=n.icon||"/plugin/rule/images/"+n.category+".svg"||"images/fetch.svg",t}getDefaultAnchor(){const{x:t,y:n,id:r,width:o,height:i}=this;return[{x:t+o/2,y:n,id:`${r}_right`,type:"right"},{x:t-o/2,y:n,id:`${r}_left`,type:"left"}]}getOutlineStyle(){const t=super.getOutlineStyle();return t.stroke="transparent",t.hover.stroke="transparent",t}}class pFe extends Kt.exports.RectNode{getAnchorShape(t){const{x:n,y:r,type:o}=t;return Kt.exports.h("rect",{x:n-5,y:r-5,width:10,height:10,className:"custom-anchor"})}getIcon(){return null}getShape(){const{text:t,x:n,y:r,width:o,height:i,radius:a}=this.props.model,s=this.props.model.getNodeStyle();return Kt.exports.h("g",{className:"lf-red-node"},[Kt.exports.h("rect",{...s,x:n-o/2,y:r-i/2,width:o,height:i,rx:a,ry:a}),Kt.exports.h("g",{style:"pointer-events: none;",transform:`translate(${n}, ${r})`},[Kt.exports.h("rect",{x:-o/2,y:-i/2,width:30,height:30,fill:"#000",fillOpacity:.05,stroke:"none"}),this.getIcon(),Kt.exports.h("path",{d:`M ${30-o/2} ${1-i/2} l 0 28`,stroke:"#000",strokeOpacity:.1,strokeWidth:1})])])}}var Nf={type:"red-node",model:hFe,view:pFe};class gFe extends Nf.view{getIcon(){const{width:t,height:n,icon:r}=this.props.model;let o=r||"/images/comment.svg";return Kt.exports.h("image",{width:30,height:30,x:-t/2,y:-n/2,href:o})}}class mFe extends Nf.model{getDefaultAnchor(){return[]}initNodeData(t){super.initNodeData(t)}getTextStyle(){const t=super.getTextStyle();return t.fontStyle="italic",t}setAttributes(){this.width=15+uq(this.text.value)*8,this.width<120&&(this.width=120)}updateText(t){super.updateText(t),this.setAttributes()}}var vFe={type:"comment-node",model:mFe,view:gFe};class yFe extends Nf.view{getIcon(){const{width:t,height:n,icon:r}=this.props.model;let o=r||"/plugin/rule/images/start.svg";return Kt.exports.h("image",{width:30,height:30,x:-t/2,y:-n/2,href:o})}}class bFe extends Nf.model{getDefaultAnchor(){const{x:t,y:n,id:r,width:o}=this;return[{x:t+o/2,y:n,id:`${r}_right`,type:"right"}]}initNodeData(t){super.initNodeData(t)}}var _Fe={type:"endpoint-node",model:bFe,view:yFe};class OFe extends Nf.view{getIcon(){const{width:t,height:n,icon:r}=this.props.model;let o=r||"/plugin/rule/images/fetch.svg";return Kt.exports.h("image",{width:30,height:30,x:-t/2,y:-n/2,href:o})}}class wFe extends Nf.model{initNodeData(t){super.initNodeData(t)}}var SFe={type:"simple-node",model:wFe,view:OFe};class xFe extends Nf.view{getIcon(){const{model:t,graphModel:n}=this.props,{width:r,height:o,icon:i}=t;let a=i||"/plugin/rule/images/fetch.svg";return Kt.exports.h("image",{width:30,height:30,x:-r/2,y:-o/2,href:a})}}class kFe extends Nf.model{getDefaultAnchor(){const{x:t,y:n,id:r,width:o}=this;return[{x:t-o/2,y:n,id:`${r}_left`,type:"left"}]}initNodeData(t){super.initNodeData(t)}}var CFe={type:"chain-node",model:kFe,view:xFe};class EFe extends Nf.view{getIcon(){const{model:t,graphModel:n}=this.props,{width:r,height:o}=t;return Kt.exports.h("image",{width:30,height:30,x:-r/2,y:-o/2,className:"node-red-start",href:"/plugin/rule/images/start.svg",onClick:()=>{n.eventCenter.emit("node-red:start")}})}}class TFe extends Nf.model{getDefaultAnchor(){const{x:t,y:n,id:r,width:o}=this;return[{x:t+o/2,y:n,id:`${r}_right`,type:"right"}]}initNodeData(t){super.initNodeData(t),this.defaultFill="rgb(166, 187, 207)"}}var PFe={type:"start-node",model:TFe,view:EFe};class $Fe extends Kt.exports.BezierEdgeModel{getEdgeStyle(){const t=super.getEdgeStyle();return t.strokeWidth=this.isHovered?4:3,t.stroke=this.isSelected||this.isHovered?"#ff7f0e":"#999",t}getTextStyle(){const t=super.getTextStyle();t.color="#003a79",t.textWidth=200,t.overflowMode="autoWrap",t.fontSize=16;let n="0px,0px";return this.text.value&&(t.textWidth=Math.ceil(this.text.value.length/2)*t.fontSize+t.fontSize/4+30,t.textWidth>200&&(t.textWidth=200)),t.background={wrapPadding:n,fill:"#FFF",strokeWidth:2,stroke:"#003a79",x:0,y:0,rx:10,ry:10},t}setAttributes(t){super.setAttributes(t),this.offset=20}}class AFe extends Kt.exports.BezierEdge{}var MFe={type:"flow-link",view:AFe,model:$Fe},R0=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const RFe={class:"demo-collapse"},NFe={class:"classify-title"},IFe=["onMousedown"],DFe={class:"red-ui-palette-label"},jFe={class:"red-ui-palette-icon-container"},LFe={key:0,class:"red-ui-palette-port red-ui-palette-port-input"},BFe={key:1,class:"red-ui-palette-port red-ui-palette-port-output"},VFe=xe({__name:"Sidebar",props:{lf:{type:DR,required:!0}},setup(e){const t=e,n="/plugin/rule",r=ee(""),o=ee(["endpoints","action","filter","transform","external","flow","ai","ci","iot"]),i=f=>{const{lf:h}=t;h.dnd.startDrag({type:f.nodeType,text:f.label||f.type,properties:{model:{type:f.type,debugMode:!1},view:f}})},a=ee(null),s=ee(null),{lf:l}=t;l.on("rulego-editor:componentOk",f=>{s.value=f,a.value=f}),vn(()=>{const{lf:f}=t;f.graphModel.eventCenter.emit("rulego-editor:sidebarOk")});const u=()=>{let f=r.value.toLowerCase(),h={};if(f=="")h=s.value;else for(let m in s.value)h[m]||(h[m]=[]),h[m]=JSON.parse(JSON.stringify(s.value[m])),h[m].components&&(h[m].components=h[m].components.filter(y=>y.label.toLowerCase().indexOf(f)>-1||y.type.toLowerCase().indexOf(f)>-1));a.value=h};return(f,h)=>{const m=ri,y=cl,O=ul,b=ia,k=l3,C=s3,P=Ec;return U(),ce("div",RFe,[ne(m,{modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=$=>r.value=$),"prefix-icon":v(RY),onInput:u,placeholder:"\u641C\u7D22\u7EC4\u4EF6"},null,8,["modelValue","prefix-icon"]),ne(P,{height:"calc(100vh - 82px)"},{default:se(()=>[(U(!0),ce(Pt,null,_n(a.value,($,T,A)=>(U(),Qe(C,{modelValue:o.value,"onUpdate:modelValue":h[1]||(h[1]=R=>o.value=R)},{default:se(()=>[ne(k,{name:T},{title:se(()=>[ne(O,null,{default:se(()=>[ne(y,{span:3},{default:se(()=>[ge("span",{class:"red-ui-palette-icon",style:Ft({backgroundImage:`url(${v(n)+"/images/"+T+"-dark.svg"})`})},null,4)]),_:2},1024),ne(y,{span:18,offset:2},{default:se(()=>[ge("span",NFe,ct($.label),1)]),_:2},1024)]),_:2},1024)]),default:se(()=>[(U(!0),ce(Pt,null,_n($.components,(R,B)=>(U(),ce("div",{class:"red-ui-palette-node ui-draggable ui-draggable-handle",onMousedown:I=>i(R),key:B,style:Ft({backgroundColor:R.background||"#a6bbcf"})},[ne(b,{class:"box-item","popper-class":"help-box",effect:"light","show-after":1e3,content:R.desc,placement:"right-start","raw-content":""},{default:se(()=>[ge("div",DFe,ct(R.label||R.type),1)]),_:2},1032,["content"]),ge("div",jFe,[R.icon?(U(),ce("div",{key:0,class:"red-ui-palette-icon",style:Ft({backgroundImage:`url(${R.icon})`})},null,4)):(U(),ce("div",{key:1,class:"red-ui-palette-icon",style:Ft({backgroundImage:`url(${v(n)+"/images/"+T+".svg"})`})},null,4))]),R.notInput?Fe("",!0):(U(),ce("div",LFe)),R.notOutput?Fe("",!0):(U(),ce("div",BFe))],44,IFe))),128))]),_:2},1032,["name"])]),_:2},1032,["modelValue"]))),256))]),_:1})])}}});var FFe=R0(VFe,[["__scopeId","data-v-3f7105dc"]]);let kF=!1;class dq{constructor({lf:t}){t.register(PFe),t.register(_Fe),t.register(vFe),t.register(SFe),t.register(CFe),t.register(MFe),t.setDefaultEdgeType("flow-link")}render(t,n){if(kF){this.app=S2(FFe,{lf:t});const r=document.createElement("div");r.className="node-red-palette",document.body.appendChild(r),this.app.mount(r)}kF=!0}getNodeList(){let t={};for(let n in this.nodeGroups)this.nodeGroups[n].components.forEach(r=>{t[r.type]=r});return t}}F$(dq,"pluginName","NodeRedExtension");var zFe="/plugin/rule/assets/logo.91bc7193.png",G3={exports:{}};(function(e,t){(function(n,r){r()})(qs,function(){function n(u,f){return typeof f=="undefined"?f={autoBom:!1}:typeof f!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function r(u,f,h){var m=new XMLHttpRequest;m.open("GET",u),m.responseType="blob",m.onload=function(){l(m.response,f,h)},m.onerror=function(){console.error("could not download file")},m.send()}function o(u){var f=new XMLHttpRequest;f.open("HEAD",u,!1);try{f.send()}catch{}return 200<=f.status&&299>=f.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(f)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof qs=="object"&&qs.global===qs?qs:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(u,f,h){var m=a.URL||a.webkitURL,y=document.createElement("a");f=f||u.name||"download",y.download=f,y.rel="noopener",typeof u=="string"?(y.href=u,y.origin===location.origin?i(y):o(y.href)?r(u,f,h):i(y,y.target="_blank")):(y.href=m.createObjectURL(u),setTimeout(function(){m.revokeObjectURL(y.href)},4e4),setTimeout(function(){i(y)},0))}:"msSaveOrOpenBlob"in navigator?function(u,f,h){if(f=f||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,h),f);else if(o(u))r(u,f,h);else{var m=document.createElement("a");m.href=u,m.target="_blank",setTimeout(function(){i(m)})}}:function(u,f,h,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof u=="string")return r(u,f,h);var y=u.type==="application/octet-stream",O=/constructor/i.test(a.HTMLElement)||a.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||y&&O||s)&&typeof FileReader!="undefined"){var k=new FileReader;k.onloadend=function(){var $=k.result;$=b?$:$.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=$:location=$,m=null},k.readAsDataURL(u)}else{var C=a.URL||a.webkitURL,P=C.createObjectURL(u);m?m.location=P:location.href=P,m=null,setTimeout(function(){C.revokeObjectURL(P)},4e4)}});a.saveAs=l.saveAs=l,e.exports=l})})(G3);class lo{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){let o=[];return this.decompose(0,t,o,2),r.length&&r.decompose(0,r.length,o,3),this.decompose(n,this.length,o,1),uf.from(o,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){let r=[];return this.decompose(t,n,r,0),uf.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),o=new yO(this),i=new yO(t);for(let a=n,s=n;;){if(o.next(a),i.next(a),a=0,o.lineBreak!=i.lineBreak||o.done!=i.done||o.value!=i.value)return!1;if(s+=o.value.length,o.done||s>=r)return!0}}iter(t=1){return new yO(this,t)}iterRange(t,n=this.length){return new hq(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let o=this.line(t).from;r=this.iterRange(o,Math.max(o,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new pq(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?lo.empty:t.length<=32?new Ti(t):uf.from(Ti.split(t,[]))}}class Ti extends lo{constructor(t,n=QFe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,o){for(let i=0;;i++){let a=this.text[i],s=o+a.length;if((n?r:s)>=t)return new WFe(o,s,r,a);o=s+1,r++}}decompose(t,n,r,o){let i=t<=0&&n>=this.length?this:new Ti(CF(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(o&1){let a=r.pop(),s=Mk(i.text,a.text.slice(),0,i.length);if(s.length<=32)r.push(new Ti(s,a.length+i.length));else{let l=s.length>>1;r.push(new Ti(s.slice(0,l)),new Ti(s.slice(l)))}}else r.push(i)}replace(t,n,r){if(!(r instanceof Ti))return super.replace(t,n,r);let o=Mk(this.text,Mk(r.text,CF(this.text,0,t)),n),i=this.length+r.length-(n-t);return o.length<=32?new Ti(o,i):uf.from(Ti.split(o,[]),i)}sliceString(t,n=this.length,r=`
- `){let o="";for(let i=0,a=0;i<=n&&a<this.text.length;a++){let s=this.text[a],l=i+s.length;i>t&&a&&(o+=r),t<l&&n>i&&(o+=s.slice(Math.max(0,t-i),n-i)),i=l+1}return o}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],o=-1;for(let i of t)r.push(i),o+=i.length+1,r.length==32&&(n.push(new Ti(r,o)),r=[],o=-1);return o>-1&&n.push(new Ti(r,o)),n}}class uf extends lo{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,o){for(let i=0;;i++){let a=this.children[i],s=o+a.length,l=r+a.lines-1;if((n?l:s)>=t)return a.lineInner(t,n,r,o);o=s+1,r=l+1}}decompose(t,n,r,o){for(let i=0,a=0;a<=n&&i<this.children.length;i++){let s=this.children[i],l=a+s.length;if(t<=l&&n>=a){let u=o&((a<=t?1:0)|(l>=n?2:0));a>=t&&l<=n&&!u?r.push(s):s.decompose(t-a,n-a,r,u)}a=l+1}}replace(t,n,r){if(r.lines<this.lines)for(let o=0,i=0;o<this.children.length;o++){let a=this.children[o],s=i+a.length;if(t>=i&&n<=s){let l=a.replace(t-i,n-i,r),u=this.lines-a.lines+l.lines;if(l.lines<u>>5-1&&l.lines>u>>5+1){let f=this.children.slice();return f[o]=l,new uf(f,this.length-(n-t)+r.length)}return super.replace(i,s,l)}i=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=`
- `){let o="";for(let i=0,a=0;i<this.children.length&&a<=n;i++){let s=this.children[i],l=a+s.length;a>t&&i&&(o+=r),t<l&&n>a&&(o+=s.sliceString(t-a,n-a,r)),a=l+1}return o}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof uf))return 0;let r=0,[o,i,a,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;o+=n,i+=n){if(o==a||i==s)return r;let l=this.children[o],u=t.children[i];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,o)=>r+o.length+1,-1)){let r=0;for(let y of t)r+=y.lines;if(r<32){let y=[];for(let O of t)O.flatten(y);return new Ti(y,n)}let o=Math.max(32,r>>5),i=o<<1,a=o>>1,s=[],l=0,u=-1,f=[];function h(y){let O;if(y.lines>i&&y instanceof uf)for(let b of y.children)h(b);else y.lines>a&&(l>a||!l)?(m(),s.push(y)):y instanceof Ti&&l&&(O=f[f.length-1])instanceof Ti&&y.lines+O.lines<=32?(l+=y.lines,u+=y.length+1,f[f.length-1]=new Ti(O.text.concat(y.text),O.length+1+y.length)):(l+y.lines>o&&m(),l+=y.lines,u+=y.length+1,f.push(y))}function m(){l!=0&&(s.push(f.length==1?f[0]:uf.from(f,u)),u=-1,l=f.length=0)}for(let y of t)h(y);return m(),s.length==1?s[0]:new uf(s,n)}}lo.empty=new Ti([""],0);function QFe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function Mk(e,t,n=0,r=1e9){for(let o=0,i=0,a=!0;i<e.length&&o<=r;i++){let s=e[i],l=o+s.length;l>=n&&(l>r&&(s=s.slice(0,r-o)),o<n&&(s=s.slice(n-o)),a?(t[t.length-1]+=s,a=!1):t.push(s)),o=l+1}return t}function CF(e,t,n){return Mk(e,[""],t,n)}class yO{constructor(t,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof Ti?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,o=this.nodes[r],i=this.offsets[r],a=i>>1,s=o instanceof Ti?o.text.length:o.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
- `,this;t--}else if(o instanceof Ti){let l=o.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=o.children[a+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Ti?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class hq{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new yO(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:o}=this.cursor.next(t);return this.pos+=(o.length+t)*n,this.value=o.length<=r?o:n<0?o.slice(o.length-r):o.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class pq{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:o}=this.inner.next(t);return n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol!="undefined"&&(lo.prototype[Symbol.iterator]=function(){return this.iter()},yO.prototype[Symbol.iterator]=hq.prototype[Symbol.iterator]=pq.prototype[Symbol.iterator]=function(){return this});class WFe{constructor(t,n,r,o){this.from=t,this.to=n,this.number=r,this.text=o}get length(){return this.to-this.from}}let Ny="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e<Ny.length;e++)Ny[e]+=Ny[e-1];function YFe(e){for(let t=1;t<Ny.length;t+=2)if(Ny[t]>e)return Ny[t-1]<=e;return!1}function EF(e){return e>=127462&&e<=127487}const TF=8205;function as(e,t,n=!0,r=!0){return(n?gq:UFe)(e,t,r)}function gq(e,t,n){if(t==e.length)return t;t&&mq(e.charCodeAt(t))&&vq(e.charCodeAt(t-1))&&t--;let r=Na(e,t);for(t+=bu(r);t<e.length;){let o=Na(e,t);if(r==TF||o==TF||n&&YFe(o))t+=bu(o),r=o;else if(EF(o)){let i=0,a=t-2;for(;a>=0&&EF(Na(e,a));)i++,a-=2;if(i%2==0)break;t+=2}else break}return t}function UFe(e,t,n){for(;t>0;){let r=gq(e,t-2,n);if(r<t)return r;t--}return 0}function mq(e){return e>=56320&&e<57344}function vq(e){return e>=55296&&e<56320}function Na(e,t){let n=e.charCodeAt(t);if(!vq(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return mq(r)?(n-55296<<10)+(r-56320)+65536:n}function J3(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function bu(e){return e<65536?1:2}const WR=/\r\n?|\n/;var ja=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(ja||(ja={}));class mf{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}get newLength(){let t=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let n=0,r=0,o=0;n<this.sections.length;){let i=this.sections[n++],a=this.sections[n++];a<0?(t(r,o,i),o+=i):o+=a,r+=i}}iterChangedRanges(t,n=!1){YR(this,t,n)}get invertedDesc(){let t=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],o=this.sections[n++];o<0?t.push(r,o):t.push(o,r)}return new mf(t)}composeDesc(t){return this.empty?t:t.empty?this:yq(this,t)}mapDesc(t,n=!1){return t.empty?this:UR(this,t,n)}mapPos(t,n=-1,r=ja.Simple){let o=0,i=0;for(let a=0;a<this.sections.length;){let s=this.sections[a++],l=this.sections[a++],u=o+s;if(l<0){if(u>t)return i+(t-o);i+=s}else{if(r!=ja.Simple&&u>=t&&(r==ja.TrackDel&&o<t&&u>t||r==ja.TrackBefore&&o<t||r==ja.TrackAfter&&u>t))return null;if(u>t||u==t&&n<0&&!s)return t==o||n<0?i:i+l;i+=l}o=u}if(t>o)throw new RangeError(`Position ${t} is out of range for changeset of length ${o}`);return i}touchesRange(t,n=t){for(let r=0,o=0;r<this.sections.length&&o<=n;){let i=this.sections[r++],a=this.sections[r++],s=o+i;if(a>=0&&o<=n&&s>=t)return o<t&&s>n?"cover":!0;o=s}return!1}toString(){let t="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],o=this.sections[n++];t+=(t?" ":"")+r+(o>=0?":"+o:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new mf(t)}static create(t){return new mf(t)}}class ea extends mf{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return YR(this,(n,r,o,i,a)=>t=t.replace(o,o+(r-n),a),!1),t}mapDesc(t,n=!1){return UR(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let o=0,i=0;o<n.length;o+=2){let a=n[o],s=n[o+1];if(s>=0){n[o]=s,n[o+1]=a;let l=o>>1;for(;r.length<l;)r.push(lo.empty);r.push(a?t.slice(i,i+a):lo.empty)}i+=a}return new ea(n,r)}compose(t){return this.empty?t:t.empty?this:yq(this,t,!0)}map(t,n=!1){return t.empty?this:UR(this,t,n,!0)}iterChanges(t,n=!1){YR(this,t,n)}get desc(){return mf.create(this.sections)}filter(t){let n=[],r=[],o=[],i=new t1(this);e:for(let a=0,s=0;;){let l=a==t.length?1e9:t[a++];for(;s<l||s==l&&i.len==0;){if(i.done)break e;let f=Math.min(i.len,l-s);ts(o,f,-1);let h=i.ins==-1?-1:i.off==0?i.ins:0;ts(n,f,h),h>0&&Qh(r,n,i.text),i.forward(f),s+=f}let u=t[a++];for(;s<u;){if(i.done)break e;let f=Math.min(i.len,u-s);ts(n,f,-1),ts(o,f,i.ins==-1?-1:i.off==0?i.ins:0),i.forward(f),s+=f}}return{changes:new ea(n,r),filtered:mf.create(o)}}toJSON(){let t=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],o=this.sections[n+1];o<0?t.push(r):o==0?t.push([r]):t.push([r].concat(this.inserted[n>>1].toJSON()))}return t}static of(t,n,r){let o=[],i=[],a=0,s=null;function l(f=!1){if(!f&&!o.length)return;a<n&&ts(o,n-a,-1);let h=new ea(o,i);s=s?s.compose(h.map(s)):h,o=[],i=[],a=0}function u(f){if(Array.isArray(f))for(let h of f)u(h);else if(f instanceof ea){if(f.length!=n)throw new RangeError(`Mismatched change set length (got ${f.length}, expected ${n})`);l(),s=s?s.compose(f.map(s)):f}else{let{from:h,to:m=h,insert:y}=f;if(h>m||h<0||m>n)throw new RangeError(`Invalid change range ${h} to ${m} (in doc of length ${n})`);let O=y?typeof y=="string"?lo.of(y.split(r||WR)):y:lo.empty,b=O.length;if(h==m&&b==0)return;h<a&&l(),h>a&&ts(o,h-a,-1),ts(o,m-h,b),Qh(i,o,O),a=m}}return u(t),l(!s),s}static empty(t){return new ea(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let o=0;o<t.length;o++){let i=t[o];if(typeof i=="number")n.push(i,-1);else{if(!Array.isArray(i)||typeof i[0]!="number"||i.some((a,s)=>s&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)n.push(i[0],0);else{for(;r.length<o;)r.push(lo.empty);r[o]=lo.of(i.slice(1)),n.push(i[0],r[o].length)}}}return new ea(n,r)}static createSet(t,n){return new ea(t,n)}}function ts(e,t,n,r=!1){if(t==0&&n<=0)return;let o=e.length-2;o>=0&&n<=0&&n==e[o+1]?e[o]+=t:t==0&&e[o]==0?e[o+1]+=n:r?(e[o]+=t,e[o+1]+=n):e.push(t,n)}function Qh(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(lo.empty);e.push(n)}}function YR(e,t,n){let r=e.inserted;for(let o=0,i=0,a=0;a<e.sections.length;){let s=e.sections[a++],l=e.sections[a++];if(l<0)o+=s,i+=s;else{let u=o,f=i,h=lo.empty;for(;u+=s,f+=l,l&&r&&(h=h.append(r[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(o,u,i,f,h),o=u,i=f}}}function UR(e,t,n,r=!1){let o=[],i=r?[]:null,a=new t1(e),s=new t1(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);ts(o,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len<a.len||s.len==a.len&&!n))){let u=s.len;for(ts(o,s.ins,-1);u;){let f=Math.min(a.len,u);a.ins>=0&&l<a.i&&a.len<=f&&(ts(o,0,a.ins),i&&Qh(i,o,a.text),l=a.i),a.forward(f),u-=f}s.next()}else if(a.ins>=0){let u=0,f=a.len;for(;f;)if(s.ins==-1){let h=Math.min(f,s.len);u+=h,f-=h,s.forward(h)}else if(s.ins==0&&s.len<f)f-=s.len,s.next();else break;ts(o,u,l<a.i?a.ins:0),i&&l<a.i&&Qh(i,o,a.text),l=a.i,a.forward(a.len-f)}else{if(a.done&&s.done)return i?ea.createSet(o,i):mf.create(o);throw new Error("Mismatched change set lengths")}}function yq(e,t,n=!1){let r=[],o=n?[]:null,i=new t1(e),a=new t1(t);for(let s=!1;;){if(i.done&&a.done)return o?ea.createSet(r,o):mf.create(r);if(i.ins==0)ts(r,i.len,0,s),i.next();else if(a.len==0&&!a.done)ts(r,0,a.ins,s),o&&Qh(o,r,a.text),a.next();else{if(i.done||a.done)throw new Error("Mismatched change set lengths");{let l=Math.min(i.len2,a.len),u=r.length;if(i.ins==-1){let f=a.ins==-1?-1:a.off?0:a.ins;ts(r,l,f,s),o&&f&&Qh(o,r,a.text)}else a.ins==-1?(ts(r,i.off?0:i.len,l,s),o&&Qh(o,r,i.textBit(l))):(ts(r,i.off?0:i.len,a.off?0:a.ins,s),o&&!a.off&&Qh(o,r,a.text));s=(i.ins>l||a.ins>=0&&a.len>l)&&(s||r.length>u),i.forward2(l),a.forward(l)}}}}class t1{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length?lo.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?lo.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Jg{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,o;return this.empty?r=o=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),o=t.mapPos(this.to,-1)),r==this.from&&o==this.to?this:new Jg(r,o,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return jt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return jt.range(this.anchor,r)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return jt.range(t.anchor,t.head)}static create(t,n,r){return new Jg(t,n,r)}}class jt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:jt.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new jt([this.main],0)}addRange(t,n=!0){return jt.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,jt.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new jt(t.ranges.map(n=>Jg.fromJSON(n)),t.main)}static single(t,n=t){return new jt([jt.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,o=0;o<t.length;o++){let i=t[o];if(i.empty?i.from<=r:i.from<r)return jt.normalized(t.slice(),n);r=i.to}return new jt(t,n)}static cursor(t,n=0,r,o){return Jg.create(t,t,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(o!=null?o:16777215)<<6)}static range(t,n,r,o){let i=(r!=null?r:16777215)<<6|(o==null?7:Math.min(6,o));return n<t?Jg.create(n,t,48|i):Jg.create(t,n,(n>t?8:0)|i)}static normalized(t,n=0){let r=t[n];t.sort((o,i)=>o.from-i.from),n=t.indexOf(r);for(let o=1;o<t.length;o++){let i=t[o],a=t[o-1];if(i.empty?i.from<=a.to:i.from<a.to){let s=a.from,l=Math.max(i.to,a.to);o<=n&&n--,t.splice(--o,2,i.anchor>i.head?jt.range(l,s):jt.range(s,l))}}return new jt(t,n)}}function bq(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let ej=0;class Nn{constructor(t,n,r,o,i){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=o,this.id=ej++,this.default=t([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(t={}){return new Nn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:tj),!!t.static,t.enables)}of(t){return new Rk([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rk(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rk(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function tj(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class Rk{constructor(t,n,r,o){this.dependencies=t,this.facet=n,this.type=r,this.value=o,this.id=ej++}dynamicSlot(t){var n;let r=this.value,o=this.facet.compareInput,i=this.id,a=t[i]>>1,s=this.type==2,l=!1,u=!1,f=[];for(let h of this.dependencies)h=="doc"?l=!0:h=="selection"?u=!0:(((n=t[h.id])!==null&&n!==void 0?n:1)&1)==0&&f.push(t[h.id]);return{create(h){return h.values[a]=r(h),1},update(h,m){if(l&&m.docChanged||u&&(m.docChanged||m.selection)||HR(h,f)){let y=r(h);if(s?!PF(y,h.values[a],o):!o(y,h.values[a]))return h.values[a]=y,1}return 0},reconfigure:(h,m)=>{let y,O=m.config.address[i];if(O!=null){let b=IC(m,O);if(this.dependencies.every(k=>k instanceof Nn?m.facet(k)===h.facet(k):k instanceof ya?m.field(k,!1)==h.field(k,!1):!0)||(s?PF(y=r(h),b,o):o(y=r(h),b)))return h.values[a]=b,0}else y=r(h);return h.values[a]=y,1}}}}function PF(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function HR(e,t){let n=!1;for(let r of t)bO(e,r)&1&&(n=!0);return n}function HFe(e,t,n){let r=n.map(l=>e[l.id]),o=n.map(l=>l.type),i=r.filter(l=>!(l&1)),a=e[t.id]>>1;function s(l){let u=[];for(let f=0;f<r.length;f++){let h=IC(l,r[f]);if(o[f]==2)for(let m of h)u.push(m);else u.push(h)}return t.combine(u)}return{create(l){for(let u of r)bO(l,u);return l.values[a]=s(l),1},update(l,u){if(!HR(l,i))return 0;let f=s(l);return t.compare(f,l.values[a])?0:(l.values[a]=f,1)},reconfigure(l,u){let f=HR(l,r),h=u.config.facets[t.id],m=u.facet(t);if(h&&!f&&tj(n,h))return l.values[a]=m,0;let y=s(l);return t.compare(y,m)?(l.values[a]=m,0):(l.values[a]=y,1)}}}const $F=Nn.define({static:!0});class ya{constructor(t,n,r,o,i){this.id=t,this.createF=n,this.updateF=r,this.compareF=o,this.spec=i,this.provides=void 0}static define(t){let n=new ya(ej++,t.create,t.update,t.compare||((r,o)=>r===o),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet($F).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,o)=>{let i=r.values[n],a=this.updateF(i,o);return this.compareF(i,a)?0:(r.values[n]=a,1)},reconfigure:(r,o)=>o.config.address[this.id]!=null?(r.values[n]=o.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,$F.of({field:this,create:t})]}get extension(){return this}}const Qg={lowest:4,low:3,default:2,high:1,highest:0};function N_(e){return t=>new _q(t,e)}const Nm={highest:N_(Qg.highest),high:N_(Qg.high),default:N_(Qg.default),low:N_(Qg.low),lowest:N_(Qg.lowest)};class _q{constructor(t,n){this.inner=t,this.prec=n}}class X1{of(t){return new ZR(this,t)}reconfigure(t){return X1.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class ZR{constructor(t,n){this.compartment=t,this.inner=n}}class NC{constructor(t,n,r,o,i,a){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=o,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(t){let n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}static resolve(t,n,r){let o=[],i=Object.create(null),a=new Map;for(let m of ZFe(t,n,a))m instanceof ya?o.push(m):(i[m.facet.id]||(i[m.facet.id]=[])).push(m);let s=Object.create(null),l=[],u=[];for(let m of o)s[m.id]=u.length<<1,u.push(y=>m.slot(y));let f=r==null?void 0:r.config.facets;for(let m in i){let y=i[m],O=y[0].facet,b=f&&f[m]||[];if(y.every(k=>k.type==0))if(s[O.id]=l.length<<1|1,tj(b,y))l.push(r.facet(O));else{let k=O.combine(y.map(C=>C.value));l.push(r&&O.compare(k,r.facet(O))?r.facet(O):k)}else{for(let k of y)k.type==0?(s[k.id]=l.length<<1|1,l.push(k.value)):(s[k.id]=u.length<<1,u.push(C=>k.dynamicSlot(C)));s[O.id]=u.length<<1,u.push(k=>HFe(k,O,y))}}let h=u.map(m=>m(s));return new NC(t,a,h,s,l,i)}}function ZFe(e,t,n){let r=[[],[],[],[],[]],o=new Map;function i(a,s){let l=o.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof ZR&&n.delete(a.compartment)}if(o.set(a,s),Array.isArray(a))for(let u of a)i(u,s);else if(a instanceof ZR){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(a.compartment)||a.inner;n.set(a.compartment,u),i(u,s)}else if(a instanceof _q)i(a.inner,a.prec);else if(a instanceof ya)r[s].push(a),a.provides&&i(a.provides,s);else if(a instanceof Rk)r[s].push(a),a.facet.extensions&&i(a.facet.extensions,Qg.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(u,s)}}return i(e,Qg.default),r.reduce((a,s)=>a.concat(s))}function bO(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let o=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|o}function IC(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Oq=Nn.define(),wq=Nn.define({combine:e=>e.some(t=>t),static:!0}),Sq=Nn.define({combine:e=>e.length?e[0]:void 0,static:!0}),xq=Nn.define(),kq=Nn.define(),Cq=Nn.define(),Eq=Nn.define({combine:e=>e.length?e[0]:!1});class Bd{constructor(t,n){this.type=t,this.value=n}static define(){return new XFe}}class XFe{of(t){return new Bd(this,t)}}class qFe{constructor(t){this.map=t}of(t){return new xr(this,t)}}class xr{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new xr(this.type,n)}is(t){return this.type==t}static define(t={}){return new qFe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let o of t){let i=o.map(n);i&&r.push(i)}return r}}xr.reconfigure=xr.define();xr.appendConfig=xr.define();class na{constructor(t,n,r,o,i,a){this.startState=t,this.changes=n,this.selection=r,this.effects=o,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,r&&bq(r,n.newLength),i.some(s=>s.type==na.time)||(this.annotations=i.concat(na.time.of(Date.now())))}static create(t,n,r,o,i,a){return new na(t,n,r,o,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(na.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}na.time=Bd.define();na.userEvent=Bd.define();na.addToHistory=Bd.define();na.remote=Bd.define();function KFe(e,t){let n=[];for(let r=0,o=0;;){let i,a;if(r<e.length&&(o==t.length||t[o]>=e[r]))i=e[r++],a=e[r++];else if(o<t.length)i=t[o++],a=t[o++];else return n;!n.length||n[n.length-1]<i?n.push(i,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function Tq(e,t,n){var r;let o,i,a;return n?(o=t.changes,i=ea.empty(t.changes.length),a=e.changes.compose(t.changes)):(o=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(o)),{changes:a,selection:t.selection?t.selection.map(i):(r=e.selection)===null||r===void 0?void 0:r.map(o),effects:xr.mapEffects(e.effects,o).concat(xr.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function XR(e,t,n){let r=t.selection,o=Iy(t.annotations);return t.userEvent&&(o=o.concat(na.userEvent.of(t.userEvent))),{changes:t.changes instanceof ea?t.changes:ea.of(t.changes||[],n,e.facet(Sq)),selection:r&&(r instanceof jt?r:jt.single(r.anchor,r.head)),effects:Iy(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}function Pq(e,t,n){let r=XR(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let i=1;i<t.length;i++){t[i].filter===!1&&(n=!1);let a=!!t[i].sequential;r=Tq(r,XR(e,t[i],a?r.changes.newLength:e.doc.length),a)}let o=na.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return JFe(n?GFe(o):o)}function GFe(e){let t=e.startState,n=!0;for(let o of t.facet(xq)){let i=o(e);if(i===!1){n=!1;break}Array.isArray(i)&&(n=n===!0?i:KFe(n,i))}if(n!==!0){let o,i;if(n===!1)i=e.changes.invertedDesc,o=ea.empty(t.doc.length);else{let a=e.changes.filter(n);o=a.changes,i=a.filtered.mapDesc(a.changes).invertedDesc}e=na.create(t,o,e.selection&&e.selection.map(i),xr.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(kq);for(let o=r.length-1;o>=0;o--){let i=r[o](e);i instanceof na?e=i:Array.isArray(i)&&i.length==1&&i[0]instanceof na?e=i[0]:e=Pq(t,Iy(i),!1)}return e}function JFe(e){let t=e.startState,n=t.facet(Cq),r=e;for(let o=n.length-1;o>=0;o--){let i=n[o](e);i&&Object.keys(i).length&&(r=Tq(r,XR(t,i,e.changes.newLength),!0))}return r==e?e:na.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const e9e=[];function Iy(e){return e==null?e9e:Array.isArray(e)?e:[e]}var oi=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(oi||(oi={}));const t9e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let qR;try{qR=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function n9e(e){if(qR)return qR.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||t9e.test(n)))return!0}return!1}function r9e(e){return t=>{if(!/\S/.test(t))return oi.Space;if(n9e(t))return oi.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return oi.Word;return oi.Other}}class Fr{constructor(t,n,r,o,i,a){this.config=t,this.doc=n,this.selection=r,this.values=o,this.status=t.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)bO(this,s<<1);this.computeSlot=null}field(t,n=!0){let r=this.config.address[t.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return bO(this,r),IC(this,r)}update(...t){return Pq(this,t,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:o}=n;for(let a of t.effects)a.is(X1.reconfigure)?(n&&(o=new Map,n.compartments.forEach((s,l)=>o.set(l,s)),n=null),o.set(a.value.compartment,a.value.extension)):a.is(xr.reconfigure)?(n=null,r=a.value):a.is(xr.appendConfig)&&(n=null,r=Iy(r).concat(a.value));let i;n?i=t.startState.values.slice():(n=NC.resolve(r,o,this),i=new Fr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(s,l)=>l.reconfigure(s,this),null).values),new Fr(n,t.newDoc,t.newSelection,i,(a,s)=>s.update(a,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:jt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),o=this.changes(r.changes),i=[r.range],a=Iy(r.effects);for(let s=1;s<n.ranges.length;s++){let l=t(n.ranges[s]),u=this.changes(l.changes),f=u.map(o);for(let m=0;m<s;m++)i[m]=i[m].map(f);let h=o.mapDesc(u,!0);i.push(l.range.map(h)),o=o.compose(f),a=xr.mapEffects(a,f).concat(xr.mapEffects(Iy(l.effects),h))}return{changes:o,selection:jt.create(i,n.mainIndex),effects:a}}changes(t=[]){return t instanceof ea?t:ea.of(t,this.doc.length,this.facet(Fr.lineSeparator))}toText(t){return lo.of(t.split(this.facet(Fr.lineSeparator)||WR))}sliceDoc(t=0,n=this.doc.length){return this.doc.sliceString(t,n,this.lineBreak)}facet(t){let n=this.config.address[t.id];return n==null?t.default:(bO(this,n),IC(this,n))}toJSON(t){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let r in t){let o=t[r];o instanceof ya&&this.config.address[o.id]!=null&&(n[r]=o.spec.toJSON(this.field(t[r]),this))}return n}static fromJSON(t,n={},r){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let o=[];if(r){for(let i in r)if(Object.prototype.hasOwnProperty.call(t,i)){let a=r[i],s=t[i];o.push(a.init(l=>a.spec.fromJSON(s,l)))}}return Fr.create({doc:t.doc,selection:jt.fromJSON(t.selection),extensions:n.extensions?o.concat([n.extensions]):o})}static create(t={}){let n=NC.resolve(t.extensions||[],new Map),r=t.doc instanceof lo?t.doc:lo.of((t.doc||"").split(n.staticFacet(Fr.lineSeparator)||WR)),o=t.selection?t.selection instanceof jt?t.selection:jt.single(t.selection.anchor,t.selection.head):jt.single(0);return bq(o,r.length),n.staticFacet(wq)||(o=o.asSingle()),new Fr(n,r,o,n.dynamicSlots.map(()=>null),(i,a)=>a.create(i),null)}get tabSize(){return this.facet(Fr.tabSize)}get lineBreak(){return this.facet(Fr.lineSeparator)||`
- `}get readOnly(){return this.facet(Eq)}phrase(t,...n){for(let r of this.facet(Fr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,o)=>{if(o=="$")return"$";let i=+(o||1);return!i||i>n.length?r:n[i-1]})),t}languageDataAt(t,n,r=-1){let o=[];for(let i of this.facet(Oq))for(let a of i(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&o.push(a[t]);return o}charCategorizer(t){return r9e(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:o}=this.doc.lineAt(t),i=this.charCategorizer(t),a=t-r,s=t-r;for(;a>0;){let l=as(n,a,!1);if(i(n.slice(l,a))!=oi.Word)break;a=l}for(;s<o;){let l=as(n,s);if(i(n.slice(s,l))!=oi.Word)break;s=l}return a==s?null:jt.range(a+r,s+r)}}Fr.allowMultipleSelections=wq;Fr.tabSize=Nn.define({combine:e=>e.length?e[0]:4});Fr.lineSeparator=Sq;Fr.readOnly=Eq;Fr.phrases=Nn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(o=>e[o]==t[o])}});Fr.languageData=Oq;Fr.changeFilter=xq;Fr.transactionFilter=kq;Fr.transactionExtender=Cq;X1.reconfigure=xr.define();function If(e,t,n={}){let r={};for(let o of e)for(let i of Object.keys(o)){let a=o[i],s=r[i];if(s===void 0)r[i]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,i))r[i]=n[i](s,a);else throw new Error("Config merge conflict for field "+i)}for(let o in t)r[o]===void 0&&(r[o]=t[o]);return r}class wm{eq(t){return this==t}range(t,n=t){return n1.create(t,n,this)}}wm.prototype.startSide=wm.prototype.endSide=0;wm.prototype.point=!1;wm.prototype.mapMode=ja.TrackDel;class n1{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new n1(t,n,r)}}function KR(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class nj{constructor(t,n,r,o){this.from=t,this.to=n,this.value=r,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,o=0){let i=r?this.to:this.from;for(let a=o,s=i.length;;){if(a==s)return a;let l=a+s>>1,u=i[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(t,n,r,o){for(let i=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,i);i<a;i++)if(o(this.from[i]+t,this.to[i]+t,this.value[i])===!1)return!1}map(t,n){let r=[],o=[],i=[],a=-1,s=-1;for(let l=0;l<this.value.length;l++){let u=this.value[l],f=this.from[l]+t,h=this.to[l]+t,m,y;if(f==h){let O=n.mapPos(f,u.startSide,u.mapMode);if(O==null||(m=y=O,u.startSide!=u.endSide&&(y=n.mapPos(f,u.endSide),y<m)))continue}else if(m=n.mapPos(f,u.startSide),y=n.mapPos(h,u.endSide),m>y||m==y&&u.startSide>0&&u.endSide<=0)continue;(y-m||u.endSide-u.startSide)<0||(a<0&&(a=m),u.point&&(s=Math.max(s,y-m)),r.push(u),o.push(m-a),i.push(y-a))}return{mapped:r.length?new nj(o,i,r,s):null,pos:a}}}class po{constructor(t,n,r,o){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=o}static create(t,n,r,o){return new po(t,n,r,o)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:o=0,filterTo:i=this.length}=t,a=t.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(KR)),this.isEmpty)return n.length?po.of(n):this;let s=new $q(this,null,-1).goto(0),l=0,u=[],f=new gp;for(;s.value||l<n.length;)if(l<n.length&&(s.from-n[l].from||s.startSide-n[l].value.startSide)>=0){let h=n[l++];f.addInner(h.from,h.to,h.value)||u.push(h)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(s.chunkIndex)<n[l].from)&&(!a||o>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&f.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!a||o>s.to||i<s.from||a(s.from,s.to,s.value))&&(f.addInner(s.from,s.to,s.value)||u.push(n1.create(s.from,s.to,s.value))),s.next());return f.finishInner(this.nextLayer.isEmpty&&!u.length?po.empty:this.nextLayer.update({add:u,filter:a,filterFrom:o,filterTo:i}))}map(t){if(t.empty||this.isEmpty)return this;let n=[],r=[],o=-1;for(let a=0;a<this.chunk.length;a++){let s=this.chunkPos[a],l=this.chunk[a],u=t.touchesRange(s,s+l.length);if(u===!1)o=Math.max(o,l.maxPoint),n.push(l),r.push(t.mapPos(s));else if(u===!0){let{mapped:f,pos:h}=l.map(s,t);f&&(o=Math.max(o,f.maxPoint),n.push(f),r.push(h))}}let i=this.nextLayer.map(t);return n.length==0?i:new po(r,n,i||po.empty,o)}between(t,n,r){if(!this.isEmpty){for(let o=0;o<this.chunk.length;o++){let i=this.chunkPos[o],a=this.chunk[o];if(n>=i&&t<=i+a.length&&a.between(i,t-i,n-i,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return r1.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return r1.from(t).goto(n)}static compare(t,n,r,o,i=-1){let a=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=i),s=n.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=i),l=AF(a,s,r),u=new I_(a,l,i),f=new I_(s,l,i);r.iterGaps((h,m,y)=>MF(u,h,f,m,y,o)),r.empty&&r.length==0&&MF(u,0,f,0,0,o)}static eq(t,n,r=0,o){o==null&&(o=1e9-1);let i=t.filter(f=>!f.isEmpty&&n.indexOf(f)<0),a=n.filter(f=>!f.isEmpty&&t.indexOf(f)<0);if(i.length!=a.length)return!1;if(!i.length)return!0;let s=AF(i,a),l=new I_(i,s,0).goto(r),u=new I_(a,s,0).goto(r);for(;;){if(l.to!=u.to||!GR(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>o)return!0;l.next(),u.next()}}static spans(t,n,r,o,i=-1){let a=new I_(t,null,i).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let f=a.activeForPoint(a.to),h=a.pointFrom<n?f.length+1:Math.min(f.length,l);o.point(s,u,a.point,f,h,a.pointRank),l=Math.min(a.openEnd(u),f.length)}else u>s&&(o.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(t,n=!1){let r=new gp;for(let o of t instanceof n1?[t]:n?o9e(t):t)r.add(o.from,o.to,o.value);return r.finish()}}po.empty=new po([],[],null,-1);function o9e(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(KR(t,r)>0)return e.slice().sort(KR);t=r}return e}po.empty.nextLayer=po.empty;class gp{finishChunk(t){this.chunks.push(new nj(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new gp)).add(t,n,r)}addInner(t,n,r){let o=t-this.lastTo||r.startSide-this.last.endSide;if(o<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return o<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(po.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=po.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function AF(e,t,n){let r=new Map;for(let i of e)for(let a=0;a<i.chunk.length;a++)i.chunk[a].maxPoint<=0&&r.set(i.chunk[a],i.chunkPos[a]);let o=new Set;for(let i of t)for(let a=0;a<i.chunk.length;a++){let s=r.get(i.chunk[a]);s!=null&&(n?n.mapPos(s):s)==i.chunkPos[a]&&!(n!=null&&n.touchesRange(s,s+i.chunk[a].length))&&o.add(i.chunk[a])}return o}class $q{constructor(t,n,r,o=0){this.layer=t,this.skip=n,this.minPoint=r,this.rank=o}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,n,!1),this}gotoInner(t,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let o=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(o)||this.layer.chunkEnd(this.chunkIndex)<t||o.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let o=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<o)&&this.setRangeIndex(o)}this.next()}forward(t,n){(this.to-t||this.endSide-n)<0&&this.gotoInner(t,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let t=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=t+n.from[this.rangeIndex];if(this.from=r,this.to=t+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class r1{constructor(t){this.heap=t}static from(t,n=null,r=-1){let o=[];for(let i=0;i<t.length;i++)for(let a=t[i];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&o.push(new $q(a,n,r,i));return o.length==1?o[0]:new r1(o)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)PA(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)PA(this.heap,r);(this.to-t||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),PA(this.heap,0)}}}function PA(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let o=e[r];if(r+1<e.length&&o.compare(e[r+1])>=0&&(o=e[r+1],r++),n.compare(o)<0)break;e[r]=n,e[t]=o,t=r}}class I_{constructor(t,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=r1.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){Lx(this.active,t),Lx(this.activeTo,t),Lx(this.activeRank,t),this.minActive=RF(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:o,rank:i}=this.cursor;for(;n<this.activeRank.length&&this.activeRank[n]<=i;)n++;Bx(this.active,n,r),Bx(this.activeTo,n,o),Bx(this.activeRank,n,i),t&&Bx(t,n,this.cursor.from),this.minActive=RF(this.active,this.activeTo)}next(){let t=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let o=this.minActive;if(o>-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>t){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),r&&Lx(r,o)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let o=r.length-1;o>=0&&r[o]<t;o--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function MF(e,t,n,r,o,i){e.goto(t),n.goto(r);let a=r+o,s=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,f=u<0?e.to+l:n.to,h=Math.min(f,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&GR(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,h,e.point,n.point):h>s&&!GR(e.active,n.active)&&i.compareRange(s,h,e.active,n.active),f>a)break;s=f,u<=0&&e.next(),u>=0&&n.next()}}function GR(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function Lx(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function Bx(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function RF(e,t){let n=-1,r=1e9;for(let o=0;o<t.length;o++)(t[o]-r||e[o].endSide-e[n].endSide)<0&&(n=o,r=t[o]);return n}function N0(e,t,n=e.length){let r=0;for(let o=0;o<n;)e.charCodeAt(o)==9?(r+=t-r%t,o++):(r++,o=as(e,o));return r}function JR(e,t,n,r){for(let o=0,i=0;;){if(i>=t)return o;if(o==e.length)break;i+=e.charCodeAt(o)==9?n-i%n:1,o=as(e,o)}return r===!0?-1:e.length}const eN="\u037C",NF=typeof Symbol=="undefined"?"__"+eN:Symbol.for(eN),tN=typeof Symbol=="undefined"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),IF=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:{};class mp{constructor(t,n){this.rules=[];let{finish:r}=n||{};function o(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function i(a,s,l,u){let f=[],h=/^@(\w+)\b/.exec(a[0]),m=h&&h[1]=="keyframes";if(h&&s==null)return l.push(a[0]+";");for(let y in s){let O=s[y];if(/&/.test(y))i(y.split(/,\s*/).map(b=>a.map(k=>b.replace(/&/,k))).reduce((b,k)=>b.concat(k)),O,l);else if(O&&typeof O=="object"){if(!h)throw new RangeError("The value of a property ("+y+") should be a primitive value.");i(o(y),O,f,m)}else O!=null&&f.push(y.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+O+";")}(f.length||m)&&l.push((r&&!h&&!u?a.map(r):a).join(", ")+" {"+f.join(" ")+"}")}for(let a in t)i(o(a),t[a],this.rules)}getRules(){return this.rules.join(`
- `)}static newName(){let t=IF[NF]||1;return IF[NF]=t+1,eN+t.toString(36)}static mount(t,n,r){let o=t[tN],i=r&&r.nonce;o?i&&o.setNonce(i):o=new i9e(t,i),o.mount(Array.isArray(n)?n:[n])}}let DF=new Map;class i9e{constructor(t,n){let r=t.ownerDocument||t,o=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){let i=DF.get(r);if(i)return t.adoptedStyleSheets=[i.sheet,...t.adoptedStyleSheets],t[tN]=i;this.sheet=new o.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],DF.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let i=t.head||t;i.insertBefore(this.styleTag,i.firstChild)}this.modules=[],t[tN]=this}mount(t){let n=this.sheet,r=0,o=0;for(let i=0;i<t.length;i++){let a=t[i],s=this.modules.indexOf(a);if(s<o&&s>-1&&(this.modules.splice(s,1),o--,s=-1),s==-1){if(this.modules.splice(o++,0,a),n)for(let l=0;l<a.rules.length;l++)n.insertRule(a.rules[l],r++)}else{for(;o<s;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(!n){let i="";for(let a=0;a<this.modules.length;a++)i+=this.modules[a].getRules()+`
- `;this.styleTag.textContent=i}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}var vp={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o1={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a9e=typeof navigator!="undefined"&&/Mac/.test(navigator.platform),s9e=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ia=0;Ia<10;Ia++)vp[48+Ia]=vp[96+Ia]=String(Ia);for(var Ia=1;Ia<=24;Ia++)vp[Ia+111]="F"+Ia;for(var Ia=65;Ia<=90;Ia++)vp[Ia]=String.fromCharCode(Ia+32),o1[Ia]=String.fromCharCode(Ia);for(var $A in vp)o1.hasOwnProperty($A)||(o1[$A]=vp[$A]);function l9e(e){var t=a9e&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s9e&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?o1:vp)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function DC(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function nN(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function u9e(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Nk(e,t){if(!t.anchorNode)return!1;try{return nN(e,t.anchorNode)}catch{return!1}}function a0(e){return e.nodeType==3?Sm(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function jC(e,t,n,r){return n?jF(e,t,n,r,-1)||jF(e,t,n,r,1):!1}function i1(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function jF(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:xd(e))){if(e.nodeName=="DIV")return!1;let i=e.parentNode;if(!i||i.nodeType!=1)return!1;t=i1(e)+(o<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(o<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=o<0?xd(e):0}else return!1}}function xd(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function mE(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function c9e(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function f9e(e,t,n,r,o,i,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let f=e,h=!1;f&&!h;)if(f.nodeType==1){let m,y=f==l.body,O=1,b=1;if(y)m=c9e(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(h=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let P=f.getBoundingClientRect();O=P.width/f.offsetWidth,b=P.height/f.offsetHeight,m={left:P.left,right:P.left+f.clientWidth*O,top:P.top,bottom:P.top+f.clientHeight*b}}let k=0,C=0;if(o=="nearest")t.top<m.top?(C=-(m.top-t.top+a),n>0&&t.bottom>m.bottom+C&&(C=t.bottom-m.bottom+C+a)):t.bottom>m.bottom&&(C=t.bottom-m.bottom+a,n<0&&t.top-C<m.top&&(C=-(m.top+C-t.top+a)));else{let P=t.bottom-t.top,$=m.bottom-m.top;C=(o=="center"&&P<=$?t.top+P/2-$/2:o=="start"||o=="center"&&n<0?t.top-a:t.bottom-$+a)-m.top}if(r=="nearest"?t.left<m.left?(k=-(m.left-t.left+i),n>0&&t.right>m.right+k&&(k=t.right-m.right+k+i)):t.right>m.right&&(k=t.right-m.right+i,n<0&&t.left<m.left+k&&(k=-(m.left+k-t.left+i))):k=(r=="center"?t.left+(t.right-t.left)/2-(m.right-m.left)/2:r=="start"==s?t.left-i:t.right-(m.right-m.left)+i)-m.left,k||C)if(y)u.scrollBy(k,C);else{let P=0,$=0;if(C){let T=f.scrollTop;f.scrollTop+=C/b,$=(f.scrollTop-T)*b}if(k){let T=f.scrollLeft;f.scrollLeft+=k/O,P=(f.scrollLeft-T)*O}t={left:t.left-P,top:t.top-$,right:t.right-P,bottom:t.bottom-$},P&&Math.abs(P-k)<1&&(r="nearest"),$&&Math.abs($-C)<1&&(o="nearest")}if(y)break;f=f.assignedSlot||f.parentNode}else if(f.nodeType==11)f=f.host;else break}function d9e(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class h9e{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?xd(n):0),r,Math.min(t.focusOffset,r?xd(r):0))}set(t,n,r,o){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=o}}let oy=null;function Aq(e){if(e.setActive)return e.setActive();if(oy)return e.focus(oy);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(oy==null?{get preventScroll(){return oy={preventScroll:!0},!0}}:void 0),!oy){oy=!1;for(let n=0;n<t.length;){let r=t[n++],o=t[n++],i=t[n++];r.scrollTop!=o&&(r.scrollTop=o),r.scrollLeft!=i&&(r.scrollLeft=i)}}}let LF;function Sm(e,t,n=t){let r=LF||(LF=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function Dy(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},o=new KeyboardEvent("keydown",r);o.synthetic=!0,e.dispatchEvent(o);let i=new KeyboardEvent("keyup",r);return i.synthetic=!0,e.dispatchEvent(i),o.defaultPrevented||i.defaultPrevented}function p9e(e){for(;e;){if(e&&(e.nodeType==9||e.nodeType==11&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function Mq(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function g9e(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,xd(n));;)if(r){if(n.nodeType!=1)return!1;let o=n.childNodes[r-1];o.contentEditable=="false"?r--:(n=o,r=xd(n))}else{if(n==e)return!0;r=i1(n),n=n.parentNode}}function Rq(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class os{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new os(t.parentNode,i1(t),n)}static after(t,n){return new os(t.parentNode,i1(t)+1,n)}}const rj=[];class Xo{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,o=null,i;for(let a of this.children){if(a.flags&7){if(!a.dom&&(i=o?o.nextSibling:r.firstChild)){let s=Xo.get(i);(!s||!s.parent&&s.canReuseDOM(a))&&a.reuseDOM(i)}a.sync(t,n),a.flags&=-8}if(i=o?o.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&i!=a.dom&&(n.written=!0),a.dom.parentNode==r)for(;i&&i!=a.dom;)i=BF(i);else r.insertBefore(a.dom,i);o=a.dom}for(i=o?o.nextSibling:r.firstChild,i&&n&&n.node==r&&(n.written=!0);i;)i=BF(i)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let o=xd(t)==0?0:n==0?-1:1;for(;;){let i=t.parentNode;if(i==this.dom)break;o==0&&i.firstChild!=i.lastChild&&(t==i.firstChild?o=-1:o=1),t=i}o<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Xo.get(r);)r=r.nextSibling;if(!r)return this.length;for(let o=0,i=0;;o++){let a=this.children[o];if(a.dom==r)return i;i+=a.length+a.breakAfter}}domBoundsAround(t,n,r=0){let o=-1,i=-1,a=-1,s=-1;for(let l=0,u=r,f=r;l<this.children.length;l++){let h=this.children[l],m=u+h.length;if(u<t&&m>n)return h.domBoundsAround(t,n,u);if(m>=t&&o==-1&&(o=l,i=u),u>n&&h.dom.parentNode==this.dom){a=l,s=f;break}f=m,u=m+h.breakAfter}return{from:i,to:s<0?r+this.length:s,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=rj){this.markDirty();for(let o=t;o<n;o++){let i=this.children[o];i.parent==this&&i.destroy()}this.children.splice(t,n-t,...r);for(let o=0;o<r.length;o++)r[o].setParent(this)}ignoreMutation(t){return!1}ignoreEvent(t){return!1}childCursor(t=this.length){return new Nq(this.children,t,this.children.length)}childPos(t,n=1){return this.childCursor().findPos(t,n)}toString(){let t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+(t=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(t){return t.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(t,n,r,o,i,a){return!1}become(t){return!1}canReuseDOM(t){return t.constructor==this.constructor&&!((this.flags|t.flags)&8)}getSide(){return 0}destroy(){this.parent=null}}Xo.prototype.breakAfter=0;function BF(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class Nq{constructor(t,n,r){this.children=t,this.pos=n,this.i=r,this.off=0}findPos(t,n=1){for(;;){if(t>this.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function Iq(e,t,n,r,o,i,a,s,l){let{children:u}=e,f=u.length?u[t]:null,h=i.length?i[i.length-1]:null,m=h?h.breakAfter:a;if(!(t==r&&f&&!a&&!m&&i.length<2&&f.merge(n,o,i.length?h:null,n==0,s,l))){if(r<u.length){let y=u[r];y&&(o<y.length||y.breakAfter&&(h==null?void 0:h.breakAfter))?(t==r&&(y=y.split(o),o=0),!m&&h&&y.merge(0,o,h,!0,0,l)?i[i.length-1]=y:((o||y.children.length&&!y.children[0].length)&&y.merge(0,o,null,!1,0,l),i.push(y))):y!=null&&y.breakAfter&&(h?h.breakAfter=1:a=1),r++}for(f&&(f.breakAfter=a,n>0&&(!a&&i.length&&f.merge(n,f.length,i[0],!1,s,0)?f.breakAfter=i.shift().breakAfter:(n<f.length||f.children.length&&f.children[f.children.length-1].length==0)&&f.merge(n,f.length,null,!1,s,0),t++));t<r&&i.length;)if(u[r-1].become(i[i.length-1]))r--,i.pop(),l=i.length?0:s;else if(u[t].become(i[0]))t++,i.shift(),s=i.length?0:l;else break;!i.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,s,l)&&t--,(t<r||i.length)&&e.replaceChildren(t,r,i)}}function Dq(e,t,n,r,o,i){let a=e.childCursor(),{i:s,off:l}=a.findPos(n,1),{i:u,off:f}=a.findPos(t,-1),h=t-n;for(let m of r)h+=m.length;e.length+=h,Iq(e,u,f,s,l,r,0,o,i)}let Rl=typeof navigator!="undefined"?navigator:{userAgent:"",vendor:"",platform:""},rN=typeof document!="undefined"?document:{documentElement:{style:{}}};const oN=/Edge\/(\d+)/.exec(Rl.userAgent),jq=/MSIE \d/.test(Rl.userAgent),iN=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rl.userAgent),vE=!!(jq||iN||oN),VF=!vE&&/gecko\/(\d+)/i.test(Rl.userAgent),AA=!vE&&/Chrome\/(\d+)/.exec(Rl.userAgent),FF="webkitFontSmoothing"in rN.documentElement.style,Lq=!vE&&/Apple Computer/.test(Rl.vendor),zF=Lq&&(/Mobile\/\w+/.test(Rl.userAgent)||Rl.maxTouchPoints>2);var zn={mac:zF||/Mac/.test(Rl.platform),windows:/Win/.test(Rl.platform),linux:/Linux|X11/.test(Rl.platform),ie:vE,ie_version:jq?rN.documentMode||6:iN?+iN[1]:oN?+oN[1]:0,gecko:VF,gecko_version:VF?+(/Firefox\/(\d+)/.exec(Rl.userAgent)||[0,0])[1]:0,chrome:!!AA,chrome_version:AA?+AA[1]:0,ios:zF,android:/Android\b/.test(Rl.userAgent),webkit:FF,safari:Lq,webkit_version:FF?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:rN.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const m9e=256;class kd extends Xo{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof kd)||this.length-(n-t)+r.length>m9e||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new kd(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new os(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return v9e(this.dom,t,n)}}class Cd extends Xo{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let o of n)o.setParent(this)}setAttrs(t){if(Mq(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,o,i,a){return r&&(!(r instanceof Cd&&r.mark.eq(this.mark))||t&&i<=0||n<this.length&&a<=0)?!1:(Dq(this,t,n,r?r.children:[],i-1,a-1),this.markDirty(),!0)}split(t){let n=[],r=0,o=-1,i=0;for(let s of this.children){let l=r+s.length;l>t&&n.push(r<t?s.split(t-r):s),o<0&&r>=t&&(o=i),r=l,i++}let a=this.length-t;return this.length=t,o>-1&&(this.children.length=o,this.markDirty()),new Cd(this.mark,n,a)}domAtPos(t){return Bq(this,t)}coordsAt(t,n){return Fq(this,t,n)}}function v9e(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let o=t,i=t,a=0;t==0&&n<0||t==r&&n>=0?zn.chrome||zn.gecko||(t?(o--,a=1):i<r&&(i++,a=-1)):n<0?o--:i<r&&i++;let s=Sm(e,o,i).getClientRects();if(!s.length)return null;let l=s[(a?a<0:n>=0)?0:s.length-1];return zn.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?mE(l,a<0):l||null}class Wh extends Xo{static create(t,n,r){return new Wh(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=Wh.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,n,r,o,i,a){return r&&(!(r instanceof Wh)||!this.widget.compare(r.widget)||t>0&&i<=0||n<this.length&&a<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}become(t){return t instanceof Wh&&t.side==this.side&&this.widget.constructor==t.widget.constructor?(this.widget.compare(t.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get overrideDOMText(){if(this.length==0)return lo.empty;let t=this;for(;t.parent;)t=t.parent;let{view:n}=t,r=n&&n.state.doc,o=this.posAtStart;return r?r.slice(o,o+this.length):lo.empty}domAtPos(t){return(this.length?t==0:this.side>0)?os.before(this.dom):os.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let o=this.dom.getClientRects(),i=null;if(!o.length)return null;let a=this.side?this.side<0:t>0;for(let s=a?o.length-1:0;i=o[s],!(t>0?s==0:s==o.length-1||i.top<i.bottom);s+=a?-1:1);return mE(i,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class s0 extends Xo{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof s0&&t.side==this.side}split(){return new s0(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return this.side>0?os.before(this.dom):os.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return lo.empty}get isHidden(){return!0}}kd.prototype.children=Wh.prototype.children=s0.prototype.children=rj;function Bq(e,t){let n=e.dom,{children:r}=e,o=0;for(let i=0;o<r.length;o++){let a=r[o],s=i+a.length;if(!(s==i&&a.getSide()<=0)){if(t>i&&t<s&&a.dom.parentNode==n)return a.domAtPos(t-i);if(t<=i)break;i=s}}for(let i=o;i>0;i--){let a=r[i-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let i=o;i<r.length;i++){let a=r[i];if(a.dom.parentNode==n)return a.domAtPos(0)}return new os(n,0)}function Vq(e,t,n){let r,{children:o}=e;n>0&&t instanceof Cd&&o.length&&(r=o[o.length-1])instanceof Cd&&r.mark.eq(t.mark)?Vq(r,t.children[0],n-1):(o.push(t),t.setParent(e)),e.length+=t.length}function Fq(e,t,n){let r=null,o=-1,i=null,a=-1;function s(u,f){for(let h=0,m=0;h<u.children.length&&m<=f;h++){let y=u.children[h],O=m+y.length;O>=f&&(y.children.length?s(y,f-m):(!i||i.isHidden&&n>0)&&(O>f||m==O&&y.getSide()>0)?(i=y,a=f-m):(m<f||m==O&&y.getSide()<0&&!y.isHidden)&&(r=y,o=f-m)),m=O}}s(e,t);let l=(n<0?r:i)||r||i;return l?l.coordsAt(Math.max(0,l==r?o:a),n):y9e(e)}function y9e(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=a0(t);return n[n.length-1]||null}function aN(e,t){for(let n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const QF=Object.create(null);function oj(e,t,n){if(e==t)return!0;e||(e=QF),t||(t=QF);let r=Object.keys(e),o=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=o.length-(n&&o.indexOf(n)>-1?1:0))return!1;for(let i of r)if(i!=n&&(o.indexOf(i)==-1||e[i]!==t[i]))return!1;return!0}function sN(e,t,n){let r=!1;if(t)for(let o in t)n&&o in n||(r=!0,o=="style"?e.style.cssText="":e.removeAttribute(o));if(n)for(let o in n)t&&t[o]==n[o]||(r=!0,o=="style"?e.style.cssText=n[o]:e.setAttribute(o,n[o]));return r}function b9e(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class Gi extends Xo{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,n,r,o,i,a){if(r){if(!(r instanceof Gi))return!1;this.dom||r.transferDOM(this)}return o&&this.setDeco(r?r.attrs:null),Dq(this,t,n,r?r.children:[],i,a),!0}split(t){let n=new Gi;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:o}=this.childPos(t);o&&(n.append(this.children[r].split(o),0),this.children[r].merge(o,this.children[r].length,null,!1,0,0),r++);for(let i=r;i<this.children.length;i++)n.append(this.children[i],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){!this.dom||(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){oj(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){Vq(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=aN(n,this.attrs||{})),r&&(this.attrs=aN({class:r},this.attrs||{}))}domAtPos(t){return Bq(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(Mq(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(sN(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let o=this.dom.lastChild;for(;o&&Xo.get(o)instanceof Cd;)o=o.lastChild;if(!o||!this.length||o.nodeName!="BR"&&((r=Xo.get(o))===null||r===void 0?void 0:r.isEditable)==!1&&(!zn.ios||!this.children.some(i=>i instanceof kd))){let i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof kd)||/[^ -~]/.test(r.text))return null;let o=a0(r.dom);if(o.length!=1)return null;t+=o[0].width,n=o[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=Fq(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:o}=this.parent.view.viewState,i=r.bottom-r.top;if(Math.abs(i-o.lineHeight)<2&&o.textHeight<i){let a=(i-o.textHeight)/2;return{top:r.top+a,bottom:r.bottom-a,left:r.left,right:r.left}}}return r}become(t){return!1}covers(){return!0}static find(t,n){for(let r=0,o=0;r<t.children.length;r++){let i=t.children[r],a=o+i.length;if(a>=n){if(i instanceof Gi)return i;if(a>n)break}o=a+i.breakAfter}return null}}class Kh extends Xo{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,o,i,a){return r&&(!(r instanceof Kh)||!this.widget.compare(r.widget)||t>0&&i<=0||n<this.length&&a<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}domAtPos(t){return t==0?os.before(this.dom):os.after(this.dom,t==this.length)}split(t){let n=this.length-t;this.length=t;let r=new Kh(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return rj}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):lo.empty}domBoundsAround(){return null}become(t){return t instanceof Kh&&t.widget.constructor==this.widget.constructor?(t.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,this.deco=t.deco,this.breakAfter=t.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(t,n){return this.widget.coordsAt(this.dom,t,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(t){let{startSide:n,endSide:r}=this.deco;return n==r?!1:t<0?n<0:r>0}}class Df{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}destroy(t){}}var $s=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}($s||($s={}));class Kn extends wm{constructor(t,n,r,o){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=o}get heightRelevant(){return!1}static mark(t){return new q1(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new yp(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,o;if(t.isBlockGap)r=-5e8,o=4e8;else{let{start:i,end:a}=zq(t,n);r=(i?n?-3e8:-1:5e8)-1,o=(a?n?2e8:1:-6e8)+1}return new yp(t,r,o,n,t.widget||null,!0)}static line(t){return new K1(t)}static set(t,n=!1){return po.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Kn.none=po.empty;class q1 extends Kn{constructor(t){let{start:n,end:r}=zq(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof q1&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&oj(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}q1.prototype.point=!1;class K1 extends Kn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof K1&&this.spec.class==t.spec.class&&oj(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}K1.prototype.mapMode=ja.TrackBefore;K1.prototype.point=!0;class yp extends Kn{constructor(t,n,r,o,i,a){super(n,r,i,t),this.block=o,this.isReplace=a,this.mapMode=o?n<=0?ja.TrackBefore:ja.TrackAfter:ja.TrackDel}get type(){return this.startSide!=this.endSide?$s.WidgetRange:this.startSide<=0?$s.WidgetBefore:$s.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof yp&&_9e(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}yp.prototype.point=!0;function zq(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n!=null?n:t,end:r!=null?r:t}}function _9e(e,t){return e==t||!!(e&&t&&e.compare(t))}function lN(e,t,n,r=0){let o=n.length-1;o>=0&&n[o]+r>=e?n[o]=Math.max(n[o],t):n.push(e,t)}class _O{constructor(t,n,r,o){this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Kh&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Gi),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Vx(new s0(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Kh)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:i,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=i,this.textOff=0}let o=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(Vx(new kd(this.text.slice(this.textOff,this.textOff+o)),n),r),this.atCursorPos=!0,this.textOff+=o,t-=o,r=0}}span(t,n,r,o){this.buildText(n-t,r,o),this.pos=n,this.openStart<0&&(this.openStart=o)}point(t,n,r,o,i,a){if(this.disallowBlockEffectsFor[a]&&r instanceof yp){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-t;if(r instanceof yp)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Kh(r.widget||new WF("div"),s,r));else{let l=Wh.create(r.widget||new WF("span"),s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&i<=o.length&&(t<n||r.startSide>0),f=!l.isEditable&&(t<n||i>o.length||r.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(o),u&&(h.append(Vx(new s0(1),o),i),i=o.length+Math.max(0,i-o.length)),h.append(Vx(l,o),i),this.atCursorPos=f,this.pendingBuffer=f?t<n||i>o.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=i)}static build(t,n,r,o,i){let a=new _O(t,n,r,i);return a.openEnd=po.spans(o,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function Vx(e,t){for(let n of t)e=new Cd(n,[e],e.length);return e}class WF extends Df{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Qq=Nn.define(),Wq=Nn.define(),Yq=Nn.define(),Uq=Nn.define(),uN=Nn.define(),Hq=Nn.define(),Zq=Nn.define(),Xq=Nn.define({combine:e=>e.some(t=>t)}),qq=Nn.define({combine:e=>e.some(t=>t)});class LC{constructor(t,n="nearest",r="nearest",o=5,i=5){this.range=t,this.y=n,this.x=r,this.yMargin=o,this.xMargin=i}map(t){return t.empty?this:new LC(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}const YF=xr.define({map:(e,t)=>e.map(t)});function mc(e,t,n){let r=e.facet(Uq);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const yE=Nn.define({combine:e=>e.length?e[0]:!0});let O9e=0;const Y_=Nn.define();class Ii{constructor(t,n,r,o,i){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=o,this.extension=i(this)}static define(t,n){const{eventHandlers:r,eventObservers:o,provide:i,decorations:a}=n||{};return new Ii(O9e++,t,r,o,s=>{let l=[Y_.of(s)];return a&&l.push(a1.of(u=>{let f=u.plugin(s);return f?a(f):Kn.none})),i&&l.push(i(s)),l})}static fromClass(t,n){return Ii.define(r=>new t(r),n)}}class MA{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(mc(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(n){mc(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){mc(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Kq=Nn.define(),ij=Nn.define(),a1=Nn.define(),aj=Nn.define(),Gq=Nn.define();function UF(e,t,n){let r=e.state.facet(Gq);if(!r.length)return r;let o=r.map(a=>a instanceof Function?a(e):a),i=[];return po.spans(o,t,n,{point(){},span(a,s,l,u){let f=i;for(let h=l.length-1;h>=0;h--,u--){let m=l[h].spec.bidiIsolate,y;if(m!=null)if(u>0&&f.length&&(y=f[f.length-1]).to==a&&y.direction==m)y.to=s,f=y.inner;else{let O={from:a,to:s,direction:m,inner:[]};f.push(O),f=O.inner}}}}),i}const Jq=Nn.define();function eK(e){let t=0,n=0,r=0,o=0;for(let i of e.state.facet(Jq)){let a=i(e);a&&(a.left!=null&&(t=Math.max(t,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(o=Math.max(o,a.bottom)))}return{left:t,right:n,top:r,bottom:o}}const U_=Nn.define();class Pu{constructor(t,n,r,o){this.fromA=t,this.toA=n,this.fromB=r,this.toB=o}join(t){return new Pu(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let o=t[n-1];if(!(o.fromA>r.toA)){if(o.toA<r.fromA)break;r=r.join(o),t.splice(n-1,1)}}return t.splice(n,0,r),t}static extendWithRanges(t,n){if(n.length==0)return t;let r=[];for(let o=0,i=0,a=0,s=0;;o++){let l=o==t.length?null:t[o],u=a-s,f=l?l.fromB:1e9;for(;i<n.length&&n[i]<f;){let h=n[i],m=n[i+1],y=Math.max(s,h),O=Math.min(f,m);if(y<=O&&new Pu(y+u,O+u,y,O).addToSet(r),m>f)break;i+=2}if(!l)return r;new Pu(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class BC{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=ea.empty(this.startState.doc.length);for(let i of r)this.changes=this.changes.compose(i.changes);let o=[];this.changes.iterChangedRanges((i,a,s,l)=>o.push(new Pu(i,a,s,l))),this.changedRanges=o}static create(t,n,r){return new BC(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var di=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(di||(di={}));const s1=di.LTR,tK=di.RTL;function nK(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const w9e=nK("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),S9e=nK("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),cN=Object.create(null),ef=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);cN[t]=n,cN[n]=-t}function x9e(e){return e<=247?w9e[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?S9e[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8203?256:64336<=e&&e<=65023?4:e==8204?256:1}const k9e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Yh{get dir(){return this.level%2?tK:s1}constructor(t,n,r){this.from=t,this.to=n,this.level=r}side(t,n){return this.dir==n==t?this.to:this.from}static find(t,n,r,o){let i=-1;for(let a=0;a<t.length;a++){let s=t[a];if(s.from<=n&&s.to>=n){if(s.level==r)return a;(i<0||(o!=0?o<0?s.from<n:s.to>n:t[i].level>s.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}}function rK(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],o=t[n];if(r.from!=o.from||r.to!=o.to||r.direction!=o.direction||!rK(r.inner,o.inner))return!1}return!0}const Ro=[];function C9e(e,t,n,r,o){for(let i=0;i<=r.length;i++){let a=i?r[i-1].to:t,s=i<r.length?r[i].from:n,l=i?256:o;for(let u=a,f=l,h=l;u<s;u++){let m=x9e(e.charCodeAt(u));m==512?m=f:m==8&&h==4&&(m=16),Ro[u]=m==4?2:m,m&7&&(h=m),f=m}for(let u=a,f=l,h=l;u<s;u++){let m=Ro[u];if(m==128)u<s-1&&f==Ro[u+1]&&f&24?m=Ro[u]=f:Ro[u]=256;else if(m==64){let y=u+1;for(;y<s&&Ro[y]==64;)y++;let O=u&&f==8||y<n&&Ro[y]==8?h==1?1:8:256;for(let b=u;b<y;b++)Ro[b]=O;u=y-1}else m==8&&h==1&&(Ro[u]=1);f=m,m&7&&(h=m)}}}function E9e(e,t,n,r,o){let i=o==1?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let u=a?r[a-1].to:t,f=a<r.length?r[a].from:n;for(let h=u,m,y,O;h<f;h++)if(y=cN[m=e.charCodeAt(h)])if(y<0){for(let b=s-3;b>=0;b-=3)if(ef[b+1]==-y){let k=ef[b+2],C=k&2?o:k&4?k&1?i:o:0;C&&(Ro[h]=Ro[ef[b]]=C),s=b;break}}else{if(ef.length==189)break;ef[s++]=h,ef[s++]=m,ef[s++]=l}else if((O=Ro[h])==2||O==1){let b=O==o;l=b?0:1;for(let k=s-3;k>=0;k-=3){let C=ef[k+2];if(C&2)break;if(b)ef[k+2]|=2;else{if(C&4)break;ef[k+2]|=4}}}}}function T9e(e,t,n,r){for(let o=0,i=r;o<=n.length;o++){let a=o?n[o-1].to:e,s=o<n.length?n[o].from:t;for(let l=a;l<s;){let u=Ro[l];if(u==256){let f=l+1;for(;;)if(f==s){if(o==n.length)break;f=n[o++].to,s=o<n.length?n[o].from:t}else if(Ro[f]==256)f++;else break;let h=i==1,m=(f<t?Ro[f]:r)==1,y=h==m?h?1:2:r;for(let O=f,b=o,k=b?n[b-1].to:e;O>l;)O==k&&(O=n[--b].from,k=b?n[b-1].to:e),Ro[--O]=y;l=f}else i=u,l++}}}function fN(e,t,n,r,o,i,a){let s=r%2?2:1;if(r%2==o%2)for(let l=t,u=0;l<n;){let f=!0,h=!1;if(u==i.length||l<i[u].from){let b=Ro[l];b!=s&&(f=!1,h=b==16)}let m=!f&&s==1?[]:null,y=f?r:r+1,O=l;e:for(;;)if(u<i.length&&O==i[u].from){if(h)break e;let b=i[u];if(!f)for(let k=b.to,C=u+1;;){if(k==n)break e;if(C<i.length&&i[C].from==k)k=i[C++].to;else{if(Ro[k]==s)break e;break}}if(u++,m)m.push(b);else{b.from>l&&a.push(new Yh(l,b.from,y));let k=b.direction==s1!=!(y%2);dN(e,k?r+1:r,o,b.inner,b.from,b.to,a),l=b.to}O=b.to}else{if(O==n||(f?Ro[O]!=s:Ro[O]==s))break;O++}m?fN(e,l,O,r+1,o,m,a):l<O&&a.push(new Yh(l,O,y)),l=O}else for(let l=n,u=i.length;l>t;){let f=!0,h=!1;if(!u||l>i[u-1].to){let b=Ro[l-1];b!=s&&(f=!1,h=b==16)}let m=!f&&s==1?[]:null,y=f?r:r+1,O=l;e:for(;;)if(u&&O==i[u-1].to){if(h)break e;let b=i[--u];if(!f)for(let k=b.from,C=u;;){if(k==t)break e;if(C&&i[C-1].to==k)k=i[--C].from;else{if(Ro[k-1]==s)break e;break}}if(m)m.push(b);else{b.to<l&&a.push(new Yh(b.to,l,y));let k=b.direction==s1!=!(y%2);dN(e,k?r+1:r,o,b.inner,b.from,b.to,a),l=b.from}O=b.from}else{if(O==t||(f?Ro[O-1]!=s:Ro[O-1]==s))break;O--}m?fN(e,O,l,r+1,o,m,a):O<l&&a.push(new Yh(O,l,y)),l=O}}function dN(e,t,n,r,o,i,a){let s=t%2?2:1;C9e(e,o,i,r,s),E9e(e,o,i,r,s),T9e(o,i,r,s),fN(e,o,i,t,n,r,a)}function P9e(e,t,n){if(!e)return[new Yh(0,0,t==tK?1:0)];if(t==s1&&!n.length&&!k9e.test(e))return oK(e.length);if(n.length)for(;e.length>Ro.length;)Ro[Ro.length]=256;let r=[],o=t==s1?0:1;return dN(e,o,o,n,0,e.length,r),r}function oK(e){return[new Yh(0,e,0)]}let iK="";function $9e(e,t,n,r,o){var i;let a=r.head-e.from,s=-1;if(a==0){if(!o||!e.length)return null;t[0].level!=n&&(a=t[0].side(!1,n),s=0)}else if(a==e.length){if(o)return null;let m=t[t.length-1];m.level!=n&&(a=m.side(!0,n),s=t.length-1)}s<0&&(s=Yh.find(t,a,(i=r.bidiLevel)!==null&&i!==void 0?i:-1,r.assoc));let l=t[s];a==l.side(o,n)&&(l=t[s+=o?1:-1],a=l.side(!o,n));let u=o==(l.dir==n),f=as(e.text,a,u);if(iK=e.text.slice(Math.min(a,f),Math.max(a,f)),f!=l.side(o,n))return jt.cursor(f+e.from,u?-1:1,l.level);let h=s==(o?t.length-1:0)?null:t[s+(o?1:-1)];return!h&&l.level!=n?jt.cursor(o?e.to:e.from,o?-1:1,n):h&&h.level<l.level?jt.cursor(h.side(!o,n)+e.from,o?1:-1,h.level):jt.cursor(f+e.from,o?-1:1,l.level)}class HF extends Xo{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new Gi],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Pu(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:f})=>f<this.minWidthFrom||u>this.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?o=this.domChanged.newSel.head:!j9e(t.changes,this.hasComposition)&&!t.selectionSet&&(o=t.state.selection.main.head));let i=o>-1?M9e(this.view,t.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:f}=this.hasComposition;r=new Pu(u,f,t.changes.mapPos(u,-1),t.changes.mapPos(f,1)).addToSet(r.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(zn.ie||zn.chrome)&&!i&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=I9e(a,s,t.changes);return r=Pu.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,i),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:o}=this.view;o.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=zn.chrome||zn.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||o.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof Kh&&a.widget instanceof ZF&&i.push(a.dom);o.updateGaps(i)}updateChildren(t,n,r){let o=r?r.range.addToSet(t.slice()):t,i=this.childCursor(n);for(let a=o.length-1;;a--){let s=a>=0?o[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:f,toB:h}=s,m,y,O,b;if(r&&r.range.fromB<h&&r.range.toB>f){let T=_O.build(this.view.state.doc,f,r.range.fromB,this.decorations,this.dynamicDecorationMap),A=_O.build(this.view.state.doc,r.range.toB,h,this.decorations,this.dynamicDecorationMap);y=T.breakAtStart,O=T.openStart,b=A.openEnd;let R=this.compositionView(r);A.breakAtStart?R.breakAfter=1:A.content.length&&R.merge(R.length,R.length,A.content[0],!1,A.openStart,0)&&(R.breakAfter=A.content[0].breakAfter,A.content.shift()),T.content.length&&R.merge(0,0,T.content[T.content.length-1],!0,0,T.openEnd)&&T.content.pop(),m=T.content.concat(R).concat(A.content)}else({content:m,breakAtStart:y,openStart:O,openEnd:b}=_O.build(this.view.state.doc,f,h,this.decorations,this.dynamicDecorationMap));let{i:k,off:C}=i.findPos(u,1),{i:P,off:$}=i.findPos(l,-1);Iq(this,P,$,k,C,m,y,O,b)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new kd(t.text.nodeValue);n.flags|=8;for(let{deco:o}of t.marks)n=new Cd(o,[n],n.length);let r=new Gi;return r.append(n,0),r}fixCompositionDOM(t){let n=(i,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=Xo.get(i);s&&s!=a&&(s.dom=null),a.setDOM(i)},r=this.childPos(t.range.fromB,1),o=this.children[r.i];n(t.line,o);for(let i=t.marks.length-1;i>=-1;i--)r=o.childPos(r.off,1),o=o.children[r.i],n(i>=0?t.marks[i].node:t.text,o)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,o=r==this.dom,i=!o&&Nk(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(o||n||i))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(zn.gecko&&s.empty&&!this.hasComposition&&A9e(l)){let h=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(h,l.node.childNodes[l.offset]||null)),l=u=new os(h,0),a=!0}let f=this.view.observer.selectionRange;(a||!f.focusNode||!jC(l.node,l.offset,f.anchorNode,f.anchorOffset)||!jC(u.node,u.offset,f.focusNode,f.focusOffset))&&(this.view.observer.ignore(()=>{zn.android&&zn.chrome&&this.dom.contains(f.focusNode)&&D9e(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=DC(this.view.root);if(h)if(s.empty){if(zn.gecko){let m=R9e(l.node,l.offset);if(m&&m!=3){let y=sK(l.node,l.offset,m==1?1:-1);y&&(l=new os(y.node,y.offset))}}h.collapse(l.node,l.offset),s.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=s.bidiLevel)}else if(h.extend){h.collapse(l.node,l.offset);try{h.extend(u.node,u.offset)}catch{}}else{let m=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),m.setEnd(u.node,u.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new os(f.anchorNode,f.anchorOffset),this.impreciseHead=u.precise?null:new os(f.focusNode,f.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=DC(t.root),{anchorNode:o,anchorOffset:i}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=Gi.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let f=this.domAtPos(n.head+n.assoc);r.collapse(f.node,f.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let h=t.observer.selectionRange;t.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=n.from&&r.collapse(o,i)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let o=t.offset;!r&&o<n.childNodes.length;o++){let i=Xo.get(n.childNodes[o]);i instanceof Gi&&(r=i.domAtPos(0))}for(let o=t.offset-1;!r&&o>=0;o--){let i=Xo.get(n.childNodes[o]);i instanceof Gi&&(r=i.domAtPos(i.length))}return r?new os(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Xo.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n<this.children.length-1;){let o=this.children[n];if(r<o.length||o instanceof Gi)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(t,n){let r=null,o=0;for(let i=this.length,a=this.children.length-1;a>=0;a--){let s=this.children[a],l=i-s.breakAfter,u=l-s.length;if(l<t)break;u<=t&&(u<t||s.covers(-1))&&(l>t||s.covers(1))&&(!r||s instanceof Gi&&!(r instanceof Gi&&n>=0))&&(r=s,o=u),i=u}return r?r.coordsAt(t-o,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),o=this.children[n];if(!(o instanceof Gi))return null;for(;o.children.length;){let{i:s,off:l}=o.childPos(r,1);for(;;s++){if(s==o.children.length)return null;if((o=o.children[s]).length)break}r=l}if(!(o instanceof kd))return null;let i=as(o.text,r);if(i==r)return null;let a=Sm(o.dom,r,i).getClientRects();for(let s=0;s<a.length;s++){let l=a[s];if(s==a.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(t){let n=[],{from:r,to:o}=t,i=this.view.contentDOM.clientWidth,a=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==di.LTR;for(let u=0,f=0;f<this.children.length;f++){let h=this.children[f],m=u+h.length;if(m>o)break;if(u>=r){let y=h.dom.getBoundingClientRect();if(n.push(y.height),a){let O=h.dom.lastChild,b=O?a0(O):[];if(b.length){let k=b[b.length-1],C=l?k.right-y.left:y.right-k.left;C>s&&(s=C,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=m)}}}u=m+h.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?di.RTL:di.LTR}measureTextSize(){for(let i of this.children)if(i instanceof Gi){let a=i.measureTextSize();if(a)return a}let t=document.createElement("div"),n,r,o;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let i=a0(t.firstChild)[0];n=t.getBoundingClientRect().height,r=i?i.width/27:7,o=i?i.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:o}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new Nq(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,o=0;;o++){let i=o==n.viewports.length?null:n.viewports[o],a=i?i.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(Kn.replace({widget:new ZF(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!i)break;r=i.to+1}return Kn.set(t)}updateDeco(){let t=this.view.state.facet(a1).map((n,r)=>(this.dynamicDecorationMap[r]=typeof n=="function")?n(this.view):n);for(let n=t.length;n<t.length+3;n++)this.dynamicDecorationMap[n]=!1;return this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(t){let{range:n}=t,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),o;if(!r)return;!n.empty&&(o=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,o.left),top:Math.min(r.top,o.top),right:Math.max(r.right,o.right),bottom:Math.max(r.bottom,o.bottom)});let i=eK(this.view),a={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom};f9e(this.view.scrollDOM,a,n.head<n.anchor?-1:1,t.x,t.y,t.xMargin,t.yMargin,this.view.textDirection==di.LTR)}}function A9e(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable=="false")&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable=="false")}class ZF extends Df{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function aK(e,t){let n=e.observer.selectionRange,r=n.focusNode&&sK(n.focusNode,n.focusOffset,0);if(!r)return null;let o=t-r.offset;return{from:o,to:o+r.node.nodeValue.length,node:r.node}}function M9e(e,t,n){let r=aK(e,n);if(!r)return null;let{node:o,from:i,to:a}=r,s=o.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc,u=new Pu(l.mapPos(i),l.mapPos(a),i,a),f=[];for(let h=o.parentNode;;h=h.parentNode){let m=Xo.get(h);if(m instanceof Cd)f.push({node:h,deco:m.mark});else{if(m instanceof Gi||h.nodeName=="DIV"&&h.parentNode==e.contentDOM)return{range:u,text:o,marks:f,line:h};if(h!=e.contentDOM)f.push({node:h,deco:new q1({inclusive:!0,attributes:b9e(h),tagName:h.tagName.toLowerCase()})});else return null}}}function sK(e,t,n){if(n<=0)for(let r=e,o=t;;){if(r.nodeType==3)return{node:r,offset:o};if(r.nodeType==1&&o>0)r=r.childNodes[o-1],o=xd(r);else break}if(n>=0)for(let r=e,o=t;;){if(r.nodeType==3)return{node:r,offset:o};if(r.nodeType==1&&o<r.childNodes.length&&n>=0)r=r.childNodes[o],o=0;else break}return null}function R9e(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t<e.childNodes.length&&e.childNodes[t].contentEditable=="false"?2:0)}let N9e=class{constructor(){this.changes=[]}compareRange(t,n){lN(t,n,this.changes)}comparePoint(t,n){lN(t,n,this.changes)}};function I9e(e,t,n){let r=new N9e;return po.compare(e,t,n,r),r.changes}function D9e(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function j9e(e,t){let n=!1;return t&&e.iterChangedRanges((r,o)=>{r<t.to&&o>t.from&&(n=!0)}),n}function L9e(e,t,n=1){let r=e.charCategorizer(t),o=e.doc.lineAt(t),i=t-o.from;if(o.length==0)return jt.cursor(t);i==0?n=1:i==o.length&&(n=-1);let a=i,s=i;n<0?a=as(o.text,i,!1):s=as(o.text,i);let l=r(o.text.slice(a,s));for(;a>0;){let u=as(o.text,a,!1);if(r(o.text.slice(u,a))!=l)break;a=u}for(;s<o.length;){let u=as(o.text,s);if(r(o.text.slice(s,u))!=l)break;s=u}return jt.range(a+o.from,s+o.from)}function B9e(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function V9e(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function RA(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function XF(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function qF(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function hN(e,t,n){let r,o,i,a,s=!1,l,u,f,h;for(let O=e.firstChild;O;O=O.nextSibling){let b=a0(O);for(let k=0;k<b.length;k++){let C=b[k];o&&RA(o,C)&&(C=XF(qF(C,o.bottom),o.top));let P=B9e(t,C),$=V9e(n,C);if(P==0&&$==0)return O.nodeType==3?KF(O,t,n):hN(O,t,n);if(!r||a>$||a==$&&i>P){r=O,o=C,i=P,a=$;let T=$?n<C.top?-1:1:P?t<C.left?-1:1:0;s=!T||(T>0?k<b.length-1:k>0)}P==0?n>C.bottom&&(!f||f.bottom<C.bottom)?(l=O,f=C):n<C.top&&(!h||h.top>C.top)&&(u=O,h=C):f&&RA(f,C)?f=qF(f,C.bottom):h&&RA(h,C)&&(h=XF(h,C.top))}}if(f&&f.bottom>=n?(r=l,o=f):h&&h.top<=n&&(r=u,o=h),!r)return{node:e,offset:0};let m=Math.max(o.left,Math.min(o.right,t));if(r.nodeType==3)return KF(r,m,n);if(s&&r.contentEditable!="false")return hN(r,m,n);let y=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(o.left+o.right)/2?1:0);return{node:e,offset:y}}function KF(e,t,n){let r=e.nodeValue.length,o=-1,i=1e9,a=0;for(let s=0;s<r;s++){let l=Sm(e,s,s+1).getClientRects();for(let u=0;u<l.length;u++){let f=l[u];if(f.top==f.bottom)continue;a||(a=t-f.left);let h=(f.top>n?f.top-n:n-f.bottom)-1;if(f.left-1<=t&&f.right+1>=t&&h<i){let m=t>=(f.left+f.right)/2,y=m;if((zn.chrome||zn.gecko)&&Sm(e,s).getBoundingClientRect().left==f.right&&(y=!m),h<=0)return{node:e,offset:s+(y?1:0)};o=s+(y?1:0),i=h}}}return{node:e,offset:o>-1?o:a>0?e.nodeValue.length:0}}function lK(e,t,n,r=-1){var o,i;let a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:f,y:h}=t,m=h-s;if(m<0)return 0;if(m>u)return e.state.doc.length;for(let T=e.viewState.heightOracle.textHeight/2,A=!1;l=e.elementAtHeight(m),l.type!=$s.Text;)for(;m=r>0?l.bottom+T:l.top-T,!(m>=0&&m<=u);){if(A)return n?null:0;A=!0,r=-r}h=s+m;let y=l.from;if(y<e.viewport.from)return e.viewport.from==0?0:n?null:GF(e,a,l,f,h);if(y>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:GF(e,a,l,f,h);let O=e.dom.ownerDocument,b=e.root.elementFromPoint?e.root:O,k=b.elementFromPoint(f,h);k&&!e.contentDOM.contains(k)&&(k=null),k||(f=Math.max(a.left+1,Math.min(a.right-1,f)),k=b.elementFromPoint(f,h),k&&!e.contentDOM.contains(k)&&(k=null));let C,P=-1;if(k&&((o=e.docView.nearest(k))===null||o===void 0?void 0:o.isEditable)!=!1){if(O.caretPositionFromPoint){let T=O.caretPositionFromPoint(f,h);T&&({offsetNode:C,offset:P}=T)}else if(O.caretRangeFromPoint){let T=O.caretRangeFromPoint(f,h);T&&({startContainer:C,startOffset:P}=T,(!e.contentDOM.contains(C)||zn.safari&&F9e(C,P,f)||zn.chrome&&z9e(C,P,f))&&(C=void 0))}}if(!C||!e.docView.dom.contains(C)){let T=Gi.find(e.docView,y);if(!T)return m>l.top+l.height/2?l.to:l.from;({node:C,offset:P}=hN(T.dom,f,h))}let $=e.docView.nearest(C);if(!$)return null;if($.isWidget&&((i=$.dom)===null||i===void 0?void 0:i.nodeType)==1){let T=$.dom.getBoundingClientRect();return t.y<T.top||t.y<=T.bottom&&t.x<=(T.left+T.right)/2?$.posAtStart:$.posAtEnd}else return $.localPosFromDOM(C,P)+$.posAtStart}function GF(e,t,n,r,o){let i=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let s=e.viewState.heightOracle.textHeight;i+=Math.floor((o-n.top-(e.defaultLineHeight-s)*.5)/s)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+JR(a,i,e.state.tabSize)}function F9e(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let o=e.nextSibling;o;o=o.nextSibling)if(o.nodeType!=1||o.nodeName!="BR")return!1;return Sm(e,r-1,r).getBoundingClientRect().left>n}function z9e(e,t,n){if(t!=0)return!1;for(let o=e;;){let i=o.parentNode;if(!i||i.nodeType!=1||i.firstChild!=o)return!1;if(i.classList.contains("cm-line"))break;o=i}let r=e.nodeType==1?e.getBoundingClientRect():Sm(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function pN(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==$s.Text))return r}return n}function Q9e(e,t,n,r){let o=pN(e,t.head),i=!r||o.type!=$s.Text||!(e.lineWrapping||o.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head);if(i){let a=e.dom.getBoundingClientRect(),s=e.textDirectionAt(o.from),l=e.posAtCoords({x:n==(s==di.LTR)?a.right-1:a.left+1,y:(i.top+i.bottom)/2});if(l!=null)return jt.cursor(l,n?-1:1)}return jt.cursor(n?o.to:o.from,n?-1:1)}function JF(e,t,n,r){let o=e.state.doc.lineAt(t.head),i=e.bidiSpans(o),a=e.textDirectionAt(o.from);for(let s=t,l=null;;){let u=$9e(o,i,a,s,n),f=iK;if(!u){if(o.number==(n?e.state.doc.lines:1))return s;f=`
- `,o=e.state.doc.line(o.number+(n?1:-1)),i=e.bidiSpans(o),u=jt.cursor(n?o.from:o.to)}if(l){if(!l(f))return s}else{if(!r)return u;l=r(f)}s=u}}function W9e(e,t,n){let r=e.state.charCategorizer(t),o=r(n);return i=>{let a=r(i);return o==oi.Space&&(o=a),o==a}}function Y9e(e,t,n,r){let o=t.head,i=n?1:-1;if(o==(n?e.state.doc.length:0))return jt.cursor(o,t.assoc);let a=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(o,t.assoc||-1),f=e.documentTop;if(u)a==null&&(a=u.left-l.left),s=i<0?u.top:u.bottom;else{let y=e.viewState.lineBlockAt(o);a==null&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(o-y.from))),s=(i<0?y.top:y.bottom)+f}let h=l.left+a,m=r!=null?r:e.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let O=s+(m+y)*i,b=lK(e,{x:h,y:O},!1,i);if(O<l.top||O>l.bottom||(i<0?b<o:b>o)){let k=e.docView.coordsForChar(b),C=!k||O<k.top?-1:1;return jt.cursor(b,C,void 0,a)}}}function Ik(e,t,n){for(;;){let r=0;for(let o of e)o.between(t-1,t+1,(i,a,s)=>{if(t>i&&t<a){let l=r||n||(t-i<a-t?-1:1);t=l<0?i:a,r=l}});if(!r)return t}}function NA(e,t,n){let r=Ik(e.state.facet(aj).map(o=>o(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:jt.cursor(r,r<n.from?1:-1)}class U9e{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,zn.safari&&t.contentDOM.addEventListener("input",()=>null),zn.gecko&&lze(t.contentDOM.ownerDocument)}handleEvent(t){!eze(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let o of r.observers)o(this.view,n);for(let o of r.handlers){if(n.defaultPrevented)break;if(o(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=H9e(t),r=this.handlers,o=this.view.contentDOM;for(let i in n)if(i!="scroll"){let a=!n[i].handlers.length,s=r[i];s&&a!=!s.handlers.length&&(o.removeEventListener(i,this.handleEvent),s=null),s||o.addEventListener(i,this.handleEvent,{passive:a})}for(let i in r)i!="scroll"&&!n[i]&&o.removeEventListener(i,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(t.keyCode!=27&&cK.indexOf(t.keyCode)<0&&(this.view.inputState.lastEscPress=0),zn.android&&zn.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return zn.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=uK.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||Z9e.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,Dy(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:zn.safari&&!zn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function e9(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(o){mc(n.state,o)}}}function H9e(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let o=r.spec;if(o&&o.domEventHandlers)for(let i in o.domEventHandlers){let a=o.domEventHandlers[i];a&&n(i).handlers.push(e9(r.value,a))}if(o&&o.domEventObservers)for(let i in o.domEventObservers){let a=o.domEventObservers[i];a&&n(i).observers.push(e9(r.value,a))}}for(let r in Sf)n(r).handlers.push(Sf[r]);for(let r in _c)n(r).observers.push(_c[r]);return t}const uK=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Z9e="dthko",cK=[16,17,18,20,91,92,224,225],Fx=6;function zx(e){return Math.max(0,e)*.7+8}function X9e(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class q9e{constructor(t,n,r,o){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=d9e(t.contentDOM),this.atoms=t.state.facet(aj).map(a=>a(t));let i=t.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Fr.allowMultipleSelections)&&K9e(t,n),this.dragging=J9e(t,n)&&pK(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&X9e(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,o=0,i=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=eK(this.view);t.clientX-a.left<=i.left+Fx?r=-zx(i.left-t.clientX):t.clientX+a.right>=i.right-Fx&&(r=zx(t.clientX-i.right)),t.clientY-a.top<=i.top+Fx?o=-zx(i.top-t.clientY):t.clientY+a.bottom>=i.bottom-Fx&&(o=zx(t.clientY-i.bottom)),this.setScrollSpeed(r,o)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;r<t.ranges.length;r++){let o=t.ranges[r],i=null;if(o.empty){let a=Ik(this.atoms,o.from,0);a!=o.from&&(i=jt.cursor(a,-1))}else{let a=Ik(this.atoms,o.from,-1),s=Ik(this.atoms,o.to,1);(a!=o.from||s!=o.to)&&(i=jt.range(o.from==o.anchor?a:s,o.from==o.head?a:s))}i&&(n||(n=t.ranges.slice()),n[r]=i)}return n?jt.create(n,t.mainIndex):t}select(t){let{view:n}=this,r=this.skipAtoms(this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection)||r.main.assoc!=n.state.selection.main.assoc&&this.dragging===!1)&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function K9e(e,t){let n=e.state.facet(Qq);return n.length?n[0](t):zn.mac?t.metaKey:t.ctrlKey}function G9e(e,t){let n=e.state.facet(Wq);return n.length?n[0](t):zn.mac?!t.altKey:!t.ctrlKey}function J9e(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=DC(e.root);if(!r||r.rangeCount==0)return!0;let o=r.getRangeAt(0).getClientRects();for(let i=0;i<o.length;i++){let a=o[i];if(a.left<=t.clientX&&a.right>=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}function eze(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=Xo.get(n))&&r.ignoreEvent(t))return!1;return!0}const Sf=Object.create(null),_c=Object.create(null),fK=zn.ie&&zn.ie_version<15||zn.ios&&zn.webkit_version<604;function tze(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),dK(e,n.value)},50)}function dK(e,t){let{state:n}=e,r,o=1,i=n.toText(t),a=i.lines==n.selection.ranges.length;if(gN!=null&&n.selection.ranges.every(l=>l.empty)&&gN==i.toString()){let l=-1;r=n.changeByRange(u=>{let f=n.doc.lineAt(u.from);if(f.from==l)return{range:u};l=f.from;let h=n.toText((a?i.line(o++).text:t)+n.lineBreak);return{changes:{from:f.from,insert:h},range:jt.cursor(u.from+h.length)}})}else a?r=n.changeByRange(l=>{let u=i.line(o++);return{changes:{from:l.from,to:l.to,insert:u.text},range:jt.cursor(l.from+u.length)}}):r=n.replaceSelection(i);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}_c.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Sf.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);_c.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};_c.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Sf.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(Yq))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=oze(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new q9e(e,t,n,r)),r&&e.observer.ignore(()=>Aq(e.contentDOM));let o=e.inputState.mouseSelection;if(o)return o.start(t),o.dragging===!1}return!1};function t9(e,t,n,r){if(r==1)return jt.cursor(t,n);if(r==2)return L9e(e.state,t,n);{let o=Gi.find(e.docView,t),i=e.state.doc.lineAt(o?o.posAtEnd:t),a=o?o.posAtStart:i.from,s=o?o.posAtEnd:i.to;return s<e.state.doc.length&&s==i.to&&s++,jt.range(a,s)}}let hK=(e,t)=>e>=t.top&&e<=t.bottom,n9=(e,t,n)=>hK(t,n)&&e>=n.left&&e<=n.right;function nze(e,t,n,r){let o=Gi.find(e.docView,t);if(!o)return 1;let i=t-o.posAtStart;if(i==0)return 1;if(i==o.length)return-1;let a=o.coordsAt(i,-1);if(a&&n9(n,r,a))return-1;let s=o.coordsAt(i,1);return s&&n9(n,r,s)?1:a&&hK(r,a)?-1:1}function r9(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:nze(e,n,t.clientX,t.clientY)}}const rze=zn.ie&&zn.ie_version<=11;let o9=null,i9=0,a9=0;function pK(e){if(!rze)return e.detail;let t=o9,n=a9;return o9=e,a9=Date.now(),i9=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(i9+1)%3:1}function oze(e,t){let n=r9(e,t),r=pK(t),o=e.state.selection;return{update(i){i.docChanged&&(n.pos=i.changes.mapPos(n.pos),o=o.map(i.changes))},get(i,a,s){let l=r9(e,i),u,f=t9(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let h=t9(e,n.pos,n.bias,r),m=Math.min(h.from,f.from),y=Math.max(h.to,f.to);f=m<f.from?jt.range(m,y):jt.range(y,m)}return a?o.replaceRange(o.main.extend(f.from,f.to)):s&&r==1&&o.ranges.length>1&&(u=ize(o,l.pos))?u:s?o.addRange(f):jt.create([f])}}}function ize(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:o}=e.ranges[n];if(r<=t&&o>=t)return jt.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Sf.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;return r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};function s9(e,t,n,r){if(!n)return;let o=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{mouseSelection:i}=e.inputState,a=r&&i&&i.dragging&&G9e(e,t)?{from:i.dragging.from,to:i.dragging.to}:null,s={from:o,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(o,-1),head:l.mapPos(o,1)},userEvent:a?"move.drop":"input.drop"})}Sf.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),o=0,i=()=>{++o==n.length&&s9(e,t,r.filter(a=>a!=null).join(e.state.lineBreak),!1)};for(let a=0;a<n.length;a++){let s=new FileReader;s.onerror=i,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),i()},s.readAsText(n[a])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return s9(e,t,r,!0),!0}return!1};Sf.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=fK?null:t.clipboardData;return n?(dK(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(tze(e),!1)};function aze(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function sze(e){let t=[],n=[],r=!1;for(let o of e.selection.ranges)o.empty||(t.push(e.sliceDoc(o.from,o.to)),n.push(o));if(!t.length){let o=-1;for(let{from:i}of e.selection.ranges){let a=e.doc.lineAt(i);a.number>o&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),o=a.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let gN=null;Sf.copy=Sf.cut=(e,t)=>{let{text:n,ranges:r,linewise:o}=sze(e.state);if(!n&&!o)return!1;gN=o?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let i=fK?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(aze(e,n),!1)};const gK=Bd.define();function mK(e,t){let n=[];for(let r of e.facet(Zq)){let o=r(e,t);o&&n.push(o)}return n?e.update({effects:n,annotations:gK.of(!0)}):null}function vK(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=mK(e.state,t);n?e.dispatch(n):e.update([])}},10)}_c.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),vK(e)};_c.blur=e=>{e.observer.clearSelectionRange(),vK(e)};_c.compositionstart=_c.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};_c.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,zn.chrome&&zn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};_c.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Sf.beforeinput=(e,t)=>{var n;let r;if(zn.chrome&&zn.android&&(r=uK.find(o=>o.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let o=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var i;(((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>o+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const l9=new Set;function lze(e){l9.has(e)||(l9.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const u9=["pre-wrap","normal","pre-line","break-spaces"];class uze{constructor(t){this.lineWrapping=t,this.doc=lo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return u9.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r<t.length;r++){let o=t[r];o<0?r++:this.heightSamples[Math.floor(o*10)]||(n=!0,this.heightSamples[Math.floor(o*10)]=!0)}return n}refresh(t,n,r,o,i,a){let s=u9.indexOf(t)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=o,this.lineLength=i,l){this.heightSamples={};for(let u=0;u<a.length;u++){let f=a[u];f<0?u++:this.heightSamples[Math.floor(f*10)]=!0}}return l}}class cze{constructor(t,n){this.from=t,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class cf{constructor(t,n,r,o,i){this.from=t,this.length=n,this.top=r,this.height=o,this._content=i}get type(){return typeof this._content=="number"?$s.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof yp?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(t){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new cf(this.from,this.length+t.length,this.top,this.height+t.height,n)}}var Ho=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Ho||(Ho={}));const Dk=.001;class As{constructor(t,n,r=2){this.length=t,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>Dk&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return As.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,o){let i=this,a=r.doc;for(let s=o.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:f,toB:h}=o[s],m=i.lineAt(l,Ho.ByPosNoHeight,r.setDoc(n),0,0),y=m.to>=u?m:i.lineAt(u,Ho.ByPosNoHeight,r,0,0);for(h+=y.to-u,u=y.to;s>0&&m.from<=o[s-1].toA;)l=o[s-1].fromA,f=o[s-1].fromB,s--,l<m.from&&(m=i.lineAt(l,Ho.ByPosNoHeight,r,0,0));f+=m.from-l,l=m.from;let O=sj.build(r.setDoc(a),t,f,h);i=i.replace(l,u,O)}return i.updateHeight(r,0)}static empty(){return new Al(0,0)}static of(t){if(t.length==1)return t[0];let n=0,r=t.length,o=0,i=0;for(;;)if(n==r)if(o>i*2){let s=t[n-1];s.break?t.splice(--n,1,s.left,null,s.right):t.splice(--n,1,s.left,s.right),r+=1+s.break,o-=s.size}else if(i>o*2){let s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,i-=s.size}else break;else if(o<i){let s=t[n++];s&&(o+=s.size)}else{let s=t[--r];s&&(i+=s.size)}let a=0;return t[n-1]==null?(a=1,n--):t[n]==null&&(a=1,r++),new fze(As.of(t.slice(0,n)),a,As.of(t.slice(r)))}}As.prototype.size=1;class yK extends As{constructor(t,n,r){super(t,n),this.deco=r}blockAt(t,n,r,o){return new cf(o,this.length,r,this.height,this.deco||0)}lineAt(t,n,r,o,i){return this.blockAt(0,r,o,i)}forEachLine(t,n,r,o,i,a){t<=i+this.length&&n>=i&&a(this.blockAt(0,r,o,i))}updateHeight(t,n=0,r=!1,o){return o&&o.from<=n&&o.more&&this.setHeight(t,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Al extends yK{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,o){return new cf(o,this.length,r,this.height,this.breaks)}replace(t,n,r){let o=r[0];return r.length==1&&(o instanceof Al||o instanceof Ra&&o.flags&4)&&Math.abs(this.length-o.length)<10?(o instanceof Ra?o=new Al(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):As.of(r)}updateHeight(t,n=0,r=!1,o){return o&&o.from<=n&&o.more?this.setHeight(t,o.heights[o.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Ra extends As{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,o=t.doc.lineAt(n+this.length).number,i=o-r+1,a,s=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*i);a=l/i,this.length>i+1&&(s=(this.height-l)/(this.length-i-1))}else a=this.height/i;return{firstLine:r,lastLine:o,perLine:a,perChar:s}}blockAt(t,n,r,o){let{firstLine:i,lastLine:a,perLine:s,perChar:l}=this.heightMetrics(n,o);if(n.lineWrapping){let u=o+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),f=n.doc.lineAt(u),h=s+f.length*l,m=Math.max(r,t-h/2);return new cf(f.from,f.length,m,h,0)}else{let u=Math.max(0,Math.min(a-i,Math.floor((t-r)/s))),{from:f,length:h}=n.doc.line(i+u);return new cf(f,h,r+s*u,s,0)}}lineAt(t,n,r,o,i){if(n==Ho.ByHeight)return this.blockAt(t,r,o,i);if(n==Ho.ByPosNoHeight){let{from:y,to:O}=r.doc.lineAt(t);return new cf(y,O-y,0,0,0)}let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(r,i),u=r.doc.lineAt(t),f=s+u.length*l,h=u.number-a,m=o+s*h+l*(u.from-i-h);return new cf(u.from,u.length,Math.max(o,Math.min(m,o+this.height-f)),f,0)}forEachLine(t,n,r,o,i,a){t=Math.max(t,i),n=Math.min(n,i+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,i);for(let f=t,h=o;f<=n;){let m=r.doc.lineAt(f);if(f==t){let O=m.number-s;h+=l*O+u*(t-i-O)}let y=l+u*m.length;a(new cf(m.from,m.length,h,y,0)),h+=y,f=m.to+1}}replace(t,n,r){let o=this.length-n;if(o>0){let i=r[r.length-1];i instanceof Ra?r[r.length-1]=new Ra(i.length+o):r.push(null,new Ra(o-1))}if(t>0){let i=r[0];i instanceof Ra?r[0]=new Ra(t+i.length):r.unshift(new Ra(t-1),null)}return As.of(r)}decomposeLeft(t,n){n.push(new Ra(t-1),null)}decomposeRight(t,n){n.push(null,new Ra(this.length-t-1))}updateHeight(t,n=0,r=!1,o){let i=n+this.length;if(o&&o.from<=n+this.length&&o.more){let a=[],s=Math.max(n,o.from),l=-1;for(o.from>n&&a.push(new Ra(o.from-n-1).updateHeight(t,n));s<=i&&o.more;){let f=t.doc.lineAt(s).length;a.length&&a.push(null);let h=o.heights[o.index++];l==-1?l=h:Math.abs(h-l)>=Dk&&(l=-2);let m=new Al(f,h);m.outdated=!1,a.push(m),s+=f+1}s<=i&&a.push(null,new Ra(i-s).updateHeight(t,s));let u=As.of(a);return(l<0||Math.abs(u.height-this.height)>=Dk||Math.abs(l-this.heightMetrics(t,n).perLine)>=Dk)&&(t.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class fze extends As{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,o){let i=r+this.left.height;return t<i?this.left.blockAt(t,n,r,o):this.right.blockAt(t,n,i,o+this.left.length+this.break)}lineAt(t,n,r,o,i){let a=o+this.left.height,s=i+this.left.length+this.break,l=n==Ho.ByHeight?t<a:t<s,u=l?this.left.lineAt(t,n,r,o,i):this.right.lineAt(t,n,r,a,s);if(this.break||(l?u.to<s:u.from>s))return u;let f=n==Ho.ByPosNoHeight?Ho.ByPosNoHeight:Ho.ByPos;return l?u.join(this.right.lineAt(s,f,r,a,s)):this.left.lineAt(s,f,r,o,i).join(u)}forEachLine(t,n,r,o,i,a){let s=o+this.left.height,l=i+this.left.length+this.break;if(this.break)t<l&&this.left.forEachLine(t,n,r,o,i,a),n>=l&&this.right.forEachLine(t,n,r,s,l,a);else{let u=this.lineAt(l,Ho.ByPos,r,o,i);t<u.from&&this.left.forEachLine(t,u.from-1,r,o,i,a),u.to>=t&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}replace(t,n,r){let o=this.left.length+this.break;if(n<o)return this.balanced(this.left.replace(t,n,r),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-o,n-o,r));let i=[];t>0&&this.decomposeLeft(t,i);let a=i.length;for(let s of r)i.push(s);if(t>0&&c9(i,a-1),n<this.length){let s=i.length;this.decomposeRight(n,i),c9(i,s)}return As.of(i)}decomposeLeft(t,n){let r=this.left.length;if(t<=r)return this.left.decomposeLeft(t,n);n.push(this.left),this.break&&(r++,t>=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,o=r+this.break;if(t>=o)return this.right.decomposeRight(t-o,n);t<r&&this.left.decomposeRight(t,n),this.break&&t<o&&n.push(null),n.push(this.right)}balanced(t,n){return t.size>2*n.size||n.size>2*t.size?As.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,o){let{left:i,right:a}=this,s=n+i.length+this.break,l=null;return o&&o.from<=n+i.length&&o.more?l=i=i.updateHeight(t,n,r,o):i.updateHeight(t,n,r),o&&o.from<=s+a.length&&o.more?l=a=a.updateHeight(t,s,r,o):a.updateHeight(t,s,r),l?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function c9(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Ra&&(r=e[t+1])instanceof Ra&&e.splice(t-1,3,new Ra(n.length+1+r.length))}const dze=5;class sj{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),o=this.nodes[this.nodes.length-1];o instanceof Al?o.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Al(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t<n||r.heightRelevant){let o=r.widget?r.widget.estimatedHeight:0,i=r.widget?r.widget.lineBreaks:0;o<0&&(o=this.oracle.lineHeight);let a=n-t;r.block?this.addBlock(new yK(a,o,r)):(a||i||o>=dze)&&this.addLineDeco(o,i,a)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTo<t&&((this.writtenTo<t-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new Al(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Ra(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Al)return t;let n=new Al(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let o=this.ensureLine();o.length+=r,o.collapsed+=r,o.widgetHeight=Math.max(o.widgetHeight,t),o.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Al)&&!this.isCovered?this.nodes.push(new Al(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=t;for(let o of this.nodes)o instanceof Al&&o.updateHeight(this.oracle,r),r+=o?o.length:1;return this.nodes}static build(t,n,r,o){let i=new sj(r,t);return po.spans(n,r,o,i,0),i.finish(r)}}function hze(e,t,n){let r=new pze;return po.compare(e,t,n,r,0),r.changes}class pze{constructor(){this.changes=[]}compareRange(){}comparePoint(t,n,r,o){(t<n||r&&r.heightRelevant||o&&o.heightRelevant)&&lN(t,n,this.changes,5)}}function gze(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,o=r.defaultView||window,i=Math.max(0,n.left),a=Math.min(o.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(o.innerHeight,n.bottom);for(let u=e.parentNode;u&&u!=r.body;)if(u.nodeType==1){let f=u,h=window.getComputedStyle(f);if((f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth)&&h.overflow!="visible"){let m=f.getBoundingClientRect();i=Math.max(i,m.left),a=Math.min(a,m.right),s=Math.max(s,m.top),l=u==e.parentNode?m.bottom:Math.min(l,m.bottom)}u=h.position=="absolute"||h.position=="fixed"?f.offsetParent:f.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:i-n.left,right:Math.max(i,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function mze(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class IA{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=n[r];if(o.from!=i.from||o.to!=i.to||o.size!=i.size)return!1}return!0}draw(t,n){return Kn.replace({widget:new vze(this.size*(n?t.scaleY:t.scaleX),n)}).range(this.from,this.to)}}class vze extends Df{constructor(t,n){super(),this.size=t,this.vertical=n}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}}class f9{constructor(t){this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=d9,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=di.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(ij).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new uze(n),this.stateDeco=t.facet(a1).filter(r=>typeof r!="function"),this.heightMap=As.empty().applyChanges(this.stateDeco,lo.empty,this.heightOracle.setDoc(t.doc),[new Pu(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Kn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let o=r?n.head:n.anchor;if(!t.some(({from:i,to:a})=>o>=i&&o<=a)){let{from:i,to:a}=this.lineBlockAt(o);t.push(new Qx(i,a))}}this.viewports=t.sort((r,o)=>r.from-o.from),this.scaler=this.heightMap.height<=7e6?d9:new _ze(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:H_(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(a1).filter(f=>typeof f!="function");let o=t.changedRanges,i=Pu.extendWithRanges(o,hze(r,this.stateDeco,t?t.changes:ea.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=a&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=i.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(qq)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),o=this.heightOracle,i=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?di.RTL:di.LTR;let a=this.heightOracle.mustRefreshForWrapping(i),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,f=0;if(s.width&&s.height){let T=s.width/n.offsetWidth,A=s.height/n.offsetHeight;(T>.995&&T<1.005||!isFinite(T)||Math.abs(s.width-n.offsetWidth)<1)&&(T=1),(A>.995&&A<1.005||!isFinite(A)||Math.abs(s.height-n.offsetHeight)<1)&&(A=1),(this.scaleX!=T||this.scaleY!=A)&&(this.scaleX=T,this.scaleY=A,u|=8,a=l=!0)}let h=(parseInt(r.paddingTop)||0)*this.scaleY,m=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=m)&&(this.paddingTop=h,this.paddingBottom=m,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(o.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let y=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=Rq(t.scrollDOM);let O=(this.printing?mze:gze)(n,this.paddingTop),b=O.top-this.pixelViewport.top,k=O.bottom-this.pixelViewport.bottom;this.pixelViewport=O;let C=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(C!=this.inView&&(this.inView=C,C&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let P=s.width;if((this.contentDOMWidth!=P||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let T=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(T)&&(a=!0),a||o.lineWrapping&&Math.abs(P-this.contentDOMWidth)>o.charWidth){let{lineHeight:A,charWidth:R,textHeight:B}=t.docView.measureTextSize();a=A>0&&o.refresh(i,A,R,B,P/R,T),a&&(t.docView.minWidth=0,u|=8)}b>0&&k>0?f=Math.max(b,k):b<0&&k<0&&(f=Math.min(b,k)),o.heightChanged=!1;for(let A of this.viewports){let R=A.from==this.viewport.from?T:t.docView.measureVisibleLineHeights(A);this.heightMap=(a?As.empty().applyChanges(this.stateDeco,lo.empty,this.heightOracle,[new Pu(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,a,new cze(A.from,R))}o.heightChanged&&(u|=2)}let $=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return $&&(this.viewport=this.getViewport(f,this.scrollTarget)),this.updateForViewport(),(u&2||$)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),o=this.heightMap,i=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new Qx(o.lineAt(a-r*1e3,Ho.ByHeight,i,0,0).from,o.lineAt(s+(1-r)*1e3,Ho.ByHeight,i,0,0).to);if(n){let{head:u}=n.range;if(u<l.from||u>l.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=o.lineAt(u,Ho.ByPos,i,0,0),m;n.y=="center"?m=(h.top+h.bottom)/2-f/2:n.y=="start"||n.y=="nearest"&&u<l.from?m=h.top:m=h.bottom-f,l=new Qx(o.lineAt(m-1e3/2,Ho.ByHeight,i,0,0).from,o.lineAt(m+f+1e3/2,Ho.ByHeight,i,0,0).to)}}return l}mapViewport(t,n){let r=n.mapPos(t.from,-1),o=n.mapPos(t.to,1);return new Qx(this.heightMap.lineAt(r,Ho.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(o,Ho.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:n},r=0){if(!this.inView)return!0;let{top:o}=this.heightMap.lineAt(t,Ho.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(n,Ho.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:s}=this;return(t==0||o<=a-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||i>=s+Math.max(10,Math.min(r,250)))&&o>a-2*1e3&&i<s+2*1e3}mapLineGaps(t,n){if(!t.length||n.empty)return t;let r=[];for(let o of t)n.touchesRange(o.from,o.to)||r.push(new IA(n.mapPos(o.from),n.mapPos(o.to),o.size));return r}ensureLineGaps(t,n){let r=this.heightOracle.lineWrapping,o=r?1e4:2e3,i=o>>1,a=o<<1;if(this.defaultTextDirection!=di.LTR&&!r)return[];let s=[],l=(u,f,h,m)=>{if(f-u<i)return;let y=this.state.selection.main,O=[y.from];y.empty||O.push(y.to);for(let k of O)if(k>u&&k<f){l(u,k-10,h,m),l(k+10,f,h,m);return}let b=bze(t,k=>k.from>=h.from&&k.to<=h.to&&Math.abs(k.from-u)<i&&Math.abs(k.to-f)<i&&!O.some(C=>k.from<C&&k.to>C));if(!b){if(f<h.to&&n&&r&&n.visibleRanges.some(k=>k.from<=f&&k.to>=f)){let k=n.moveToLineBoundary(jt.cursor(f),!1,!0).head;k>u&&(f=k)}b=new IA(u,f,this.gapSize(h,u,f,m))}s.push(b)};for(let u of this.viewportLines){if(u.length<a)continue;let f=yze(u.from,u.to,this.stateDeco);if(f.total<a)continue;let h=this.scrollTarget?this.scrollTarget.range.head:null,m,y;if(r){let O=o/this.heightOracle.lineLength*this.heightOracle.lineHeight,b,k;if(h!=null){let C=Yx(f,h),P=((this.visibleBottom-this.visibleTop)/2+O)/u.height;b=C-P,k=C+P}else b=(this.visibleTop-u.top-O)/u.height,k=(this.visibleBottom-u.top+O)/u.height;m=Wx(f,b),y=Wx(f,k)}else{let O=f.total*this.heightOracle.charWidth,b=o*this.heightOracle.charWidth,k,C;if(h!=null){let P=Yx(f,h),$=((this.pixelViewport.right-this.pixelViewport.left)/2+b)/O;k=P-$,C=P+$}else k=(this.pixelViewport.left-b)/O,C=(this.pixelViewport.right+b)/O;m=Wx(f,k),y=Wx(f,C)}m>u.from&&l(u.from,m,u,f),y<u.to&&l(y,u.to,u,f)}return s}gapSize(t,n,r,o){let i=Yx(o,r)-Yx(o,n);return this.heightOracle.lineWrapping?t.height*i:o.total*this.heightOracle.charWidth*i}updateLineGaps(t){IA.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=Kn.set(t.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];po.spans(t,this.viewport.from,this.viewport.to,{span(o,i){n.push({from:o,to:i})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((o,i)=>o.from!=n[i].from||o.to!=n[i].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||H_(this.heightMap.lineAt(t,Ho.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return H_(this.heightMap.lineAt(this.scaler.fromDOM(t),Ho.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return H_(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Qx{constructor(t,n){this.from=t,this.to=n}}function yze(e,t,n){let r=[],o=e,i=0;return po.spans(n,e,t,{span(){},point(a,s){a>o&&(r.push({from:o,to:a}),i+=a-o),o=s}},20),o<t&&(r.push({from:o,to:t}),i+=t-o),{total:i,ranges:r}}function Wx({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let o=0;;o++){let{from:i,to:a}=t[o],s=a-i;if(r<=s)return i+r;r-=s}}function Yx(e,t){let n=0;for(let{from:r,to:o}of e.ranges){if(t<=o){n+=t-r;break}n+=o-r}return n/e.total}function bze(e,t){for(let n of e)if(t(n))return n}const d9={toDOM(e){return e},fromDOM(e){return e},scale:1};class _ze{constructor(t,n,r){let o=0,i=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Ho.ByPos,t,0,0).top,f=n.lineAt(l,Ho.ByPos,t,0,0).bottom;return o+=f-u,{from:s,to:l,top:u,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-o)/(n.height-o);for(let s of this.viewports)s.domTop=a+(s.top-i)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(t){for(let n=0,r=0,o=0;;n++){let i=n<this.viewports.length?this.viewports[n]:null;if(!i||t<i.top)return o+(t-r)*this.scale;if(t<=i.bottom)return i.domTop+(t-i.top);r=i.bottom,o=i.domBottom}}fromDOM(t){for(let n=0,r=0,o=0;;n++){let i=n<this.viewports.length?this.viewports[n]:null;if(!i||t<i.domTop)return r+(t-o)/this.scale;if(t<=i.domBottom)return i.top+(t-i.domTop);r=i.bottom,o=i.domBottom}}}function H_(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new cf(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(o=>H_(o,t)):e._content)}const Ux=Nn.define({combine:e=>e.join(" ")}),mN=Nn.define({combine:e=>e.indexOf(!0)>-1}),vN=mp.newName(),bK=mp.newName(),_K=mp.newName(),OK={"&light":"."+bK,"&dark":"."+_K};function yN(e,t,n){return new mp(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,o=>{if(o=="&")return e;if(!n||!n[o])throw new RangeError(`Unsupported selector: ${o}`);return n[o]}):e+" "+r}})}const Oze=yN("."+vN,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},OK),Z_="\uFFFF";class wze{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Fr.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=Z_}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let o=t;;){this.findPointBefore(r,o);let i=this.text.length;this.readNode(o);let a=o.nextSibling;if(a==n)break;let s=Xo.get(o),l=Xo.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:h9(o))||h9(a)&&(o.nodeName!="BR"||o.cmIgnore)&&this.text.length>i)&&this.lineBreak(),o=a}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,s;if(this.lineSeparator?(i=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=o.exec(n))&&(i=s.index,a=s[0].length),this.append(n.slice(r,i<0?n.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=a-1);r=i+a}}readNode(t){if(t.cmIgnore)return;let n=Xo.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let o=r.iter();!o.next().done;)o.lineBreak?this.lineBreak():this.append(o.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(Sze(t,r.node,r.offset)?n:0))}}function Sze(e,t,n){for(;;){if(!t||n<xd(t))return!1;if(t==e)return!0;n=i1(t)+1,t=t.parentNode}}function h9(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class p9{constructor(t,n){this.node=t,this.offset=n,this.pos=-1}}class xze{constructor(t,n,r,o){this.typeOver=o,this.bounds=null,this.text="";let{impreciseHead:i,impreciseAnchor:a}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let s=i||a?[]:Eze(t),l=new wze(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Tze(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=i&&i.node==s.focusNode&&i.offset==s.focusOffset||!nN(t.contentDOM,s.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!nN(t.contentDOM,s.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(s.anchorNode,s.anchorOffset);this.newSel=jt.single(u,l)}}}function wK(e,t){let n,{newSel:r}=t,o=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:a,to:s}=t.bounds,l=o.from,u=null;(i===8||zn.android&&t.text.length<s-a)&&(l=o.to,u="end");let f=Cze(e.state.doc.sliceString(a,s,Z_),t.text,l-a,u);f&&(zn.chrome&&i==13&&f.toB==f.from+2&&t.text.slice(f.from,f.toB)==Z_+Z_&&f.toB--,n={from:a+f.from,to:a+f.toA,insert:lo.of(t.text.slice(f.from,f.toB).split(Z_))})}else r&&(!e.hasFocus&&e.state.facet(yE)||r.main.eq(o))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!o.empty&&r&&r.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(zn.mac||zn.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=jt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:lo.of([" "])}):zn.chrome&&n&&n.from==n.to&&n.from==o.head&&n.insert.toString()==`
- `&&e.lineWrapping&&(r&&(r=jt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:lo.of([" "])}),n){if(zn.ios&&e.inputState.flushIOSKey()||zn.android&&(n.from==o.from&&n.to==o.to&&n.insert.length==1&&n.insert.lines==2&&Dy(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&n.insert.length==0||i==8&&n.insert.length<n.to-n.from&&n.to>o.head)&&Dy(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&n.insert.length==0&&Dy(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=kze(e,n,r));return e.state.facet(Hq).some(u=>u(e,n.from,n.to,a,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(o)){let a=!1,s="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(a=!0),s=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function kze(e,t,n){let r,o=e.state,i=o.selection.main;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let s=i.from<t.from?o.sliceDoc(i.from,t.from):"",l=i.to>t.to?o.sliceDoc(t.to,i.to):"";r=o.replaceSelection(e.state.toText(s+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let s=o.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let u=e.state.sliceDoc(t.from,t.to),f,h=n&&aK(e,n.main.head);if(h){let O=t.insert.length-(t.to-t.from);f={from:h.from,to:h.to-O}}else f=e.state.doc.lineAt(i.head);let m=i.to-t.to,y=i.to-i.from;r=o.changeByRange(O=>{if(O.from==i.from&&O.to==i.to)return{changes:s,range:l||O.map(s)};let b=O.to-m,k=b-u.length;if(O.to-O.from!=y||e.state.sliceDoc(k,b)!=u||O.to>=f.from&&O.from<=f.to)return{range:O};let C=o.changes({from:k,to:b,insert:t.insert}),P=O.to-i.to;return{changes:C,range:l?jt.range(Math.max(0,l.anchor+P),Math.max(0,l.head+P)):O.map(C)}})}else r={changes:s,selection:l&&o.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),o.update(r,{userEvent:a,scrollIntoView:!0})}function Cze(e,t,n,r){let o=Math.min(e.length,t.length),i=0;for(;i<o&&e.charCodeAt(i)==t.charCodeAt(i);)i++;if(i==o&&e.length==t.length)return null;let a=e.length,s=t.length;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,i-Math.min(a,s));n-=a+l-i}return a<i&&e.length<t.length?(i-=n<=i&&n>=a?i-n:0,s=i+(s-a),a=i):s<i&&(i-=n<=i&&n>=s?i-n:0,a=i+(a-s),s=i),{from:i,toA:a,toB:s}}function Eze(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}=e.observer.selectionRange;return n&&(t.push(new p9(n,r)),(o!=n||i!=r)&&t.push(new p9(o,i))),t}function Tze(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?jt.single(n+t,r+t):null}const Pze={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},DA=zn.ie&&zn.ie_version<=11;class $ze{constructor(t){this.view=t,this.active=!1,this.selectionRange=new h9e,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(zn.ie&&zn.ie_version<=11||zn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),DA&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(t.scrollDOM),this.resizeContent=new ResizeObserver(()=>this.view.requestMeasure()),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,o=this.selectionRange;if(r.state.facet(yE)?r.root.activeElement!=this.dom:!Nk(r.dom,o))return;let i=o.anchorNode&&r.docView.nearest(o.anchorNode);if(i&&i.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(zn.ie&&zn.ie_version<=11||zn.android&&zn.chrome)&&!r.state.selection.main.empty&&o.focusNode&&jC(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=zn.safari&&t.root.nodeType==11&&u9e(this.dom.ownerDocument)==this.dom&&Aze(this.view)||DC(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=Nk(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&g9e(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(t,n){this.selectionRange.set(t.node,t.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&t<this.scrollTargets.length&&this.scrollTargets[t]==r?t++:n||(n=this.scrollTargets.slice(0,t)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(t<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,t)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Pze),DA&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){!this.active||(this.active=!1,this.observer.disconnect(),DA&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,n){var r;if(!this.delayedAndroidKey){let o=()=>{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&Dy(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(o)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,o=!1;for(let i of t){let a=this.readMutation(i);!a||(a.typeOver&&(o=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:o}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),o=this.selectionChanged&&Nk(this.dom,this.selectionRange);if(t<0&&!o)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new xze(this.view,t,n,r);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,o=wK(this.view,n);return this.view.state==r&&this.view.update([]),o}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=g9(n,t.previousSibling||t.target.previousSibling,-1),o=g9(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:o?n.posBefore(o):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r,o;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect(),(o=this.resizeContent)===null||o===void 0||o.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function g9(e,t,n){for(;t;){let r=Xo.get(t);if(r&&r.parent==e)return r;let o=t.parentNode;t=o!=e.dom?o:n>0?t.nextSibling:t.previousSibling}return null}function Aze(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return jC(s.node,s.offset,i,a)&&([r,o,i,a]=[i,a,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}}class kn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(o=>n(o,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||p9e(t.parent)||document,this.viewState=new f9(t.state||Fr.create(t)),this.plugins=this.state.facet(Y_).map(r=>new MA(r));for(let r of this.plugins)r.update(this);this.observer=new $ze(this),this.inputState=new U9e(this),this.inputState.ensureHandlers(this.plugins),this.docView=new HF(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}dispatch(...t){let n=t.length==1&&t[0]instanceof na?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,o,i=this.state;for(let m of t){if(m.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=m.state}if(this.destroyed){this.viewState.state=i;return}let a=this.hasFocus,s=0,l=null;t.some(m=>m.annotation(gK))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=mK(i,a),l||(s=1));let u=this.observer.delayedAndroidKey,f=null;if(u?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(f=null)):this.observer.clear(),i.facet(Fr.phrases)!=this.state.facet(Fr.phrases))return this.setState(i);o=BC.create(this,i,t),o.flags|=s;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let m of t){if(h&&(h=h.map(m.changes)),m.scrollIntoView){let{main:y}=m.state.selection;h=new LC(y.empty?y:jt.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of m.effects)y.is(YF)&&(h=y.value)}this.viewState.update(o,h),this.bidiCache=VC.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),n=this.docView.update(o),this.state.facet(U_)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(m=>m.isUserEvent("select.pointer")))}finally{this.updateState=0}if(o.startState.facet(Ux)!=o.state.facet(Ux)&&(this.viewState.mustMeasureContent=!0),(n||r||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!o.empty)for(let m of this.state.facet(uN))m(o);(l||f)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),f&&!wK(this,f)&&u.force&&Dy(this.contentDOM,u.key,u.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new f9(t),this.plugins=t.facet(Y_).map(r=>new MA(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView=new HF(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(Y_),r=t.state.facet(Y_);if(n!=r){let o=[];for(let i of r){let a=n.indexOf(i);if(a<0)o.push(new MA(i));else{let s=this.plugins[a];s.mustUpdate=t,o.push(s)}}for(let i of this.plugins)i.mustUpdate!=t&&i.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=t;for(let o=0;o<this.plugins.length;o++)this.plugins[o].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}measure(t=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,o=r.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:a}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(Rq(r))i=-1,a=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(o);i=y.from,a=y.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let f=u.map(y=>{try{return y.read(this)}catch(O){return mc(this.state,O),m9}}),h=BC.create(this,this.state,[]),m=!1;h.flags|=l,n?n.flags|=l:n=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),m=this.docView.update(h));for(let y=0;y<u.length;y++)if(f[y]!=m9)try{let O=u[y];O.write&&O.write(f[y],this)}catch(O){mc(this.state,O)}if(m&&this.docView.updateSelection(!0),!h.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null;continue}else{let O=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-a;if(O>1||O<-1){o=o+O,r.scrollTop=o/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(uN))s(n)}get themeClasses(){return vN+" "+(this.state.facet(mN)?_K:bK)+" "+this.state.facet(Ux)}updateAttrs(){let t=v9(this,Kq,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(yE)?"true":"false",class:"cm-content",style:`${zn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),v9(this,ij,n);let r=this.observer.ignore(()=>{let o=sN(this.contentDOM,this.contentAttrs,n),i=sN(this.dom,this.editorAttrs,t);return o||i});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let o of r.effects)if(o.is(kn.announce)){n&&(this.announceDOM.textContent=""),n=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=o.value}}mountStyles(){this.styleModules=this.state.facet(U_);let t=this.state.facet(kn.cspNonce);mp.mount(this.root,this.styleModules.concat(Oze).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===t.key){this.measureRequests[n]=t;return}}this.measureRequests.push(t)}}plugin(t){let n=this.pluginMap.get(t);return(n===void 0||n&&n.spec!=t)&&this.pluginMap.set(t,n=this.plugins.find(r=>r.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return NA(this,t,JF(this,t,n,r))}moveByGroup(t,n){return NA(this,t,JF(this,t,n,r=>W9e(this,t.head,r)))}moveToLineBoundary(t,n,r=!0){return Q9e(this,t,n,r)}moveVertically(t,n,r){return NA(this,t,Y9e(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),lK(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let o=this.state.doc.lineAt(t),i=this.bidiSpans(o),a=i[Yh.find(i,t-o.from,-1,n)];return mE(r,a.dir==di.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Xq)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>Mze)return oK(t.length);let n=this.textDirectionAt(t.from),r;for(let i of this.bidiCache)if(i.from==t.from&&i.dir==n&&(i.fresh||rK(i.isolates,r=UF(this,t.from,t.to))))return i.order;r||(r=UF(this,t.from,t.to));let o=P9e(t.text,n,r);return this.bidiCache.push(new VC(t.from,t.to,n,r,!0,o)),o}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||zn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Aq(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return YF.of(new LC(typeof t=="number"?jt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}static domEventHandlers(t){return Ii.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Ii.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=mp.newName(),o=[Ux.of(r),U_.of(yN(`.${r}`,t))];return n&&n.dark&&o.push(mN.of(!0)),o}static baseTheme(t){return Nm.lowest(U_.of(yN("."+vN,t,OK)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),o=r&&Xo.get(r)||Xo.get(t);return((n=o==null?void 0:o.rootView)===null||n===void 0?void 0:n.view)||null}}kn.styleModule=U_;kn.inputHandler=Hq;kn.focusChangeEffect=Zq;kn.perLineTextDirection=Xq;kn.exceptionSink=Uq;kn.updateListener=uN;kn.editable=yE;kn.mouseSelectionStyle=Yq;kn.dragMovesSelection=Wq;kn.clickAddsSelectionRange=Qq;kn.decorations=a1;kn.atomicRanges=aj;kn.bidiIsolatedRanges=Gq;kn.scrollMargins=Jq;kn.darkTheme=mN;kn.cspNonce=Nn.define({combine:e=>e.length?e[0]:""});kn.contentAttributes=ij;kn.editorAttributes=Kq;kn.lineWrapping=kn.contentAttributes.of({class:"cm-lineWrapping"});kn.announce=xr.define();const Mze=4096,m9={};class VC{constructor(t,n,r,o,i,a){this.from=t,this.to=n,this.dir=r,this.isolates=o,this.fresh=i,this.order=a}static update(t,n){if(n.empty&&!t.some(i=>i.fresh))return t;let r=[],o=t.length?t[t.length-1].dir:di.LTR;for(let i=Math.max(0,t.length-10);i<t.length;i++){let a=t[i];a.dir==o&&!n.touchesRange(a.from,a.to)&&r.push(new VC(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}function v9(e,t,n){for(let r=e.state.facet(t),o=r.length-1;o>=0;o--){let i=r[o],a=typeof i=="function"?i(e):i;a&&aN(a,n)}return n}const Rze=zn.mac?"mac":zn.windows?"win":zn.linux?"linux":"key";function Nze(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let o,i,a,s;for(let l=0;l<n.length-1;++l){const u=n[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))o=!0;else if(/^(c|ctrl|control)$/i.test(u))i=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))t=="mac"?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+u)}return o&&(r="Alt-"+r),i&&(r="Ctrl-"+r),s&&(r="Meta-"+r),a&&(r="Shift-"+r),r}function Hx(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n!==!1&&t.shiftKey&&(e="Shift-"+e),e}const Ize=Nm.default(kn.domEventHandlers({keydown(e,t){return xK(SK(t.state),e,t,"editor")}})),G1=Nn.define({enables:Ize}),y9=new WeakMap;function SK(e){let t=e.facet(G1),n=y9.get(t);return n||y9.set(t,n=Lze(t.reduce((r,o)=>r.concat(o),[]))),n}function Dze(e,t,n){return xK(SK(e.state),t,e,n)}let Bh=null;const jze=4e3;function Lze(e,t=Rze){let n=Object.create(null),r=Object.create(null),o=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},i=(a,s,l,u,f)=>{var h,m;let y=n[a]||(n[a]=Object.create(null)),O=s.split(/ (?!$)/).map(C=>Nze(C,t));for(let C=1;C<O.length;C++){let P=O.slice(0,C).join(" ");o(P,!0),y[P]||(y[P]={preventDefault:!0,stopPropagation:!1,run:[$=>{let T=Bh={view:$,prefix:P,scope:a};return setTimeout(()=>{Bh==T&&(Bh=null)},jze),!0}]})}let b=O.join(" ");o(b,!1);let k=y[b]||(y[b]={preventDefault:!1,stopPropagation:!1,run:((m=(h=y._any)===null||h===void 0?void 0:h.run)===null||m===void 0?void 0:m.slice())||[]});l&&k.run.push(l),u&&(k.preventDefault=!0),f&&(k.stopPropagation=!0)};for(let a of e){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let f=n[u]||(n[u]=Object.create(null));f._any||(f._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let h in f)f[h].run.push(a.any)}let l=a[t]||a.key;if(!!l)for(let u of s)i(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&i(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}function xK(e,t,n,r){let o=l9e(t),i=Na(o,0),a=bu(i)==o.length&&o!=" ",s="",l=!1,u=!1,f=!1;Bh&&Bh.view==n&&Bh.scope==r&&(s=Bh.prefix+" ",cK.indexOf(t.keyCode)<0&&(u=!0,Bh=null));let h=new Set,m=k=>{if(k){for(let C of k.run)if(!h.has(C)&&(h.add(C),C(n,t)))return k.stopPropagation&&(f=!0),!0;k.preventDefault&&(k.stopPropagation&&(f=!0),u=!0)}return!1},y=e[r],O,b;return y&&(m(y[s+Hx(o,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(zn.windows&&t.ctrlKey&&t.altKey)&&(O=vp[t.keyCode])&&O!=o?(m(y[s+Hx(O,t,!0)])||t.shiftKey&&(b=o1[t.keyCode])!=o&&b!=O&&m(y[s+Hx(b,t,!1)]))&&(l=!0):a&&t.shiftKey&&m(y[s+Hx(o,t,!0)])&&(l=!0),!l&&m(y._any)&&(l=!0)),u&&(l=!0),l&&f&&t.stopPropagation(),l}class J1{constructor(t,n,r,o,i){this.className=t,this.left=n,this.top=r,this.width=o,this.height=i}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let o=t.coordsAtPos(r.head,r.assoc||1);if(!o)return[];let i=kK(t);return[new J1(n,o.left-i.left,o.top-i.top,null,o.bottom-o.top)]}else return Bze(t,n,r)}}function kK(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==di.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function b9(e,t,n){let r=jt.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:$s.Text}}function Bze(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),o=Math.min(n.to,e.viewport.to),i=e.textDirection==di.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=kK(e),u=a.querySelector(".cm-line"),f=u&&window.getComputedStyle(u),h=s.left+(f?parseInt(f.paddingLeft)+Math.min(0,parseInt(f.textIndent)):0),m=s.right-(f?parseInt(f.paddingRight):0),y=pN(e,r),O=pN(e,o),b=y.type==$s.Text?y:null,k=O.type==$s.Text?O:null;if(b&&(e.lineWrapping||y.widgetLineBreaks)&&(b=b9(e,r,b)),k&&(e.lineWrapping||O.widgetLineBreaks)&&(k=b9(e,o,k)),b&&k&&b.from==k.from)return P($(n.from,n.to,b));{let A=b?$(n.from,null,b):T(y,!1),R=k?$(null,n.to,k):T(O,!0),B=[];return(b||y).to<(k||O).from-(b&&k?1:0)||y.widgetLineBreaks>1&&A.bottom+e.defaultLineHeight/2<R.top?B.push(C(h,A.bottom,m,R.top)):A.bottom<R.top&&e.elementAtHeight((A.bottom+R.top)/2).type==$s.Text&&(A.bottom=R.top=(A.bottom+R.top)/2),P(A).concat(B).concat(P(R))}function C(A,R,B,I){return new J1(t,A-l.left,R-l.top-.01,B-A,I-R+.01)}function P({top:A,bottom:R,horizontal:B}){let I=[];for(let N=0;N<B.length;N+=2)I.push(C(B[N],A,B[N+1],R));return I}function $(A,R,B){let I=1e9,N=-1e9,j=[];function L(oe,K,Z,re,J){let z=e.coordsAtPos(oe,oe==B.to?-2:2),q=e.coordsAtPos(Z,Z==B.from?2:-2);!z||!q||(I=Math.min(z.top,q.top,I),N=Math.max(z.bottom,q.bottom,N),J==di.LTR?j.push(i&&K?h:z.left,i&&re?m:q.right):j.push(!i&&re?h:q.left,!i&&K?m:z.right))}let V=A!=null?A:B.from,X=R!=null?R:B.to;for(let oe of e.visibleRanges)if(oe.to>V&&oe.from<X)for(let K=Math.max(oe.from,V),Z=Math.min(oe.to,X);;){let re=e.state.doc.lineAt(K);for(let J of e.bidiSpans(re)){let z=J.from+re.from,q=J.to+re.from;if(z>=Z)break;q>K&&L(Math.max(z,K),A==null&&z<=V,Math.min(q,Z),R==null&&q>=X,J.dir)}if(K=re.to+1,K>=Z)break}return j.length==0&&L(V,A==null,X,R==null,e.textDirection),{top:I,bottom:N,horizontal:j}}function T(A,R){let B=s.top+(R?A.top:A.bottom);return{top:B,bottom:B,horizontal:[]}}}function Vze(e,t){return e.constructor==t.constructor&&e.eq(t)}class Fze{constructor(t,n){this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet(jk)!=t.state.facet(jk)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let n=0,r=t.facet(jk);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:t,scaleY:n}=this.view;(t!=this.scaleX||n!=this.scaleY)&&(this.scaleX=t,this.scaleY=n,this.dom.style.transform=`scale(${1/t}, ${1/n})`)}draw(t){if(t.length!=this.drawn.length||t.some((n,r)=>!Vze(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let o of t)o.update&&n&&o.constructor&&this.drawn[r].constructor&&o.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(o.draw(),n);for(;n;){let o=n.nextSibling;n.remove(),n=o}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const jk=Nn.define();function CK(e){return[Ii.define(t=>new Fze(t,e)),jk.of(e)]}const EK=!zn.ios,l1=Nn.define({combine(e){return If(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function zze(e={}){return[l1.of(e),Qze,Wze,Yze,qq.of(!0)]}function TK(e){return e.startState.facet(l1)!=e.state.facet(l1)}const Qze=CK({above:!0,markers(e){let{state:t}=e,n=t.facet(l1),r=[];for(let o of t.selection.ranges){let i=o==t.selection.main;if(o.empty?!i||EK:n.drawRangeCursor){let a=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=o.empty?o:jt.cursor(o.head,o.head>o.anchor?-1:1);for(let l of J1.forRange(e,a,s))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=TK(e);return n&&_9(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){_9(t.state,e)},class:"cm-cursorLayer"});function _9(e,t){t.style.animationDuration=e.facet(l1).cursorBlinkRate+"ms"}const Wze=CK({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:J1.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||TK(e)},class:"cm-selectionLayer"}),PK={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};EK&&(PK[".cm-line"].caretColor="transparent !important");const Yze=Nm.highest(kn.theme(PK)),$K=xr.define({map(e,t){return e==null?null:t.mapPos(e)}}),X_=ya.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is($K)?r.value:n,e)}}),Uze=Ii.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(X_);n==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(X_)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(X_),n=t!=null&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(X_)!=e&&this.view.dispatch({effects:$K.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Hze(){return[X_,Uze]}function O9(e,t,n,r,o){t.lastIndex=0;for(let i=e.iterRange(n,r),a=n,s;!i.next().done;a+=i.value.length)if(!i.lineBreak)for(;s=t.exec(i.value);)o(a+s.index,s)}function Zze(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:o,to:i}of n)o=Math.max(e.state.doc.lineAt(o).from,o-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),r.length&&r[r.length-1].to>=o?r[r.length-1].to=i:r.push({from:o,to:i});return r}class Xze{constructor(t){const{regexp:n,decoration:r,decorate:o,boundary:i,maxLength:a=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,o)this.addMatch=(s,l,u,f)=>o(f,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,f)=>{let h=r(s,l,u);h&&f(u,u+s[0].length,h)};else if(r)this.addMatch=(s,l,u,f)=>f(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=a}createDeco(t){let n=new gp,r=n.add.bind(n);for(let{from:o,to:i}of Zze(t,this.maxLength))O9(t.state.doc,this.regexp,o,i,(a,s)=>this.addMatch(s,t,a,r));return n.finish()}updateDeco(t,n){let r=1e9,o=-1;return t.docChanged&&t.changes.iterChanges((i,a,s,l)=>{l>t.view.viewport.from&&s<t.view.viewport.to&&(r=Math.min(s,r),o=Math.max(l,o))}),t.viewportChanged||o-r>1e3?this.createDeco(t.view):o>-1?this.updateRange(t.view,n.map(t.changes),r,o):n}updateRange(t,n,r,o){for(let i of t.visibleRanges){let a=Math.max(i.from,r),s=Math.min(i.to,o);if(s>a){let l=t.state.doc.lineAt(a),u=l.to<s?t.state.doc.lineAt(s):l,f=Math.max(i.from,l.from),h=Math.min(i.to,u.to);if(this.boundary){for(;a>l.from;a--)if(this.boundary.test(l.text[a-1-l.from])){f=a;break}for(;s<u.to;s++)if(this.boundary.test(u.text[s-u.from])){h=s;break}}let m=[],y,O=(b,k,C)=>m.push(C.range(b,k));if(l==u)for(this.regexp.lastIndex=f-l.from;(y=this.regexp.exec(l.text))&&y.index<h-l.from;)this.addMatch(y,t,y.index+l.from,O);else O9(t.state.doc,this.regexp,f,h,(b,k)=>this.addMatch(k,t,b,O));n=n.update({filterFrom:f,filterTo:h,filter:(b,k)=>b<f||k>h,add:m})}}return n}}const bN=/x/.unicode!=null?"gu":"g",qze=new RegExp(`[\0-\b
- -\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,bN),Kze={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let jA=null;function Gze(){var e;if(jA==null&&typeof document!="undefined"&&document.body){let t=document.body.style;jA=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return jA||!1}const Lk=Nn.define({combine(e){let t=If(e,{render:null,specialChars:qze,addSpecialChars:null});return(t.replaceTabs=!Gze())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,bN)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,bN)),t}});function Jze(e={}){return[Lk.of(e),eQe()]}let w9=null;function eQe(){return w9||(w9=Ii.fromClass(class{constructor(e){this.view=e,this.decorations=Kn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Lk)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Xze({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:o}=n.state,i=Na(t[0],0);if(i==9){let a=o.lineAt(r),s=n.state.tabSize,l=N0(a.text,s,r-a.from);return Kn.replace({widget:new oQe((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=Kn.replace({widget:new rQe(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Lk);e.startState.facet(Lk)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const tQe="\u2022";function nQe(e){return e>=32?tQe:e==10?"\u2424":String.fromCharCode(9216+e)}class rQe extends Df{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=nQe(this.code),r=t.state.phrase("Control character")+" "+(Kze[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,r,n);if(o)return o;let i=document.createElement("span");return i.textContent=n,i.title=r,i.setAttribute("aria-label",r),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class oQe extends Df{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function iQe(){return sQe}const aQe=Kn.line({class:"cm-activeLine"}),sQe=Ii.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let o=e.lineBlockAt(r.head);o.from>t&&(n.push(aQe.range(o.from)),t=o.from)}return Kn.set(n)}},{decorations:e=>e.decorations});class lQe extends Df{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let n=t.firstChild?a0(t.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(t.parentNode),o=mE(n[0],r.direction!="rtl"),i=parseInt(r.lineHeight);return o.bottom-o.top>i*1.5?{left:o.left,right:o.right,top:o.top,bottom:o.top+i}:o}ignoreEvent(){return!1}}function uQe(e){return Ii.fromClass(class{constructor(t){this.view=t,this.placeholder=e?Kn.set([Kn.widget({widget:new lQe(e),side:1}).range(0)]):Kn.none}get decorations(){return this.view.state.doc.length?Kn.none:this.placeholder}},{decorations:t=>t.decorations})}const _N=2e3;function cQe(e,t,n){let r=Math.min(t.line,n.line),o=Math.max(t.line,n.line),i=[];if(t.off>_N||n.off>_N||t.col<0||n.col<0){let a=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let l=r;l<=o;l++){let u=e.doc.line(l);u.length<=s&&i.push(jt.range(u.from+a,u.to+s))}}else{let a=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let l=r;l<=o;l++){let u=e.doc.line(l),f=JR(u.text,a,e.tabSize,!0);if(f<0)i.push(jt.cursor(u.to));else{let h=JR(u.text,s,e.tabSize);i.push(jt.range(u.from+f,u.from+h))}}}return i}function fQe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function S9(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),o=n-r.from,i=o>_N?-1:o==r.length?fQe(e,t.clientX):N0(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:o}}function dQe(e,t){let n=S9(e,t),r=e.state.selection;return n?{update(o){if(o.docChanged){let i=o.changes.mapPos(o.startState.doc.line(n.line).from),a=o.state.doc.lineAt(i);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(o.changes)}},get(o,i,a){let s=S9(e,o);if(!s)return r;let l=cQe(e.state,n,s);return l.length?a?jt.create(l.concat(r.ranges)):jt.create(l):r}}:null}function hQe(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return kn.mouseSelectionStyle.of((n,r)=>t(r)?dQe(n,r):null)}const pQe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},gQe={style:"cursor: crosshair"};function mQe(e={}){let[t,n]=pQe[e.key||"Alt"],r=Ii.fromClass(class{constructor(o){this.view=o,this.isDown=!1}set(o){this.isDown!=o&&(this.isDown=o,this.view.update([]))}},{eventObservers:{keydown(o){this.set(o.keyCode==t||n(o))},keyup(o){(o.keyCode==t||!n(o))&&this.set(!1)},mousemove(o){this.set(n(o))}}});return[r,kn.contentAttributes.of(o=>{var i;return!((i=o.plugin(r))===null||i===void 0)&&i.isDown?gQe:null})]}const Zx="-10000px";class AK{constructor(t,n,r){this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let o=t.state.facet(this.facet),i=o.filter(l=>l);if(o===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let a=[],s=n?[]:null;for(let l=0;l<i.length;l++){let u=i[l],f=-1;if(!!u){for(let h=0;h<this.tooltips.length;h++){let m=this.tooltips[h];m&&m.create==u.create&&(f=h)}if(f<0)a[l]=this.createTooltipView(u),s&&(s[l]=!!u.above);else{let h=a[l]=this.tooltipViews[f];s&&(s[l]=n[f]),h.update&&h.update(t)}}}for(let l of this.tooltipViews)a.indexOf(l)<0&&(l.dom.remove(),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(s.forEach((l,u)=>n[u]=l),n.length=s.length),this.input=o,this.tooltips=i,this.tooltipViews=a,!0}}function vQe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const LA=Nn.define({combine:e=>{var t,n,r;return{position:zn.ios?"absolute":((t=e.find(o=>o.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(o=>o.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(o=>o.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||vQe}}}),x9=new WeakMap,MK=Ii.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(LA);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new AK(e,lj,n=>this.createTooltip(n)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(LA);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let o of this.manager.tooltipViews)o.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let o of this.manager.tooltipViews)this.container.appendChild(o.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=Zx,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(e=n.destroy)===null||e===void 0||e.call(n);this.parent&&this.container.remove(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{offsetParent:o}=this.manager.tooltipViews[0].dom;r=!!(o&&o!=this.container.ownerDocument.body)}if(r||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(t=o.width/this.parent.offsetWidth,n=o.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((o,i)=>{let a=this.manager.tooltipViews[i];return a.getCoords?a.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(LA).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:o,scaleY:i}=e,a=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],u=this.manager.tooltipViews[s],{dom:f}=u,h=e.pos[s],m=e.size[s];if(!h||h.bottom<=Math.max(n.top,r.top)||h.top>=Math.min(n.bottom,r.bottom)||h.right<Math.max(n.left,r.left)-.1||h.left>Math.min(n.right,r.right)+.1){f.style.top=Zx;continue}let y=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,O=y?7:0,b=m.right-m.left,k=(t=x9.get(u))!==null&&t!==void 0?t:m.bottom-m.top,C=u.offset||bQe,P=this.view.textDirection==di.LTR,$=m.width>r.right-r.left?P?r.left:r.right-m.width:P?Math.min(h.left-(y?14:0)+C.x,r.right-b):Math.max(r.left,h.left-b+(y?14:0)-C.x),T=this.above[s];!l.strictSide&&(T?h.top-(m.bottom-m.top)-C.y<r.top:h.bottom+(m.bottom-m.top)+C.y>r.bottom)&&T==r.bottom-h.bottom>h.top-r.top&&(T=this.above[s]=!T);let A=(T?h.top-r.top:r.bottom-h.bottom)-O;if(A<k&&u.resize!==!1){if(A<this.view.defaultLineHeight){f.style.top=Zx;continue}x9.set(u,k),f.style.height=(k=A)/i+"px"}else f.style.height&&(f.style.height="");let R=T?h.top-k-O-C.y:h.bottom+O+C.y,B=$+b;if(u.overlap!==!0)for(let I of a)I.left<B&&I.right>$&&I.top<R+k&&I.bottom>R&&(R=T?I.top-k-2-O:I.bottom+O+2);if(this.position=="absolute"?(f.style.top=(R-e.parent.top)/i+"px",f.style.left=($-e.parent.left)/o+"px"):(f.style.top=R/i+"px",f.style.left=$/o+"px"),y){let I=h.left+(P?C.x:-C.x)-($+14-7);y.style.left=I/o+"px"}u.overlap!==!0&&a.push({left:$,top:R,right:B,bottom:R+k}),f.classList.toggle("cm-tooltip-above",T),f.classList.toggle("cm-tooltip-below",!T),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Zx}},{eventObservers:{scroll(){this.maybeMeasure()}}}),yQe=kn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),bQe={x:0,y:0},lj=Nn.define({enables:[MK,yQe]}),FC=Nn.define();class uj{static create(t){return new uj(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new AK(t,FC,n=>this.createHostedView(n))}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}}const _Qe=lj.compute([FC],e=>{let t=e.facet(FC).filter(n=>n);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.filter(n=>n.end!=null).map(n=>n.end)),create:uj.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class OQe{constructor(t,n,r,o,i){this.view=t,this.source=n,this.field=r,this.setHover=o,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;t<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-t):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:t,lastMove:n}=this,r=t.docView.nearest(n.target);if(!r)return;let o,i=1;if(r instanceof Wh)o=r.posAtStart;else{if(o=t.posAtCoords(n),o==null)return;let s=t.coordsAtPos(o);if(!s||n.y<s.top||n.y>s.bottom||n.x<s.left-t.defaultCharacterWidth||n.x>s.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(o)).find(f=>f.from<=o&&f.to>=o),u=l&&l.dir==di.RTL?-1:1;i=n.x<s.left?-u:u}let a=this.source(t,o,i);if(a!=null&&a.then){let s=this.pending={pos:o};a.then(l=>{this.pending==s&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>mc(t.state,l,"hover tooltip"))}else a&&t.dispatch({effects:this.setHover.of(a)})}mousemove(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let r=this.active;if(r&&!k9(this.lastMove.target)||this.pending){let{pos:o}=r||this.pending,i=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:o;(o==i?this.view.posAtCoords(this.lastMove)!=o:!wQe(this.view,o,i,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!k9(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function k9(e){for(let t=e;t;t=t.parentNode)if(t.nodeType==1&&t.classList.contains("cm-tooltip"))return!0;return!1}function wQe(e,t,n,r,o,i){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.right<r||a.top>o||Math.min(a.bottom,s)<o)return!1;let l=e.posAtCoords({x:r,y:o},!1);return l>=t&&l<=n}function SQe(e,t={}){let n=xr.define(),r=ya.define({create(){return null},update(o,i){if(o&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,o)))return null;if(o&&i.docChanged){let a=i.changes.mapPos(o.pos,-1,ja.TrackDel);if(a==null)return null;let s=Object.assign(Object.create(null),o);s.pos=a,o.end!=null&&(s.end=i.changes.mapPos(o.end)),o=s}for(let a of i.effects)a.is(n)&&(o=a.value),a.is(xQe)&&(o=null);return o},provide:o=>FC.from(o)});return[r,Ii.define(o=>new OQe(o,e,r,n,t.hoverTime||300)),_Qe]}function RK(e,t){let n=e.plugin(MK);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const xQe=xr.define(),C9=Nn.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function u1(e,t){let n=e.plugin(NK),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const NK=Ii.fromClass(class{constructor(e){this.input=e.state.facet(c1),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(C9);this.top=new Xx(e,!0,t.topContainer),this.bottom=new Xx(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(C9);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Xx(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Xx(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(c1);if(n!=this.input){let r=n.filter(l=>l),o=[],i=[],a=[],s=[];for(let l of r){let u=this.specs.indexOf(l),f;u<0?(f=l(e.view),s.push(f)):(f=this.panels[u],f.update&&f.update(e)),o.push(f),(f.top?i:a).push(f)}this.specs=r,this.panels=o,this.top.sync(i),this.bottom.sync(a);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>kn.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Xx{constructor(t,n,r){this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let n of this.panels)n.destroy&&t.indexOf(n)<0&&n.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let t=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;t!=n.dom;)t=E9(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=E9(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function E9(e){let t=e.nextSibling;return e.remove(),t}const c1=Nn.define({enables:NK});class Ed extends wm{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Ed.prototype.elementClass="";Ed.prototype.toDOM=void 0;Ed.prototype.mapMode=ja.TrackBefore;Ed.prototype.startSide=Ed.prototype.endSide=-1;Ed.prototype.point=!0;const Bk=Nn.define(),kQe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>po.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},OO=Nn.define();function CQe(e){return[IK(),OO.of(Object.assign(Object.assign({},kQe),e))]}const ON=Nn.define({combine:e=>e.some(t=>t)});function IK(e){let t=[EQe];return e&&e.fixed===!1&&t.push(ON.of(!0)),t}const EQe=Ii.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(OO).map(t=>new P9(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(ON),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(ON)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=po.iter(this.view.state.facet(Bk),this.view.viewport.from),r=[],o=this.gutters.map(i=>new TQe(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(i.type)){let a=!0;for(let s of i.type)if(s.type==$s.Text&&a){wN(n,r,s.from);for(let l of o)l.line(this.view,s,r);a=!1}else if(s.widget)for(let l of o)l.widget(this.view,s)}else if(i.type==$s.Text){wN(n,r,i.from);for(let a of o)a.line(this.view,i,r)}else if(i.widget)for(let a of o)a.widget(this.view,i);for(let i of o)i.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(OO),n=e.state.facet(OO),r=e.docChanged||e.heightChanged||e.viewportChanged||!po.eq(e.startState.facet(Bk),e.state.facet(Bk),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let o of this.gutters)o.update(e)&&(r=!0);else{r=!0;let o=[];for(let i of n){let a=t.indexOf(i);a<0?o.push(new P9(this.view,i)):(this.gutters[a].update(e),o.push(this.gutters[a]))}for(let i of this.gutters)i.dom.remove(),o.indexOf(i)<0&&i.destroy();for(let i of o)this.dom.appendChild(i.dom);this.gutters=o}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>kn.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==di.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function T9(e){return Array.isArray(e)?e:[e]}function wN(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class TQe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=po.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:o}=this,i=(n.top-this.height)/t.scaleY,a=n.height/t.scaleY;if(this.i==o.elements.length){let s=new DK(t,a,i,r);o.elements.push(s),o.dom.appendChild(s.dom)}else o.elements[this.i].update(t,a,i,r);this.height=n.bottom,this.i++}line(t,n,r){let o=[];wN(this.cursor,o,n.from),r.length&&(o=o.concat(r));let i=this.gutter.config.lineMarker(t,n,o);i&&o.unshift(i);let a=this.gutter;o.length==0&&!a.config.renderEmptyElements||this.addElement(t,n,o)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class P9{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,o=>{let i=o.target,a;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let l=i.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=o.clientY;let s=t.lineBlockAtHeight(a-t.documentTop);n.domEventHandlers[r](t,s,o)&&o.preventDefault()});this.markers=T9(n.markers(t)),n.initialSpacer&&(this.spacer=new DK(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=T9(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let o=this.config.updateSpacer(this.spacer.markers[0],t);o!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[o])}let r=t.view.viewport;return!po.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class DK{constructor(t,n,r,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,o)}update(t,n,r,o){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),PQe(this.markers,o)||this.setMarkers(t,o)}setMarkers(t,n){let r="cm-gutterElement",o=this.dom.firstChild;for(let i=0,a=0;;){let s=a,l=i<n.length?n[i++]:null,u=!1;if(l){let f=l.elementClass;f&&(r+=" "+f);for(let h=a;h<this.markers.length;h++)if(this.markers[h].compare(l)){s=h,u=!0;break}}else s=this.markers.length;for(;a<s;){let f=this.markers[a++];if(f.toDOM){f.destroy(o);let h=o.nextSibling;o.remove(),o=h}}if(!l)break;l.toDOM&&(u?o=o.nextSibling:this.dom.insertBefore(l.toDOM(t),o)),u&&a++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function PQe(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}const $Qe=Nn.define(),yy=Nn.define({combine(e){return If(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,n){let r=Object.assign({},t);for(let o in n){let i=r[o],a=n[o];r[o]=i?(s,l,u)=>i(s,l,u)||a(s,l,u):a}return r}})}});class BA extends Ed{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function VA(e,t){return e.state.facet(yy).formatNumber(t,e.state)}const AQe=OO.compute([yy],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet($Qe)},lineMarker(t,n,r){return r.some(o=>o.toDOM)?null:new BA(VA(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(yy)!=t.state.facet(yy),initialSpacer(t){return new BA(VA(t,$9(t.state.doc.lines)))},updateSpacer(t,n){let r=VA(n.view,$9(n.view.state.doc.lines));return r==t.number?t:new BA(r)},domEventHandlers:e.facet(yy).domEventHandlers}));function MQe(e={}){return[yy.of(e),IK(),AQe]}function $9(e){let t=9;for(;t<e;)t=t*10+9;return t}const RQe=new class extends Ed{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},NQe=Bk.compute(["selection"],e=>{let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.head).from;o>n&&(n=o,t.push(RQe.range(o)))}return po.of(t)});function IQe(){return NQe}const jK=1024;let DQe=0;class FA{constructor(t,n){this.from=t,this.to=n}}class Xr{constructor(t={}){this.id=DQe++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=al.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Xr.closedBy=new Xr({deserialize:e=>e.split(" ")});Xr.openedBy=new Xr({deserialize:e=>e.split(" ")});Xr.group=new Xr({deserialize:e=>e.split(" ")});Xr.contextHash=new Xr({perNode:!0});Xr.lookAhead=new Xr({perNode:!0});Xr.mounted=new Xr({perNode:!0});class zC{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Xr.mounted.id]}}const jQe=Object.create(null);class al{constructor(t,n,r,o=0){this.name=t,this.props=n,this.id=r,this.flags=o}static define(t){let n=t.props&&t.props.length?Object.create(null):jQe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),o=new al(t.name||"",n,t.id,r);if(t.props){for(let i of t.props)if(Array.isArray(i)||(i=i(o)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[i[0].id]=i[1]}}return o}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Xr.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let o of r.split(" "))n[o]=t[r];return r=>{for(let o=r.prop(Xr.group),i=-1;i<(o?o.length:0);i++){let a=n[i<0?r.name:o[i]];if(a)return a}}}}al.none=new al("",Object.create(null),0,8);class cj{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let o=null;for(let i of t){let a=i(r);a&&(o||(o=Object.assign({},r.props)),o[a[0].id]=a[1])}n.push(o?new al(r.name,o,r.id,r.flags):r)}return new cj(n)}}const qx=new WeakMap,A9=new WeakMap;var ta;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(ta||(ta={}));class Qi{constructor(t,n,r,o,i){if(this.type=t,this.children=n,this.positions=r,this.length=o,this.props=null,i&&i.length){this.props=Object.create(null);for(let[a,s]of i)this.props[typeof a=="number"?a:a.id]=s}}toString(){let t=zC.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let o=r.toString();o&&(n&&(n+=","),n+=o)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new xN(this.topNode,t)}cursorAt(t,n=0,r=0){let o=qx.get(this)||this.topNode,i=new xN(o);return i.moveTo(t,n),qx.set(this,i._tree),i}get topNode(){return new rl(this,0,0,null)}resolve(t,n=0){let r=f1(qx.get(this)||this.topNode,t,n,!1);return qx.set(this,r),r}resolveInner(t,n=0){let r=f1(A9.get(this)||this.topNode,t,n,!0);return A9.set(this,r),r}resolveStack(t,n=0){return VQe(this,t,n)}iterate(t){let{enter:n,leave:r,from:o=0,to:i=this.length}=t,a=t.mode||0,s=(a&ta.IncludeAnonymous)>0;for(let l=this.cursor(a|ta.IncludeAnonymous);;){let u=!1;if(l.from<=i&&l.to>=o&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:hj(al.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,o)=>new Qi(this.type,n,r,o,this.propValues),t.makeTree||((n,r,o)=>new Qi(al.none,n,r,o)))}static build(t){return FQe(t)}}Qi.empty=new Qi(al.none,[],[],0);class fj{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new fj(this.buffer,this.index)}}class Im{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return al.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],o=this.set.types[n],i=o.name;if(/\W/.test(i)&&!o.isError&&(i=JSON.stringify(i)),t+=4,r==t)return i;let a=[];for(;t<r;)a.push(this.childString(t)),t=this.buffer[t+3];return i+"("+a.join(",")+")"}findChild(t,n,r,o,i){let{buffer:a}=this,s=-1;for(let l=t;l!=n&&!(LK(i,o,a[l+1],a[l+2])&&(s=l,r>0));l=a[l+3]);return s}slice(t,n,r){let o=this.buffer,i=new Uint16Array(n-t),a=0;for(let s=t,l=0;s<n;){i[l++]=o[s++],i[l++]=o[s++]-r;let u=i[l++]=o[s++]-r;i[l++]=o[s++]-t,a=Math.max(a,u)}return new Im(i,a,this.set)}}function LK(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function f1(e,t,n,r){for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let a=!r&&e instanceof rl&&e.index<0?null:e.parent;if(!a)return e;e=a}let i=r?0:ta.IgnoreOverlays;if(r)for(let a=e,s=a.parent;s;a=s,s=a.parent)a instanceof rl&&a.index<0&&((o=s.enter(t,n,i))===null||o===void 0?void 0:o.from)!=a.from&&(e=s);for(;;){let a=e.enter(t,n,i);if(!a)return e;e=a}}class BK{cursor(t=0){return new xN(this,t)}getChild(t,n=null,r=null){let o=M9(this,t,n,r);return o.length?o[0]:null}getChildren(t,n=null,r=null){return M9(this,t,n,r)}resolve(t,n=0){return f1(this,t,n,!1)}resolveInner(t,n=0){return f1(this,t,n,!0)}matchContext(t){return SN(this,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let o=n.lastChild;if(!o||o.to!=n.to)break;o.type.isError&&o.from==o.to?(r=n,n=o.prevSibling):n=o}return r}get node(){return this}get next(){return this.parent}}class rl extends BK{constructor(t,n,r,o){super(),this._tree=t,this.from=n,this.index=r,this._parent=o}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,o,i=0){for(let a=this;;){for(let{children:s,positions:l}=a._tree,u=n>0?s.length:-1;t!=u;t+=n){let f=s[t],h=l[t]+a.from;if(!!LK(o,r,h,h+f.length)){if(f instanceof Im){if(i&ta.ExcludeBuffers)continue;let m=f.findChild(0,f.buffer.length,n,r-h,o);if(m>-1)return new df(new LQe(a,f,t,h),null,m)}else if(i&ta.IncludeAnonymous||!f.type.isAnonymous||dj(f)){let m;if(!(i&ta.IgnoreMounts)&&(m=zC.get(f))&&!m.overlay)return new rl(m.tree,h,t,a);let y=new rl(f,h,t,a);return i&ta.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(n<0?f.children.length-1:0,n,r,o)}}}if(i&ta.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?t=a.index+n:t=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let o;if(!(r&ta.IgnoreOverlays)&&(o=zC.get(this._tree))&&o.overlay){let i=t-this.from;for(let{from:a,to:s}of o.overlay)if((n>0?a<=i:a<i)&&(n<0?s>=i:s>i))return new rl(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function M9(e,t,n,r){let o=e.cursor(),i=[];if(!o.firstChild())return i;if(n!=null){for(;!o.type.is(n);)if(!o.nextSibling())return i}for(;;){if(r!=null&&o.type.is(r))return i;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return r==null?i:[]}}function SN(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class LQe{constructor(t,n,r,o){this.parent=t,this.buffer=n,this.index=r,this.start=o}}class df extends BK{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],t,n-this.context.start,r);return i<0?null:new df(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&ta.ExcludeBuffers)return null;let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return i<0?null:new df(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new df(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new df(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,o=this.index+4,i=r.buffer[this.index+3];if(i>o){let a=r.buffer[this.index+1];t.push(r.slice(o,i,a)),n.push(0)}return new Qi(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function VK(e){if(!e.length)return null;if(e.length==1)return e[0];let t=0,n=e[0];for(let i=1;i<e.length;i++){let a=e[i];(a.from>n.from||a.to<n.to)&&(n=a,t=i)}let r=n instanceof rl&&n.index<0?null:n.parent,o=e.slice();return r?o[t]=r:o.splice(t,1),new BQe(o,n)}class BQe{constructor(t,n){this.heads=t,this.node=n}get next(){return VK(this.heads)}}function VQe(e,t,n){let r=e.resolveInner(t,n),o=null;for(let i=r instanceof rl?r:r.context.parent;i;i=i.parent)if(i.index<0){let a=i.parent;(o||(o=[r])).push(a.resolve(t,n)),i=a}else{let a=zC.get(i.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let s=new rl(a.tree,a.overlay[0].from+i.from,0,null);(o||(o=[r])).push(f1(s,t,n,!1))}}return o?VK(o):r}class xN{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof rl)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:o}=this.buffer;return this.type=n||o.set.types[o.buffer[t]],this.from=r+o.buffer[t+1],this.to=r+o.buffer[t+2],!0}yield(t){return t?t instanceof rl?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:o}=this.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],t,n-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&ta.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ta.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&ta.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let o=r<0?0:this.stack[r]+4;if(this.index!=o)return this.yieldBuf(n.findChild(o,this.index,-1,0,4))}else{let o=n.buffer[this.index+3];if(o<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(o)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:o}=this;if(o){if(t>0){if(this.index<o.buffer.buffer.length)return!1}else for(let i=0;i<this.index;i++)if(o.buffer.buffer[i+3]<this.index)return!1;({index:n,parent:r}=o)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let i=n+t,a=t<0?-1:r._tree.children.length;i!=a;i+=t){let s=r._tree.children[i];if(this.mode&ta.IncludeAnonymous||s instanceof Im||!s.type.isAnonymous||dj(s))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer){e:for(let o=this.index,i=this.stack.length;i>=0;){for(let a=t;a;a=a._parent)if(a.index==o){if(o==this.index)return a;n=a,r=i+1;break e}o=this.stack[--i]}}for(let o=r;o<this.stack.length;o++)n=new df(this.buffer,n,this.stack[o]);return this.bufferNode=new df(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let o=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(o=!0)}for(;o&&n&&n(this),o=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,o=!0}}}matchContext(t){if(!this.buffer)return SN(this.node,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let o=t.length-1,i=this.stack.length-1;o>=0;i--){if(i<0)return SN(this.node,t,o);let a=r[n.buffer[this.stack[i]]];if(!a.isAnonymous){if(t[o]&&t[o]!=a.name)return!1;o--}}return!0}}function dj(e){return e.children.some(t=>t instanceof Im||!t.type.isAnonymous||dj(t))}function FQe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:o=jK,reused:i=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new fj(n,n.length):n,l=r.types,u=0,f=0;function h(T,A,R,B,I){let{id:N,start:j,end:L,size:V}=s,X=f;for(;V<0;)if(s.next(),V==-1){let J=i[N];R.push(J),B.push(j-T);return}else if(V==-3){u=N;return}else if(V==-4){f=N;return}else throw new RangeError(`Unrecognized record size: ${V}`);let oe=l[N],K,Z,re=j-T;if(L-j<=o&&(Z=b(s.pos-A,I))){let J=new Uint16Array(Z.size-Z.skip),z=s.pos-Z.size,q=J.length;for(;s.pos>z;)q=k(Z.start,J,q);K=new Im(J,L-Z.start,r),re=Z.start-T}else{let J=s.pos-V;s.next();let z=[],q=[],ue=N>=a?N:-1,he=0,le=L;for(;s.pos>J;)ue>=0&&s.id==ue&&s.size>=0?(s.end<=le-o&&(y(z,q,j,he,s.end,le,ue,X),he=z.length,le=s.end),s.next()):h(j,J,z,q,ue);if(ue>=0&&he>0&&he<z.length&&y(z,q,j,he,j,le,ue,X),z.reverse(),q.reverse(),ue>-1&&he>0){let ze=m(oe);K=hj(oe,z,q,0,z.length,0,L-j,ze,ze)}else K=O(oe,z,q,L-j,X-L)}R.push(K),B.push(re)}function m(T){return(A,R,B)=>{let I=0,N=A.length-1,j,L;if(N>=0&&(j=A[N])instanceof Qi){if(!N&&j.type==T&&j.length==B)return j;(L=j.prop(Xr.lookAhead))&&(I=R[N]+j.length+L)}return O(T,A,R,B,I)}}function y(T,A,R,B,I,N,j,L){let V=[],X=[];for(;T.length>B;)V.push(T.pop()),X.push(A.pop()+R-I);T.push(O(r.types[j],V,X,N-I,L-N)),A.push(I-R)}function O(T,A,R,B,I=0,N){if(u){let j=[Xr.contextHash,u];N=N?[j].concat(N):[j]}if(I>25){let j=[Xr.lookAhead,I];N=N?[j].concat(N):[j]}return new Qi(T,A,R,B,N)}function b(T,A){let R=s.fork(),B=0,I=0,N=0,j=R.end-o,L={size:0,start:0,skip:0};e:for(let V=R.pos-T;R.pos>V;){let X=R.size;if(R.id==A&&X>=0){L.size=B,L.start=I,L.skip=N,N+=4,B+=4,R.next();continue}let oe=R.pos-X;if(X<0||oe<V||R.start<j)break;let K=R.id>=a?4:0,Z=R.start;for(R.next();R.pos>oe;){if(R.size<0)if(R.size==-3)K+=4;else break e;else R.id>=a&&(K+=4);R.next()}I=Z,B+=X,N+=K}return(A<0||B==T)&&(L.size=B,L.start=I,L.skip=N),L.size>4?L:void 0}function k(T,A,R){let{id:B,start:I,end:N,size:j}=s;if(s.next(),j>=0&&B<a){let L=R;if(j>4){let V=s.pos-(j-4);for(;s.pos>V;)R=k(T,A,R)}A[--R]=L,A[--R]=N-T,A[--R]=I-T,A[--R]=B}else j==-3?u=B:j==-4&&(f=B);return R}let C=[],P=[];for(;s.pos>0;)h(e.start||0,e.bufferStart||0,C,P,-1);let $=(t=e.length)!==null&&t!==void 0?t:C.length?P[0]+C[0].length:0;return new Qi(l[e.topID],C.reverse(),P.reverse(),$)}const R9=new WeakMap;function Vk(e,t){if(!e.isAnonymous||t instanceof Im||t.type!=e)return 1;let n=R9.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Qi)){n=1;break}n+=Vk(e,r)}R9.set(t,n)}return n}function hj(e,t,n,r,o,i,a,s,l){let u=0;for(let O=r;O<o;O++)u+=Vk(e,t[O]);let f=Math.ceil(u*1.5/8),h=[],m=[];function y(O,b,k,C,P){for(let $=k;$<C;){let T=$,A=b[$],R=Vk(e,O[$]);for($++;$<C;$++){let B=Vk(e,O[$]);if(R+B>=f)break;R+=B}if($==T+1){if(R>f){let B=O[T];y(B.children,B.positions,0,B.children.length,b[T]+P);continue}h.push(O[T])}else{let B=b[$-1]+O[$-1].length-A;h.push(hj(e,O,b,T,$,A,B,null,l))}m.push(A+P-i)}}return y(t,n,r,o,0),(s||l)(h,m,a)}class zQe{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let o=this.map.get(t);o||this.map.set(t,o=new Map),o.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof df?this.setBuffer(t.context.buffer,t.index,n):t instanceof rl&&this.map.set(t.tree,n)}get(t){return t instanceof df?this.getBuffer(t.context.buffer,t.index):t instanceof rl?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class lm{constructor(t,n,r,o,i=!1,a=!1){this.from=t,this.to=n,this.tree=r,this.offset=o,this.open=(i?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let o=[new lm(0,t.length,t,0,!1,r)];for(let i of n)i.to>t.length&&o.push(i);return o}static applyChanges(t,n,r=128){if(!n.length)return t;let o=[],i=1,a=t.length?t[0]:null;for(let s=0,l=0,u=0;;s++){let f=s<n.length?n[s]:null,h=f?f.fromA:1e9;if(h-l>=r)for(;a&&a.from<h;){let m=a;if(l>=m.from||h<=m.to||u){let y=Math.max(m.from,l)-u,O=Math.min(m.to,h)-u;m=y>=O?null:new lm(y,O,m.tree,m.offset+u,s>0,!!f)}if(m&&o.push(m),a.to>h)break;a=i<t.length?t[i++]:null}if(!f)break;l=f.toA,u=f.toA-f.toB}return o}}class FK{startParse(t,n,r){return typeof t=="string"&&(t=new QQe(t)),r=r?r.length?r.map(o=>new FA(o.from,o.to)):[new FA(0,0)]:[new FA(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let o=this.startParse(t,n,r);for(;;){let i=o.advance();if(i)return i}}}class QQe{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}new Xr({perNode:!0});let WQe=0;class af{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=WQe++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new af([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new QC;return n=>n.modified.indexOf(t)>-1?n:QC.get(n.base||n,n.modified.concat(t).sort((r,o)=>r.id-o.id))}}let YQe=0;class QC{constructor(){this.instances=[],this.id=YQe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&UQe(n,s.modified));if(r)return r;let o=[],i=new af(o,t,n);for(let s of n)s.instances.push(i);let a=HQe(n);for(let s of t.set)if(!s.modified.length)for(let l of a)o.push(QC.get(s,l));return i}}function UQe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function HQe(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,o=t.length;r<o;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function pj(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let o of n.split(" "))if(o){let i=[],a=2,s=o;for(let h=0;;){if(s=="..."&&h>0&&h+3==o.length){a=1;break}let m=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!m)throw new RangeError("Invalid path: "+o);if(i.push(m[0]=="*"?"":m[0][0]=='"'?JSON.parse(m[0]):m[0]),h+=m[0].length,h==o.length)break;let y=o[h++];if(h==o.length&&y=="!"){a=0;break}if(y!="/")throw new RangeError("Invalid path: "+o);s=o.slice(h)}let l=i.length-1,u=i[l];if(!u)throw new RangeError("Invalid path: "+o);let f=new WC(r,a,l>0?i.slice(0,l):null);t[u]=f.sort(t[u])}}return zK.add(t)}const zK=new Xr;class WC{constructor(t,n,r,o){this.tags=t,this.mode=n,this.context=r,this.next=o}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}WC.empty=new WC([],2,null);function QK(e,t){let n=Object.create(null);for(let i of e)if(!Array.isArray(i.tag))n[i.tag.id]=i.class;else for(let a of i.tag)n[a.id]=i.class;let{scope:r,all:o=null}=t||{};return{style:i=>{let a=o;for(let s of i)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function ZQe(e,t){let n=null;for(let r of e){let o=r.style(t);o&&(n=n?n+" "+o:o)}return n}function XQe(e,t,n,r=0,o=e.length){let i=new qQe(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}class qQe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,o,i){let{type:a,from:s,to:l}=t;if(s>=r||l<=n)return;a.isTop&&(i=this.highlighters.filter(y=>!y.scope||y.scope(a)));let u=o,f=KQe(t)||WC.empty,h=ZQe(i,f.tags);if(h&&(u&&(u+=" "),u+=h,f.mode==1&&(o+=(o?" ":"")+h)),this.startSpan(Math.max(n,s),u),f.opaque)return;let m=t.tree&&t.tree.prop(Xr.mounted);if(m&&m.overlay){let y=t.node.enter(m.overlay[0].from+s,1),O=this.highlighters.filter(k=>!k.scope||k.scope(m.tree.type)),b=t.firstChild();for(let k=0,C=s;;k++){let P=k<m.overlay.length?m.overlay[k]:null,$=P?P.from+s:l,T=Math.max(n,C),A=Math.min(r,$);if(T<A&&b)for(;t.from<A&&(this.highlightRange(t,T,A,o,i),this.startSpan(Math.min(A,t.to),u),!(t.to>=$||!t.nextSibling())););if(!P||$>r)break;C=P.to+s,C>n&&(this.highlightRange(y.cursor(),Math.max(n,P.from+s),Math.min(r,C),"",O),this.startSpan(Math.min(r,C),u))}b&&t.parent()}else if(t.firstChild()){m&&(o="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,o,i),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function KQe(e){let t=e.type.prop(zK);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const pn=af.define,Kx=pn(),Ih=pn(),N9=pn(Ih),I9=pn(Ih),Dh=pn(),Gx=pn(Dh),zA=pn(Dh),rf=pn(),Ng=pn(rf),tf=pn(),nf=pn(),kN=pn(),D_=pn(kN),Jx=pn(),yt={comment:Kx,lineComment:pn(Kx),blockComment:pn(Kx),docComment:pn(Kx),name:Ih,variableName:pn(Ih),typeName:N9,tagName:pn(N9),propertyName:I9,attributeName:pn(I9),className:pn(Ih),labelName:pn(Ih),namespace:pn(Ih),macroName:pn(Ih),literal:Dh,string:Gx,docString:pn(Gx),character:pn(Gx),attributeValue:pn(Gx),number:zA,integer:pn(zA),float:pn(zA),bool:pn(Dh),regexp:pn(Dh),escape:pn(Dh),color:pn(Dh),url:pn(Dh),keyword:tf,self:pn(tf),null:pn(tf),atom:pn(tf),unit:pn(tf),modifier:pn(tf),operatorKeyword:pn(tf),controlKeyword:pn(tf),definitionKeyword:pn(tf),moduleKeyword:pn(tf),operator:nf,derefOperator:pn(nf),arithmeticOperator:pn(nf),logicOperator:pn(nf),bitwiseOperator:pn(nf),compareOperator:pn(nf),updateOperator:pn(nf),definitionOperator:pn(nf),typeOperator:pn(nf),controlOperator:pn(nf),punctuation:kN,separator:pn(kN),bracket:D_,angleBracket:pn(D_),squareBracket:pn(D_),paren:pn(D_),brace:pn(D_),content:rf,heading:Ng,heading1:pn(Ng),heading2:pn(Ng),heading3:pn(Ng),heading4:pn(Ng),heading5:pn(Ng),heading6:pn(Ng),contentSeparator:pn(rf),list:pn(rf),quote:pn(rf),emphasis:pn(rf),strong:pn(rf),link:pn(rf),monospace:pn(rf),strikethrough:pn(rf),inserted:pn(),deleted:pn(),changed:pn(),invalid:pn(),meta:Jx,documentMeta:pn(Jx),annotation:pn(Jx),processingInstruction:pn(Jx),definition:af.defineModifier(),constant:af.defineModifier(),function:af.defineModifier(),standard:af.defineModifier(),local:af.defineModifier(),special:af.defineModifier()};QK([{tag:yt.link,class:"tok-link"},{tag:yt.heading,class:"tok-heading"},{tag:yt.emphasis,class:"tok-emphasis"},{tag:yt.strong,class:"tok-strong"},{tag:yt.keyword,class:"tok-keyword"},{tag:yt.atom,class:"tok-atom"},{tag:yt.bool,class:"tok-bool"},{tag:yt.url,class:"tok-url"},{tag:yt.labelName,class:"tok-labelName"},{tag:yt.inserted,class:"tok-inserted"},{tag:yt.deleted,class:"tok-deleted"},{tag:yt.literal,class:"tok-literal"},{tag:yt.string,class:"tok-string"},{tag:yt.number,class:"tok-number"},{tag:[yt.regexp,yt.escape,yt.special(yt.string)],class:"tok-string2"},{tag:yt.variableName,class:"tok-variableName"},{tag:yt.local(yt.variableName),class:"tok-variableName tok-local"},{tag:yt.definition(yt.variableName),class:"tok-variableName tok-definition"},{tag:yt.special(yt.variableName),class:"tok-variableName2"},{tag:yt.definition(yt.propertyName),class:"tok-propertyName tok-definition"},{tag:yt.typeName,class:"tok-typeName"},{tag:yt.namespace,class:"tok-namespace"},{tag:yt.className,class:"tok-className"},{tag:yt.macroName,class:"tok-macroName"},{tag:yt.propertyName,class:"tok-propertyName"},{tag:yt.operator,class:"tok-operator"},{tag:yt.comment,class:"tok-comment"},{tag:yt.meta,class:"tok-meta"},{tag:yt.invalid,class:"tok-invalid"},{tag:yt.punctuation,class:"tok-punctuation"}]);var QA;const by=new Xr;function WK(e){return Nn.define({combine:e?t=>t.concat(e):void 0})}const gj=new Xr;class pc{constructor(t,n,r=[],o=""){this.data=t,this.name=o,Fr.prototype.hasOwnProperty("tree")||Object.defineProperty(Fr.prototype,"tree",{get(){return aa(this)}}),this.parser=n,this.extension=[bp.of(this),Fr.languageData.of((i,a,s)=>{let l=D9(i,a,s),u=l.type.prop(by);if(!u)return[];let f=i.facet(u),h=l.type.prop(gj);if(h){let m=l.resolve(a-l.from,s);for(let y of h)if(y.test(m,i)){let O=i.facet(y.facet);return y.type=="replace"?O:O.concat(f)}}return f})].concat(r)}isActiveAt(t,n,r=-1){return D9(t,n,r).type.prop(by)==this.data}findRegions(t){let n=t.facet(bp);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],o=(i,a)=>{if(i.prop(by)==this.data){r.push({from:a,to:a+i.length});return}let s=i.prop(Xr.mounted);if(s){if(s.tree.prop(by)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+i.length});return}else if(s.overlay){let l=r.length;if(o(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;l<i.children.length;l++){let u=i.children[l];u instanceof Qi&&o(u,i.positions[l]+a)}};return o(aa(t),0),r}get allowsNesting(){return!0}}pc.setState=xr.define();function D9(e,t,n){let r=e.facet(bp),o=aa(e).topNode;if(!r||r.allowsNesting)for(let i=o;i;i=i.enter(t,n,ta.ExcludeBuffers))i.type.isTop&&(o=i);return o}class d1 extends pc{constructor(t,n,r){super(t,n,[],r),this.parser=n}static define(t){let n=WK(t.languageData);return new d1(n,t.parser.configure({props:[by.add(r=>r.isTop?n:void 0)]}),t.name)}configure(t,n){return new d1(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function aa(e){let t=e.field(pc.state,!1);return t?t.tree:Qi.empty}class GQe{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let j_=null;class YC{constructor(t,n,r=[],o,i,a,s,l){this.parser=t,this.state=n,this.fragments=r,this.tree=o,this.treeLen=i,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new YC(t,n,[],Qi.empty,0,r,[],null)}startParse(){return this.parser.startParse(new GQe(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Qi.empty&&this.isDone(n!=null?n:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let o=Date.now()+t;t=()=>Date.now()>o}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let o=this.parse.advance();if(o)if(this.fragments=this.withoutTempSkipped(lm.addTree(o,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=o,this.parse=null,this.treeLen<(n!=null?n:this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,n;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(lm.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=j_;j_=this;try{return t()}finally{j_=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=j9(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:o,treeLen:i,viewport:a,skipped:s}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,f,h,m)=>l.push({fromA:u,toA:f,fromB:h,toB:m})),r=lm.applyChanges(r,l),o=Qi.empty,i=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let f=t.mapPos(u.from,1),h=t.mapPos(u.to,-1);f<h&&s.push({from:f,to:h})}}}return new YC(this.parser,n,r,o,i,a,s,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:o,to:i}=this.skipped[r];o<t.to&&i>t.from&&(this.fragments=j9(this.fragments,o,i),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends FK{createParse(n,r,o){let i=o[0].from,a=o[o.length-1].to;return{parsedPos:i,advance(){let l=j_;if(l){for(let u of o)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=a,new Qi(al.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return j_}}function j9(e,t,n){return lm.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class l0{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new l0(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=YC.create(t.facet(bp).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new l0(r)}}pc.state=ya.define({create:l0.init,update(e,t){for(let n of t.effects)if(n.is(pc.setState))return n.value;return t.startState.facet(bp)!=t.state.facet(bp)?l0.init(t.state):e.apply(t)}});let YK=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback!="undefined"&&(YK=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:500-100})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const WA=typeof navigator!="undefined"&&((QA=navigator.scheduling)===null||QA===void 0?void 0:QA.isInputPending)?()=>navigator.scheduling.isInputPending():null,JQe=Ii.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(pc.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(pc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=YK(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:o}}=this.view,i=r.field(pc.state);if(i.tree==i.context.tree&&i.context.isDone(o+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,t&&!WA?Math.max(25,t.timeRemaining()-5):1e9),s=i.context.treeLen<o&&r.doc.length>o+1e3,l=i.context.work(()=>WA&&WA()||Date.now()>a,o+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:pc.setState.of(new l0(i.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>mc(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),bp=Nn.define({combine(e){return e.length?e[0]:null},enables:e=>[pc.state,JQe,kn.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class UK{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}const e7e=Nn.define(),ew=Nn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function UC(e){let t=e.facet(ew);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function h1(e,t){let n="",r=e.tabSize,o=e.facet(ew)[0];if(o==" "){for(;t>=r;)n+=" ",t-=r;o=" "}for(let i=0;i<t;i++)n+=o;return n}function mj(e,t){e instanceof Fr&&(e=new bE(e));for(let r of e.state.facet(e7e)){let o=r(e,t);if(o!==void 0)return o}let n=aa(e.state);return n.length>=t?t7e(e,n,t):null}class bE{constructor(t,n={}){this.state=t,this.options=n,this.unit=UC(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:o,simulateDoubleBreak:i}=this.options;return o!=null&&o>=r.from&&o<=r.to?i&&o==t?{text:"",from:t}:(n<0?o<t:o<=t)?{text:r.text.slice(o-r.from),from:o}:{text:r.text.slice(0,o-r.from),from:r.from}:r}textAfterPos(t,n=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:o}=this.lineAt(t,n);return r.slice(t-o,Math.min(r.length,t+100-o))}column(t,n=1){let{text:r,from:o}=this.lineAt(t,n),i=this.countColumn(r,t-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(i+=a-this.countColumn(r,r.search(/\S|$/))),i}countColumn(t,n=t.length){return N0(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:o}=this.lineAt(t,n),i=this.options.overrideIndentation;if(i){let a=i(o);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const vj=new Xr;function t7e(e,t,n){let r=t.resolveStack(n),o=r.node.enterUnfinishedNodesBefore(n);if(o!=r.node){let i=[];for(let a=o;a!=r.node;a=a.parent)i.push(a);for(let a=i.length-1;a>=0;a--)r={node:i[a],next:r}}return HK(r,e,n)}function HK(e,t,n){for(let r=e;r;r=r.next){let o=r7e(r.node);if(o)return o(yj.create(t,n,r))}return 0}function n7e(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function r7e(e){let t=e.type.prop(vj);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Xr.closedBy))){let o=e.lastChild,i=o&&r.indexOf(o.name)>-1;return a=>ZK(a,!0,1,void 0,i&&!n7e(a)?o.from:void 0)}return e.parent==null?o7e:null}function o7e(){return 0}class yj extends bE{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new yj(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(i7e(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return HK(this.context.next,this.base,this.pos)}}function i7e(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function a7e(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let o=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),a=o==null||o<=i.from?i.to:Math.min(i.to,o);for(let s=n.to;;){let l=t.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<a?n:null;s=l.to}}function s7e({closing:e,align:t=!0,units:n=1}){return r=>ZK(r,t,n,e)}function ZK(e,t,n,r,o){let i=e.textAfter,a=i.match(/^\s*/)[0].length,s=r&&i.slice(a,a+r.length)==r||o==e.pos+a,l=t?a7e(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const l7e=e=>e.baseIndent;function wO({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const u7e=200;function c7e(){return Fr.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,o=n.lineAt(r);if(r>o.from+u7e)return e;let i=n.sliceString(o.from,r);if(!t.some(u=>u.test(i)))return e;let{state:a}=e,s=-1,l=[];for(let{head:u}of a.selection.ranges){let f=a.doc.lineAt(u);if(f.from==s)continue;s=f.from;let h=mj(a,f.from);if(h==null)continue;let m=/^\s*/.exec(f.text)[0],y=h1(a,h);m!=y&&l.push({from:f.from,to:f.from+m.length,insert:y})}return l.length?[e,{changes:l,sequential:!0}]:e})}const f7e=Nn.define(),bj=new Xr;function XK(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function d7e(e,t,n){let r=aa(e);if(r.length<n)return null;let o=r.resolveStack(n,1),i=null;for(let a=o;a;a=a.next){let s=a.node;if(s.to<=n||s.from>n)continue;if(i&&s.from<t)break;let l=s.type.prop(bj);if(l&&(s.to<r.length-50||r.length==e.doc.length||!h7e(s))){let u=l(s,e);u&&u.from<=n&&u.from>=t&&u.to>n&&(i=u)}}return i}function h7e(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function HC(e,t,n){for(let r of e.facet(f7e)){let o=r(e,t,n);if(o)return o}return d7e(e,t,n)}function qK(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const _E=xr.define({map:qK}),tw=xr.define({map:qK});function KK(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const xm=ya.define({create(){return Kn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(_E)&&!p7e(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(_j),o=r?Kn.replace({widget:new O7e(r(t.state,n.value))}):L9;e=e.update({add:[o.range(n.value.from,n.value.to)]})}else n.is(tw)&&(e=e.update({filter:(r,o)=>n.value.from!=r||n.value.to!=o,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(o,i)=>{o<r&&i>r&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(o,i)=>i<=r||o>=r}))}return e},provide:e=>kn.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,o)=>{n.push(r,o)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],o=e[n++];if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid JSON for fold state");t.push(L9.range(r,o))}return Kn.set(t,!0)}});function ZC(e,t,n){var r;let o=null;return(r=e.field(xm,!1))===null||r===void 0||r.between(t,n,(i,a)=>{(!o||o.from>i)&&(o={from:i,to:a})}),o}function p7e(e,t,n){let r=!1;return e.between(t,t,(o,i)=>{o==t&&i==n&&(r=!0)}),r}function GK(e,t){return e.field(xm,!1)?t:t.concat(xr.appendConfig.of(eG()))}const g7e=e=>{for(let t of KK(e)){let n=HC(e.state,t.from,t.to);if(n)return e.dispatch({effects:GK(e.state,[_E.of(n),JK(e,n)])}),!0}return!1},m7e=e=>{if(!e.state.field(xm,!1))return!1;let t=[];for(let n of KK(e)){let r=ZC(e.state,n.from,n.to);r&&t.push(tw.of(r),JK(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function JK(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return kn.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${o}.`)}const v7e=e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let o=e.lineBlockAt(r),i=HC(t,o.from,o.to);i&&n.push(_E.of(i)),r=(i?e.lineBlockAt(i.to):o).to+1}return n.length&&e.dispatch({effects:GK(e.state,n)}),!!n.length},y7e=e=>{let t=e.state.field(xm,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,o)=>{n.push(tw.of({from:r,to:o}))}),e.dispatch({effects:n}),!0},b7e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:g7e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:m7e},{key:"Ctrl-Alt-[",run:v7e},{key:"Ctrl-Alt-]",run:y7e}],_7e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},_j=Nn.define({combine(e){return If(e,_7e)}});function eG(e){let t=[xm,x7e];return e&&t.push(_j.of(e)),t}function tG(e,t){let{state:n}=e,r=n.facet(_j),o=a=>{let s=e.lineBlockAt(e.posAtDOM(a.target)),l=ZC(e.state,s.from,s.to);l&&e.dispatch({effects:tw.of(l)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,o,t);let i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}const L9=Kn.replace({widget:new class extends Df{toDOM(e){return tG(e,null)}}});class O7e extends Df{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return tG(t,this.value)}}const w7e={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class YA extends Ed{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function S7e(e={}){let t=Object.assign(Object.assign({},w7e),e),n=new YA(t,!0),r=new YA(t,!1),o=Ii.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(bp)!=a.state.facet(bp)||a.startState.field(xm,!1)!=a.state.field(xm,!1)||aa(a.startState)!=aa(a.state)||t.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new gp;for(let l of a.viewportLineBlocks){let u=ZC(a.state,l.from,l.to)?r:HC(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:i}=t;return[o,CQe({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(o))===null||s===void 0?void 0:s.markers)||po.empty},initialSpacer(){return new YA(t,!1)},domEventHandlers:Object.assign(Object.assign({},i),{click:(a,s,l)=>{if(i.click&&i.click(a,s,l))return!0;let u=ZC(a.state,s.from,s.to);if(u)return a.dispatch({effects:tw.of(u)}),!0;let f=HC(a.state,s.from,s.to);return f?(a.dispatch({effects:_E.of(f)}),!0):!1}})}),eG()]}const x7e=kn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class OE{constructor(t,n){this.specs=t;let r;function o(s){let l=mp.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const i=typeof n.all=="string"?n.all:n.all?o(n.all):void 0,a=n.scope;this.scope=a instanceof pc?s=>s.prop(by)==a.data:a?s=>s==a:void 0,this.style=QK(t.map(s=>({tag:s.tag,class:s.class||o(Object.assign({},s,{tag:null}))})),{all:i}).style,this.module=r?new mp(r):null,this.themeType=n.themeType}static define(t,n){return new OE(t,n||{})}}const CN=Nn.define(),nG=Nn.define({combine(e){return e.length?[e[0]]:null}});function UA(e){let t=e.facet(CN);return t.length?t:e.facet(nG)}function k7e(e,t){let n=[E7e],r;return e instanceof OE&&(e.module&&n.push(kn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(nG.of(e)):r?n.push(CN.computeN([kn.darkTheme],o=>o.facet(kn.darkTheme)==(r=="dark")?[e]:[])):n.push(CN.of(e)),n}class C7e{constructor(t){this.markCache=Object.create(null),this.tree=aa(t.state),this.decorations=this.buildDeco(t,UA(t.state))}update(t){let n=aa(t.state),r=UA(t.state),o=r!=UA(t.startState);n.length<t.view.viewport.to&&!o&&n.type==this.tree.type?this.decorations=this.decorations.map(t.changes):(n!=this.tree||t.viewportChanged||o)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r))}buildDeco(t,n){if(!n||!this.tree.length)return Kn.none;let r=new gp;for(let{from:o,to:i}of t.visibleRanges)XQe(this.tree,n,(a,s,l)=>{r.add(a,s,this.markCache[l]||(this.markCache[l]=Kn.mark({class:l})))},o,i);return r.finish()}}const E7e=Nm.high(Ii.fromClass(C7e,{decorations:e=>e.decorations})),T7e=OE.define([{tag:yt.meta,color:"#404740"},{tag:yt.link,textDecoration:"underline"},{tag:yt.heading,textDecoration:"underline",fontWeight:"bold"},{tag:yt.emphasis,fontStyle:"italic"},{tag:yt.strong,fontWeight:"bold"},{tag:yt.strikethrough,textDecoration:"line-through"},{tag:yt.keyword,color:"#708"},{tag:[yt.atom,yt.bool,yt.url,yt.contentSeparator,yt.labelName],color:"#219"},{tag:[yt.literal,yt.inserted],color:"#164"},{tag:[yt.string,yt.deleted],color:"#a11"},{tag:[yt.regexp,yt.escape,yt.special(yt.string)],color:"#e40"},{tag:yt.definition(yt.variableName),color:"#00f"},{tag:yt.local(yt.variableName),color:"#30a"},{tag:[yt.typeName,yt.namespace],color:"#085"},{tag:yt.className,color:"#167"},{tag:[yt.special(yt.variableName),yt.macroName],color:"#256"},{tag:yt.definition(yt.propertyName),color:"#00c"},{tag:yt.comment,color:"#940"},{tag:yt.invalid,color:"#f00"}]),P7e=kn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),rG=1e4,oG="()[]{}",iG=Nn.define({combine(e){return If(e,{afterCursor:!0,brackets:oG,maxScanDistance:rG,renderMatch:M7e})}}),$7e=Kn.mark({class:"cm-matchingBracket"}),A7e=Kn.mark({class:"cm-nonmatchingBracket"});function M7e(e){let t=[],n=e.matched?$7e:A7e;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const R7e=ya.define({create(){return Kn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(iG);for(let o of t.state.selection.ranges){if(!o.empty)continue;let i=hf(t.state,o.head,-1,r)||o.head>0&&hf(t.state,o.head-1,1,r)||r.afterCursor&&(hf(t.state,o.head,1,r)||o.head<t.state.doc.length&&hf(t.state,o.head+1,-1,r));i&&(n=n.concat(r.renderMatch(i,t.state)))}return Kn.set(n,!0)},provide:e=>kn.decorations.from(e)}),N7e=[R7e,P7e];function I7e(e={}){return[iG.of(e),N7e]}const D7e=new Xr;function EN(e,t,n){let r=e.prop(t<0?Xr.openedBy:Xr.closedBy);if(r)return r;if(e.name.length==1){let o=n.indexOf(e.name);if(o>-1&&o%2==(t<0?1:0))return[n[o+t]]}return null}function TN(e){let t=e.type.prop(D7e);return t?t(e.node):e}function hf(e,t,n,r={}){let o=r.maxScanDistance||rG,i=r.brackets||oG,a=aa(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=EN(l.type,n,i);if(u&&l.from<l.to){let f=TN(l);if(f&&(n>0?t>=f.from&&t<f.to:t>f.from&&t<=f.to))return j7e(e,t,n,l,f,u,i)}}return L7e(e,t,n,a,s.type,o,i)}function j7e(e,t,n,r,o,i,a){let s=r.parent,l={from:o.from,to:o.to},u=0,f=s==null?void 0:s.cursor();if(f&&(n<0?f.childBefore(r.from):f.childAfter(r.to)))do if(n<0?f.to<=r.from:f.from>=r.to){if(u==0&&i.indexOf(f.type.name)>-1&&f.from<f.to){let h=TN(f);return{start:l,end:h?{from:h.from,to:h.to}:void 0,matched:!0}}else if(EN(f.type,n,a))u++;else if(EN(f.type,-n,a)){if(u==0){let h=TN(f);return{start:l,end:h&&h.from<h.to?{from:h.from,to:h.to}:void 0,matched:!1}}u--}}while(n<0?f.prevSibling():f.nextSibling());return{start:l,matched:!1}}function L7e(e,t,n,r,o,i,a){let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},f=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let m=0;!f.next().done&&m<=i;){let y=f.value;n<0&&(m+=y.length);let O=t+m*n;for(let b=n>0?0:y.length-1,k=n>0?y.length:-1;b!=k;b+=n){let C=a.indexOf(y[b]);if(!(C<0||r.resolveInner(O+b,1).type!=o))if(C%2==0==n>0)h++;else{if(h==1)return{start:u,end:{from:O+b,to:O+b+1},matched:C>>1==l>>1};h--}}n>0&&(m+=y.length)}return f.done?{start:u,matched:!1}:null}const B7e=Object.create(null),B9=[al.none],V9=[],V7e=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])V7e[e]=F7e(B7e,t);function HA(e,t){V9.indexOf(e)>-1||(V9.push(e),console.warn(t))}function F7e(e,t){let n=null;for(let i of t.split(".")){let a=e[i]||yt[i];a?typeof a=="function"?n?n=a(n):HA(i,`Modifier ${i} used at start of tag`):n?HA(i,`Tag ${i} used as modifier`):n=a:HA(i,`Unknown highlighting tag ${i}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),o=al.define({id:B9.length,name:r,props:[pj({[r]:n})]});return B9.push(o),o.id}const z7e=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=wj(e.state,n.from);return r.line?Q7e(e):r.block?Y7e(e):!1};function Oj(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let o=e(t,n);return o?(r(n.update(o)),!0):!1}}const Q7e=Oj(Z7e,0),W7e=Oj(aG,0),Y7e=Oj((e,t)=>aG(e,t,H7e(t)),0);function wj(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const L_=50;function U7e(e,{open:t,close:n},r,o){let i=e.sliceDoc(r-L_,r),a=e.sliceDoc(o,o+L_),s=/\s*$/.exec(i)[0].length,l=/^\s*/.exec(a)[0].length,u=i.length-s;if(i.slice(u-t.length,u)==t&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:o+l,margin:l&&1}};let f,h;o-r<=2*L_?f=h=e.sliceDoc(r,o):(f=e.sliceDoc(r,r+L_),h=e.sliceDoc(o-L_,o));let m=/^\s*/.exec(f)[0].length,y=/\s*$/.exec(h)[0].length,O=h.length-y-n.length;return f.slice(m,m+t.length)==t&&h.slice(O,O+n.length)==n?{open:{pos:r+m+t.length,margin:/\s/.test(f.charAt(m+t.length))?1:0},close:{pos:o-y-n.length,margin:/\s/.test(h.charAt(O-1))?1:0}}:null}function H7e(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),o=n.to<=r.to?r:e.doc.lineAt(n.to),i=t.length-1;i>=0&&t[i].to>r.from?t[i].to=o.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return t}function aG(e,t,n=t.selection.ranges){let r=n.map(i=>wj(t,i.from).block);if(!r.every(i=>i))return null;let o=n.map((i,a)=>U7e(t,r[a],i.from,i.to));if(e!=2&&!o.every(i=>i))return{changes:t.changes(n.map((i,a)=>o[a]?[]:[{from:i.from,insert:r[a].open+" "},{from:i.to,insert:" "+r[a].close}]))};if(e!=1&&o.some(i=>i)){let i=[];for(let a=0,s;a<o.length;a++)if(s=o[a]){let l=r[a],{open:u,close:f}=s;i.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:f.pos-f.margin,to:f.pos+l.close.length})}return{changes:i}}return null}function Z7e(e,t,n=t.selection.ranges){let r=[],o=-1;for(let{from:i,to:a}of n){let s=r.length,l=1e9,u=wj(t,i).line;if(!!u){for(let f=i;f<=a;){let h=t.doc.lineAt(f);if(h.from>o&&(i==a||a>h.from)){o=h.from;let m=/^\s*/.exec(h.text)[0].length,y=m==h.length,O=h.text.slice(m,m+u.length)==u?m:-1;m<h.text.length&&m<l&&(l=m),r.push({line:h,comment:O,token:u,indent:m,empty:y,single:!1})}f=h.to+1}if(l<1e9)for(let f=s;f<r.length;f++)r[f].indent<r[f].line.text.length&&(r[f].indent=l);r.length==s+1&&(r[s].single=!0)}}if(e!=2&&r.some(i=>i.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:s,token:l,indent:u,empty:f,single:h}of r)(h||!f)&&i.push({from:s.from+u,insert:l+" "});let a=t.changes(i);return{changes:a,selection:t.selection.map(a,1)}}else if(e!=1&&r.some(i=>i.comment>=0)){let i=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,f=u+l.length;a.text[f-a.from]==" "&&f++,i.push({from:u,to:f})}return{changes:i}}return null}const PN=Bd.define(),X7e=Bd.define(),q7e=Nn.define(),sG=Nn.define({combine(e){return If(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,o)=>t(r,o)||n(r,o)})}});function K7e(e){let t=0;return e.iterChangedRanges((n,r)=>t=r),t}const lG=ya.define({create(){return pf.empty},update(e,t){let n=t.state.facet(sG),r=t.annotation(PN);if(r){let l=t.docChanged?jt.single(K7e(t.changes)):void 0,u=Js.fromTransaction(t,l),f=r.side,h=f==0?e.undone:e.done;return u?h=XC(h,h.length,n.minDepth,u):h=fG(h,t.startState.selection),new pf(f==0?r.rest:h,f==0?h:r.rest)}let o=t.annotation(X7e);if((o=="full"||o=="before")&&(e=e.isolate()),t.annotation(na.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let i=Js.fromTransaction(t),a=t.annotation(na.time),s=t.annotation(na.userEvent);return i?e=e.addChanges(i,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),(o=="full"||o=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new pf(e.done.map(Js.fromJSON),e.undone.map(Js.fromJSON))}});function G7e(e={}){return[lG,sG.of(e),kn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?uG:t.inputType=="historyRedo"?$N:null;return r?(t.preventDefault(),r(n)):!1}})]}function wE(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let o=n.field(lG,!1);if(!o)return!1;let i=o.pop(e,n,t);return i?(r(i),!0):!1}}const uG=wE(0,!1),$N=wE(1,!1),J7e=wE(0,!0),eWe=wE(1,!0);class Js{constructor(t,n,r,o,i){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=o,this.selectionsAfter=i}setSelAfter(t){return new Js(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(o=>o.toJSON())}}static fromJSON(t){return new Js(t.changes&&ea.fromJSON(t.changes),[],t.mapped&&mf.fromJSON(t.mapped),t.startSelection&&jt.fromJSON(t.startSelection),t.selectionsAfter.map(jt.fromJSON))}static fromTransaction(t,n){let r=Su;for(let o of t.startState.facet(q7e)){let i=o(t);i.length&&(r=r.concat(i))}return!r.length&&t.changes.empty?null:new Js(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Su)}static selection(t){return new Js(void 0,Su,void 0,void 0,t)}}function XC(e,t,n,r){let o=t+1>n+20?t-n-1:0,i=e.slice(o,t);return i.push(r),i}function tWe(e,t){let n=[],r=!1;return e.iterChangedRanges((o,i)=>n.push(o,i)),t.iterChangedRanges((o,i,a,s)=>{for(let l=0;l<n.length;){let u=n[l++],f=n[l++];s>=u&&a<=f&&(r=!0)}}),r}function nWe(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function cG(e,t){return e.length?t.length?e.concat(t):e:t}const Su=[],rWe=200;function fG(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-rWe));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),XC(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Js.selection([t])]}function oWe(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function ZA(e,t){if(!e.length)return e;let n=e.length,r=Su;for(;n;){let o=iWe(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){let i=e.slice(0,n);return i[n-1]=o,i}else t=o.mapped,n--,r=o.selectionsAfter}return r.length?[Js.selection(r)]:Su}function iWe(e,t,n){let r=cG(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):Su,n);if(!e.changes)return Js.selection(r);let o=e.changes.map(t),i=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(i):i;return new Js(o,xr.mapEffects(e.effects,t),a,e.startSelection.map(i),r)}const aWe=/^(input\.type|delete)($|\.)/;class pf{constructor(t,n,r=0,o=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=o}isolate(){return this.prevTime?new pf(this.done,this.undone):this}addChanges(t,n,r,o,i){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&t.changes&&(!r||aWe.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,tWe(s.changes,t.changes))||r=="input.type.compose")?a=XC(a,a.length-1,o.minDepth,new Js(t.changes.compose(s.changes),cG(t.effects,s.effects),s.mapped,s.startSelection,Su)):a=XC(a,a.length,o.minDepth,t),new pf(a,Su,n,r)}addSelection(t,n,r,o){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Su;return i.length>0&&n-this.prevTime<o&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&nWe(i[i.length-1],t)?this:new pf(fG(this.done,t),this.undone,n,r)}addMapping(t){return new pf(ZA(this.done,t),ZA(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,n,r){let o=t==0?this.done:this.undone;if(o.length==0)return null;let i=o[o.length-1];if(r&&i.selectionsAfter.length)return n.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:PN.of({side:t,rest:oWe(o)}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let a=o.length==1?Su:o.slice(0,o.length-1);return i.mapped&&(a=ZA(a,i.mapped)),n.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:PN.of({side:t,rest:a}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}}pf.empty=new pf(Su,Su);const sWe=[{key:"Mod-z",run:uG,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:$N,preventDefault:!0},{linux:"Ctrl-Shift-z",run:$N,preventDefault:!0},{key:"Mod-u",run:J7e,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:eWe,preventDefault:!0}];function I0(e,t){return jt.create(e.ranges.map(t),e.mainIndex)}function jf(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Tc({state:e,dispatch:t},n){let r=I0(e.selection,n);return r.eq(e.selection)?!1:(t(jf(e,r)),!0)}function SE(e,t){return jt.cursor(t?e.to:e.from)}function dG(e,t){return Tc(e,n=>n.empty?e.moveByChar(n,t):SE(n,t))}function fs(e){return e.textDirectionAt(e.state.selection.main.head)==di.LTR}const hG=e=>dG(e,!fs(e)),pG=e=>dG(e,fs(e));function gG(e,t){return Tc(e,n=>n.empty?e.moveByGroup(n,t):SE(n,t))}const lWe=e=>gG(e,!fs(e)),uWe=e=>gG(e,fs(e));function cWe(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function xE(e,t,n){let r=aa(e).resolveInner(t.head),o=n?Xr.closedBy:Xr.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;cWe(e,u,o)?r=u:l=n?u.to:u.from}let i=r.type.prop(o),a,s;return i&&(a=n?hf(e,r.from,1):hf(e,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,jt.cursor(s,n?-1:1)}const fWe=e=>Tc(e,t=>xE(e.state,t,!fs(e))),dWe=e=>Tc(e,t=>xE(e.state,t,fs(e)));function mG(e,t){return Tc(e,n=>{if(!n.empty)return SE(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const vG=e=>mG(e,!1),yG=e=>mG(e,!0);function bG(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,o;if(t){for(let i of e.state.facet(kn.scrollMargins)){let a=i(e);a!=null&&a.top&&(n=Math.max(a==null?void 0:a.top,n)),a!=null&&a.bottom&&(r=Math.max(a==null?void 0:a.bottom,r))}o=e.scrollDOM.clientHeight-n-r}else o=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,o-5)}}function _G(e,t){let n=bG(e),{state:r}=e,o=I0(r.selection,a=>a.empty?e.moveVertically(a,t,n.height):SE(a,t));if(o.eq(r.selection))return!1;let i;if(n.selfScroll){let a=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottom<u&&(i=kn.scrollIntoView(o.main.head,{y:"start",yMargin:a.top-l}))}return e.dispatch(jf(r,o),{effects:i}),!0}const F9=e=>_G(e,!1),AN=e=>_G(e,!0);function Rp(e,t,n){let r=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?r.to:r.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==r.from&&r.length){let i=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&t.head!=r.from+i&&(o=jt.cursor(r.from+i))}return o}const hWe=e=>Tc(e,t=>Rp(e,t,!0)),pWe=e=>Tc(e,t=>Rp(e,t,!1)),gWe=e=>Tc(e,t=>Rp(e,t,!fs(e))),mWe=e=>Tc(e,t=>Rp(e,t,fs(e))),vWe=e=>Tc(e,t=>jt.cursor(e.lineBlockAt(t.head).from,1)),yWe=e=>Tc(e,t=>jt.cursor(e.lineBlockAt(t.head).to,-1));function bWe(e,t,n){let r=!1,o=I0(e.selection,i=>{let a=hf(e,i.head,-1)||hf(e,i.head,1)||i.head>0&&hf(e,i.head-1,1)||i.head<e.doc.length&&hf(e,i.head+1,-1);if(!a||!a.end)return i;r=!0;let s=a.start.from==i.head?a.end.to:a.end.from;return n?jt.range(i.anchor,s):jt.cursor(s)});return r?(t(jf(e,o)),!0):!1}const _We=({state:e,dispatch:t})=>bWe(e,t,!1);function Bu(e,t){let n=I0(e.state.selection,r=>{let o=t(r);return jt.range(r.anchor,o.head,o.goalColumn,o.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(jf(e.state,n)),!0)}function OG(e,t){return Bu(e,n=>e.moveByChar(n,t))}const wG=e=>OG(e,!fs(e)),SG=e=>OG(e,fs(e));function xG(e,t){return Bu(e,n=>e.moveByGroup(n,t))}const OWe=e=>xG(e,!fs(e)),wWe=e=>xG(e,fs(e)),SWe=e=>Bu(e,t=>xE(e.state,t,!fs(e))),xWe=e=>Bu(e,t=>xE(e.state,t,fs(e)));function kG(e,t){return Bu(e,n=>e.moveVertically(n,t))}const CG=e=>kG(e,!1),EG=e=>kG(e,!0);function TG(e,t){return Bu(e,n=>e.moveVertically(n,t,bG(e).height))}const z9=e=>TG(e,!1),Q9=e=>TG(e,!0),kWe=e=>Bu(e,t=>Rp(e,t,!0)),CWe=e=>Bu(e,t=>Rp(e,t,!1)),EWe=e=>Bu(e,t=>Rp(e,t,!fs(e))),TWe=e=>Bu(e,t=>Rp(e,t,fs(e))),PWe=e=>Bu(e,t=>jt.cursor(e.lineBlockAt(t.head).from)),$We=e=>Bu(e,t=>jt.cursor(e.lineBlockAt(t.head).to)),W9=({state:e,dispatch:t})=>(t(jf(e,{anchor:0})),!0),Y9=({state:e,dispatch:t})=>(t(jf(e,{anchor:e.doc.length})),!0),U9=({state:e,dispatch:t})=>(t(jf(e,{anchor:e.selection.main.anchor,head:0})),!0),H9=({state:e,dispatch:t})=>(t(jf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),AWe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),MWe=({state:e,dispatch:t})=>{let n=kE(e).map(({from:r,to:o})=>jt.range(r,Math.min(o+1,e.doc.length)));return t(e.update({selection:jt.create(n),userEvent:"select"})),!0},RWe=({state:e,dispatch:t})=>{let n=I0(e.selection,r=>{var o;let i=aa(e).resolveStack(r.from,1);for(let a=i;a;a=a.next){let{node:s}=a;if((s.from<r.from&&s.to>=r.to||s.to>r.to&&s.from<=r.from)&&((o=s.parent)===null||o===void 0?void 0:o.parent))return jt.range(s.to,s.from)}return r});return t(jf(e,n)),!0},NWe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=jt.create([n.main]):n.main.empty||(r=jt.create([jt.cursor(n.main.head)])),r?(t(jf(e,r)),!0):!1};function nw(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,o=r.changeByRange(i=>{let{from:a,to:s}=i;if(a==s){let l=t(i);l<a?(n="delete.backward",l=ek(e,l,!1)):l>a&&(n="delete.forward",l=ek(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=ek(e,a,!1),s=ek(e,s,!0);return a==s?{range:i}:{changes:{from:a,to:s},range:jt.cursor(a,a<i.head?-1:1)}});return o.changes.empty?!1:(e.dispatch(r.update(o,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?kn.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function ek(e,t,n){if(e instanceof kn)for(let r of e.state.facet(kn.atomicRanges).map(o=>o(e)))r.between(t,t,(o,i)=>{o<t&&i>t&&(t=n?i:o)});return t}const PG=(e,t)=>nw(e,n=>{let r=n.from,{state:o}=e,i=o.doc.lineAt(r),a,s;if(!t&&r>i.from&&r<i.from+200&&!/[^ \t]/.test(a=i.text.slice(0,r-i.from))){if(a[a.length-1]==" ")return r-1;let l=N0(a,o.tabSize),u=l%UC(o)||UC(o);for(let f=0;f<u&&a[a.length-1-f]==" ";f++)r--;s=r}else s=as(i.text,r-i.from,t,t)+i.from,s==r&&i.number!=(t?o.doc.lines:1)&&(s+=t?1:-1);return s}),MN=e=>PG(e,!1),$G=e=>PG(e,!0),AG=(e,t)=>nw(e,n=>{let r=n.head,{state:o}=e,i=o.doc.lineAt(r),a=o.charCategorizer(r);for(let s=null;;){if(r==(t?i.to:i.from)){r==n.head&&i.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}let l=as(i.text,r-i.from,t)+i.from,u=i.text.slice(Math.min(r,l)-i.from,Math.max(r,l)-i.from),f=a(u);if(s!=null&&f!=s)break;(u!=" "||r!=n.head)&&(s=f),r=l}return r}),MG=e=>AG(e,!1),IWe=e=>AG(e,!0),DWe=e=>nw(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),jWe=e=>nw(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),LWe=e=>nw(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),BWe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:lo.of(["",""])},range:jt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},VWe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let o=r.from,i=e.doc.lineAt(o),a=o==i.from?o-1:as(i.text,o-i.from,!1)+i.from,s=o==i.to?o+1:as(i.text,o-i.from,!0)+i.from;return{changes:{from:a,to:s,insert:e.doc.slice(o,s).append(e.doc.slice(a,o))},range:jt.cursor(s)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function kE(e){let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.from),i=e.doc.lineAt(r.to);if(!r.empty&&r.to==i.from&&(i=e.doc.lineAt(r.to-1)),n>=o.number){let a=t[t.length-1];a.to=i.to,a.ranges.push(r)}else t.push({from:o.from,to:i.to,ranges:[r]});n=i.number+1}return t}function RG(e,t,n){if(e.readOnly)return!1;let r=[],o=[];for(let i of kE(e)){if(n?i.to==e.doc.length:i.from==0)continue;let a=e.doc.lineAt(n?i.to+1:i.from-1),s=a.length+1;if(n){r.push({from:i.to,to:a.to},{from:i.from,insert:a.text+e.lineBreak});for(let l of i.ranges)o.push(jt.range(Math.min(e.doc.length,l.anchor+s),Math.min(e.doc.length,l.head+s)))}else{r.push({from:a.from,to:i.from},{from:i.to,insert:e.lineBreak+a.text});for(let l of i.ranges)o.push(jt.range(l.anchor-s,l.head-s))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:jt.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const FWe=({state:e,dispatch:t})=>RG(e,t,!1),zWe=({state:e,dispatch:t})=>RG(e,t,!0);function NG(e,t,n){if(e.readOnly)return!1;let r=[];for(let o of kE(e))n?r.push({from:o.from,insert:e.doc.slice(o.from,o.to)+e.lineBreak}):r.push({from:o.to,insert:e.lineBreak+e.doc.slice(o.from,o.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const QWe=({state:e,dispatch:t})=>NG(e,t,!1),WWe=({state:e,dispatch:t})=>NG(e,t,!0),YWe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(kE(t).map(({from:o,to:i})=>(o>0?o--:i<t.doc.length&&i++,{from:o,to:i}))),r=I0(t.selection,o=>e.moveVertically(o,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function UWe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=aa(e).resolveInner(t),r=n.childBefore(t),o=n.childAfter(t),i;return r&&o&&r.to<=t&&o.from>=t&&(i=r.type.prop(Xr.closedBy))&&i.indexOf(o.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(r.to,o.from))?{from:r.to,to:o.from}:null}const HWe=IG(!1),ZWe=IG(!0);function IG(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(o=>{let{from:i,to:a}=o,s=t.doc.lineAt(i),l=!e&&i==a&&UWe(t,i);e&&(i=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new bE(t,{simulateBreak:i,simulateDoubleBreak:!!l}),f=mj(u,i);for(f==null&&(f=N0(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));a<s.to&&/\s/.test(s.text[a-s.from]);)a++;l?{from:i,to:a}=l:i>s.from&&i<s.from+100&&!/\S/.test(s.text.slice(0,i))&&(i=s.from);let h=["",h1(t,f)];return l&&h.push(h1(t,u.lineIndent(s.from,-1))),{changes:{from:i,to:a,insert:lo.of(h)},range:jt.cursor(i+1+h[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function Sj(e,t){let n=-1;return e.changeByRange(r=>{let o=[];for(let a=r.from;a<=r.to;){let s=e.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(t(s,o,r),n=s.number),a=s.to+1}let i=e.changes(o);return{changes:o,range:jt.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}})}const XWe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new bE(e,{overrideIndentation:i=>{let a=n[i];return a==null?-1:a}}),o=Sj(e,(i,a,s)=>{let l=mj(r,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let u=/^\s*/.exec(i.text)[0],f=h1(e,l);(u!=f||s.from<i.from+u.length)&&(n[i.from]=l,a.push({from:i.from,to:i.from+u.length,insert:f}))});return o.changes.empty||t(e.update(o,{userEvent:"indent"})),!0},DG=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(Sj(e,(n,r)=>{r.push({from:n.from,insert:e.facet(ew)})}),{userEvent:"input.indent"})),!0),jG=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(Sj(e,(n,r)=>{let o=/^\s*/.exec(n.text)[0];if(!o)return;let i=N0(o,e.tabSize),a=0,s=h1(e,Math.max(0,i-UC(e)));for(;a<o.length&&a<s.length&&o.charCodeAt(a)==s.charCodeAt(a);)a++;r.push({from:n.from+a,to:n.from+o.length,insert:s.slice(a)})}),{userEvent:"delete.dedent"})),!0),qWe=[{key:"Ctrl-b",run:hG,shift:wG,preventDefault:!0},{key:"Ctrl-f",run:pG,shift:SG},{key:"Ctrl-p",run:vG,shift:CG},{key:"Ctrl-n",run:yG,shift:EG},{key:"Ctrl-a",run:vWe,shift:PWe},{key:"Ctrl-e",run:yWe,shift:$We},{key:"Ctrl-d",run:$G},{key:"Ctrl-h",run:MN},{key:"Ctrl-k",run:DWe},{key:"Ctrl-Alt-h",run:MG},{key:"Ctrl-o",run:BWe},{key:"Ctrl-t",run:VWe},{key:"Ctrl-v",run:AN}],KWe=[{key:"ArrowLeft",run:hG,shift:wG,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:lWe,shift:OWe,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:gWe,shift:EWe,preventDefault:!0},{key:"ArrowRight",run:pG,shift:SG,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:uWe,shift:wWe,preventDefault:!0},{mac:"Cmd-ArrowRight",run:mWe,shift:TWe,preventDefault:!0},{key:"ArrowUp",run:vG,shift:CG,preventDefault:!0},{mac:"Cmd-ArrowUp",run:W9,shift:U9},{mac:"Ctrl-ArrowUp",run:F9,shift:z9},{key:"ArrowDown",run:yG,shift:EG,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Y9,shift:H9},{mac:"Ctrl-ArrowDown",run:AN,shift:Q9},{key:"PageUp",run:F9,shift:z9},{key:"PageDown",run:AN,shift:Q9},{key:"Home",run:pWe,shift:CWe,preventDefault:!0},{key:"Mod-Home",run:W9,shift:U9},{key:"End",run:hWe,shift:kWe,preventDefault:!0},{key:"Mod-End",run:Y9,shift:H9},{key:"Enter",run:HWe},{key:"Mod-a",run:AWe},{key:"Backspace",run:MN,shift:MN},{key:"Delete",run:$G},{key:"Mod-Backspace",mac:"Alt-Backspace",run:MG},{key:"Mod-Delete",mac:"Alt-Delete",run:IWe},{mac:"Mod-Backspace",run:jWe},{mac:"Mod-Delete",run:LWe}].concat(qWe.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),GWe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:fWe,shift:SWe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:dWe,shift:xWe},{key:"Alt-ArrowUp",run:FWe},{key:"Shift-Alt-ArrowUp",run:QWe},{key:"Alt-ArrowDown",run:zWe},{key:"Shift-Alt-ArrowDown",run:WWe},{key:"Escape",run:NWe},{key:"Mod-Enter",run:ZWe},{key:"Alt-l",mac:"Ctrl-l",run:MWe},{key:"Mod-i",run:RWe,preventDefault:!0},{key:"Mod-[",run:jG},{key:"Mod-]",run:DG},{key:"Mod-Alt-\\",run:XWe},{key:"Shift-Mod-k",run:YWe},{key:"Shift-Mod-\\",run:_We},{key:"Mod-/",run:z7e},{key:"Alt-A",run:W7e}].concat(KWe),JWe={key:"Tab",run:DG,shift:jG};function Vo(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r];typeof o=="string"?e.setAttribute(r,o):o!=null&&(e[r]=o)}t++}for(;t<arguments.length;t++)LG(e,arguments[t]);return e}function LG(e,t){if(typeof t=="string")e.appendChild(document.createTextNode(t));else if(t!=null)if(t.nodeType!=null)e.appendChild(t);else if(Array.isArray(t))for(var n=0;n<t.length;n++)LG(e,t[n]);else throw new RangeError("Unsupported child node: "+t)}const Z9=typeof String.prototype.normalize=="function"?e=>e.normalize("NFKD"):e=>e;class u0{constructor(t,n,r=0,o=t.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,o),this.bufferStart=r,this.normalize=i?s=>i(Z9(s)):Z9,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Na(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let n=J3(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=bu(t);let o=this.normalize(n);for(let i=0,a=r;;i++){let s=o.charCodeAt(i),l=this.match(s,a);if(i==o.length-1){if(l)return this.value=l,this;break}a==r&&i<n.length&&n.charCodeAt(i)==s&&a++}}}match(t,n){let r=null;for(let o=0;o<this.matches.length;o+=2){let i=this.matches[o],a=!1;this.query.charCodeAt(i)==t&&(i==this.query.length-1?r={from:this.matches[o+1],to:n+1}:(this.matches[o]++,a=!0)),a||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==t&&(this.query.length==1?r={from:n,to:n+1}:this.matches.push(1,n)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol!="undefined"&&(u0.prototype[Symbol.iterator]=function(){return this});const BG={from:-1,to:-1,match:/.*/.exec("")},xj="gm"+(/x/.unicode==null?"":"u");class VG{constructor(t,n,r,o=0,i=t.length){if(this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=BG,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new FG(t,n,r,o,i);this.re=new RegExp(n,xj+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=t.iter();let a=t.lineAt(o);this.curLineStart=a.from,this.matchPos=qC(t,o),this.getLine(this.curLineStart)}getLine(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,o=r+n[0].length;if(this.matchPos=qC(this.text,o+(r==o?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<o||r>this.value.to)&&(!this.test||this.test(r,o,n)))return this.value={from:r,to:o,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),t=0;else return this.done=!0,this}}}const XA=new WeakMap;class jy{constructor(t,n){this.from=t,this.text=n}get to(){return this.from+this.text.length}static get(t,n,r){let o=XA.get(t);if(!o||o.from>=r||o.to<=n){let s=new jy(n,t.sliceString(n,r));return XA.set(t,s),s}if(o.from==n&&o.to==r)return o;let{text:i,from:a}=o;return a>n&&(i=t.sliceString(n,a)+i,a=n),o.to<r&&(i+=t.sliceString(o.to,r)),XA.set(t,new jy(a,i)),new jy(n,i.slice(n-a,r-a))}}class FG{constructor(t,n,r,o,i){this.text=t,this.to=i,this.done=!1,this.value=BG,this.matchPos=qC(t,o),this.re=new RegExp(n,xj+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=jy.get(t,o,this.chunkEnd(o+5e3))}chunkEnd(t){return t>=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,o=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,o,n)))return this.value={from:r,to:o,match:n},this.matchPos=qC(this.text,o+(r==o?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=jy.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol!="undefined"&&(VG.prototype[Symbol.iterator]=FG.prototype[Symbol.iterator]=function(){return this});function eYe(e){try{return new RegExp(e,xj),!0}catch{return!1}}function qC(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}function RN(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=Vo("input",{class:"cm-textfield",name:"line",value:t}),r=Vo("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),e.dispatch({effects:KC.of(!1)}),e.focus()):i.keyCode==13&&(i.preventDefault(),o())},onsubmit:i=>{i.preventDefault(),o()}},Vo("label",e.state.phrase("Go to line"),": ",n)," ",Vo("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function o(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!i)return;let{state:a}=e,s=a.doc.lineAt(a.selection.main.head),[,l,u,f,h]=i,m=f?+f.slice(1):0,y=u?+u:s.number;if(u&&h){let k=y/100;l&&(k=k*(l=="-"?-1:1)+s.number/a.doc.lines),y=Math.round(a.doc.lines*k)}else u&&l&&(y=y*(l=="-"?-1:1)+s.number);let O=a.doc.line(Math.max(1,Math.min(a.doc.lines,y))),b=jt.cursor(O.from+Math.max(0,Math.min(m,O.length)));e.dispatch({effects:[KC.of(!1),kn.scrollIntoView(b.from,{y:"center"})],selection:b}),e.focus()}return{dom:r}}const KC=xr.define(),X9=ya.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(KC)&&(e=n.value);return e},provide:e=>c1.from(e,t=>t?RN:null)}),tYe=e=>{let t=u1(e,RN);if(!t){let n=[KC.of(!0)];e.state.field(X9,!1)==null&&n.push(xr.appendConfig.of([X9,nYe])),e.dispatch({effects:n}),t=u1(e,RN)}return t&&t.dom.querySelector("input").select(),!0},nYe=kn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),rYe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},zG=Nn.define({combine(e){return If(e,rYe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function oYe(e){let t=[uYe,lYe];return e&&t.push(zG.of(e)),t}const iYe=Kn.mark({class:"cm-selectionMatch"}),aYe=Kn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function q9(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=oi.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=oi.Word)}function sYe(e,t,n,r){return e(t.sliceDoc(n,n+1))==oi.Word&&e(t.sliceDoc(r-1,r))==oi.Word}const lYe=Ii.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(zG),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Kn.none;let o=r.main,i,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return Kn.none;let l=n.wordAt(o.head);if(!l)return Kn.none;a=n.charCategorizer(o.head),i=n.sliceDoc(l.from,l.to)}else{let l=o.to-o.from;if(l<t.minSelectionLength||l>200)return Kn.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),a=n.charCategorizer(o.head),!(q9(a,n,o.from,o.to)&&sYe(a,n,o.from,o.to)))return Kn.none}else if(i=n.sliceDoc(o.from,o.to).trim(),!i)return Kn.none}let s=[];for(let l of e.visibleRanges){let u=new u0(n.doc,i,l.from,l.to);for(;!u.next().done;){let{from:f,to:h}=u.value;if((!a||q9(a,n,f,h))&&(o.empty&&f<=o.from&&h>=o.to?s.push(aYe.range(f,h)):(f>=o.to||h<=o.from)&&s.push(iYe.range(f,h)),s.length>t.maxMatches))return Kn.none}}return Kn.set(s)}},{decorations:e=>e.decorations}),uYe=kn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),cYe=({state:e,dispatch:t})=>{let{selection:n}=e,r=jt.create(n.ranges.map(o=>e.wordAt(o.head)||jt.cursor(o.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function fYe(e,t){let{main:n,ranges:r}=e.selection,o=e.wordAt(n.head),i=o&&o.from==n.from&&o.to==n.to;for(let a=!1,s=new u0(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new u0(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),a=!0}else{if(a&&r.some(l=>l.from==s.value.from))continue;if(i){let l=e.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const dYe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(i=>i.from===i.to))return cYe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(i=>e.sliceDoc(i.from,i.to)!=r))return!1;let o=fYe(e,r);return o?(t(e.update({selection:e.selection.addRange(jt.range(o.from,o.to),!1),effects:kn.scrollIntoView(o.to)})),!0):!1},D0=Nn.define({combine(e){return If(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new xYe(t),scrollToMatch:t=>kn.scrollIntoView(t)})}});class QG{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||eYe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
- `:r=="r"?"\r":r=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new mYe(this):new pYe(this)}getCursor(t,n=0,r){let o=t.doc?t:Fr.create({doc:t});return r==null&&(r=o.doc.length),this.regexp?fy(this,o,n,r):cy(this,o,n,r)}}class WG{constructor(t){this.spec=t}}function cy(e,t,n,r){return new u0(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:o=>o.toLowerCase(),e.wholeWord?hYe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function hYe(e,t){return(n,r,o,i)=>((i>n||i+o.length<r)&&(i=Math.max(0,n-2),o=e.sliceString(i,Math.min(e.length,r+2))),(t(GC(o,n-i))!=oi.Word||t(JC(o,n-i))!=oi.Word)&&(t(JC(o,r-i))!=oi.Word||t(GC(o,r-i))!=oi.Word))}class pYe extends WG{constructor(t){super(t)}nextMatch(t,n,r){let o=cy(this.spec,t,r,t.doc.length).nextOverlapping();return o.done&&(o=cy(this.spec,t,0,n).nextOverlapping()),o.done?null:o.value}prevMatchInRange(t,n,r){for(let o=r;;){let i=Math.max(n,o-1e4-this.spec.unquoted.length),a=cy(this.spec,t,i,o),s=null;for(;!a.nextOverlapping().done;)s=a.value;if(s)return s;if(i==n)return null;o-=1e4}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace)}matchAll(t,n){let r=cy(this.spec,t,0,t.doc.length),o=[];for(;!r.next().done;){if(o.length>=n)return null;o.push(r.value)}return o}highlight(t,n,r,o){let i=cy(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!i.next().done;)o(i.value.from,i.value.to)}}function fy(e,t,n,r){return new VG(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?gYe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function GC(e,t){return e.slice(as(e,t,!1),t)}function JC(e,t){return e.slice(t,as(e,t))}function gYe(e){return(t,n,r)=>!r[0].length||(e(GC(r.input,r.index))!=oi.Word||e(JC(r.input,r.index))!=oi.Word)&&(e(JC(r.input,r.index+r[0].length))!=oi.Word||e(GC(r.input,r.index+r[0].length))!=oi.Word)}class mYe extends WG{nextMatch(t,n,r){let o=fy(this.spec,t,r,t.doc.length).next();return o.done&&(o=fy(this.spec,t,0,n).next()),o.done?null:o.value}prevMatchInRange(t,n,r){for(let o=1;;o++){let i=Math.max(n,r-o*1e4),a=fy(this.spec,t,i,r),s=null;for(;!a.next().done;)s=a.value;if(s&&(i==n||s.from>i+10))return s;if(i==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r<t.match.length?t.match[r]:n))}matchAll(t,n){let r=fy(this.spec,t,0,t.doc.length),o=[];for(;!r.next().done;){if(o.length>=n)return null;o.push(r.value)}return o}highlight(t,n,r,o){let i=fy(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!i.next().done;)o(i.value.from,i.value.to)}}const p1=xr.define(),kj=xr.define(),Gh=ya.define({create(e){return new qA(NN(e).create(),null)},update(e,t){for(let n of t.effects)n.is(p1)?e=new qA(n.value.create(),e.panel):n.is(kj)&&(e=new qA(e.query,n.value?Cj:null));return e},provide:e=>c1.from(e,t=>t.panel)});class qA{constructor(t,n){this.query=t,this.panel=n}}const vYe=Kn.mark({class:"cm-searchMatch"}),yYe=Kn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),bYe=Ii.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Gh))}update(e){let t=e.state.field(Gh);(t!=e.startState.field(Gh)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Kn.none;let{view:n}=this,r=new gp;for(let o=0,i=n.visibleRanges,a=i.length;o<a;o++){let{from:s,to:l}=i[o];for(;o<a-1&&l>i[o+1].from-2*250;)l=i[++o].to;e.highlight(n.state,s,l,(u,f)=>{let h=n.state.selection.ranges.some(m=>m.from==u&&m.to==f);r.add(u,f,h?yYe:vYe)})}return r.finish()}},{decorations:e=>e.decorations});function rw(e){return t=>{let n=t.state.field(Gh,!1);return n&&n.query.spec.valid?e(t,n):HG(t)}}const e2=rw((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let o=jt.single(r.from,r.to),i=e.state.facet(D0);return e.dispatch({selection:o,effects:[Ej(e,r),i.scrollToMatch(o.main,e)],userEvent:"select.search"}),UG(e),!0}),t2=rw((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,o=t.prevMatch(n,r,r);if(!o)return!1;let i=jt.single(o.from,o.to),a=e.state.facet(D0);return e.dispatch({selection:i,effects:[Ej(e,o),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),UG(e),!0}),_Ye=rw((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:jt.create(n.map(r=>jt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),OYe=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:o}=n.main,i=[],a=0;for(let s=new u0(e.doc,e.sliceDoc(r,o));!s.next().done;){if(i.length>1e3)return!1;s.value.from==r&&(a=i.length),i.push(jt.range(s.value.from,s.value.to))}return t(e.update({selection:jt.create(i,a),userEvent:"select.search.matches"})),!0},K9=rw((e,{query:t})=>{let{state:n}=e,{from:r,to:o}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,r,r);if(!i)return!1;let a=[],s,l,u=[];if(i.from==r&&i.to==o&&(l=n.toText(t.getReplacement(i)),a.push({from:i.from,to:i.to,insert:l}),i=t.nextMatch(n,i.from,i.to),u.push(kn.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),i){let f=a.length==0||a[0].from>=i.to?0:i.to-i.from-l.length;s=jt.single(i.from-f,i.to-f),u.push(Ej(e,i)),u.push(n.facet(D0).scrollToMatch(s.main,e))}return e.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),wYe=rw((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(o=>{let{from:i,to:a}=o;return{from:i,to:a,insert:t.getReplacement(o)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:kn.announce.of(r),userEvent:"input.replace.all"}),!0});function Cj(e){return e.state.facet(D0).createPanel(e)}function NN(e,t){var n,r,o,i,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(D0);return new QG({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(o=t==null?void 0:t.literal)!==null&&o!==void 0?o:u.literal,regexp:(i=t==null?void 0:t.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(a=t==null?void 0:t.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function YG(e){let t=u1(e,Cj);return t&&t.dom.querySelector("[main-field]")}function UG(e){let t=YG(e);t&&t==e.root.activeElement&&t.select()}const HG=e=>{let t=e.state.field(Gh,!1);if(t&&t.panel){let n=YG(e);if(n&&n!=e.root.activeElement){let r=NN(e.state,t.query.spec);r.valid&&e.dispatch({effects:p1.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[kj.of(!0),t?p1.of(NN(e.state,t.query.spec)):xr.appendConfig.of(CYe)]});return!0},ZG=e=>{let t=e.state.field(Gh,!1);if(!t||!t.panel)return!1;let n=u1(e,Cj);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:kj.of(!1)}),!0},SYe=[{key:"Mod-f",run:HG,scope:"editor search-panel"},{key:"F3",run:e2,shift:t2,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:e2,shift:t2,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:ZG,scope:"editor search-panel"},{key:"Mod-Shift-l",run:OYe},{key:"Alt-g",run:tYe},{key:"Mod-d",run:dYe,preventDefault:!0}];class xYe{constructor(t){this.view=t;let n=this.query=t.state.field(Gh).query.spec;this.commit=this.commit.bind(this),this.searchField=Vo("input",{value:n.search,placeholder:El(t,"Find"),"aria-label":El(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Vo("input",{value:n.replace,placeholder:El(t,"Replace"),"aria-label":El(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Vo("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Vo("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Vo("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(o,i,a){return Vo("button",{class:"cm-button",name:o,onclick:i,type:"button"},a)}this.dom=Vo("div",{onkeydown:o=>this.keydown(o),class:"cm-search"},[this.searchField,r("next",()=>e2(t),[El(t,"next")]),r("prev",()=>t2(t),[El(t,"previous")]),r("select",()=>_Ye(t),[El(t,"all")]),Vo("label",null,[this.caseField,El(t,"match case")]),Vo("label",null,[this.reField,El(t,"regexp")]),Vo("label",null,[this.wordField,El(t,"by word")]),...t.state.readOnly?[]:[Vo("br"),this.replaceField,r("replace",()=>K9(t),[El(t,"replace")]),r("replaceAll",()=>wYe(t),[El(t,"replace all")])],Vo("button",{name:"close",onclick:()=>ZG(t),"aria-label":El(t,"close"),type:"button"},["\xD7"])])}commit(){let t=new QG({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:p1.of(t)}))}keydown(t){Dze(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?t2:e2)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),K9(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(p1)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(D0).top}}function El(e,t){return e.state.phrase(t)}const tk=30,nk=/[\s\.,:;?!]/;function Ej(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),o=e.state.doc.lineAt(n).to,i=Math.max(r.from,t-tk),a=Math.min(o,n+tk),s=e.state.sliceDoc(i,a);if(i!=r.from){for(let l=0;l<tk;l++)if(!nk.test(s[l+1])&&nk.test(s[l])){s=s.slice(l);break}}if(a!=o){for(let l=s.length-1;l>s.length-tk;l--)if(!nk.test(s[l-1])&&nk.test(s[l])){s=s.slice(0,l);break}}return kn.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const kYe=kn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),CYe=[Gh,Nm.low(bYe),kYe];class XG{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=aa(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),o=n.text.slice(r-n.from,this.pos-n.from),i=o.search(KG(t,!1));return i<0?null:{from:r+i,to:this.pos,text:o.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function G9(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function EYe(e){let t=Object.create(null),n=Object.create(null);for(let{label:o}of e){t[o[0]]=!0;for(let i=1;i<o.length;i++)n[o[i]]=!0}let r=G9(t)+G9(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function qG(e){let t=e.map(o=>typeof o=="string"?{label:o}:o),[n,r]=t.every(o=>/^\w+$/.test(o.label))?[/\w*$/,/\w+$/]:EYe(t);return o=>{let i=o.matchBefore(r);return i||o.explicit?{from:i?i.from:o.pos,options:t,validFor:n}:null}}function TYe(e,t){return n=>{for(let r=aa(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}class J9{constructor(t,n,r,o){this.completion=t,this.source=n,this.match=r,this.score=o}}function Jh(e){return e.selection.main.from}function KG(e,t){var n;let{source:r}=e,o=t&&r[0]!="^",i=r[r.length-1]!="$";return!o&&!i?e:new RegExp(`${o?"^":""}(?:${r})${i?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const GG=Bd.define();function PYe(e,t,n,r){let{main:o}=e.selection,i=n-o.from,a=r-o.from;return Object.assign(Object.assign({},e.changeByRange(s=>s!=o&&n!=r&&e.sliceDoc(s.from+i,s.from+a)!=e.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+i,to:r==o.from?s.to:s.from+a,insert:t},range:jt.cursor(s.from+i+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const ez=new WeakMap;function $Ye(e){if(!Array.isArray(e))return e;let t=ez.get(e);return t||ez.set(e,t=qG(e)),t}const Tj=xr.define(),g1=xr.define();class AYe{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<t.length;){let r=Na(t,n),o=bu(r);this.chars.push(r);let i=t.slice(n,n+o),a=i.toUpperCase();this.folded.push(Na(a==i?i.toLowerCase():a,0)),n+=o}this.astral=t.length!=this.chars.length}ret(t,n){return this.score=t,this.matched=n,!0}match(t){if(this.pattern.length==0)return this.ret(-100,[]);if(t.length<this.pattern.length)return!1;let{chars:n,folded:r,any:o,precise:i,byWord:a}=this;if(n.length==1){let P=Na(t,0),$=bu(P),T=$==t.length?0:-100;if(P!=n[0])if(P==r[0])T+=-200;else return!1;return this.ret(T,[0,$])}let s=t.indexOf(this.pattern);if(s==0)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,u=0;if(s<0){for(let P=0,$=Math.min(t.length,200);P<$&&u<l;){let T=Na(t,P);(T==n[u]||T==r[u])&&(o[u++]=P),P+=bu(T)}if(u<l)return!1}let f=0,h=0,m=!1,y=0,O=-1,b=-1,k=/[a-z]/.test(t),C=!0;for(let P=0,$=Math.min(t.length,200),T=0;P<$&&h<l;){let A=Na(t,P);s<0&&(f<l&&A==n[f]&&(i[f++]=P),y<l&&(A==n[y]||A==r[y]?(y==0&&(O=P),b=P+1,y++):y=0));let R,B=A<255?A>=48&&A<=57||A>=97&&A<=122?2:A>=65&&A<=90?1:0:(R=J3(A))!=R.toLowerCase()?1:R!=R.toUpperCase()?2:0;(!P||B==1&&k||T==0&&B!=0)&&(n[h]==A||r[h]==A&&(m=!0)?a[h++]=P:a.length&&(C=!1)),T=B,P+=bu(A)}return h==l&&a[0]==0&&C?this.result(-100+(m?-200:0),a,t):y==l&&O==0?this.ret(-200-t.length+(b==t.length?0:-100),[0,b]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):y==l?this.ret(-200+-700-t.length,[O,b]):h==l?this.result(-100+(m?-200:0)+-700+(C?0:-1100),a,t):n.length==2?!1:this.result((o[0]?-700:0)+-200+-1100,o,t)}result(t,n,r){let o=[],i=0;for(let a of n){let s=a+(this.astral?bu(Na(r,a)):1);i&&o[i-1]==a?o[i-1]=s:(o[i++]=a,o[i++]=s)}return this.ret(t-r.length,o)}}const is=Nn.define({combine(e){return If(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:MYe,compareCompletions:(t,n)=>t.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>tz(t(r),n(r)),optionClass:(t,n)=>r=>tz(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function tz(e,t){return e?t?e+" "+t:e:t}function MYe(e,t,n,r,o,i){let a=e.textDirection==di.RTL,s=a,l=!1,u="top",f,h,m=t.left-o.left,y=o.right-t.right,O=r.right-r.left,b=r.bottom-r.top;if(s&&m<Math.min(O,y)?s=!1:!s&&y<Math.min(O,m)&&(s=!0),O<=(s?m:y))f=Math.max(o.top,Math.min(n.top,o.bottom-b))-t.top,h=Math.min(400,s?m:y);else{l=!0,h=Math.min(400,(a?t.right:o.right-t.left)-30);let P=o.bottom-t.bottom;P>=b||P>t.top?f=n.bottom-t.top:(u="bottom",f=t.bottom-n.top)}let k=(t.bottom-t.top)/i.offsetHeight,C=(t.right-t.left)/i.offsetWidth;return{style:`${u}: ${f/k}px; max-width: ${h/C}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function RYe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(o=>"cm-completionIcon-"+o)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,o){let i=document.createElement("span");i.className="cm-completionLabel";let a=n.displayLabel||n.label,s=0;for(let l=0;l<o.length;){let u=o[l++],f=o[l++];u>s&&i.appendChild(document.createTextNode(a.slice(s,u)));let h=i.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(a.slice(u,f))),h.className="cm-completionMatchedText",s=f}return s<a.length&&i.appendChild(document.createTextNode(a.slice(s))),i},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),t.sort((n,r)=>n.position-r.position).map(n=>n.render)}function KA(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let o=Math.floor(t/n);return{from:o*n,to:(o+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class NYe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let o=t.state.field(n),{options:i,selected:a}=o.open,s=t.state.facet(is);this.optionContent=RYe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=KA(i.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let f=l.target,h;f&&f!=this.dom;f=f.parentNode)if(f.nodeName=="LI"&&(h=/-(\d+)$/.exec(f.id))&&+h[1]<u.length){this.applyCompletion(t,u[+h[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(is).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:g1.of(null)})}),this.showOptions(i,o.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),o=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=o){let{options:i,selected:a,disabled:s}=r.open;(!o.open||o.open.options!=i)&&(this.range=KA(i.length,a,t.state.facet(is).maxRenderedOptions),this.showOptions(i,r.id)),this.updateSel(),s!=((n=o.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=KA(n.options.length,n.selected,this.view.state.facet(is).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:o}=r;if(!o)return;let i=typeof o=="string"?document.createTextNode(o):o(r);if(!i)return;"then"in i?i.then(a=>{a&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(a,r)}).catch(a=>mc(this.view.state,a,"completion info")):this.addInfoPane(i,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:o,destroy:i}=t;r.appendChild(o),this.infoDestroy=i||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,o=this.range.from;r;r=r.nextSibling,o++)r.nodeName!="LI"||!r.id?o--:o==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&DYe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),o=t.getBoundingClientRect(),i=this.space;if(!i){let a=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return o.top>Math.min(i.bottom,n.bottom)-10||o.bottom<Math.max(i.top,n.top)+10?null:this.view.state.facet(is).positionInfo(this.view,n,o,r,i,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,n,r){const o=document.createElement("ul");o.id=n,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions"));let i=null;for(let a=r.from;a<r.to;a++){let{completion:s,match:l}=t[a],{section:u}=s;if(u){let m=typeof u=="string"?u:u.name;if(m!=i&&(a>r.from||r.from==0))if(i=m,typeof u!="string"&&u.header)o.appendChild(u.header(u));else{let y=o.appendChild(document.createElement("completion-section"));y.textContent=m}}const f=o.appendChild(document.createElement("li"));f.id=n+"-"+a,f.setAttribute("role","option");let h=this.optionClass(s);h&&(f.className=h);for(let m of this.optionContent){let y=m(s,this.view.state,l);y&&f.appendChild(y)}}return r.from&&o.classList.add("cm-completionListIncompleteTop"),r.to<t.length&&o.classList.add("cm-completionListIncompleteBottom"),o}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function IYe(e,t){return n=>new NYe(n,e,t)}function DYe(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/o:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/o)}function nz(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function jYe(e,t){let n=[],r=null,o=l=>{n.push(l);let{section:u}=l.completion;if(u){r||(r=[]);let f=typeof u=="string"?u:u.name;r.some(h=>h.name==f)||r.push(typeof u=="string"?{name:f}:u)}};for(let l of e)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let f of l.result.options)o(new J9(f,l.source,u?u(f):[],1e9-n.length));else{let f=new AYe(t.sliceDoc(l.from,l.to));for(let h of l.result.options)if(f.match(h.label)){let m=h.displayLabel?u?u(h,f.matched):[]:f.matched;o(new J9(h,l.source,m,f.score+(h.boost||0)))}}}if(r){let l=Object.create(null),u=0,f=(h,m)=>{var y,O;return((y=h.rank)!==null&&y!==void 0?y:1e9)-((O=m.rank)!==null&&O!==void 0?O:1e9)||(h.name<m.name?-1:1)};for(let h of r.sort(f))u-=1e5,l[h.name]=u;for(let h of n){let{section:m}=h.completion;m&&(h.score+=l[typeof m=="string"?m:m.name])}}let i=[],a=null,s=t.facet(is).compareCompletions;for(let l of n.sort((u,f)=>f.score-u.score||s(u.completion,f.completion))){let u=l.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?i.push(l):nz(l.completion)>nz(a)&&(i[i.length-1]=l),a=l.completion}return i}class _y{constructor(t,n,r,o,i,a){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=o,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new _y(this.options,rz(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,o,i){let a=jYe(t,n);if(!a.length)return o&&t.some(l=>l.state==1)?new _y(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let s=n.facet(is).selectOnOpen?0:-1;if(o&&o.selected!=s&&o.selected!=-1){let l=o.options[o.selected].completion;for(let u=0;u<a.length;u++)if(a[u].completion==l){s=u;break}}return new _y(a,rz(r,s),{pos:t.reduce((l,u)=>u.hasResult()?Math.min(l,u.from):l,1e8),create:zYe,above:i.aboveCursor},o?o.timestamp:Date.now(),s,!1)}map(t){return new _y(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class n2{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new n2(VYe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(is),i=(r.override||n.languageDataAt("autocomplete",Jh(n)).map($Ye)).map(s=>(this.active.find(u=>u.source==s)||new Xs(s,this.active.some(u=>u.state!=0)?1:0)).update(t,r));i.length==this.active.length&&i.every((s,l)=>s==this.active[l])&&(i=this.active);let a=this.open;a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(s=>s.hasResult()&&t.changes.touchesRange(s.from,s.to))||!LYe(i,this.active)?a=_y.build(i,n,this.id,a,r):a&&a.disabled&&!i.some(s=>s.state==1)&&(a=null),!a&&i.every(s=>s.state!=1)&&i.some(s=>s.hasResult())&&(i=i.map(s=>s.hasResult()?new Xs(s.source,0):s));for(let s of t.effects)s.is(eJ)&&(a=a&&a.setSelected(s.value,this.id));return i==this.active&&a==this.open?this:new n2(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:BYe}}function LYe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;r<t.length&&!t[r].hasResult;)r++;let o=n==e.length,i=r==t.length;if(o||i)return o==i;if(e[n++].result!=t[r++].result)return!1}}const BYe={"aria-autocomplete":"list"};function rz(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const VYe=[];function IN(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Xs{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=IN(t),o=this;r?o=o.handleUserEvent(t,r,n):t.docChanged?o=o.handleChange(t):t.selection&&o.state!=0&&(o=new Xs(o.source,0));for(let i of t.effects)if(i.is(Tj))o=new Xs(o.source,1,i.value?Jh(t.state):-1);else if(i.is(g1))o=new Xs(o.source,0);else if(i.is(JG))for(let a of i.value)a.source==o.source&&(o=a);return o}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new Xs(this.source,1)}handleChange(t){return t.changes.touchesRange(Jh(t.startState))?new Xs(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Xs(this.source,this.state,t.mapPos(this.explicitPos))}}class Ly extends Xs{constructor(t,n,r,o,i){super(t,2,n),this.result=r,this.from=o,this.to=i}hasResult(){return!0}handleUserEvent(t,n,r){var o;let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),s=Jh(t.state);if((this.explicitPos<0?s<=i:s<this.from)||s>a||n=="delete"&&Jh(t.startState)==this.from)return new Xs(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return FYe(this.result.validFor,t.state,i,a)?new Ly(this.source,l,this.result,i,a):this.result.update&&(u=this.result.update(this.result,i,a,new XG(t.state,s,l>=0)))?new Ly(this.source,l,u,u.from,(o=u.to)!==null&&o!==void 0?o:Jh(t.state)):new Xs(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Xs(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new Ly(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function FYe(e,t,n,r){if(!e)return!1;let o=t.sliceDoc(n,r);return typeof e=="function"?e(o,n,r,t):KG(e,!0).test(o)}const JG=xr.define({map(e,t){return e.map(n=>n.map(t))}}),eJ=xr.define(),Ml=ya.define({create(){return n2.start()},update(e,t){return e.update(t)},provide:e=>[lj.from(e,t=>t.tooltip),kn.contentAttributes.from(e,t=>t.attrs)]});function tJ(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Ml).active.find(o=>o.source==t.source);return r instanceof Ly?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},PYe(e.state,n,r.from,r.to)),{annotations:GG.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const zYe=IYe(Ml,tJ);function rk(e,t="option"){return n=>{let r=n.state.field(Ml,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(is).interactionDelay)return!1;let o=1,i;t=="page"&&(i=RK(n,r.open.tooltip))&&(o=Math.max(2,Math.floor(i.dom.offsetHeight/i.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,s=r.open.selected>-1?r.open.selected+o*(e?1:-1):e?0:a-1;return s<0?s=t=="page"?0:a-1:s>=a&&(s=t=="page"?a-1:0),n.dispatch({effects:eJ.of(s)}),!0}}const QYe=e=>{let t=e.state.field(Ml,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(is).interactionDelay?!1:tJ(e,t.open.options[t.open.selected])},WYe=e=>e.state.field(Ml,!1)?(e.dispatch({effects:Tj.of(!0)}),!0):!1,YYe=e=>{let t=e.state.field(Ml,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:g1.of(null)}),!0)};class UYe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const HYe=50,ZYe=1e3,XYe=Ii.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(Ml).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(Ml);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Ml)==t)return;let n=e.transactions.some(r=>(r.selection||r.docChanged)&&!IN(r));for(let r=0;r<this.running.length;r++){let o=this.running[r];if(n||o.updates.length+e.transactions.length>HYe&&Date.now()-o.time>ZYe){for(let i of o.context.abortListeners)try{i()}catch(a){mc(this.view.state,a)}o.context.abortListeners=null,this.running.splice(r--,1)}else o.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(r=>r.state==1&&!this.running.some(o=>o.active.source==r.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let r of e.transactions)IN(r)=="input"?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(Ml);for(let n of t.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=Jh(t),r=new XG(t,n,e.explicitPos==n),o=new UYe(e,r);this.running.push(o),Promise.resolve(e.source(r)).then(i=>{o.context.aborted||(o.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:g1.of(null)}),mc(this.view.state,i)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(is).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(is);for(let r=0;r<this.running.length;r++){let o=this.running[r];if(o.done===void 0)continue;if(this.running.splice(r--,1),o.done){let a=new Ly(o.active.source,o.active.explicitPos,o.done,o.done.from,(e=o.done.to)!==null&&e!==void 0?e:Jh(o.updates.length?o.updates[0].startState:this.view.state));for(let s of o.updates)a=a.update(s,n);if(a.hasResult()){t.push(a);continue}}let i=this.view.state.field(Ml).active.find(a=>a.source==o.active.source);if(i&&i.state==1)if(o.done==null){let a=new Xs(o.active.source,0);for(let s of o.updates)a=a.update(s,n);a.state!=1&&t.push(a)}else this.startQuery(i)}t.length&&this.view.dispatch({effects:JG.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Ml,!1);if(t&&t.tooltip&&this.view.state.facet(is).closeOnBlur){let n=t.open&&RK(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&this.view.dispatch({effects:g1.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Tj.of(!1)}),20),this.composing=0}}}),nJ=kn.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:`${400}px`,boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`${30}px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`${30}px`},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class qYe{constructor(t,n,r,o){this.field=t,this.line=n,this.from=r,this.to=o}}class Pj{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,ja.TrackDel),r=t.mapPos(this.to,1,ja.TrackDel);return n==null||r==null?null:new Pj(this.field,n,r)}}class $j{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],o=[n],i=t.doc.lineAt(n),a=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(r.length){let u=a,f=/^\t*/.exec(l)[0].length;for(let h=0;h<f;h++)u+=t.facet(ew);o.push(n+u.length-f),l=u+l.slice(f)}r.push(l),n+=l.length+1}let s=this.fieldPositions.map(l=>new Pj(l.field,o[l.line]+l.from,o[l.line]+l.to));return{text:r,ranges:s}}static parse(t){let n=[],r=[],o=[],i;for(let a of t.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let s=i[1]?+i[1]:null,l=i[2]||i[3]||"",u=-1;for(let f=0;f<n.length;f++)(s!=null?n[f].seq==s:l?n[f].name==l:!1)&&(u=f);if(u<0){let f=0;for(;f<n.length&&(s==null||n[f].seq!=null&&n[f].seq<s);)f++;n.splice(f,0,{seq:s,name:l}),u=f;for(let h of o)h.field>=u&&h.field++}o.push(new qYe(u,r.length,i.index,i.index+l.length)),a=a.slice(0,i.index)+l+a.slice(i.index+i[0].length)}for(let s;s=/\\([{}])/.exec(a);){a=a.slice(0,s.index)+s[1]+a.slice(s.index+s[0].length);for(let l of o)l.line==r.length&&l.from>s.index&&(l.from--,l.to--)}r.push(a)}return new $j(r,o)}}let KYe=Kn.widget({widget:new class extends Df{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),GYe=Kn.mark({class:"cm-snippetField"});class j0{constructor(t,n){this.ranges=t,this.active=n,this.deco=Kn.set(t.map(r=>(r.from==r.to?KYe:GYe).range(r.from,r.to)))}map(t){let n=[];for(let r of this.ranges){let o=r.map(t);if(!o)return null;n.push(o)}return new j0(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const ow=xr.define({map(e,t){return e&&e.map(t)}}),JYe=xr.define(),m1=ya.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(ow))return n.value;if(n.is(JYe)&&e)return new j0(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>kn.decorations.from(e,t=>t?t.deco:Kn.none)});function Aj(e,t){return jt.create(e.filter(n=>n.field==t).map(n=>jt.range(n.from,n.to)))}function eUe(e){let t=$j.parse(e);return(n,r,o,i)=>{let{text:a,ranges:s}=t.instantiate(n.state,o),l={changes:{from:o,to:i,insert:lo.of(a)},scrollIntoView:!0,annotations:r?GG.of(r):void 0};if(s.length&&(l.selection=Aj(s,0)),s.length>1){let u=new j0(s,0),f=l.effects=[ow.of(u)];n.state.field(m1,!1)===void 0&&f.push(xr.appendConfig.of([m1,iUe,aUe,nJ]))}n.dispatch(n.state.update(l))}}function rJ(e){return({state:t,dispatch:n})=>{let r=t.field(m1,!1);if(!r||e<0&&r.active==0)return!1;let o=r.active+e,i=e>0&&!r.ranges.some(a=>a.field==o+e);return n(t.update({selection:Aj(r.ranges,o),effects:ow.of(i?null:new j0(r.ranges,o)),scrollIntoView:!0})),!0}}const tUe=({state:e,dispatch:t})=>e.field(m1,!1)?(t(e.update({effects:ow.of(null)})),!0):!1,nUe=rJ(1),rUe=rJ(-1),oUe=[{key:"Tab",run:nUe,shift:rUe},{key:"Escape",run:tUe}],oz=Nn.define({combine(e){return e.length?e[0]:oUe}}),iUe=Nm.highest(G1.compute([oz],e=>e.facet(oz)));function Zs(e,t){return Object.assign(Object.assign({},t),{apply:eUe(e)})}const aUe=kn.domEventHandlers({mousedown(e,t){let n=t.state.field(m1,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let o=n.ranges.find(i=>i.from<=r&&i.to>=r);return!o||o.field==n.active?!1:(t.dispatch({selection:Aj(n.ranges,o.field),effects:ow.of(n.ranges.some(i=>i.field>o.field)?new j0(n.ranges,o.field):null),scrollIntoView:!0}),!0)}}),v1={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},em=xr.define({map(e,t){let n=t.mapPos(e,-1,ja.TrackAfter);return n==null?void 0:n}}),Mj=new class extends wm{};Mj.startSide=1;Mj.endSide=-1;const oJ=ya.define({create(){return po.empty},update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=po.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(em)&&(e=e.update({add:[Mj.range(n.value,n.value+1)]}));return e}});function sUe(){return[uUe,oJ]}const GA="()[]{}<>";function iJ(e){for(let t=0;t<GA.length;t+=2)if(GA.charCodeAt(t)==e)return GA.charAt(t+1);return J3(e<128?e:e+1)}function aJ(e,t){return e.languageDataAt("closeBrackets",t)[0]||v1}const lUe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),uUe=kn.inputHandler.of((e,t,n,r)=>{if((lUe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(r.length>2||r.length==2&&bu(Na(r,0))==1||t!=o.from||n!=o.to)return!1;let i=dUe(e.state,r);return i?(e.dispatch(i),!0):!1}),cUe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=aJ(e,e.selection.main.head).brackets||v1.brackets,o=null,i=e.changeByRange(a=>{if(a.empty){let s=hUe(e.doc,a.head);for(let l of r)if(l==s&&CE(e.doc,a.head)==iJ(Na(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:jt.cursor(a.head-l.length)}}return{range:o=a}});return o||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o},fUe=[{key:"Backspace",run:cUe}];function dUe(e,t){let n=aJ(e,e.selection.main.head),r=n.brackets||v1.brackets;for(let o of r){let i=iJ(Na(o,0));if(t==o)return i==o?mUe(e,o,r.indexOf(o+o+o)>-1,n):pUe(e,o,i,n.before||v1.before);if(t==i&&sJ(e,e.selection.main.from))return gUe(e,o,i)}return null}function sJ(e,t){let n=!1;return e.field(oJ).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function CE(e,t){let n=e.sliceString(t,t+2);return n.slice(0,bu(Na(n,0)))}function hUe(e,t){let n=e.sliceString(t-2,t);return bu(Na(n,0))==n.length?n:n.slice(1)}function pUe(e,t,n,r){let o=null,i=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:em.of(a.to+t.length),range:jt.range(a.anchor+t.length,a.head+t.length)};let s=CE(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:em.of(a.head+t.length),range:jt.cursor(a.head+t.length)}:{range:o=a}});return o?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function gUe(e,t,n){let r=null,o=e.changeByRange(i=>i.empty&&CE(e.doc,i.head)==n?{changes:{from:i.head,to:i.head+n.length,insert:n},range:jt.cursor(i.head+n.length)}:r={range:i});return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function mUe(e,t,n,r){let o=r.stringPrefixes||v1.stringPrefixes,i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:em.of(s.to+t.length),range:jt.range(s.anchor+t.length,s.head+t.length)};let l=s.head,u=CE(e.doc,l),f;if(u==t){if(iz(e,l))return{changes:{insert:t+t,from:l},effects:em.of(l+t.length),range:jt.cursor(l+t.length)};if(sJ(e,l)){let m=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+m.length,insert:m},range:jt.cursor(l+m.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(f=az(e,l-2*t.length,o))>-1&&iz(e,f))return{changes:{insert:t+t+t+t,from:l},effects:em.of(l+t.length),range:jt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=oi.Word&&az(e,l,o)>-1&&!vUe(e,l,t,o))return{changes:{insert:t+t,from:l},effects:em.of(l+t.length),range:jt.cursor(l+t.length)}}return{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function iz(e,t){let n=aa(e).resolveInner(t+1);return n.parent&&n.from==t}function vUe(e,t,n,r){let o=aa(e).resolveInner(t,-1),i=r.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<5;a++){let s=e.sliceDoc(o.from,Math.min(o.to,o.from+n.length+i)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let f=o.firstChild;for(;f&&f.from==o.from&&f.to-f.from>n.length+l;){if(e.sliceDoc(f.to-n.length,f.to)==n)return!1;f=f.firstChild}return!0}let u=o.to==t&&o.parent;if(!u)break;o=u}return!1}function az(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=oi.Word)return t;for(let o of n){let i=t-o.length;if(e.sliceDoc(i,t)==o&&r(e.sliceDoc(i-1,i))!=oi.Word)return i}return-1}function yUe(e={}){return[Ml,is.of(e),XYe,bUe,nJ]}const lJ=[{key:"Ctrl-Space",run:WYe},{key:"Escape",run:YYe},{key:"ArrowDown",run:rk(!0)},{key:"ArrowUp",run:rk(!1)},{key:"PageDown",run:rk(!0,"page")},{key:"PageUp",run:rk(!1,"page")},{key:"Enter",run:QYe}],bUe=Nm.highest(G1.computeN([is],e=>e.facet(is).defaultKeymap?[lJ]:[]));class _Ue{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Wg{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let o=t,i=r.facet(fJ).markerFilter;i&&(o=i(o));let a=Kn.set(o.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?Kn.widget({widget:new PUe(s),diagnostic:s}).range(s.from):Kn.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new Wg(a,n,c0(a))}}function c0(e,t=null,n=0){let r=null;return e.between(n,1e9,(o,i,{spec:a})=>{if(!(t&&a.diagnostic!=t))return r=new _Ue(o,i,a.diagnostic),!1}),r}function OUe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(uJ))||e.changes.touchesRange(n.from,n.to))}function wUe(e,t){return e.field(Il,!1)?t:t.concat(xr.appendConfig.of(MUe))}const uJ=xr.define(),Rj=xr.define(),cJ=xr.define(),Il=ya.define({create(){return new Wg(Kn.none,null,null)},update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let o=t.changes.mapPos(e.selected.from,1);r=c0(n,e.selected.diagnostic,o)||c0(n,null,o)}e=new Wg(n,e.panel,r)}for(let n of t.effects)n.is(uJ)?e=Wg.init(n.value,e.panel,t.state):n.is(Rj)?e=new Wg(e.diagnostics,n.value?EE.open:null,e.selected):n.is(cJ)&&(e=new Wg(e.diagnostics,e.panel,n.value));return e},provide:e=>[c1.from(e,t=>t.panel),kn.decorations.from(e,t=>t.diagnostics)]}),SUe=Kn.mark({class:"cm-lintRange cm-lintRange-active"});function xUe(e,t,n){let{diagnostics:r}=e.state.field(Il),o=[],i=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:f})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(t<u||n<0))&&(o.push(f.diagnostic),i=Math.min(l,i),a=Math.max(u,a))});let s=e.state.facet(fJ).tooltipFilter;return s&&(o=s(o)),o.length?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,create(){return{dom:kUe(e,o)}}}:null}function kUe(e,t){return Vo("ul",{class:"cm-tooltip-lint"},t.map(n=>hJ(e,n,!1)))}const CUe=e=>{let t=e.state.field(Il,!1);(!t||!t.panel)&&e.dispatch({effects:wUe(e.state,[Rj.of(!0)])});let n=u1(e,EE.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},sz=e=>{let t=e.state.field(Il,!1);return!t||!t.panel?!1:(e.dispatch({effects:Rj.of(!1)}),!0)},EUe=e=>{let t=e.state.field(Il,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},TUe=[{key:"Mod-Shift-m",run:CUe,preventDefault:!0},{key:"F8",run:EUe}],fJ=Nn.define({combine(e){return Object.assign({sources:e.map(t=>t.source)},If(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function dJ(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;r<n.length;r++){let o=n[r];if(/[a-zA-Z]/.test(o)&&!t.some(i=>i.toLowerCase()==o.toLowerCase())){t.push(o);continue e}}t.push("")}return t}function hJ(e,t,n){var r;let o=n?dJ(t.actions):[];return Vo("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Vo("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((i,a)=>{let s=!1,l=m=>{if(m.preventDefault(),s)return;s=!0;let y=c0(e.state.field(Il).diagnostics,t);y&&i.apply(e,y.from,y.to)},{name:u}=i,f=o[a]?u.indexOf(o[a]):-1,h=f<0?u:[u.slice(0,f),Vo("u",u.slice(f,f+1)),u.slice(f+1)];return Vo("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${f<0?"":` (access key "${o[a]})"`}.`},h)}),t.source&&Vo("div",{class:"cm-diagnosticSource"},t.source))}class PUe extends Df{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Vo("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class lz{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=hJ(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class EE{constructor(t){this.view=t,this.items=[];let n=o=>{if(o.keyCode==27)sz(this.view),this.view.focus();else if(o.keyCode==38||o.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(o.keyCode==40||o.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(o.keyCode==36)this.moveSelection(0);else if(o.keyCode==35)this.moveSelection(this.items.length-1);else if(o.keyCode==13)this.view.focus();else if(o.keyCode>=65&&o.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],a=dJ(i.actions);for(let s=0;s<a.length;s++)if(a[s].toUpperCase().charCodeAt(0)==o.keyCode){let l=c0(this.view.state.field(Il).diagnostics,i);l&&i.actions[s].apply(t,l.from,l.to)}}else return;o.preventDefault()},r=o=>{for(let i=0;i<this.items.length;i++)this.items[i].dom.contains(o.target)&&this.moveSelection(i)};this.list=Vo("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=Vo("div",{class:"cm-panel-lint"},this.list,Vo("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>sz(this.view)},"\xD7")),this.update()}get selectedIndex(){let t=this.view.state.field(Il).selected;if(!t)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==t.diagnostic)return n;return-1}update(){let{diagnostics:t,selected:n}=this.view.state.field(Il),r=0,o=!1,i=null;for(t.between(0,this.view.state.doc.length,(a,s,{spec:l})=>{let u=-1,f;for(let h=r;h<this.items.length;h++)if(this.items[h].diagnostic==l.diagnostic){u=h;break}u<0?(f=new lz(this.view,l.diagnostic),this.items.splice(r,0,f),o=!0):(f=this.items[u],u>r&&(this.items.splice(r,u-r),o=!0)),n&&f.diagnostic==n.diagnostic?f.dom.hasAttribute("aria-selected")||(f.dom.setAttribute("aria-selected","true"),i=f):f.dom.hasAttribute("aria-selected")&&f.dom.removeAttribute("aria-selected"),r++});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)o=!0,this.items.pop();this.items.length==0&&(this.items.push(new lz(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),o=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:s})=>{let l=s.height/this.list.offsetHeight;a.top<s.top?this.list.scrollTop-=(s.top-a.top)/l:a.bottom>s.bottom&&(this.list.scrollTop+=(a.bottom-s.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(Il),r=c0(n.diagnostics,this.items[t].diagnostic);!r||this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:cJ.of(r)})}static open(t){return new EE(t)}}function $Ue(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function ok(e){return $Ue(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const AUe=kn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:ok("#d11")},".cm-lintRange-warning":{backgroundImage:ok("orange")},".cm-lintRange-info":{backgroundImage:ok("#999")},".cm-lintRange-hint":{backgroundImage:ok("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),MUe=[Il,kn.decorations.compute([Il],e=>{let{selected:t,panel:n}=e.field(Il);return!t||!n||t.from==t.to?Kn.none:Kn.set([SUe.range(t.from,t.to)])}),SQe(xUe,{hideOn:OUe}),AUe],RUe=(()=>[MQe(),IQe(),Jze(),G7e(),S7e(),zze(),Hze(),Fr.allowMultipleSelections.of(!0),c7e(),k7e(T7e,{fallback:!0}),I7e(),sUe(),yUe(),hQe(),mQe(),iQe(),oYe(),G1.of([...fUe,...GWe,...SYe,...sWe,...b7e,...lJ,...TUe])])();/*!
- * VueCodemirror v6.1.1
- * Copyright (c) Surmon. All rights reserved.
- * Released under the MIT License.
- * Surmon
- */var NUe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[RUe]}),IUe=Symbol("vue-codemirror-global-config"),xs,DUe=function(e){var t=e.onUpdate,n=e.onChange,r=e.onFocus,o=e.onBlur,i=function(a,s){var l={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(l[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(u=Object.getOwnPropertySymbols(a);f<u.length;f++)s.indexOf(u[f])<0&&Object.prototype.propertyIsEnumerable.call(a,u[f])&&(l[u[f]]=a[u[f]])}return l}(e,["onUpdate","onChange","onFocus","onBlur"]);return Fr.create({doc:i.doc,selection:i.selection,extensions:(Array.isArray(i.extensions)?i.extensions:[i.extensions]).concat([kn.updateListener.of(function(a){t(a),a.docChanged&&n(a.state.doc.toString(),a),a.focusChanged&&(a.view.hasFocus?r(a):o(a))})])})},dy=function(e){var t=new X1;return{compartment:t,run:function(n){t.get(e.state)?e.dispatch({effects:t.reconfigure(n)}):e.dispatch({effects:xr.appendConfig.of(t.of(n))})}}},uz=function(e,t){var n=dy(e),r=n.compartment,o=n.run;return function(i){var a=r.get(e.state);o((i!=null?i:a!==t)?t:[])}},ik={type:Boolean,default:void 0},jUe={autofocus:ik,disabled:ik,indentWithTab:ik,tabSize:Number,placeholder:String,style:Object,autoDestroy:ik,phrases:Object,root:Object,extensions:Array,selection:Object},LUe={modelValue:{type:String,default:""}},BUe=Object.assign(Object.assign({},jUe),LUe);(function(e){e.Change="change",e.Update="update",e.Focus="focus",e.Blur="blur",e.Ready="ready",e.ModelUpdate="update:modelValue"})(xs||(xs={}));var Yg={};Yg[xs.Change]=function(e,t){return!0},Yg[xs.Update]=function(e){return!0},Yg[xs.Focus]=function(e){return!0},Yg[xs.Blur]=function(e){return!0},Yg[xs.Ready]=function(e){return!0};var pJ={};pJ[xs.ModelUpdate]=Yg[xs.Change];var VUe=Object.assign(Object.assign({},Yg),pJ),FUe=xe({name:"VueCodemirror",props:Object.assign({},BUe),emits:Object.assign({},VUe),setup:function(e,t){var n=to(),r=to(),o=to(),i=Object.assign(Object.assign({},NUe),$t(IUe,{})),a=W(function(){var s={};return Object.keys(dr(e)).forEach(function(l){var u;l!=="modelValue"&&(s[l]=(u=e[l])!==null&&u!==void 0?u:i[l])}),s});return vn(function(){var s;r.value=DUe({doc:e.modelValue,selection:a.value.selection,extensions:(s=i.extensions)!==null&&s!==void 0?s:[],onFocus:function(u){return t.emit(xs.Focus,u)},onBlur:function(u){return t.emit(xs.Blur,u)},onUpdate:function(u){return t.emit(xs.Update,u)},onChange:function(u,f){u!==e.modelValue&&(t.emit(xs.Change,u,f),t.emit(xs.ModelUpdate,u,f))}}),o.value=function(u){return new kn(Object.assign({},u))}({state:r.value,parent:n.value,root:a.value.root});var l=function(u){var f=function(){return u.state.doc.toString()},h=dy(u).run,m=uz(u,[kn.editable.of(!1),Fr.readOnly.of(!0)]),y=uz(u,G1.of([JWe])),O=dy(u).run,b=dy(u).run,k=dy(u).run,C=dy(u).run;return{focus:function(){return u.focus()},getDoc:f,setDoc:function(P){P!==f()&&u.dispatch({changes:{from:0,to:u.state.doc.length,insert:P}})},reExtensions:h,toggleDisabled:m,toggleIndentWithTab:y,setTabSize:function(P){O([Fr.tabSize.of(P),ew.of(" ".repeat(P))])},setPhrases:function(P){b([Fr.phrases.of(P)])},setPlaceholder:function(P){k(uQe(P))},setStyle:function(P){P===void 0&&(P={}),C(kn.theme({"&":Object.assign({},P)}))}}}(o.value);at(function(){return e.modelValue},function(u){u!==l.getDoc()&&l.setDoc(u)}),at(function(){return e.extensions},function(u){return l.reExtensions(u||[])},{immediate:!0}),at(function(){return a.value.disabled},function(u){return l.toggleDisabled(u)},{immediate:!0}),at(function(){return a.value.indentWithTab},function(u){return l.toggleIndentWithTab(u)},{immediate:!0}),at(function(){return a.value.tabSize},function(u){return l.setTabSize(u)},{immediate:!0}),at(function(){return a.value.phrases},function(u){return l.setPhrases(u||{})},{immediate:!0}),at(function(){return a.value.placeholder},function(u){return l.setPlaceholder(u)},{immediate:!0}),at(function(){return a.value.style},function(u){return l.setStyle(u)},{immediate:!0}),a.value.autofocus&&l.focus(),t.emit(xs.Ready,{state:r.value,view:o.value,container:n.value})}),qr(function(){a.value.autoDestroy&&o.value&&function(s){s.destroy()}(o.value)}),function(){return Ht("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),f0=FUe;class r2{constructor(t,n,r,o,i,a,s,l,u,f=0,h){this.p=t,this.stack=n,this.state=r,this.reducePos=o,this.pos=i,this.score=a,this.buffer=s,this.bufferBase=l,this.curContext=u,this.lookAhead=f,this.parent=h}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let o=t.parser.context;return new r2(t,[],n,r,r,0,[],0,o?new cz(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,o=t&65535,{parser:i}=this.p,a=i.dynamicPrecedence(o);if(a&&(this.score+=a),r==0){this.pushState(i.getGoto(this.state,o,!0),this.reducePos),o<i.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,4,!0),this.reduceContext(o,this.reducePos);return}let s=this.stack.length-(r-1)*3-(t&262144?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from,u=this.reducePos-l;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[o])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=u));let f=s?this.stack[s-1]:0,h=this.bufferBase+this.buffer.length-f;if(o<i.minRepeatTerm||t&131072){let m=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,l,m,h+4,!0)}if(t&262144)this.state=this.stack[s];else{let m=this.stack[s-3];this.state=i.getGoto(m,o,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(o,l)}storeNode(t,n,r,o=4,i=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let a=this,s=this.buffer.length;if(s==0&&a.parent&&(s=a.bufferBase-a.parent.bufferBase,a=a.parent),s>0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(t,n,r,o);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,o>4&&(o-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+3]=o}}shift(t,n,r,o){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let i=t,{parser:a}=this.p;(o>this.pos||n<=a.maxNode)&&(this.pos=o,a.stateFlag(i,1)||(this.reducePos=o)),this.pushState(i,r),this.shiftContext(n,r),n<=a.maxNode&&this.buffer.push(n,r,o,4)}else this.pos=o,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,o,4)}apply(t,n,r,o){t&65536?this.reduce(t):this.shift(t,n,r,o)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let o=this.pos;this.reducePos=this.pos=o+t.length,this.pushState(n,o),this.buffer.push(r,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),o=t.bufferBase+n;for(;t&&o==t.bufferBase;)t=t.parent;return new r2(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new zUe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>4<<1||this.stack.length>=120){let o=[];for(let i=0,a;i<n.length;i+=2)(a=n[i+1])!=this.state&&this.p.parser.hasAction(a,t)&&o.push(n[i],a);if(this.stack.length<120)for(let i=0;o.length<4<<1&&i<n.length;i+=2){let a=n[i+1];o.some((s,l)=>l&1&&s==a)||o.push(n[i],a)}n=o}let r=[];for(let o=0;o<n.length&&r.length<4;o+=2){let i=n[o+1];if(i==this.state)continue;let a=this.split();a.pushState(i,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(n[o],this.pos),a.reducePos=this.pos,a.score-=200,r.push(a)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!t.validAction(this.state,n)){let r=n>>19,o=n&65535,i=this.stack.length-r*3;if(i<0||t.getGoto(this.stack[i],o,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(o,i)=>{if(!n.includes(o))return n.push(o),t.allActions(o,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-i;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,i+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new cz(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class cz{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class zUe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=o}}class o2{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new o2(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new o2(this.stack,this.pos,this.index)}}function q_(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,o=0;r<e.length;){let i=0;for(;;){let a=e.charCodeAt(r++),s=!1;if(a==126){i=65535;break}a>=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),i+=l,s)break;i*=46}n?n[o++]=i:n=new t(i)}return n}class Fk{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const fz=new Fk;class QUe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=fz,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,o=this.rangeIndex,i=this.pos+t;for(;i<r.from;){if(!o)return null;let a=this.ranges[--o];i-=r.from-a.to,r=a}for(;n<0?i>r.to:i>=r.to;){if(o==this.ranges.length-1)return null;let a=this.ranges[++o];i+=a.from-r.to,r=a}return i}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,o;if(n>=0&&n<this.chunk.length)r=this.pos+t,o=this.chunk.charCodeAt(n);else{let i=this.resolveOffset(t,1);if(i==null)return-1;if(r=i,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let a=this.rangeIndex,s=this.range;for(;s.to<=r;)s=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),o=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),o}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=fz,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let o of this.ranges){if(o.from>=n)break;o.to>t&&(r+=this.input.read(Math.max(o.from,t),Math.min(o.to,n)))}return r}}class By{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;gJ(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}By.prototype.contextual=By.prototype.fallback=By.prototype.extend=!1;class DN{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?q_(t):t}token(t,n){let r=t.pos,o=0;for(;;){let i=t.next<0,a=t.resolveOffset(1,1);if(gJ(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(i||o++,a==null)break;t.reset(a,t.token)}o&&(t.reset(r,t.token),t.acceptToken(this.elseToken,o))}}DN.prototype.contextual=By.prototype.fallback=By.prototype.extend=!1;class Nj{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function gJ(e,t,n,r,o,i){let a=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;(s&e[a])!=0;){let u=e[a+1];for(let y=a+3;y<u;y+=2)if((e[y+1]&s)>0){let O=e[y];if(l.allows(O)&&(t.token.value==-1||t.token.value==O||WUe(O,t.token.value,o,i))){t.acceptToken(O);break}}let f=t.next,h=0,m=e[a+2];if(t.next<0&&m>h&&e[u+m*3-3]==65535&&e[u+m*3-3]==65535){a=e[u+m*3-1];continue e}for(;h<m;){let y=h+m>>1,O=u+y+(y<<1),b=e[O],k=e[O+1]||65536;if(f<b)m=y;else if(f>=k)h=y+1;else{a=e[O+2],t.advance();continue e}}break}}function dz(e,t,n){for(let r=t,o;(o=e[r])!=65535;r++)if(o==n)return r-t;return-1}function WUe(e,t,n,r){let o=dz(n,r,t);return o<0||dz(n,r,e)<o}const Tl=typeof process!="undefined"&&process.env&&/\bparse\b/.test({}.LOG);let JA=null;function hz(e,t,n){let r=e.cursor(ta.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class YUe{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?hz(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?hz(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],o=this.index[n];if(o==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=r.children[o],a=this.start[n]+r.positions[o];if(a>t)return this.nextStart=a,null;if(i instanceof Qi){if(a==t){if(a<this.safeFrom)return null;let s=a+i.length;if(s<=this.safeTo){let l=i.prop(Xr.lookAhead);if(!l||s+l<this.fragment.to)return i}}this.index[n]++,a+i.length>=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+i.length}}}class UUe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new Fk)}getActions(t){let n=0,r=null,{parser:o}=t.p,{tokenizers:i}=o,a=o.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;u<i.length;u++){if((1<<u&a)==0)continue;let f=i[u],h=this.tokens[u];if(!(r&&!f.fallback)&&((f.contextual||h.start!=t.pos||h.mask!=a||h.context!=s)&&(this.updateCachedToken(h,f,t),h.mask=a,h.context=s),h.lookAhead>h.end+25&&(l=Math.max(h.lookAhead,l)),h.value!=0)){let m=n;if(h.extended>-1&&(n=this.addActions(t,h.extended,h.end,n)),n=this.addActions(t,h.value,h.end,n),!f.extend&&(r=h,n>m))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new Fk,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new Fk,{pos:r,p:o}=t;return n.start=r,n.end=Math.min(r+1,o.stream.end),n.value=r==o.stream.end?o.parser.eofTerm:0,n}updateCachedToken(t,n,r){let o=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(o,t),r),t.value>-1){let{parser:i}=r.p;for(let a=0;a<i.specialized.length;a++)if(i.specialized[a]==t.value){let s=i.specializers[a](this.stream.read(t.start,t.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){(s&1)==0?t.value=s>>1:t.extended=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(o+1)}putAction(t,n,r,o){for(let i=0;i<o;i+=3)if(this.actions[i]==t)return o;return this.actions[o++]=t,this.actions[o++]=n,this.actions[o++]=r,o}addActions(t,n,r,o){let{state:i}=t,{parser:a}=t.p,{data:s}=a;for(let l=0;l<2;l++)for(let u=a.stateSlot(i,l?2:1);;u+=3){if(s[u]==65535)if(s[u+1]==1)u=pd(s,u+2);else{o==0&&s[u+1]==2&&(o=this.putAction(pd(s,u+2),n,r,o));break}s[u]==n&&(o=this.putAction(pd(s,u+1),n,r,o))}return o}}class HUe{constructor(t,n,r,o){this.parser=t,this.input=n,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new QUe(n,o),this.tokens=new UUe(t,this.stream),this.topTerm=t.top[1];let{from:i}=o[0];this.stacks=[r2.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>t.bufferLength*4?new YUe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],o,i;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<t.length;a++){let s=t[a];for(;;){if(this.tokens.mainToken=null,s.pos>n)r.push(s);else{if(this.advanceStack(s,r,t))continue;{o||(o=[],i=[]),o.push(s);let l=this.tokens.getMainToken(s);i.push(l.value,l.end)}}break}}if(!r.length){let a=o&&qUe(o);if(a)return Tl&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Tl&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&o){let a=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,i,r);if(a)return Tl&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a<r.length-1;a++){let s=r[a];for(let l=a+1;l<r.length;l++){let u=r[l];if(s.sameState(u)||s.buffer.length>500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a<r.length;a++)r[a].pos<this.minStackPos&&(this.minStackPos=r[a].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let o=t.pos,{parser:i}=this,a=Tl?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,f=u?t.curContext.hash:0;for(let h=this.fragments.nodeAt(o);h;){let m=this.parser.nodeSet.types[h.type.id]==h.type?i.getGoto(t.state,h.type.id):-1;if(m>-1&&h.length&&(!u||(h.prop(Xr.contextHash)||0)==f))return t.useNode(h,m),Tl&&console.log(a+this.stackID(t)+` (via reuse of ${i.getName(h.type.id)})`),!0;if(!(h instanceof Qi)||h.children.length==0||h.positions[0]>0)break;let y=h.children[0];if(y instanceof Qi&&h.positions[0]==0)h=y;else break}}let s=i.stateSlot(t.state,4);if(s>0)return t.reduce(s),Tl&&console.log(a+this.stackID(t)+` (via always-reduce ${i.getName(s&65535)})`),!0;if(t.stack.length>=9e3)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;u<l.length;){let f=l[u++],h=l[u++],m=l[u++],y=u==l.length||!r,O=y?t:t.split(),b=this.tokens.mainToken;if(O.apply(f,h,b?b.start:O.pos,m),Tl&&console.log(a+this.stackID(O)+` (via ${(f&65536)==0?"shift":`reduce of ${i.getName(f&65535)}`} for ${i.getName(h)} @ ${o}${O==t?"":", split"})`),y)return!0;O.pos>o?n.push(O):r.push(O)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return pz(t,n),!0}}runRecovery(t,n,r){let o=null,i=!1;for(let a=0;a<t.length;a++){let s=t[a],l=n[a<<1],u=n[(a<<1)+1],f=Tl?this.stackID(s)+" -> ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),Tl&&console.log(f+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let h=s.split(),m=f;for(let y=0;h.forceReduce()&&y<10&&(Tl&&console.log(m+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,r));y++)Tl&&(m=this.stackID(h)+" -> ");for(let y of s.recoverByInsert(l))Tl&&console.log(f+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Tl&&console.log(f+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),pz(s,r)):(!o||o.score<s.score)&&(o=s)}return o}stackToTree(t){return t.close(),Qi.build({buffer:o2.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(JA||(JA=new WeakMap)).get(t);return n||JA.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function pz(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class ZUe{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}const eM=e=>e;class XUe{constructor(t){this.start=t.start,this.shift=t.shift||eM,this.reduce=t.reduce||eM,this.reuse=t.reuse||eM,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class y1 extends FK{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (${14})`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;s<t.repeatNodeCount;s++)n.push("");let r=Object.keys(t.topRules).map(s=>t.topRules[s][1]),o=[];for(let s=0;s<n.length;s++)o.push([]);function i(s,l,u){o[s].push([l,l.deserialize(String(u))])}if(t.nodeProps)for(let s of t.nodeProps){let l=s[0];typeof l=="string"&&(l=Xr[l]);for(let u=1;u<s.length;){let f=s[u++];if(f>=0)i(f,l,s[u++]);else{let h=s[u+-f];for(let m=-f;m>0;m--)i(s[u++],l,h);u++}}}this.nodeSet=new cj(n.map((s,l)=>al.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:o[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=jK;let a=q_(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;s<this.specializerSpecs.length;s++)this.specialized[s]=this.specializerSpecs[s].term;this.specializers=this.specializerSpecs.map(gz),this.states=q_(t.states,Uint32Array),this.data=q_(t.stateData),this.goto=q_(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(s=>typeof s=="number"?new By(a,s):s),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let o=new HUe(this,t,n,r);for(let i of this.wrappers)o=i(o,t,n,r);return o}getGoto(t,n,r=!1){let o=this.goto;if(n>=o[0])return-1;for(let i=o[n+1];;){let a=o[i++],s=a&1,l=o[i++];if(s&&r)return l;for(let u=i+(a>>1);i<u;i++)if(o[i]==t)return l;if(s)return-1}}hasAction(t,n){let r=this.data;for(let o=0;o<2;o++)for(let i=this.stateSlot(t,o?2:1),a;;i+=3){if((a=r[i])==65535)if(r[i+1]==1)a=r[i=pd(r,i+2)];else{if(r[i+1]==2)return pd(r,i+2);break}if(a==n||a==0)return pd(r,i+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),o=r?n(r):void 0;for(let i=this.stateSlot(t,1);o==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=pd(this.data,i+2);else break;o=n(pd(this.data,i+1))}return o}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=pd(this.data,r+2);else break;if((this.data[r+2]&1)==0){let o=this.data[r+1];n.some((i,a)=>a&1&&i==o)||n.push(this.data[r],o)}}return n}configure(t){let n=Object.assign(Object.create(y1.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let o=t.tokenizers.find(i=>i.from==r);return o?o.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,o)=>{let i=t.specializers.find(s=>s.from==r.external);if(!i)return r;let a=Object.assign(Object.assign({},r),{external:i.to});return n.specializers[o]=gz(a),a})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let i of t.split(" ")){let a=n.indexOf(i);a>=0&&(r[a]=!0)}let o=null;for(let i=0;i<n.length;i++)if(!r[i])for(let a=this.dialects[n[i]],s;(s=this.data[a++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[s]=1;return new ZUe(t,r,o)}static deserialize(t){return new y1(t)}}function pd(e,t){return e[t]|e[t+1]<<16}function qUe(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function gz(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}const KUe=pj({String:yt.string,Number:yt.number,"True False":yt.bool,PropertyName:yt.propertyName,Null:yt.null,",":yt.separator,"[ ]":yt.squareBracket,"{ }":yt.brace}),GUe=y1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26A0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[KUe],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),JUe=d1.define({name:"json",parser:GUe.configure({props:[vj.add({Object:wO({except:/^\s*\}/}),Array:wO({except:/^\s*\]/})}),bj.add({"Object Array":XK})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function TE(){return new UK(JUe)}const eHe={style:{flex:"auto"}},tHe={__name:"DataDialog",props:["show","data","ruleChainId","lf"],emits:["submit","close"],setup(e,{emit:t}){const n=e,r=[TE()],{show:o,data:i,ruleChainId:a}=ra(n),s=()=>{let f=new Blob([i.value],{type:"text/plain;charset=utf-8"});G3.exports.saveAs(f,a.value+".json")},l=()=>{n.lf.getSnapshot(a.value+".png","#FFF")},u=()=>{t("close")};return(f,h)=>{const m=cl,y=ul,O=io,b=Ld;return U(),Qe(b,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,width:"70%",draggable:"",top:"10px","before-close":u,modelValue:v(o)},{header:se(()=>[ne(y,null,{default:se(()=>[ne(m,{span:12},{default:se(()=>[xt("\u751F\u6210\u7684\u89C4\u5219\u94FE\u6587\u4EF6\u53EF\u4EE5\u76F4\u63A5\u7ED9SagooRule\u8C03\u7528")]),_:1})]),_:1})]),footer:se(()=>[ge("div",eHe,[ne(O,{type:"primary",onClick:l},{default:se(()=>[xt("\u4E0B\u8F7D\u56FE\u7247")]),_:1}),ne(O,{type:"primary",onClick:s},{default:se(()=>[xt("\u4E0B\u8F7D\u6570\u636E")]),_:1}),ne(O,{onClick:u},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),default:se(()=>[ne(v(f0),{modelValue:v(i),"onUpdate:modelValue":h[0]||(h[0]=k=>no(i)?i.value=k:null),placeholder:"\u8BF7\u8F93\u5165\u89C4\u5219\u94FE\u5B9A\u4E49JSON\u5185\u5BB9...",style:{height:"400px",width:"100%"},autofocus:!0,tabSize:2,extensions:r},null,8,["modelValue"])]),_:1},8,["modelValue"])}}},nHe=ge("a",{href:"https://github.com/rulego/rulego/tree/main/examples/server",target:"_blank"},"examples/server",-1),rHe=ge("br",null,null,-1),oHe=ge("br",null,null,-1),iHe={style:{flex:"auto"}},aHe={__name:"SettingDialog",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=ee(),i=or({url:r.getEditorSetting().url,toolbar:r.getEditorSetting().toolbar});wc(()=>{i.url=r.getEditorSetting().url,i.toolbar=r.getEditorSetting().toolbar});const a=()=>{t("submit",dr(i))},s=()=>{t("close")};return(l,u)=>{const f=cl,h=ul,m=OU,y=U1,O=ri,b=Mf,k=Hl,C=Af,P=io,$=Ld;return U(),Qe($,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,width:"50%",draggable:"",top:"10px","before-close":s,modelValue:e.show},{header:se(()=>[ne(h,null,{default:se(()=>[ne(f,{span:12},{default:se(()=>[xt("RuleGo-Editor\u8BBE\u7F6E")]),_:1})]),_:1})]),footer:se(()=>[ge("div",iHe,[ne(P,{type:"primary",onClick:a},{default:se(()=>[xt("\u786E\u8BA4")]),_:1}),ne(P,{onClick:s},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),default:se(()=>[ne(m,{title:"",type:"info",style:{"margin-bottom":"10px","margin-top":"-10px"},center:""},{default:se(()=>[xt(" \u652F\u6301\u79BB\u7EBF\u8FD0\u884C\uFF0C\u5E76\u751F\u6210\u89C4\u5219\u94FE\u6570\u636E\u3002\u5982\u679C\u9700\u8981\u5BF9\u63A5\u540E\u53F0API\u3002\u8BF7\u5148\u8FD0\u884C\uFF1A"),nHe,xt("\u3002 ")]),_:1}),ne(y,{size:"small",type:"info"},{default:se(()=>[xt("\u4EE5\u4E0B\u53C2\u6570\u4E0D\u4F1A\u505Alocalstorage\u5B58\u50A8\uFF0C\u8FD9\u4E9B\u53C2\u6570\u4E00\u822C\u662F\u7236\u7EC4\u4EF6\u4F20\u9012\u8FC7\u6765")]),_:1}),rHe,oHe,ne(C,{model:i,ref_key:"formRef",ref:o,"label-position":"top","label-width":"auto"},{default:se(()=>[ne(b,{label:"RuleGo\u540E\u53F0URL",prop:"url"},{default:se(()=>[ne(O,{modelValue:i.url,"onUpdate:modelValue":u[0]||(u[0]=T=>i.url=T),placeholder:"\u7528\u4E8E\u4FDD\u5B58\u548C\u8C03\u8BD5\u89C4\u5219\u94FE"},null,8,["modelValue"])]),_:1}),ne(b,{label:"Toolbar\u7BA1\u7406"},{default:se(()=>[ne(k,{modelValue:i.toolbar.showTest,"onUpdate:modelValue":u[1]||(u[1]=T=>i.toolbar.showTest=T)},{default:se(()=>[xt("\u8C03\u8BD5\u89C4\u5219\u94FE")]),_:1},8,["modelValue"]),ne(k,{modelValue:i.toolbar.showNewOrOpen,"onUpdate:modelValue":u[2]||(u[2]=T=>i.toolbar.showNewOrOpen=T)},{default:se(()=>[xt("\u65B0\u5EFA/\u6253\u5F00")]),_:1},8,["modelValue"]),ne(k,{modelValue:i.toolbar.showData,"onUpdate:modelValue":u[3]||(u[3]=T=>i.toolbar.showData=T)},{default:se(()=>[xt("\u67E5\u770B\u6570\u636E")]),_:1},8,["modelValue"]),ne(k,{modelValue:i.toolbar.showSetting,"onUpdate:modelValue":u[4]||(u[4]=T=>i.toolbar.showSetting=T)},{default:se(()=>[xt("\u8BBE\u7F6E")]),_:1},8,["modelValue"]),ne(k,{modelValue:i.toolbar.showFullScreen,"onUpdate:modelValue":u[5]||(u[5]=T=>i.toolbar.showFullScreen=T)},{default:se(()=>[xt("\u5168\u5C4F")]),_:1},8,["modelValue"]),ne(k,{modelValue:i.toolbar.showDelete,"onUpdate:modelValue":u[6]||(u[6]=T=>i.toolbar.showDelete=T)},{default:se(()=>[xt("\u5220\u9664\u5168\u9009")]),_:1},8,["modelValue"]),ne(k,{modelValue:i.toolbar.showSave,"onUpdate:modelValue":u[7]||(u[7]=T=>i.toolbar.showSave=T)},{default:se(()=>[xt("\u4FDD\u5B58")]),_:1},8,["modelValue"]),ne(k,{modelValue:i.toolbar.showReset,"onUpdate:modelValue":u[8]||(u[8]=T=>i.toolbar.showReset=T)},{default:se(()=>[xt("\u91CD\u7F6E")]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},sHe={__name:"NodeOperate",props:["currentElementPosition"],emits:["edit","delete"],setup(e,{emit:t}){const n=()=>{t("edit")},r=()=>{t("delete")};return(o,i)=>{const a=io;return U(),ce("div",{style:Ft({position:"absolute",top:e.currentElementPosition.y+"px",left:e.currentElementPosition.x+"px"})},[ne(a,{type:"danger",size:"small",icon:v(nSe),onClick:n,circle:""},null,8,["icon"]),ne(a,{type:"danger",size:"small",icon:v($Y),onClick:r,circle:"",style:{"margin-left":"3px"}},null,8,["icon"])],4)}}},lHe={style:{flex:"auto","text-align":"right"}},uHe={__name:"NewFlowForm",props:["show"],emits:["submit","close"],setup(e,{emit:t}){const n=ee(),r=or({id:"default",name:"",root:!0,additionalInfo:{description:""}}),o=()=>{t("submit",dr(r))},i=()=>{t("close")};return(a,s)=>{const l=ri,u=Mf,f=W1,h=io,m=Af;return U(),Qe(m,{model:r,ref_key:"formRef",ref:n,"label-position":"top","label-width":"auto"},{default:se(()=>[ne(u,{label:"ID",prop:"id"},{default:se(()=>[ne(l,{modelValue:r.id,"onUpdate:modelValue":s[0]||(s[0]=y=>r.id=y),placeholder:"\u5982\u679C\u4E0D\u6307\u5B9A\uFF0C\u81EA\u52A8\u751F\u6210"},null,8,["modelValue"])]),_:1}),ne(u,{label:"\u540D\u79F0",prop:"name"},{default:se(()=>[ne(l,{modelValue:r.name,"onUpdate:modelValue":s[1]||(s[1]=y=>r.name=y),placeholder:"\u8BF7\u8F93\u5165\u89C4\u5219\u94FE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),ne(u,{label:"\u6839\u89C4\u5219\u94FE",prop:"root"},{default:se(()=>[ne(f,{class:"ml-2",modelValue:r.root,"onUpdate:modelValue":s[2]||(s[2]=y=>r.root=y),style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue"])]),_:1}),ne(u,{label:"\u63CF\u8FF0",prop:"description"},{default:se(()=>[ne(l,{modelValue:r.additionalInfo.description,"onUpdate:modelValue":s[3]||(s[3]=y=>r.additionalInfo.description=y),type:"textarea",rows:"2",placeholder:"\u8BF7\u8F93\u5165\u89C4\u5219\u94FE\u63CF\u8FF0"},null,8,["modelValue"])]),_:1}),ge("div",lHe,[ne(h,{type:"primary",onClick:o},{default:se(()=>[xt("\u786E\u8BA4")]),_:1}),ne(h,{onClick:i},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),_:1},8,["model"])}}},cHe={style:{flex:"auto","text-align":"right"}},fHe={__name:"OpenFlowForm",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=[TE()],i=ee(),a=or({url:r.getEditorSetting().ruleApi.replace(":id","chain_call_rest_api"),data:""}),s=()=>{a.url&&fetch(r.getEditorSetting().url+a.url).then(f=>f.text()).then(f=>{a.data=f}).catch(f=>{Fi.error(f.message)})},l=()=>{t("submit",dr(a).data)},u=()=>{t("close")};return(f,h)=>{const m=ri,y=cl,O=io,b=ul,k=Mf,C=Af;return U(),Qe(C,{model:a,ref_key:"formRef",ref:i,"label-position":"top","label-width":"auto"},{default:se(()=>[ne(k,{label:"\u89C4\u5219\u94FE\u5730\u5740",prop:"url"},{default:se(()=>[ne(b,{style:{width:"100%"}},{default:se(()=>[ne(y,{span:18},{default:se(()=>[ne(m,{modelValue:a.url,"onUpdate:modelValue":h[0]||(h[0]=P=>a.url=P),placeholder:"\u8BF7\u8F93\u5165\u52A0\u8F7D\u89C4\u5219\u94FE\u5730\u5740:/api/v1/rule/:id"},{prepend:se(()=>[xt(" GET "+ct(e.lf.getEditorSetting().url),1)]),_:1},8,["modelValue"])]),_:1}),ne(y,{span:4,offset:1,class:"el-form-item__label"},{default:se(()=>[ne(O,{onClick:s,type:"primary"},{default:se(()=>[xt("\u52A0\u8F7D")]),_:1})]),_:1})]),_:1})]),_:1}),ne(k,{label:"\u89C4\u5219\u94FE\u5B9A\u4E49\u6570\u636E",prop:"data"},{default:se(()=>[ne(v(f0),{modelValue:a.data,"onUpdate:modelValue":h[1]||(h[1]=P=>a.data=P),placeholder:"\u8BF7\u8F93\u5165\u89C4\u5219\u94FE\u5B9A\u4E49JSON\u6570\u636E...",style:{height:"260px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1}),ge("div",cHe,[ne(O,{type:"primary",size:"large",onClick:l},{default:se(()=>[xt("\u786E\u8BA4")]),_:1}),ne(O,{size:"large",onClick:u},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),_:1},8,["model"])}}},dHe={__name:"NewOrOpenFlowDialog",props:["show","lf"],emits:["new","open","close"],setup(e,{emit:t}){const n=ee("new"),r=a=>{t("new",a)},o=a=>{t("open",a)},i=()=>{t("close")};return(a,s)=>{const l=cl,u=ul,f=fE,h=cE,m=Ld;return U(),Qe(m,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,draggable:"",top:"10px","before-close":i,modelValue:e.show},{header:se(()=>[ne(u,null,{default:se(()=>[ne(l,{span:12},{default:se(()=>[xt("\u65B0\u5EFA/\u6253\u5F00\u89C4\u5219\u94FE")]),_:1})]),_:1})]),default:se(()=>[ne(h,{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=y=>n.value=y)},{default:se(()=>[ne(f,{label:"\u65B0\u5EFA\u89C4\u5219\u94FE",name:"new"},{default:se(()=>[ne(uHe,{onSubmit:r,onClose:i})]),_:1}),ne(f,{label:"\u6253\u5F00\u89C4\u5219\u94FE",name:"open"},{default:se(()=>[ne(fHe,{lf:e.lf,onSubmit:o,onClose:i},null,8,["lf"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}},hHe={style:{flex:"auto"}},pHe={__name:"PostMsgDialog",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=[TE()],i=ee(),a=or({url:r.getEditorSetting().msgApi.replace(":chainId",r.getRuleChain().id),headers:`
- {
- "Content-Type": "application/json"
- }
- `,body:`
- {
- "temperature":28
- }
- `});let s=":msgTye";wc(()=>{a.url=r.getEditorSetting().msgApi.replace(":chainId",r.getRuleChain().id).replace(":msgType",s)});const l=f=>{!f||f.validate(h=>{if(h)try{if(a.url.indexOf(":")>-1){Fi.error("\u8BF7\u66FF\u6362url\u4E2D\u7684:msgType(\u6D88\u606F\u7C7B\u578B)");return}else{let y=a.url.lastIndexOf("/"),O=a.url.length;s=a.url.slice(y+1,O)}const m={method:"POST",headers:JSON.parse(a.headers),body:a.body};fetch(r.getEditorSetting().url+a.url,m).then(y=>y.text()).then(y=>{Fi({showClose:!0,message:"\u53D1\u9001\u6210\u529F",type:"success"})}).catch(y=>{Fi.error(y.message)})}catch(m){Fi.error(m.message)}else return!1})},u=()=>{t("close")};return(f,h)=>{const m=ri,y=Mf,O=Af,b=io,k=Ld;return U(),Qe(k,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,width:"70%",draggable:"",top:"10px","before-close":u,modelValue:e.show},{header:se(()=>[xt(" \u8C03\u8BD5 ")]),footer:se(()=>[ge("div",hHe,[ne(b,{type:"primary",size:"large",onClick:h[3]||(h[3]=C=>l(i.value))},{default:se(()=>[xt("\u53D1\u9001")]),_:1}),ne(b,{size:"large",onClick:u},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),default:se(()=>[ne(O,{model:a,ref_key:"formRef",ref:i,"label-position":"top","label-width":"auto"},{default:se(()=>[ne(y,{label:"\u4E0A\u62A5\u6570\u636EURL",rules:[{required:!0,message:"url\u662F\u5FC5\u987B\u7684"}],prop:"url"},{default:se(()=>[ne(m,{modelValue:a.url,"onUpdate:modelValue":h[0]||(h[0]=C=>a.url=C),placeholder:"\u8BF7\u8F93\u5165\u4E0A\u62A5\u6570\u636EURL:/api/v1/msg/:chainId/:msgType"},{prepend:se(()=>[xt(" POST "+ct(e.lf.getEditorSetting().url),1)]),_:1},8,["modelValue"])]),_:1}),ne(y,{label:"\u8BF7\u6C42\u5934",prop:"headers"},{default:se(()=>[ne(v(f0),{modelValue:a.headers,"onUpdate:modelValue":h[1]||(h[1]=C=>a.headers=C),placeholder:"\u8BF7\u8F93\u5165\u8BF7\u6C42\u5934\u6570\u636E",style:{height:"100px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1}),ne(y,{label:"\u8BF7\u6C42Body",prop:"body"},{default:se(()=>[ne(v(f0),{modelValue:a.body,"onUpdate:modelValue":h[2]||(h[2]=C=>a.body=C),placeholder:"\u8BF7\u8F93\u5165\u8BF7\u6C42\u4F53\u6570\u636E",style:{height:"100px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},gHe=e=>(jie("data-v-4a674452"),e=e(),Lie(),e),mHe={class:"up-toolbar"},vHe=gHe(()=>ge("div",{class:"logo"},[ge("img",{class:"logoimg",src:zFe,alt:"logo"}),xt("Sagoo Rule Editor ")],-1)),yHe={class:"title"},bHe={__name:"Toolbar",props:["lf"],setup(e){const{lf:t}=e,n=ee(null),r=ee(null),o=ee(!1),i=ee(!1),a=ee(!1),s=ee(),l=ee(),u=ee(!1),f=ee(!1),h=ee(!1),m=ee(!1),y=ee(!1),O=ee("");let b=ee({x:0,y:0}),k=ee({x:0,y:0,targetNodeId:""});const C=ee(!0),P=ee({toolbar:t.getEditorSetting().toolbar});let $=null,T=null,A=null;vn(()=>{$=window.location.search.split("?id=")[1],$&&fetch(t.getEditorSetting().url+"/api/v1/rule/"+$).then(z=>{if(!z.ok)Fi.closeAll(),Fi.error("\u89C4\u5219\u94FE\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u66F4\u6362 ID \u518D\u6B21\u5C1D\u8BD5");else return z.text()}).then(z=>{var q;if(z){oe(z);const ue=JSON.parse(z);T=ue.ruleChain.name,A=(q=ue.ruleChain.additionalInfo)==null?void 0:q.description}}).catch(z=>{Fi.error(z.message)})}),t.on("history:change",()=>{i.value=!0}),t.on("selection:selected,node:click,edge:click,blank:click",()=>{const{nodes:z,edges:q}=t.getSelectElements();z.filter(he=>he.type!=="start-node").length>0||q.length>0?o.value=!0:o.value=!1}),t.on("node:drag",({data:z,e:q})=>{if(z.type!=="start-node"&&n.value&&z.id===n.value.id){let ue=t.getPointByClient(q.clientX,q.clientY);b.value.x=ue.domOverlayPosition.x+40,b.value.y=ue.domOverlayPosition.y-45}else if(r.value){let ue=t.getEdgeDataById(r.value.id);if(z.id!==ue.sourceNodeId&&z.id!==ue.targetNodeId)return;let he=t.getPointByClient(q.clientX,q.clientY);k.value.x!==0&&k.value.y!==0&&k.value.targetNodeId===z.id&&(b.value.x=b.value.x-(k.value.x-he.domOverlayPosition.x),b.value.y=b.value.y-(k.value.y-he.domOverlayPosition.y)),k.value.x=he.domOverlayPosition.x,k.value.y=he.domOverlayPosition.y,k.value.targetNodeId=z.id}}),t.on("node:click",({data:z,position:q})=>{z.type!=="start-node"?(n.value=z,r.value=null,b.value.x=q.domOverlayPosition.x+40,b.value.y=q.domOverlayPosition.y-45,k.value.x=0,k.value.y=0,k.value.targetNodeId=z.id,m.value=!0):m.value=!1}),t.on("edge:click",({data:z,position:q})=>{n.value=null,r.value=z,b.value.x=q.domOverlayPosition.x+10,b.value.y=q.domOverlayPosition.y,k.value.x=0,k.value.y=0,k.value.targetNodeId="",m.value=!0}),t.on("blank:click",({})=>{n.value=null,r.value=null,m.value=!1}),t.on("rulego-editor:deleted",z=>{n.value=null,r.value=null,m.value=!1,o.value=!1}),t.on("rulego-editor:setting",z=>{P.value=z,C.value=z.showTest});const R=()=>{y.value=!0},B=()=>{if(!($&&T))return Fi.info("\u8BF7\u5148\u4ECE sagoo-iot \u4E2D\u9009\u62E9\u4E00\u4E2A\u89C4\u5219\u94FE\u518D\u8FDB\u884C\u5BFC\u5165\u64CD\u4F5C");const z=document.createElement("input");z.type="file",z.accept=".json",z.onchange=()=>{const q=z.files[0],ue=new FileReader;ue.readAsText(q),ue.onload=()=>{const he=JSON.parse(ue.result);he.ruleChain.id=$,he.ruleChain.name=T,he.ruleChain.additionalInfo.description=A,O.value=he.ruleChain.name,t.graphModel.eventCenter.emit("rulego-editor:open",JSON.stringify(he)),i.value=!0}},z.click()},I=()=>{const z=t.getGraphData(),q=z.ruleChain.id,ue=new Blob([JSON.stringify(z,null,2)],{type:"text/plain;charset=utf-8"});G3.exports.saveAs(ue,q+".json")},N=()=>{a.value=!1},j=()=>{u.value=!1},L=()=>{u.value=!1,f.value=!1,h.value=!1,y.value=!1},V=()=>{window.close()},X=z=>{t.graphModel.eventCenter.emit("rulego-editor:new",z),L()},oe=z=>{O.value=JSON.parse(z).ruleChain.name,t.graphModel.eventCenter.emit("rulego-editor:open",z),L()},K=z=>{t.graphModel.eventCenter.emit("rulego-editor:setting",z),L()},Z=()=>{t.graphModel.eventCenter.emit("rulego-editor:save")},re=()=>{t.graphModel.eventCenter.emit("rulego-editor:deleteSelects"),m.value=!1},J=()=>{t.graphModel.eventCenter.emit("rulego-editor:showEditPanel")};return(z,q)=>{const ue=io,he=cl,le=ul;return U(),ce(Pt,null,[ge("div",mHe,[vHe,ge("div",yHe,ct(O.value),1),ne(le,null,{default:se(()=>[ne(he,{span:24},{default:se(()=>[ne(ue,{onClick:Z,type:"primary",icon:v(x0),size:"small",disabled:!i.value},{default:se(()=>[xt("\u4FDD\u5B58")]),_:1},8,["icon","disabled"]),ne(ue,{onClick:R,type:"success",icon:v(xD),size:"small"},{default:se(()=>[xt("\u8C03\u8BD5")]),_:1},8,["icon"]),ne(ue,{onClick:B,type:"info",plain:"",icon:v(eSe),size:"small"},{default:se(()=>[xt("\u5BFC\u5165")]),_:1},8,["icon"]),ne(ue,{onClick:I,type:"info",icon:v(RSe),size:"small"},{default:se(()=>[xt("\u5BFC\u51FA")]),_:1},8,["icon"]),ne(ue,{onClick:V,type:"warning",icon:v(Ts),size:"small"},{default:se(()=>[xt("\u5173\u95ED")]),_:1},8,["icon"])]),_:1})]),_:1})]),Fe("",!0),ne(dHe,{lf:e.lf,show:f.value,onNew:X,onOpen:oe,onClose:L},null,8,["lf","show"]),ne(tHe,{lf:e.lf,show:a.value,data:s.value,ruleChainId:l.value,onClose:N},null,8,["lf","show","data","ruleChainId"]),ne(aHe,{lf:e.lf,show:u.value,onSubmit:K,onClose:j},null,8,["lf","show"]),m.value?(U(),Qe(sHe,{key:1,onDelete:re,onEdit:J,currentElementPosition:v(b)},null,8,["currentElementPosition"])):Fe("",!0),ne(pHe,{lf:e.lf,show:y.value,onClose:L},null,8,["lf","show"])],64)}}};var _He=R0(bHe,[["__scopeId","data-v-4a674452"]]);class mJ{constructor({lf:t}){this.app=S2(_He,{lf:t})}render(t,n){const r=document.createElement("div");n.appendChild(r),this.app.mount(r)}}F$(mJ,"pluginName","ControlExtension");const OHe={style:{flex:"auto","text-align":"left"}},wHe={__name:"EdgePropertyDrawer",props:["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"],emits:["submit","cancel"],setup(e,{emit:t}){const{show:n,currentEdgeModel:r,sourceNodeView:o,relationTypeSplit:i,sourceNodeRelationTypeOptions:a}=e,s=ee(),l=or({relationTypeOptions:[],relationTypeValues:[]});let u=r;l.relationTypeOptions=a||o&&o.relationTypes,l.relationTypeValues=r.routerId||r.relationTypes,l.relationTypeAllowCreate=o&&o.relationTypeAllowCreate;const f=y=>{!y||y.validate(O=>{if(O)o.nodeType==="endpoint-node"?u.relationTypes=[l.relationTypeValues]:u.relationTypes=l.relationTypeValues,u.relationTypesLabel=Sr.getSelectedLabels(l.relationTypeOptions,u.relationTypes,"relationTypes"),t("submit",dr(u));else return!1})},h=()=>{t("cancel")},m=()=>{h()};return(y,O)=>{const b=cl,k=ul,C=pp,P=bc,$=Mf,T=Af,A=io,R=m3;return U(),Qe(R,{modal:!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,direction:"rtl",size:"580px","modal-class":"right-drawer-modal","before-close":m,modelValue:e.show},{header:se(()=>[ne(k,{class:"setter-title"},{default:se(()=>[ne(b,{span:12},{default:se(()=>[xt("\u89C4\u5219\u8282\u70B9\u94FE\u63A5\u8BE6\u60C5")]),_:1})]),_:1})]),footer:se(()=>[ge("div",OHe,[ne(A,{type:"primary",size:"large",onClick:O[1]||(O[1]=B=>f(s.value))},{default:se(()=>[xt("\u786E\u8BA4")]),_:1}),ne(A,{size:"large",onClick:h},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),default:se(()=>[ne(T,{model:l,ref_key:"formRef",ref:s,"label-position":"right","label-width":"auto"},{default:se(()=>[ne($,{label:"\u94FE\u63A5\u6807\u7B7E",rules:[{required:!0,message:"\u94FE\u63A5\u6807\u7B7E\u662F\u5FC5\u987B\u7684"}],prop:"relationTypeValues"},{default:se(()=>[ne(P,{modelValue:l.relationTypeValues,"onUpdate:modelValue":O[0]||(O[0]=B=>l.relationTypeValues=B),multiple:e.sourceNodeView.nodeType!=="endpoint-node",filterable:"","allow-create":l.relationTypeAllowCreate||!l.relationTypeOptions||l.relationTypeOptions.length===0,placeholder:"\u94FE\u63A5\u6807\u7B7E",style:{width:"100%"}},{default:se(()=>[(U(!0),ce(Pt,null,_n(l.relationTypeOptions,B=>(U(),Qe(C,{key:B.value!==void 0&&B.value!==null?B.value:B,label:B.label||B,value:B.value!==void 0&&B.value!==null?B.value:B},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple","allow-create"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},SHe={style:{flex:"auto"}},xHe={__name:"EdgePropertyDialog",props:["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"],emits:["submit","cancel"],setup(e,{emit:t}){const{show:n,currentEdgeModel:r,sourceNodeView:o,relationTypeSplit:i,sourceNodeRelationTypeOptions:a}=e,s=ee(),l=or({relationTypeAllowCreate:!1,relationTypeOptions:[],relationTypeValues:[]});let u=r;if(l.relationTypeOptions=a||o&&o.relationTypes,l.relationTypeValues=r.routerId||r.relationTypes,l.relationTypeAllowCreate=o&&o.relationTypeAllowCreate,!l.relationTypeValues){let y=l.relationTypeOptions&&l.relationTypeOptions.length>0?l.relationTypeOptions[0]:null;y?o.nodeType==="endpoint-node"?l.relationTypeValues=y.value!==void 0&&y.value!==null?y.value:y:l.relationTypeValues=[y.value!==void 0&&y.value!==null?y.value:y]:l.relationTypeValues=[]}const f=y=>{!y||y.validate(O=>{if(O)o.nodeType==="endpoint-node"?u.relationTypes=[l.relationTypeValues]:u.relationTypes=l.relationTypeValues,u.relationTypesLabel=Sr.getSelectedLabels(l.relationTypeOptions,u.relationTypes,"relationTypes"),t("submit",dr(u));else return!1})},h=()=>{t("cancel")},m=()=>{h()};return(y,O)=>{const b=pp,k=bc,C=Mf,P=Af,$=io,T=Ld;return U(),Qe(T,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"50%",draggable:"",top:"10px","before-close":m,modelValue:e.show},{header:se(()=>[xt(" \u6DFB\u52A0\u94FE\u63A5 ")]),footer:se(()=>[ge("div",SHe,[ne($,{type:"primary",size:"large",onClick:O[1]||(O[1]=A=>f(s.value))},{default:se(()=>[xt("\u786E\u8BA4")]),_:1}),ne($,{size:"large",onClick:h},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),default:se(()=>[ne(P,{model:l,ref_key:"formRef",ref:s,"label-position":"right","label-width":"auto"},{default:se(()=>[ne(C,{label:"\u94FE\u63A5\u6807\u7B7E",rules:[{required:!0,message:"\u94FE\u63A5\u6807\u7B7E\u662F\u5FC5\u987B\u7684"}],prop:"relationTypeValues"},{default:se(()=>[ne(k,{modelValue:l.relationTypeValues,"onUpdate:modelValue":O[0]||(O[0]=A=>l.relationTypeValues=A),multiple:e.sourceNodeView.nodeType!=="endpoint-node",filterable:"","allow-create":l.relationTypeAllowCreate||!l.relationTypeOptions||l.relationTypeOptions.length===0,placeholder:"\u94FE\u63A5\u6807\u7B7E",style:{width:"100%"}},{default:se(()=>[(U(!0),ce(Pt,null,_n(l.relationTypeOptions,A=>(U(),Qe(b,{key:A.value!==void 0&&A.value!==null?A.value:A,label:A.label||A,value:A.value!==void 0&&A.value!==null?A.value:A},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple","allow-create"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},kHe=304,mz=1,CHe=2,EHe=305,THe=307,PHe=308,$He=3,AHe=4,MHe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],vJ=125,RHe=59,vz=47,NHe=42,IHe=43,DHe=45,jHe=new XUe({start:!1,shift(e,t){return t==$He||t==AHe||t==THe?e:t==PHe},strict:!1}),LHe=new Nj((e,t)=>{let{next:n}=e;(n==vJ||n==-1||t.context)&&e.acceptToken(EHe)},{contextual:!0,fallback:!0}),BHe=new Nj((e,t)=>{let{next:n}=e,r;MHe.indexOf(n)>-1||n==vz&&((r=e.peek(1))==vz||r==NHe)||n!=vJ&&n!=RHe&&n!=-1&&!t.context&&e.acceptToken(kHe)},{contextual:!0}),VHe=new Nj((e,t)=>{let{next:n}=e;if((n==IHe||n==DHe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(mz);e.acceptToken(r?mz:CHe)}},{contextual:!0}),FHe=pj({"get set async static":yt.modifier,"for while do if else switch try catch finally return throw break continue default case":yt.controlKeyword,"in of await yield void typeof delete instanceof":yt.operatorKeyword,"let var const using function class extends":yt.definitionKeyword,"import export from":yt.moduleKeyword,"with debugger as new":yt.keyword,TemplateString:yt.special(yt.string),super:yt.atom,BooleanLiteral:yt.bool,this:yt.self,null:yt.null,Star:yt.modifier,VariableName:yt.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":yt.function(yt.variableName),VariableDefinition:yt.definition(yt.variableName),Label:yt.labelName,PropertyName:yt.propertyName,PrivatePropertyName:yt.special(yt.propertyName),"CallExpression/MemberExpression/PropertyName":yt.function(yt.propertyName),"FunctionDeclaration/VariableDefinition":yt.function(yt.definition(yt.variableName)),"ClassDeclaration/VariableDefinition":yt.definition(yt.className),PropertyDefinition:yt.definition(yt.propertyName),PrivatePropertyDefinition:yt.definition(yt.special(yt.propertyName)),UpdateOp:yt.updateOperator,"LineComment Hashbang":yt.lineComment,BlockComment:yt.blockComment,Number:yt.number,String:yt.string,Escape:yt.escape,ArithOp:yt.arithmeticOperator,LogicOp:yt.logicOperator,BitOp:yt.bitwiseOperator,CompareOp:yt.compareOperator,RegExp:yt.regexp,Equals:yt.definitionOperator,Arrow:yt.function(yt.punctuation),": Spread":yt.punctuation,"( )":yt.paren,"[ ]":yt.squareBracket,"{ }":yt.brace,"InterpolationStart InterpolationEnd":yt.special(yt.brace),".":yt.derefOperator,", ;":yt.separator,"@":yt.meta,TypeName:yt.typeName,TypeDefinition:yt.definition(yt.typeName),"type enum interface implements namespace module declare":yt.definitionKeyword,"abstract global Privacy readonly override":yt.modifier,"is keyof unique infer":yt.operatorKeyword,JSXAttributeValue:yt.attributeValue,JSXText:yt.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":yt.angleBracket,"JSXIdentifier JSXNameSpacedName":yt.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":yt.attributeName,"JSXBuiltin/JSXIdentifier":yt.standard(yt.tagName)}),zHe={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},QHe={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},WHe={__proto__:null,"<":139},YHe=y1.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO<dQSO'#G}O={QSO'#CcO>]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-E<b-E<bO9ZQSO,5=WO!$UQSO,5=WO!$ZQUO,5;TO!&^Q,UO'#EeO!'qQSO,5;TO!)ZQ,UO'#DqO!)bQUO'#DvO!)lQWO,5;^O!)tQWO,5;^O%[QUO,5;^OOQQ'#FP'#FPOOQQ'#FR'#FRO%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_OOQQ'#FV'#FVO!*SQUO,5;pOOQ(CY,5;u,5;uOOQ(CY,5;v,5;vO!,VQSO,5;vOOQ(CY,5;w,5;wO%[QUO'#IhO!,_Q(C[O,5<dO!&^Q,UO,5;_O!,|Q,UO,5;_O%[QUO,5;sO!-TQ#tO'#FfO!.QQ#tO'#JyO!-lQ#tO'#JyO!.XQ#tO'#JyOOQO'#Jy'#JyO!.mQ#tO,5<OOOOO,5<[,5<[O!/OQUO'#FrOOOO'#Ig'#IgO7YO&jO,5;{O!/VQ#tO'#FtOOQ(CY,5;{,5;{O!/vQ7[O'#CsOOQ(CY'#Cw'#CwO!0ZQSO'#CwO!0`O07`O'#C{O!0|Q,UO,5<aO!1TQSO,5<cO!2jQMhO'#GRO!2wQSO'#GSO!2|QSO'#GSO!3RQMhO'#GWO!4QQWO'#G[O!4sQ7[O'#J`OOQ(CY'#J`'#J`O!4}QSO'#J_O!5]QSO'#J^O!5eQSO'#CrOOQ(CY'#Cu'#CuOOQ(CY'#DP'#DPOOQ(CY'#DR'#DRO1SQSO'#DTO!'vQ,UO'#FyO!'vQ,UO'#F{O!5mQSO'#F}O!5rQSO'#GOO!2|QSO'#GUO!'vQ,UO'#GZO!5wQSO'#EkO!6fQSO,5<bOOQ(CW'#Cp'#CpO!6nQSO'#ElO!7hQWO'#EmOOQ(CW'#Js'#JsO!7oQ(C[O'#KSO9eQ(C[O,5=[O`QUO,5>lOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-E<T-E<TO!9qQ(CjO,5:ZO!<_Q(CjO,5:gO%[QUO,5:gO!>xQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AcQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AkQSO,5=sO!ApQSO,5=sO!AuQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BTQWO,5=`O!B]Q,UO,5=aO!BhQSO,5=cO!BmQ`O,5=fO!BuQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!BzQSO'#HRO9{Q,UO'#HTO!CPQSO'#HTOOQQ,5=i,5=iO!CUQSO'#HUO!C^QSO'#CmO!CcQSO,58}O!CmQSO,58}O!ErQUO,58}OOQQ,58},58}O!FSQ(C[O,58}O%[QUO,58}O!H_QUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!HuQSO,5=uO`QUO,5={O`QUO,5=}O!HzQSO,5>PO`QUO,5>RO!IPQSO,5>UO!IUQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!M`QSO,5>fOOQQ,5>h,5>hO!M`QSO,5>hOOQQ,5>j,5>jO!MeQWO'#DYO%[QUO'#JiO!NSQWO'#JiO!NqQWO'#DhO# SQWO'#DhO##eQUO'#DhO##lQSO'#JhO##tQSO,5:RO##yQSO'#EnO#$XQSO'#JvO#$aQSO,5;XO#$fQWO'#DhO#$sQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#$zQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%SQSO,5@TO#%XQ!LQO,5:pOOQO-E<_-E<_O#&_Q(C`O,5:{OChQWO,5:oO#&iQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#&vQ(C[O,5:{O#'RQ(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'aQ(C[O,5:{POOO'#IU'#IUP#'uO?MpO,58zPOOO,58z,58zOOOO-E<U-E<UOOQ(CY1G.n1G.nOOOO-E<V-E<VO#(QQ`O,59xOOOO-E<X-E<XOOQ(CY1G/b1G/bO#(VQbO,5>vO+}QUO,5>vOOQO,5>|,5>|O#(aQUO'#I[OOQO-E<Y-E<YO#(nQSO,5@RO#(vQbO,5@RO#(}QSO,5@`OOQ(CY1G/h1G/hO%[QUO,5@aO#)VQSO'#IbOOQO-E<`-E<`O#(}QSO,5@`OOQ(CW1G0r1G0rOOQ(CY1G/s1G/sOOQ(CY1G0V1G0VO%[QUO,5@^O#)kQ(C[O,5@^O#)|Q(C[O,5@^O#*TQSO,5@]O9TQSO,5@]O#*]QSO,5@]O#*kQSO'#IeO#*TQSO,5@]OOQ(CW1G0q1G0qO!)lQWO,5:rO!)wQWO,5:rOOQO,5:t,5:tO#+]QSO,5:tO#+eQ,UO1G2rO9ZQSO1G2rOOQ(CY1G0o1G0oO#+sQ(CjO1G0oO#,xQ(ChO,5;POOQ(CY'#GQ'#GQO#-fQ(CjO'#J`O!$ZQUO1G0oO#/nQ,UO'#JjO#/xQSO,5:]O#/}QbO'#JkO%[QUO'#JkO#0XQSO,5:bOOQ(CY'#DY'#DYOOQ(CY1G0x1G0xO%[QUO1G0xOOQ(CY1G1b1G1bO#0^QSO1G0xO#2uQ(CjO1G0yO#2|Q(CjO1G0yO#5gQ(CjO1G0yO#5nQ(CjO1G0yO#7xQ(CjO1G0yO#8`Q(CjO1G0yO#;YQ(CjO1G0yO#;aQ(CjO1G0yO#=zQ(CjO1G0yO#>RQ(CjO1G0yO#?yQ(CjO1G0yO#ByQ$IUO'#CgO#DwQ$IUO1G1[O#EOQ$IUO'#JfO!,YQSO1G1bO#E`Q(CjO,5?SOOQ(CW-E<f-E<fO#FSQ(CjO1G0yOOQ(CY1G0y1G0yO#H_Q(CjO1G1_O#IRQ#tO,5<SO#IZQ#tO,5<TO#IcQ#tO'#FkO#IzQSO'#FjOOQO'#Jz'#JzOOQO'#If'#IfO#JPQ#tO1G1jOOQ(CY1G1j1G1jOOOO1G1u1G1uO#JbQ$IUO'#JeO#JlQSO,5<^O!*SQUO,5<^OOOO-E<e-E<eOOQ(CY1G1g1G1gO#JqQWO'#JyOOQ(CY,5<`,5<`O#JyQWO,5<`OOQ(CY,59c,59cO!&^Q,UO'#C}OOOO'#IY'#IYO#KOO07`O,59gOOQ(CY,59g,59gO%[QUO1G1{O!5rQSO'#IjO#KZQ,UO,5<tOOQ(CY,5<q,5<qOOQO'#Gg'#GgO!'vQ,UO,5=QOOQO'#Gi'#GiO!'vQ,UO,5=SO!&^Q,UO,5=UOOQO1G1}1G1}O#KbQ`O'#CpO#KuQ`O,5<mO#K|QSO'#J}O9ZQSO'#J}O#L[QSO,5<oO!'vQ,UO,5<nO#LaQSO'#GTO#LlQSO,5<nO#LqQ`O'#GQO#MOQ`O'#KOO#MYQSO'#KOO!&^Q,UO'#KOO#M_QSO,5<rO#MdQWO'#G]O!3{QWO'#G]O#MuQSO'#G_O#MzQSO'#GaO!2|QSO'#GdO#NPQ(C[O'#IlO#N[QWO,5<vOOQ(CY,5<v,5<vO#NcQWO'#G]O#NqQWO'#G^O#NyQWO'#G^OOQ(CY,5=V,5=VO!'vQ,UO,5?yO!'vQ,UO,5?yO$ OQSO'#ImO$ ZQSO,5?xO$ cQSO,59^O$!SQ,UO,59oOOQ(CY,59o,59oO$!uQ,UO,5<eO$#hQ,UO,5<gO@[QSO,5<iOOQ(CY,5<j,5<jO$#rQSO,5<pO$#wQ,UO,5<uO$$XQSO'#JqO!$ZQUO1G1|O$$^QSO1G1|O9TQSO'#JtO9TQSO'#EnO%[QUO'#EnO9TQSO'#IoO$$cQ(C[O,5@nOOQQ1G2v1G2vOOQQ1G4W1G4WOOQ(CY1G/u1G/uO!,VQSO1G/uO$&hQ(CjO1G0ROOQQ1G2r1G2rO!&^Q,UO1G2rO%[QUO1G2rO$'XQSO1G2rO$'dQ,UO'#EeOOQ(CW,5?v,5?vO$'nQ(C[O,5?vOOQQ1G.s1G.sO!@YQ(C[O1G.sO!@eQWO1G.sO!@mQ,UO1G.sO$(PQSO1G0oO$(UQSO'#CgO$(aQSO'#KWO$(iQSO,5=tO$(nQSO'#KWO$(sQSO'#KWO$)OQSO'#IuO$)^QSO,5@qO$)fQbO1G1dOOQ(CY1G1f1G1fO9ZQSO1G3_O@[QSO1G3_O$)mQSO1G3_O$)rQSO1G3_OOQQ1G3_1G3_O!BhQSO1G2}O!&^Q,UO1G2zO$)wQSO1G2zOOQQ1G2{1G2{O!&^Q,UO1G2{O$)|QSO1G2{O$*UQWO'#GyOOQQ1G2}1G2}O!3{QWO'#IqO!BmQ`O1G3QOOQQ1G3Q1G3QOOQQ,5=k,5=kO$*^Q,UO,5=mO9ZQSO,5=mO#MzQSO,5=oO9OQSO,5=oO!@eQWO,5=oO!@mQ,UO,5=oO9{Q,UO,5=oO$*lQSO'#KUO$*wQSO,5=pOOQQ1G.i1G.iO$*|Q(C[O1G.iO@[QSO1G.iO$+XQSO1G.iO9eQ(C[O1G.iO$-^QbO,5@sO$-nQSO,5@sO9TQSO,5@sO$-yQUO,5=wO$.QQSO,5=wOOQQ1G3a1G3aO`QUO1G3aOOQQ1G3g1G3gOOQQ1G3i1G3iO>eQSO1G3kO$.VQUO1G3mO$2ZQUO'#HlOOQQ1G3p1G3pO$2hQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$2pQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$6wQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$6|Q$IUO,5:SOOQO,5;Y,5;YO$7WQWO'#I]O$7nQSO,5@SOOQ(CY1G/m1G/mO$7vQWO'#IcO$8QQSO,5@bOOQ(CW1G0s1G0sO# SQWO,5:SOOQO'#I`'#I`O$8YQWO,5:nOOQ(CY,5:n,5:nO#$}QSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8aQ(C[O1G0gO$8lQ(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$8zQ(C[O1G0gOOQO1G0Z1G0ZO$9`Q(CjO1G0gPOOO-E<S-E<SPOOO1G.f1G.fOOOO1G/d1G/dO$9jQ`O,5<dO$9rQbO1G4bOOQO1G4h1G4hO%[QUO,5>vO$9|QSO1G5mO$:UQSO1G5zO$:^QbO1G5{O9TQSO,5>|O$:hQ(CjO1G5xO%[QUO1G5xO$:xQ(C[O1G5xO$;ZQSO1G5wO$;ZQSO1G5wO9TQSO1G5wO$;cQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$;wQSO,5?PO$$XQSO,5?POOQO-E<c-E<cOOQO1G0^1G0^OOQO1G0`1G0`O!,YQSO1G0`OOQQ7+(^7+(^O!&^Q,UO7+(^O%[QUO7+(^O$<VQSO7+(^O$<bQ,UO7+(^O$<pQ(CjO,59oO$>xQ(CjO,5<eO$ATQ(CjO,5<gO$C`Q(CjO,5<uOOQ(CY7+&Z7+&ZO$EqQ(CjO7+&ZO$FeQ,UO'#I^O$FoQSO,5@UOOQ(CY1G/w1G/wO$FwQUO'#I_O$GUQSO,5@VO$G^QbO,5@VOOQ(CY1G/|1G/|O$GhQSO7+&dOOQ(CY7+&d7+&dO$GmQ$IUO,5:cO%[QUO7+&vO$GwQ$IUO,5:ZO$HUQ$IUO,5:gO$H`Q$IUO,5:iOOQ(CY7+&|7+&|OOQO1G1n1G1nOOQO1G1o1G1oO$HjQ#tO,5<VO!*SQUO,5<UOOQO-E<d-E<dOOQ(CY7+'U7+'UOOOO7+'a7+'aOOOO1G1x1G1xO$HuQSO1G1xOOQ(CY1G1z1G1zO$HzQ`O,59iOOOO-E<W-E<WOOQ(CY1G/R1G/RO$IRQ(CjO7+'gOOQ(CY,5?U,5?UO$IuQ`O,5?UOOQ(CY1G2`1G2`P!&^Q,UO'#IjPOQ(CY-E<h-E<hO$JeQ,UO1G2lO$KWQ,UO1G2nO$KbQ`O1G2pOOQ(CY1G2X1G2XO$KiQSO'#IiO$KwQSO,5@iO$KwQSO,5@iO$LPQSO,5@iO$L[QSO,5@iOOQO1G2Z1G2ZO$LjQ,UO1G2YO!'vQ,UO1G2YO$LzQMhO'#IkO$M[QSO,5@jO!&^Q,UO,5@jO$MdQ`O,5@jOOQ(CY1G2^1G2^OOQ(CW,5<w,5<wOOQ(CW,5<x,5<xO$$XQSO,5<xOCXQSO,5<xO!@eQWO,5<wOOQO'#G`'#G`O$MnQSO,5<yOOQ(CW,5<{,5<{O$$XQSO,5=OOOQO,5?W,5?WOOQO-E<j-E<jOOQ(CY1G2b1G2bO!3{QWO,5<wO$MvQSO,5<xO#MuQSO,5<yO!3{QWO,5<xO$NRQ,UO1G5eO$N]Q,UO1G5eOOQO,5?X,5?XOOQO-E<k-E<kOOQO1G.x1G.xO!7cQWO,59qO%[QUO,59qO$NjQSO1G2TO!'vQ,UO1G2[O$NoQ(CjO7+'hOOQ(CY7+'h7+'hO!$ZQUO7+'hO% cQSO,5;YOOQ(CW,5?Z,5?ZOOQ(CW-E<m-E<mOOQ(CY7+%a7+%aO% hQ`O'#KPO#$}QSO7+(^O% rQbO7+(^O$<YQSO7+(^O% yQ(ChO'#CgO%!^Q(ChO,5<|O%#OQSO,5<|OOQ(CW1G5b1G5bOOQQ7+$_7+$_O!@YQ(C[O7+$_O!@eQWO7+$_O!$ZQUO7+&ZO%#TQSO'#ItO%#iQSO,5@rOOQO1G3`1G3`O9ZQSO,5@rO%#iQSO,5@rO%#qQSO,5@rOOQO,5?a,5?aOOQO-E<s-E<sOOQ(CY7+'O7+'OO%#vQSO7+(yO9eQ(C[O7+(yO9ZQSO7+(yO@[QSO7+(yOOQQ7+(i7+(iO%#{Q(ChO7+(fO!&^Q,UO7+(fO%$VQ`O7+(gOOQQ7+(g7+(gO!&^Q,UO7+(gO%$^QSO'#KTO%$iQSO,5=eOOQO,5?],5?]OOQO-E<o-E<oOOQQ7+(l7+(lO%%xQWO'#HSOOQQ1G3X1G3XO!&^Q,UO1G3XO%[QUO1G3XO%&PQSO1G3XO%&[Q,UO1G3XO9eQ(C[O1G3ZO#MzQSO1G3ZO9OQSO1G3ZO!@eQWO1G3ZO!@mQ,UO1G3ZO%&jQSO'#IsO%&uQSO,5@pO%&}QWO,5@pOOQ(CW1G3[1G3[OOQQ7+$T7+$TO@[QSO7+$TO9eQ(C[O7+$TO%'YQSO7+$TO%[QUO1G6_O%[QUO1G6`O%'_Q(C[O1G6_O%'iQUO1G3cO%'pQSO1G3cO%'uQUO1G3cOOQQ7+({7+({O9eQ(C[O7+)VO`QUO7+)XOOQQ'#KZ'#KZOOQQ'#Iv'#IvO%'|QUO,5>WOOQQ,5>W,5>WO%[QUO'#HmO%(ZQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%(`QWO1G5oO%(tQ$IUO1G0tO%)OQSO1G0tOOQO1G/n1G/nO%)ZQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E<Z-E<ZOOQO,5>},5>}OOQO-E<a-E<aO!@eQWO1G/nOOQO-E<^-E<^OOQ(CY1G0Y1G0YOOQ(CY7+%r7+%rO#$}QSO7+%rOOQ(CY7+&Y7+&YO>jQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9`Q(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%)eQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%)pQ(C[O7+&RO%*OQ(CjO7++dO%[QUO7++dO%*`QSO7++cO%*`QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%*hQSO1G4kOOQO7+%z7+%zO#$}QSO<<KxO% rQbO<<KxO%*vQSO<<KxOOQQ<<Kx<<KxO!&^Q,UO<<KxO%[QUO<<KxO%+OQSO<<KxO%+ZQ(CjO1G2lO%-fQ(CjO1G2nO%/qQ(CjO1G2YO%2SQ,UO,5>xOOQO-E<[-E<[O%2^QbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%2hQSO1G5qOOQ(CY<<JO<<JOO%2pQ$IUO1G0oO%4zQ$IUO1G0yO%5RQ$IUO1G0yO%7VQ$IUO1G0yO%7^Q$IUO1G0yO%9RQ$IUO1G0yO%9iQ$IUO1G0yO%;|Q$IUO1G0yO%<TQ$IUO1G0yO%>XQ$IUO1G0yO%>`Q$IUO1G0yO%@WQ$IUO1G0yO%@kQ(CjO<<JbO%ApQ$IUO1G0yO%CfQ$IUO'#J`O%EiQ$IUO1G1_O%EvQ$IUO1G0RO!*SQUO'#FmOOQO'#J{'#J{OOQO1G1q1G1qO%FQQSO1G1pO%FVQ$IUO,5?SOOOO7+'d7+'dOOOO1G/T1G/TOOQ(CY1G4p1G4pO!'vQ,UO7+([O%FaQSO,5?TO9ZQSO,5?TOOQO-E<g-E<gO%FoQSO1G6TO%FoQSO1G6TO%FwQSO1G6TO%GSQ,UO7+'tO%GdQ`O,5?VO%GnQSO,5?VO!&^Q,UO,5?VOOQO-E<i-E<iO%GsQ`O1G6UO%G}QSO1G6UOOQ(CW1G2d1G2dO$$XQSO1G2dOOQ(CW1G2c1G2cO%HVQSO1G2eO!&^Q,UO1G2eOOQ(CW1G2j1G2jO!@eQWO1G2cOCXQSO1G2dO%H[QSO1G2eO%HdQSO1G2dO!'vQ,UO7++POOQ(CY1G/]1G/]O%HoQSO1G/]OOQ(CY7+'o7+'oO%HtQ,UO7+'vO%IUQ(CjO<<KSOOQ(CY<<KS<<KSO%IxQSO1G0tO!&^Q,UO'#InO%I}QSO,5@kO!&^Q,UO1G2hOOQQ<<Gy<<GyO!@YQ(C[O<<GyO%JVQ(CjO<<IuOOQ(CY<<Iu<<IuOOQO,5?`,5?`O%JyQSO,5?`O$(sQSO,5?`OOQO-E<r-E<rO%KOQSO1G6^O%KOQSO1G6^O9ZQSO1G6^O@[QSO<<LeOOQQ<<Le<<LeO%KWQSO<<LeO9eQ(C[O<<LeOOQQ<<LQ<<LQO%#{Q(ChO<<LQOOQQ<<LR<<LRO%$VQ`O<<LRO%K]QWO'#IpO%KhQSO,5@oO!*SQUO,5@oOOQQ1G3P1G3PO%KpQUO'#JiOOQO'#Ir'#IrO9eQ(C[O'#IrO%KzQWO,5=nOOQQ,5=n,5=nO%LRQWO'#EaO%LgQSO7+(sO%LlQSO7+(sOOQQ7+(s7+(sO!&^Q,UO7+(sO%[QUO7+(sO%LtQSO7+(sOOQQ7+(u7+(uO9eQ(C[O7+(uO#MzQSO7+(uO9OQSO7+(uO!@eQWO7+(uO%MPQSO,5?_OOQO-E<q-E<qOOQO'#HV'#HVO%M[QSO1G6[O9eQ(C[O<<GoOOQQ<<Go<<GoO@[QSO<<GoO%MdQSO7++yO%MiQSO7++zO%[QUO7++yO%[QUO7++zOOQQ7+(}7+(}O%MnQSO7+(}O%MsQUO7+(}O%MzQSO7+(}OOQQ<<Lq<<LqOOQQ<<Ls<<LsOOQQ-E<t-E<tOOQQ1G3r1G3rO%NPQSO,5>XOOQQ,5>Z,5>ZO%NUQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO%NZQ$IUO1G5{O>jQSO7+%YOOQ(CY<<I^<<I^OOQ(CY<<It<<ItO>jQSO<<ItOOQO<<Im<<ImO$9`Q(CjO<<ImO%[QUO<<ImOOQO<<Ia<<IaO!@YQ(C[O<<IaO%NeQ(C[O<<ImO%NpQ(CjO<= OO& QQSO<<N}OOQO7+*V7+*VO9TQSO7+*VOOQQANAdANAdO& YQSOANAdO!&^Q,UOANAdO#$}QSOANAdO% rQbOANAdO%[QUOANAdO& bQ(CjO7+'tO&#sQ(CjO7+'vO&&UQbO1G4eO&&`Q$IUO7+&ZO&&mQ$IUO,59oO&(pQ$IUO,5<eO&*sQ$IUO,5<gO&,vQ$IUO,5<uO&.lQ$IUO7+'gO&.yQ$IUO7+'hO&/WQSO,5<XOOQO7+'[7+'[O&/]Q,UO<<KvOOQO1G4o1G4oO&/dQSO1G4oO&/oQSO1G4oO&/}QSO7++oO&/}QSO7++oO!&^Q,UO1G4qO&0VQ`O1G4qO&0aQSO7++pOOQ(CW7+(O7+(OO$$XQSO7+(PO&0iQ`O7+(POOQ(CW7+'}7+'}O$$XQSO7+(OO&0pQSO7+(PO!&^Q,UO7+(POCXQSO7+(OO&0uQ,UO<<NkOOQ(CY7+$w7+$wO&1PQ`O,5?YOOQO-E<l-E<lO&1ZQ(ChO7+(SOOQQAN=eAN=eO9ZQSO1G4zOOQO1G4z1G4zO&1kQSO1G4zO&1pQSO7++xO&1pQSO7++xO9eQ(C[OANBPO@[QSOANBPOOQQANBPANBPOOQQANAlANAlOOQQANAmANAmO&1xQSO,5?[OOQO-E<n-E<nO&2TQ$IUO1G6ZO&4eQbO'#CgOOQO,5?^,5?^OOQO-E<p-E<pOOQQ1G3Y1G3YO%KpQUO,5<yOOQQ<<L_<<L_O!&^Q,UO<<L_O%LgQSO<<L_O&4oQSO<<L_O%[QUO<<L_OOQQ<<La<<LaO9eQ(C[O<<LaO#MzQSO<<LaO9OQSO<<LaO&4wQWO1G4yO&5SQSO7++vOOQQAN=ZAN=ZO9eQ(C[OAN=ZOOQQ<= e<= eOOQQ<= f<= fO&5[QSO<= eO&5aQSO<= fOOQQ<<Li<<LiO&5fQSO<<LiO&5kQUO<<LiOOQQ1G3s1G3sO>jQSO7+)dO&5rQSO<<IzO&5}Q$IUO<<IzOOQO<<Ht<<HtOOQ(CYAN?`AN?`OOQOAN?XAN?XO$9`Q(CjOAN?XOOQOAN>{AN>{O%[QUOAN?XOOQO<<Mq<<MqOOQQG27OG27OO!&^Q,UOG27OO#$}QSOG27OO&6XQSOG27OO% rQbOG27OO&6aQ$IUO<<JbO&6nQ$IUO1G2YO&8dQ$IUO1G2lO&:gQ$IUO1G2nO&<jQ$IUO<<KSO&<wQ$IUO<<IuOOQO1G1s1G1sO!'vQ,UOANAbOOQO7+*Z7+*ZO&=UQSO7+*ZO&=aQSO<= ZO&=iQ`O7+*]OOQ(CW<<Kk<<KkO$$XQSO<<KkOOQ(CW<<Kj<<KjO&=sQ`O<<KkO$$XQSO<<KjOOQO7+*f7+*fO9ZQSO7+*fO&=zQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>SQSO7++uO%LgQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&>[QSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#MzQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&>dQSOANBTOOQQ<<MO<<MOO!*SQUOAN?fOOQOG24sG24sO$9`Q(CjOG24sO#$}QSOLD,jOOQQLD,jLD,jO!&^Q,UOLD,jO&>iQSOLD,jO&>qQ$IUO7+'tO&@gQ$IUO7+'vO&B]Q,UOG26|OOQO<<Mu<<MuOOQ(CWANAVANAVO$$XQSOANAVOOQ(CWANAUANAUOOQO<<NQ<<NQOOQQLD-VLD-VO&BmQ$IUO7+*bOOQQG27eG27eO%LgQSOG27eO!&^Q,UOG27eOOQQG27gG27gO9eQ(C[OG27gOOQQG27oG27oO&BwQ$IUOG25QOOQOLD*_LD*_OOQQ!$(!U!$(!UO#$}QSO!$(!UO!&^Q,UO!$(!UO&CRQ(CjOG26|OOQ(CWG26qG26qOOQQLD-PLD-PO%LgQSOLD-POOQQLD-RLD-ROOQQ!)9Ep!)9EpO#$}QSO!)9EpOOQQ!$(!k!$(!kOOQQ!.K;[!.K;[O&EdQ$IUOG26|O!*SQUO'#DwO1PQSO'#EUO&GYQbO'#JeO!*SQUO'#DoO&GaQUO'#D{O&GhQbO'#CgO&JOQbO'#CgO!*SQUO'#D}O&J`QUO,5;TO!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO'#IhO&LcQSO,5<dO&LkQ,UO,5;_O&NOQ,UO,5;_O!*SQUO,5;sO1SQSO'#DTO1SQSO'#DTO!&^Q,UO'#FyO&LkQ,UO'#FyO!&^Q,UO'#F{O&LkQ,UO'#F{O!&^Q,UO'#GZO&LkQ,UO'#GZO!*SQUO,5:gO!*SQUO,5@aO&J`QUO1G0oO&NVQ$IUO'#CgO!*SQUO1G1{O!&^Q,UO,5=QO&LkQ,UO,5=QO!&^Q,UO,5=SO&LkQ,UO,5=SO!&^Q,UO,5<nO&LkQ,UO,5<nO&J`QUO1G1|O!*SQUO7+&vO!&^Q,UO1G2YO&LkQ,UO1G2YO!&^Q,UO1G2[O&LkQ,UO1G2[O&J`QUO7+'hO&J`QUO7+&ZO!&^Q,UOANAbO&LkQ,UOANAbO&NaQSO'#EiO&NfQSO'#EiO&NnQSO'#FXO&NsQSO'#EsO&NxQSO'#JuO' TQSO'#JsO' `QSO,5;TO' eQ,UO,5<aO' lQSO'#GSO' qQSO'#GSO' vQSO,5<bO'!OQSO,5;TO'!WQ$IUO1G1[O'!_QSO,5<nO'!dQSO,5<nO'!iQSO,5<pO'!nQSO,5<pO'!sQSO1G1|O'!xQSO1G0oO'!}Q,UO<<KvO'#UQ,UO<<KvO7hQ,UO'#FwO9OQSO'#FvOAVQSO'#EhO!*SQUO,5;pO!2|QSO'#GSO!2|QSO'#GSO!2|QSO'#GUO!2|QSO'#GUO!'vQ,UO7+([O!'vQ,UO7+([O$KbQ`O1G2pO$KbQ`O1G2pO!&^Q,UO,5=UO!&^Q,UO,5=U",stateData:"'$_~O'oOS'pOSROS'qRQ~OPYOQYOW!VO_qObzOcyOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!YXO!duO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#q!PO$R|O$VfO%a}O%c!QO%e!OO%f!OO%g!OO%j!RO%l!SO%o!TO%p!TO%r!UO&O!WO&U!XO&W!YO&Y!ZO&[![O&_!]O&e!^O&k!_O&m!`O&o!aO&q!bO&s!cO'vSO'xTO'{UO(TVO(c[O(piO~OUtO~P`OPYOQYOb!jOc!iOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!Y!eO!duO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$R!kO$VfO'v!dO'xTO'{UO(TVO(c[O(piO~O_!vOm!nO}!oO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!wO#Q!pO#R!pO#U!yO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O'q!zO~OPZXYZX_ZXlZXzZX{ZX}ZX!WZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX'mZX(TZX(dZX(kZX(lZX~O!b${X~P(qO]!|O'x#OO'y!|O'z#OO~O]#PO'z#OO'{#OO'|#PO~Or#RO!P#SO(U#SO(V#UO~OPYOQYOb!jOc!iOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!Y!eO!duO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$R!kO$VfO'v9vO'xTO'{UO(TVO(c[O(piO~O!V#YO!W#VO!T(ZP!T(hP~P+}O!X#bO~P`OPYOQYOb!jOc!iOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!Y!eO!duO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$R!kO$VfO'xTO'{UO(TVO(c[O(piO~Oj#lO!V#hO!y]O#c#kO#d#hO'v9wO!h(eP~P.iO!i#nO'v#mO~O!u#rO!y]O%a#sO~O#e#tO~O!b#uO#e#tO~OP$]OY$dOl$QOz#yO{#zO}#{O!W$aO!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO#v$XO#w$YO(TVO(d$ZO(k#|O(l#}O~O_(XX'm(XX'k(XX!h(XX!T(XX!Y(XX%b(XX!b(XX~P1qO#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#p(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX!Y(YX%b(YX~O_(YX!g(YX'm(YX'k(YX!T(YX!h(YXp(YX!b(YX~P4XO#Y$eO~O$X$gO$Z$fO$b$lO~O!Y$mO$VfO$e$nO$g$pO~Oj%SOl$tOm$sOn$sOt%TOv%UOx%VO}${O!Y$|O!d%[O!i$xO#d%]O$R%YO$n%WO$p%XO$s%ZO'v$rO'xTO'{UO(P%RO(T$uOe(QP~O!i%^O~O}%aO!Y%bO'v%`O~O!b%fO~O_%gO'm%gO~O'w!lO~P%[O%g%nO~P%[O!i%^O'v%`O'w!lO(P%RO~Oc%uO!i%^O'v%`O~O#p$SO~Oz%zO!Y%wO!i%yO%c%}O'v%`O'w!lO'xTO'{UO^(yP~O!u#rO~O%l&PO}(uX!Y(uX'v(uX~O'v&QO~O!r&VO#q!PO%c!QO%e!OO%f!OO%g!OO%j!RO%l!SO%o!TO%p!TO~Ob&[Oc&ZO!u&XO%a&YO%t&WO~P;rOb&_OcyO!Y&^O!r&VO!uxO!y]O#q!PO%a}O%e!OO%f!OO%g!OO%j!RO%l!SO%o!TO%p!TO%r!UO~O`&bO#Y&eO%c&`O'w!lO~P<wO!i&fO!r&jO~O!i#nO~O!YXO~O_%gO'l&rO'm%gO~O_%gO'l&uO'm%gO~O_%gO'l&wO'm%gO~O'kZX!TZXpZX!hZX&SZX!YZX%bZX!bZX~P(qO!]'UO!^&}O!_&}O'w!lO'xTO'{UO~Om&{O}&zO!V'OO(W&yO!X([P!X(jP~P@OOh'XO!Y'VO'v%`O~Oc'^O!i%^O'v%`O~Oz%zO!i%yO~Om!nO}!oO!y9rO!}!pO#O!pO#Q!pO#R!pO'w!lO'xTO'{UO(W!mO(c!sO~O!]'dO!^'cO!_'cO#P!pO#U'eO#V'eO~PAjO_%gO!b#uO!i%^O'm%gO(P%RO(d'gO~O!m'kO#Y'iO~PBxOm!nO}!oO'xTO'{UO(W!mO(c!sO~O!YXOm(aX}(aX!](aX!^(aX!_(aX!y(aX!}(aX#O(aX#P(aX#Q(aX#R(aX#U(aX#V(aX'w(aX'x(aX'{(aX(W(aX(c(aX~O!^'cO!_'cO'w!lO~PChO'r'oO's'oO't'qO~O]!|O'x'sO'y!|O'z'sO~O]#PO'z'sO'{'sO'|#PO~Or#RO!P#SO(U#SO(V'wO~O!V'yO!T'OX!T'UX!W'OX!W'UX~P+}O!W'{O!T(ZX~OP$]OY$dOl$QOz#yO{#zO}#{O!W'{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO#v$XO#w$YO(TVO(d$ZO(k#|O(l#}O~O!T(ZX~PG[O!T(QO~O!T(gX!W(gX!b(gX!h(gX(d(gX~O#Y(gX#e#^X!X(gX~PIbO#Y(RO!T(iX!W(iX~O!W(SO!T(hX~O!T(VO~O#Y$eO~PIbO!X(WO~P`Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!kaY!kal!ka!W!ka!f!ka!m!ka#h!ka#i!ka#j!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#r!ka#t!ka#v!ka#w!ka(d!ka(k!ka(l!ka~O_!ka'm!ka'k!ka!T!ka!h!kap!ka!Y!ka%b!ka!b!ka~PJxO!h(XO~O!b#uO#Y(YO(d'gO!W(fX_(fX'm(fX~O!h(fX~PMhO}%aO!Y%bO!y]O#c(_O#d(^O'v%`O~O!W(`O!h(eX~O!h(bO~O}%aO!Y%bO#d(^O'v%`O~OP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!g(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#p(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O!b#uO!h(YX~P! UOz(cO{(dO!g#wO!i#xO!y!xa}!xa~O!u!xa%a!xa!Y!xa#c!xa#d!xa'v!xa~P!#YO!u(hO~OPYOQYOb!jOc!iOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!YXO!duO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$R!kO$VfO'v!dO'xTO'{UO(TVO(c[O(piO~Oj%SOl$tOm$sOn$sOt%TOv%UOx:[O}${O!Y$|O!d;fO!i$xO#d:bO$R%YO$n:^O$p:`O$s%ZO'v(lO'xTO'{UO(P%RO(T$uO~O#e(nO~Oj%SOl$tOm$sOn$sOt%TOv%UOx%VO}${O!Y$|O!d%[O!i$xO#d%]O$R%YO$n%WO$p%XO$s%ZO'v(lO'xTO'{UO(P%RO(T$uO~Oe(^P~P!'vO!V(rO!h(_P~P%[O(W(tO(c[O~O}(vO!i#xO(W(tO(c[O~OP9qOQ9qOb;bOc!iOjkOl9qOmkOnkOtkOv9qOx9qO}WO!RkO!SkO!Y!eO!d9tO!iZO!l9qO!m9qO!n9qO!p9uO!r9xO!u!hO$R!kO$VfO'v)UO'xTO'{UO(TVO(c[O(p;`O~O{)XO!i#xO~O!W$aO_$la'm$la'k$la!h$la!T$la!Y$la%b$la!b$la~O#q)]O~P!&^Oz)`O!b)_O!Y$YX$U$YX$X$YX$Z$YX$b$YX~O!b)_O!Y(mX$U(mX$X(mX$Z(mX$b(mX~Oz)`O~P!-lOz)`O!Y(mX$U(mX$X(mX$Z(mX$b(mX~O!Y)bO$U)fO$X)aO$Z)aO$b)gO~O!V)jO~P!*SO$X$gO$Z$fO$b)nO~Oh$tXz$tX}$tX!g$tX(k$tX(l$tX~OegXe$tXhgX!WgX#YgX~P!/bOm)pO~Or)qO(U)rO(V)tO~Oh)}Oz)vO})wO(k)yO(l){O~Oe)uO~P!0kOe*OO~Oj%SOl$tOm$sOn$sOt%TOv%UOx:[O}${O!Y$|O!d;fO!i$xO#d:bO$R%YO$n:^O$p:`O$s%ZO'xTO'{UO(P%RO(T$uO~O!V*SO'v*PO!h(qP~P!1YO#e*UO~O!i*VO~O!V*[O'v*XO!T(rP~P!1YOl*hO}*`O!]*fO!^*_O!_*_O!i*VO#U*gO%X*bO'w!lO(W!mO~O!X*eO~P!3`O!g#wOh(SXz(SX}(SX(k(SX(l(SX!W(SX#Y(SX~Oe(SX#z(SX~P!4XOh*kO#Y*jOe(RX!W(RX~O!W*lOe(QX~O'v&QOe(QP~O!i*sO~O'v(lO~Oj*wO}%aO!V#hO!Y%bO!y]O#c#kO#d#hO'v%`O!h(eP~O!b#uO#e*xO~O}%aO!V*zO!W(SO!Y%bO'v%`O!T(hP~Om'RO}*|O!V*{O'xTO'{UO(W(tO~O!X(jP~P!7SO!W*}O_(vX'm(vX~OP$]OY$dOl$QOz#yO{#zO}#{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO#v$XO#w$YO(TVO(d$ZO(k#|O(l#}O~O_!ca!W!ca'm!ca'k!ca!T!ca!h!cap!ca!Y!ca%b!ca!b!ca~P!7zOz#yO{#zO}#{O!g#wO!i#xO(TVOP!oaY!oal!oa!W!oa!f!oa!m!oa#h!oa#i!oa#j!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#r!oa#t!oa#v!oa#w!oa(d!oa(k!oa(l!oa~O_!oa'm!oa'k!oa!T!oa!h!oap!oa!Y!oa%b!oa!b!oa~P!:eOz#yO{#zO}#{O!g#wO!i#xO(TVOP!qaY!qal!qa!W!qa!f!qa!m!qa#h!qa#i!qa#j!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#r!qa#t!qa#v!qa#w!qa(d!qa(k!qa(l!qa~O_!qa'm!qa'k!qa!T!qa!h!qap!qa!Y!qa%b!qa!b!qa~P!=OOh+WO!Y'VO%b+VO(P%RO~O!b+YO_(OX!Y(OX'm(OX!W(OX~O_%gO!YXO'm%gO~O!i%^O(P%RO~O!i%^O'v%`O(P%RO~O!b#uO#e(nO~O%c+fO'v+bO'xTO'{UO!X(zP~O!W+gO^(yX~OY+kO~O^+lO~O!Y%wO'v%`O'w!lO^(yP~O#Y+qO(P%RO~Oh+tO!Y$|O(P%RO~O!Y+vO~Oz+xO!YXO~O%g%nO~O!u+}O~Oc,SO~O'v#mO!X(xP~Oc%uO~O%c!QO'v&QO~P<wOY,YO^,XO~OPYOQYObzOcyOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!duO!iZO!lYO!mYO!nYO!pvO!uxO!y]O$VfO%a}O'xTO'{UO(TVO(c[O(piO~O!Y!eO!r!gO$R!kO'v!dO~P!CuO^,XO_%gO'm%gO~OPYOQYOb!jOc!iOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!Y!eO!duO!iZO!lYO!mYO!nYO!pvO!u!hO$R!kO$VfO'v!dO'xTO'{UO(TVO(c[O(piO~O_,_O!rwO#q!OO%e!OO%f!OO%g!OO~P!F_O!i&fO~O&U,eO~O!Y,gO~O&g,iO&i,jOP&daQ&daW&da_&dab&dac&daj&dal&dam&dan&dat&dav&dax&da}&da!R&da!S&da!Y&da!d&da!i&da!l&da!m&da!n&da!p&da!r&da!u&da!y&da#q&da$R&da$V&da%a&da%c&da%e&da%f&da%g&da%j&da%l&da%o&da%p&da%r&da&O&da&U&da&W&da&Y&da&[&da&_&da&e&da&k&da&m&da&o&da&q&da&s&da'k&da'v&da'x&da'{&da(T&da(c&da(p&da!X&da&]&da`&da&b&da~O'v,oO~O!W|X!W!`X!X|X!X!`X!b|X!b!`X!i!`X#Y|X(P!`X~O!b,tO#Y,sO!W#bX!W(]X!X#bX!X(]X!b(]X!i(]X(P(]X~O!b,vO!i%^O(P%RO!W![X!X![X~Om!nO}!oO'xTO'{UO(W!mO~OP9qOQ9qOb;bOc!iOjkOl9qOmkOnkOtkOv9qOx9qO}WO!RkO!SkO!Y!eO!d9tO!iZO!l9qO!m9qO!n9qO!p9uO!r9xO!u!hO$R!kO$VfO'xTO'{UO(TVO(c[O(p;`O~O'v:gO~P# eO!W,zO!X([X~O!X,|O~O!b,tO#Y,sO!W#bX!X#bX~O!W,}O!X(jX~O!X-PO~O!^-QO!_-QO'w!lO~P# SO!X-TO~P'_Oh-WO!Y'VO~O!T-]O~Om!xa!]!xa!^!xa!_!xa!}!xa#O!xa#P!xa#Q!xa#R!xa#U!xa#V!xa'w!xa'x!xa'{!xa(W!xa(c!xa~P!#YO!m-bO#Y-`O~PBxO!^-dO!_-dO'w!lO~PChO_%gO#Y-`O'm%gO~O_%gO!b#uO#Y-`O'm%gO~O_%gO!b#uO!m-bO#Y-`O'm%gO(d'gO~O'r'oO's'oO't-iO~Op-jO~O!T'Oa!W'Oa~P!7zO!V-nO!T'OX!W'OX~P%[O!W'{O!T(Za~O!T(Za~PG[O!W(SO!T(ha~O}%aO!V-rO!Y%bO'v%`O!T'UX!W'UX~O#Y-tO!W(fa!h(fa_(fa'm(fa~O!b#uO~P#)kO!W(`O!h(ea~O}%aO!Y%bO#d-xO'v%`O~Oj-}O}%aO!V-zO!Y%bO!y]O#c-|O#d-zO'v%`O!W'XX!h'XX~O{.RO!i#xO~Oh.UO!Y'VO%b.TO(P%RO~O_#]i!W#]i'm#]i'k#]i!T#]i!h#]ip#]i!Y#]i%b#]i!b#]i~P!7zOh;lOz)vO})wO(k)yO(l){O~O#e#Xa_#Xa#Y#Xa'm#Xa!W#Xa!h#Xa!Y#Xa!T#Xa~P#,gO#e(SXP(SXY(SX_(SXl(SX{(SX!f(SX!i(SX!m(SX#h(SX#i(SX#j(SX#k(SX#l(SX#m(SX#n(SX#o(SX#p(SX#r(SX#t(SX#v(SX#w(SX'm(SX(T(SX(d(SX!h(SX!T(SX'k(SXp(SX!Y(SX%b(SX!b(SX~P!4XO!W._Oe(^X~P!0kOe.aO~O!W.bO!h(_X~P!7zO!h.eO~O!T.gO~OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gi_#gil#gi!W#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(d#gi(k#gi(l#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~O#h#gi~P#0cO#h$OO~P#0cOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO(TVOY#gi_#gi!W#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(d#gi(k#gi(l#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~Ol#gi~P#3TOl$QO~P#3TOP$]Ol$QOz#yO{#zO}#{O!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO(TVO_#gi!W#gi#r#gi#t#gi#v#gi#w#gi'm#gi(d#gi(k#gi(l#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P#5uOY$dO!f$SO#m$SO#n$SO#o$cO#p$SO~P#5uOP$]OY$dOl$QOz#yO{#zO}#{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO(TVO_#gi!W#gi#t#gi#v#gi#w#gi'm#gi(d#gi(l#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~O(k#gi~P#8vO(k#|O~P#8vOP$]OY$dOl$QOz#yO{#zO}#{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO(TVO(k#|O_#gi!W#gi#v#gi#w#gi'm#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~O(l#gi~P#;hO(l#}O~P#;hOP$]OY$dOl$QOz#yO{#zO}#{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO#v$XO(TVO(k#|O(l#}O~O_#gi!W#gi#w#gi'm#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#>YOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#@sOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#CQO#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,gO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#CQO!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,gO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,gO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ hOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!^Oz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#PO#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$nOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+dO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#CQOm!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ hO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!^O#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#PO#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,gO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#CQO#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,gO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,gOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$I|Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$JoO(d$ZO~P#,gO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,gO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,gO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,gO!Y$|O~P#,gO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%$nOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O'v#mO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#CQO#Y5lO!W#bi!X#bi~O!W![i!X![i~P#CQO_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$I|O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$JoO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,gOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#CQOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%2}O#h9zO~P%2}OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5YOl9|O~P%5YOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%7eOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%7eOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:PO(k#|O~P%:POP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%<[O(l#}O~P%<[OP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO(TVO(k#|O(l#}O~O#w#gi#z#gi(d#gi!W#gi!X#gi~P%>gO_#xy!W#xy'm#xy'k#xy!T#xy!h#xyp#xy!Y#xy%b#xy!b#xy~P!7zOh;mOz)vO})wO(k)yO(l){O~OP#giY#gil#gi{#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(T#gi(d#gi!W#gi!X#gi~P%A_O!g#wOP(SXY(SXh(SXl(SXz(SX{(SX}(SX!f(SX!i(SX!m(SX#h(SX#i(SX#j(SX#k(SX#l(SX#m(SX#n(SX#o(SX#p(SX#r(SX#t(SX#v(SX#w(SX#z(SX(T(SX(d(SX(k(SX(l(SX!W(SX!X(SX~O#z#{i!W#{i!X#{i~P#CQO#z!oi!X!oi~P$$nO!X6`O~O!W'[a!X'[a~P#CQO!b#uO(d'gO!W']a!h']a~O!W/VO!h(qi~O!W/VO!b#uO!h(qi~Oe$vq!W$vq#Y$vq#z$vq~P!0kO!T'_a!W'_a~P#,gO!b6gO~O!W/_O!T(ri~P#,gO!W/_O!T(ri~O!T6kO~O!b#uO#p6pO~Ol6qO!b#uO(d'gO~O!T6sO~Oe$xq!W$xq#Y$xq#z$xq~P!0kO_$jy!W$jy'm$jy'k$jy!T$jy!h$jyp$jy!Y$jy%b$jy!b$jy~P!7zO!b5kO~O!W4WO!Y(sa~O_#]y!W#]y'm#]y'k#]y!T#]y!h#]yp#]y!Y#]y%b#]y!b#]y~P!7zOY6xO~O!W0bO!X(zi~O^7OO~O(W(tO!W'dX!X'dX~O!W4nO!X(wa~OjkO'v7VO~P.iO!X7YO~P%$nOm!nO}7ZO'xTO'{UO(W!mO(c!sO~O!Y0zO~O!Y0zO%b7]O~Oh7`O!Y0zO%b7]O~OY7eO!W'ga!X'ga~O!W1VO!X(xi~O!h7iO~O!h7jO~O!h7mO~O!h7mO~P%[O_7oO~O!b7pO~O!h7qO~O!W(ii!X(ii~P#CQO_%gO#Y7yO'm%gO~O!W(fy!h(fy_(fy'm(fy~P!7zO!W(`O!h(ey~O!Y'VO%b7|O~O#e$vqP$vqY$vq_$vql$vq{$vq!W$vq!f$vq!g$vq!i$vq!m$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#o$vq#p$vq#r$vq#t$vq#v$vq#w$vq'm$vq(T$vq(d$vq!h$vq!T$vq'k$vq#Y$vqp$vq!Y$vq%b$vq!b$vq~P#,gO#e$xqP$xqY$xq_$xql$xq{$xq!W$xq!f$xq!g$xq!i$xq!m$xq#h$xq#i$xq#j$xq#k$xq#l$xq#m$xq#n$xq#o$xq#p$xq#r$xq#t$xq#v$xq#w$xq'm$xq(T$xq(d$xq!h$xq!T$xq'k$xq#Y$xqp$xq!Y$xq%b$xq!b$xq~P#,gO!W'Ri!h'Ri~P!7zO#z#]q!W#]q!X#]q~P#CQOz/yO{/yO}/zOPwaYwahwalwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa#zwa(Twa(dwa(kwa(lwa!Wwa!Xwa~Oz)vO})wOP$maY$mah$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma#z$ma(T$ma(d$ma(k$ma(l$ma!W$ma!X$ma~Oz)vO})wOP$oaY$oah$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa#z$oa(T$oa(d$oa(k$oa(l$oa!W$oa!X$oa~OP$}aY$}al$}a{$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a#z$}a(T$}a(d$}a!W$}a!X$}a~P%A_O#z$iq!W$iq!X$iq~P#CQO#z$jq!W$jq!X$jq~P#CQO!X8WO~O#z8XO~P!0kO!b#uO!W']i!h']i~O!b#uO(d'gO!W']i!h']i~O!W/VO!h(qq~O!T'_i!W'_i~P#,gO!W/_O!T(rq~O!T8_O~P#,gO!T8_O~Oe(Ry!W(Ry~P!0kO!W'ba!Y'ba~P#,gO_%Uq!Y%Uq'm%Uq!W%Uq~P#,gOY8dO~O!W0bO!X(zq~O#Y8hO!W'da!X'da~O!W4nO!X(wi~P#CQOPZXYZXlZXzZX{ZX}ZX!TZX!WZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX~O!b%SX#p%SX~P&2_O!Y0zO%b8lO~O'xTO'{UO(W8qO~O!W1VO!X(xq~O!h8tO~O!h8uO~O!h8vO~O!h8vO~P%[O#Y8yO!W#by!X#by~O!W#by!X#by~P#CQO!Y'VO%b9OO~O#z#xy!W#xy!X#xy~P#CQOP$viY$vil$vi{$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi#z$vi(T$vi(d$vi!W$vi!X$vi~P%A_Oz)vO})wO(l){OP%YiY%Yih%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi#z%Yi(T%Yi(d%Yi(k%Yi!W%Yi!X%Yi~Oz)vO})wOP%[iY%[ih%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i#z%[i(T%[i(d%[i(k%[i(l%[i!W%[i!X%[i~O#z$jy!W$jy!X$jy~P#CQO#z#]y!W#]y!X#]y~P#CQO!b#uO!W']q!h']q~O!W/VO!h(qy~O!T'_q!W'_q~P#,gO!T9VO~P#,gO!W0bO!X(zy~O!W4nO!X(wq~O!Y0zO%b9^O~O!h9aO~O!Y'VO%b9fO~OP$vqY$vql$vq{$vq!f$vq!g$vq!i$vq!m$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#o$vq#p$vq#r$vq#t$vq#v$vq#w$vq#z$vq(T$vq(d$vq!W$vq!X$vq~P%A_OP$xqY$xql$xq{$xq!f$xq!g$xq!i$xq!m$xq#h$xq#i$xq#j$xq#k$xq#l$xq#m$xq#n$xq#o$xq#p$xq#r$xq#t$xq#v$xq#w$xq#z$xq(T$xq(d$xq!W$xq!X$xq~P%A_Oe%^!Z!W%^!Z#Y%^!Z#z%^!Z~P!0kO!W'dq!X'dq~P#CQO!W#b!Z!X#b!Z~P#CQO#e%^!ZP%^!ZY%^!Z_%^!Zl%^!Z{%^!Z!W%^!Z!f%^!Z!g%^!Z!i%^!Z!m%^!Z#h%^!Z#i%^!Z#j%^!Z#k%^!Z#l%^!Z#m%^!Z#n%^!Z#o%^!Z#p%^!Z#r%^!Z#t%^!Z#v%^!Z#w%^!Z'm%^!Z(T%^!Z(d%^!Z!h%^!Z!T%^!Z'k%^!Z#Y%^!Zp%^!Z!Y%^!Z%b%^!Z!b%^!Z~P#,gOP%^!ZY%^!Zl%^!Z{%^!Z!f%^!Z!g%^!Z!i%^!Z!m%^!Z#h%^!Z#i%^!Z#j%^!Z#k%^!Z#l%^!Z#m%^!Z#n%^!Z#o%^!Z#p%^!Z#r%^!Z#t%^!Z#v%^!Z#w%^!Z#z%^!Z(T%^!Z(d%^!Z!W%^!Z!X%^!Z~P%A_Op(XX~P1qO'w!lO~P!*SO!TdX!WdX#YdX~P&2_OPZXYZXlZXzZX{ZX}ZX!WZX!WdX!fZX!gZX!iZX!mZX#YZX#YdX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX~O!bdX!hZX!hdX(ddX~P&GuOP9qOQ9qOb;bOc!iOjkOl9qOmkOnkOtkOv9qOx9qO}WO!RkO!SkO!YXO!d9tO!iZO!l9qO!m9qO!n9qO!p9uO!r9xO!u!hO$R!kO$VfO'v)UO'xTO'{UO(TVO(c[O(p;`O~O!W:VO!X$la~Oj%SOl$tOm$sOn$sOt%TOv%UOx:]O}${O!Y$|O!d;gO!i$xO#d:cO$R%YO$n:_O$p:aO$s%ZO'v(lO'xTO'{UO(P%RO(T$uO~O#q)]O~P&LkO!XZX!XdX~P&GuO#e9yO~O!b#uO#e9yO~O#Y:ZO~O#p:OO~O#Y:eO!W(iX!X(iX~O#Y:ZO!W(gX!X(gX~O#e:fO~Oe:hO~P!0kO#e:mO~O#e:nO~O!b#uO#e:oO~O!b#uO#e:fO~O#z:pO~P#CQO#e:qO~O#e:rO~O#e:sO~O#e:tO~O#e:uO~O#e:vO~O#z:wO~P!0kO#z:xO~P!0kO$V~!g!}#O#Q#R#U#c#d#o(p$n$p$s%V%a%b%c%j%l%o%p%r%t~'qR$V(p#i!S'o'w#jm#h#klz'p(W'p'v$X$Z$X~",goto:"$'R)OPPPP)PPP)SP)eP*t.xPPPP5YPP5pP;l>sP?WP?WPPP?WP@xP?WP?WP?WP@|PPARPAlPFdPPPFhPPPPFhIiPPPIoJjPFhPLxPPPP! WFhPPPFhPFhP!#fFhP!&z!'|!(VP!(y!(}!(yPPPPP!,Y!'|PP!,v!-pP!0dFhFh!0i!3s!8Y!8Y!<OPPP!<VFhPPPPPPPPPPP!?dP!@uPPFh!BSPFhPFhFhFhFhPFh!CfPP!FnP!IrP!Iv!JQ!JU!JUP!FkP!JY!JYP!M^P!MbFhFh!Mh#!k?WP?WP?W?WP##v?W?W#%r?W#(R?W#)w?W?W#*f#,d#,d#,h#,p#,d#,xP#,dP?W#-b?W#.k?W?W5YPPP#/wPPP#0b#0bP#0bP#0x#0bPP#1OP#0uP#0u#1c#0u#1}#2T5V)S#2W)SP#2_#2_#2_P)SP)SP)SP)SPP)SP#2e#2hP#2h)SP#2lP#2oP)SP)SP)SP)SP)SP)S)SPP#2u#2{#3W#3^#3d#3j#3p#4O#4U#4[#4f#4l#4v#5V#5]#5}#6a#6g#6m#6{#7b#8s#9R#9X#9_#9e#9k#9u#9{#:R#:]#:o#:uPPPPPPPPPP#:{PPPPPPP#;p#>wP#@W#@_#@gPPPP#Du#Gl#NT#NW#NZ$ S$ V$ Y$ a$ iPP$ o$ s$!k$#j$#n$$SPP$$W$$^$$bP$$e$$i$$l$%b$%y$&b$&f$&i$&l$&r$&u$&y$&}R!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"\u26A0 ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:jHe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[FHe],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$<m#p#q$=c#q#r$>s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__US$e&j'yp'|!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]US$e&j'|!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S#%|C}i$e&j(c!L^'yp'|!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr#%|EoP;=`<%lCr(CSFRk$e&j'yp'|!b(W!LY'v&;d$X#tOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$e&j'yp'|!b$X#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv(CSJPP;=`<%lEr%#SJ_`$e&j'yp'|!b#j$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SKl_$e&j#|$Id'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%DfLva(l%<v$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SNW`$e&j#v$Id'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b! c_'{$)`$e&j'ypOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b*Q!!i_$e&j'ypOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b)`!#mX$e&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h#t!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y#t!$oP;=`<%l!$Y)`!$uP;=`<%l!#h*Q!%R]$`#t$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r$f!&PZ'ypOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z$f!&yU$`#t'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r$f!'`P;=`<%l!%z*Q!'fP;=`<%l!!b(*Q!'t_!i(!b$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'l!)O_!hM|$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h!*[b$e&j'yp'|!b'w#)d#k$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S!+o`$e&j'yp'|!b#h$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&-O!,|`$e&j'yp'|!bl&%`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&C[!.Z_!W&;l$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!/ec$e&j'yp'|!bz'<nOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!0ya$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!2Z_!VMt$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!3eg$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!5Vg$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!6wc$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!8_c$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!9uf$e&j'yp'|!b#i$IdOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpxz!;Zz{#,f{!P!;Z!P!Q#-{!Q!^!;Z!^!_#'Z!_!`#5k!`!a#7Q!a!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(r!;fb$e&j'yp'|!b!SSOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(Q!<w`$e&j'|!b!SSOY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eb!Q!^!<n!^!_!GY!_!}!<n!}#O!Ja#O#P!Dj#P#o!<n#o#p!GY#p;'S!<n;'S;=`!Kj<%lO!<n&n!>Q^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!<n#Q#o!Ja#o#p!Ic#p;'S!Ja;'S;=`!Kd<%lO!Ja(Q!KgP;=`<%l!Ja(Q!KmP;=`<%l!<n'`!Ky`$e&j'yp!SSOY!KpYZ&cZr!Kprs!=ys!P!Kp!P!Q!L{!Q!^!Kp!^!_!Ns!_!}!Kp!}#O##z#O#P!Dj#P#o!Kp#o#p!Ns#p;'S!Kp;'S;=`#%T<%lO!Kp'`!MUi$e&j'yp!SSOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#Z(r#Z#[!L{#[#](r#]#^!L{#^#a(r#a#b!L{#b#g(r#g#h!L{#h#i(r#i#j!L{#j#m(r#m#n!L{#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rt!NzZ'yp!SSOY!NsZr!Nsrs!@Ys!P!Ns!P!Q# m!Q!}!Ns!}#O#!|#O#P!Bb#P;'S!Ns;'S;=`##t<%lO!Nst# tb'yp!SSOY)rZr)rs#O)r#P#Z)r#Z#[# m#[#])r#]#^# m#^#a)r#a#b# m#b#g)r#g#h# m#h#i)r#i#j# m#j#m)r#m#n# m#n;'S)r;'S;=`*Z<%lO)rt##RX'ypOY#!|Zr#!|rs!Acs#O#!|#O#P!A{#P#Q!Ns#Q;'S#!|;'S;=`##n<%lO#!|t##qP;=`<%l#!|t##wP;=`<%l!Ns'`#$R^$e&j'ypOY##zYZ&cZr##zrs!Bws!^##z!^!_#!|!_#O##z#O#P!Cr#P#Q!Kp#Q#o##z#o#p#!|#p;'S##z;'S;=`#$}<%lO##z'`#%QP;=`<%l##z'`#%WP;=`<%l!Kp(r#%fk$e&j'yp'|!b!SSOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#Z%Z#Z#[#%Z#[#]%Z#]#^#%Z#^#a%Z#a#b#%Z#b#g%Z#g#h#%Z#h#i%Z#i#j#%Z#j#m%Z#m#n#%Z#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#W#'d]'yp'|!b!SSOY#'ZZr#'Zrs!GYsw#'Zwx!Nsx!P#'Z!P!Q#(]!Q!}#'Z!}#O#)w#O#P!Bb#P;'S#'Z;'S;=`#*w<%lO#'Z#W#(fe'yp'|!b!SSOY*gZr*grs'}sw*gwx)rx#O*g#P#Z*g#Z#[#(]#[#]*g#]#^#(]#^#a*g#a#b#(]#b#g*g#g#h#(]#h#i*g#i#j#(]#j#m*g#m#n#(]#n;'S*g;'S;=`+Z<%lO*g#W#*OZ'yp'|!bOY#)wZr#)wrs!Icsw#)wwx#!|x#O#)w#O#P!A{#P#Q#'Z#Q;'S#)w;'S;=`#*q<%lO#)w#W#*tP;=`<%l#)w#W#*zP;=`<%l#'Z(r#+W`$e&j'yp'|!bOY#*}YZ&cZr#*}rs!Jasw#*}wx##zx!^#*}!^!_#)w!_#O#*}#O#P!Cr#P#Q!;Z#Q#o#*}#o#p#)w#p;'S#*};'S;=`#,Y<%lO#*}(r#,]P;=`<%l#*}(r#,cP;=`<%l!;Z(CS#,sb$e&j'yp'|!b'q(;d!SSOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(CS#.W_$e&j'yp'|!bR(;dOY#-{YZ&cZr#-{rs#/Vsw#-{wx#2gx!^#-{!^!_#4f!_#O#-{#O#P#0X#P#o#-{#o#p#4f#p;'S#-{;'S;=`#5e<%lO#-{(Bb#/`]$e&j'|!bR(;dOY#/VYZ&cZw#/Vwx#0Xx!^#/V!^!_#1j!_#O#/V#O#P#0X#P#o#/V#o#p#1j#p;'S#/V;'S;=`#2a<%lO#/V(AO#0`X$e&jR(;dOY#0XYZ&cZ!^#0X!^!_#0{!_#o#0X#o#p#0{#p;'S#0X;'S;=`#1d<%lO#0X(;d#1QSR(;dOY#0{Z;'S#0{;'S;=`#1^<%lO#0{(;d#1aP;=`<%l#0{(AO#1gP;=`<%l#0X(<v#1qW'|!bR(;dOY#1jZw#1jwx#0{x#O#1j#O#P#0{#P;'S#1j;'S;=`#2Z<%lO#1j(<v#2^P;=`<%l#1j(Bb#2dP;=`<%l#/V(Ap#2p]$e&j'ypR(;dOY#2gYZ&cZr#2grs#0Xs!^#2g!^!_#3i!_#O#2g#O#P#0X#P#o#2g#o#p#3i#p;'S#2g;'S;=`#4`<%lO#2g(<U#3pW'ypR(;dOY#3iZr#3irs#0{s#O#3i#O#P#0{#P;'S#3i;'S;=`#4Y<%lO#3i(<U#4]P;=`<%l#3i(Ap#4cP;=`<%l#2g(=h#4oY'yp'|!bR(;dOY#4fZr#4frs#1jsw#4fwx#3ix#O#4f#O#P#0{#P;'S#4f;'S;=`#5_<%lO#4f(=h#5bP;=`<%l#4f(CS#5hP;=`<%l#-{%#W#5xb$e&j#|$Id'yp'|!b!SSOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z+h#7_b$U#t$e&j'yp'|!b!SSOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z$/l#8rp$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#U%Z#U#V#>Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#d#AY#d#l%Z#l#m#D[#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#;Rk$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#=R_$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#>Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Acc$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Bye$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Deg$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#FXi$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh#HT_!b$b$e&j#z%<f'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#I___l$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS#Jm^(P!*v!f'.r'yp'|!b$V)d(pSOY*gZr*grs'}sw*gwx)rx!P*g!P!Q#Ki!Q!^*g!^!_#L_!_!`#NP!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#KrX$g&j'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#LhZ#l$Id'yp'|!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#MZ!`#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#MdX#|$Id'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#NYX#m$Id'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g%Gh$ Qa#Y%?x$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$!V!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#W$!b_#e$Ih$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh$#paeBf#m$Id$b#|$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$$u!`!a$&P!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$%Q_#m$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$&[a#l$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$'a!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$'l`#l$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h$(yc(d$Ip$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P$*U!P!^%Z!^!_*g!_!a%Z!a!b$+`!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+`$*a_{'#p$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$+k`$e&j#w$Id'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&^$,x_!y!Ln$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(@^$.S_}(8n$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/WZ$e&jO!^$/y!^!_$0a!_#i$/y#i#j$0f#j#l$/y#l#m$2X#m#o$/y#o#p$0a#p;'S$/y;'S;=`$4d<%lO$/y(n$0QT]#S$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0fO]#S(n$0k[$e&jO!Q&c!Q![$1a![!^&c!_!c&c!c!i$1a!i#T&c#T#Z$1a#Z#o&c#o#p$3w#p;'S&c;'S;=`&w<%lO&c(n$1fZ$e&jO!Q&c!Q![$2X![!^&c!_!c&c!c!i$2X!i#T&c#T#Z$2X#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2^Z$e&jO!Q&c!Q![$3P![!^&c!_!c&c!c!i$3P!i#T&c#T#Z$3P#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3UZ$e&jO!Q&c!Q![$/y![!^&c!_!c&c!c!i$/y!i#T&c#T#Z$/y#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$3zR!Q![$4T!c!i$4T#T#Z$4T#S$4WS!Q![$4T!c!i$4T#T#Z$4T#q#r$0a(n$4gP;=`<%l$/y!2r$4u_!T!+S$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$6P`#t$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&,v$7^_$e&j'yp'|!b(T&%WOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$8lk$e&j'yp'|!b(W!LY'v&;d$Z#tOY%ZYZ&cZr%Zrs&}st%Ztu$8]uw%Zwx(rx}%Z}!O$:a!O!Q%Z!Q![$8]![!^%Z!^!_*g!_!c%Z!c!}$8]!}#O%Z#O#P&c#P#R%Z#R#S$8]#S#T%Z#T#o$8]#o#p*g#p$g%Z$g;'S$8];'S;=`$<g<%lO$8]+d$:lk$e&j'yp'|!b$Z#tOY%ZYZ&cZr%Zrs&}st%Ztu$:auw%Zwx(rx}%Z}!O$:a!O!Q%Z!Q![$:a![!^%Z!^!_*g!_!c%Z!c!}$:a!}#O%Z#O#P&c#P#R%Z#R#S$:a#S#T%Z#T#o$:a#o#p*g#p$g%Z$g;'S$:a;'S;=`$<a<%lO$:a+d$<dP;=`<%l$:a(CS$<jP;=`<%l$8]!5p$<vX!Y!3l'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g%Df$=na(k%<v$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+`#q;'S%Z;'S;=`+a<%lO%Z%#`$?Q_!X$I`p`$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(r$@[_!nS$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$Al|$e&j'yp'|!b'o(;d(W!LY'v&;d$X#tOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(CS$Dwk$e&j'yp'|!b'p(;d(W!LY'v&;d$X#tOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[BHe,VHe,2,3,4,5,6,7,8,9,10,11,12,13,LHe,new DN("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOr~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!P~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(V~~",141,328),new DN("j~RQYZXz{^~^O's~~aP!P!Qd~iO't~~",25,310)],topRules:{Script:[0,5],SingleExpression:[1,268],SingleClassItem:[2,269]},dialects:{jsx:12801,ts:12803},dynamicPrecedences:{67:1,77:1,79:1,164:1,192:1},specialized:[{term:314,get:e=>zHe[e]||-1},{term:330,get:e=>QHe[e]||-1},{term:68,get:e=>WHe[e]||-1}],tokenPrec:12827}),yJ=[Zs("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Zs("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Zs("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Zs("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Zs("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Zs(`try {
- \${}
- } catch (\${error}) {
- \${}
- }`,{label:"try",detail:"/ catch block",type:"keyword"}),Zs("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Zs(`if (\${}) {
- \${}
- } else {
- \${}
- }`,{label:"if",detail:"/ else block",type:"keyword"}),Zs(`class \${name} {
- constructor(\${params}) {
- \${}
- }
- }`,{label:"class",detail:"definition",type:"keyword"}),Zs('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Zs('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],UHe=yJ.concat([Zs("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Zs("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Zs("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),yz=new zQe,bJ=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function B_(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const HHe=["FunctionDeclaration"],ZHe={FunctionDeclaration:B_("function"),ClassDeclaration:B_("class"),ClassExpression:()=>!0,EnumDeclaration:B_("constant"),TypeAliasDeclaration:B_("type"),NamespaceDeclaration:B_("namespace"),VariableDefinition(e,t){e.matchContext(HHe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function _J(e,t){let n=yz.get(t);if(n)return n;let r=[],o=!0;function i(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(ta.IncludeAnonymous).iterate(a=>{if(o)o=!1;else if(a.name){let s=ZHe[a.name];if(s&&s(a,i)||bJ.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of _J(e,a.node))r.push(s);return!1}}),yz.set(t,r),r}const bz=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,OJ=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function XHe(e){let t=aa(e.state).resolveInner(e.pos,-1);if(OJ.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&bz.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let o=t;o;o=o.parent)bJ.has(o.name)&&(r=r.concat(_J(e.state.doc,o)));return{options:r,from:n?t.from:e.pos,validFor:bz}}const um=d1.define({name:"javascript",parser:YHe.configure({props:[vj.add({IfStatement:wO({except:/^\s*({|else\b)/}),TryStatement:wO({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:l7e,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:s7e({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":wO({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),bj.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":XK,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),wJ={test:e=>/^JSX/.test(e.name),facet:WK({commentTokens:{block:{open:"{/*",close:"*/}"}}})},qHe=um.configure({dialect:"ts"},"typescript"),KHe=um.configure({dialect:"jsx",props:[gj.add(e=>e.isTop?[wJ]:void 0)]}),GHe=um.configure({dialect:"jsx ts",props:[gj.add(e=>e.isTop?[wJ]:void 0)]},"typescript");let SJ=e=>({label:e,type:"keyword"});const xJ="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(SJ),JHe=xJ.concat(["declare","implements","private","protected","public"].map(SJ));function kJ(e={}){let t=e.jsx?e.typescript?GHe:KHe:e.typescript?qHe:um,n=e.typescript?UHe.concat(JHe):yJ.concat(xJ);return new UK(t,[um.data.of({autocomplete:TYe(OJ,qG(n))}),um.data.of({autocomplete:XHe}),e.jsx?nZe:[]])}function eZe(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function _z(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const tZe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),nZe=kn.inputHandler.of((e,t,n,r,o)=>{if((tZe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!um.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:a}=i,s=a.changeByRange(l=>{var u;let{head:f}=l,h=aa(a).resolveInner(f-1,-1),m;if(h.name=="JSXStartTag"&&(h=h.parent),!(a.doc.sliceString(f-1,f)!=r||h.name=="JSXAttributeValue"&&h.to>f)){if(r==">"&&h.name=="JSXFragmentTag")return{range:l,changes:{from:f,insert:"</>"}};if(r=="/"&&h.name=="JSXStartCloseTag"){let y=h.parent,O=y.parent;if(O&&y.from==f-2&&((m=_z(a.doc,O.firstChild,f))||((u=O.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let b=`${m}>`;return{range:jt.cursor(f+b.length,-1),changes:{from:f,insert:b}}}}else if(r==">"){let y=eZe(h);if(y&&!/^\/?>|^<\//.test(a.doc.sliceString(f,f+2))&&(m=_z(a.doc,y,f)))return{range:l,changes:{from:f,insert:`</${m}>`}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([i,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var CJ={exports:{}},PE={},Ij={exports:{}},EJ={},$E={};function ga(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}ga.prototype.clone_empty=function(){var e=new ga(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e};ga.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]};ga.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1};ga.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))};ga.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)};ga.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};ga.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1};ga.prototype.is_empty=function(){return this.__items.length===0};ga.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]};ga.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf(`
- `);t!==-1?this.__character_count=e.length-t:this.__character_count+=e.length};ga.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e};ga.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)};ga.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)};ga.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1};ga.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function iw(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}iw.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n};iw.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n};iw.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()};iw.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)};function ba(e,t){this.__indent_cache=new iw(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new ga(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}ba.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)};ba.prototype.get_line_number=function(){return this.__lines.length};ba.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)};ba.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)};ba.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()};ba.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)};ba.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&(t[t.length-1]===`
- `&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
- `);return e!==`
- `&&(n=n.replace(/[\n]/g,e)),n};ba.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};ba.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)};ba.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1};ba.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()};ba.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))};ba.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()};ba.prototype.trim=function(e){for(e=e===void 0?!1:e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};ba.prototype.just_added_newline=function(){return this.current_line.is_empty()};ba.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};ba.prototype.ensure_empty_line_above=function(e,t){for(var n=this.__lines.length-2;n>=0;){var r=this.__lines[n];if(r.is_empty())break;if(r.item(0).indexOf(e)!==0&&r.item(-1)!==t){this.__lines.splice(n+1,0,new ga(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}};$E.Output=ba;var Dj={};function rZe(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}Dj.Token=rZe;var jj={};(function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",o="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="(?:\\\\u[0-9a-fA-F]{4}|["+t+r+"])",a="(?:\\\\u[0-9a-fA-F]{4}|["+n+r+o+"])*";e.identifier=new RegExp(i+a,"g"),e.identifierStart=new RegExp(i),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+n+r+o+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
- |`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")})(jj);var Lj={},L0={};function Np(e,t){this.raw_options=TJ(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}Np.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(r=n.concat()):typeof n=="string"&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r};Np.prototype._get_boolean=function(e,t){var n=this.raw_options[e],r=n===void 0?!!t:!!n;return r};Np.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return typeof n=="string"&&(r=n.replace(/\\r/,"\r").replace(/\\n/,`
- `).replace(/\\t/," ")),r};Np.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r};Np.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(r.length!==1)throw new Error("Invalid Option Value: The option '"+e+`' can only be one of the following values:
- `+t+`
- You passed in: '`+this.raw_options[e]+"'");return r[0]};Np.prototype._get_selection_list=function(e,t,n){if(!t||t.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+`' can contain only the following values:
- `+t+`
- You passed in: '`+this.raw_options[e]+"'");return r};Np.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(n){return t.indexOf(n)===-1})};function TJ(e,t){var n={};e=PJ(e);var r;for(r in e)r!==t&&(n[r]=e[r]);if(t&&e[t])for(r in e[t])n[r]=e[t][r];return n}function PJ(e){var t={},n;for(n in e){var r=n.replace(/-/g,"_");t[r]=e[n]}return t}L0.Options=Np;L0.normalizeOpts=PJ;L0.mergeOpts=TJ;var $J=L0.Options,oZe=["before-newline","after-newline","preserve-newline"];function AJ(e){$J.call(this,e,"js");var t=this.raw_options.brace_style||null;t==="expand-strict"?this.raw_options.brace_style="expand":t==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var r=0;r<n.length;r++)n[r]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=n[r];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",oZe),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}AJ.prototype=new $J;Lj.Options=AJ;var Ip={},AE={},MJ=RegExp.prototype.hasOwnProperty("sticky");function Qa(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}Qa.prototype.restart=function(){this.__position=0};Qa.prototype.back=function(){this.__position>0&&(this.__position-=1)};Qa.prototype.hasNext=function(){return this.__position<this.__input_length};Qa.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e};Qa.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t};Qa.prototype.__match=function(e,t){e.lastIndex=t;var n=e.exec(this.__input);return n&&!(MJ&&e.sticky)&&n.index!==t&&(n=null),n};Qa.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(e,t):!1};Qa.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,n!==null&&e.test(n)};Qa.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t};Qa.prototype.read=function(e,t,n){var r="",o;return e&&(o=this.match(e),o&&(r+=o[0])),t&&(o||!e)&&(r+=this.readUntil(t,n)),r};Qa.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var o=e.exec(this.__input);return o?(r=o.index,t&&(r+=o[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n};Qa.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)};Qa.prototype.get_regexp=function(e,t){var n=null,r="g";return t&&MJ&&(r="y"),typeof e=="string"&&e!==""?n=new RegExp(e,r):e&&(n=new RegExp(e.source,r)),n};Qa.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))};Qa.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n};Qa.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e};AE.InputScanner=Qa;var B0={},RJ={};function Dm(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}Dm.prototype.restart=function(){this.__position=0};Dm.prototype.isEmpty=function(){return this.__tokens_length===0};Dm.prototype.hasNext=function(){return this.__position<this.__tokens_length};Dm.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e};Dm.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t};Dm.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1};RJ.TokenStream=Dm;var NJ={},aw={};function xf(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}xf.prototype.read=function(){var e=this._input.read(this._starting_pattern);return(!this._starting_pattern||e)&&(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e};xf.prototype.read_match=function(){return this._input.match(this._match_pattern)};xf.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t};xf.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t};xf.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t};xf.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t};xf.prototype._create=function(){return new xf(this._input,this)};xf.prototype._update=function(){};aw.Pattern=xf;var IJ=aw.Pattern;function _p(e,t){IJ.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}_p.prototype=new IJ;_p.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")};_p.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(e===" ")this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e};_p.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n};_p.prototype._create=function(){return new _p(this._input,this)};_p.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,r=[],o=e.exec(t);o;)r.push(t.substring(n,o.index)),n=o.index+o[0].length,o=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r};NJ.WhitespacePattern=_p;var iZe=AE.InputScanner,DJ=Dj.Token,tM=RJ.TokenStream,aZe=NJ.WhitespacePattern,b1={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},Lf=function(e,t){this._input=new iZe(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new aZe(this._input)};Lf.prototype.tokenize=function(){this._input.restart(),this.__tokens=new tM,this._reset();for(var e,t=new DJ(b1.START,""),n=null,r=[],o=new tM;t.type!==b1.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)o.add(e),e=this._get_next_token(t,n);o.isEmpty()||(e.comments_before=o,o=new tM),e.parent=n,this._is_opening(e)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens};Lf.prototype._is_first_token=function(){return this.__tokens.isEmpty()};Lf.prototype._reset=function(){};Lf.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(b1.RAW,n):this._create_token(b1.EOF,"")};Lf.prototype._is_comment=function(e){return!1};Lf.prototype._is_opening=function(e){return!1};Lf.prototype._is_closing=function(e,t){return!1};Lf.prototype._create_token=function(e,t){var n=new DJ(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n};Lf.prototype._readWhitespace=function(){return this._patterns.whitespace.read()};B0.Tokenizer=Lf;B0.TOKEN=b1;var ME={};function Bj(e,t){e=typeof e=="string"?e:e.source,t=typeof t=="string"?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}Bj.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t};Bj.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)};ME.Directives=Bj;var Vj={},jN=aw.Pattern,LN={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function Oc(e,t){jN.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},LN),this._excluded=Object.assign({},LN),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new jN(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}Oc.prototype=new jN;Oc.prototype._create=function(){return new Oc(this._input,this)};Oc.prototype._update=function(){this.__set_templated_pattern()};Oc.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t};Oc.prototype.read_options=function(e){var t=this._create();for(var n in LN)t._disabled[n]=e.templating.indexOf(n)===-1;return t._update(),t};Oc.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t};Oc.prototype.read=function(){var e="";this._match_pattern?e=this._input.read(this._starting_pattern):e=this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e};Oc.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")};Oc.prototype._read_template=function(){var e="",t=this._input.peek();if(t==="<"){var n=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&n==="?"&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&n==="%"&&(e=e||this.__patterns.erb.read())}else t==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e};Vj.TemplatablePattern=Oc;var sZe=AE.InputScanner,jJ=B0.Tokenizer,nM=B0.TOKEN,lZe=ME.Directives,xu=jj,uZe=aw.Pattern,cZe=Vj.TemplatablePattern;function rM(e,t){return t.indexOf(e)!==-1}var nr={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:nM.START,RAW:nM.RAW,EOF:nM.EOF},Oz=new lZe(/\/\*/,/\*\//),fZe=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,dZe=/[0-9]/,hZe=/[^\d\.]/,pZe=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),km=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";km=km.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");km="\\?\\.(?!\\d) "+km;km=km.replace(/ /g,"|");var gZe=new RegExp(km),LJ="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),mZe=LJ.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),vZe=new RegExp("^(?:"+mZe.join("|")+")$"),zk,_a=function(e,t){jJ.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new uZe(this._input),r=new cZe(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(xu.identifier).matching(xu.identifierMatch),number:n.matching(fZe),punct:n.matching(gZe),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(/<!--/),html_comment_end:n.matching(/-->/),include:n.starting_with(/#include/).until_after(xu.lineBreak),shebang:n.starting_with(/#!/).until_after(xu.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};_a.prototype=new jJ;_a.prototype._is_comment=function(e){return e.type===nr.COMMENT||e.type===nr.BLOCK_COMMENT||e.type===nr.UNKNOWN};_a.prototype._is_opening=function(e){return e.type===nr.START_BLOCK||e.type===nr.START_EXPR};_a.prototype._is_closing=function(e,t){return(e.type===nr.END_BLOCK||e.type===nr.END_EXPR)&&t&&(e.text==="]"&&t.text==="["||e.text===")"&&t.text==="("||e.text==="}"&&t.text==="{")};_a.prototype._reset=function(){zk=!1};_a.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return r===null?this._create_token(nr.EOF,""):(n=n||this._read_non_javascript(r),n=n||this._read_string(r),n=n||this._read_pair(r,this._input.peek(1)),n=n||this._read_word(e),n=n||this._read_singles(r),n=n||this._read_comment(r),n=n||this._read_regexp(r,e),n=n||this._read_xml(r,e),n=n||this._read_punctuation(),n=n||this._create_token(nr.UNKNOWN,this._input.next()),n)};_a.prototype._read_word=function(e){var t;if(t=this.__patterns.identifier.read(),t!=="")return t=t.replace(xu.allLineBreaks,`
- `),!(e.type===nr.DOT||e.type===nr.RESERVED&&(e.text==="set"||e.text==="get"))&&vZe.test(t)?(t==="in"||t==="of")&&(e.type===nr.WORD||e.type===nr.STRING)?this._create_token(nr.OPERATOR,t):this._create_token(nr.RESERVED,t):this._create_token(nr.WORD,t);if(t=this.__patterns.number.read(),t!=="")return this._create_token(nr.WORD,t)};_a.prototype._read_singles=function(e){var t=null;return e==="("||e==="["?t=this._create_token(nr.START_EXPR,e):e===")"||e==="]"?t=this._create_token(nr.END_EXPR,e):e==="{"?t=this._create_token(nr.START_BLOCK,e):e==="}"?t=this._create_token(nr.END_BLOCK,e):e===";"?t=this._create_token(nr.SEMICOLON,e):e==="."&&hZe.test(this._input.peek(1))?t=this._create_token(nr.DOT,e):e===","&&(t=this._create_token(nr.COMMA,e)),t&&this._input.next(),t};_a.prototype._read_pair=function(e,t){var n=null;return e==="#"&&t==="{"&&(n=this._create_token(nr.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n};_a.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(e!=="")return e==="="?this._create_token(nr.EQUALS,e):e==="?."?this._create_token(nr.DOT,e):this._create_token(nr.OPERATOR,e)};_a.prototype._read_non_javascript=function(e){var t="";if(e==="#"){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(nr.UNKNOWN,t.trim()+`
- `);if(t=this.__patterns.include.read(),t)return this._create_token(nr.UNKNOWN,t.trim()+`
- `);e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(dZe)){do e=this._input.next(),n+=e;while(this._input.hasNext()&&e!=="#"&&e!=="=");return e==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(n+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(n+="{}",this._input.next(),this._input.next())),this._create_token(nr.WORD,n)}this._input.back()}else if(e==="<"&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read(),t){for(;this._input.hasNext()&&!this._input.testChar(xu.newline);)t+=this._input.next();return zk=!0,this._create_token(nr.COMMENT,t)}}else if(zk&&e==="-"&&(t=this.__patterns.html_comment_end.read(),t))return zk=!1,this._create_token(nr.COMMENT,t);return null};_a.prototype._read_comment=function(e){var t=null;if(e==="/"){var n="";if(this._input.peek(1)==="*"){n=this.__patterns.block_comment.read();var r=Oz.get_directives(n);r&&r.ignore==="start"&&(n+=Oz.readIgnored(this._input)),n=n.replace(xu.allLineBreaks,`
- `),t=this._create_token(nr.BLOCK_COMMENT,n),t.directives=r}else this._input.peek(1)==="/"&&(n=this.__patterns.comment.read(),t=this._create_token(nr.COMMENT,n))}return t};_a.prototype._read_string=function(e){if(e==="`"||e==="'"||e==='"'){var t=this._input.next();return this.has_char_escapes=!1,e==="`"?t+=this._read_string_recursive("`",!0,"${"):t+=this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=yZe(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(xu.allLineBreaks,`
- `),this._create_token(nr.STRING,t)}return null};_a.prototype._allow_regexp_or_xml=function(e){return e.type===nr.RESERVED&&rM(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===nr.END_EXPR&&e.text===")"&&e.opened.previous.type===nr.RESERVED&&rM(e.opened.previous.text,["if","while","for"])||rM(e.type,[nr.COMMENT,nr.START_EXPR,nr.START_BLOCK,nr.START,nr.END_BLOCK,nr.OPERATOR,nr.EQUALS,nr.EOF,nr.SEMICOLON,nr.COMMA])};_a.prototype._read_regexp=function(e,t){if(e==="/"&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),r=!1,o=!1;this._input.hasNext()&&(r||o||this._input.peek()!==e)&&!this._input.testChar(xu.newline);)n+=this._input.peek(),r?r=!1:(r=this._input.peek()==="\\",this._input.peek()==="["?o=!0:this._input.peek()==="]"&&(o=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(xu.identifier)),this._create_token(nr.STRING,n)}return null};_a.prototype._read_xml=function(e,t){if(this._options.e4x&&e==="<"&&this._allow_regexp_or_xml(t)){var n="",r=this.__patterns.xml.read_match();if(r){for(var o=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),i=o.indexOf("{")===0,a=0;r;){var s=!!r[1],l=r[2],u=!!r[r.length-1]||l.slice(0,8)==="![CDATA[";if(!u&&(l===o||i&&l.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(s?--a:++a),n+=r[0],a<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(xu.allLineBreaks,`
- `),this._create_token(nr.STRING,n)}}return null};function yZe(e){for(var t="",n=0,r=new sZe(e),o=null;r.hasNext();)if(o=r.match(/([\s]|[^\\]|\\\\)+/g),o&&(t+=o[0]),r.peek()==="\\"){if(r.next(),r.peek()==="x")o=r.match(/x([0-9A-Fa-f]{2})/g);else if(r.peek()==="u")o=r.match(/u([0-9A-Fa-f]{4})/g);else{t+="\\",r.hasNext()&&(t+=r.next());continue}if(!o||(n=parseInt(o[1],16),n>126&&n<=255&&o[0].indexOf("x")===0))return e;if(n>=0&&n<32){t+="\\"+o[0];continue}else n===34||n===39||n===92?t+="\\"+String.fromCharCode(n):t+=String.fromCharCode(n)}return t}_a.prototype._read_string_recursive=function(e,t,n){var r,o;e==="'"?o=this.__patterns.single_quote:e==='"'?o=this.__patterns.double_quote:e==="`"?o=this.__patterns.template_text:e==="}"&&(o=this.__patterns.template_expression);for(var i=o.read(),a="";this._input.hasNext();){if(a=this._input.next(),a===e||!t&&xu.newline.test(a)){this._input.back();break}else a==="\\"&&this._input.hasNext()?(r=this._input.peek(),r==="x"||r==="u"?this.has_char_escapes=!0:r==="\r"&&this._input.peek(1)===`
- `&&this._input.next(),a+=this._input.next()):n&&(n==="${"&&a==="$"&&this._input.peek()==="{"&&(a+=this._input.next()),n===a&&(e==="`"?a+=this._read_string_recursive("}",t,"`"):a+=this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(a+=this._input.next())));a+=o.read(),i+=a}return i};Ip.Tokenizer=_a;Ip.TOKEN=nr;Ip.positionable_operators=pZe.slice();Ip.line_starters=LJ.slice();var bZe=$E.Output,_Ze=Dj.Token,i2=jj,OZe=Lj.Options,wZe=Ip.Tokenizer,_1=Ip.line_starters,K_=Ip.positionable_operators,Tt=Ip.TOKEN;function Rr(e,t){return t.indexOf(e)!==-1}function SZe(e){return e.replace(/^\s+/g,"")}function xZe(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}function mu(e,t){return e&&e.type===Tt.RESERVED&&e.text===t}function Mo(e,t){return e&&e.type===Tt.RESERVED&&Rr(e.text,t)}var RE=["case","return","do","if","throw","else","await","break","continue","async"],kZe=["before-newline","after-newline","preserve-newline"],SO=xZe(kZe),BJ=[SO.before_newline,SO.preserve_newline],ur={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function VJ(e,t){t.multiline_frame||t.mode===ur.ForInitializer||t.mode===ur.Conditional||e.remove_indent(t.start_line_index)}function CZe(e){e=e.replace(i2.allLineBreaks,`
- `);for(var t=[],n=e.indexOf(`
- `);n!==-1;)t.push(e.substring(0,n)),e=e.substring(n+1),n=e.indexOf(`
- `);return e.length&&t.push(e),t}function Op(e){return e===ur.ArrayLiteral}function xO(e){return Rr(e,[ur.Expression,ur.ForInitializer,ur.Conditional])}function EZe(e,t){for(var n=0;n<e.length;n++){var r=e[n].trim();if(r.charAt(0)!==t)return!1}return!0}function TZe(e,t){for(var n=0,r=e.length,o;n<r;n++)if(o=e[n],o&&o.indexOf(t)!==0)return!1;return!0}function co(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new OZe(t)}co.prototype.create_flags=function(e,t){var n=0;e&&(n=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>n&&(n=e.line_indent_level));var r={mode:t,parent:e,last_token:e?e.last_token:new _Ze(Tt.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0};return r};co.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new bZe(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(ur.BlockStatement);var n=new wZe(e,this._options);return this._tokens=n.tokenize(),e};co.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),n=this._options.eol;this._options.eol==="auto"&&(n=`
- `,t&&i2.lineBreak.test(t||"")&&(n=t.match(i2.lineBreak)[0]));for(var r=this._tokens.next();r;)this.handle_token(r),this._last_last_text=this._flags.last_token.text,this._flags.last_token=r,r=this._tokens.next();return e=this._output.get_code(n),e};co.prototype.handle_token=function(e,t){e.type===Tt.START_EXPR?this.handle_start_expr(e):e.type===Tt.END_EXPR?this.handle_end_expr(e):e.type===Tt.START_BLOCK?this.handle_start_block(e):e.type===Tt.END_BLOCK?this.handle_end_block(e):e.type===Tt.WORD?this.handle_word(e):e.type===Tt.RESERVED?this.handle_word(e):e.type===Tt.SEMICOLON?this.handle_semicolon(e):e.type===Tt.STRING?this.handle_string(e):e.type===Tt.EQUALS?this.handle_equals(e):e.type===Tt.OPERATOR?this.handle_operator(e):e.type===Tt.COMMA?this.handle_comma(e):e.type===Tt.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===Tt.COMMENT?this.handle_comment(e,t):e.type===Tt.DOT?this.handle_dot(e):e.type===Tt.EOF?this.handle_eof(e):e.type===Tt.UNKNOWN?this.handle_unknown(e,t):this.handle_unknown(e,t)};co.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&Op(this._flags.mode);if(e.comments_before)for(var o=e.comments_before.next();o;)this.handle_whitespace_and_comments(o,t),this.handle_token(o,t),o=e.comments_before.next();if(r)for(var i=0;i<n;i+=1)this.print_newline(i>0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var a=1;a<n;a+=1)this.print_newline(!0,t)}};var Fj=["async","break","continue","return","throw","yield"];co.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=t===void 0?!1:t,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&e.newlines||t,r=Rr(this._flags.last_token.text,K_)||Rr(e.text,K_);if(r){var o=Rr(this._flags.last_token.text,K_)&&Rr(this._options.operator_position,BJ)||Rr(e.text,K_);n=n&&o}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Mo(this._flags.last_token,Fj))return;this._output.set_wrap_point()}}};co.prototype.print_newline=function(e,t){if(!t&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==Tt.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var n=this._tokens.peek();this._flags.mode===ur.Statement&&!(this._flags.if_block&&mu(n,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)};co.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&(e.text==="["||Op(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))};co.prototype.print_token=function(e){if(this._output.raw){this._output.add_raw_token(e);return}if(this._options.comma_first&&e.previous&&e.previous.type===Tt.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)};co.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};co.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};co.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};co.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===ur.Statement&&VJ(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};co.prototype.start_of_object_property=function(){return this._flags.parent.mode===ur.ObjectLiteral&&this._flags.mode===ur.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Mo(this._flags.last_token,["get","set"]))};co.prototype.start_of_statement=function(e){var t=!1;return t=t||Mo(this._flags.last_token,["var","let","const"])&&e.type===Tt.WORD,t=t||mu(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===ur.ObjectLiteral&&this._flags.mode===ur.Statement)&&Mo(this._flags.last_token,Fj)&&!e.newlines,t=t||mu(this._flags.last_token,"else")&&!(mu(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===Tt.END_EXPR&&(this._previous_flags.mode===ur.ForInitializer||this._previous_flags.mode===ur.Conditional),t=t||this._flags.last_token.type===Tt.WORD&&this._flags.mode===ur.BlockStatement&&!this._flags.in_case&&!(e.text==="--"||e.text==="++")&&this._last_last_text!=="function"&&e.type!==Tt.WORD&&e.type!==Tt.RESERVED,t=t||this._flags.mode===ur.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Mo(this._flags.last_token,["get","set"])),t?(this.set_mode(ur.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,Mo(e,["do","for","if","while"])),!0):!1};co.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=ur.Expression;if(e.text==="["){if(this._flags.last_token.type===Tt.WORD||this._flags.last_token.text===")"){Mo(this._flags.last_token,_1)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=ur.ArrayLiteral,Op(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),Rr(this._flags.last_token.type,[Tt.START_EXPR,Tt.END_EXPR,Tt.WORD,Tt.OPERATOR,Tt.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===Tt.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,t=ur.ForInitializer):Rr(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=ur.Conditional):Rr(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&e.whitespace_before===""?this._output.space_before_token=!1:(Rr(this._flags.last_token.text,_1)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===Tt.EQUALS||this._flags.last_token.type===Tt.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===Tt.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);Mo(n,["async","function"])||n.text==="*"&&Mo(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===ur.ObjectLiteral?(n.text==="{"||n.text===","||n.text==="*"&&(r.text==="{"||r.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===Tt.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(Rr(this._last_last_text,["function","yield"])||this._flags.mode===ur.ObjectLiteral&&Rr(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===Tt.START_BLOCK?this.print_newline():(this._flags.last_token.type===Tt.END_EXPR||this._flags.last_token.type===Tt.START_EXPR||this._flags.last_token.type===Tt.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===Tt.COMMA)&&this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()};co.prototype.handle_end_expr=function(e){for(;this._flags.mode===ur.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,e.text==="]"&&Op(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===Tt.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(e),this.restore_mode(),VJ(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===ur.Conditional&&(this._previous_flags.mode=ur.Expression,this._flags.do_block=!1,this._flags.do_while=!1)};co.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===Tt.END_EXPR?(this.set_mode(ur.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(ur.BlockStatement):n&&(Rr(n.text,[":",","])&&Rr(t.type,[Tt.STRING,Tt.WORD,Tt.RESERVED])||Rr(t.text,["get","set","..."])&&Rr(n.type,[Tt.WORD,Tt.RESERVED]))?Rr(this._last_last_text,["class","interface"])&&!Rr(n.text,[":",","])?this.set_mode(ur.BlockStatement):this.set_mode(ur.ObjectLiteral):this._flags.last_token.type===Tt.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(ur.BlockStatement):Rr(this._flags.last_token.type,[Tt.EQUALS,Tt.START_EXPR,Tt.COMMA,Tt.OPERATOR])||Mo(this._flags.last_token,["return","throw","import","default"])?this.set_mode(ur.ObjectLiteral):this.set_mode(ur.BlockStatement),this._flags.last_token&&Mo(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var r=!t.comments_before&&t.text==="}",o=r&&this._flags.last_word==="function"&&this._flags.last_token.type===Tt.END_EXPR;if(this._options.brace_preserve_inline){var i=0,a=null;this._flags.inline_frame=!0;do if(i+=1,a=this._tokens.peek(i-1),a.newlines){this._flags.inline_frame=!1;break}while(a.type!==Tt.EOF&&!(a.type===Tt.END_BLOCK&&a.opened===e))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==Tt.OPERATOR&&(o||this._flags.last_token.type===Tt.EQUALS||Mo(this._flags.last_token,RE)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(Op(this._previous_flags.mode)&&(this._flags.last_token.type===Tt.START_EXPR||this._flags.last_token.type===Tt.COMMA)&&((this._flags.last_token.type===Tt.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===Tt.COMMA||this._flags.last_token.type===Tt.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==Tt.OPERATOR&&this._flags.last_token.type!==Tt.START_EXPR&&(Rr(this._flags.last_token.type,[Tt.START_BLOCK,Tt.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),!r&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()};co.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===ur.Statement;)this.restore_mode();var t=this._flags.last_token.type===Tt.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:this._options.brace_style==="expand"?t||this.print_newline():t||(Op(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)};co.prototype.handle_word=function(e){if(e.type===Tt.RESERVED){if(Rr(e.text,["set","get"])&&this._flags.mode!==ur.ObjectLiteral)e.type=Tt.WORD;else if(e.text==="import"&&Rr(this._tokens.peek().text,["(","."]))e.type=Tt.WORD;else if(Rr(e.text,["as","from"])&&!this._flags.import_block)e.type=Tt.WORD;else if(this._flags.mode===ur.ObjectLiteral){var t=this._tokens.peek();t.text===":"&&(e.type=Tt.WORD)}}if(this.start_of_statement(e)?Mo(this._flags.last_token,["var","let","const"])&&e.type===Tt.WORD&&(this._flags.declaration_statement=!0):e.newlines&&!xO(this._flags.mode)&&(this._flags.last_token.type!==Tt.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==Tt.EQUALS&&(this._options.preserve_newlines||!Mo(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(e),this.print_newline()):this.handle_whitespace_and_comments(e),this._flags.do_block&&!this._flags.do_while)if(mu(e,"while")){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&mu(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===ur.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Mo(e,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),this._flags.in_case=!0;return}if((this._flags.last_token.type===Tt.COMMA||this._flags.last_token.type===Tt.START_EXPR||this._flags.last_token.type===Tt.EQUALS||this._flags.last_token.type===Tt.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e)),mu(e,"function")){(Rr(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(Rr(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===Tt.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===Tt.RESERVED||this._flags.last_token.type===Tt.WORD?Mo(this._flags.last_token,["get","set","new","export"])||Mo(this._flags.last_token,Fj)?this._output.space_before_token=!0:mu(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===Tt.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(xO(this._flags.mode)||Op(this._flags.mode))||this.print_newline(),this.print_token(e),this._flags.last_word=e.text;return}var n="NONE";if(this._flags.last_token.type===Tt.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":Mo(e,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===Tt.SEMICOLON&&this._flags.mode===ur.BlockStatement?n="NEWLINE":this._flags.last_token.type===Tt.SEMICOLON&&xO(this._flags.mode)?n="SPACE":this._flags.last_token.type===Tt.STRING?n="NEWLINE":this._flags.last_token.type===Tt.RESERVED||this._flags.last_token.type===Tt.WORD||this._flags.last_token.text==="*"&&(Rr(this._last_last_text,["function","yield"])||this._flags.mode===ur.ObjectLiteral&&Rr(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===Tt.START_BLOCK?this._flags.inline_frame?n="SPACE":n="NEWLINE":this._flags.last_token.type===Tt.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),Mo(e,_1)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?n="SPACE":n="NEWLINE"),Mo(e,["else","catch","finally"]))if((!(this._flags.last_token.type===Tt.END_BLOCK&&this._previous_flags.mode===ur.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var r=this._output.current_line;r.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else n==="NEWLINE"?Mo(this._flags.last_token,RE)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&Mo(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==Tt.END_EXPR?(this._flags.last_token.type!==Tt.START_EXPR||!Mo(e,["var","let","const"]))&&this._flags.last_token.text!==":"&&(mu(e,"if")&&mu(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Mo(e,_1)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&Op(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():n==="SPACE"&&(this._output.space_before_token=!0);e.previous&&(e.previous.type===Tt.WORD||e.previous.type===Tt.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===Tt.RESERVED&&(e.text==="do"?this._flags.do_block=!0:e.text==="if"?this._flags.if_block=!0:e.text==="import"?this._flags.import_block=!0:this._flags.import_block&&mu(e,"from")&&(this._flags.import_block=!1))};co.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();this._flags.mode===ur.Statement&&!(this._flags.if_block&&mu(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)};co.prototype.handle_string=function(e){e.text.startsWith("`")&&e.newlines===0&&e.whitespace_before===""&&(e.previous.text===")"||this._flags.last_token.type===Tt.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===Tt.RESERVED||this._flags.last_token.type===Tt.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===Tt.COMMA||this._flags.last_token.type===Tt.START_EXPR||this._flags.last_token.type===Tt.EQUALS||this._flags.last_token.type===Tt.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):e.text.startsWith("`")&&this._flags.last_token.type===Tt.END_EXPR&&(e.previous.text==="]"||e.previous.text===")")&&e.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(e)};co.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0};co.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(xO(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===ur.ObjectLiteral||this._flags.mode===ur.Statement&&this._flags.parent.mode===ur.ObjectLiteral?(this._flags.mode===ur.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)};co.prototype.handle_operator=function(e){var t=e.text==="*"&&(Mo(this._flags.last_token,["function","yield"])||Rr(this._flags.last_token.type,[Tt.START_BLOCK,Tt.COMMA,Tt.END_BLOCK,Tt.SEMICOLON])),n=Rr(e.text,["-","+"])&&(Rr(this._flags.last_token.type,[Tt.START_BLOCK,Tt.START_EXPR,Tt.EQUALS,Tt.OPERATOR])||Rr(this._flags.last_token.text,_1)||this._flags.last_token.text===",");if(!this.start_of_statement(e)){var r=!t;this.handle_whitespace_and_comments(e,r)}if(e.text==="*"&&this._flags.last_token.type===Tt.DOT){this.print_token(e);return}if(e.text==="::"){this.print_token(e);return}if(this._flags.last_token.type===Tt.OPERATOR&&Rr(this._options.operator_position,BJ)&&this.allow_wrap_or_preserved_newline(e),e.text===":"&&this._flags.in_case){this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==Tt.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var o=!0,i=!0,a=!1;if(e.text===":"?this._flags.ternary_depth===0?o=!1:(this._flags.ternary_depth-=1,a=!0):e.text==="?"&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&Rr(e.text,K_)){var s=e.text===":",l=s&&a,u=s&&!a;switch(this._options.operator_position){case SO.before_newline:this._output.space_before_token=!u,this.print_token(e),(!s||l)&&this.allow_wrap_or_preserved_newline(e),this._output.space_before_token=!0;return;case SO.after_newline:this._output.space_before_token=!0,!s||l?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),this._output.space_before_token=!0;return;case SO.preserve_newline:u||this.allow_wrap_or_preserved_newline(e),o=!(this._output.just_added_newline()||u),this._output.space_before_token=o,this.print_token(e),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(e),o=!1;var f=this._tokens.peek();i=f&&Rr(f.type,[Tt.WORD,Tt.RESERVED])}else if(e.text==="...")this.allow_wrap_or_preserved_newline(e),o=this._flags.last_token.type===Tt.START_BLOCK,i=!1;else if(Rr(e.text,["--","++","!","~"])||n){if((this._flags.last_token.type===Tt.COMMA||this._flags.last_token.type===Tt.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),o=!1,i=!1,e.newlines&&(e.text==="--"||e.text==="++"||e.text==="~")){var h=Mo(this._flags.last_token,RE)&&e.newlines;h&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(h,!0)}this._flags.last_token.text===";"&&xO(this._flags.mode)&&(o=!0),this._flags.last_token.type===Tt.RESERVED?o=!0:this._flags.last_token.type===Tt.END_EXPR?o=!(this._flags.last_token.text==="]"&&(e.text==="--"||e.text==="++")):this._flags.last_token.type===Tt.OPERATOR&&(o=Rr(e.text,["--","-","++","+"])&&Rr(this._flags.last_token.text,["--","-","++","+"]),Rr(e.text,["+","-"])&&Rr(this._flags.last_token.text,["--","++"])&&(i=!0)),(this._flags.mode===ur.BlockStatement&&!this._flags.inline_frame||this._flags.mode===ur.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||o,this.print_token(e),this._output.space_before_token=i};co.prototype.handle_block_comment=function(e,t){if(this._output.raw){this._output.add_raw_token(e),e.directives&&e.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(e.directives){this.print_newline(!1,t),this.print_token(e),e.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i2.newline.test(e.text)&&!e.newlines){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0;return}else this.print_block_commment(e,t)};co.prototype.print_block_commment=function(e,t){var n=CZe(e.text),r,o=!1,i=!1,a=e.whitespace_before,s=a.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(n[0]),this.print_newline(!1,t),n.length>1){for(n=n.slice(1),o=EZe(n,"*"),i=TZe(n,a),o&&(this._flags.alignment=1),r=0;r<n.length;r++)o?(this.print_token_line_indentation(e),this._output.add_token(SZe(n[r]))):i&&n[r]?(this.print_token_line_indentation(e),this._output.add_token(n[r].substring(s))):(this._output.current_line.set_indent(-1),this._output.add_token(n[r])),this.print_newline(!1,t);this._flags.alignment=0}};co.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)};co.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),Mo(this._flags.last_token,RE)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)};co.prototype.handle_unknown=function(e,t){this.print_token(e),e.text[e.text.length-1]===`
- `&&this.print_newline(!1,t)};co.prototype.handle_eof=function(e){for(;this._flags.mode===ur.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e)};EJ.Beautifier=co;var PZe=EJ.Beautifier,$Ze=Lj.Options;function AZe(e,t){var n=new PZe(e,t);return n.beautify()}Ij.exports=AZe;Ij.exports.defaultOptions=function(){return new $Ze};var zj={exports:{}},FJ={},Qj={},zJ=L0.Options;function QJ(e){zJ.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)n[r]!=="expand"?this.brace_style="collapse":this.brace_style=n[r]}QJ.prototype=new zJ;Qj.Options=QJ;var MZe=Qj.Options,RZe=$E.Output,NZe=AE.InputScanner,IZe=ME.Directives,wz=new IZe(/\/\*/,/\*\//),Sz=/\r\n|[\r\n]/,DZe=/\r\n|[\r\n]/g,a2=/\s/,jZe=/(?:\s|\n)+/g,LZe=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,BZe=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function Vd(e,t){this._source_text=e||"",this._options=new MZe(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}Vd.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,this._ch==="\\")t+=this._input.next();else if(e.indexOf(this._ch)!==-1||this._ch===`
- `)break;this._ch=this._input.next()}return t};Vd.prototype.eatWhitespace=function(e){for(var t=a2.test(this._input.peek()),n=0;a2.test(this._input.peek());)this._ch=this._input.next(),e&&this._ch===`
- `&&(n===0||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t};Vd.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if(n==="{")return!0;if(n==="(")e+=1;else if(n===")"){if(e===0)return!1;e-=1}else if(n===";"||n==="}")return!1;t++,n=this._input.peek(t)}return!1};Vd.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)};Vd.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)};Vd.prototype.indent=function(){this._indentLevel++};Vd.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--};Vd.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;t==="auto"&&(t=`
- `,e&&Sz.test(e||"")&&(t=e.match(Sz)[0])),e=e.replace(DZe,`
- `);var n=e.match(/^[\t ]*/)[0];this._output=new RZe(this._options,n),this._input=new NZe(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var r=0,o=!1,i=!1,a=!1,s=!1,l=!1,u=this._ch,f=!1,h,m,y;h=this._input.read(jZe),m=h!=="",y=u,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),u=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var O=this._input.read(LZe),b=wz.get_directives(O);b&&b.ignore==="start"&&(O+=wz.readIgnored(this._input)),this.print_string(O),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(BZe)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(m),this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s$/,""),this.print_string(k),this._output.space_before_token=!0),k=k.replace(/\s$/,""),r===0&&k.indexOf(":")!==-1&&(i=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(m),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s$/,""),this.print_string(C),this._output.space_before_token=!0),C=C.replace(/\s$/,""),r===0&&C.indexOf(":")!==-1?(i=!0,this.indent()):C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(a=!0)):r===0&&!i&&(s=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(m),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")i&&(i=!1,this.outdent()),s=!1,a?(a=!1,o=this._indentLevel>=this._nestedLevel):o=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&o&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(y==="("?this._output.space_before_token=!1:y!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),y==="{"&&this._output.trim(!0),i&&(this.outdent(),i=!1),this.print_string(this._ch),o=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var P=0;P<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;P++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[P])){f=!0;break}(o||a)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!s&&r===0?(this.print_string(":"),i||(i=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var $=y==='"'||y==="'";this.preserveSingleSpace($||m),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")f=!1,r===0?(i&&(this.outdent(),i=!1),s=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),r++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),r&&(r--,this.outdent()));else{var T=!1;this._input.lookBack("with")&&(T=!0),this.preserveSingleSpace(m||T),this.print_string(this._ch),i&&y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),l=!0):(this.eatWhitespace(),r++,this.indent())}else if(this._ch===")")r&&(r--,this.outdent()),l&&this._input.peek()===";"&&this._options.selector_separator_newline&&(l=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!i||l)&&r===0&&!s?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!i&&r===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&a2.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(m),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),a2.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var A=y==='"'||y==="'";this.preserveSingleSpace(A||m),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
- `&&f&&this._output.add_new_line()}var R=this._output.get_code(t);return R};FJ.Beautifier=Vd;var VZe=FJ.Beautifier,FZe=Qj.Options;function zZe(e,t){var n=new VZe(e,t);return n.beautify()}zj.exports=zZe;zj.exports.defaultOptions=function(){return new FZe};var Wj={exports:{}},WJ={},Yj={},YJ=L0.Options;function UJ(e){YJ.call(this,e,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}UJ.prototype=new YJ;Yj.Options=UJ;var NE={},HJ=B0.Tokenizer,oM=B0.TOKEN,QZe=ME.Directives,WZe=Vj.TemplatablePattern,YZe=aw.Pattern,$i={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:oM.START,RAW:oM.RAW,EOF:oM.EOF},xz=new QZe(/<\!--/,/-->/),ds=function(e,t){HJ.call(this,e,t),this._current_tag_name="";var n=new WZe(this._input).read_options(this._options),r=new YZe(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(/<!--/).until_after(/-->/),cdata:r.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:r.starting_with(/<!\[/).until_after(/]>/),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(o).until_after(o)}};ds.prototype=new HJ;ds.prototype._is_comment=function(e){return!1};ds.prototype._is_opening=function(e){return e.type===$i.TAG_OPEN};ds.prototype._is_closing=function(e,t){return e.type===$i.TAG_CLOSE&&t&&((e.text===">"||e.text==="/>")&&t.text[0]==="<"||e.text==="}}"&&t.text[0]==="{"&&t.text[1]==="{")};ds.prototype._reset=function(){this._current_tag_name=""};ds.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return r===null?this._create_token($i.EOF,""):(n=n||this._read_open_handlebars(r,t),n=n||this._read_attribute(r,e,t),n=n||this._read_close(r,t),n=n||this._read_raw_content(r,e,t),n=n||this._read_content_word(r),n=n||this._read_comment_or_cdata(r),n=n||this._read_processing(r),n=n||this._read_open(r,t),n=n||this._create_token($i.UNKNOWN,this._input.next()),n)};ds.prototype._read_comment_or_cdata=function(e){var t=null,n=null,r=null;if(e==="<"){var o=this._input.peek(1);o==="!"&&(n=this.__patterns.comment.read(),n?(r=xz.get_directives(n),r&&r.ignore==="start"&&(n+=xz.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(t=this._create_token($i.COMMENT,n),t.directives=r)}return t};ds.prototype._read_processing=function(e){var t=null,n=null,r=null;if(e==="<"){var o=this._input.peek(1);(o==="!"||o==="?")&&(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(t=this._create_token($i.COMMENT,n),t.directives=r)}return t};ds.prototype._read_open=function(e,t){var n=null,r=null;return t||e==="<"&&(n=this._input.next(),this._input.peek()==="/"&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token($i.TAG_OPEN,n)),r};ds.prototype._read_open_handlebars=function(e,t){var n=null,r=null;return t||this._options.indent_handlebars&&e==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),r=this._create_token($i.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token($i.TAG_OPEN,n))),r};ds.prototype._read_close=function(e,t){var n=null,r=null;return t&&(t.text[0]==="<"&&(e===">"||e==="/"&&this._input.peek(1)===">")?(n=this._input.next(),e==="/"&&(n+=this._input.next()),r=this._create_token($i.TAG_CLOSE,n)):t.text[0]==="{"&&e==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),r=this._create_token($i.TAG_CLOSE,"}}"))),r};ds.prototype._read_attribute=function(e,t,n){var r=null,o="";if(n&&n.text[0]==="<")if(e==="=")r=this._create_token($i.EQUALS,this._input.next());else if(e==='"'||e==="'"){var i=this._input.next();e==='"'?i+=this.__patterns.double_quote.read():i+=this.__patterns.single_quote.read(),r=this._create_token($i.VALUE,i)}else o=this.__patterns.attribute.read(),o&&(t.type===$i.EQUALS?r=this._create_token($i.VALUE,o):r=this._create_token($i.ATTRIBUTE,o));return r};ds.prototype._is_content_unformatted=function(e){return this._options.void_elements.indexOf(e)===-1&&(this._options.content_unformatted.indexOf(e)!==-1||this._options.unformatted.indexOf(e)!==-1)};ds.prototype._read_raw_content=function(e,t,n){var r="";if(n&&n.text[0]==="{")r=this.__patterns.handlebars_raw_close.read();else if(t.type===$i.TAG_CLOSE&&t.opened.text[0]==="<"&&t.text[0]!=="/"){var o=t.opened.text.substr(1).toLowerCase();if(o==="script"||o==="style"){var i=this._read_comment_or_cdata(e);if(i)return i.type=$i.TEXT,i;r=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(r=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return r?this._create_token($i.TEXT,r):null};ds.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token($i.TEXT,t)};NE.Tokenizer=ds;NE.TOKEN=$i;var UZe=Yj.Options,HZe=$E.Output,ZZe=NE.Tokenizer,Oo=NE.TOKEN,kz=/\r\n|[\r\n]/,XZe=/\r\n|[\r\n]/g,Vu=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new HZe(e,t)};Vu.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)};Vu.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t};Vu.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()};Vu.prototype.add_raw_token=function(e){this._output.add_raw_token(e)};Vu.prototype.print_preserved_newlines=function(e){var t=0;e.type!==Oo.TEXT&&e.previous.type!==Oo.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return t!==0};Vu.prototype.traverse_whitespace=function(e){return e.whitespace_before||e.newlines?(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0):!1};Vu.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped};Vu.prototype.print_newline=function(e){this._output.add_new_line(e)};Vu.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))};Vu.prototype.indent=function(){this.indent_level++};Vu.prototype.get_full_indent=function(e){return e=this.indent_level+(e||0),e<1?"":this._output.get_indent_string(e)};var qZe=function(e){for(var t=null,n=e.next;n.type!==Oo.EOF&&e.closed!==n;){if(n.type===Oo.ATTRIBUTE&&n.text==="type"){n.next&&n.next.type===Oo.EQUALS&&n.next.next&&n.next.next.type===Oo.VALUE&&(t=n.next.next.text);break}n=n.next}return t},KZe=function(e,t){var n=null,r=null;return t.closed?(e==="script"?n="text/javascript":e==="style"&&(n="text/css"),n=qZe(t)||n,n.search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function G_(e,t){return t.indexOf(e)!==-1}function GZe(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function jm(e){this._printer=e,this._current_frame=null}jm.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null};jm.prototype.record_tag=function(e){var t=new GZe(this._current_frame,e,this._printer.indent_level);this._current_frame=t};jm.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t};jm.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&e.indexOf(n.tag)===-1;){if(t&&t.indexOf(n.tag)!==-1){n=null;break}n=n.parent}return n};jm.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)};jm.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)};function ju(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var o=new UZe(t,"html");this._options=o,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}ju.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;this._options.eol==="auto"&&(t=`
- `,e&&kz.test(e)&&(t=e.match(kz)[0])),e=e.replace(XZe,`
- `);var n=e.match(/^[\t ]*/)[0],r={text:"",type:""},o=new ZJ,i=new Vu(this._options,n),a=new ZZe(e,this._options).tokenize();this._tag_stack=new jm(i);for(var s=null,l=a.next();l.type!==Oo.EOF;)l.type===Oo.TAG_OPEN||l.type===Oo.COMMENT?(s=this._handle_tag_open(i,l,o,r,a),o=s):l.type===Oo.ATTRIBUTE||l.type===Oo.EQUALS||l.type===Oo.VALUE||l.type===Oo.TEXT&&!o.tag_complete?s=this._handle_inside_tag(i,l,o,r):l.type===Oo.TAG_CLOSE?s=this._handle_tag_close(i,l,o):l.type===Oo.TEXT?s=this._handle_text(i,l,o):i.add_raw_token(l),r=s,l=a.next();var u=i._output.get_code(t);return u};ju.prototype._handle_tag_close=function(e,t,n){var r={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),n.is_unformatted?e.add_raw_token(t):(n.tag_start_char==="<"&&(e.set_space_before_token(t.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),n.indent_content&&!(n.is_unformatted||n.is_content_unformatted)&&(e.indent(),n.indent_content=!1),!n.is_inline_element&&!(n.is_unformatted||n.is_content_unformatted)&&e.set_wrap_point(),r};ju.prototype._handle_inside_tag=function(e,t,n,r){var o=n.has_wrapped_attrs,i={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),n.is_unformatted?e.add_raw_token(t):n.tag_start_char==="{"&&t.type===Oo.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===Oo.ATTRIBUTE?e.set_space_before_token(!0):(t.type===Oo.EQUALS||t.type===Oo.VALUE&&t.previous.type===Oo.EQUALS)&&e.set_space_before_token(!1),t.type===Oo.ATTRIBUTE&&n.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),o=o||t.newlines!==0),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(r.type!==Oo.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),o=!0)),e.print_token(t),o=o||e.previous_token_wrapped(),n.has_wrapped_attrs=o),i};ju.prototype._handle_text=function(e,t,n){var r={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),r};ju.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(t.text!==""){var o=t.text,i,a=1,s="",l="";n.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?i=this._js_beautify:n.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?i=this._css_beautify:n.custom_beautifier_name==="html"&&(i=function(O,b){var k=new ju(O,b,r._js_beautify,r._css_beautify);return k.beautify()}),this._options.indent_scripts==="keep"?a=0:this._options.indent_scripts==="separate"&&(a=-e.indent_level);var u=e.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),n.custom_beautifier_name!=="html"&&o[0]==="<"&&o.match(/^(<!--|<!\[CDATA\[)/)){var f=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(o);if(!f){e.add_raw_token(t);return}s=u+f[1]+`
- `,o=f[4],f[5]&&(l=u+f[5]),o=o.replace(/\n[ \t]*$/,""),(f[2]||f[3].indexOf(`
- `)!==-1)&&(f=f[3].match(/[ \t]+$/),f&&(t.whitespace_before=f[0]))}if(o)if(i){var h=function(){this.eol=`
- `};h.prototype=this._options.raw_options;var m=new h;o=i(u+o,m)}else{var y=t.whitespace_before;y&&(o=o.replace(new RegExp(`
- (`+y+")?","g"),`
- `)),o=u+o.replace(/\n/g,`
- `+u)}s&&(o?o=s+o+`
- `+l:o=s+l),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}};ju.prototype._handle_tag_open=function(e,t,n,r,o){var i=this._get_tag_open_token(t);if((n.is_unformatted||n.is_content_unformatted)&&!n.is_empty_element&&t.type===Oo.TAG_OPEN&&!i.is_start_tag?(e.add_raw_token(t),i.start_tag_token=this._tag_stack.try_pop(i.tag_name)):(e.traverse_whitespace(t),this._set_tag_position(e,t,i,n,r),i.is_inline_element||e.set_wrap_point(),e.print_token(t)),i.is_start_tag&&this._is_wrap_attributes_force){var a=0,s;do s=o.peek(a),s.type===Oo.ATTRIBUTE&&(i.attr_count+=1),a+=1;while(s.type!==Oo.EOF&&s.type!==Oo.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(i.alignment_size=t.text.length+1),!i.tag_complete&&!i.is_unformatted&&(e.alignment_size=i.alignment_size),i};var ZJ=function(e,t){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!t)this.tag_complete=!0;else{var n;this.tag_start_char=t.text[0],this.text=t.text,this.tag_start_char==="<"?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&t.next!==null?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===Oo.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&t.closed.text==="/>";var r=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(r=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(r)))}};ju.prototype._get_tag_open_token=function(e){var t=new ZJ(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||G_(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&G_(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&G_(t.tag_check,this._options.content_unformatted),t.is_inline_element=G_(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||t.tag_start_char==="{",t};ju.prototype._set_tag_position=function(e,t,n,r,o){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),(n.tag_name==="script"||n.tag_name==="style")&&!(n.is_unformatted||n.is_content_unformatted)&&(n.custom_beautifier_name=KZe(n.tag_check,t)))),G_(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if(n.tag_start_char==="{"&&n.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;var i=e.current_line_has_match(/{{#if/);i||e.print_newline(!1)}n.tag_name==="!--"&&o.type===Oo.TAG_CLOSE&&r.is_end_tag&&n.text.indexOf(`
- `)===-1||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var a=!1;a=n.start_tag_token&&n.start_tag_token.multiline_content,a=a||!n.is_inline_element&&!(r.is_inline_element||r.is_unformatted)&&!(o.type===Oo.TAG_CLOSE&&n.start_tag_token===r)&&o.type!=="TK_CONTENT",(n.is_content_unformatted||n.is_unformatted)&&(a=!1),a&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,n.tag_start_char==="<"&&(n.tag_name==="html"?n.indent_content=this._options.indent_inner_html:n.tag_name==="head"?n.indent_content=this._options.indent_head_inner_html:n.tag_name==="body"&&(n.indent_content=this._options.indent_body_inner_html)),!(n.is_inline_element||n.is_unformatted)&&(o.type!=="TK_CONTENT"||n.is_content_unformatted)&&e.print_newline(!1),this._calcluate_parent_multiline(e,n)};ju.prototype._calcluate_parent_multiline=function(e,t){t.parent&&e._output.just_added_newline()&&!((t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element)&&(t.parent.multiline_content=!0)};var JZe=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],eXe=["a","audio","del","ins","map","noscript","video"];ju.prototype._do_optional_end_element=function(e){var t=null;if(!(e.is_empty_element||!e.is_start_tag||!e.parent)){if(e.tag_name==="body")t=t||this._tag_stack.try_pop("head");else if(e.tag_name==="li")t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(e.tag_name==="dd"||e.tag_name==="dt")t=t||this._tag_stack.try_pop("dt",["dl"]),t=t||this._tag_stack.try_pop("dd",["dl"]);else if(e.parent.tag_name==="p"&&JZe.indexOf(e.tag_name)!==-1){var n=e.parent.parent;(!n||eXe.indexOf(n.tag_name)===-1)&&(t=t||this._tag_stack.try_pop("p"))}else e.tag_name==="rp"||e.tag_name==="rt"?(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]),t=t||this._tag_stack.try_pop("rp",["ruby","rtc"])):e.tag_name==="optgroup"?t=t||this._tag_stack.try_pop("optgroup",["select"]):e.tag_name==="option"?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):e.tag_name==="colgroup"?t=t||this._tag_stack.try_pop("caption",["table"]):e.tag_name==="thead"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"])):e.tag_name==="tbody"||e.tag_name==="tfoot"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("thead",["table"]),t=t||this._tag_stack.try_pop("tbody",["table"])):e.tag_name==="tr"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(e.tag_name==="th"||e.tag_name==="td")&&(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),t=t||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}};WJ.Beautifier=ju;var tXe=WJ.Beautifier,nXe=Yj.Options;function rXe(e,t,n,r){var o=new tXe(e,t,n,r);return o.beautify()}Wj.exports=rXe;Wj.exports.defaultOptions=function(){return new nXe};var XJ=Ij.exports,qJ=zj.exports,KJ=Wj.exports;function GJ(e,t,n,r){return n=n||XJ,r=r||qJ,KJ(e,t,n,r)}GJ.defaultOptions=KJ.defaultOptions;PE.js=XJ;PE.css=qJ;PE.html=GJ;(function(e){function t(n,r,o){var i=function(a,s){return n.js_beautify(a,s)};return i.js=n.js_beautify,i.css=r.css_beautify,i.html=o.html_beautify,i.js_beautify=n.js_beautify,i.css_beautify=r.css_beautify,i.html_beautify=o.html_beautify,i}(function(n){var r=PE;r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,n.exports=t(r,r,r)})(e)})(CJ);var BN=CJ.exports;function JJ(e,t){return function(){return e.apply(t,arguments)}}const{toString:oXe}=Object.prototype,{getPrototypeOf:Uj}=Object,IE=(e=>t=>{const n=oXe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pc=e=>(e=e.toLowerCase(),t=>IE(t)===e),DE=e=>t=>typeof t===e,{isArray:V0}=Array,O1=DE("undefined");function iXe(e){return e!==null&&!O1(e)&&e.constructor!==null&&!O1(e.constructor)&&Vl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eee=Pc("ArrayBuffer");function aXe(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eee(e.buffer),t}const sXe=DE("string"),Vl=DE("function"),tee=DE("number"),jE=e=>e!==null&&typeof e=="object",lXe=e=>e===!0||e===!1,Qk=e=>{if(IE(e)!=="object")return!1;const t=Uj(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uXe=Pc("Date"),cXe=Pc("File"),fXe=Pc("Blob"),dXe=Pc("FileList"),hXe=e=>jE(e)&&Vl(e.pipe),pXe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vl(e.append)&&((t=IE(e))==="formdata"||t==="object"&&Vl(e.toString)&&e.toString()==="[object FormData]"))},gXe=Pc("URLSearchParams"),[mXe,vXe,yXe,bXe]=["ReadableStream","Request","Response","Headers"].map(Pc),_Xe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sw(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),V0(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function nee(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const tm=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),ree=e=>!O1(e)&&e!==tm;function VN(){const{caseless:e}=ree(this)&&this||{},t={},n=(r,o)=>{const i=e&&nee(t,o)||o;Qk(t[i])&&Qk(r)?t[i]=VN(t[i],r):Qk(r)?t[i]=VN({},r):V0(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&sw(arguments[r],n);return t}const OXe=(e,t,n,{allOwnKeys:r}={})=>(sw(t,(o,i)=>{n&&Vl(o)?e[i]=JJ(o,n):e[i]=o},{allOwnKeys:r}),e),wXe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),SXe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xXe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Uj(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kXe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},CXe=e=>{if(!e)return null;if(V0(e))return e;let t=e.length;if(!tee(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},EXe=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Uj(Uint8Array)),TXe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},PXe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$Xe=Pc("HTMLFormElement"),AXe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Cz=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),MXe=Pc("RegExp"),oee=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};sw(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},RXe=e=>{oee(e,(t,n)=>{if(Vl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!Vl(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},NXe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return V0(e)?r(e):r(String(e).split(t)),n},IXe=()=>{},DXe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,iM="abcdefghijklmnopqrstuvwxyz",Ez="0123456789",iee={DIGIT:Ez,ALPHA:iM,ALPHA_DIGIT:iM+iM.toUpperCase()+Ez},jXe=(e=16,t=iee.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function LXe(e){return!!(e&&Vl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const BXe=e=>{const t=new Array(10),n=(r,o)=>{if(jE(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=V0(r)?[]:{};return sw(r,(a,s)=>{const l=n(a,o+1);!O1(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},VXe=Pc("AsyncFunction"),FXe=e=>e&&(jE(e)||Vl(e))&&Vl(e.then)&&Vl(e.catch),aee=((e,t)=>e?setImmediate:t?((n,r)=>(tm.addEventListener("message",({source:o,data:i})=>{o===tm&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),tm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Vl(tm.postMessage)),zXe=typeof queueMicrotask!="undefined"?queueMicrotask.bind(tm):typeof process!="undefined"&&process.nextTick||aee;var Ct={isArray:V0,isArrayBuffer:eee,isBuffer:iXe,isFormData:pXe,isArrayBufferView:aXe,isString:sXe,isNumber:tee,isBoolean:lXe,isObject:jE,isPlainObject:Qk,isReadableStream:mXe,isRequest:vXe,isResponse:yXe,isHeaders:bXe,isUndefined:O1,isDate:uXe,isFile:cXe,isBlob:fXe,isRegExp:MXe,isFunction:Vl,isStream:hXe,isURLSearchParams:gXe,isTypedArray:EXe,isFileList:dXe,forEach:sw,merge:VN,extend:OXe,trim:_Xe,stripBOM:wXe,inherits:SXe,toFlatObject:xXe,kindOf:IE,kindOfTest:Pc,endsWith:kXe,toArray:CXe,forEachEntry:TXe,matchAll:PXe,isHTMLForm:$Xe,hasOwnProperty:Cz,hasOwnProp:Cz,reduceDescriptors:oee,freezeMethods:RXe,toObjectSet:NXe,toCamelCase:AXe,noop:IXe,toFiniteNumber:DXe,findKey:nee,global:tm,isContextDefined:ree,ALPHABET:iee,generateString:jXe,isSpecCompliantForm:LXe,toJSONObject:BXe,isAsyncFn:VXe,isThenable:FXe,setImmediate:aee,asap:zXe};function Er(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ct.inherits(Er,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ct.toJSONObject(this.config),code:this.code,status:this.status}}});const see=Er.prototype,lee={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lee[e]={value:e}});Object.defineProperties(Er,lee);Object.defineProperty(see,"isAxiosError",{value:!0});Er.from=(e,t,n,r,o,i)=>{const a=Object.create(see);return Ct.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Er.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var QXe=null;function FN(e){return Ct.isPlainObject(e)||Ct.isArray(e)}function uee(e){return Ct.endsWith(e,"[]")?e.slice(0,-2):e}function Tz(e,t,n){return e?e.concat(t).map(function(o,i){return o=uee(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function WXe(e){return Ct.isArray(e)&&!e.some(FN)}const YXe=Ct.toFlatObject(Ct,{},null,function(t){return/^is[A-Z]/.test(t)});function LE(e,t,n){if(!Ct.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ct.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,k){return!Ct.isUndefined(k[b])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&Ct.isSpecCompliantForm(t);if(!Ct.isFunction(o))throw new TypeError("visitor must be a function");function u(O){if(O===null)return"";if(Ct.isDate(O))return O.toISOString();if(!l&&Ct.isBlob(O))throw new Er("Blob is not supported. Use a Buffer instead.");return Ct.isArrayBuffer(O)||Ct.isTypedArray(O)?l&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function f(O,b,k){let C=O;if(O&&!k&&typeof O=="object"){if(Ct.endsWith(b,"{}"))b=r?b:b.slice(0,-2),O=JSON.stringify(O);else if(Ct.isArray(O)&&WXe(O)||(Ct.isFileList(O)||Ct.endsWith(b,"[]"))&&(C=Ct.toArray(O)))return b=uee(b),C.forEach(function($,T){!(Ct.isUndefined($)||$===null)&&t.append(a===!0?Tz([b],T,i):a===null?b:b+"[]",u($))}),!1}return FN(O)?!0:(t.append(Tz(k,b,i),u(O)),!1)}const h=[],m=Object.assign(YXe,{defaultVisitor:f,convertValue:u,isVisitable:FN});function y(O,b){if(!Ct.isUndefined(O)){if(h.indexOf(O)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(O),Ct.forEach(O,function(C,P){(!(Ct.isUndefined(C)||C===null)&&o.call(t,C,Ct.isString(P)?P.trim():P,b,m))===!0&&y(C,b?b.concat(P):[P])}),h.pop()}}if(!Ct.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Pz(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Hj(e,t){this._pairs=[],e&&LE(e,this,t)}const cee=Hj.prototype;cee.append=function(t,n){this._pairs.push([t,n])};cee.toString=function(t){const n=t?function(r){return t.call(this,r,Pz)}:Pz;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function UXe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fee(e,t,n){if(!t)return e;const r=n&&n.encode||UXe,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Ct.isURLSearchParams(t)?t.toString():new Hj(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class HXe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ct.forEach(this.handlers,function(r){r!==null&&t(r)})}}var $z=HXe,dee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ZXe=typeof URLSearchParams!="undefined"?URLSearchParams:Hj,XXe=typeof FormData!="undefined"?FormData:null,qXe=typeof Blob!="undefined"?Blob:null,KXe={isBrowser:!0,classes:{URLSearchParams:ZXe,FormData:XXe,Blob:qXe},protocols:["http","https","file","blob","url","data"]};const Zj=typeof window!="undefined"&&typeof document!="undefined",zN=typeof navigator=="object"&&navigator||void 0,GXe=Zj&&(!zN||["ReactNative","NativeScript","NS"].indexOf(zN.product)<0),JXe=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),eqe=Zj&&window.location.href||"http://localhost";var tqe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zj,hasStandardBrowserWebWorkerEnv:JXe,hasStandardBrowserEnv:GXe,navigator:zN,origin:eqe},Symbol.toStringTag,{value:"Module"})),ol={...tqe,...KXe};function nqe(e,t){return LE(e,new ol.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ol.isNode&&Ct.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function rqe(e){return Ct.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oqe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function hee(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&Ct.isArray(o)?o.length:a,l?(Ct.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Ct.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Ct.isArray(o[a])&&(o[a]=oqe(o[a])),!s)}if(Ct.isFormData(e)&&Ct.isFunction(e.entries)){const n={};return Ct.forEachEntry(e,(r,o)=>{t(rqe(r),o,n,0)}),n}return null}function iqe(e,t,n){if(Ct.isString(e))try{return(t||JSON.parse)(e),Ct.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Xj={transitional:dee,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Ct.isObject(t);if(i&&Ct.isHTMLForm(t)&&(t=new FormData(t)),Ct.isFormData(t))return o?JSON.stringify(hee(t)):t;if(Ct.isArrayBuffer(t)||Ct.isBuffer(t)||Ct.isStream(t)||Ct.isFile(t)||Ct.isBlob(t)||Ct.isReadableStream(t))return t;if(Ct.isArrayBufferView(t))return t.buffer;if(Ct.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nqe(t,this.formSerializer).toString();if((s=Ct.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return LE(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),iqe(t)):t}],transformResponse:[function(t){const n=this.transitional||Xj.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Ct.isResponse(t)||Ct.isReadableStream(t))return t;if(t&&Ct.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Er.from(s,Er.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ol.classes.FormData,Blob:ol.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ct.forEach(["delete","get","head","post","put","patch"],e=>{Xj.headers[e]={}});var qj=Xj;const aqe=Ct.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var sqe=e=>{const t={};let n,r,o;return e&&e.split(`
- `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&aqe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const Az=Symbol("internals");function V_(e){return e&&String(e).trim().toLowerCase()}function Wk(e){return e===!1||e==null?e:Ct.isArray(e)?e.map(Wk):String(e)}function lqe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const uqe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function aM(e,t,n,r,o){if(Ct.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ct.isString(t)){if(Ct.isString(r))return t.indexOf(r)!==-1;if(Ct.isRegExp(r))return r.test(t)}}function cqe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fqe(e,t){const n=Ct.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class BE{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const f=V_(l);if(!f)throw new Error("header name must be a non-empty string");const h=Ct.findKey(o,f);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||l]=Wk(s))}const a=(s,l)=>Ct.forEach(s,(u,f)=>i(u,f,l));if(Ct.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Ct.isString(t)&&(t=t.trim())&&!uqe(t))a(sqe(t),n);else if(Ct.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=V_(t),t){const r=Ct.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return lqe(o);if(Ct.isFunction(n))return n.call(this,o,r);if(Ct.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=V_(t),t){const r=Ct.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||aM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=V_(a),a){const s=Ct.findKey(r,a);s&&(!n||aM(r,r[s],s,n))&&(delete r[s],o=!0)}}return Ct.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||aM(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Ct.forEach(this,(o,i)=>{const a=Ct.findKey(r,i);if(a){n[a]=Wk(o),delete n[i];return}const s=t?cqe(i):String(i).trim();s!==i&&delete n[i],n[s]=Wk(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ct.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ct.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Az]=this[Az]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=V_(a);r[s]||(fqe(o,a),r[s]=!0)}return Ct.isArray(t)?t.forEach(i):i(t),this}}BE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ct.reduceDescriptors(BE.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ct.freezeMethods(BE);var vc=BE;function sM(e,t){const n=this||qj,r=t||n,o=vc.from(r.headers);let i=r.data;return Ct.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function pee(e){return!!(e&&e.__CANCEL__)}function F0(e,t,n){Er.call(this,e==null?"canceled":e,Er.ERR_CANCELED,t,n),this.name="CanceledError"}Ct.inherits(F0,Er,{__CANCEL__:!0});function gee(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Er("Request failed with status code "+n.status,[Er.ERR_BAD_REQUEST,Er.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dqe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hqe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=r[i];a||(a=u),n[o]=l,r[o]=u;let h=i,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const y=f&&u-f;return y?Math.round(m*1e3/y):void 0}}function pqe(e,t){let n=0,r=1e3/t,o,i;const a=(u,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const f=Date.now(),h=f-n;h>=r?a(u,f):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-h)))},()=>o&&a(o)]}const s2=(e,t,n=3)=>{let r=0;const o=hqe(50,250);return pqe(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),f=a<=s;r=a;const h={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-a)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},n)},Mz=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Rz=e=>(...t)=>Ct.asap(()=>e(...t));var gqe=ol.hasStandardBrowserEnv?function(){const t=ol.navigator&&/(msie|trident)/i.test(ol.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Ct.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),mqe=ol.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ct.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ct.isString(r)&&a.push("path="+r),Ct.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vqe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yqe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mee(e,t){return e&&!vqe(t)?yqe(e,t):t}const Nz=e=>e instanceof vc?{...e}:e;function Cm(e,t){t=t||{};const n={};function r(u,f,h){return Ct.isPlainObject(u)&&Ct.isPlainObject(f)?Ct.merge.call({caseless:h},u,f):Ct.isPlainObject(f)?Ct.merge({},f):Ct.isArray(f)?f.slice():f}function o(u,f,h){if(Ct.isUndefined(f)){if(!Ct.isUndefined(u))return r(void 0,u,h)}else return r(u,f,h)}function i(u,f){if(!Ct.isUndefined(f))return r(void 0,f)}function a(u,f){if(Ct.isUndefined(f)){if(!Ct.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function s(u,f,h){if(h in t)return r(u,f);if(h in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,f)=>o(Nz(u),Nz(f),!0)};return Ct.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=l[f]||o,m=h(e[f],t[f],f);Ct.isUndefined(m)&&h!==s||(n[f]=m)}),n}var vee=e=>{const t=Cm({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=vc.from(a),t.url=fee(mee(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Ct.isFormData(n)){if(ol.hasStandardBrowserEnv||ol.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...f]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...f].join("; "))}}if(ol.hasStandardBrowserEnv&&(r&&Ct.isFunction(r)&&(r=r(t)),r||r!==!1&&gqe(t.url))){const u=o&&i&&mqe.read(i);u&&a.set(o,u)}return t};const bqe=typeof XMLHttpRequest!="undefined";var _qe=bqe&&function(e){return new Promise(function(n,r){const o=vee(e);let i=o.data;const a=vc.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,f,h,m,y,O;function b(){y&&y(),O&&O(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function C(){if(!k)return;const $=vc.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:$,config:e,request:k};gee(function(B){n(B),b()},function(B){r(B),b()},A),k=null}"onloadend"in k?k.onloadend=C:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(C)},k.onabort=function(){!k||(r(new Er("Request aborted",Er.ECONNABORTED,e,k)),k=null)},k.onerror=function(){r(new Er("Network Error",Er.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||dee;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),r(new Er(T,A.clarifyTimeoutError?Er.ETIMEDOUT:Er.ECONNABORTED,e,k)),k=null},i===void 0&&a.setContentType(null),"setRequestHeader"in k&&Ct.forEach(a.toJSON(),function(T,A){k.setRequestHeader(A,T)}),Ct.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),s&&s!=="json"&&(k.responseType=o.responseType),u&&([m,O]=s2(u,!0),k.addEventListener("progress",m)),l&&k.upload&&([h,y]=s2(l),k.upload.addEventListener("progress",h),k.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(f=$=>{!k||(r(!$||$.type?new F0(null,e,k):$),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const P=dqe(o.url);if(P&&ol.protocols.indexOf(P)===-1){r(new Er("Unsupported protocol "+P+":",Er.ERR_BAD_REQUEST,e));return}k.send(i||null)})};const Oqe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,s();const f=u instanceof Error?u:this.reason;r.abort(f instanceof Er?f:new F0(f instanceof Error?f.message:f))}};let a=t&&setTimeout(()=>{a=null,i(new Er(`timeout ${t} of ms exceeded`,Er.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Ct.asap(s),l}};var wqe=Oqe;const Sqe=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},xqe=async function*(e,t){for await(const n of kqe(e))yield*Sqe(n,t)},kqe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Iz=(e,t,n,r)=>{const o=xqe(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await o.next();if(u){s(),l.close();return}let h=f.byteLength;if(n){let m=i+=h;n(m)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},VE=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yee=VE&&typeof ReadableStream=="function",Cqe=VE&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),bee=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Eqe=yee&&bee(()=>{let e=!1;const t=new Request(ol.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Dz=64*1024,QN=yee&&bee(()=>Ct.isReadableStream(new Response("").body)),l2={stream:QN&&(e=>e.body)};VE&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!l2[t]&&(l2[t]=Ct.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Er(`Response type '${t}' is not supported`,Er.ERR_NOT_SUPPORT,r)})})})(new Response);const Tqe=async e=>{if(e==null)return 0;if(Ct.isBlob(e))return e.size;if(Ct.isSpecCompliantForm(e))return(await new Request(ol.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ct.isArrayBufferView(e)||Ct.isArrayBuffer(e))return e.byteLength;if(Ct.isURLSearchParams(e)&&(e=e+""),Ct.isString(e))return(await Cqe(e)).byteLength},Pqe=async(e,t)=>{const n=Ct.toFiniteNumber(e.getContentLength());return n==null?Tqe(t):n};var $qe=VE&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:f,withCredentials:h="same-origin",fetchOptions:m}=vee(e);u=u?(u+"").toLowerCase():"text";let y=wqe([o,i&&i.toAbortSignal()],a),O;const b=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let k;try{if(l&&Eqe&&n!=="get"&&n!=="head"&&(k=await Pqe(f,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),R;if(Ct.isFormData(r)&&(R=A.headers.get("content-type"))&&f.setContentType(R),A.body){const[B,I]=Mz(k,s2(Rz(l)));r=Iz(A.body,Dz,B,I)}}Ct.isString(h)||(h=h?"include":"omit");const C="credentials"in Request.prototype;O=new Request(t,{...m,signal:y,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:C?h:void 0});let P=await fetch(O);const $=QN&&(u==="stream"||u==="response");if(QN&&(s||$&&b)){const A={};["status","statusText","headers"].forEach(N=>{A[N]=P[N]});const R=Ct.toFiniteNumber(P.headers.get("content-length")),[B,I]=s&&Mz(R,s2(Rz(s),!0))||[];P=new Response(Iz(P.body,Dz,B,()=>{I&&I(),b&&b()}),A)}u=u||"text";let T=await l2[Ct.findKey(l2,u)||"text"](P,e);return!$&&b&&b(),await new Promise((A,R)=>{gee(A,R,{data:T,headers:vc.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:O})})}catch(C){throw b&&b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Er("Network Error",Er.ERR_NETWORK,e,O),{cause:C.cause||C}):Er.from(C,C&&C.code,e,O)}});const WN={http:QXe,xhr:_qe,fetch:$qe};Ct.forEach(WN,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const jz=e=>`- ${e}`,Aqe=e=>Ct.isFunction(e)||e===null||e===!1;var _ee={getAdapter:e=>{e=Ct.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!Aqe(n)&&(r=WN[(a=String(n)).toLowerCase()],r===void 0))throw new Er(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
- `+i.map(jz).join(`
- `):" "+jz(i[0]):"as no adapter specified";throw new Er("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:WN};function lM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new F0(null,e)}function Lz(e){return lM(e),e.headers=vc.from(e.headers),e.data=sM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_ee.getAdapter(e.adapter||qj.adapter)(e).then(function(r){return lM(e),r.data=sM.call(e,e.transformResponse,r),r.headers=vc.from(r.headers),r},function(r){return pee(r)||(lM(e),r&&r.response&&(r.response.data=sM.call(e,e.transformResponse,r.response),r.response.headers=vc.from(r.response.headers))),Promise.reject(r)})}const Oee="1.7.7",Kj={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kj[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bz={};Kj.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Oee+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Er(o(a," has been removed"+(n?" in "+n:"")),Er.ERR_DEPRECATED);return n&&!Bz[a]&&(Bz[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Mqe(e,t,n){if(typeof e!="object")throw new Er("options must be an object",Er.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Er("option "+i+" must be "+l,Er.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Er("Unknown option "+i,Er.ERR_BAD_OPTION)}}var YN={assertOptions:Mqe,validators:Kj};const Ph=YN.validators;class u2{constructor(t){this.defaults=t,this.interceptors={request:new $z,response:new $z}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cm(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&YN.assertOptions(r,{silentJSONParsing:Ph.transitional(Ph.boolean),forcedJSONParsing:Ph.transitional(Ph.boolean),clarifyTimeoutError:Ph.transitional(Ph.boolean)},!1),o!=null&&(Ct.isFunction(o)?n.paramsSerializer={serialize:o}:YN.assertOptions(o,{encode:Ph.function,serialize:Ph.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Ct.merge(i.common,i[n.method]);i&&Ct.forEach(["delete","get","head","post","put","patch","common"],O=>{delete i[O]}),n.headers=vc.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,s.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let f,h=0,m;if(!l){const O=[Lz.bind(this),void 0];for(O.unshift.apply(O,s),O.push.apply(O,u),m=O.length,f=Promise.resolve(n);h<m;)f=f.then(O[h++],O[h++]);return f}m=s.length;let y=n;for(h=0;h<m;){const O=s[h++],b=s[h++];try{y=O(y)}catch(k){b.call(this,k);break}}try{f=Lz.call(this,y)}catch(O){return Promise.reject(O)}for(h=0,m=u.length;h<m;)f=f.then(u[h++],u[h++]);return f}getUri(t){t=Cm(this.defaults,t);const n=mee(t.baseURL,t.url);return fee(n,t.params,t.paramsSerializer)}}Ct.forEach(["delete","get","head","options"],function(t){u2.prototype[t]=function(n,r){return this.request(Cm(r||{},{method:t,url:n,data:(r||{}).data}))}});Ct.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Cm(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}u2.prototype[t]=n(),u2.prototype[t+"Form"]=n(!0)});var Yk=u2;class Gj{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new F0(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Gj(function(o){t=o}),cancel:t}}}var Rqe=Gj;function Nqe(e){return function(n){return e.apply(null,n)}}function Iqe(e){return Ct.isObject(e)&&e.isAxiosError===!0}const UN={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(UN).forEach(([e,t])=>{UN[t]=e});var Dqe=UN;function wee(e){const t=new Yk(e),n=JJ(Yk.prototype.request,t);return Ct.extend(n,Yk.prototype,t,{allOwnKeys:!0}),Ct.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return wee(Cm(e,o))},n}const Yi=wee(qj);Yi.Axios=Yk;Yi.CanceledError=F0;Yi.CancelToken=Rqe;Yi.isCancel=pee;Yi.VERSION=Oee;Yi.toFormData=LE;Yi.AxiosError=Er;Yi.Cancel=Yi.CanceledError;Yi.all=function(t){return Promise.all(t)};Yi.spread=Nqe;Yi.isAxiosError=Iqe;Yi.mergeConfig=Cm;Yi.AxiosHeaders=vc;Yi.formToJSON=e=>hee(Ct.isHTMLForm(e)?new FormData(e):e);Yi.getAdapter=_ee.getAdapter;Yi.HttpStatusCode=Dqe;Yi.default=Yi;var jqe=Yi;const Lqe=localStorage.getItem("token"),Bqe=jqe.create({baseURL:window.allEnv.rule.iotServer,timeout:6e4,headers:{"Content-Type":"application/json",Authorization:`Bearer ${Lqe}`}});function Vz(e,t){return Bqe.get(e,{params:t})}const Vqe={class:"node-property-item"},Fqe={key:0},zqe={key:1},Qqe={class:"pair-content"},Wqe={key:2},Yqe={key:3},Uqe={class:"pair-content"},Hqe={key:4},Zqe={class:"pair-content"},Xqe={key:5},qqe={class:"node-property-sub-item"},Kqe={key:6},Gqe={class:"el-form-item__label"},Jqe={key:7},eKe={key:8},tKe={key:9},nKe={__name:"NodePropertyItem",props:["nodePropertyForm","configuration","fields","parentField","currentNodeModel"],setup(e,{expose:t}){const{nodePropertyForm:n,configuration:r,fields:o,parentField:i,currentNodeModel:a}=e;ee("");const s=[kJ()],l=ee(),u=ee(),f=ee([]);ee({}),ee({}),(o||[]).forEach(N=>{if(N.component&&N.component.type==="select"&&N.component.defineOptions&&(N.component.options=N.component.defineOptions||[]),N.component&&N.component.type==="select"&&N.component.optionApi&&N.component.autoGetData){N.component.loading=!0,Vz(N.component.optionApi,N.component.apiParams).then(V=>{N.component.options=(N.component.defineOptions||[]).concat(V.data.data[N.component.resDataKey]||[])}).finally(()=>N.component.loading=!1);const j=r[N.name],L=N.component.onChangeGetDataKey;L&&m(j,L,!0)}});function m(N,j,L=!1){if(!N)return;const V=o.find(X=>X.name===j);!V||(L||(r[j]=V.component.defineOptions?V.component.defineOptions[0].value:null),V.component.options=V.component.defineOptions||[],V.component.loading=!0,Vz(V.component.optionApi,{[V.component.getDataByKey]:N}).then(X=>{V.component.options=(V.component.defineOptions||[]).concat(X.data.data[V.component.resDataKey]||[])}).finally(()=>V.component.loading=!1))}const y=function(N){r[N]=BN.js(r[N],{indent_size:2})},O=()=>{Fi.error("\u529F\u80FD\u6682\u672A\u5B9E\u73B0")};(function(){let N={};if(o&&o.forEach(j=>{N[j.name]=j}),r){let j={},L={};for(let V in r){let X=dr(r[V]),oe=N[V];if(!(!oe||oe.component)){if(X&&X instanceof Array)j[V]=[],X.forEach(K=>{j[V].push({key:K})});else if(X&&typeof X=="object"&&oe.type!=="struct"){L[V]=[];for(let K in X)L[V].push({key:K,value:X[K]})}}}r.arrayItemValues=j,r.mapItemValues=L}})();const k=N=>{r.mapItemValues[N]?r.mapItemValues[N].push({key:"",value:""}):r.mapItemValues[N]=[{key:"",value:""}]},C=(N,j)=>{r.mapItemValues[N]&&r.mapItemValues[N].splice(j,1)},P=N=>{r.arrayItemValues[N]?r.arrayItemValues[N].push({key:"",value:""}):r.arrayItemValues[N]=[{key:"",value:""}]},$=(N,j)=>{r.arrayItemValues[N]&&r.arrayItemValues[N].splice(j,1)},T=N=>{r[N]||(r[N]=[]),r[N].push({case:"",then:""})},A=(N,j)=>{r[N]&&r[N].length>j&&r[N].splice(j,1)},R=N=>N.indexOf("int")>-1,B=N=>N.indexOf("float")>-1;return t({submit:N=>{if(!l.value){N&&N(!1);return}return l.value.validate(j=>(N&&N(j),j))}}),(N,j)=>{const L=W1,V=U1,X=Mf,oe=cl,K=ul,Z=ri,re=io,J=pp,z=bc,q=l3,ue=s3,he=Af;return U(),Qe(he,{model:e.configuration,ref_key:"propertyItemFormRef",ref:l,"label-position":"top","label-width":"auto"},{default:se(()=>[(U(!0),ce(Pt,null,_n(e.fields,(le,ze)=>(U(),ce("div",Vqe,[le.type==="Boolean"||le.type==="bool"?(U(),ce("div",Fqe,[ne(X,{prop:le.name},{default:se(()=>[ne(L,{modelValue:e.configuration[le.name],"onUpdate:modelValue":Ee=>e.configuration[le.name]=Ee,class:"ml-2",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},{default:se(()=>[xt(ct(le.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),ne(V,{class:"mx-1"},{default:se(()=>[xt(ct(le.label),1)]),_:2},1024),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)]),_:2},1032,["prop"])])):le.component&&le.component.type==="switchNode"?(U(),ce("div",zqe,[ne(X,{label:le.label||le.name,rules:le.rules,prop:le.name},{default:se(()=>[ge("div",Qqe,[ne(K,{class:"pair-item-header"},{default:se(()=>[ne(oe,{span:12},{default:se(()=>[xt(" \u6761\u4EF6 ")]),_:1}),ne(oe,{span:6,offset:1},{default:se(()=>[xt(" \u8DEF\u7531 ")]),_:1})]),_:1}),(U(!0),ce(Pt,null,_n(e.configuration[le.name],(Ee,Be)=>(U(),Qe(K,{key:Be,class:"pair-item"},{default:se(()=>[ne(oe,{span:12},{default:se(()=>[ne(Z,{modelValue:Ee.case,"onUpdate:modelValue":Ae=>Ee.case=Ae,rules:[{required:!0,message:"\u6761\u4EF6\u662F\u5FC5\u987B\u7684"}],prop:le.name+"["+Be+"].case",placeholder:"\u8F93\u5165\u5224\u65AD\u6761\u4EF6\uFF0C\u5982\uFF1Amsg.temperature > 50"},null,8,["modelValue","onUpdate:modelValue","prop"])]),_:2},1024),ne(oe,{span:6,offset:1},{default:se(()=>[ne(Z,{modelValue:Ee.then,"onUpdate:modelValue":Ae=>Ee.then=Ae,rules:[{required:!0,message:"\u8DEF\u7531\u662F\u5FC5\u987B\u7684"}],prop:le.name+"["+Be+"].then",placeholder:"\u8F93\u5165\u8DEF\u7531\uFF1A\u5982\uFF1ACase1"},null,8,["modelValue","onUpdate:modelValue","prop"])]),_:2},1024),ne(oe,{span:2,offset:1},{default:se(()=>[ne(re,{icon:v(Ts),onClick:Ae=>A(le.name,Be),circle:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1024))),128)),ne(K,null,{default:se(()=>[ne(oe,{span:24},{default:se(()=>[ne(re,{type:"primary",onClick:Ee=>T(le.name),icon:"el-icon-plus"},{default:se(()=>[xt("\u6DFB\u52A0\u5206\u652F")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):le.component&&le.component.type==="select"?(U(),ce("div",Wqe,[!le.component.getDataByKey||e.configuration[le.component.getDataByKey]?(U(),Qe(X,{key:0,label:le.label||le.name,rules:le.rules,prop:le.name},{default:se(()=>[ne(z,{modelValue:e.configuration[le.name],"onUpdate:modelValue":Ee=>e.configuration[le.name]=Ee,multiple:le.component&&le.component.multiple,filterable:le.component&&le.component.filterable,"allow-create":le.component&&le.component.allowCreate,placeholder:le.component&&le.component.placeholder,onChange:Ee=>m(Ee,le.component.onChangeGetDataKey)},{default:se(()=>[(U(!0),ce(Pt,null,_n(le.component.options,Ee=>(U(),Qe(J,{key:Ee.value!==void 0&&Ee.value!==null?Ee.value:Ee,label:Ee[le.component.resDataLabelKey]||Ee.label||Ee,value:Ee[le.component.resDataValueKey]||(Ee.value!==void 0&&Ee.value!==null?Ee.value:Ee)},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple","filterable","allow-create","placeholder","onChange"]),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])):Fe("",!0)])):le.type==="map"?(U(),ce("div",Yqe,[ne(X,{label:le.label||le.name,rules:le.rules,prop:"mapItemValues["+le.name+"]"},{default:se(()=>[ge("div",Uqe,[ne(K,{class:"pair-item-header"},{default:se(()=>[ne(oe,{span:8},{default:se(()=>[xt(" \u952E ")]),_:1}),ne(oe,{span:8,offset:2},{default:se(()=>[xt(" \u503C ")]),_:1})]),_:1}),(U(!0),ce(Pt,null,_n(e.configuration.mapItemValues[le.name],(Ee,Be)=>(U(),Qe(K,{key:Be,class:"pair-item"},{default:se(()=>[ne(oe,{span:8},{default:se(()=>[ne(Z,{modelValue:Ee.key,"onUpdate:modelValue":Ae=>Ee.key=Ae,rules:[{required:!0,message:"key\u662F\u5FC5\u987B\u7684"}],prop:"mapItemValues["+le.name+"]["+Ee.key+"]",placeholder:"\u8BF7\u8F93\u5165\u952E"},null,8,["modelValue","onUpdate:modelValue","prop"])]),_:2},1024),ne(oe,{span:8,offset:2},{default:se(()=>[ne(Z,{modelValue:Ee.value,"onUpdate:modelValue":Ae=>Ee.value=Ae,rules:[{required:!0,message:"value\u662F\u5FC5\u987B\u7684"}],prop:"configuration[item.name][pair.key]",placeholder:"\u8BF7\u8F93\u5165\u503C"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),ne(oe,{span:4,offset:2},{default:se(()=>[ne(re,{icon:v(Ts),onClick:Ae=>C(le.name,Be),circle:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1024))),128)),ne(K,null,{default:se(()=>[ne(re,{type:"primary",icon:v(oC),onClick:Ee=>k(le.name)},{default:se(()=>[xt("\u6DFB\u52A0")]),_:2},1032,["icon","onClick"])]),_:2},1024),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)])]),_:2},1032,["label","rules","prop"])])):le.type==="array"?(U(),ce("div",Hqe,[ne(X,{label:le.label||le.name,rules:le.rules,prop:"arrayItemValues["+le.name+"].0.key"},{default:se(()=>[ge("div",Zqe,[(U(!0),ce(Pt,null,_n(e.configuration.arrayItemValues[le.name],(Ee,Be)=>(U(),Qe(K,{key:Be,class:"pair-item"},{default:se(()=>[ne(oe,{span:12},{default:se(()=>[ne(Z,{modelValue:Ee.key,"onUpdate:modelValue":Ae=>Ee.key=Ae,placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),ne(oe,{span:4,offset:2},{default:se(()=>[ne(re,{icon:v(Ts),onClick:Ae=>$(le.name,Be),circle:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1024))),128)),ne(K,null,{default:se(()=>[ne(re,{type:"primary",icon:v(oC),onClick:Ee=>P(le.name)},{default:se(()=>[xt("\u6DFB\u52A0")]),_:2},1032,["icon","onClick"])]),_:2},1024)]),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):le.type==="struct"?(U(),ce("div",Xqe,[ne(ue,{modelValue:f.value,"onUpdate:modelValue":j[0]||(j[0]=Ee=>f.value=Ee)},{default:se(()=>[ne(q,{name:le.name},{title:se(()=>[xt(ct(le.label||le.name),1)]),default:se(()=>[ge("div",qqe,[ne(See,{ref_for:!0,ref_key:"subPropertyItemFormRef",ref:u,configuration:e.configuration[le.name],fields:le.fields},null,8,["configuration","fields"])])]),_:2},1032,["name"])]),_:2},1032,["modelValue"])])):le.name==="jsScript"||le.name==="JsScript"||le.name==="script"||le.name==="template"?(U(),ce("div",Kqe,[ne(X,{rules:le.rules,prop:"item.name"},{label:se(()=>[ne(K,null,{default:se(()=>[ne(oe,{span:12},{default:se(()=>[ge("label",Gqe,ct(le.label||le.name),1)]),_:2},1024),ne(oe,{span:6,offset:6,class:"el-form-item__label"},{default:se(()=>[ne(re,{type:"info",size:"small",round:"",onClick:Ee=>y(le.name)},{default:se(()=>[xt("\u6574\u7406")]),_:2},1032,["onClick"]),ne(re,{icon:v(AY),onClick:O,circle:""},null,8,["icon"])]),_:2},1024)]),_:2},1024)]),default:se(()=>[ne(K,{style:{width:"100%"}},{default:se(()=>[ne(oe,{span:24},{default:se(()=>[ne(v(f0),{modelValue:e.configuration[le.name],"onUpdate:modelValue":Ee=>e.configuration[le.name]=Ee,placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9...",style:{height:"300px",width:"100%"},autofocus:!0,tabSize:2,extensions:s},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)]),_:2},1032,["rules"])])):R(le.type)?(U(),ce("div",Jqe,[ne(X,{label:le.label||le.name,rules:le.rules,prop:le.name},{default:se(()=>[ne(Z,{modelValue:e.configuration[le.name],"onUpdate:modelValue":Ee=>e.configuration[le.name]=Ee,modelModifiers:{number:!0}},null,8,["modelValue","onUpdate:modelValue"]),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):B(le.type)?(U(),ce("div",eKe,[ne(X,{label:le.label||le.name,rules:le.rules,prop:le.name},{default:se(()=>[ne(Z,{modelValue:e.configuration[le.name],"onUpdate:modelValue":Ee=>e.configuration[le.name]=Ee},null,8,["modelValue","onUpdate:modelValue"]),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):(U(),ce("div",tKe,[ne(X,{label:le.label||le.name,rules:le.rules,prop:le.name},{default:se(()=>[le.component&&le.component.type==="select"?(U(),Qe(z,{key:0,modelValue:e.configuration[le.name],"onUpdate:modelValue":Ee=>e.configuration[le.name]=Ee,multiple:le.component&&le.component.multiple,filterable:le.component&&le.component.filterable,"allow-create":le.component&&le.component.allowCreate,placeholder:le.component&&le.component.placeholder},{default:se(()=>[(U(!0),ce(Pt,null,_n(le.component.options,Ee=>(U(),Qe(J,{key:Ee.value!==void 0&&Ee.value!==null?Ee.value:Ee,label:Ee.label||Ee,value:Ee.value!==void 0&&Ee.value!==null?Ee.value:Ee},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple","filterable","allow-create","placeholder"])):(U(),Qe(Z,{key:1,modelValue:e.configuration[le.name],"onUpdate:modelValue":Ee=>e.configuration[le.name]=Ee},null,8,["modelValue","onUpdate:modelValue"])),ne(V,{size:"small",type:"info"},{default:se(()=>[xt(ct(le.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])]))]))),256))]),_:1},8,["model"])}}};var See=R0(nKe,[["__scopeId","data-v-563af98e"]]);const rKe={class:""},oKe={__name:"NodePropertyForm",props:["showDrawer","currentNodeModel","currentNodeView"],setup(e,{expose:t}){const{showDrawer:n,currentNodeModel:r,currentNodeView:o}=e;ee(""),kJ();const i=ee(),a=ee();ee({}),ee({});const s=or({nodeId:r.nodeId,id:r.id,type:r.type,name:r.name,configuration:r.configuration||{},debugMode:r.debugMode,additionalInfo:r.additionalInfo||{}});(function(){r.configuration||(r.configuration={}),o.fields&&(o.fields.forEach(m=>{!r.configuration.hasOwnProperty(m.name)&&(m.defaultValue||m.defaultValue===0)&&(r.configuration[m.name]=m.defaultValue)}),s.configuration=r.configuration)})();const u=()=>(f(s.configuration),s),f=m=>{for(let y in m.mapItemValues){let O=m.mapItemValues[y];O&&(m[y]={},O.forEach(b=>{b.key!==""&&(m[y][b.key]=b.value)}))}for(let y in m.arrayItemValues){let O=m.arrayItemValues[y];O&&(m[y]=[],O.forEach(b=>{b.key!==""&&m[y].push(b.key)}))}delete m.mapItemValues,delete m.arrayItemValues;for(let y in m)typeof m[y]=="object"&&f(m[y]);return m};return t({getFormModel:u,submit:m=>(i.value||m&&m(!1),i.value.validate(y=>y?a.value.submit(m):(m&&m(y),y)))}),(m,y)=>{const O=ri,b=cl,k=W1,C=U1,P=ul,$=Mf,T=Af;return U(),ce("div",rKe,[ne(T,{model:s,ref_key:"nodePropertyFormRef",ref:i,"label-position":"top","label-width":"auto"},{default:se(()=>[ne($,{label:"\u8282\u70B9ID",rules:[{required:!0,message:"ID\u662F\u5FC5\u987B\u7684"}],prop:"id"},{default:se(()=>[ne(P,{style:{width:"100%"}},{default:se(()=>[ne(b,{span:16},{default:se(()=>[ne(O,{modelValue:s.id,"onUpdate:modelValue":y[0]||(y[0]=A=>s.id=A),placeholder:"\u8BF7\u8F93\u5165\u8282\u70B9ID"},null,8,["modelValue"])]),_:1}),ne(b,{span:7,offset:1},{default:se(()=>[ne(k,{class:"ml-2",modelValue:s.debugMode,"onUpdate:modelValue":y[1]||(y[1]=A=>s.debugMode=A),style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue"]),ne(C,{class:"mx-1",prop:"debugMode",onClick:y[2]||(y[2]=A=>s.debugMode=!s.debugMode)},{default:se(()=>[xt(" \u8C03\u8BD5\u6A21\u5F0F ")]),_:1})]),_:1})]),_:1})]),_:1}),ne($,{label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u662F\u5FC5\u987B\u7684"}],prop:"name"},{default:se(()=>[ne(P,{style:{width:"100%"}},{default:se(()=>[ne(b,{span:24},{default:se(()=>[ne(O,{modelValue:s.name,"onUpdate:modelValue":y[3]||(y[3]=A=>s.name=A),placeholder:"\u8BF7\u8F93\u5165\u8282\u70B9\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),ne(See,{ref_key:"nodePropertyItemFormRef",ref:a,configuration:or(s.configuration),fields:e.currentNodeView.fields},null,8,["configuration","fields"]),ne($,{label:"\u63CF\u8FF0",prop:"desc"},{default:se(()=>[ne(O,{modelValue:s.additionalInfo.description,"onUpdate:modelValue":y[4]||(y[4]=A=>s.additionalInfo.description=A),type:"textarea",rows:"2",placeholder:"\u8BF7\u8F93\u5165\u8282\u70B9\u63CF\u8FF0"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}};var HN=R0(oKe,[["__scopeId","data-v-991ff8fc"]]);const iKe={style:{flex:"auto"}},aKe={__name:"DebugDataPanel",props:["url","chainId","nodeId"],setup(e){const{url:t,chainId:n,nodeId:r}=e,o=[TE(),Fr.readOnly.of(!0)],i=ee([]),a=ee(!1),s=ee(""),l=ee(""),u=ee({current:1,pageSize:12,total:0}),f=P=>{u.value.pageSize=P,u.value.current=1,m()},h=P=>{u.value.current=P,m()},m=()=>{fetch(t+"?chainId="+n+"&nodeId="+r+"&pageSize="+u.value.pageSize+"¤t="+u.value.current).then(P=>P.json()).then(P=>{i.value=P.items||[],u.value={pageSize:P.pageSize||12,current:P.current,total:P.total}}).catch(P=>{Fi.error(P.message)})};vn(()=>{m()});const y=(P,$)=>cn(P.ts).format("YYYY-MM-DD HH:mm:ss"),O=P=>{s.value="\u6570\u636E",l.value=BN.js(P.data,{indent_size:2}),a.value=!0},b=P=>{s.value="\u5143\u6570\u636E",l.value=BN.js(JSON.stringify(P.metadata),{indent_size:2}),a.value=!0},k=P=>{s.value="\u9519\u8BEF",l.value=P||"",a.value=!0},C=()=>{a.value=!1};return(P,$)=>{const T=io,A=ia,R=cl,B=ul,I=M3,N=A3,j=S3,L=Ld;return U(),ce(Pt,null,[ne(B,null,{default:se(()=>[ne(R,{span:4,offset:20},{default:se(()=>[ne(A,{class:"box-item",effect:"dark",content:"\u5237\u65B0",placement:"top-start"},{default:se(()=>[ne(T,{icon:v(MY),onClick:m,circle:""},null,8,["icon"])]),_:1})]),_:1})]),_:1}),ne(N,{data:i.value,stripe:"","empty-text":"\u6CA1\u6570\u636E",style:{width:"100%","min-height":"20px"}},{default:se(()=>[ne(I,{prop:"ts",label:"\u4E8B\u4EF6\u65F6\u95F4",width:"90",formatter:y}),ne(I,{prop:"flowType",label:"\u7C7B\u578B",width:"60"}),ne(I,{prop:"msg.id",label:"\u6D88\u606FID",width:"130"},{default:se(V=>[ne(A,{class:"box-item",effect:"dark",content:V.row.msg.id,placement:"top-start"},{default:se(()=>[xt(ct(V.row.msg.id.length>14?V.row.msg.id.substring(0,14)+"...":V.row.msg.id),1)]),_:2},1032,["content"])]),_:1}),ne(I,{prop:"msg.type",label:"\u6D88\u606F\u7C7B\u578B",width:"130"},{default:se(V=>[ne(A,{class:"box-item",effect:"dark",content:V.row.msg.type,placement:"top-start"},{default:se(()=>[xt(ct(V.row.msg.type.length>10?V.row.msg.type.substring(0,10)+"...":V.row.msg.type),1)]),_:2},1032,["content"])]),_:1}),ne(I,{prop:"relationType",label:"\u5173\u7CFB\u7C7B\u578B",width:"90"}),ne(I,{prop:"msg.data",label:"\u6570\u636E",width:"60"},{default:se(V=>[ne(A,{class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:se(()=>[ne(T,{icon:v(iO),onClick:X=>O(V.row.msg),link:""},null,8,["icon","onClick"])]),_:2},1024)]),_:1}),ne(I,{prop:"msg.metadata",label:"\u5143\u6570\u636E",width:"80"},{default:se(V=>[ne(A,{class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:se(()=>[ne(T,{icon:v(iO),onClick:X=>b(V.row.msg),link:""},null,8,["icon","onClick"])]),_:2},1024)]),_:1}),ne(I,{prop:"err",label:"\u9519\u8BEF",width:"80"},{default:se(V=>[V.row.err?(U(),Qe(A,{key:0,class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:se(()=>[V.row.err?(U(),Qe(T,{key:0,icon:v(iO),onClick:X=>k(V.row.err),link:""},null,8,["icon","onClick"])):Fe("",!0)]),_:2},1024)):Fe("",!0)]),_:1})]),_:1},8,["data"]),ne(j,{currentPage:u.value.current,"onUpdate:currentPage":$[0]||($[0]=V=>u.value.current=V),style:{"margin-top":"10px"},class:"float-right","page-size":u.value.pageSize,total:u.value.total,"page-sizes":[12,24,36],background:!0,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:f,onCurrentChange:h},null,8,["currentPage","page-size","total"]),ne(L,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,draggable:"",top:"10px","before-close":C,modelValue:a.value},{header:se(()=>[ne(B,null,{default:se(()=>[ne(R,{span:12},{default:se(()=>[xt(ct(s.value),1)]),_:1})]),_:1})]),footer:se(()=>[ge("div",iKe,[ne(T,{onClick:C},{default:se(()=>[xt("\u5173\u95ED")]),_:1})])]),default:se(()=>[ne(v(f0),{modelValue:l.value,"onUpdate:modelValue":$[1]||($[1]=V=>l.value=V),placeholder:"\u65E0\u6570\u636E",style:{height:"400px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},sKe={class:""},lKe={__name:"RouterItemForm",props:["showDrawer","currentRouter","currentNodeView","currentNodeModel"],emits:["submit","cancel"],setup(e,{expose:t,emit:n}){const{showDrawer:r,currentRouter:o,currentNodeView:i,currentNodeModel:a}=e;ee(["headersToMetadata"]),ee(["responseToBody"]);const s=ee(["POST","GET","DELETE","PUT","PATCH"]),l={from:{path:{label:"Path",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8DEF\u7531Path\uFF1A\u5982:/api/ms/ws "},processors:{label:"\u524D\u7F6E\u6570\u636E\u5904\u7406\u5668",desc:"\u9009\u62E9\u5185\u7F6E\u7684\u524D\u7F6E\u6570\u636E\u8F6C\u6362\u5668\u6216\u8005\u5904\u7406\u5668"}},to:{processors:{label:"\u540E\u7F6E\u6570\u636E\u5904\u7406\u5668",desc:"\u9009\u62E9\u5185\u7F6E\u7684\u540E\u7F6E\u6570\u636E\u8F6C\u6362\u5668\u6216\u8005\u5904\u7406\u5668"}}},u=or(o),f=ee(l);if(i.router){let O={...l};O=Object.assign(O,i.router),O.from.processors||(O.from.processors=l.from.processors),O.to.processors||(O.to.processors=l.to.processors),f.value=O,i.type==="endpoint/http"&&(!u.params||u.params.length===0)&&(u.params=["POST"])}const h=ee();return or({showPopover:!1,cronValue:""}),t({submit:()=>h.value.validate(O=>(O&&a.routers&&a.routers.forEach(b=>{if(Sr.toFromPath(b)===Sr.toFromPath(u)&&b.id!==u.id)return Fi.error(Sr.toFromPath(u)+" \u5DF2\u7ECF\u5B58\u5728"),O=!1,!1}),O&&n("submit",dr(u)),O)),getRouterView:()=>f}),(O,b)=>{const k=pp,C=bc,P=ri,$=U1,T=cl,A=ul,R=Mf,B=W1,I=Af;return U(),ce("div",sKe,[ne(I,{model:u,ref_key:"formRef",ref:h,"label-position":"top","label-width":"auto"},{default:se(()=>[ne(R,{label:f.value.from.path.label,rules:f.value.from.path.rules,prop:"from.path"},{default:se(()=>[ne(A,{style:{width:"100%"}},{default:se(()=>[ne(T,{span:24},{default:se(()=>[e.currentNodeView.type==="endpoint/sagoo/devicein"?(U(),Qe(C,{key:0,modelValue:u.from.path,"onUpdate:modelValue":b[0]||(b[0]=N=>u.from.path=N),filterable:""},{default:se(()=>[(U(!0),ce(Pt,null,_n(f.value.from.path.options,N=>(U(),Qe(k,{key:N,label:N.label,value:N.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):(U(),ce(Pt,{key:1},[ne(P,{modelValue:u.from.path,"onUpdate:modelValue":b[2]||(b[2]=N=>u.from.path=N),placeholder:"\u8BF7\u8F93\u5165"+f.value.from.path.label},Fl({_:2},[e.currentNodeView.type==="endpoint/http"?{name:"prepend",fn:se(()=>[ne(C,{modelValue:u.params[0],"onUpdate:modelValue":b[1]||(b[1]=N=>u.params[0]=N),filterable:"",style:{width:"150px"}},{default:se(()=>[(U(!0),ce(Pt,null,_n(s.value,N=>(U(),Qe(k,{key:N,label:N,value:N},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue","placeholder"]),ne($,{size:"small",type:"info"},{default:se(()=>[xt(ct(f.value.from.path.desc),1)]),_:1})],64))]),_:1})]),_:1})]),_:1},8,["label","rules"]),ne(R,{label:f.value.from.processors.label,prop:"from.processors"},{default:se(()=>[ne(C,{modelValue:u.from.processors,"onUpdate:modelValue":b[3]||(b[3]=N=>u.from.processors=N),multiple:"",filterable:"","allow-create":!0,placeholder:"\u8BF7\u8F93\u5165"+f.value.from.processors.label},{default:se(()=>[(U(!0),ce(Pt,null,_n(f.value.options.inProcessors,N=>(U(),Qe(k,{key:N,label:N,value:N},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),ne($,{size:"small",type:"info"},{default:se(()=>[xt(ct(f.value.from.processors.desc),1)]),_:1})]),_:1},8,["label"]),ne(R,{label:f.value.to.processors.label,prop:"to.processors"},{default:se(()=>[ne(C,{modelValue:u.to.processors,"onUpdate:modelValue":b[4]||(b[4]=N=>u.to.processors=N),multiple:"",filterable:"","allow-create":!0,placeholder:"\u8BF7\u8F93\u5165"+f.value.to.processors.label},{default:se(()=>[(U(!0),ce(Pt,null,_n(f.value.options.outProcessors,N=>(U(),Qe(k,{key:N,label:N,value:N},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),ne($,{size:"small",type:"info"},{default:se(()=>[xt(ct(f.value.to.processors.desc),1)]),_:1})]),_:1},8,["label"]),e.currentNodeView.type==="endpoint/http"?(U(),Qe(R,{key:0,label:"\u7B49\u5F85\u6267\u884C\u7ED3\u679C",prop:"to.wait"},{default:se(()=>[ne(B,{modelValue:u.to.wait,"onUpdate:modelValue":b[5]||(b[5]=N=>u.to.wait=N),style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue"]),ne($,{size:"small",type:"info"},{default:se(()=>[xt("\u5982\u679C\u5F00\u542F\u5219\u4F1A\u628A\u89C4\u5219\u94FE\u6267\u884C\u7ED3\u679C\u54CD\u5E94\u5230\u5BA2\u6237\u7AEF")]),_:1})]),_:1})):Fe("",!0)]),_:1},8,["model"])])}}},xee={__name:"RouterPropertyTable",props:["showDrawer","currentNodeModel","currentNodeView"],emits:["submit","cancel"],setup(e,{expose:t,emit:n}){const{showDrawer:r,currentNodeModel:o,currentNodeView:i}=e,a=ee({}),s=ee(!1),l=ee(!1),u=ee(),f={from:{path:{label:"Path",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8DEF\u7531Path\uFF1A\u5982:/api/ms/ws "},processors:{label:"\u524D\u7F6E\u6570\u636E\u5904\u7406\u5668",desc:"\u9009\u62E9\u5185\u7F6E\u7684\u524D\u7F6E\u6570\u636E\u8F6C\u6362\u5668\u6216\u8005\u5904\u7406\u5668"}},to:{processors:{label:"\u540E\u7F6E\u6570\u636E\u5904\u7406\u5668",desc:"\u9009\u62E9\u5185\u7F6E\u7684\u540E\u7F6E\u6570\u636E\u8F6C\u6362\u5668\u6216\u8005\u5904\u7406\u5668"}}},h=ee(f);if(i.router){let I={...f};I=Object.assign(I,i.router),h.value=I}const m=ee({current:1,pageSize:12,total:o.routers&&o.routers.length}),y=I=>{m.value.pageSize=I,m.value.current=1},O=I=>{m.value.current=I},b=I=>{if(l.value){const N=o.routers.findIndex(j=>j.id===I.id||Sr.toFromPath(j)===Sr.toFromPath(I));N!==-1&&o.routers.splice(N,1,I)}else o.routers||(o.routers=[]),o.routers.push(I);s.value=!1},k=()=>o,C=()=>{n("cancel")},P=(I,N)=>Sr.toFromPath(I,N),$=(I,N)=>I.to&&I.to.wait?"\u662F":"\u5426",T=()=>{a.value={id:Sr.genId(),params:[],from:{path:"",processors:[]},to:{path:"",processors:[],wait:!1}},l.value=!1,s.value=!0},A=I=>{a.value={...I},l.value=!0,s.value=!0},R=I=>{o.routers&&(o.routers=o.routers.filter(N=>N.id!==I.id&&Sr.toFromPath(N)!==Sr.toFromPath(I)))},B=()=>{u.value.submit()};return t({getFormModel:k}),(I,N)=>{const j=io,L=M3,V=hp,X=A3,oe=S3,K=Ld;return U(),ce(Pt,null,[ne(j,{type:"primary",onClick:T},{default:se(()=>[xt("\u65B0\u589E")]),_:1}),ne(X,{data:e.currentNodeModel.routers,stripe:"","empty-text":"\u6CA1\u6570\u636E",style:{width:"100%","min-height":"50px"}},{default:se(()=>[ne(L,{prop:"from.path",label:h.value.from.path.label,formatter:function(Z){return P(Z,e.currentNodeModel.type)}},null,8,["label","formatter"]),ne(L,{prop:"from.processors",label:"\u524D\u7F6E\u6570\u636E\u5904\u7406\u5668"},{default:se(Z=>[(U(!0),ce(Pt,null,_n(Z.row.from.processors,re=>(U(),Qe(V,{key:re,style:{"margin-right":"5px"}},{default:se(()=>[xt(ct(re),1)]),_:2},1024))),128))]),_:1}),ne(L,{prop:"to.processors",label:"\u540E\u7F6E\u6570\u636E\u5904\u7406\u5668"},{default:se(Z=>[(U(!0),ce(Pt,null,_n(Z.row.to.processors,re=>(U(),Qe(V,{key:re,style:{"margin-right":"5px"}},{default:se(()=>[xt(ct(re),1)]),_:2},1024))),128))]),_:1}),e.currentNodeView.type==="endpoint/http"?(U(),Qe(L,{key:0,prop:"to.wait",label:"\u7B49\u5F85\u6267\u884C\u7ED3\u679C",formatter:$})):Fe("",!0),ne(L,{label:"\u64CD\u4F5C"},{default:se(({row:Z})=>[ne(j,{type:"primary",size:"small",onClick:re=>A(Z)},{default:se(()=>[xt("\u7F16\u8F91")]),_:2},1032,["onClick"]),ne(j,{type:"danger",size:"small",onClick:re=>R(Z)},{default:se(()=>[xt("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),ne(oe,{currentPage:m.value.current,"onUpdate:currentPage":N[0]||(N[0]=Z=>m.value.current=Z),style:{"margin-top":"10px"},class:"float-right","page-size":m.value.pageSize,total:m.value.total,"page-sizes":[12,24,36],background:!0,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:y,onCurrentChange:O},null,8,["currentPage","page-size","total"]),ne(K,{modelValue:s.value,"onUpdate:modelValue":N[2]||(N[2]=Z=>s.value=Z),"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,title:l.value.value?"\u7F16\u8F91\u7F16\u8F91":"\u65B0\u589E\u8DEF\u7531"},{footer:se(()=>[ne(j,{onClick:N[1]||(N[1]=Z=>s.value=!1)},{default:se(()=>[xt("\u53D6\u6D88")]),_:1}),ne(j,{type:"primary",onClick:B},{default:se(()=>[xt("\u4FDD\u5B58")]),_:1})]),default:se(()=>[ne(lKe,{ref_key:"routerItemFormRef",ref:u,currentRouter:a.value,currentNodeView:e.currentNodeView,currentNodeModel:e.currentNodeModel,onSubmit:b,onCancel:C},null,8,["currentRouter","currentNodeView","currentNodeModel"])]),_:1},8,["modelValue","title"])],64)}}},uKe=["innerHTML"],cKe={style:{"text-align":"left"}},fKe={__name:"NodePropertyDrawer",props:["show","currentNodeModel","currentNodeView","chainId","debugDataUrl"],emits:["submit","cancel"],setup(e,{emit:t}){const n=ee(),r=ee(),o=ee("detail"),i=async()=>{let u;if(r.value&&(u=r.value.getFormModel().routers,!u||u.length===0)){o.value="router",Fi.error("\u8BF7\u8BBE\u7F6E\u8DEF\u7531");return}n.value.submit(f=>{if(!f)o.value="detail";else{const h=n.value.getFormModel();u&&(h.routers=u),t("submit",h)}})},a=()=>{t("cancel")},s=()=>{a()},l=()=>{};return(u,f)=>{const h=hp,m=cl,y=ul,O=fE,b=cE,k=io,C=m3;return U(),Qe(C,{modal:!1,"close-on-click-modal":!1,"close-on-press-escape":!1,direction:"rtl",size:"580px","modal-class":"right-drawer-modal","before-close":s,modelValue:e.show},Fl({header:se(()=>[ne(y,{class:"setter-title"},{default:se(()=>[ne(m,{span:12},{default:se(()=>[xt("\u8282\u70B9\u8BE6\u60C5 "),ne(h,{class:"ml-2",type:"info"},{default:se(()=>[xt(ct(e.currentNodeView.label||e.currentNodeView.type),1)]),_:1})]),_:1})]),_:1})]),default:se(()=>[ne(b,{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=P=>o.value=P),onTabClick:l},{default:se(()=>[ne(O,{label:"\u8BE6\u60C5",name:"detail"},{default:se(()=>[ne(HN,{ref_key:"nodePropertyFormRef",ref:n,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1}),e.currentNodeView.nodeType==="endpoint-node"?(U(),Qe(O,{key:0,label:"\u8DEF\u7531\u8BBE\u7F6E",name:"router"},{default:se(()=>[ne(xee,{ref_key:"routerPropertyFormRef",ref:r,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1})):Fe("",!0),e.currentNodeView.nodeType!=="endpoint-node"?(U(),Qe(O,{key:1,label:"\u8C03\u8BD5\u65E5\u5FD7",name:"debug"},{default:se(()=>[o.value==="debug"?(U(),Qe(aKe,{key:0,url:e.debugDataUrl,chainId:e.chainId,nodeId:e.currentNodeModel.id},null,8,["url","chainId","nodeId"])):Fe("",!0)]),_:1})):Fe("",!0),ne(O,{label:"\u5E2E\u52A9",name:"help"},{default:se(()=>[ge("div",{innerHTML:e.currentNodeView.desc},null,8,uKe)]),_:1})]),_:1},8,["modelValue"])]),_:2},[o.value==="detail"||o.value==="router"?{name:"footer",fn:se(()=>[ge("div",cKe,[ne(k,{type:"primary",size:"large",onClick:i},{default:se(()=>[xt("\u786E\u8BA4")]),_:1}),ne(k,{size:"large",onClick:a},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),key:"0"}:void 0]),1032,["modelValue"])}}};var dKe=R0(fKe,[["__scopeId","data-v-44927e5d"]]);const hKe={style:{flex:"auto"}},pKe={__name:"NodePropertyDialog",props:["show","currentNodeModel","currentNodeView"],emits:["submit","cancel"],setup(e,{emit:t}){const n=ee(),r=ee(),o=ee("detail"),i=async()=>{let l;if(r.value&&(l=r.value.getFormModel().routers,!l||l.length===0)){o.value="router",Fi.error("\u8BF7\u8BBE\u7F6E\u8DEF\u7531");return}n.value.submit(u=>{if(!u)o.value="detail";else{const f=n.value.getFormModel();l&&(f.routers=l),t("submit",f)}})},a=()=>{t("cancel")},s=()=>{a()};return(l,u)=>{const f=hp,h=cl,m=ul,y=fE,O=cE,b=io,k=Ld;return U(),Qe(k,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!0,width:"55%",draggable:"",top:"10px","before-close":s,modelValue:e.show},{header:se(()=>[ne(m,{class:"setter-title"},{default:se(()=>[ne(h,{span:12},{default:se(()=>[xt("\u8282\u70B9\u8BE6\u60C5\u914D\u7F6E "),ne(f,{class:"ml-2",type:"info"},{default:se(()=>[xt(ct(e.currentNodeView.label||e.currentNodeView.type),1)]),_:1})]),_:1})]),_:1})]),footer:se(()=>[ge("div",hKe,[ne(b,{type:"primary",size:"large",onClick:i},{default:se(()=>[xt("\u786E\u8BA4")]),_:1}),ne(b,{size:"large",onClick:a},{default:se(()=>[xt("\u53D6\u6D88")]),_:1})])]),default:se(()=>[e.currentNodeView.nodeType!=="endpoint-node"?(U(),Qe(HN,{key:0,ref_key:"nodePropertyFormRef",ref:n,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])):Fe("",!0),e.currentNodeView.nodeType==="endpoint-node"?(U(),Qe(O,{key:1,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=C=>o.value=C)},{default:se(()=>[ne(y,{label:"\u8BE6\u60C5",name:"detail"},{default:se(()=>[ne(HN,{ref_key:"nodePropertyFormRef",ref:n,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1}),ne(y,{label:"\u8DEF\u7531\u8BBE\u7F6E",name:"router"},{default:se(()=>[ne(xee,{ref_key:"routerPropertyFormRef",ref:r,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1})]),_:1},8,["modelValue"])):Fe("",!0)]),_:1},8,["modelValue"])}}},gKe={builtins:{endpoints:{inProcessors:["headersToMetadata"],outProcessors:["responseToBody","metadataToHeaders"]},functions:{functionName:[]},nodePool:{}},endpoints:[{type:"endpoint/kafka",category:"endpoint/kafka",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:9092",label:"",desc:"",validate:"",fields:null},{name:"groupId",type:"string",defaultValue:"rulego",label:"",desc:"",validate:"",fields:null}],label:"Kafka",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/nats",category:"endpoint/nats",fields:[{name:"server",type:"string",defaultValue:"nats://127.0.0.1:4222",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"Nats",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/rabbitmq",category:"endpoint/rabbitmq",fields:[{name:"server",type:"string",defaultValue:"amqp://guest:guest@127.0.0.1:5672/",label:"",desc:"",validate:"",fields:null},{name:"exchange",type:"string",defaultValue:"rulego",label:"",desc:"",validate:"",fields:null},{name:"exchangeType",type:"string",defaultValue:"topic",label:"",desc:"",validate:"",fields:null},{name:"durable",type:"bool",defaultValue:!0,label:"",desc:"",validate:"",fields:null},{name:"autoDelete",type:"bool",defaultValue:!0,label:"",desc:"",validate:"",fields:null}],label:"RabbitMQ",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/redis",category:"endpoint/redis",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:6379",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"db",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"Redis",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/redis/stream",category:"endpoint/redis_stream",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:6379",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"db",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"groupId",type:"string",defaultValue:"rulego",label:"",desc:"",validate:"",fields:null}],label:"Redis",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/mqtt",category:"github.com/rulego/rulego/endpoint/mqtt",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:1883",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"maxReconnectInterval",type:"Duration",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"qOS",type:"uint8",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"cleanSession",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"clientID",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"cAFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certKeyFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"Mqtt",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/net",category:"github.com/rulego/rulego/endpoint/net",fields:[{name:"protocol",type:"string",defaultValue:"tcp",label:"",desc:"",validate:"",fields:null},{name:"server",type:"string",defaultValue:":6335",label:"",desc:"",validate:"",fields:null},{name:"readTimeout",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null}],label:"Net",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/http",category:"github.com/rulego/rulego/endpoint/rest",fields:[{name:"server",type:"string",defaultValue:":6333",label:"",desc:"",validate:"",fields:null},{name:"certFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certKeyFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"Rest",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/schedule",category:"github.com/rulego/rulego/endpoint/schedule",fields:null,label:"Schedule",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/sagoo/devicein",category:"sagooiot/ruleserver/components/devicein",fields:null,label:"Devicein",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/ws",category:"github.com/rulego/rulego/endpoint/websocket",fields:[{name:"server",type:"string",defaultValue:":6334",label:"",desc:"",validate:"",fields:null},{name:"certFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certKeyFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"Websocket",desc:"",icon:"",relationTypes:["Success","Failure"]}],nodes:[{type:"delay",category:"action",fields:[{name:"maxPendingMsgs",type:"int",defaultValue:1e3,label:"",desc:"",validate:"",fields:null},{name:"periodInSeconds",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null},{name:"periodInSecondsPattern",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"overwrite",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"DelayNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"exec",category:"action",fields:[{name:"cmd",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"args",type:"array",defaultValue:null,label:"",desc:"",validate:"",fields:null},{name:"log",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"replaceData",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"ExecCommandNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"for",category:"action",fields:[{name:"range",type:"string",defaultValue:"1..3",label:"",desc:"",validate:"",fields:null},{name:"do",type:"string",defaultValue:"s3",label:"",desc:"",validate:"",fields:null},{name:"mode",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"ForNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"functions",category:"action",fields:[{name:"functionName",type:"string",defaultValue:"test",label:"",desc:"",validate:"",fields:null}],label:"FunctionsNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"groupAction",category:"action",fields:[{name:"matchRelationType",type:"string",defaultValue:"Success",label:"",desc:"",validate:"",fields:null},{name:"matchNum",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"nodeIds",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"timeout",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"GroupActionNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"iterator",category:"action",fields:[{name:"fieldName",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"jsScript",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"IteratorNode",desc:"",icon:"",relationTypes:["True","False","Success","Failure"]},{type:"join",category:"action",fields:[{name:"timeout",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"JoinNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"log",category:"action",fields:[{name:"jsScript",type:"string",defaultValue:"return 'Incoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);",label:"",desc:"",validate:"",fields:null}],label:"LogNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"dbClient",category:"external",fields:[{name:"driverName",type:"string",defaultValue:"mysql",label:"",desc:"",validate:"",fields:null},{name:"dsn",type:"string",defaultValue:"root:root@tcp(127.0.0.1:3306)/test",label:"",desc:"",validate:"",fields:null},{name:"poolSize",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"sql",type:"string",defaultValue:"select * from test",label:"",desc:"",validate:"",fields:null},{name:"params",type:"array",defaultValue:null,label:"",desc:"",validate:"",fields:null},{name:"getOne",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"DbClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"mqttClient",category:"external",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:1883",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"topic",type:"string",defaultValue:"/device/msg",label:"",desc:"",validate:"",fields:null},{name:"maxReconnectInterval",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null},{name:"qOS",type:"uint8",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"cleanSession",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"clientID",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"cAFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certKeyFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"MqttClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"net",category:"external",fields:[{name:"protocol",type:"string",defaultValue:"tcp",label:"",desc:"",validate:"",fields:null},{name:"server",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"connectTimeout",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null},{name:"heartbeatInterval",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null}],label:"NetNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"restApiCall",category:"external",fields:[{name:"restEndpointUrlPattern",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"requestMethod",type:"string",defaultValue:"POST",label:"",desc:"",validate:"",fields:null},{name:"withoutRequestBody",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"headers",type:"map",defaultValue:{"Content-Type":"application/json"},label:"",desc:"",validate:"",fields:null},{name:"readTimeoutMs",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"maxParallelRequestsCount",type:"int",defaultValue:200,label:"",desc:"",validate:"",fields:null},{name:"enableProxy",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"useSystemProxyProperties",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"proxyScheme",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"proxyHost",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"proxyPort",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"proxyUser",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"proxyPassword",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"RestApiCallNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"sendEmail",category:"external",fields:[{name:"smtpHost",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"smtpPort",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"enableTls",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"email",type:"struct",defaultValue:{from:"",to:"",cc:"",bcc:"",subject:"",body:""},label:"",desc:"",validate:"",fields:[{name:"from",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"to",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"cc",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"bcc",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"subject",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"body",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}]},{name:"connectTimeout",type:"int",defaultValue:10,label:"",desc:"",validate:"",fields:null}],label:"SendEmailNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"ssh",category:"external",fields:[{name:"host",type:"string",defaultValue:"127.0.0.1",label:"",desc:"",validate:"",fields:null},{name:"port",type:"int",defaultValue:22,label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"root",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"password",label:"",desc:"",validate:"",fields:null},{name:"cmd",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"SshNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/grpcClient",category:"external/grpc",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:50051",label:"",desc:"",validate:"",fields:null},{name:"service",type:"string",defaultValue:"helloworld.Greeter",label:"",desc:"",validate:"",fields:null},{name:"method",type:"string",defaultValue:"SayHello",label:"",desc:"",validate:"",fields:null},{name:"request",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"headers",type:"map",defaultValue:null,label:"",desc:"",validate:"",fields:null}],label:"ClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/kafkaProducer",category:"external/kafka",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:9092",label:"",desc:"",validate:"",fields:null},{name:"topic",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"key",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"partition",type:"int32",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"ProducerNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/natsClient",category:"external/nats",fields:[{name:"server",type:"string",defaultValue:"nats://127.0.0.1:4222",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"topic",type:"string",defaultValue:"/device/msg",label:"",desc:"",validate:"",fields:null}],label:"ClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/opengeminiQuery",category:"external/opengemini",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:8086",label:"",desc:"",validate:"",fields:null},{name:"database",type:"string",defaultValue:"db0",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"token",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"command",type:"string",defaultValue:"select * from cpu_load",label:"",desc:"",validate:"",fields:null}],label:"QueryNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/opengeminiWrite",category:"external/opengemini",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:8086",label:"",desc:"",validate:"",fields:null},{name:"database",type:"string",defaultValue:"db0",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"token",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"WriteNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/rabbitmqClient",category:"external/rabbitmq",fields:[{name:"server",type:"string",defaultValue:"amqp://guest:guest@127.0.0.1:5672/",label:"",desc:"",validate:"",fields:null},{name:"key",type:"string",defaultValue:"device.msg.request",label:"",desc:"",validate:"",fields:null},{name:"exchange",type:"string",defaultValue:"rulego",label:"",desc:"",validate:"",fields:null},{name:"exchangeType",type:"string",defaultValue:"topic",label:"",desc:"",validate:"",fields:null},{name:"durable",type:"bool",defaultValue:!0,label:"",desc:"",validate:"",fields:null},{name:"autoDelete",type:"bool",defaultValue:!0,label:"",desc:"",validate:"",fields:null}],label:"ClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/redisClient",category:"external/redis",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:6379",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"poolSize",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"db",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"cmd",type:"string",defaultValue:"GET",label:"",desc:"",validate:"",fields:null},{name:"paramsExpr",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"params",type:"array",defaultValue:["${metadata.key}"],label:"",desc:"",validate:"",fields:null}],label:"ClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"exprFilter",category:"filter",fields:[{name:"expr",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"ExprFilterNode",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"fieldFilter",category:"filter",fields:[{name:"checkAllKeys",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"dataNames",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"metadataNames",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"FieldFilterNode",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"fork",category:"filter",fields:null,label:"ForkNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"groupFilter",category:"filter",fields:[{name:"allMatches",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"nodeIds",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"timeout",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"GroupFilterNode",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"jsFilter",category:"filter",fields:[{name:"jsScript",type:"string",defaultValue:"return msg.temperature > 50;",label:"",desc:"",validate:"",fields:null}],label:"JsFilterNode",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"jsSwitch",category:"filter",fields:[{name:"jsScript",type:"string",defaultValue:"return ['msgType1','msgType2'];",label:"",desc:"",validate:"",fields:null}],label:"JsSwitchNode",desc:"",icon:"",relationTypes:[]},{type:"msgTypeSwitch",category:"filter",fields:null,label:"MsgTypeSwitchNode",desc:"",icon:"",relationTypes:[]},{type:"switch",category:"filter",fields:[{name:"cases",type:"array",defaultValue:[{case:"msg.temperature>=20 && msg.temperature<=50",then:"Case1"},{case:"msg.temperature>50",then:"Case2"}],label:"",desc:"",validate:"",fields:null}],label:"SwitchNode",desc:"",icon:"",relationTypes:[]},{type:"x/luaFilter",category:"filter",fields:[{name:"script",type:"string",defaultValue:"return msg.temperature > 50",label:"",desc:"",validate:"",fields:null}],label:"LuaFilter",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"flow",category:"flow",fields:[{name:"targetId",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"ChainNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"ref",category:"flow",fields:[{name:"targetId",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"RefNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"exprTransform",category:"transform",fields:[{name:"expr",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"mapping",type:"map",defaultValue:null,label:"",desc:"",validate:"",fields:null}],label:"ExprTransformNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"jsTransform",category:"transform",fields:[{name:"jsScript",type:"string",defaultValue:"return {'msg':msg,'metadata':metadata,'msgType':msgType};",label:"",desc:"",validate:"",fields:null}],label:"JsTransformNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"metadataTransform",category:"transform",fields:[{name:"mapping",type:"map",defaultValue:{temperature:"msg.temperature"},label:"",desc:"",validate:"",fields:null},{name:"isNew",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"MetadataTransformNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"text/template",category:"transform",fields:[{name:"template",type:"string",defaultValue:`"id": "{{ .id}}"
- "ts": "{{ .ts}}"
- "type": "{{ .type}}"
- "msgType": "{{ .msgType}}"
- "data": "{{ .data | escape}}"
- "dataType": "{{ .dataType}}"
- `,label:"",desc:"",validate:"",fields:null}],label:"TemplateNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/luaTransform",category:"transform",fields:[{name:"script",type:"string",defaultValue:"return msg, metadata, msgType",label:"",desc:"",validate:"",fields:null}],label:"LuaTransform",desc:"",icon:"",relationTypes:["Success","Failure"]}]},mKe={class:"flow-chart"},vKe={__name:"RuleGoEditor",props:["options","data"],emits:["saveOk","saveError","reset"],setup(e,{expose:t,emit:n}){const r=e;DR.use(vF);const o=ee(),i=ee(null),a=ee(null),s=ee({}),l=ee({}),u=ee({}),f=ee(null),h=ee(!1),m=ee(!1),y=ee(!1),O=ee(!1),b=ee(!1),k=ee({url:window.allEnv.rule.server,toolbar:{}}),C=ee({isShowHeader:!1,isShowCloseIcon:!1,headerTitle:"MiniMap",width:220,height:230,bottomPosition:0,rightPosition:0,position:"right-bottom"});let P={},$=ee({}),T={},A={},R={},B=[],I=[];const N=r.data,j=r.options;let L={setting:{},relationTypeSplit:"/",endpointRelationTypeSplit:`
- `,url:window.allEnv.rule.server,componentsApi:"/api/v1/components",ruleApi:"/api/v1/rule/:id",debugDataApi:"/api/v1/event/debug",msgApi:"/api/v1/msg/:chainId/testMsgType",startX:280,startY:280,loadComponentsFromApi:!0,loadEndpointComponents:!0,components:{endpoints:[],nodes:[]},adapterComponents:function(be){return L.loadEndpointComponents||(be.endpoints=[]),Sr.adapterComponents(be)},toolbar:{showTest:!0,showNewOrOpen:!0,showData:!0,showSetting:!0,showFullScreen:!0,showSave:!0,showReset:!0,showDelete:!0},container:o.value,grid:{visible:!0,type:"mesh",size:10,config:{color:"#eeeeee"}},adjustEdge:!0,adjustEdgeStartAndEnd:!0,textEdit:!1,stopMoveGraph:!1,hoverOutline:!1,edgeSelectedOutline:!1,keyboard:{enabled:!0,shortcuts:[{keys:["delete","backspace"],callback:be=>{!be.target||be.target.tagName!=="DIV"&&be.target.tagName!=="div"||ze()}},{keys:["cmd + c","ctrl + c"],callback:be=>{if(!be.target||be.target.tagName!=="DIV"&&be.target.tagName!=="div")return;if(!i.value){Sr.copyToClipboard("");return}T.currentCloneNodeId=i.value.id;let Ie=i.value.properties&&i.value.properties.model||{};Sr.copyToClipboard(JSON.stringify(Ie))}},{keys:["cmd + v","ctrl + v"],callback:be=>{!be.target||be.target.tagName!=="DIV"&&be.target.tagName!=="div"||ue()}}]},idGenerator:function(be){return be==="flow-link"?(T.edgeCount++,"edge_"+T.edgeCount):(T.nodeCount++,"node_"+T.nodeCount)},plugins:[BVe,IVe,dq,mJ,vF],pluginsOptions:{MiniMap:C.value}},V=null;vn(()=>{L.components&&L.components.nodes&&L.components.nodes.length>0?(L.components=L.adapterComponents(L.components),P=fe(L.components),X()):(L.components=L.adapterComponents(gKe),P=fe(L.components),X()),L.loadComponentsFromApi&&Se().then(be=>{L.components=be,P=fe(L.components),X()})});const X=()=>{_e(),Object.assign(L,j),k.value={url:L.url,componentsApi:L.componentsApi,ruleApi:L.ruleApi,debugDataApi:L.debugDataApi,msgApi:L.msgApi,toolbar:L.toolbar},L.ruleChain&&($.value=$),L.container=o.value,V=new DR(L),V.getRuleChain=function(){return $.value},V.getEditorSetting=function(){return k.value},V.extension.selectionSelect.setSelectionSense(!0,!1),V.adapterIn=function(be){no(be)&&(be=be.value);let Ie={};be.ruleChain&&($.value=be.ruleChain,Ie=be.ruleChain.additionalInfo||{});let De=[],Me=[],qe=parseInt(Ie.layoutX||L.startX)||L.startX,Oe=parseInt(Ie.layoutY||L.startY)||L.startY;De.push({id:T.startNodeId,type:"start-node",x:qe,y:Oe,text:Ry("Input")});let Je=null,lt=0,Ke=be.metadata&&be.metadata.firstNodeIndex||0;be&&be.metadata&&be.metadata.nodes&&be.metadata.nodes.forEach((Ot,Qt)=>{let kt=Sr.getNodeSeq(Ot.id);kt>lt&&(lt=kt),T.nodeCount++;let an=P[Ot.type],Ce="simple-node";an&&an.nodeType&&(Ce=an.nodeType),Ke===Qt&&(Je=Ot),qe=qe+150;let Ye=Ot.additionalInfo||{},me=Ye.layoutX||qe,Ve=Ye.layoutY||Oe;De.push({id:Ot.id,type:Ce,x:me,y:Ve,text:Ot.name,properties:{view:P[Ot.type],model:Ot}})}),be&&be.metadata&&be.metadata.endpoints&&be.metadata.endpoints.forEach((Ot,Qt)=>{let kt=Sr.getNodeSeq(Ot.id);kt>lt&&(lt=kt),T.nodeCount++,qe=qe+150;let an=Ot.additionalInfo||{},Ce=an.layoutX||qe,Ye=an.layoutY||Oe;De.push({id:Ot.id,type:"endpoint-node",x:Ce,y:Ye,text:Ot.name,properties:{view:P[Ot.type],model:Ot}})}),T.nodeCount+=lt;let et=[];Je&&(et=[{fromId:T.startNodeId,toId:Je.id}]),be.metadata&&be.metadata.endpoints&&be.metadata.endpoints.forEach((Ot,Qt)=>{et=et.concat(Sr.getEndpointConnections(Ot.id,Ot,Je))});let bt=et;return be&&be.metadata&&be.metadata.connections&&(bt=bt.concat(be.metadata.connections)),bt.forEach(Ot=>{T.edgeCount++;let Qt=Sr.getEdgeBySourceNodeIdAndTargetNodeId(Me,Ot.fromId,Ot.toId);Qt?(Ot.nodeType==="endpoint-node"?Qt.text=Qt.text+L.endpointRelationTypeSplit+Ry(Ot.type,"relationTypes"):Qt.text=Qt.text+L.relationTypeSplit+Ry(Ot.type,"relationTypes"),Qt.properties.model.relationTypes||(Qt.properties.model.relationTypes=[]),Qt.properties.model.relationTypes.push(Ot.type),Ot.routerId&&(Qt.properties.model.routerId=Ot.routerId)):(Ot.relationTypes=[Ot.type],Qt=Sr.createEdge(T,De,Ot),Me.push(Qt))}),{edges:Me,nodes:De}},V.adapterOut=function(be){$.value&&!$.value.id&&($.value.id=Sr.genId());let Ie=[],De=[],Me=[],qe=null,Oe=[];be&&be.edges&&be.edges.forEach(lt=>{if(lt.sourceNodeId!==T.startNodeId){let Ke=ye(lt.sourceNodeId),et=ye(lt.targetNodeId);Ke===""&&Fi.error("\u627E\u4E0D\u5230\u8282\u70B9Id="+Ke),et===""&&Fi.error("\u627E\u4E0D\u5230\u8282\u70B9Id="+et);let bt=V.getNodeDataById(lt.sourceNodeId),Ot=lt.properties.model||{fromId:Ke,toId:et,type:""};Ot.fromId=Ke,Ot.toId=et,Ot.relationTypes.forEach(Qt=>{let kt={};Object.assign(kt,Ot),kt.type=Qt,delete kt.id,delete kt.relationTypes,delete kt.relationTypesLabel,bt.type==="endpoint-node"?Oe.push(kt):Me.push(kt)})}else qe=lt.targetNodeId}),be&&be.nodes&&be.nodes.forEach(lt=>{if(lt.id===T.startNodeId)$.value.additionalInfo?($.value.additionalInfo.layoutX=String(lt.x),$.value.additionalInfo.layoutY=String(lt.y)):$.value.additionalInfo={layoutX:String(lt.x),layoutY:String(lt.y)};else{let Ke=lt.properties.model;if(Ke){let et=Ke.additionalInfo;et?(et.layoutX=lt.x,et.layoutY=lt.y):Ke.additionalInfo={layoutX:lt.x,layoutY:lt.y},delete Ke.nodeId,lt.type==="endpoint-node"?(Sr.updateEndpointRouterToPath(Ke,$.value.id,Oe),Ie.push(Ke)):!qe&<.type==="simple-node"||lt.id===qe?De.unshift(Ke):De.push(Ke)}}});let Je={endpoints:Ie,nodes:De,connections:Me};return{ruleChain:$.value,metadata:Je}},N?V.render(N):($.value.id=Sr.genId(),V.render()),V.graphModel.eventCenter.emit("rulego-editor:componentOk",L.components),V.on("blank:mousemove",({e:be})=>{T.mouseX=be.offsetX,T.mouseY=be.offsetY}),V.on("blank:mousedown",({e:be})=>{T.mouseX=be.offsetX,T.mouseY=be.offsetY}),V.on("node:click",({data:be})=>{Be(),Wt(()=>{be.type!=="start-node"?(i.value=be,a.value=null,Ee(),m.value=!0):(i.value=null,a.value=null)})}),V.on("node:dbclick",({data:be})=>{Be(),Wt(()=>{be.type!=="start-node"&&(i.value=be,a.value=null,Ee(),m.value=!0)})}),V.on("edge:click",({data:be})=>{Be(),Wt(()=>{i.value=null,a.value=be,m.value=!1,y.value=!1})}),V.on("edge:dbclick",({data:be})=>{Be(),Wt(()=>{a.value=be,i.value=null,Ee()})}),V.on("node:dnd-add",({data:be})=>{Be(),Wt(()=>{A=be,i.value=be,a.value=null,Ee(!0)})}),V.on("node:add",({data:be})=>{let Ie=be.properties.model;const De=V.getNodeModelById(be.id);Ie&&De&&(Ie.id=be.id,De.setProperty("model",Ie))}),V.on("edge:add",({data:be})=>{let Ie=V.getNodeEdges(be.sourceNodeId);Ie&&Ie.length>1&&V.getNodeDataById(be.sourceNodeId).type==="start-node"&&V.deleteEdge(be.id)}),V.on("edge:add",({data:be})=>{R=be,a.value=be,i.value=null,be.sourceNodeId!==T.startNodeId&&Ee(!0)}),V.on("node:drop",({data:be})=>{let Ie=be.properties.model;Ie&&(Ie.additionalInfo?(Ie.layoutX=be.x,Ie.layoutY=be.y):Ie.additionalInfo={layoutX:be.x,layoutY:be.y})}),V.on("rulego-editor:new",be=>{Ne(),be.id||(be.id=Sr.genId()),$.value=be}),V.on("rulego-editor:open",be=>{let Ie=JSON.parse(be);ve(Ie)}),V.on("rulego-editor:setting",be=>{be.url&&be.url!==k.value.url?(k.value.url=be.url,k.value.toolbar=be.toolbar,Se().then(Ie=>{L.components=Ie,P=fe(L.components),X()})):(k.value.url=be.url,k.value.toolbar=be.toolbar)}),V.on("rulego-editor:fullScreen",()=>{console.info("rulego-editor:fullScreen")}),V.on("rulego-editor:save",()=>{le()}),V.on("rulego-editor:reset",()=>{console.info("rulego-editor:deleteSelects")}),V.on("rulego-editor:deleteSelects",()=>{ze()}),V.on("rulego-editor:showEditPanel",()=>{Ee(!1)}),V.on("history:change",be=>{B=be.data.undos,I=be.data.redos}),V.on("rulego-editor:loadComponents",be=>{L.components=L.adapterComponents(be),V.graphModel.eventCenter.emit("rulego-editor:componentOk",L.components)}),V.extension.miniMap.show()},oe=be=>{i.value=be;let Ie=be.properties.model;!Ie.type&&be.properties.view&&(Ie.type=be.properties.view.type),l.value=be.properties.view||P[Ie.type],Ie.id=Ie.id||be.id,Ie.nodeId=be.id,Ie.additionalInfo?(Ie.layoutX=be.x,Ie.layoutY=be.y):Ie.additionalInfo={layoutX:be.x,layoutY:be.y},s.value=Ie||{}},K=be=>{const Ie=V.getNodeModelById(be.nodeId);Ie&&(i.value=Ie,Ie.setProperty("model",be),Ie.updateText(be.name));let De=Ie.getData();if(De.type==="endpoint-node")z(be.nodeId,be);else{let Me=De.properties||{};q(be.nodeId,Me.view||{},be)}A=null,h.value=!1,m.value=!1},Z=()=>{A&&(V.deleteNode(A.id),A=null),Ae()},re=be=>{const Ie=V.getEdgeModelById(be.id);Ie&&(a.value=Ie,V.getNodeDataById(Ie.sourceNodeId).type==="endpoint-node"?(be.routerId=be.relationTypes[0],Ie.updateText(be.relationTypesLabel.join(L.endpointRelationTypeSplit))):Ie.updateText(be.relationTypesLabel.join(L.relationTypeSplit)),Ie.setProperty("model",be)),R=null,b.value=!1,y.value=!1},J=()=>{R&&(V.deleteEdge(R.id),R=null),Ae()},z=(be,Ie)=>{V.getEdgeModels({sourceNodeId:be}).forEach(Me=>{let qe=Me.properties.model||{},Oe=Sr.getRouterRelationTypeLabel(Ie,qe.routerId||qe.relationTypes);if(Oe.length===0)V.deleteEdge(Me.id);else{let Je=Oe.map(lt=>lt.label);Me.updateText(Je.join(L.endpointRelationTypeSplit))}})},q=(be,Ie,De)=>{if(!Ie.relationTypeDynamics)return;debugger;let Me=V.getEdgeModels({sourceNodeId:be}),qe=Sr.getRelationTypeOptionsFromNode(Ie,De);Me.forEach(Oe=>{(Oe.properties.model||{}).relationTypes.every(Ke=>qe.find(et=>et.value===Ke))||V.deleteEdge(Oe.id)})},ue=()=>{Sr.readFromClipboard().then(be=>{!he(be)&&T.currentCloneNodeId&&V.cloneNode(T.currentCloneNodeId)}).catch(be=>{T.currentCloneNodeId&&V.cloneNode(T.currentCloneNodeId)})},he=be=>{if(!be)return!1;try{let Ie=JSON.parse(be);if(!Ie.type)return!1;T.nodeCount++,Ie.id="node_"+T.nodeCount;let De=T.mouseX,Me=T.mouseY,qe=P[Ie.type];return qe?(V.addNode({id:Ie.id,type:qe.nodeType||"simple-node",x:De,y:Me,text:Ie.name,properties:{view:qe,model:Ie}}),!0):!1}catch{return!1}},le=()=>{let be=V.getGraphData(),Ie=k.value.url+L.ruleApi;Ie=Ie.replace(":id",$.value.id),fetch(Ie,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(be)}).then(De=>De.ok?De:De.text().then(Me=>{throw new Error("\u4FDD\u5B58\u5931\u8D25: "+Me)})).then(De=>{Fi({showClose:!0,message:"\u4FDD\u5B58\u6210\u529F",type:"success"}),n("saveOk",De)}).catch(De=>{Fi.error(De.message),n("saveError",be,De)})},ze=()=>{const{nodes:be,edges:Ie}=V.getSelectElements();Ie&&Ie.forEach(De=>{V.deleteEdge(De.id)}),be&&be.forEach(De=>{De.type!=="start-node"&&V.deleteNode(De.id)}),V.graphModel.eventCenter.emit("rulego-editor:deleted"),Be()},Ee=be=>{if(i.value){let Ie=i.value;Ie.type!=="start-node"&&(oe(Ie),be?h.value=!0:m.value=!0,y.value=!1)}else{let Ie=a.value,De=V.getNodeDataById(Ie.sourceNodeId);if(De.type==="start-node")return;let Me=De.properties.model||{},qe=Me.type;l.value=P[qe];let Oe=V.getEdgeModels({sourceNodeId:De.id}),Je=[];if(De.type==="endpoint-node"){if(Je=Sr.getRelationTypeOptionsFromRouters(Oe,Me,Ie.id),De.type==="endpoint-node"&&Je.length===0){Fi.error("\u8F93\u5165\u7AEF\u6BCF\u4E2A\u8DEF\u7531\u53EA\u5141\u8BB8\u4E00\u6761\u8FB9"),V.deleteEdge(Ie.id);return}}else Je=Sr.getRelationTypeOptionsFromNode(De.properties.view||{},Me);f.value=Je.length>0?Je:null,u.value=Ie.properties.model||{id:Ie.id,fromId:Ie.sourceNodeId,toId:Ie.targetNodeId,type:""},u.value.id=Ie.id,h.value=!1,m.value=!1,be?b.value=!0:y.value=!0}},Be=()=>{i.value=null,a.value=null,A=null,R=null,Ae()},Ae=()=>{h.value=!1,m.value=!1,b.value=!1,y.value=!1},_e=()=>{T={nodeCount:0,edgeCount:0,startNodeId:"$node_start_input",nodeWidth:100,currentCloneNodeId:""},i.value=null,a.value=null,h.value=!1,m.value=!1,y.value=!1,O.value=!1,$.value={}},ve=be=>{_e(),V.render(be),B.length=0,I.length=0},Ne=()=>{V.clearData(),ve()},Se=async()=>{let be=k.value.url+L.componentsApi;const De=await(await fetch(be)).json();return L.adapterComponents(De)},fe=be=>{let Ie={};for(let De in be)be[De].components&&be[De].components.forEach(Me=>{Ie[Me.type]=Me});return Ie},ye=be=>{let Ie=V.getNodeModelById(be);return Ie&&Ie.properties&&Ie.properties.model?Ie.properties.model.id:""};return t({render:ve,save:le,lf:V,getData:()=>V.getGraphData()}),(be,Ie)=>(U(),ce("div",mKe,[ge("div",{ref_key:"container",ref:o,class:"container"},null,512),m.value?(U(),Qe(dKe,{key:0,show:m.value,currentNodeModel:s.value,currentNodeView:l.value,debugDataUrl:k.value.url+v(L).debugDataApi,chainId:v($).id,onSubmit:K,onCancel:Z},null,8,["show","currentNodeModel","currentNodeView","debugDataUrl","chainId"])):Fe("",!0),h.value?(U(),Qe(pKe,{key:1,show:h.value,currentNodeModel:s.value,currentNodeView:l.value,onSubmit:K,onCancel:Z},null,8,["show","currentNodeModel","currentNodeView"])):Fe("",!0),y.value?(U(),Qe(wHe,{key:2,show:y.value,currentEdgeModel:u.value,sourceNodeView:l.value,relationTypeSplit:v(L).relationTypeSplit,sourceNodeRelationTypeOptions:f.value,onSubmit:re,onCancel:J},null,8,["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"])):Fe("",!0),b.value?(U(),Qe(xHe,{key:3,show:b.value,currentEdgeModel:u.value,sourceNodeView:l.value,relationTypeSplit:v(L).relationTypeSplit,sourceNodeRelationTypeOptions:f.value,onSubmit:re,onCancel:J},null,8,["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"])):Fe("",!0)]))}};var yKe=R0(vKe,[["__scopeId","data-v-42c6d302"]]);const bKe={__name:"App",setup(e){const t=ee(),n=ee({url:window.allEnv.rule.server,toolbar:{showTest:!0,showNewOrOpen:!1,showData:!0,showSetting:!1,showFullScreen:!0,showSave:!0,showReset:!0,showDelete:!0}});return ee({ruleChain:{id:"chain_call_rest_api",additionalInfo:null,name:"\u6D4B\u8BD5\u89C4\u5219\u94FE",debugMode:!1,root:!0,configuration:null},metadata:{nodes:[{id:"s1",additionalInfo:{description:"ddd",layoutX:440,layoutY:280},type:"jsFilter",name:"\u8FC7\u6EE4",debugMode:!0,configuration:{jsScript:"return msg!='bb';"}},{id:"s2",additionalInfo:{description:"",layoutX:670,layoutY:280},type:"jsTransform",name:"\u8F6C\u6362",debugMode:!0,configuration:{jsScript:`metadata['test']='test02';
- metadata['index']=52;
- msgType='TEST_MSG_TYPE2';
- msg['aa']=66;
- return {'msg':msg,'metadata':metadata,'msgType':msgType};`}},{id:"s3",additionalInfo:{description:"",layoutX:930,layoutY:190},type:"restApiCall",name:"\u63A8\u9001\u6570\u636E",debugMode:!0,configuration:{headers:{"Content-Type":"application/json"},maxParallelRequestsCount:200,requestMethod:"POST",restEndpointUrlPattern:"http://127.0.0.1:9090/api/v1/webhook/test"}},{id:"node_5",additionalInfo:{description:"",layoutX:920,layoutY:370},type:"log",name:"\u8BB0\u5F55\u9519\u8BEF\u65E5\u5FD7",debugMode:!1,configuration:{jsScript:`return 'Incoming message:\\\\n' + JSON.stringify(msg) +
- '\\\\nIncoming metadata:\\\\n' + JSON.stringify(metadata);`}}],connections:[{fromId:"s1",toId:"s2",type:"True"},{fromId:"s2",toId:"s3",type:"Success"},{fromId:"s2",toId:"node_5",type:"Failure"}]}}),(r,o)=>(U(),Qe(yKe,{ref_key:"ruleGoEditorRef",ref:t,data:null,options:n.value},null,8,["options"]))}},kee=S2(bKe);kee.use(NBe,{locale:IBe});kee.mount("#app")});export default _Ke();
|