(function(nr){typeof define=="function"&&define.amd?define(nr):nr()})(function(){"use strict";var zj=Object.defineProperty;var Gj=(nr,bt,Ei)=>bt in nr?zj(nr,bt,{enumerable:!0,configurable:!0,writable:!0,value:Ei}):nr[bt]=Ei;var $b=(nr,bt,Ei)=>(Gj(nr,typeof bt!="symbol"?bt+"":bt,Ei),Ei);function nr(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}function bt(e){if(Qe(e)){const t={};for(let n=0;n{if(n){const r=n.split(Bb);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function lt(e){let t="";if(zt(e))t=e;else if(Qe(e))for(let n=0;nhs(n,t))}const ce=e=>zt(e)?e:e==null?"":Qe(e)||Rt(e)&&(e.toString===gp||!pt(e.toString))?JSON.stringify(e,dp,2):String(e),dp=(e,t)=>t&&t.__v_isRef?dp(e,t.value):uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:co(t)?{[`Set(${t.size})`]:[...t.values()]}:Rt(t)&&!Qe(t)&&!mp(t)?String(t):t,Dt={},lo=[],mr=()=>{},Kb=()=>!1,Vb=/^on[^a-z]/,Ma=e=>Vb.test(e),Uu=e=>e.startsWith("onUpdate:"),kn=Object.assign,Wu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qb=Object.prototype.hasOwnProperty,_t=(e,t)=>qb.call(e,t),Qe=Array.isArray,uo=e=>ms(e)==="[object Map]",co=e=>ms(e)==="[object Set]",pp=e=>ms(e)==="[object Date]",pt=e=>typeof e=="function",zt=e=>typeof e=="string",gs=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",hp=e=>Rt(e)&&pt(e.then)&&pt(e.catch),gp=Object.prototype.toString,ms=e=>gp.call(e),zb=e=>ms(e).slice(8,-1),mp=e=>ms(e)==="[object Object]",Ku=e=>zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fa=nr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$a=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Gb=/-(\w)/g,Ar=$a(e=>e.replace(Gb,(t,n)=>n?n.toUpperCase():"")),Yb=/\B([A-Z])/g,fo=$a(e=>e.replace(Yb,"-$1").toLowerCase()),Ba=$a(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vu=$a(e=>e?`on${Ba(e)}`:""),vs=(e,t)=>!Object.is(e,t),Ha=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ua=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let vp;const Xb=()=>vp||(vp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Kn;class Jb{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kn,!t&&Kn&&(this.index=(Kn.scopes||(Kn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Kn;try{return Kn=this,t()}finally{Kn=n}}}on(){Kn=this}off(){Kn=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},bp=e=>(e.w&ai)>0,Cp=e=>(e.n&ai)>0,eC=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(h==="length"||h>=c)&&l.push(d)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":Qe(e)?Ku(n)&&l.push(s.get("length")):(l.push(s.get(Oi)),uo(e)&&l.push(s.get(Yu)));break;case"delete":Qe(e)||(l.push(s.get(Oi)),uo(e)&&l.push(s.get(Yu)));break;case"set":uo(e)&&l.push(s.get(Oi));break}if(l.length===1)l[0]&&Ju(l[0]);else{const c=[];for(const d of l)d&&c.push(...d);Ju(qu(c))}}function Ju(e,t){const n=Qe(e)?e:[...e];for(const r of n)r.computed&&xp(r);for(const r of n)r.computed||xp(r)}function xp(e,t){(e!==vr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const nC=nr("__proto__,__v_isRef,__isVue"),kp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gs)),rC=Zu(),iC=Zu(!1,!0),oC=Zu(!0),Sp=sC();function sC(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=kt(this);for(let o=0,s=this.length;o{e[t]=function(...n){po();const r=kt(this)[t].apply(this,n);return ho(),r}}),e}function aC(e){const t=kt(this);return Pn(t,"has",e),t.hasOwnProperty(e)}function Zu(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?TC:Np:t?Rp:Dp).get(r))return r;const s=Qe(r);if(!e){if(s&&_t(Sp,i))return Reflect.get(Sp,i,o);if(i==="hasOwnProperty")return aC}const l=Reflect.get(r,i,o);return(gs(i)?kp.has(i):nC(i))||(e||Pn(r,"get",i),t)?l:mn(l)?s&&Ku(i)?l:l.value:Rt(l)?e?tc(l):Dn(l):l}}const lC=Ap(),uC=Ap(!0);function Ap(e=!1){return function(n,r,i,o){let s=n[r];if(mo(s)&&mn(s)&&!mn(i))return!1;if(!e&&(!Ya(i)&&!mo(i)&&(s=kt(s),i=kt(i)),!Qe(n)&&mn(s)&&!mn(i)))return s.value=i,!0;const l=Qe(n)&&Ku(r)?Number(r)e,Wa=e=>Reflect.getPrototypeOf(e);function Ka(e,t,n=!1,r=!1){e=e.__v_raw;const i=kt(e),o=kt(t);n||(t!==o&&Pn(i,"get",t),Pn(i,"get",o));const{has:s}=Wa(i),l=r?Qu:n?rc:bs;if(s.call(i,t))return l(e.get(t));if(s.call(i,o))return l(e.get(o));e!==i&&e.get(t)}function Va(e,t=!1){const n=this.__v_raw,r=kt(n),i=kt(e);return t||(e!==i&&Pn(r,"has",e),Pn(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function qa(e,t=!1){return e=e.__v_raw,!t&&Pn(kt(e),"iterate",Oi),Reflect.get(e,"size",e)}function Op(e){e=kt(e);const t=kt(this);return Wa(t).has.call(t,e)||(t.add(e),Ur(t,"add",e,e)),this}function Lp(e,t){t=kt(t);const n=kt(this),{has:r,get:i}=Wa(n);let o=r.call(n,e);o||(e=kt(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?vs(t,s)&&Ur(n,"set",e,t):Ur(n,"add",e,t),this}function Ip(e){const t=kt(this),{has:n,get:r}=Wa(t);let i=n.call(t,e);i||(e=kt(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Ur(t,"delete",e,void 0),o}function Pp(){const e=kt(this),t=e.size!==0,n=e.clear();return t&&Ur(e,"clear",void 0,void 0),n}function za(e,t){return function(r,i){const o=this,s=o.__v_raw,l=kt(s),c=t?Qu:e?rc:bs;return!e&&Pn(l,"iterate",Oi),s.forEach((d,h)=>r.call(i,c(d),c(h),o))}}function Ga(e,t,n){return function(...r){const i=this.__v_raw,o=kt(i),s=uo(o),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=i[e](...r),h=n?Qu:t?rc:bs;return!t&&Pn(o,"iterate",c?Yu:Oi),{next(){const{value:p,done:y}=d.next();return y?{value:p,done:y}:{value:l?[h(p[0]),h(p[1])]:h(p),done:y}},[Symbol.iterator](){return this}}}}function ui(e){return function(...t){return e==="delete"?!1:this}}function gC(){const e={get(o){return Ka(this,o)},get size(){return qa(this)},has:Va,add:Op,set:Lp,delete:Ip,clear:Pp,forEach:za(!1,!1)},t={get(o){return Ka(this,o,!1,!0)},get size(){return qa(this)},has:Va,add:Op,set:Lp,delete:Ip,clear:Pp,forEach:za(!1,!0)},n={get(o){return Ka(this,o,!0)},get size(){return qa(this,!0)},has(o){return Va.call(this,o,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:za(!0,!1)},r={get(o){return Ka(this,o,!0,!0)},get size(){return qa(this,!0)},has(o){return Va.call(this,o,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:za(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ga(o,!1,!1),n[o]=Ga(o,!0,!1),t[o]=Ga(o,!1,!0),r[o]=Ga(o,!0,!0)}),[e,n,t,r]}const[mC,vC,yC,bC]=gC();function ec(e,t){const n=t?e?bC:yC:e?vC:mC;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(_t(n,i)&&i in r?n:r,i,o)}const CC={get:ec(!1,!1)},_C={get:ec(!1,!0)},wC={get:ec(!0,!1)},Dp=new WeakMap,Rp=new WeakMap,Np=new WeakMap,TC=new WeakMap;function xC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function kC(e){return e.__v_skip||!Object.isExtensible(e)?0:xC(zb(e))}function Dn(e){return mo(e)?e:nc(e,!1,Ep,CC,Dp)}function SC(e){return nc(e,!1,hC,_C,Rp)}function tc(e){return nc(e,!0,pC,wC,Np)}function nc(e,t,n,r,i){if(!Rt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=kC(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return i.set(e,l),l}function go(e){return mo(e)?go(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ya(e){return!!(e&&e.__v_isShallow)}function Mp(e){return go(e)||mo(e)}function kt(e){const t=e&&e.__v_raw;return t?kt(t):e}function Fp(e){return ja(e,"__v_skip",!0),e}const bs=e=>Rt(e)?Dn(e):e,rc=e=>Rt(e)?tc(e):e;function $p(e){li&&vr&&(e=kt(e),Tp(e.dep||(e.dep=qu())))}function Bp(e,t){e=kt(e);const n=e.dep;n&&Ju(n)}function mn(e){return!!(e&&e.__v_isRef===!0)}function Et(e){return Hp(e,!1)}function AC(e){return Hp(e,!0)}function Hp(e,t){return mn(e)?e:new EC(e,t)}class EC{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:kt(t),this._value=n?t:bs(t)}get value(){return $p(this),this._value}set value(t){const n=this.__v_isShallow||Ya(t)||mo(t);t=n?t:kt(t),vs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:bs(t),Bp(this))}}function jp(e){return mn(e)?e.value:e}const OC={get:(e,t,n)=>jp(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return mn(i)&&!mn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Up(e){return go(e)?e:new Proxy(e,OC)}var Wp;class LC{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Wp]=!1,this._dirty=!0,this.effect=new Xu(t,()=>{this._dirty||(this._dirty=!0,Bp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=kt(this);return $p(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Wp="__v_isReadonly";function IC(e,t,n=!1){let r,i;const o=pt(e);return o?(r=e,i=mr):(r=e.get,i=e.set),new LC(r,i,o||!i,n)}function Xj(e,...t){}function ci(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Xa(o,t,n)}return i}function yr(e,t,n,r){if(pt(e)){const o=ci(e,t,n,r);return o&&hp(o)&&o.catch(s=>{Xa(s,t,n)}),o}const i=[];for(let o=0;o>>1;_s(vn[r])Er&&vn.splice(t,1)}function NC(e){Qe(e)?vo.push(...e):(!Wr||!Wr.includes(e,e.allowRecurse?Li+1:Li))&&vo.push(e),Vp()}function qp(e,t=Cs?Er+1:0){for(;t_s(n)-_s(r)),Li=0;Lie.id==null?1/0:e.id,MC=(e,t)=>{const n=_s(e)-_s(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gp(e){ic=!1,Cs=!0,vn.sort(MC);const t=mr;try{for(Er=0;Erzt(C)?C.trim():C)),p&&(i=n.map(Ua))}let l,c=r[l=Vu(t)]||r[l=Vu(Ar(t))];!c&&o&&(c=r[l=Vu(fo(t))]),c&&yr(c,e,6,i);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,yr(d,e,6,i)}}function Yp(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},l=!1;if(!pt(e)){const c=d=>{const h=Yp(d,t,!0);h&&(l=!0,kn(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Rt(e)&&r.set(e,null),null):(Qe(o)?o.forEach(c=>s[c]=null):kn(s,o),Rt(e)&&r.set(e,s),s)}function Za(e,t){return!e||!Ma(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,fo(t))||_t(e,t))}let dn=null,Qa=null;function el(e){const t=dn;return dn=e,Qa=e&&e.type.__scopeId||null,t}function yo(e){Qa=e}function bo(){Qa=null}function ac(e,t=dn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&wh(-1);const o=el(t);let s;try{s=e(...i)}finally{el(o),r._d&&wh(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Jj(){}function lc(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:l,attrs:c,emit:d,render:h,renderCache:p,data:y,setupState:C,ctx:w,inheritAttrs:k}=e;let O,N;const L=el(e);try{if(n.shapeFlag&4){const D=i||r;O=Or(h.call(D,D,p,o,C,y,w)),N=c}else{const D=t;O=Or(D.length>1?D(o,{attrs:c,slots:l,emit:d}):D(o,null)),N=t.props?c:$C(c)}}catch(D){ks.length=0,Xa(D,e,1),O=xe(fi)}let K=O;if(N&&k!==!1){const D=Object.keys(N),{shapeFlag:Te}=K;D.length&&Te&7&&(s&&D.some(Uu)&&(N=BC(N,s)),K=_o(K,N))}return n.dirs&&(K=_o(K),K.dirs=K.dirs?K.dirs.concat(n.dirs):n.dirs),n.transition&&(K.transition=n.transition),O=K,el(L),O}const $C=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ma(n))&&((t||(t={}))[n]=e[n]);return t},BC=(e,t)=>{const n={};for(const r in e)(!Uu(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function HC(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:l,patchFlag:c}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Xp(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;function WC(e,t){t&&t.pendingBranch?Qe(e)?t.effects.push(...e):t.effects.push(e):NC(e)}function Jp(e,t){if(Gt){let n=Gt.provides;const r=Gt.parent&&Gt.parent.provides;r===n&&(n=Gt.provides=Object.create(r)),n[e]=t}}function Co(e,t,n=!1){const r=Gt||dn;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&pt(t)?t.call(r.proxy):t}}const tl={};function rr(e,t,n){return Zp(e,t,n)}function Zp(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=Dt){const l=yp()===(Gt==null?void 0:Gt.scope)?Gt:null;let c,d=!1,h=!1;if(mn(e)?(c=()=>e.value,d=Ya(e)):go(e)?(c=()=>e,r=!0):Qe(e)?(h=!0,d=e.some(K=>go(K)||Ya(K)),c=()=>e.map(K=>{if(mn(K))return K.value;if(go(K))return Ii(K);if(pt(K))return ci(K,l,2)})):pt(e)?t?c=()=>ci(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return p&&p(),yr(e,l,3,[y])}:c=mr,t&&r){const K=c;c=()=>Ii(K())}let p,y=K=>{p=N.onStop=()=>{ci(K,l,4)}},C;if(Es)if(y=mr,t?n&&yr(t,l,3,[c(),h?[]:void 0,y]):c(),i==="sync"){const K=F_();C=K.__watcherHandles||(K.__watcherHandles=[])}else return mr;let w=h?new Array(e.length).fill(tl):tl;const k=()=>{if(N.active)if(t){const K=N.run();(r||d||(h?K.some((D,Te)=>vs(D,w[Te])):vs(K,w)))&&(p&&p(),yr(t,l,3,[K,w===tl?void 0:h&&w[0]===tl?[]:w,y]),w=K)}else N.run()};k.allowRecurse=!!t;let O;i==="sync"?O=k:i==="post"?O=()=>Nn(k,l&&l.suspense):(k.pre=!0,l&&(k.id=l.uid),O=()=>sc(k));const N=new Xu(c,O);t?n?k():w=N.run():i==="post"?Nn(N.run.bind(N),l&&l.suspense):N.run();const L=()=>{N.stop(),l&&l.scope&&Wu(l.scope.effects,N)};return C&&C.push(L),L}function KC(e,t,n){const r=this.proxy,i=zt(e)?e.includes(".")?Qp(r,e):()=>r[e]:e.bind(r,r);let o;pt(t)?o=t:(o=t.handler,n=t);const s=Gt;wo(this);const l=Zp(i,o.bind(r),n);return s?wo(s):Ni(),l}function Qp(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Ii(n,t)});else if(mp(e))for(const n in e)Ii(e[n],t);return e}function Rn(e){return pt(e)?{setup:e,name:e.name}:e}const ws=e=>!!e.type.__asyncLoader,eh=e=>e.type.__isKeepAlive;function VC(e,t){th(e,"a",t)}function qC(e,t){th(e,"da",t)}function th(e,t,n=Gt){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(nl(t,r,n),n){let i=n.parent;for(;i&&i.parent;)eh(i.parent.vnode)&&zC(r,t,n,i),i=i.parent}}function zC(e,t,n,r){const i=nl(t,e,r,!0);nh(()=>{Wu(r[t],i)},n)}function nl(e,t,n=Gt,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;po(),wo(n);const l=yr(t,n,e,s);return Ni(),ho(),l});return r?i.unshift(o):i.push(o),o}}const Kr=e=>(t,n=Gt)=>(!Es||e==="sp")&&nl(e,(...r)=>t(...r),n),GC=Kr("bm"),uc=Kr("m"),YC=Kr("bu"),XC=Kr("u"),JC=Kr("bum"),nh=Kr("um"),ZC=Kr("sp"),QC=Kr("rtg"),e_=Kr("rtc");function t_(e,t=Gt){nl("ec",e,t)}function be(e,t){const n=dn;if(n===null)return e;const r=cl(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;ot(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,c=s.length;lxh(t)?!(t.type===fi||t.type===He&&!sh(t.children)):!0)?e:null}const dc=e=>e?Ah(e)?cl(e)||e.proxy:dc(e.parent):null,Ts=kn(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=>dc(e.parent),$root:e=>dc(e.root),$emit:e=>e.emit,$options:e=>gc(e),$forceUpdate:e=>e.f||(e.f=()=>sc(e.update)),$nextTick:e=>e.n||(e.n=Ja.bind(e.proxy)),$watch:e=>KC.bind(e)}),pc=(e,t)=>e!==Dt&&!e.__isScriptSetup&&_t(e,t),i_={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const C=s[t];if(C!==void 0)switch(C){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(pc(r,t))return s[t]=1,r[t];if(i!==Dt&&_t(i,t))return s[t]=2,i[t];if((d=e.propsOptions[0])&&_t(d,t))return s[t]=3,o[t];if(n!==Dt&&_t(n,t))return s[t]=4,n[t];hc&&(s[t]=0)}}const h=Ts[t];let p,y;if(h)return t==="$attrs"&&Pn(e,"get",t),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Dt&&_t(n,t))return s[t]=4,n[t];if(y=c.config.globalProperties,_t(y,t))return y[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return pc(i,t)?(i[t]=n,!0):r!==Dt&&_t(r,t)?(r[t]=n,!0):_t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let l;return!!n[s]||e!==Dt&&_t(e,s)||pc(t,s)||(l=o[0])&&_t(l,s)||_t(r,s)||_t(Ts,s)||_t(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let hc=!0;function o_(e){const t=gc(e),n=e.proxy,r=e.ctx;hc=!1,t.beforeCreate&&ah(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:y,beforeUpdate:C,updated:w,activated:k,deactivated:O,beforeDestroy:N,beforeUnmount:L,destroyed:K,unmounted:D,render:Te,renderTracked:m,renderTriggered:ue,errorCaptured:I,serverPrefetch:S,expose:P,inheritAttrs:j,components:ee,directives:J,filters:ye}=t;if(d&&s_(d,r,null,e.appContext.config.unwrapInjectedRef),s)for(const z in s){const ie=s[z];pt(ie)&&(r[z]=ie.bind(n))}if(i){const z=i.call(n,n);Rt(z)&&(e.data=Dn(z))}if(hc=!0,o)for(const z in o){const ie=o[z],fe=pt(ie)?ie.bind(n,n):pt(ie.get)?ie.get.bind(n,n):mr,nt=!pt(ie)&&pt(ie.set)?ie.set.bind(n):mr,Ve=tn({get:fe,set:nt});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:ne=>Ve.value=ne})}if(l)for(const z in l)lh(l[z],r,n,z);if(c){const z=pt(c)?c.call(n):c;Reflect.ownKeys(z).forEach(ie=>{Jp(ie,z[ie])})}h&&ah(h,e,"c");function Ne(z,ie){Qe(ie)?ie.forEach(fe=>z(fe.bind(n))):ie&&z(ie.bind(n))}if(Ne(GC,p),Ne(uc,y),Ne(YC,C),Ne(XC,w),Ne(VC,k),Ne(qC,O),Ne(t_,I),Ne(e_,m),Ne(QC,ue),Ne(JC,L),Ne(nh,D),Ne(ZC,S),Qe(P))if(P.length){const z=e.exposed||(e.exposed={});P.forEach(ie=>{Object.defineProperty(z,ie,{get:()=>n[ie],set:fe=>n[ie]=fe})})}else e.exposed||(e.exposed={});Te&&e.render===mr&&(e.render=Te),j!=null&&(e.inheritAttrs=j),ee&&(e.components=ee),J&&(e.directives=J)}function s_(e,t,n=mr,r=!1){Qe(e)&&(e=mc(e));for(const i in e){const o=e[i];let s;Rt(o)?"default"in o?s=Co(o.from||i,o.default,!0):s=Co(o.from||i):s=Co(o),mn(s)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[i]=s}}function ah(e,t,n){yr(Qe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function lh(e,t,n,r){const i=r.includes(".")?Qp(n,r):()=>n[r];if(zt(e)){const o=t[e];pt(o)&&rr(i,o)}else if(pt(e))rr(i,e.bind(n));else if(Rt(e))if(Qe(e))e.forEach(o=>lh(o,t,n,r));else{const o=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(o)&&rr(i,o,e)}}function gc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(d=>il(c,d,s,!0)),il(c,t,s)),Rt(t)&&o.set(t,c),c}function il(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&il(e,o,n,!0),i&&i.forEach(s=>il(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=a_[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const a_={data:uh,props:Di,emits:Di,methods:Di,computed:Di,beforeCreate:Sn,created:Sn,beforeMount:Sn,mounted:Sn,beforeUpdate:Sn,updated:Sn,beforeDestroy:Sn,beforeUnmount:Sn,destroyed:Sn,unmounted:Sn,activated:Sn,deactivated:Sn,errorCaptured:Sn,serverPrefetch:Sn,components:Di,directives:Di,watch:u_,provide:uh,inject:l_};function uh(e,t){return t?e?function(){return kn(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function l_(e,t){return Di(mc(e),mc(t))}function mc(e){if(Qe(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[y,C]=fh(p,t,!0);kn(s,y),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!o&&!c)return Rt(e)&&r.set(e,lo),lo;if(Qe(o))for(let h=0;h-1,C[1]=k<0||w-1||_t(C,"default"))&&l.push(p)}}}const d=[s,l];return Rt(e)&&r.set(e,d),d}function dh(e){return e[0]!=="$"}function ph(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function hh(e,t){return ph(e)===ph(t)}function gh(e,t){return Qe(t)?t.findIndex(n=>hh(n,e)):pt(t)&&hh(t,e)?0:-1}const mh=e=>e[0]==="_"||e==="$stable",yc=e=>Qe(e)?e.map(Or):[Or(e)],d_=(e,t,n)=>{if(t._n)return t;const r=ac((...i)=>yc(t(...i)),n);return r._c=!1,r},vh=(e,t,n)=>{const r=e._ctx;for(const i in e){if(mh(i))continue;const o=e[i];if(pt(o))t[i]=d_(i,o,r);else if(o!=null){const s=yc(o);t[i]=()=>s}}},yh=(e,t)=>{const n=yc(t);e.slots.default=()=>n},p_=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=kt(t),ja(t,"_",n)):vh(t,e.slots={})}else e.slots={},t&&yh(e,t);ja(e.slots,al,1)},h_=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=Dt;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(kn(i,t),!n&&l===1&&delete i._):(o=!t.$stable,vh(t,i)),s=t}else t&&(yh(e,t),s={default:1});if(o)for(const l in i)!mh(l)&&!(l in s)&&delete i[l]};function bh(){return{app:null,config:{isNativeTag:Kb,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 g_=0;function m_(e,t){return function(r,i=null){pt(r)||(r=Object.assign({},r)),i!=null&&!Rt(i)&&(i=null);const o=bh(),s=new Set;let l=!1;const c=o.app={_uid:g_++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:$_,get config(){return o.config},set config(d){},use(d,...h){return s.has(d)||(d&&pt(d.install)?(s.add(d),d.install(c,...h)):pt(d)&&(s.add(d),d(c,...h))),c},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),c},component(d,h){return h?(o.components[d]=h,c):o.components[d]},directive(d,h){return h?(o.directives[d]=h,c):o.directives[d]},mount(d,h,p){if(!l){const y=xe(r,i);return y.appContext=o,h&&t?t(y,d):e(y,d,p),l=!0,c._container=d,d.__vue_app__=c,cl(y.component)||y.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,h){return o.provides[d]=h,c}};return c}}function bc(e,t,n,r,i=!1){if(Qe(e)){e.forEach((y,C)=>bc(y,t&&(Qe(t)?t[C]:t),n,r,i));return}if(ws(r)&&!i)return;const o=r.shapeFlag&4?cl(r.component)||r.component.proxy:r.el,s=i?null:o,{i:l,r:c}=e,d=t&&t.r,h=l.refs===Dt?l.refs={}:l.refs,p=l.setupState;if(d!=null&&d!==c&&(zt(d)?(h[d]=null,_t(p,d)&&(p[d]=null)):mn(d)&&(d.value=null)),pt(c))ci(c,l,12,[s,h]);else{const y=zt(c),C=mn(c);if(y||C){const w=()=>{if(e.f){const k=y?_t(p,c)?p[c]:h[c]:c.value;i?Qe(k)&&Wu(k,o):Qe(k)?k.includes(o)||k.push(o):y?(h[c]=[o],_t(p,c)&&(p[c]=h[c])):(c.value=[o],e.k&&(h[e.k]=c.value))}else y?(h[c]=s,_t(p,c)&&(p[c]=s)):C&&(c.value=s,e.k&&(h[e.k]=s))};s?(w.id=-1,Nn(w,n)):w()}}}const Nn=WC;function v_(e){return y_(e)}function y_(e,t){const n=Xb();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:l,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:y,setScopeId:C=mr,insertStaticContent:w}=e,k=(R,$,G,te=null,W=null,X=null,Ce=!1,de=null,me=!!$.dynamicChildren)=>{if(R===$)return;R&&!As(R,$)&&(te=Be(R),ne(R,W,X,!0),R=null),$.patchFlag===-2&&(me=!1,$.dynamicChildren=null);const{type:se,ref:ke,shapeFlag:_e}=$;switch(se){case sl:O(R,$,G,te);break;case fi:N(R,$,G,te);break;case wc:R==null&&L($,G,te,Ce);break;case He:ee(R,$,G,te,W,X,Ce,de,me);break;default:_e&1?Te(R,$,G,te,W,X,Ce,de,me):_e&6?J(R,$,G,te,W,X,Ce,de,me):(_e&64||_e&128)&&se.process(R,$,G,te,W,X,Ce,de,me,Le)}ke!=null&&W&&bc(ke,R&&R.ref,X,$||R,!$)},O=(R,$,G,te)=>{if(R==null)r($.el=l($.children),G,te);else{const W=$.el=R.el;$.children!==R.children&&d(W,$.children)}},N=(R,$,G,te)=>{R==null?r($.el=c($.children||""),G,te):$.el=R.el},L=(R,$,G,te)=>{[R.el,R.anchor]=w(R.children,$,G,te,R.el,R.anchor)},K=({el:R,anchor:$},G,te)=>{let W;for(;R&&R!==$;)W=y(R),r(R,G,te),R=W;r($,G,te)},D=({el:R,anchor:$})=>{let G;for(;R&&R!==$;)G=y(R),i(R),R=G;i($)},Te=(R,$,G,te,W,X,Ce,de,me)=>{Ce=Ce||$.type==="svg",R==null?m($,G,te,W,X,Ce,de,me):S(R,$,W,X,Ce,de,me)},m=(R,$,G,te,W,X,Ce,de)=>{let me,se;const{type:ke,props:_e,shapeFlag:Me,transition:Se,dirs:qe}=R;if(me=R.el=s(R.type,X,_e&&_e.is,_e),Me&8?h(me,R.children):Me&16&&I(R.children,me,null,te,W,X&&ke!=="foreignObject",Ce,de),qe&&Pi(R,null,te,"created"),ue(me,R,R.scopeId,Ce,te),_e){for(const at in _e)at!=="value"&&!Fa(at)&&o(me,at,null,_e[at],X,R.children,te,W,Oe);"value"in _e&&o(me,"value",null,_e.value),(se=_e.onVnodeBeforeMount)&&Lr(se,te,R)}qe&&Pi(R,null,te,"beforeMount");const ft=(!W||W&&!W.pendingBranch)&&Se&&!Se.persisted;ft&&Se.beforeEnter(me),r(me,$,G),((se=_e&&_e.onVnodeMounted)||ft||qe)&&Nn(()=>{se&&Lr(se,te,R),ft&&Se.enter(me),qe&&Pi(R,null,te,"mounted")},W)},ue=(R,$,G,te,W)=>{if(G&&C(R,G),te)for(let X=0;X{for(let se=me;se{const de=$.el=R.el;let{patchFlag:me,dynamicChildren:se,dirs:ke}=$;me|=R.patchFlag&16;const _e=R.props||Dt,Me=$.props||Dt;let Se;G&&Ri(G,!1),(Se=Me.onVnodeBeforeUpdate)&&Lr(Se,G,$,R),ke&&Pi($,R,G,"beforeUpdate"),G&&Ri(G,!0);const qe=W&&$.type!=="foreignObject";if(se?P(R.dynamicChildren,se,de,G,te,qe,X):Ce||ie(R,$,de,null,G,te,qe,X,!1),me>0){if(me&16)j(de,$,_e,Me,G,te,W);else if(me&2&&_e.class!==Me.class&&o(de,"class",null,Me.class,W),me&4&&o(de,"style",_e.style,Me.style,W),me&8){const ft=$.dynamicProps;for(let at=0;at{Se&&Lr(Se,G,$,R),ke&&Pi($,R,G,"updated")},te)},P=(R,$,G,te,W,X,Ce)=>{for(let de=0;de<$.length;de++){const me=R[de],se=$[de],ke=me.el&&(me.type===He||!As(me,se)||me.shapeFlag&70)?p(me.el):G;k(me,se,ke,null,te,W,X,Ce,!0)}},j=(R,$,G,te,W,X,Ce)=>{if(G!==te){if(G!==Dt)for(const de in G)!Fa(de)&&!(de in te)&&o(R,de,G[de],null,Ce,$.children,W,X,Oe);for(const de in te){if(Fa(de))continue;const me=te[de],se=G[de];me!==se&&de!=="value"&&o(R,de,se,me,Ce,$.children,W,X,Oe)}"value"in te&&o(R,"value",G.value,te.value)}},ee=(R,$,G,te,W,X,Ce,de,me)=>{const se=$.el=R?R.el:l(""),ke=$.anchor=R?R.anchor:l("");let{patchFlag:_e,dynamicChildren:Me,slotScopeIds:Se}=$;Se&&(de=de?de.concat(Se):Se),R==null?(r(se,G,te),r(ke,G,te),I($.children,G,ke,W,X,Ce,de,me)):_e>0&&_e&64&&Me&&R.dynamicChildren?(P(R.dynamicChildren,Me,G,W,X,Ce,de),($.key!=null||W&&$===W.subTree)&&Cc(R,$,!0)):ie(R,$,G,ke,W,X,Ce,de,me)},J=(R,$,G,te,W,X,Ce,de,me)=>{$.slotScopeIds=de,R==null?$.shapeFlag&512?W.ctx.activate($,G,te,Ce,me):ye($,G,te,W,X,Ce,me):je(R,$,me)},ye=(R,$,G,te,W,X,Ce)=>{const de=R.component=O_(R,te,W);if(eh(R)&&(de.ctx.renderer=Le),L_(de),de.asyncDep){if(W&&W.registerDep(de,Ne),!R.el){const me=de.subTree=xe(fi);N(null,me,$,G)}return}Ne(de,R,$,G,W,X,Ce)},je=(R,$,G)=>{const te=$.component=R.component;if(HC(R,$,G))if(te.asyncDep&&!te.asyncResolved){z(te,$,G);return}else te.next=$,RC(te.update),te.update();else $.el=R.el,te.vnode=$},Ne=(R,$,G,te,W,X,Ce)=>{const de=()=>{if(R.isMounted){let{next:ke,bu:_e,u:Me,parent:Se,vnode:qe}=R,ft=ke,at;Ri(R,!1),ke?(ke.el=qe.el,z(R,ke,Ce)):ke=qe,_e&&Ha(_e),(at=ke.props&&ke.props.onVnodeBeforeUpdate)&&Lr(at,Se,ke,qe),Ri(R,!0);const Ct=lc(R),Ft=R.subTree;R.subTree=Ct,k(Ft,Ct,p(Ft.el),Be(Ft),R,W,X),ke.el=Ct.el,ft===null&&jC(R,Ct.el),Me&&Nn(Me,W),(at=ke.props&&ke.props.onVnodeUpdated)&&Nn(()=>Lr(at,Se,ke,qe),W)}else{let ke;const{el:_e,props:Me}=$,{bm:Se,m:qe,parent:ft}=R,at=ws($);if(Ri(R,!1),Se&&Ha(Se),!at&&(ke=Me&&Me.onVnodeBeforeMount)&&Lr(ke,ft,$),Ri(R,!0),_e&&mt){const Ct=()=>{R.subTree=lc(R),mt(_e,R.subTree,R,W,null)};at?$.type.__asyncLoader().then(()=>!R.isUnmounted&&Ct()):Ct()}else{const Ct=R.subTree=lc(R);k(null,Ct,G,te,R,W,X),$.el=Ct.el}if(qe&&Nn(qe,W),!at&&(ke=Me&&Me.onVnodeMounted)){const Ct=$;Nn(()=>Lr(ke,ft,Ct),W)}($.shapeFlag&256||ft&&ws(ft.vnode)&&ft.vnode.shapeFlag&256)&&R.a&&Nn(R.a,W),R.isMounted=!0,$=G=te=null}},me=R.effect=new Xu(de,()=>sc(se),R.scope),se=R.update=()=>me.run();se.id=R.uid,Ri(R,!0),se()},z=(R,$,G)=>{$.component=R;const te=R.vnode.props;R.vnode=$,R.next=null,f_(R,$.props,te,G),h_(R,$.children,G),po(),qp(),ho()},ie=(R,$,G,te,W,X,Ce,de,me=!1)=>{const se=R&&R.children,ke=R?R.shapeFlag:0,_e=$.children,{patchFlag:Me,shapeFlag:Se}=$;if(Me>0){if(Me&128){nt(se,_e,G,te,W,X,Ce,de,me);return}else if(Me&256){fe(se,_e,G,te,W,X,Ce,de,me);return}}Se&8?(ke&16&&Oe(se,W,X),_e!==se&&h(G,_e)):ke&16?Se&16?nt(se,_e,G,te,W,X,Ce,de,me):Oe(se,W,X,!0):(ke&8&&h(G,""),Se&16&&I(_e,G,te,W,X,Ce,de,me))},fe=(R,$,G,te,W,X,Ce,de,me)=>{R=R||lo,$=$||lo;const se=R.length,ke=$.length,_e=Math.min(se,ke);let Me;for(Me=0;Me<_e;Me++){const Se=$[Me]=me?di($[Me]):Or($[Me]);k(R[Me],Se,G,null,W,X,Ce,de,me)}se>ke?Oe(R,W,X,!0,!1,_e):I($,G,te,W,X,Ce,de,me,_e)},nt=(R,$,G,te,W,X,Ce,de,me)=>{let se=0;const ke=$.length;let _e=R.length-1,Me=ke-1;for(;se<=_e&&se<=Me;){const Se=R[se],qe=$[se]=me?di($[se]):Or($[se]);if(As(Se,qe))k(Se,qe,G,null,W,X,Ce,de,me);else break;se++}for(;se<=_e&&se<=Me;){const Se=R[_e],qe=$[Me]=me?di($[Me]):Or($[Me]);if(As(Se,qe))k(Se,qe,G,null,W,X,Ce,de,me);else break;_e--,Me--}if(se>_e){if(se<=Me){const Se=Me+1,qe=SeMe)for(;se<=_e;)ne(R[se],W,X,!0),se++;else{const Se=se,qe=se,ft=new Map;for(se=qe;se<=Me;se++){const De=$[se]=me?di($[se]):Or($[se]);De.key!=null&&ft.set(De.key,se)}let at,Ct=0;const Ft=Me-qe+1;let an=!1,Ht=0;const fn=new Array(Ft);for(se=0;se=Ft){ne(De,W,X,!0);continue}let Fe;if(De.key!=null)Fe=ft.get(De.key);else for(at=qe;at<=Me;at++)if(fn[at-qe]===0&&As(De,$[at])){Fe=at;break}Fe===void 0?ne(De,W,X,!0):(fn[Fe-qe]=se+1,Fe>=Ht?Ht=Fe:an=!0,k(De,$[Fe],G,null,W,X,Ce,de,me),Ct++)}const Q=an?b_(fn):lo;for(at=Q.length-1,se=Ft-1;se>=0;se--){const De=qe+se,Fe=$[De],it=De+1{const{el:X,type:Ce,transition:de,children:me,shapeFlag:se}=R;if(se&6){Ve(R.component.subTree,$,G,te);return}if(se&128){R.suspense.move($,G,te);return}if(se&64){Ce.move(R,$,G,Le);return}if(Ce===He){r(X,$,G);for(let _e=0;_ede.enter(X),W);else{const{leave:_e,delayLeave:Me,afterLeave:Se}=de,qe=()=>r(X,$,G),ft=()=>{_e(X,()=>{qe(),Se&&Se()})};Me?Me(X,qe,ft):ft()}else r(X,$,G)},ne=(R,$,G,te=!1,W=!1)=>{const{type:X,props:Ce,ref:de,children:me,dynamicChildren:se,shapeFlag:ke,patchFlag:_e,dirs:Me}=R;if(de!=null&&bc(de,null,G,R,!0),ke&256){$.ctx.deactivate(R);return}const Se=ke&1&&Me,qe=!ws(R);let ft;if(qe&&(ft=Ce&&Ce.onVnodeBeforeUnmount)&&Lr(ft,$,R),ke&6)Ae(R.component,G,te);else{if(ke&128){R.suspense.unmount(G,te);return}Se&&Pi(R,null,$,"beforeUnmount"),ke&64?R.type.remove(R,$,G,W,Le,te):se&&(X!==He||_e>0&&_e&64)?Oe(se,$,G,!1,!0):(X===He&&_e&384||!W&&ke&16)&&Oe(me,$,G),te&&ge(R)}(qe&&(ft=Ce&&Ce.onVnodeUnmounted)||Se)&&Nn(()=>{ft&&Lr(ft,$,R),Se&&Pi(R,null,$,"unmounted")},G)},ge=R=>{const{type:$,el:G,anchor:te,transition:W}=R;if($===He){we(G,te);return}if($===wc){D(R);return}const X=()=>{i(G),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(R.shapeFlag&1&&W&&!W.persisted){const{leave:Ce,delayLeave:de}=W,me=()=>Ce(G,X);de?de(R.el,X,me):me()}else X()},we=(R,$)=>{let G;for(;R!==$;)G=y(R),i(R),R=G;i($)},Ae=(R,$,G)=>{const{bum:te,scope:W,update:X,subTree:Ce,um:de}=R;te&&Ha(te),W.stop(),X&&(X.active=!1,ne(Ce,R,$,G)),de&&Nn(de,$),Nn(()=>{R.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve())},Oe=(R,$,G,te=!1,W=!1,X=0)=>{for(let Ce=X;CeR.shapeFlag&6?Be(R.component.subTree):R.shapeFlag&128?R.suspense.next():y(R.anchor||R.el),Xe=(R,$,G)=>{R==null?$._vnode&&ne($._vnode,null,null,!0):k($._vnode||null,R,$,null,null,null,G),qp(),zp(),$._vnode=R},Le={p:k,um:ne,m:Ve,r:ge,mt:ye,mc:I,pc:ie,pbc:P,n:Be,o:e};let rt,mt;return t&&([rt,mt]=t(Le)),{render:Xe,hydrate:rt,createApp:m_(Xe,rt)}}function Ri({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Cc(e,t,n=!1){const r=e.children,i=t.children;if(Qe(r)&&Qe(i))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}const C_=e=>e.__isTeleport,xs=e=>e&&(e.disabled||e.disabled===""),Ch=e=>typeof SVGElement<"u"&&e instanceof SVGElement,_c=(e,t)=>{const n=e&&e.to;return zt(n)?t?t(n):null:n},__={__isTeleport:!0,process(e,t,n,r,i,o,s,l,c,d){const{mc:h,pc:p,pbc:y,o:{insert:C,querySelector:w,createText:k,createComment:O}}=d,N=xs(t.props);let{shapeFlag:L,children:K,dynamicChildren:D}=t;if(e==null){const Te=t.el=k(""),m=t.anchor=k("");C(Te,n,r),C(m,n,r);const ue=t.target=_c(t.props,w),I=t.targetAnchor=k("");ue&&(C(I,ue),s=s||Ch(ue));const S=(P,j)=>{L&16&&h(K,P,j,i,o,s,l,c)};N?S(n,m):ue&&S(ue,I)}else{t.el=e.el;const Te=t.anchor=e.anchor,m=t.target=e.target,ue=t.targetAnchor=e.targetAnchor,I=xs(e.props),S=I?n:m,P=I?Te:ue;if(s=s||Ch(m),D?(y(e.dynamicChildren,D,S,i,o,s,l),Cc(e,t,!0)):c||p(e,t,S,P,i,o,s,l,!1),N)I||ol(t,n,Te,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=_c(t.props,w);j&&ol(t,j,null,d,0)}else I&&ol(t,m,ue,d,1)}_h(t)},remove(e,t,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:l,children:c,anchor:d,targetAnchor:h,target:p,props:y}=e;if(p&&o(h),(s||!xs(y))&&(o(d),l&16))for(let C=0;C0?br||lo:null,x_(),Ss>0&&br&&br.push(e),e}function H(e,t,n,r,i,o){return Th(T(e,t,n,r,i,o,!0))}function Ze(e,t,n,r,i){return Th(xe(e,t,n,r,i,!0))}function xh(e){return e?e.__v_isVNode===!0:!1}function As(e,t){return e.type===t.type&&e.key===t.key}const al="__vInternal",kh=({key:e})=>e??null,ll=({ref:e,ref_key:t,ref_for:n})=>e!=null?zt(e)||mn(e)||pt(e)?{i:dn,r:e,k:t,f:!!n}:e:null;function T(e,t=null,n=null,r=0,i=null,o=e===He?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kh(t),ref:t&&ll(t),scopeId:Qa,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:dn};return l?(Tc(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=zt(n)?8:16),Ss>0&&!s&&br&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&br.push(c),c}const xe=k_;function k_(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===rh)&&(e=fi),xh(e)){const l=_o(e,t,!0);return n&&Tc(l,n),Ss>0&&!o&&br&&(l.shapeFlag&6?br[br.indexOf(e)]=l:br.push(l)),l.patchFlag|=-2,l}if(N_(e)&&(e=e.__vccOpts),t){t=S_(t);let{class:l,style:c}=t;l&&!zt(l)&&(t.class=lt(l)),Rt(c)&&(Mp(c)&&!Qe(c)&&(c=kn({},c)),t.style=bt(c))}const s=zt(e)?1:UC(e)?128:C_(e)?64:Rt(e)?4:pt(e)?2:0;return T(e,t,n,r,i,s,o,!0)}function S_(e){return e?Mp(e)||al in e?kn({},e):e:null}function _o(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,l=t?ul(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&kh(l),ref:t&&t.ref?n&&i?Qe(i)?i.concat(ll(t)):[i,ll(t)]:ll(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_o(e.ssContent),ssFallback:e.ssFallback&&_o(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xt(e=" ",t=0){return xe(sl,null,e,t)}function Re(e="",t=!1){return t?(E(),Ze(fi,null,e)):xe(fi,null,e)}function Or(e){return e==null||typeof e=="boolean"?xe(fi):Qe(e)?xe(He,null,e.slice()):typeof e=="object"?di(e):xe(sl,null,String(e))}function di(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_o(e)}function Tc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Qe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Tc(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(al in t)?t._ctx=dn:i===3&&dn&&(dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:dn},n=32):(t=String(t),r&64?(n=16,t=[Xt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ul(...e){const t={};for(let n=0;nGt||dn,wo=e=>{Gt=e,e.scope.on()},Ni=()=>{Gt&&Gt.scope.off(),Gt=null};function Ah(e){return e.vnode.shapeFlag&4}let Es=!1;function L_(e,t=!1){Es=t;const{props:n,children:r}=e.vnode,i=Ah(e);c_(e,n,i,t),p_(e,r);const o=i?I_(e,t):void 0;return Es=!1,o}function I_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fp(new Proxy(e.ctx,i_));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?D_(e):null;wo(e),po();const o=ci(r,e,0,[e.props,i]);if(ho(),Ni(),hp(o)){if(o.then(Ni,Ni),t)return o.then(s=>{Eh(e,s,t)}).catch(s=>{Xa(s,e,0)});e.asyncDep=o}else Eh(e,o,t)}else Lh(e,t)}function Eh(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rt(t)&&(e.setupState=Up(t)),Lh(e,n)}let Oh;function Lh(e,t,n){const r=e.type;if(!e.render){if(!t&&Oh&&!r.render){const i=r.template||gc(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=kn(kn({isCustomElement:o,delimiters:l},s),c);r.render=Oh(i,d)}}e.render=r.render||mr}wo(e),po(),o_(e),ho(),Ni()}function P_(e){return new Proxy(e.attrs,{get(t,n){return Pn(e,"get","$attrs"),t[n]}})}function D_(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=P_(e))},slots:e.slots,emit:e.emit,expose:t}}function cl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Up(Fp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ts)return Ts[n](e)},has(t,n){return n in t||n in Ts}}))}function R_(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function N_(e){return pt(e)&&"__vccOpts"in e}const tn=(e,t)=>IC(e,t,Es),M_=Symbol(""),F_=()=>Co(M_),$_="3.2.47",B_="http://www.w3.org/2000/svg",Mi=typeof document<"u"?document:null,Ih=Mi&&Mi.createElement("template"),H_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Mi.createElementNS(B_,e):Mi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Mi.createTextNode(e),createComment:e=>Mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Ih.innerHTML=r?`${e}`:e;const l=Ih.content;if(r){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function j_(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 U_(e,t,n){const r=e.style,i=zt(n);if(n&&!i){if(t&&!zt(t))for(const o in t)n[o]==null&&xc(r,o,"");for(const o in n)xc(r,o,n[o])}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Ph=/\s*!important$/;function xc(e,t,n){if(Qe(n))n.forEach(r=>xc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=W_(e,t);Ph.test(n)?e.setProperty(fo(r),n.replace(Ph,""),"important"):e[r]=n}}const Dh=["Webkit","Moz","ms"],kc={};function W_(e,t){const n=kc[t];if(n)return n;let r=Ar(t);if(r!=="filter"&&r in e)return kc[t]=r;r=Ba(r);for(let i=0;iSc||(Y_.then(()=>Sc=0),Sc=Date.now());function J_(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;yr(Z_(r,n.value),t,5,[r])};return n.value=e,n.attached=X_(),n}function Z_(e,t){if(Qe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Mh=/^on[a-z]/,Q_=(e,t,n,r,i=!1,o,s,l,c)=>{t==="class"?j_(e,r,i):t==="style"?U_(e,n,r):Ma(t)?Uu(t)||z_(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):e1(e,t,r,i))?V_(e,t,r,o,s,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),K_(e,t,r,i))};function e1(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Mh.test(t)&&pt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Mh.test(t)&&zt(n)?!1:t in e}const To=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Qe(t)?n=>Ha(t,n):t};function t1(e){e.target.composing=!0}function Fh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ir={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=To(i);const o=r||i.props&&i.props.type==="number";pi(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Ua(l)),e._assign(l)}),n&&pi(e,"change",()=>{e.value=e.value.trim()}),t||(pi(e,"compositionstart",t1),pi(e,"compositionend",Fh),pi(e,"change",Fh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=To(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Ua(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},n1={deep:!0,created(e,t,n){e._assign=To(n),pi(e,"change",()=>{const r=e._modelValue,i=Ls(e),o=e.checked,s=e._assign;if(Qe(r)){const l=ju(r,i),c=l!==-1;if(o&&!c)s(r.concat(i));else if(!o&&c){const d=[...r];d.splice(l,1),s(d)}}else if(co(r)){const l=new Set(r);o?l.add(i):l.delete(i),s(l)}else s(Hh(e,o))})},mounted:$h,beforeUpdate(e,t,n){e._assign=To(n),$h(e,t,n)}};function $h(e,{value:t,oldValue:n},r){e._modelValue=t,Qe(t)?e.checked=ju(t,r.props.value)>-1:co(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=hs(t,Hh(e,!0)))}const Os={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=co(t);pi(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Ua(Ls(s)):Ls(s));e._assign(e.multiple?i?new Set(o):o:o[0])}),e._assign=To(r)},mounted(e,{value:t}){Bh(e,t)},beforeUpdate(e,t,n){e._assign=To(n)},updated(e,{value:t}){Bh(e,t)}};function Bh(e,t){const n=e.multiple;if(!(n&&!Qe(t)&&!co(t))){for(let r=0,i=e.options.length;r-1:o.selected=t.has(s);else if(hs(Ls(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ls(e){return"_value"in e?e._value:e.value}function Hh(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const r1=["ctrl","shift","alt","meta"],i1={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)=>r1.some(n=>e[`${n}Key`]&&!t.includes(n))},gt=(e,t)=>(n,...r)=>{for(let i=0;i{Is(e,!1)}):Is(e,t))},beforeUnmount(e,{value:t}){Is(e,t)}};function Is(e,t){e.style.display=t?e._vod:"none"}const o1=kn({patchProp:Q_},H_);let jh;function s1(){return jh||(jh=v_(o1))}const a1=(...e)=>{const t=s1().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=l1(r);if(!i)return;const o=t._component;!pt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function l1(e){return zt(e)?document.querySelector(e):e}/**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */function Uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ir(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function f1(e,t){if(e==null)return{};var n=c1(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var d1="1.15.0";function qr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var zr=qr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ps=qr(/Edge/i),Wh=qr(/firefox/i),Ds=qr(/safari/i)&&!qr(/chrome/i)&&!qr(/android/i),Kh=qr(/iP(ad|od|hone)/i),Vh=qr(/chrome/i)&&qr(/android/i),qh={capture:!1,passive:!1};function St(e,t,n){e.addEventListener(t,n,!zr&&qh)}function wt(e,t,n){e.removeEventListener(t,n,!zr&&qh)}function dl(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function p1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Pr(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&dl(e,t):dl(e,t))||r&&e===n)return e;if(e===n)break}while(e=p1(e))}return null}var zh=/\s+/g;function Vn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(zh," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(zh," ")}}function et(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function xo(e,t){var n="";if(typeof e=="string")n=e;else do{var r=et(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Gh(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o:s=i<=o,!s)return r;if(r===Dr())break;r=hi(r,!1)}return!1}function ko(e,t,n,r){for(var i=0,o=0,s=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=f1(r,_1);Ns.pluginEvent.bind(tt)(t,n,Ir({dragEl:Ee,parentEl:Kt,ghostEl:dt,rootEl:$t,nextEl:Fi,lastDownEl:pl,cloneEl:Ut,cloneHidden:gi,dragStarted:Fs,putSortable:pn,activeSortable:tt.active,originalEvent:i,oldIndex:Ao,oldDraggableIndex:Ms,newIndex:zn,newDraggableIndex:mi,hideGhostForTarget:sg,unhideGhostForTarget:ag,cloneNowHidden:function(){gi=!0},cloneNowShown:function(){gi=!1},dispatchSortableEvent:function(l){An({sortable:n,name:l,originalEvent:i})}},o))};function An(e){C1(Ir({putSortable:pn,cloneEl:Ut,targetEl:Ee,rootEl:$t,oldIndex:Ao,oldDraggableIndex:Ms,newIndex:zn,newDraggableIndex:mi},e))}var Ee,Kt,dt,$t,Fi,pl,Ut,gi,Ao,zn,Ms,mi,hl,pn,Eo=!1,gl=!1,ml=[],$i,Cr,Lc,Ic,eg,tg,Fs,Oo,$s,Bs=!1,vl=!1,yl,yn,Pc=[],Dc=!1,bl=[],Cl=typeof document<"u",_l=Kh,ng=Ps||zr?"cssFloat":"float",w1=Cl&&!Vh&&!Kh&&"draggable"in document.createElement("div"),rg=function(){if(Cl){if(zr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),ig=function(t,n){var r=et(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=ko(t,0,n),s=ko(t,1,n),l=o&&et(o),c=s&&et(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+nn(o).width,h=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+nn(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var p=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===p)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=i&&r[ng]==="none"||s&&r[ng]==="none"&&d+h>i)?"vertical":"horizontal"},T1=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,s=r?t.width:t.height,l=r?n.left:n.top,c=r?n.right:n.bottom,d=r?n.width:n.height;return i===l||o===c||i+s/2===l+d/2},x1=function(t,n){var r;return ml.some(function(i){var o=i[qn].options.emptyInsertThreshold;if(!(!o||Ac(i))){var s=nn(i),l=t>=s.left-o&&t<=s.right+o,c=n>=s.top-o&&n<=s.bottom+o;if(l&&c)return r=i}}),r},og=function(t){function n(o,s){return function(l,c,d,h){var p=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(o==null&&(s||p))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return n(o(l,c,d,h),s)(l,c,d,h);var y=(s?l:c).options.group.name;return o===!0||typeof o=="string"&&o===y||o.join&&o.indexOf(y)>-1}}var r={},i=t.group;(!i||fl(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},sg=function(){!rg&&dt&&et(dt,"display","none")},ag=function(){!rg&&dt&&et(dt,"display","")};Cl&&!Vh&&document.addEventListener("click",function(e){if(gl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),gl=!1,!1},!0);var Bi=function(t){if(Ee){t=t.touches?t.touches[0]:t;var n=x1(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[qn]._onDragOver(r)}}},k1=function(t){Ee&&Ee.parentNode[qn]._isOutsideThisEl(t.target)};function tt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Vr({},t),e[qn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ig(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:tt.supportPointer!==!1&&"PointerEvent"in window&&!Ds,emptyInsertThreshold:5};Ns.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);og(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:w1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?St(e,"pointerdown",this._onTapStart):(St(e,"mousedown",this._onTapStart),St(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(St(e,"dragover",this),St(e,"dragenter",this)),ml.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Vr(this,v1())}tt.prototype={constructor:tt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Oo=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ee):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,h=i.filter;if(D1(r),!Ee&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ds&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Pr(c,i.draggable,r,!1),!(c&&c.animated)&&pl!==c)){if(Ao=or(c),Ms=or(c,i.draggable),typeof h=="function"){if(h.call(this,t,c,this)){An({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:r,fromEl:r}),Mn("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=Pr(d,p.trim(),r,!1),p)return An({sortable:n,rootEl:p,name:"filter",targetEl:c,fromEl:r,toEl:r}),Mn("filter",n,{evt:t}),!0}),h)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!Pr(d,i.handle,r,!1)||this._prepareDragStart(t,l,c)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,s=i.options,l=o.ownerDocument,c;if(r&&!Ee&&r.parentNode===o){var d=nn(r);if($t=o,Ee=r,Kt=Ee.parentNode,Fi=Ee.nextSibling,pl=r,hl=s.group,tt.dragged=Ee,$i={target:Ee,clientX:(n||t).clientX,clientY:(n||t).clientY},eg=$i.clientX-d.left,tg=$i.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ee.style["will-change"]="all",c=function(){if(Mn("delayEnded",i,{evt:t}),tt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Wh&&i.nativeDraggable&&(Ee.draggable=!0),i._triggerDragStart(t,n),An({sortable:i,name:"choose",originalEvent:t}),Vn(Ee,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Gh(Ee,h.trim(),Rc)}),St(l,"dragover",Bi),St(l,"mousemove",Bi),St(l,"touchmove",Bi),St(l,"mouseup",i._onDrop),St(l,"touchend",i._onDrop),St(l,"touchcancel",i._onDrop),Wh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ee.draggable=!0),Mn("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ps||zr))){if(tt.eventCanceled){this._onDrop();return}St(l,"mouseup",i._disableDelayedDrag),St(l,"touchend",i._disableDelayedDrag),St(l,"touchcancel",i._disableDelayedDrag),St(l,"mousemove",i._delayedDragTouchMoveHandler),St(l,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&St(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ee&&Rc(Ee),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;wt(t,"mouseup",this._disableDelayedDrag),wt(t,"touchend",this._disableDelayedDrag),wt(t,"touchcancel",this._disableDelayedDrag),wt(t,"mousemove",this._delayedDragTouchMoveHandler),wt(t,"touchmove",this._delayedDragTouchMoveHandler),wt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?St(document,"pointermove",this._onTouchMove):n?St(document,"touchmove",this._onTouchMove):St(document,"mousemove",this._onTouchMove):(St(Ee,"dragend",this),St($t,"dragstart",this._onDragStart));try{document.selection?Tl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Eo=!1,$t&&Ee){Mn("dragStarted",this,{evt:n}),this.nativeDraggable&&St(document,"dragover",k1);var r=this.options;!t&&Vn(Ee,r.dragClass,!1),Vn(Ee,r.ghostClass,!0),tt.active=this,t&&this._appendGhost(),An({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Cr){this._lastX=Cr.clientX,this._lastY=Cr.clientY,sg();for(var t=document.elementFromPoint(Cr.clientX,Cr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Cr.clientX,Cr.clientY),t!==n);)n=t;if(Ee.parentNode[qn]._isOutsideThisEl(t),n)do{if(n[qn]){var r=void 0;if(r=n[qn]._onDragOver({clientX:Cr.clientX,clientY:Cr.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);ag()}},_onTouchMove:function(t){if($i){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,s=dt&&xo(dt,!0),l=dt&&s&&s.a,c=dt&&s&&s.d,d=_l&&yn&&Xh(yn),h=(o.clientX-$i.clientX+i.x)/(l||1)+(d?d[0]-Pc[0]:0)/(l||1),p=(o.clientY-$i.clientY+i.y)/(c||1)+(d?d[1]-Pc[1]:0)/(c||1);if(!tt.active&&!Eo){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0&&(An({rootEl:Kt,name:"add",toEl:Kt,fromEl:$t,originalEvent:t}),An({sortable:this,name:"remove",toEl:Kt,originalEvent:t}),An({rootEl:Kt,name:"sort",toEl:Kt,fromEl:$t,originalEvent:t}),An({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),pn&&pn.save()):zn!==Ao&&zn>=0&&(An({sortable:this,name:"update",toEl:Kt,originalEvent:t}),An({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),tt.active&&((zn==null||zn===-1)&&(zn=Ao,mi=Ms),An({sortable:this,name:"end",toEl:Kt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Mn("nulling",this),$t=Ee=Kt=dt=Fi=Ut=pl=gi=$i=Cr=Fs=zn=mi=Ao=Ms=Oo=$s=pn=hl=tt.dragged=tt.ghost=tt.clone=tt.active=null,bl.forEach(function(t){t.checked=!0}),bl.length=Lc=Ic=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ee&&(this._onDragOver(t),S1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,s=this.options;ir.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function L1(e,t,n,r,i,o,s,l){var c=r?e.clientY:e.clientX,d=r?n.height:n.width,h=r?n.top:n.left,p=r?n.bottom:n.right,y=!1;if(!s){if(l&&ylh+d*o/2:cp-yl)return-$s}else if(c>h+d*(1-i)/2&&cp-d*o/2)?c>h+d/2?1:-1:0}function I1(e){return or(Ee){if(e==null||e===!1||e===""||e.trim()==="")return[];e=e.replace(/,/g,","),e=e.replace(/。/g,","),e=e.replace(/、/g,","),e=e.replace(/;/g,","),e=e.replace(/./g,","),e=e.replace(/\t/g,` `),e=e.replace(/\r/g,` `),e=e.replace(/\n+/g,` `);const r={"(":")","[":"]","<":">","{":"}"},i=Object.keys(r);let o=e.length,s="",l="",c="",d=0,h=[];for(let p=0;p=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?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())},clone:function(){return Pe(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(q1,arguments)},brighten:function(){return this._applyModification(z1,arguments)},darken:function(){return this._applyModification(G1,arguments)},desaturate:function(){return this._applyModification(W1,arguments)},saturate:function(){return this._applyModification(K1,arguments)},greyscale:function(){return this._applyModification(V1,arguments)},spin:function(){return this._applyModification(Y1,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Z1,arguments)},complement:function(){return this._applyCombination(X1,arguments)},monochromatic:function(){return this._applyCombination(Q1,arguments)},splitcomplement:function(){return this._applyCombination(J1,arguments)},triad:function(){return this._applyCombination(hg,[3])},tetrad:function(){return this._applyCombination(hg,[4])}},Pe.fromRatio=function(e,t){if(Al(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Us(e[r]));e=n}return Pe(e,t)};function $1(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,l=!1;return typeof e=="string"&&(e=iw(e)),Al(e)=="object"&&(Gr(e.r)&&Gr(e.g)&&Gr(e.b)?(t=B1(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Gr(e.h)&&Gr(e.s)&&Gr(e.v)?(r=Us(e.s),i=Us(e.v),t=j1(e.h,r,i),s=!0,l="hsv"):Gr(e.h)&&Gr(e.s)&&Gr(e.l)&&(r=Us(e.s),o=Us(e.l),t=H1(e.h,r,o),s=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=gg(n),{ok:s,format:e.format||l,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}}function B1(e,t,n){return{r:Bt(e,255)*255,g:Bt(t,255)*255,b:Bt(n,255)*255}}function cg(e,t,n){e=Bt(e,255),t=Bt(t,255),n=Bt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,l=(r+i)/2;if(r==i)o=s=0;else{var c=r-i;switch(s=l>.5?c/(2-r-i):c/(r+i),r){case e:o=(t-n)/c+(t1&&(p-=1),p<1/6?d+(h-d)*6*p:p<1/2?h:p<2/3?d+(h-d)*(2/3-p)*6:d}if(t===0)r=i=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=s(c,l,e+1/3),i=s(c,l,e),o=s(c,l,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function fg(e,t,n){e=Bt(e,255),t=Bt(t,255),n=Bt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,l=r,c=r-i;if(s=r===0?0:c/r,r==i)o=0;else{switch(r){case e:o=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Pe(r));return o}function Q1(e,t){t=t||6;for(var n=Pe(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],l=1/t;t--;)s.push(Pe({h:r,s:i,v:o})),o=(o+l)%1;return s}Pe.mix=function(e,t,n){n=n===0?0:n||50;var r=Pe(e).toRgb(),i=Pe(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return Pe(s)},Pe.readability=function(e,t){var n=Pe(e),r=Pe(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Pe.isReadable=function(e,t,n){var r=Pe.readability(e,t),i,o;switch(o=!1,i=ow(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},Pe.mostReadable=function(e,t,n){var r=null,i=0,o,s,l,c;n=n||{},s=n.includeFallbackColors,l=n.level,c=n.size;for(var d=0;di&&(i=o,r=Pe(t[d]));return Pe.isReadable(e,r,{level:l,size:c})||!s?r:(n.includeFallbackColors=!1,Pe.mostReadable(e,["#fff","#000"],n))};var Wc=Pe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ew=Pe.hexNames=tw(Wc);function tw(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function gg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bt(e,t){nw(e)&&(e="100%");var n=rw(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function El(e){return Math.min(1,Math.max(0,e))}function Gn(e){return parseInt(e,16)}function nw(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function rw(e){return typeof e=="string"&&e.indexOf("%")!=-1}function _r(e){return e.length==1?"0"+e:""+e}function Us(e){return e<=1&&(e=e*100+"%"),e}function mg(e){return Math.round(parseFloat(e)*255).toString(16)}function vg(e){return Gn(e)/255}var wr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),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 Gr(e){return!!wr.CSS_UNIT.exec(e)}function iw(e){e=e.replace(M1,"").replace(F1,"").toLowerCase();var t=!1;if(Wc[e])e=Wc[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=wr.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=wr.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wr.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=wr.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wr.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=wr.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wr.hex8.exec(e))?{r:Gn(n[1]),g:Gn(n[2]),b:Gn(n[3]),a:vg(n[4]),format:t?"name":"hex8"}:(n=wr.hex6.exec(e))?{r:Gn(n[1]),g:Gn(n[2]),b:Gn(n[3]),format:t?"name":"hex"}:(n=wr.hex4.exec(e))?{r:Gn(n[1]+""+n[1]),g:Gn(n[2]+""+n[2]),b:Gn(n[3]+""+n[3]),a:vg(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=wr.hex3.exec(e))?{r:Gn(n[1]+""+n[1]),g:Gn(n[2]+""+n[2]),b:Gn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function ow(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const vi={},ve={loraRegex:/^\$/,lycoRegex:/^\$/,weightNumRegex:/(.*):([0-9\.]+)/,weightNumRegexEN:/(.*):\s*([0-9\.]+)/,weightNumRegexCN:/(.*):\s*([0-9\.]+)/,bracketsEN:[{"(":"(",")":")"},{"[":"[","]":"]"},{"{":"{","}":"}"},{"<":"<",">":">"}],bracketsCN:[{"(":"(",")":")"},{"【":"[","】":"]"},{"《":"<","》":">"},{"「":"{","」":"}"},{"『":"{","』":"}"},{"〈":"<","〉":">"},{"﹝":"(","﹞":")"},{"﹛":"{","﹜":"}"},{"﹙":"(","﹚":")"}],replaceTag(e){return typeof e!="string"||e===""||(e=this.replaceBrackets(e),this.weightNumRegexEN.test(e)&&(e=e.replace(this.weightNumRegexEN,"$1:$2")),this.weightNumRegexCN.test(e)&&(e=e.replace(this.weightNumRegexCN,"$1:$2"))),e},replaceBrackets(e){const t=e.length;if(t===0)return e;let n={};this.bracketsCN.forEach(o=>{for(const s in o)n[s]=o[s]});let r=e[0],i=e[t-1];return typeof n[r]<"u"&&(e=n[r]+e.substring(1)),typeof n[i]<"u"&&(e=e.substring(0,t-1)+n[i]),e},hasBrackets(e){const t=e.length;if(t===0)return!1;let n=[];this.bracketsEN.forEach(o=>{let s=[];for(const l in o)s.push(l);n.push(s)}),this.bracketsCN.forEach(o=>{let s=[];for(const l in o)s.push(l);n.push(s)});let r=e[0],i=e[t-1];for(const o of n)if(o[0]===r&&o[1]===i)return o;return!1},splitTag(e){let t={left:"",value:"",right:""},n=e.match(/^([\(\<\{\[]+)(.*)$/);return!n||(t.left=n[1],e=n[2],n=e.match(/((\:[0-9\.]+)?[\)\>\}\]]+)$/),!n)?(t.value=e,t):(t.right=n[1],e=e.substring(0,e.length-t.right.length),t.value=e,t)},splitTags(e,t=!1,n=!1){return N1(e,t,n)},canTranslate(e){return!(e.trim()===""||e[0]==="<"&&e[e.length-1]===">"||/^[0-9`~!@#$%^&*()_+\-=\[\]{}\\|;:'",.\/<>?]+$/.test(e)||/^[a-zA-Z]$/.test(e))},isEnglish(e){const t=e.length;if(e[0]==="<"&&e[t-1]===">")return!0;for(let n=0;n127)return!1;return!0},canOneTranslate(e){const t=["zh_CN","zh_HK","zh_TW","ar_SA","ja_JP","ko_KR","ru_RU"];return t.push("am_ET","hy_AM","as_IN","bn_BD","ba_RU","bg_BG","prs_AF","dv_MV","el_GR","gu_IN","he_IL","hi_IN","iu_CA","kn_IN","kk_KZ","km_KH","ku_Arab_IQ","ky_KG","lo_LA","mk_MK","ml_IN","mr_IN","mn_Cyrl_MN","mn_Mong_CN","my_MM","ne_NP","or_IN","ps_AF","fa_IR","pa_Guru_IN","sr_Cyrl_RS","ta_IN","tt_Latn_RU","te_IN","th_TH","bo_CN","ti_ET","uk_UA","ur_PK","ug_Arab_CN","vi_VN"),!!t.includes(e)},isEnglishByLangCode(e,t){if(!this.canOneTranslate(t))return-1;const n=e.length;for(let r=0;r127)return 0;return 1},isSameLang(e,t){if(e===t)return!0;let n=e.toLowerCase(),r=t.toLowerCase();return n===r||(e=e.replace("-","_"),t=t.replace("-","_"),e===t)||(e=e.split("_")[0],t=t.split("_")[0],e===t)},getLang(e,t,n){return n[t]&&n[t].lang&&n[t].lang[e]?this.replaceGlobals(n[t].lang[e],t):n.en_US&&n.en_US.lang&&n.en_US.lang[e]?this.replaceGlobals(n.en_US.lang[e],"en_US"):this.replaceGlobals(e,t)},replaceGlobals(e,t){for(let n in Sl){let r=Sl[n];if(n==="docs")switch(t){case"zh_CN":r+="/zh-CN";break;case"zh_HK":case"zh_TW":r+="/zh-TW";break;case"ru_RU":r+="/ru";break}e=e.replace(new RegExp(`{{${n}}}`,"g"),r)}return e},escapeHtml(e){return e.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]||t)},unescapeHtml(e){return e.replace(/&|<|>|'|"/g,t=>({"&":"&","<":"<",">":">","'":"'",""":'"'})[t]||t)},getTagWeightNum(e){const t=e.match(this.weightNumRegex);let n=t?parseFloat(t[2]):0;return n=n>=0?n:0,n},getTagIncWeight(e){return this.countLayers(e,"(",")")},getTagDecWeight(e){return this.countLayers(e,"[","]")},countLayers(e,t="(",n=")"){let r=0;if(e.length<2)return r;for(;;){let i=e[0],o=e[e.length-1];if(i===t&&o===n)r++,e=e.slice(1,e.length-1);else break}return r},setLayers(e,t=0,n="(",r=")",i=""){for(;;){let o=e[0],s=e[e.length-1];if(o===n&&s===r)e=e.slice(1,e.length-1);else break}return t===0?e:n.repeat(t)+e+i+r.repeat(t)},getTranslateApiInfo(e,t){let n=!1;for(const r in t)for(const i in r.children)if(i.key===e){n=i;break}return n},isEqualTags(e,t,n=[]){if(t.length!==e.length)return!1;for(let r=0;r{setTimeout(()=>{hideResults(e)},n)})},formatTime(e,t=!0){let n=new Date(e),r=n.getFullYear(),i=n.getMonth()+1;i<10&&(i="0"+i);let o=n.getDate();o<10&&(o="0"+o);let s=n.getHours();s<10&&(s="0"+s);let l=n.getMinutes();l<10&&(l="0"+l);let c=n.getSeconds();return c<10&&(c="0"+c),t?`${r}/${i}/${o} ${s}:${l}:${c}`:`${i}/${o} ${s}:${l}:${c}`},apiUrl(){let e;return e=window.location.origin+window.location.pathname,e+=e.endsWith("/")?"":"/",e+="physton_prompt/",e},removeCSS(e,t=!0){if(!e)return;let n=null;t?n=this.gradioApp().querySelector("#"+e):n=document.querySelector("#"+e),n&&n.remove()},loadCSS(e,t="",n=!0,r=!1,i=!0){n&&this.removeCSS(t,i);let o=this.apiUrl()+"styles?file="+encodeURIComponent(e);r||(o+="&t="+new Date().getTime());let s=document.createElement("link");s.id=t,s.rel="stylesheet",s.href=o,i?this.gradioApp().appendChild(s):document.body.appendChild(s)},swapElement(e,t){let n=e.parentNode,r=t.parentNode,i=e.nextSibling,o=t.nextSibling;n.insertBefore(t,i),r.insertBefore(e,o)},insertBefore(e,t){t.parentNode.insertBefore(e,t)},insertAfter(e,t){t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e)},gradioContainer:null,gradioApp(){if(this.gradioContainer)return this.gradioContainer;const e=document.getElementsByTagName("gradio-app"),t=e.length==0?null:e[0].shadowRoot;if(t){const n=t.querySelectorAll(".gradio-container");for(let r=0;r=this._config.preview;if(o)r.postMessage({results:J,workerId:c.WORKER_ID,finished:je});else if(ue(this._config.chunk)&&!P){if(this._config.chunk(J,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);J=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(J.data),this._completeResults.errors=this._completeResults.errors.concat(J.errors),this._completeResults.meta=J.meta),this._completed||!je||!ue(this._config.complete)||J&&J.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),je||J&&J.meta.paused||this._nextChunk(),J}this._halted=!0},this._sendError=function(S){ue(this._config.error)?this._config.error(S):o&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:S,finished:!1})}}function p(I){var S;(I=I||{}).chunkSize||(I.chunkSize=c.RemoteChunkSize),h.call(this,I),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(P){this._input=P,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(S=new XMLHttpRequest,this._config.withCredentials&&(S.withCredentials=this._config.withCredentials),i||(S.onload=m(this._chunkLoaded,this),S.onerror=m(this._chunkError,this)),S.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var P=this._config.downloadRequestHeaders;for(var j in P)S.setRequestHeader(j,P[j])}if(this._config.chunkSize){var ee=this._start+this._config.chunkSize-1;S.setRequestHeader("Range","bytes="+this._start+"-"+ee)}try{S.send(this._config.downloadRequestBody)}catch(J){this._chunkError(J.message)}i&&S.status===0&&this._chunkError()}},this._chunkLoaded=function(){S.readyState===4&&(S.status<200||400<=S.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:S.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(P){var j=P.getResponseHeader("Content-Range");return j===null?-1:parseInt(j.substring(j.lastIndexOf("/")+1))}(S),this.parseChunk(S.responseText)))},this._chunkError=function(P){var j=S.statusText||P;this._sendError(new Error(j))}}function y(I){var S,P;(I=I||{}).chunkSize||(I.chunkSize=c.LocalChunkSize),h.call(this,I);var j=typeof FileReader<"u";this.stream=function(ee){this._input=ee,P=ee.slice||ee.webkitSlice||ee.mozSlice,j?((S=new FileReader).onload=m(this._chunkLoaded,this),S.onerror=m(this._chunkError,this)):S=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(ee.target.result)},this._chunkError=function(){this._sendError(S.error)}}function C(I){var S;h.call(this,I=I||{}),this.stream=function(P){return S=P,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var P,j=this._config.chunkSize;return j?(P=S.substring(0,j),S=S.substring(j)):(P=S,S=""),this._finished=!S,this.parseChunk(P)}}}function w(I){h.call(this,I=I||{});var S=[],P=!0,j=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(ee){this._input=ee,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){j&&S.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),S.length?this.parseChunk(S.shift()):P=!0},this._streamData=m(function(ee){try{S.push(typeof ee=="string"?ee:ee.toString(this._config.encoding)),P&&(P=!1,this._checkIsFinished(),this.parseChunk(S.shift()))}catch(J){this._streamError(J)}},this),this._streamError=m(function(ee){this._streamCleanUp(),this._sendError(ee)},this),this._streamEnd=m(function(){this._streamCleanUp(),j=!0,this._streamData("")},this),this._streamCleanUp=m(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function k(I){var S,P,j,ee=Math.pow(2,53),J=-ee,ye=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,je=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Ne=this,z=0,ie=0,fe=!1,nt=!1,Ve=[],ne={data:[],errors:[],meta:{}};if(ue(I.step)){var ge=I.step;I.step=function(Le){if(ne=Le,Oe())Ae();else{if(Ae(),ne.data.length===0)return;z+=Le.data.length,I.preview&&z>I.preview?P.abort():(ne.data=ne.data[0],ge(ne,Ne))}}}function we(Le){return I.skipEmptyLines==="greedy"?Le.join("").trim()==="":Le.length===1&&Le[0].length===0}function Ae(){return ne&&j&&(Xe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),j=!1),I.skipEmptyLines&&(ne.data=ne.data.filter(function(Le){return!we(Le)})),Oe()&&function(){if(!ne)return;function Le(mt,R){ue(I.transformHeader)&&(mt=I.transformHeader(mt,R)),Ve.push(mt)}if(Array.isArray(ne.data[0])){for(var rt=0;Oe()&&rt=Ve.length?"__parsed_extra":Ve[$]),I.transform&&(W=I.transform(W,te)),W=Be(te,W),te==="__parsed_extra"?(G[te]=G[te]||[],G[te].push(W)):G[te]=W}return I.header&&($>Ve.length?Xe("FieldMismatch","TooManyFields","Too many fields: expected "+Ve.length+" fields but parsed "+$,ie+R):$=Ce.length/2?`\r `:"\r"}(Le,R)),j=!1,I.delimiter)ue(I.delimiter)&&(I.delimiter=I.delimiter(Le),ne.meta.delimiter=I.delimiter);else{var $=function(te,W,X,Ce,de){var me,se,ke,_e;de=de||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Me=0;Me=ye)return Ht(!0)}else for(Se=z,z++;;){if((Se=fe.indexOf(S,Se+1))===-1)return Ve||Xe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Be.length,index:z}),Ft();if(Se===ne-1)return Ft(fe.substring(z,Se).replace(Me,S));if(S!==Ne||fe[Se+1]!==Ne){if(S===Ne||Se===0||fe[Se-1]!==Ne){ke!==-1&&ke=ye)return Ht(!0);break}Xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Be.length,index:z}),Se++}}else Se++}return Ft();function at(Q){Be.push(Q),rt=z}function Ct(Q){var De=0;if(Q!==-1){var Fe=fe.substring(Se+1,Q);Fe&&Fe.trim()===""&&(De=Fe.length)}return De}function Ft(Q){return Ve||(Q===void 0&&(Q=fe.substring(z)),Le.push(Q),z=ne,at(Le),Oe&&fn()),Ht()}function an(Q){z=Q,at(Le),Le=[],_e=fe.indexOf(j,z)}function Ht(Q){return{data:Be,errors:Xe,meta:{delimiter:P,linebreak:j,aborted:ie,truncated:!!Q,cursor:rt+(nt||0)}}}function fn(){J(Ht()),Be=[],Xe=[]}},this.abort=function(){ie=!0},this.getCharIndex=function(){return z}}function L(I){var S=I.data,P=s[S.workerId],j=!1;if(S.error)P.userError(S.error,S.file);else if(S.results&&S.results.data){var ee={abort:function(){j=!0,K(S.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:D,resume:D};if(ue(P.userStep)){for(var J=0;J{}},translateApis:{type:Array,default:()=>[]},translateApi:{type:String,default:""},translateApiConfig:{type:Object},tagCompleteFile:{type:String,default:""},onlyCsvOnAuto:{type:Boolean,default:!1}},data(){return{cancelMultiTranslate:!1,globals:Sl}},computed:{langName(){for(const e in this.languages){const t=this.languages[e];if(t.code===this.languageCode)return t.name}return item.name}},methods:{getLang(e){return ve.getLang(e,this.languageCode,this.languages)},replaceGlobals(e){return ve.replaceGlobals(e,this.languageCode)},getCSV(e=null,t=!1){return window.tagCompleteFileCache=window.tagCompleteFileCache||{},window.tagCompleteFileLoading=window.tagCompleteFileLoading||{},new Promise((n,r)=>{if(e=e||this.tagCompleteFile,!t&&window.tagCompleteFileCache[e]){n(window.tagCompleteFileCache[e]);return}if(window.tagCompleteFileLoading[e]){const s=setInterval(()=>{window.tagCompleteFileLoading[e]||(clearInterval(s),n(window.tagCompleteFileCache[e]))},100);return}window.tagCompleteFileLoading[e]=!0;let i={toEn:new Map,toLocal:new Map},o=(s,l)=>{[s,s.replace(/\_/g," "),s.replace(/\-/g," ")].forEach(d=>i.toLocal.set(d,l)),i.toEn.set(l,s)};if(!e&&typeof translations=="object"&&translations instanceof Map){translations.forEach((s,l)=>{o(l,s)}),window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,n(i);return}if(!e){window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,r(this.getLang("not_found_csv_file"));return}this.gradioAPI.getCSV(e).then(s=>{s=aw.parse(s,{header:!1,skipEmptyLines:!0}),s.data.forEach(l=>{if(l.length<2)return;let c=l[0].trim(),d=l[1].trim();c===""||d===""||o(c,d)}),window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,n(i)}).catch(s=>{window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,s.response&&s.response.status===404?r(this.getLang("not_found_csv_file")):r(s.message)})})},async translateToLocalByCSV(e,t=null,n=!1){let r=await this.getCSV(t,n);return e=e.trim().toLowerCase(),r.toLocal.has(e)?r.toLocal.get(e):""},async translateToEnByCSV(e,t=null,n=!1){let r=await this.getCSV(t,n);return e=e.trim().toLowerCase(),r.toEn.has(e)?r.toEn.get(e):""}}},Hi=Number.isNaN||window.isNaN,lw=/^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/,uw=/\.\d*(?:0|9){10}\d*$/,bg=(e,t=1e11)=>uw.test(String(e))?Math.round(e*t)/t:e,cw=Rn({name:"VueNumberInput",props:{attrs:{type:Object,default:void 0},center:Boolean,controls:Boolean,disabled:Boolean,inputtable:{type:Boolean,default:!0},inline:Boolean,max:{type:Number,default:1/0},min:{type:Number,default:-1/0},name:{type:String,default:void 0},placeholder:{type:String,default:void 0},readonly:Boolean,rounded:Boolean,size:{type:String,default:void 0},step:{type:Number,default:1},modelValue:{type:Number,default:NaN}},emits:["update:modelValue"],data(){return{value:NaN}},computed:{increasable(){return Hi(this.value)||this.valuethis.min}},watch:{modelValue:{immediate:!0,handler(e,t){!(Hi(e)&&typeof t>"u")&&e!==this.value&&this.setValue(e)}}},methods:{isNaN:Hi,change(e){this.setValue(e.target.value)},paste(e){const t=e.clipboardData||window.clipboardData;t&&!lw.test(t.getData("text"))&&e.preventDefault()},decrease(){if(this.decreasable){let{value:e}=this;Hi(e)&&(e=0),this.setValue(bg(e-this.step))}},increase(){if(this.increasable){let{value:e}=this;Hi(e)&&(e=0),this.setValue(bg(e+this.step))}},setValue(e){const t=this.value;let n=typeof e!="number"?parseFloat(e):e;Hi(n)||(this.min<=this.max&&(n=Math.min(this.max,Math.max(this.min,n))),this.rounded&&(n=Math.round(n))),this.value=n,n===t&&(this.$refs.input.value=String(n)),this.$emit("update:modelValue",n,t)}}}),En=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},fw=["disabled"],dw=["name","value","min","max","step","readonly","disabled","placeholder"],pw=["disabled"];function hw(e,t,n,r,i,o){return E(),H("div",{class:lt(["vue-number-input",{"vue-number-input--inline":e.inline,"vue-number-input--center":e.center,"vue-number-input--controls":e.controls,[`vue-number-input--${e.size}`]:e.size}])},[e.controls?(E(),H("button",{key:0,class:"vue-number-input__button vue-number-input__button--minus",type:"button",tabindex:"-1",disabled:e.disabled||e.readonly||!e.decreasable,onClick:t[0]||(t[0]=gt((...s)=>e.decrease&&e.decrease(...s),["prevent"]))},null,8,fw)):Re("",!0),T("input",ul({ref:"input",class:"vue-number-input__input"},e.attrs,{type:"number",name:e.name,value:isNaN(e.value)?"":e.value,min:e.min,max:e.max,step:e.step,readonly:e.readonly||!e.inputtable,disabled:e.disabled||!e.decreasable&&!e.increasable,placeholder:e.placeholder,autocomplete:"off",onChange:t[1]||(t[1]=(...s)=>e.change&&e.change(...s)),onPaste:t[2]||(t[2]=(...s)=>e.paste&&e.paste(...s))}),null,16,dw),e.controls?(E(),H("button",{key:1,class:"vue-number-input__button vue-number-input__button--plus",type:"button",tabindex:"-1",disabled:e.disabled||e.readonly||!e.increasable,onClick:t[3]||(t[3]=gt((...s)=>e.increase&&e.increase(...s),["prevent"]))},null,8,pw)):Re("",!0)],2)}const gw=En(cw,[["render",hw]]),mw={data(){return{autocompleteResults:null,showAppendList:!1,appendListStyle:{top:0,left:0},appendListSelected:null,appendListChildSelected:null,appendList:[{type:"wrap",name:"line_break_character",icon:"wrap",children:[]}],favorites:[],autoInputPrompt:"disabled",autoInputPromptKey:""}},computed:{appendListChildItemTags(){return this.appendListSelected===null?[]:this.appendListChildSelected===null?[]:this.appendList[this.appendListSelected].type!=="favorite"&&this.appendList[this.appendListSelected].type!=="history"?[]:this.appendList[this.appendListSelected].children[this.appendListChildSelected].tags}},mounted(){this.initAutoInputPrompt(),[{name:"txt2img",type:"prompt",key:"txt2img",neg:!1},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",neg:!0},{name:"img2img",type:"prompt",key:"img2img",neg:!1},{name:"img2img",type:"negative_prompt",key:"img2img_neg",neg:!0}].forEach(t=>{t.neg===this.neg&&this.appendList.push({type:"favorite",name:["favorite",t.name],icon:"favorite",key:t.key,dataKey:"favorite."+t.key,children:[]})})},methods:{onUnfoldClick(){this.hidePanel&&this.$nextTick(()=>{this.onResize()}),this.$emit("update:hidePanel",!this.hidePanel)},onTranslatesToLocalClick(){if(this.tags.length===0)return;if(this.loading.all_local){this.cancelMultiTranslate=!0,this.loading.all_local=!1;return}this.loading.all_local=!0;let e=[];for(const t in this.tags)this.tags[t].type&&this.tags[t].type!=="text"||e.push(t);return this.translates(e,!0,!0).finally(()=>{this.loading.all_local=!1,this.updateTags()})},onTranslatesToEnglishClick(){if(this.tags.length===0)return;if(this.loading.all_en){this.cancelMultiTranslate=!0,this.loading.all_en=!1;return}this.loading.all_en=!0;let e=[];for(const t in this.tags)this.tags[t].type&&this.tags[t].type!=="text"||e.push(t);this.translates(e,!1,!0).finally(()=>{this.loading.all_en=!1,this.updateTags()})},onCopyAllTagsClick(){this.copy(this.prompt)},onDeleteAllTagsClick(){confirm(this.getLang("delete_all_keywords_confirm"))&&(this.tags=[],this.updateTags())},appendListItemName(e){let t=[];if(typeof e.name=="object")for(let n of e.name)t.push(this.getLang(n));else t=[this.getLang(e.name)];return t.join(" / ")},onAppendTagFocus(e){if(this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""){this.appendListStyle={top:e.target.offsetTop+e.target.offsetHeight+"px",left:e.target.offsetLeft+"px"},this.appendListSelected=null,this.appendListChildSelected=null,this.showAppendList=!0;let t=[];this.appendList.forEach(n=>{typeof n.dataKey=="string"&&t.push(n.dataKey)}),this.gradioAPI.getDatas(t).then(n=>{this.appendList.forEach(r=>{typeof r.dataKey=="string"&&(r.children=n[r.dataKey]||[],r.children.reverse())})})}this._setTextareaFocus()},onAppendTagBlur(e){setTimeout(()=>{this.showAppendList=!1},300)},selectAppendList(e=!0){this.appendList.length!==0&&(this.appendListSelected===null?this.appendListSelected=0:e?(this.appendListSelected++,this.appendListSelected>=this.appendList.length&&(this.appendListSelected=0)):(this.appendListSelected--,this.appendListSelected<0&&(this.appendListSelected=this.appendList.length-1)),this.appendListChildSelected=null)},selectAppendListChild(e=!0){this.appendList.length!==0&&this.appendListSelected!==null&&this.appendList[this.appendListSelected].children.length!==0&&(this.appendListChildSelected===null?this.appendListChildSelected=0:e?(this.appendListChildSelected++,this.appendListChildSelected>=this.appendList[this.appendListSelected].children.length&&(this.appendListChildSelected=0)):(this.appendListChildSelected--,this.appendListChildSelected<0&&(this.appendListChildSelected=this.appendList[this.appendListSelected].children.length-1)),this.scrollAppendListChild())},scrollAppendListChild(){this.appendListSelected!==null&&(this.appendListChildSelected===0||this.appendListChildSelected===null?this.$refs.promptAppendListChildren[this.appendListSelected].scrollTop=0:this.$refs.promptAppendListChild[this.appendListChildSelected].scrollIntoView({behavior:"smooth",block:"center"}))},onAppendTagKeyDown(e,t=null){if(!(e.keyCode===38||e.keyCode===40))if(e.keyCode===13){if(this.getAutocompleteResults()&&this.autocompleteResults.style.display==="block"&&this.getAutocompleteResultsSelected()){let r=this.getAutocompleteResultsSelectedText();setTimeout(()=>{t=this.$refs.promptTagAppend.value,r?t=r:(r=this.getAutocompleteResultsSelectedText(),r&&(t=r)),this.onAppendTagKeyDown(e,t)},300);return}let n=this.$refs.promptTagAppend.value;if(this.$refs.promptTagAppend.value="",this.showAppendList=!0,console.log(n,t),t)n=n.replace(/\s*,\s*$/,"").trim(),ve.hasBrackets(n)&&(n=ve.replaceBrackets(n)),this._appendTag(n,t),this.updateTags();else{ve.hasBrackets(n)?(n=ve.replaceBrackets(n),n=[n]):n=ve.splitTags(n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);let r=[];n.forEach(i=>{let o=-1;i===` `?o=this._appendTag(` `,` `,!1,-1,"wrap"):o=this._appendTag(i),o!==-1&&r.push(o)}),this.updatePrompt(),this.autoTranslateToEnglish||this.autoTranslateToLocal?this.$nextTick(()=>{let i=!(this.tagCompleteFile&&this.onlyCsvOnAuto);this.autoTranslateToEnglish?this.translates(r,!1,i).finally(()=>{this.updateTags()}):this.autoTranslateToLocal&&this.translates(r,!0,i).finally(()=>{this.updateTags()})}):this.updateTags()}}else this.removeAutocompleteResultsSelected()},onAppendTagKeyUp(e){this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""?(this.$refs.promptTagAppend.value="",this.showAppendList=!0,e.keyCode===38||e.keyCode===40?this.appendListChildSelected===null?this.selectAppendList(e.keyCode===40):this.selectAppendListChild(e.keyCode===40):e.keyCode===37||e.keyCode===39?this.appendListSelected!==null&&(e.keyCode===37?(this.appendListChildSelected=null,this.scrollAppendListChild()):this.appendList[this.appendListSelected].children.length===0?this.appendListChildSelected=null:(this.appendListChildSelected=0,this.scrollAppendListChild())):e.keyCode===13&&(this._appendTagByList(),this.scrollAppendListChild(),this.appendListSelected=null,this.appendListChildSelected=null)):this.showAppendList=!1},onAppendGroupClick(e,t,n){if(e!==null){if(this.appendListSelected=e,t===null){if(this.appendList[this.appendListSelected].children.length>0)return}else this.appendListChildSelected=t;this._appendTagByList()}},onAppendListChildMouseLeave(e,t,n){this.appendListSelected=null,this.appendListChildSelected=null},onAppendListChildMouseEnter(e,t,n){this.appendListSelected=e,this.appendListChildSelected=t},_appendTagByList(){if(this.appendListSelected===null)return;const e=this.appendList[this.appendListSelected];let t=null;e.children.length>0&&this.appendListChildSelected!==null&&(t=e.children[this.appendListChildSelected]);let n=[];switch(e.type){case"wrap":n.push({value:` `,localValue:` `,disabled:!1,type:"wrap"});break;case"lora":break;case"favorite":case"history":t&&t.tags.forEach(r=>{n.push({value:r.value,localValue:r.localValue,disabled:r.disabled,type:r.type||"text"})});break}n.length<=0||(n.forEach(r=>{this._appendTag(r.value,r.localValue,r.disabled,-1,r.type)}),this.updateTags())},getAutocompleteResults(){if(!this.autocompleteResults){const e=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteResults");e&&(this.autocompleteResults=e,this.autocompleteResults.getAttribute("data-mousemove")!=="true"&&(this.autocompleteResults.setAttribute("data-mousemove","true"),this.autocompleteResults.addEventListener("mousemove",t=>{this.bindAutocompleteResultsClick()})))}return this.autocompleteResults},removeAutocompleteResultsSelected(){const e=this.getAutocompleteResults();return e?(e.querySelectorAll("li").forEach(t=>{t.classList.remove("selected")}),!0):!1},getAutocompleteResultsSelected(){const e=this.getAutocompleteResults();if(!e)return null;const t=e.querySelector("li.selected");return t||null},getAutocompleteResultsSelectedText(e=null){if(!e&&(e=this.getAutocompleteResultsSelected(),!e))return null;const r=e.querySelector(".acListItem").innerText.match(/\[(.+?)\]/);return r?r[1]:null},bindAutocompleteResultsClick(){if(this.getAutocompleteResults(),!this.autocompleteResults)return;this.autocompleteResults.querySelectorAll("li").forEach(t=>{t.getAttribute("physton-on-clicked")!=="true"&&(t.setAttribute("physton-on-clicked","true"),t.addEventListener("click",()=>{this.onAutocompleteResultsClicked(t)}))})},onAutocompleteResultsClicked(e){const t=this.getAutocompleteResultsSelectedText(e);setTimeout(()=>{let n=this.$refs.promptTagAppend.value.replace(/,\s*$/,"");this.$refs.promptTagAppend.value="",n=n.replace(/\s*,\s*$/,"").trim(),ve.hasBrackets(n)&&(n=ve.replaceBrackets(n)),this._appendTag(n,t),this.updateTags()},300)},onSettingBoxMouseEnter(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[]},getCurrentTypeFavorites(){let e=[];return this.favorites.forEach(t=>{if(this.neg){if(t.type!=="negative_prompt")return}else if(t.type!=="prompt")return;e.push(t)}),e},onAutoInputPromptChange(){this.gradioAPI.setData(this.autoInputPromptKey,this.autoInputPrompt).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},initAutoInputPrompt(){this.autoInputPromptKey="autoInputPrompt-"+this.name,this.gradioAPI.getData(this.autoInputPromptKey).then(e=>{if(e!==null)if(this.autoInputPrompt=e,this.autoInputPrompt==="last")this.gradioAPI.getLatestHistory(this.historyKey).then(t=>{this.useHistory(t)});else{const t=()=>{if(typeof window.phystonPromptfavorites=="object"&&window.phystonPromptfavorites.length>0){for(let n of window.phystonPromptfavorites)for(let r of n.list)if(r.id===this.autoInputPrompt){this.useFavorite(r);return}return}setTimeout(t,100)};setTimeout(t,100)}})}}},vw={data(){return{dropStartX:0,dropStartY:0,dropEndX:0,dropEndY:0,dropOffsetX:0,dropOffsetY:0,dropIsSelecting:!1,dropIsStart:!1,dropIsEnd:!1,dropArea:{top:0,left:0,width:0,height:0},dropTags:[],dropTimeId:0}},methods:{_dropOver(){this.dropIsSelecting=!1,this.dropIsStart=!1,this.dropIsEnd=!1,this.dropTags=[];for(let e=0;ethis.dropArea.left+this.dropArea.width||i>this.dropArea.top+this.dropArea.height)?(e.push(n.getAttribute("data-id")),n.classList.add("drop-selected")):n.classList.remove("drop-selected"),this.dropTags=e}},onDropMouseUp(e){this.dropIsSelecting=!1,this.dropIsStart=!1,this.dropIsEnd=!0,this.$refs.dropSelectBtns.style.left=this.$refs.dropSelectBox.style.left,this.$refs.dropSelectBtns.style.top=this.$refs.dropSelectBox.style.top},_getDropTags(){let e=[];return this.dropTags.forEach(t=>{let n=this.tags.find(r=>r.id===t);n&&e.push(n)}),e},_getDropIndexes(){let e=[];return this.dropTags.forEach(t=>{let n=this.tags.findIndex(r=>r.id===t);n!==-1&&e.push(n)}),e},_getDropTagsEle(){let e=[];return this.dropTags.forEach(t=>{let n=this.$refs.promptTagsList.querySelector(`.prompt-tag[data-id="${t}"]`);n&&e.push(n)}),e},onDropCopy(){let e=this._getDropTags();this._dropOver();let t=this.genPrompt(e,!0);this.copy(t)},onDropFavorite(){let e=this._getDropTags();this._dropOver();let t=this.genPrompt(e,!0);this.gradioAPI.pushFavorite(this.favoriteKey,e,t,"").then(n=>{n?(this.$toastr.success(this.getLang("success")),this.$emit("refreshFavorites",this.favoriteKey)):this.$toastr.error(this.getLang("failed"))}).catch(n=>{this.$toastr.error(this.getLang("failed"))})},onDropDisable(){let e=this._getDropTags();this._dropOver(),e.forEach(t=>{t.disabled=!0}),this.updateTags()},onDropEnable(){let e=this._getDropTags();this._dropOver(),e.forEach(t=>{t.disabled=!1}),this.updateTags()},onDropDelete(){let e=this._getDropIndexes();this._dropOver(),e.sort((t,n)=>n-t),e.forEach(t=>{this.tags.splice(t,1)}),this.updateTags()}}};var Vc="__autosizeInputGhost",yw={" ":"nbsp","<":"lt",">":"gt"};function bw(e){return"&"+yw[e]+";"}function Cw(e){return e.replace(/\s|<|>/g,bw)}function _w(){var e=document.createElement("div");return e.id=Vc,e.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",document.body.appendChild(e),e}var ww=function(e,t){var n=window.getComputedStyle(e),r="box-sizing:"+n.boxSizing+";border-left:"+n.borderLeftWidth+" solid red;border-right:"+n.borderRightWidth+" solid red;font-family:"+n.fontFamily+";font-feature-settings:"+n.fontFeatureSettings+";font-kerning:"+n.fontKerning+";font-size:"+n.fontSize+";font-stretch:"+n.fontStretch+";font-style:"+n.fontStyle+";font-variant:"+n.fontVariant+";font-variant-caps:"+n.fontVariantCaps+";font-variant-ligatures:"+n.fontVariantLigatures+";font-variant-numeric:"+n.fontVariantNumeric+";font-weight:"+n.fontWeight+";letter-spacing:"+n.letterSpacing+";margin-left:"+n.marginLeft+";margin-right:"+n.marginRight+";padding-left:"+n.paddingLeft+";padding-right:"+n.paddingRight+";text-indent:"+n.textIndent+";text-transform:"+n.textTransform;function i(){var s=e.value||e.getAttribute("placeholder")||"",l=document.getElementById(Vc)||_w();l.style.cssText+=r,l.innerHTML=Cw(s);var c=window.getComputedStyle(l).width;return e.style.width=c,c}e.addEventListener("input",i);var o=i();return t&&t.minWidth&&o!=="0px"&&(e.style.minWidth=o),function(){e.removeEventListener("input",i);var s=document.getElementById(Vc);s&&s.parentNode.removeChild(s)}};const Tw=Ol(ww),xw={data(){return{tagClickTimeId:0}},mounted(){ve.gradioApp().addEventListener("mousemove",()=>{this.$refs.highlightPrompt.hide()})},methods:{_setTag(e){typeof e.type=="string"&&e.type==="wrap"?(e.weightNum=1,e.incWeight=0,e.decWeight=0):(e.weightNum=ve.getTagWeightNum(e.value),e.weightNum=e.weightNum<=0?1:e.weightNum,e.incWeight=ve.getTagIncWeight(e.value),e.decWeight=ve.getTagDecWeight(e.value)),this._setTagClass(e),this.$nextTick(()=>{this._setTagHeight(e)})},_setTagHeight(e){let t=10,n=setInterval(()=>{if(t--,t<=0&&clearInterval(n),!this.$refs["promptTagValue-"+e.id]||!this.$refs["promptTagValue-"+e.id][0])return!1;clearInterval(n);let r=this.$refs["promptTagValue-"+e.id][0],i=r.offsetHeight;r.parentNode.style.height=i+"px",this.$refs["promptTagEdit-"+e.id]&&(this.$refs["promptTagEdit-"+e.id][0].style.height=i+"px"),this.$refs["promptTagDelete-"+e.id]&&(this.$refs["promptTagDelete-"+e.id][0].style.height=i+"px")},50)},_getTagType(e){},_setTagClass(e){if(e.isLora=!1,e.loraExists=!1,e.isLyco=!1,e.lycoExists=!1,e.isEmbedding=!1,!(typeof e.type=="string"&&e.type==="wrap")){const n=e.value.match(ve.loraRegex);if(n){e.isLora=!0;const r=this.loraExists(n[1]);r!==!1&&(e.loraExists=!0,e.loraName=r)}if(!e.isLora){const r=e.value.match(ve.lycoRegex);if(r){e.isLyco=!0;const i=this.lycoExists(r[1]);i!==!1&&(e.lycoExists=!0,e.lycoName=i)}}if(!e.isLora&&!e.isLyco){const r=this.embeddingExists(e.value);if(r!==!1)e.isEmbedding=!0,e.value=r;else{let i=e.value;const o=ve.hasBrackets(i);(o[0]==="("&&o[1]===")"||o[0]==="["&&o[1]==="]")&&(i=ve.setLayers(i,0,o[0],o[1]),i=i.replace(ve.weightNumRegex,"$1"),this.embeddingExists(i)!==!1&&(e.isEmbedding=!0))}}}let t=["prompt-tag-value"];return e.isLora?(t.push("lora-tag"),e.loraExists||t.push("lora-not-exists")):e.isLyco?(t.push("lyco-tag"),e.lycoExists||t.push("lyco-not-exists")):e.isEmbedding?t.push("embedding-tag"):this.neg&&t.push("neg-tag"),e.classes=t,t},_setTagById(e,t=null,n=null){let r=this.tags.find(i=>i.id===e);return r?(t!==null&&(r.value=t),n!==null&&(r.localValue=n),r):!1},_isTagBlacklist(e){if(typeof e.type=="string"&&e.type==="wrap")return!1;if(e.isLora){if(this.blacklist.lora&&this.blacklist.lora.includes(e.loraName))return!0}else if(e.isLyco){if(this.blacklist.lycoris&&this.blacklist.lycoris.includes(e.lycoName))return!0}else if(e.isEmbedding){if(this.blacklist.embedding&&this.blacklist.embedding.includes(e.value))return!0}else if(this.neg){if(this.blacklist.negative_prompt&&this.blacklist.negative_prompt.includes(e.value))return!0}else if(this.blacklist.prompt&&this.blacklist.prompt.includes(e.value))return!0;return!1},_appendTag(e,t="",n=!1,r=-1,i="text"){if(e==="")return-1;const o=Date.now()+(Math.random()*1e6).toFixed(0);let s={id:o,value:e==null||e===!1?"":e,localValue:t==null||t===!1?"":t,disabled:n,type:i};return this._setTag(s),this._isTagBlacklist(s)?-1:(r>=0?this.tags.splice(r,0,s):r=this.tags.push(s),this.$nextTick(()=>{this.$refs["promptTagEdit-"+o]&&Tw(this.$refs["promptTagEdit-"+o][0])}),r-1)},renderTag(e){let t=this.tags.find(r=>r.id===e);if(!t)return"";let n=t.value;if(n==="BREAK"&&(this.autoBreakBeforeWrap||this.autoBreakAfterWrap))n='
---------------------
BREAK
---------------------
';else if(n=ve.escapeHtml(n),t.incWeight>0){n=ve.setLayers(n,0,"(",")"),n='
'+n+"
";let r='
'+"(".repeat(t.incWeight)+"
",i='
'+")".repeat(t.incWeight)+"
";n=r+n+i}else if(t.decWeight>0){n=ve.setLayers(n,0,"[","]"),n='
'+n+"
";let r='
'+"[".repeat(t.decWeight)+"
",i='
'+"]".repeat(t.decWeight)+"
";n=r+n+i}else n='
'+n+"
";return n},isFavorite(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;if(typeof window.phystonPromptfavorites=="object"){for(const n of window.phystonPromptfavorites)if(n.key===this.favoriteKey){for(const r of n.list)if(r.tags.length===1&&r.tags[0].value===t.value)return r.id}}return!1},onTagMouseEnter(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;t.isFavorite=this.isFavorite(t.id)},onTagMouseMove(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.$refs.highlightPrompt.show(t)},onTagClick(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.tagClickTimeId&&clearTimeout(this.tagClickTimeId),this.tagClickTimeId=setTimeout(()=>{this.editing={},this.editing[t.id]=!0,this.$forceUpdate(),this.$nextTick(()=>{const n=this.$refs["promptTagEdit-"+t.id][0];n.focus(),n.dispatchEvent(new Event("input"))}),clearTimeout(this.tagClickTimeId)},250)},onTagDblclick(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;clearTimeout(this.tagClickTimeId),this.onDisabledTagClick(t.id)},onTagInputBlur(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.editing[t.id]=!1},onTagInputKeyDown(e,t){if(t.keyCode===13){let n=this.tags.find(r=>r.id===e);if(!n)return!1;this.editing[n.id]=!1,n.value!==t.target.value&&(n.value=t.target.value,this._setTag(n),this.updateTags())}},onTagInputChange(e,t){let n=this.tags.find(r=>r.id===e);if(!n)return!1;n.value!==t.target.value&&(n.value=t.target.value,this._setTag(n),this.updateTags())},onTagWeightNumChange(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return!1;if(t=typeof t=="number"||typeof a=="string"?t:t.target.value,n.weightNum==t)return;let r=t,i=n.value,o=n.localValue;if(r>0){if(r===1&&!this.autoKeepWeightOne){const s=ve.hasBrackets(i);s[0]==="("&&s[1]===")"&&(i=ve.setLayers(i,0,s[0],s[1]),o!==""&&(o=ve.setLayers(o,0,s[0],s[1]))),i=i.replace(ve.weightNumRegex,"$1"),o!==""&&(o=o.replace(ve.weightNumRegex,"$1"))}else{if(!ve.weightNumRegex.test(i)){let s=ve.hasBrackets(i);s?(i=ve.setLayers(i,1,s[0],s[1],":"+r),o!==""&&(o=ve.setLayers(o,1,s[0],s[1],":"+r))):(i=i+":"+r,o!==""&&(o=o+":"+r))}ve.hasBrackets(i)||(i=ve.setLayers(i,1,"(",")"),o!==""&&(o=ve.setLayers(o,1,"(",")")))}i!==n.value&&(n.value=i,o!==""&&(n.localValue=o),this._setTag(n))}else{const s=ve.hasBrackets(i);s[0]==="<"&&s[1]===">"?r=.1:this.autoKeepWeightZero?(n.value=i.replace(ve.weightNumRegex,"$1:0"),o!==""&&(n.localValue=n.localValue.replace(ve.weightNumRegex,"$1:0"))):(n.value=i.replace(ve.weightNumRegex,"$1"),o!==""&&(n.localValue=n.localValue.replace(ve.weightNumRegex,"$1")))}n.weightNum=r,this.updateTags()},onDeleteTagClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return!1;let n=this.tags.indexOf(t);this.tags.splice(n,1),this.updateTags()},onFavoriteTagClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return!1;let n=this.isFavorite(t.id);n?this.gradioAPI.unFavorite(this.favoriteKey,n).then(r=>{r&&(t.isFavorite=!1,this.$emit("refreshFavorites",this.favoriteKey))}):this.gradioAPI.pushFavorite(this.favoriteKey,[t],t.value,t.localValue===""?t.value:t.localValue).then(r=>{r&&(t.isFavorite=!0,this.$emit("refreshFavorites",this.favoriteKey))})},onDisabledTagClick(e){let t=this.tags.find(n=>n.id===e);t&&(t.disabled=!t.disabled,this.updateTags())},onIncWeightClick(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return;let r=n.value,i=n.localValue;r=ve.setLayers(r,0,"[","]"),i!==""&&(i=ve.setLayers(i,0,"[","]"));let o=n.incWeight;o+=t,o<0&&(o=0),n.incWeight=o,n.decWeight=0,r=ve.setLayers(r,o,"(",")"),i!==""&&(i=ve.setLayers(i,o,"(",")")),n.value=r,i!==""&&(n.localValue=i),this.updateTags()},onDecWeightClick(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return;let r=n.value,i=n.localValue;r=ve.setLayers(r,0,"(",")"),i!==""&&(i=ve.setLayers(i,0,"(",")"));let o=n.decWeight;o+=t,o<0&&(o=0),n.incWeight=0,n.decWeight=o,r=ve.setLayers(r,o,"[","]"),i!==""&&(i=ve.setLayers(i,o,"[","]")),n.value=r,i!==""&&(n.localValue=i),this.updateTags()},onWrapTagClick(e){let t=this.tags.find(o=>o.id===e);if(!t)return;let n=this.tags.indexOf(t),r=this._appendTag(` `,` `,!1,-1,"wrap"),i=this.tags[r];this.tags.splice(r,1),this.tags.splice(n+1,0,i),this.updateTags()},onTranslateToLocalClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return;let n=this.tags.indexOf(t);this.loading[t.id+"_local"]||this.translates([n],!0,!0).finally(()=>{this.updateTags()})},onTranslateToEnglishClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return;let n=this.tags.indexOf(t);this.loading[t.id+"_en"]||this.translates([n],!1,!0).finally(()=>{this.updateTags()})}}},kw={data(){return{groupTagsActive:0,subGroupTagsActive:0,groupTagsColorKeyCache:{}}},watch:{groupTags:{handler(){for(let e of this.groupTags)for(let t of e.groups){if(t.type&&t.typ=="wrap")continue;let n=this.getTagsColorKey(e.name,t.name);this.groupTagsColor[n]||(this.groupTagsColor[n]=Et(ve.fitterInputColor(t.color)));for(let r in t.tags)this.groupTagsColorKeyCache[r]=n}},deep:!0,immediate:!0}},methods:{activeGroupTab(e){this.groupTagsActive=e,this.subGroupTagsActive=0;let t=this.$refs.groupTabsHeader.children[e].offsetLeft-this.$refs.groupTabsHeader.offsetWidth/2+this.$refs.groupTabsHeader.children[e].offsetWidth/2;this.$refs.groupTabsHeader.scrollTo({left:t,behavior:"smooth"})},activeSubGroupTab(e){this.subGroupTagsActive=e},onClickHideGroupTags(){this.$emit("update:hideGroupTags",!this.hideGroupTags)},onClickGroupTag(e,t){this._appendTag(t,e,!1,-1,"text"),this.updateTags()},getGroupTagTooltip(e,t){let n="";return e&&e!==t&&(n+=e+"
"),n+=t,n},getGroupTagStyle(e,t){let n={},r=this.getTagsColorKey(e,t),i="";return this.groupTagsColor[r]&&(i=this.groupTagsColor[r],ve.isColorTransparent(i)&&(i="")),i&&(n={background:i}),n},getTagsColorKey(e,t){return e+"||"+t},onTagsColorChange(e){this.$emit("update:groupTagsColor",this.groupTagsColor)},onClickResetTagsColor(e){for(let t of this.groupTags)for(let n of t.groups){if(n.type&&n.typ=="wrap")continue;let r=this.getTagsColorKey(t.name,n.name);e===r&&(this.groupTagsColor[e]=Et(ve.fitterInputColor(n.color)))}this.onTagsColorChange(e)},onClickClearTagsColor(e){this.groupTagsColor[e]=Et("rgba(0,0,0,0)"),this.onTagsColorChange(e)},getTagColorStyle(e){if(e.isLora||e.isLyco||e.isEmbedding)return{};if(!this.groupTagsColorKeyCache[e.value])return{};let t=this.groupTagsColorKeyCache[e.value];if(!this.groupTagsColor[t])return{};let n=this.groupTagsColor[t];return ve.isColorTransparent(n)?{}:{background:n}}}},Sw={name:"IconSvg",props:{name:{type:String,required:!0},svgName:{type:String,default:""}},data(){return{svgCode:""}},watch:{name:{handler:function(e,t){this.getSvg()},immediate:!1}},mounted(){this.getSvg()},methods:{getSvg(){if(!this.name)return;let e=this.svgName||this.name;if(window.loadingSvg=window.loadingSvg||{},window.isLoadSvg=window.isLoadSvg||{},window.isLoadSvg[e]){this.svgCode=localStorage.getItem("iconSVG-"+e);return}if(localStorage.getItem("iconSVG-"+e)&&(this.svgCode=localStorage.getItem("iconSVG-"+e)),window.loadingSvg[e]){const t=setInterval(()=>{window.loadingSvg[e]||(clearInterval(t),this.svgCode=localStorage.getItem("iconSVG-"+e))},10);return}window.loadingSvg[e]=!0,window.iconSvgHash||(window.iconSvgHash=new Date().getTime()),this.gradioAPI.styles("icons/"+e+".svg",window.iconSvgHash).then(t=>{this.svgCode=t,localStorage.setItem("iconSVG-"+e,t),window.isLoadSvg[e]=!0,window.loadingSvg[e]=!1}).catch(t=>{window.loadingSvg[e]=!1})}}},Aw=["innerHTML"];function Ew(e,t,n,r,i,o){return be((E(),H("div",{class:lt(["icon-svg","icon-svg-"+n.name]),"data-name":"name",innerHTML:i.svgCode},null,10,Aw)),[[Ot,i.svgCode]])}const sr=En(Sw,[["render",Ew]]),Ow={name:"HighlightPrompt",props:{textarea:{type:Object,required:!0},hideDefaultInput:{type:Boolean,default:!1}},data(){return{scrollTop:0,showTimeId:0,hideTimeId:0,lastHighLightTag:null}},watch:{},mounted(){},methods:{show(e){this.lastHighLightTag&&this.lastHighLightTag.value===e.value||(this.lastHighLightTag=e,this.showTimeId&&clearTimeout(this.showTimeId),this.showTimeId=setTimeout(()=>{this._show(e),this.showTimeId=0},10))},_show(e){if(this.hideDefaultInput)return this._hide();if(typeof e.type=="string"&&e.type==="wrap")return this._hide();let t=e.value,n=this.textarea.value;if(t===""||t.trim()==="")return this._hide();if(n===""||n.trim()==="")return this._hide();if(t=ve.escapeHtml(t),n=ve.escapeHtml(this.textarea.value),n.indexOf(t)===-1)return this._hide();this.textarea.parentNode.insertBefore(this.$refs.highlightPrompt,this.textarea.nextSibling);const i=window.getComputedStyle(this.textarea);for(const l of i)this.$refs.highlightPrompt.style[l]=i[l];this.$refs.highlightPrompt.style.display="block",this.textarea.style.display="none";let o="",s=n;for(;;){const l=s.indexOf(t);if(l===-1){o+=s;break}const c=l+t.length;o+=s.substring(0,l),o+='',o+=s.substring(l,c),o+="",s=s.substring(c)}this.$refs.highlightPrompt.innerHTML=o,this.$refs.highlightPrompt.scrollTop=this.scrollTop},hide(){this.lastHighLightTag=null,this.showTimeId&&clearTimeout(this.showTimeId),this.hideTimeId&&clearTimeout(this.hideTimeId),this.hideTimeId=setTimeout(()=>{this._hide(),this.hideTimeId=0},10)},_hide(){this.textarea.style.display="block",this.$refs.highlightPrompt.style.display="none",this.scrollTop=this.textarea.scrollTop}}};function Lw(e,t,n,r,i,o){return E(),H("div",{class:"physton-highlight-prompt",ref:"highlightPrompt",onClick:t[0]||(t[0]=(...s)=>o.hide&&o.hide(...s))},null,512)}const Iw=En(Ow,[["render",Lw]]);function Pw(e){return yp()?(Qb(e),!0):!1}function Ws(e){return typeof e=="function"?e():jp(e)}const Cg=typeof window<"u",Ks=()=>{},Dw=Rw();function Rw(){var e;return Cg&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function _g(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const wg=e=>e();function Nw(e,t={}){let n,r,i=Ks;const o=l=>{clearTimeout(l),i(),i=Ks};return l=>{const c=Ws(e),d=Ws(t.maxWait);return n&&o(n),c<=0||d!==void 0&&d<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((h,p)=>{i=t.rejectOnCancel?p:h,d&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,h(l())},d)),n=setTimeout(()=>{r&&o(r),r=null,h(l())},c)})}}function Mw(e=wg){const t=Et(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:tc(t),pause:n,resume:r,eventFilter:i}}function ji(e,t=200,n={}){return _g(Nw(t,n),e)}function Lo(e,t=!0){Sh()?uc(e):t?e():Ja(e)}var Tg=Object.getOwnPropertySymbols,Fw=Object.prototype.hasOwnProperty,$w=Object.prototype.propertyIsEnumerable,Bw=(e,t)=>{var n={};for(var r in e)Fw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Tg)for(var r of Tg(e))t.indexOf(r)<0&&$w.call(e,r)&&(n[r]=e[r]);return n};function Hw(e,t,n={}){const r=n,{eventFilter:i=wg}=r,o=Bw(r,["eventFilter"]);return rr(e,_g(i,t),o)}var jw=Object.defineProperty,Uw=Object.defineProperties,Ww=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,xg=Object.prototype.hasOwnProperty,kg=Object.prototype.propertyIsEnumerable,Sg=(e,t,n)=>t in e?jw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kw=(e,t)=>{for(var n in t||(t={}))xg.call(t,n)&&Sg(e,n,t[n]);if(Ll)for(var n of Ll(t))kg.call(t,n)&&Sg(e,n,t[n]);return e},Vw=(e,t)=>Uw(e,Ww(t)),qw=(e,t)=>{var n={};for(var r in e)xg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ll)for(var r of Ll(e))t.indexOf(r)<0&&kg.call(e,r)&&(n[r]=e[r]);return n};function zw(e,t,n={}){const r=n,{eventFilter:i}=r,o=qw(r,["eventFilter"]),{eventFilter:s,pause:l,resume:c,isActive:d}=Mw(i);return{stop:Hw(e,t,Vw(Kw({},o),{eventFilter:s})),pause:l,resume:c,isActive:d}}function bn(e,t,n){return rr(e,(r,i,o)=>{r&&t(r,i,o)},n)}function Vs(e){var t;const n=Ws(e);return(t=n==null?void 0:n.$el)!=null?t:n}const qs=Cg?window:void 0;function zs(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=qs):[t,n,r,i]=e,!t)return Ks;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(h=>h()),o.length=0},l=(h,p,y,C)=>(h.addEventListener(p,y,C),()=>h.removeEventListener(p,y,C)),c=rr(()=>[Vs(t),Ws(i)],([h,p])=>{s(),h&&o.push(...n.flatMap(y=>r.map(C=>l(h,y,C,p))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Pw(d),d}let Ag=!1;function Gw(e,t,n={}){const{window:r=qs,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return;Dw&&!Ag&&(Ag=!0,Array.from(r.document.body.children).forEach(y=>y.addEventListener("click",Ks)),r.document.documentElement.addEventListener("click",Ks));let l=!0;const c=y=>i.some(C=>{if(typeof C=="string")return Array.from(r.document.querySelectorAll(C)).some(w=>w===y.target||y.composedPath().includes(w));{const w=Vs(C);return w&&(y.target===w||y.composedPath().includes(w))}}),h=[zs(r,"click",y=>{const C=Vs(e);if(!(!C||C===y.target||y.composedPath().includes(C))){if(y.detail===0&&(l=!c(y)),!l){l=!0;return}t(y)}},{passive:!0,capture:o}),zs(r,"pointerdown",y=>{const C=Vs(e);C&&(l=!y.composedPath().includes(C)&&!c(y))},{passive:!0}),s&&zs(r,"blur",y=>{setTimeout(()=>{var C;const w=Vs(e);((C=r.document.activeElement)==null?void 0:C.tagName)==="IFRAME"&&!(w!=null&&w.contains(r.document.activeElement))&&t(y)},0)})].filter(Boolean);return()=>h.forEach(y=>y())}const Il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pl="__vueuse_ssr_handlers__",Yw=Xw();function Xw(){return Pl in Il||(Il[Pl]=Il[Pl]||{}),Il[Pl]}function Jw(e,t){return Yw[e]||t}function Zw(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Qw=Object.defineProperty,Eg=Object.getOwnPropertySymbols,eT=Object.prototype.hasOwnProperty,tT=Object.prototype.propertyIsEnumerable,Og=(e,t,n)=>t in e?Qw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lg=(e,t)=>{for(var n in t||(t={}))eT.call(t,n)&&Og(e,n,t[n]);if(Eg)for(var n of Eg(t))tT.call(t,n)&&Og(e,n,t[n]);return e};const nT={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ig="vueuse-storage";function rT(e,t,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:d=!1,shallow:h,window:p=qs,eventFilter:y,onError:C=I=>{console.error(I)}}=r,w=(h?AC:Et)(t);if(!n)try{n=Jw("getDefaultStorage",()=>{var I;return(I=qs)==null?void 0:I.localStorage})()}catch(I){C(I)}if(!n)return w;const k=Ws(t),O=Zw(k),N=(i=r.serializer)!=null?i:nT[O],{pause:L,resume:K}=zw(w,()=>D(w.value),{flush:o,deep:s,eventFilter:y});return p&&l&&(zs(p,"storage",ue),zs(p,Ig,m)),ue(),w;function D(I){try{if(I==null)n.removeItem(e);else{const S=N.write(I),P=n.getItem(e);P!==S&&(n.setItem(e,S),p&&p.dispatchEvent(new CustomEvent(Ig,{detail:{key:e,oldValue:P,newValue:S,storageArea:n}})))}}catch(S){C(S)}}function Te(I){const S=I?I.newValue:n.getItem(e);if(S==null)return c&&k!==null&&n.setItem(e,N.write(k)),k;if(!I&&d){const P=N.read(S);return typeof d=="function"?d(P,k):O==="object"&&!Array.isArray(P)?Lg(Lg({},k),P):P}else return typeof S!="string"?S:N.read(S)}function m(I){ue(I.detail)}function ue(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){w.value=k;return}if(!(I&&I.key!==e)){L();try{w.value=Te(I)}catch(S){C(S)}finally{I?Ja(K):K()}}}}}function qc(e,t,n={}){const{window:r=qs}=n;return rT(e,t,r==null?void 0:r.localStorage,n)}var Ui=Ui||{};Ui.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),i=e.visit(t.style);return i&&(n+=" "+i),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,i=e.visit(n.length);return i&&(r+=" "+i),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(i,o){n+=e.visit(i),o0&&n("Invalid input not EOF"),z}function i(){return K(o)}function o(){return s("linear-gradient",e.linearGradient,c)||s("repeating-linear-gradient",e.repeatingLinearGradient,c)||s("radial-gradient",e.radialGradient,p)||s("repeating-radial-gradient",e.repeatingRadialGradient,p)}function s(z,ie,fe){return l(ie,function(nt){var Ve=fe();return Ve&&(je(e.comma)||n("Missing comma before color stops")),{type:z,orientation:Ve,colorStops:K(D)}})}function l(z,ie){var fe=je(z);if(fe){je(e.startCall)||n("Missing (");var nt=ie(fe);return je(e.endCall)||n("Missing )"),nt}}function c(){return d()||h()}function d(){return ye("directional",e.sideOrCorner,1)}function h(){return ye("angular",e.angleValue,1)}function p(){var z,ie=y(),fe;return ie&&(z=[],z.push(ie),fe=t,je(e.comma)&&(ie=y(),ie?z.push(ie):t=fe)),z}function y(){var z=C()||w();if(z)z.at=O();else{var ie=k();if(ie){z=ie;var fe=O();fe&&(z.at=fe)}else{var nt=N();nt&&(z={type:"default-radial",at:nt})}}return z}function C(){var z=ye("shape",/^(circle)/i,0);return z&&(z.style=J()||k()),z}function w(){var z=ye("shape",/^(ellipse)/i,0);return z&&(z.style=j()||k()),z}function k(){return ye("extent-keyword",e.extentKeywords,1)}function O(){if(ye("position",/^at/,0)){var z=N();return z||n("Missing positioning value"),z}}function N(){var z=L();if(z.x||z.y)return{type:"position",value:z}}function L(){return{x:j(),y:j()}}function K(z){var ie=z(),fe=[];if(ie)for(fe.push(ie);je(e.comma);)ie=z(),ie?fe.push(ie):n("One extra comma");return fe}function D(){var z=Te();return z||n("Expected color definition"),z.length=j(),z}function Te(){return ue()||S()||I()||m()}function m(){return ye("literal",e.literalColor,0)}function ue(){return ye("hex",e.hexColor,1)}function I(){return l(e.rgbColor,function(){return{type:"rgb",value:K(P)}})}function S(){return l(e.rgbaColor,function(){return{type:"rgba",value:K(P)}})}function P(){return je(e.number)[1]}function j(){return ye("%",e.percentageValue,1)||ee()||J()}function ee(){return ye("position-keyword",e.positionKeywords,1)}function J(){return ye("px",e.pixelValue,1)||ye("em",e.emValue,1)}function ye(z,ie,fe){var nt=je(ie);if(nt)return{type:z,value:nt[fe]}}function je(z){var ie,fe;return fe=/^[\n\r\t\s]+/.exec(t),fe&&Ne(fe[0].length),ie=z.exec(t),ie&&Ne(ie[0].length),ie}function Ne(z){t=t.substr(z)}return function(z){return t=z.toString(),r()}}();var iT=Ui.parse,oT=Ui.stringify,Fn="top",ar="bottom",lr="right",$n="left",zc="auto",Gs=[Fn,ar,lr,$n],Io="start",Ys="end",sT="clippingParents",Pg="viewport",Xs="popper",aT="reference",Dg=Gs.reduce(function(e,t){return e.concat([t+"-"+Io,t+"-"+Ys])},[]),Rg=[].concat(Gs,[zc]).reduce(function(e,t){return e.concat([t,t+"-"+Io,t+"-"+Ys])},[]),lT="beforeRead",uT="read",cT="afterRead",fT="beforeMain",dT="main",pT="afterMain",hT="beforeWrite",gT="write",mT="afterWrite",vT=[lT,uT,cT,fT,dT,pT,hT,gT,mT];function Rr(e){return e?(e.nodeName||"").toLowerCase():null}function Yn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){var t=Yn(e).Element;return e instanceof t||e instanceof Element}function ur(e){var t=Yn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gc(e){if(typeof ShadowRoot>"u")return!1;var t=Yn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function yT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ur(o)||!Rr(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function bT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!ur(i)||!Rr(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Ng={name:"applyStyles",enabled:!0,phase:"write",fn:yT,effect:bT,requires:["computeStyles"]};function Nr(e){return e.split("-")[0]}var Ki=Math.max,Dl=Math.min,Po=Math.round;function Yc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Mg(){return!/^((?!chrome|android).)*safari/i.test(Yc())}function Do(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ur(e)&&(i=e.offsetWidth>0&&Po(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Po(r.height)/e.offsetHeight||1);var s=Wi(e)?Yn(e):window,l=s.visualViewport,c=!Mg()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/i,h=(r.top+(c&&l?l.offsetTop:0))/o,p=r.width/i,y=r.height/o;return{width:p,height:y,top:h,right:d+p,bottom:h+y,left:d,x:d,y:h}}function Xc(e){var t=Do(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 Fg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yr(e){return Yn(e).getComputedStyle(e)}function CT(e){return["table","td","th"].indexOf(Rr(e))>=0}function yi(e){return((Wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rl(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(Gc(e)?e.host:null)||yi(e)}function $g(e){return!ur(e)||Yr(e).position==="fixed"?null:e.offsetParent}function _T(e){var t=/firefox/i.test(Yc()),n=/Trident/i.test(Yc());if(n&&ur(e)){var r=Yr(e);if(r.position==="fixed")return null}var i=Rl(e);for(Gc(i)&&(i=i.host);ur(i)&&["html","body"].indexOf(Rr(i))<0;){var o=Yr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Js(e){for(var t=Yn(e),n=$g(e);n&&CT(n)&&Yr(n).position==="static";)n=$g(n);return n&&(Rr(n)==="html"||Rr(n)==="body"&&Yr(n).position==="static")?t:n||_T(e)||t}function Jc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return Ki(e,Dl(t,n))}function wT(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function Bg(){return{top:0,right:0,bottom:0,left:0}}function Hg(e){return Object.assign({},Bg(),e)}function jg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var TT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Hg(typeof t!="number"?t:jg(t,Gs))};function xT(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Nr(n.placement),c=Jc(l),d=[$n,lr].indexOf(l)>=0,h=d?"height":"width";if(!(!o||!s)){var p=TT(i.padding,n),y=Xc(o),C=c==="y"?Fn:$n,w=c==="y"?ar:lr,k=n.rects.reference[h]+n.rects.reference[c]-s[c]-n.rects.popper[h],O=s[c]-n.rects.reference[c],N=Js(o),L=N?c==="y"?N.clientHeight||0:N.clientWidth||0:0,K=k/2-O/2,D=p[C],Te=L-y[h]-p[w],m=L/2-y[h]/2+K,ue=Zs(D,m,Te),I=c;n.modifiersData[r]=(t={},t[I]=ue,t.centerOffset=ue-m,t)}}function kT(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Fg(t.elements.popper,i)&&(t.elements.arrow=i))}const ST={name:"arrow",enabled:!0,phase:"main",fn:xT,effect:kT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ro(e){return e.split("-")[1]}var AT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ET(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Po(n*i)/i||0,y:Po(r*i)/i||0}}function Ug(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,p=e.isFixed,y=s.x,C=y===void 0?0:y,w=s.y,k=w===void 0?0:w,O=typeof h=="function"?h({x:C,y:k}):{x:C,y:k};C=O.x,k=O.y;var N=s.hasOwnProperty("x"),L=s.hasOwnProperty("y"),K=$n,D=Fn,Te=window;if(d){var m=Js(n),ue="clientHeight",I="clientWidth";if(m===Yn(n)&&(m=yi(n),Yr(m).position!=="static"&&l==="absolute"&&(ue="scrollHeight",I="scrollWidth")),m=m,i===Fn||(i===$n||i===lr)&&o===Ys){D=ar;var S=p&&m===Te&&Te.visualViewport?Te.visualViewport.height:m[ue];k-=S-r.height,k*=c?1:-1}if(i===$n||(i===Fn||i===ar)&&o===Ys){K=lr;var P=p&&m===Te&&Te.visualViewport?Te.visualViewport.width:m[I];C-=P-r.width,C*=c?1:-1}}var j=Object.assign({position:l},d&&AT),ee=h===!0?ET({x:C,y:k},Yn(n)):{x:C,y:k};if(C=ee.x,k=ee.y,c){var J;return Object.assign({},j,(J={},J[D]=L?"0":"",J[K]=N?"0":"",J.transform=(Te.devicePixelRatio||1)<=1?"translate("+C+"px, "+k+"px)":"translate3d("+C+"px, "+k+"px, 0)",J))}return Object.assign({},j,(t={},t[D]=L?k+"px":"",t[K]=N?C+"px":"",t.transform="",t))}function OT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:Nr(t.placement),variation:Ro(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ug(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ug(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const LT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:OT,data:{}};var Nl={passive:!0};function IT(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=Yn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(h){h.addEventListener("scroll",n.update,Nl)}),l&&c.addEventListener("resize",n.update,Nl),function(){o&&d.forEach(function(h){h.removeEventListener("scroll",n.update,Nl)}),l&&c.removeEventListener("resize",n.update,Nl)}}const PT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:IT,data:{}};var DT={left:"right",right:"left",bottom:"top",top:"bottom"};function Ml(e){return e.replace(/left|right|bottom|top/g,function(t){return DT[t]})}var RT={start:"end",end:"start"};function Wg(e){return e.replace(/start|end/g,function(t){return RT[t]})}function Zc(e){var t=Yn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qc(e){return Do(yi(e)).left+Zc(e).scrollLeft}function NT(e,t){var n=Yn(e),r=yi(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){o=i.width,s=i.height;var d=Mg();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:l+Qc(e),y:c}}function MT(e){var t,n=yi(e),r=Zc(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ki(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Ki(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Qc(e),c=-r.scrollTop;return Yr(i||n).direction==="rtl"&&(l+=Ki(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function ef(e){var t=Yr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Kg(e){return["html","body","#document"].indexOf(Rr(e))>=0?e.ownerDocument.body:ur(e)&&ef(e)?e:Kg(Rl(e))}function Qs(e,t){var n;t===void 0&&(t=[]);var r=Kg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Yn(r),s=i?[o].concat(o.visualViewport||[],ef(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Qs(Rl(s)))}function tf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function FT(e,t){var n=Do(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vg(e,t,n){return t===Pg?tf(NT(e,n)):Wi(t)?FT(t,n):tf(MT(yi(e)))}function $T(e){var t=Qs(Rl(e)),n=["absolute","fixed"].indexOf(Yr(e).position)>=0,r=n&&ur(e)?Js(e):e;return Wi(r)?t.filter(function(i){return Wi(i)&&Fg(i,r)&&Rr(i)!=="body"}):[]}function BT(e,t,n,r){var i=t==="clippingParents"?$T(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(c,d){var h=Vg(e,d,r);return c.top=Ki(h.top,c.top),c.right=Dl(h.right,c.right),c.bottom=Dl(h.bottom,c.bottom),c.left=Ki(h.left,c.left),c},Vg(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qg(e){var t=e.reference,n=e.element,r=e.placement,i=r?Nr(r):null,o=r?Ro(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Fn:c={x:s,y:t.y-n.height};break;case ar:c={x:s,y:t.y+t.height};break;case lr:c={x:t.x+t.width,y:l};break;case $n:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?Jc(i):null;if(d!=null){var h=d==="y"?"height":"width";switch(o){case Io:c[d]=c[d]-(t[h]/2-n[h]/2);break;case Ys:c[d]=c[d]+(t[h]/2-n[h]/2);break}}return c}function ea(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?sT:l,d=n.rootBoundary,h=d===void 0?Pg:d,p=n.elementContext,y=p===void 0?Xs:p,C=n.altBoundary,w=C===void 0?!1:C,k=n.padding,O=k===void 0?0:k,N=Hg(typeof O!="number"?O:jg(O,Gs)),L=y===Xs?aT:Xs,K=e.rects.popper,D=e.elements[w?L:y],Te=BT(Wi(D)?D:D.contextElement||yi(e.elements.popper),c,h,s),m=Do(e.elements.reference),ue=qg({reference:m,element:K,strategy:"absolute",placement:i}),I=tf(Object.assign({},K,ue)),S=y===Xs?I:m,P={top:Te.top-S.top+N.top,bottom:S.bottom-Te.bottom+N.bottom,left:Te.left-S.left+N.left,right:S.right-Te.right+N.right},j=e.modifiersData.offset;if(y===Xs&&j){var ee=j[i];Object.keys(P).forEach(function(J){var ye=[lr,ar].indexOf(J)>=0?1:-1,je=[Fn,ar].indexOf(J)>=0?"y":"x";P[J]+=ee[je]*ye})}return P}function HT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Rg:c,h=Ro(r),p=h?l?Dg:Dg.filter(function(w){return Ro(w)===h}):Gs,y=p.filter(function(w){return d.indexOf(w)>=0});y.length===0&&(y=p);var C=y.reduce(function(w,k){return w[k]=ea(e,{placement:k,boundary:i,rootBoundary:o,padding:s})[Nr(k)],w},{});return Object.keys(C).sort(function(w,k){return C[w]-C[k]})}function jT(e){if(Nr(e)===zc)return[];var t=Ml(e);return[Wg(e),t,Wg(t)]}function UT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,h=n.boundary,p=n.rootBoundary,y=n.altBoundary,C=n.flipVariations,w=C===void 0?!0:C,k=n.allowedAutoPlacements,O=t.options.placement,N=Nr(O),L=N===O,K=c||(L||!w?[Ml(O)]:jT(O)),D=[O].concat(K).reduce(function(we,Ae){return we.concat(Nr(Ae)===zc?HT(t,{placement:Ae,boundary:h,rootBoundary:p,padding:d,flipVariations:w,allowedAutoPlacements:k}):Ae)},[]),Te=t.rects.reference,m=t.rects.popper,ue=new Map,I=!0,S=D[0],P=0;P=0,je=ye?"width":"height",Ne=ea(t,{placement:j,boundary:h,rootBoundary:p,altBoundary:y,padding:d}),z=ye?J?lr:$n:J?ar:Fn;Te[je]>m[je]&&(z=Ml(z));var ie=Ml(z),fe=[];if(o&&fe.push(Ne[ee]<=0),l&&fe.push(Ne[z]<=0,Ne[ie]<=0),fe.every(function(we){return we})){S=j,I=!1;break}ue.set(j,fe)}if(I)for(var nt=w?3:1,Ve=function(Ae){var Oe=D.find(function(Be){var Xe=ue.get(Be);if(Xe)return Xe.slice(0,Ae).every(function(Le){return Le})});if(Oe)return S=Oe,"break"},ne=nt;ne>0;ne--){var ge=Ve(ne);if(ge==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const WT={name:"flip",enabled:!0,phase:"main",fn:UT,requiresIfExists:["offset"],data:{_skip:!1}};function zg(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 Gg(e){return[Fn,lr,ar,$n].some(function(t){return e[t]>=0})}function KT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=ea(t,{elementContext:"reference"}),l=ea(t,{altBoundary:!0}),c=zg(s,r),d=zg(l,i,o),h=Gg(c),p=Gg(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const VT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KT};function qT(e,t,n){var r=Nr(e),i=[$n,Fn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[$n,lr].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function zT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=Rg.reduce(function(h,p){return h[p]=qT(p,t.rects,o),h},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const GT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zT};function YT(e){var t=e.state,n=e.name;t.modifiersData[n]=qg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const XT={name:"popperOffsets",enabled:!0,phase:"read",fn:YT,data:{}};function JT(e){return e==="x"?"y":"x"}function ZT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,y=n.tether,C=y===void 0?!0:y,w=n.tetherOffset,k=w===void 0?0:w,O=ea(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:h}),N=Nr(t.placement),L=Ro(t.placement),K=!L,D=Jc(N),Te=JT(D),m=t.modifiersData.popperOffsets,ue=t.rects.reference,I=t.rects.popper,S=typeof k=="function"?k(Object.assign({},t.rects,{placement:t.placement})):k,P=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ee={x:0,y:0};if(m){if(o){var J,ye=D==="y"?Fn:$n,je=D==="y"?ar:lr,Ne=D==="y"?"height":"width",z=m[D],ie=z+O[ye],fe=z-O[je],nt=C?-I[Ne]/2:0,Ve=L===Io?ue[Ne]:I[Ne],ne=L===Io?-I[Ne]:-ue[Ne],ge=t.elements.arrow,we=C&&ge?Xc(ge):{width:0,height:0},Ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bg(),Oe=Ae[ye],Be=Ae[je],Xe=Zs(0,ue[Ne],we[Ne]),Le=K?ue[Ne]/2-nt-Xe-Oe-P.mainAxis:Ve-Xe-Oe-P.mainAxis,rt=K?-ue[Ne]/2+nt+Xe+Be+P.mainAxis:ne+Xe+Be+P.mainAxis,mt=t.elements.arrow&&Js(t.elements.arrow),R=mt?D==="y"?mt.clientTop||0:mt.clientLeft||0:0,$=(J=j==null?void 0:j[D])!=null?J:0,G=z+Le-$-R,te=z+rt-$,W=Zs(C?Dl(ie,G):ie,z,C?Ki(fe,te):fe);m[D]=W,ee[D]=W-z}if(l){var X,Ce=D==="x"?Fn:$n,de=D==="x"?ar:lr,me=m[Te],se=Te==="y"?"height":"width",ke=me+O[Ce],_e=me-O[de],Me=[Fn,$n].indexOf(N)!==-1,Se=(X=j==null?void 0:j[Te])!=null?X:0,qe=Me?ke:me-ue[se]-I[se]-Se+P.altAxis,ft=Me?me+ue[se]+I[se]-Se-P.altAxis:_e,at=C&&Me?wT(qe,me,ft):Zs(C?qe:ke,me,C?ft:_e);m[Te]=at,ee[Te]=at-me}t.modifiersData[r]=ee}}const QT={name:"preventOverflow",enabled:!0,phase:"main",fn:ZT,requiresIfExists:["offset"]};function ex(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function tx(e){return e===Yn(e)||!ur(e)?Zc(e):ex(e)}function nx(e){var t=e.getBoundingClientRect(),n=Po(t.width)/e.offsetWidth||1,r=Po(t.height)/e.offsetHeight||1;return n!==1||r!==1}function rx(e,t,n){n===void 0&&(n=!1);var r=ur(t),i=ur(t)&&nx(t),o=yi(t),s=Do(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Rr(t)!=="body"||ef(o))&&(l=tx(t)),ur(t)?(c=Do(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Qc(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ix(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function ox(e){var t=ix(e);return vT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function sx(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ax(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Yg={placement:"bottom",modifiers:[],strategy:"absolute"};function Xg(){for(var e=arguments.length,t=new Array(e),n=0;n * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */function Zg(e){return Object.prototype.toString.call(e)==="[object Object]"}function cx(e){var t,n;return Zg(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Zg(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}const fx={silent:!1,logLevel:"warn"},dx=["validator"],em=Object.prototype,tm=em.toString,px=em.hasOwnProperty,nm=/^\s*function (\w+)/;function rm(e){var t;const n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){const r=n.toString().match(nm);return r?r[1]:""}return""}const Vi=cx;let Cn=e=>e;const No=(e,t)=>px.call(e,t),hx=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Mo=Array.isArray||function(e){return tm.call(e)==="[object Array]"},Fo=e=>tm.call(e)==="[object Function]",Fl=e=>Vi(e)&&No(e,"_vueTypes_name"),im=e=>Vi(e)&&(No(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>No(e,t)));function nf(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function qi(e,t,n=!1){let r,i=!0,o="";r=Vi(e)?e:{type:e};const s=Fl(r)?r._vueTypes_name+" - ":"";if(im(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return i;Mo(r.type)?(i=r.type.some(l=>qi(l,t,!0)===!0),o=r.type.map(l=>rm(l)).join(" or ")):(o=rm(r),i=o==="Array"?Mo(t):o==="Object"?Vi(t):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(l){if(l==null)return"";const c=l.constructor.toString().match(nm);return c?c[1]:""}(t)===o:t instanceof r.type)}if(!i){const l=`${s}value "${t}" should be of type "${o}"`;return n===!1?(Cn(l),!1):l}if(No(r,"validator")&&Fo(r.validator)){const l=Cn,c=[];if(Cn=d=>{c.push(d)},i=r.validator(t),Cn=l,!i){const d=(c.length>1?"* ":"")+c.join(` * `);return c.length=0,n===!1?(Cn(d),i):d}}return i}function Xn(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(i){return i===void 0?(No(this,"default")&&delete this.default,this):Fo(i)||qi(this,i,!0)===!0?(this.default=Mo(i)?()=>[...i]:Vi(i)?()=>Object.assign({},i):i,this):(Cn(`${this._vueTypes_name} - invalid default value: "${i}"`),this)}}}),{validator:r}=n;return Fo(r)&&(n.validator=nf(r,n)),n}function Mr(e,t){const n=Xn(e,t);return Object.defineProperty(n,"validate",{value(r){return Fo(this.validator)&&Cn(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info: ${JSON.stringify(this)}`),this.validator=nf(r,this),this}})}function om(e,t,n){const r=function(c){const d={};return Object.getOwnPropertyNames(c).forEach(h=>{d[h]=Object.getOwnPropertyDescriptor(c,h)}),Object.defineProperties({},d)}(t);if(r._vueTypes_name=e,!Vi(n))return r;const{validator:i}=n,o=Qg(n,dx);if(Fo(i)){let{validator:c}=r;c&&(c=(l=(s=c).__original)!==null&&l!==void 0?l:s),r.validator=nf(c?function(d){return c.call(this,d)&&i.call(this,d)}:i,r)}var s,l;return Object.assign(r,o)}function $l(e){return e.replace(/^(?!\s*$)/gm," ")}const gx=()=>Mr("any",{}),mx=()=>Mr("function",{type:Function}),vx=()=>Mr("boolean",{type:Boolean}),yx=()=>Mr("string",{type:String}),bx=()=>Mr("number",{type:Number}),Cx=()=>Mr("array",{type:Array}),_x=()=>Mr("object",{type:Object}),wx=()=>Xn("integer",{type:Number,validator:e=>hx(e)}),Tx=()=>Xn("symbol",{validator:e=>typeof e=="symbol"});function xx(e,t="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Xn(e.name||"<>",{type:null,validator(n){const r=e(n);return r||Cn(`${this._vueTypes_name} - ${t}`),r}})}function kx(e){if(!Mo(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,n=e.reduce((r,i)=>{if(i!=null){const o=i.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return Xn("oneOf",{type:n.length>0?n:void 0,validator(r){const i=e.indexOf(r)!==-1;return i||Cn(t),i}})}function Sx(e){if(!Mo(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=[];for(let i=0;in.indexOf(i)===o);const r=n.length>0?n:null;return Xn("oneOfType",t?{type:r,validator(i){const o=[],s=e.some(l=>{const c=qi(Fl(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,i,!0);return typeof c=="string"&&o.push(c),c===!0});return s||Cn(`oneOfType - provided value does not match any of the ${o.length} passed-in validators: ${$l(o.join(` `))}`),s}}:{type:r})}function Ax(e){return Xn("arrayOf",{type:Array,validator(t){let n="";const r=t.every(i=>(n=qi(e,i,!0),n===!0));return r||Cn(`arrayOf - value validation error: ${$l(n)}`),r}})}function Ex(e){return Xn("instanceOf",{type:e})}function Ox(e){return Xn("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(i=>(n=qi(e,t[i],!0),n===!0));return r||Cn(`objectOf - value validation error: ${$l(n)}`),r}})}function Lx(e){const t=Object.keys(e),n=t.filter(i=>{var o;return!((o=e[i])===null||o===void 0||!o.required)}),r=Xn("shape",{type:Object,validator(i){if(!Vi(i))return!1;const o=Object.keys(i);if(n.length>0&&n.some(s=>o.indexOf(s)===-1)){const s=n.filter(l=>o.indexOf(l)===-1);return Cn(s.length===1?`shape - required property "${s[0]}" is not defined.`:`shape - required properties "${s.join('", "')}" are not defined.`),!1}return o.every(s=>{if(t.indexOf(s)===-1)return this._vueTypes_isLoose===!0||(Cn(`shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join('", "')}".`),!1);const l=qi(e[s],i[s],!0);return typeof l=="string"&&Cn(`shape - "${s}" property validation error: ${$l(l)}`),l===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const Ix=["name","validate","getter"],Px=(()=>{var e;return(e=class{static get any(){return gx()}static get func(){return mx().def(this.defaults.func)}static get bool(){return vx().def(this.defaults.bool)}static get string(){return yx().def(this.defaults.string)}static get number(){return bx().def(this.defaults.number)}static get array(){return Cx().def(this.defaults.array)}static get object(){return _x().def(this.defaults.object)}static get integer(){return wx().def(this.defaults.integer)}static get symbol(){return Tx()}static get nullable(){return{type:null}}static extend(t){if(Mo(t))return t.forEach(c=>this.extend(c)),this;const{name:n,validate:r=!1,getter:i=!1}=t,o=Qg(t,Ix);if(No(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:s}=o;if(Fl(s))return delete o.type,Object.defineProperty(this,n,i?{get:()=>om(n,s,o)}:{value(...c){const d=om(n,s,o);return d.validator&&(d.validator=d.validator.bind(d,...c)),d}});let l;return l=i?{get(){const c=Object.assign({},o);return r?Mr(n,c):Xn(n,c)},enumerable:!0}:{value(...c){const d=Object.assign({},o);let h;return h=r?Mr(n,d):Xn(n,d),d.validator&&(h.validator=d.validator.bind(h,...c)),h},enumerable:!0},Object.defineProperty(this,n,l)}}).defaults={},e.sensibleDefaults=void 0,e.config=fx,e.custom=xx,e.oneOf=kx,e.instanceOf=Ex,e.oneOfType=Sx,e.arrayOf=Ax,e.objectOf=Ox,e.shape=Lx,e.utils={validate:(t,n)=>qi(n,t,!0)===!0,toType:(t,n,r=!1)=>r?Mr(t,n):Xn(t,n)},e})();function Dx(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends Px{static get sensibleDefaults(){return ta({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?ta({},n!==!0?n:e):{}}}).defaults=ta({},e),t}let st=class extends Dx(){};var sm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rf(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bl=function(e){return e&&e.Math==Math&&e},rn=Bl(typeof globalThis=="object"&&globalThis)||Bl(typeof window=="object"&&window)||Bl(typeof self=="object"&&self)||Bl(typeof sm=="object"&&sm)||function(){return this}()||Function("return this")(),Nt=function(e){try{return!!e()}catch{return!0}},cr=!Nt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),am={}.propertyIsEnumerable,lm=Object.getOwnPropertyDescriptor,Rx={f:lm&&!am.call({1:2},1)?function(e){var t=lm(this,e);return!!t&&t.enumerable}:am},Hl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nx={}.toString,Xr=function(e){return Nx.call(e).slice(8,-1)},Mx="".split,jl=Nt(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return Xr(e)=="String"?Mx.call(e,""):Object(e)}:Object,bi=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},$o=function(e){return jl(bi(e))},cn=function(e){return typeof e=="object"?e!==null:typeof e=="function"},of=function(e,t){if(!cn(e))return e;var n,r;if(t&&typeof(n=e.toString)=="function"&&!cn(r=n.call(e))||typeof(n=e.valueOf)=="function"&&!cn(r=n.call(e))||!t&&typeof(n=e.toString)=="function"&&!cn(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Fx={}.hasOwnProperty,Zt=function(e,t){return Fx.call(e,t)},sf=rn.document,$x=cn(sf)&&cn(sf.createElement),um=function(e){return $x?sf.createElement(e):{}},cm=!cr&&!Nt(function(){return Object.defineProperty(um("div"),"a",{get:function(){return 7}}).a!=7}),fm=Object.getOwnPropertyDescriptor,af={f:cr?fm:function(e,t){if(e=$o(e),t=of(t,!0),cm)try{return fm(e,t)}catch{}if(Zt(e,t))return Hl(!Rx.f.call(e,t),e[t])}},On=function(e){if(!cn(e))throw TypeError(String(e)+" is not an object");return e},dm=Object.defineProperty,Jr={f:cr?dm:function(e,t,n){if(On(e),t=of(t,!0),On(n),cm)try{return dm(e,t,n)}catch{}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},fr=cr?function(e,t,n){return Jr.f(e,t,Hl(1,n))}:function(e,t,n){return e[t]=n,e},lf=function(e,t){try{fr(rn,e,t)}catch{rn[e]=t}return t},zi=rn["__core-js_shared__"]||lf("__core-js_shared__",{}),Bx=Function.toString;typeof zi.inspectSource!="function"&&(zi.inspectSource=function(e){return Bx.call(e)});var Ul,na,Wl,pm=zi.inspectSource,hm=rn.WeakMap,Hx=typeof hm=="function"&&/native code/.test(pm(hm)),gm=rf(function(e){(e.exports=function(t,n){return zi[t]||(zi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jx=0,Ux=Math.random(),uf=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++jx+Ux).toString(36)},mm=gm("keys"),cf=function(e){return mm[e]||(mm[e]=uf(e))},Kl={},Wx=rn.WeakMap;if(Hx){var Bo=zi.state||(zi.state=new Wx),Kx=Bo.get,Vx=Bo.has,qx=Bo.set;Ul=function(e,t){return t.facade=e,qx.call(Bo,e,t),t},na=function(e){return Kx.call(Bo,e)||{}},Wl=function(e){return Vx.call(Bo,e)}}else{var ra=cf("state");Kl[ra]=!0,Ul=function(e,t){return t.facade=e,fr(e,ra,t),t},na=function(e){return Zt(e,ra)?e[ra]:{}},Wl=function(e){return Zt(e,ra)}}var Ci={set:Ul,get:na,has:Wl,enforce:function(e){return Wl(e)?na(e):Ul(e,{})},getterFor:function(e){return function(t){var n;if(!cn(t)||(n=na(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},_i=rf(function(e){var t=Ci.get,n=Ci.enforce,r=String(String).split("String");(e.exports=function(i,o,s,l){var c,d=!!l&&!!l.unsafe,h=!!l&&!!l.enumerable,p=!!l&&!!l.noTargetGet;typeof s=="function"&&(typeof o!="string"||Zt(s,"name")||fr(s,"name",o),(c=n(s)).source||(c.source=r.join(typeof o=="string"?o:""))),i!==rn?(d?!p&&i[o]&&(h=!0):delete i[o],h?i[o]=s:fr(i,o,s)):h?i[o]=s:lf(o,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||pm(this)})}),ff=rn,vm=function(e){return typeof e=="function"?e:void 0},Vl=function(e,t){return arguments.length<2?vm(ff[e])||vm(rn[e]):ff[e]&&ff[e][t]||rn[e]&&rn[e][t]},zx=Math.ceil,Gx=Math.floor,Ho=function(e){return isNaN(e=+e)?0:(e>0?Gx:zx)(e)},Yx=Math.min,Jn=function(e){return e>0?Yx(Ho(e),9007199254740991):0},Xx=Math.max,Jx=Math.min,ql=function(e,t){var n=Ho(e);return n<0?Xx(n+t,0):Jx(n,t)},ym=function(e){return function(t,n,r){var i,o=$o(t),s=Jn(o.length),l=ql(r,s);if(e&&n!=n){for(;s>l;)if((i=o[l++])!=i)return!0}else for(;s>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},bm={includes:ym(!0),indexOf:ym(!1)},Zx=bm.indexOf,Cm=function(e,t){var n,r=$o(e),i=0,o=[];for(n in r)!Zt(Kl,n)&&Zt(r,n)&&o.push(n);for(;t.length>i;)Zt(r,n=t[i++])&&(~Zx(o,n)||o.push(n));return o},zl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qx=zl.concat("length","prototype"),ek={f:Object.getOwnPropertyNames||function(e){return Cm(e,Qx)}},tk={f:Object.getOwnPropertySymbols},nk=Vl("Reflect","ownKeys")||function(e){var t=ek.f(On(e)),n=tk.f;return n?t.concat(n(e)):t},rk=function(e,t){for(var n=nk(t),r=Jr.f,i=af.f,o=0;o1?arguments[1]:void 0)}}),function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e}();var hk=[].join,gk=jl!=Object,mk=pf("join",",");_n({target:"Array",proto:!0,forced:gk||!mk},{join:function(e){return hk.call($o(this),e===void 0?",":e)}});var Uo,Gl,Zr=function(e){return Object(bi(e))},Wo=Array.isArray||function(e){return Xr(e)=="Array"},km=!!Object.getOwnPropertySymbols&&!Nt(function(){return!String(Symbol())}),vk=km&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yl=gm("wks"),oa=rn.Symbol,yk=vk?oa:oa&&oa.withoutSetter||uf,Vt=function(e){return Zt(Yl,e)||(km&&Zt(oa,e)?Yl[e]=oa[e]:Yl[e]=yk("Symbol."+e)),Yl[e]},bk=Vt("species"),Xl=function(e,t){var n;return Wo(e)&&(typeof(n=e.constructor)!="function"||n!==Array&&!Wo(n.prototype)?cn(n)&&(n=n[bk])===null&&(n=void 0):n=void 0),new(n===void 0?Array:n)(t===0?0:t)},Ko=function(e,t,n){var r=of(t);r in e?Jr.f(e,r,Hl(0,n)):e[r]=n},gf=Vl("navigator","userAgent")||"",Sm=rn.process,Am=Sm&&Sm.versions,Em=Am&&Am.v8;Em?Gl=(Uo=Em.split("."))[0]+Uo[1]:gf&&(!(Uo=gf.match(/Edge\/(\d+)/))||Uo[1]>=74)&&(Uo=gf.match(/Chrome\/(\d+)/))&&(Gl=Uo[1]);var Jl=Gl&&+Gl,Ck=Vt("species"),mf=function(e){return Jl>=51||!Nt(function(){var t=[];return(t.constructor={})[Ck]=function(){return{foo:1}},t[e](Boolean).foo!==1})},_k=mf("splice"),wk=jo("splice",{ACCESSORS:!0,0:0,1:2}),Tk=Math.max,xk=Math.min;_n({target:"Array",proto:!0,forced:!_k||!wk},{splice:function(e,t){var n,r,i,o,s,l,c=Zr(this),d=Jn(c.length),h=ql(e,d),p=arguments.length;if(p===0?n=r=0:p===1?(n=0,r=d-h):(n=p-2,r=xk(Tk(Ho(t),0),d-h)),d+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Xl(c,r),o=0;od-r+n;o--)delete c[o-1]}else if(n>r)for(o=d-r;o>h;o--)l=o+n-1,(s=o+r-1)in c?c[l]=c[s]:delete c[l];for(o=0;o0&&(!o.multiline||o.multiline&&e[o.lastIndex-1]!==` `)&&(c="(?: "+c+")",h=" "+h,d++),n=new RegExp("^(?:"+c+")",l)),_f&&(n=new RegExp("^"+c+"$(?!\\s)",l)),Cf&&(t=o.lastIndex),r=Zl.call(s?n:o,h),s?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Cf&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),_f&&r&&r.length>1&&Ek.call(r[0],n,function(){for(i=1;i")!=="7"}),$m="a".replace(/./,"$0")==="$0",Bm=Vt("replace"),Hm=!!/./[Bm]&&/./[Bm]("a","$0")==="",Dk=!Nt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),jm=function(e,t,n,r){var i=Vt(e),o=!Nt(function(){var p={};return p[i]=function(){return 7},""[e](p)!=7}),s=o&&!Nt(function(){var p=!1,y=/a/;return e==="split"&&((y={}).constructor={},y.constructor[Ik]=function(){return y},y.flags="",y[i]=/./[i]),y.exec=function(){return p=!0,null},y[i](""),!p});if(!o||!s||e==="replace"&&(!Pk||!$m||Hm)||e==="split"&&!Dk){var l=/./[i],c=n(i,""[e],function(p,y,C,w,k){return y.exec===sa?o&&!k?{done:!0,value:l.call(y,C,w)}:{done:!0,value:p.call(C,y,w)}:{done:!1}},{REPLACE_KEEPS_$0:$m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Hm}),d=c[0],h=c[1];_i(String.prototype,e,d),_i(RegExp.prototype,i,t==2?function(p,y){return h.call(p,this,y)}:function(p){return h.call(p,this)})}r&&fr(RegExp.prototype[i],"sham",!0)},Rk=Vt("match"),Um=function(e){var t;return cn(e)&&((t=e[Rk])!==void 0?!!t:Xr(e)=="RegExp")},wf=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},Nk=Vt("species"),Wm=function(e){return function(t,n){var r,i,o=String(bi(t)),s=Ho(n),l=o.length;return s<0||s>=l?e?"":void 0:(r=o.charCodeAt(s))<55296||r>56319||s+1===l||(i=o.charCodeAt(s+1))<56320||i>57343?e?o.charAt(s):r:e?o.slice(s,s+2):i-56320+(r-55296<<10)+65536}},Km={codeAt:Wm(!1),charAt:Wm(!0)},Mk=Km.charAt,Vm=function(e,t,n){return t+(n?Mk(e,t).length:1)},Tf=function(e,t){var n=e.exec;if(typeof n=="function"){var r=n.call(e,t);if(typeof r!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return r}if(Xr(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return sa.call(e,t)},Fk=[].push,$k=Math.min,Vo=!Nt(function(){return!RegExp(4294967295,"y")});jm("split",2,function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var s=String(bi(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!Um(i))return t.call(s,i,l);for(var c,d,h,p=[],y=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),C=0,w=new RegExp(i.source,y+"g");(c=sa.call(w,s))&&!((d=w.lastIndex)>C&&(p.push(s.slice(C,c.index)),c.length>1&&c.index=l));)w.lastIndex===c.index&&w.lastIndex++;return C===s.length?!h&&w.test("")||p.push(""):p.push(s.slice(C)),p.length>l?p.slice(0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:t.call(this,i,o)}:t,[function(i,o){var s=bi(this),l=i==null?void 0:i[e];return l!==void 0?l.call(i,s,o):r.call(String(s),i,o)},function(i,o){var s=n(r,i,this,o,r!==t);if(s.done)return s.value;var l=On(i),c=String(this),d=function(D,Te){var m,ue=On(D).constructor;return ue===void 0||(m=On(ue)[Nk])==null?Te:wf(m)}(l,RegExp),h=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(Vo?"y":"g"),y=new d(Vo?l:"^(?:"+l.source+")",p),C=o===void 0?4294967295:o>>>0;if(C===0)return[];if(c.length===0)return Tf(y,c)===null?[c]:[];for(var w=0,k=0,O=[];k1?arguments[1]:void 0,t.length)),r=String(e);return qm?qm.call(t,r,n):t.slice(n,n+r.length)===r}});var qo=function(e){return typeof e=="string"},zo=function(e){return e!==null&&Gm(e)==="object"},Go=function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.addEventListener(n,r,i)}},{key:"removeEventListener",value:function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.removeEventListener(n,r,i)}},{key:"triggerDragEvent",value:function(t,n){var r=!1,i=function(s){var l;(l=n.drag)===null||l===void 0||l.call(n,s)},o=function s(l){var c;e.removeEventListener(document,"mousemove",i),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,r=!1,(c=n.end)===null||c===void 0||c.call(n,l)};e.addEventListener(t,"mousedown",function(s){var l;r||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",i),e.addEventListener(document,"mouseup",o),r=!0,(l=n.start)===null||l===void 0||l.call(n,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&zo(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,n){return!!(t&&zo(t)&&qo(n)&&t.nodeType===1)&&t.classList.contains(n.trim())}},{key:"addClass",value:function(t,n){if(t&&zo(t)&&qo(n)&&t.nodeType===1&&(n=n.trim(),!e.hasClass(t,n))){var r=t.className;t.className=r?r+" "+n:n}}},{key:"removeClass",value:function(t,n){if(t&&zo(t)&&qo(n)&&t.nodeType===1&&typeof t.className=="string"){n=n.trim();for(var r=t.className.trim().split(" "),i=r.length-1;i>=0;i--)r[i]=r[i].trim(),r[i]&&r[i]!==n||r.splice(i,1);t.className=r.join(" ")}}},{key:"toggleClass",value:function(t,n,r){t&&zo(t)&&qo(n)&&t.nodeType===1&&t.classList.toggle(n,r)}},{key:"replaceClass",value:function(t,n,r){t&&zo(t)&&qo(n)&&qo(r)&&t.nodeType===1&&(n=n.trim(),r=r.trim(),e.removeClass(t,n),e.addClass(t,r))}},{key:"getScrollTop",value:function(t){var n="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(n,0)}},{key:"setScrollTop",value:function(t,n){"scrollTop"in t?t.scrollTop=n:t.scrollTo(t.scrollX,n)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,n){if(e.isWindow(t))return 0;var r=n?e.getScrollTop(n):e.getRootScrollTop();return t.getBoundingClientRect().top+r}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var n=window.getComputedStyle(t),r=n.display==="none",i=t.offsetParent===null&&n.position!=="fixed";return r||i}},{key:"triggerEvent",value:function(t,n){if("createEvent"in document){var r=document.createEvent("HTMLEvents");r.initEvent(n,!1,!0),t.dispatchEvent(r)}}},{key:"calcAngle",value:function(t,n){var r=t.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2,s=Math.abs(i-n.clientX),l=Math.abs(o-n.clientY),c=l/Math.sqrt(Math.pow(s,2)+Math.pow(l,2)),d=Math.acos(c),h=Math.floor(180/(Math.PI/d));return n.clientX>i&&n.clientY>o&&(h=180-h),n.clientX==i&&n.clientY>o&&(h=180),n.clientX>i&&n.clientY==o&&(h=90),n.clientXo&&(h=180+h),n.clientX1?r-1:0),o=1;o]*>)/g,rS=/\$([$&'`]|\d\d?)/g,iS=function(e,t,n,r,i,o){var s=n+e.length,l=r.length,c=rS;return i!==void 0&&(i=Zr(i),c=nS),tS.call(o,c,function(d,h){var p;switch(h.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":p=i[h.slice(1,-1)];break;default:var y=+h;if(y===0)return d;if(y>l){var C=eS(y/10);return C===0?d:C<=l?r[C-1]===void 0?h.charAt(1):r[C-1]+h.charAt(1):d}p=r[y-1]}return p===void 0?"":p})},oS=Math.max,sS=Math.min;jm("replace",2,function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,s=i?"$":"$0";return[function(l,c){var d=bi(this),h=l==null?void 0:l[e];return h!==void 0?h.call(l,d,c):t.call(String(d),l,c)},function(l,c){if(!i&&o||typeof c=="string"&&c.indexOf(s)===-1){var d=n(t,l,this,c);if(d.done)return d.value}var h=On(l),p=String(this),y=typeof c=="function";y||(c=String(c));var C=h.global;if(C){var w=h.unicode;h.lastIndex=0}for(var k=[];;){var O=Tf(h,p);if(O===null||(k.push(O),!C))break;String(O[0])===""&&(h.lastIndex=Vm(p,Jn(h.lastIndex),w))}for(var N,L="",K=0,D=0;D=K&&(L+=p.slice(K,m)+j,K=m+Te.length)}return L+p.slice(K)}]}),function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(n,r){return r?r.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e}(),function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"_clone",value:function(){}}]),e}();var Ym=Vt("isConcatSpreadable"),aS=Jl>=51||!Nt(function(){var e=[];return e[Ym]=!1,e.concat()[0]!==e}),lS=mf("concat"),uS=function(e){if(!cn(e))return!1;var t=e[Ym];return t!==void 0?!!t:Wo(e)};_n({target:"Array",proto:!0,forced:!aS||!lS},{concat:function(e){var t,n,r,i,o,s=Zr(this),l=Xl(s,0),c=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ko(l,c++,o)}return l.length=c,l}});var Ef,aa=function(e,t,n){if(wf(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,i){return e.call(t,r,i)};case 3:return function(r,i,o){return e.call(t,r,i,o)}}return function(){return e.apply(t,arguments)}},Xm=[].push,wi=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,s=e==7,l=e==5||o;return function(c,d,h,p){for(var y,C,w=Zr(c),k=jl(w),O=aa(d,h,3),N=Jn(k.length),L=0,K=p||Xl,D=t?K(c,N):n||s?K(c,0):void 0;N>L;L++)if((l||L in k)&&(C=O(y=k[L],L,w),e))if(t)D[L]=C;else if(C)switch(e){case 3:return!0;case 5:return y;case 6:return L;case 2:Xm.call(D,y)}else switch(e){case 4:return!1;case 7:Xm.call(D,y)}return o?-1:r||i?i:D}},Jm={forEach:wi(0),map:wi(1),filter:wi(2),some:wi(3),every:wi(4),find:wi(5),findIndex:wi(6),filterOut:wi(7)},cS=cr?Object.defineProperties:function(e,t){On(e);for(var n,r=Sf(t),i=r.length,o=0;i>o;)Jr.f(e,n=r[o++],t[n]);return e},fS=Vl("document","documentElement"),Zm=cf("IE_PROTO"),Of=function(){},Qm=function(e){return"