(function(nr){typeof define=="function"&&define.amd?define(nr):nr()})(function(){"use strict";var i3=Object.defineProperty;var o3=(nr,bt,Ai)=>bt in nr?i3(nr,bt,{enumerable:!0,configurable:!0,writable:!0,value:Ai}):nr[bt]=Ai;var $b=(nr,bt,Ai)=>(o3(nr,typeof bt!="symbol"?bt+"":bt,Ai),Ai);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(et(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 Ze(e){let t="";if(zt(e))t=e;else if(et(e))for(let n=0;nps(n,t))}const ue=e=>zt(e)?e:e==null?"":et(e)||Rt(e)&&(e.toString===hp||!ht(e.toString))?JSON.stringify(e,fp,2):String(e),fp=(e,t)=>t&&t.__v_isRef?fp(e,t.value):lo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:uo(t)?{[`Set(${t.size})`]:[...t.values()]}:Rt(t)&&!et(t)&&!gp(t)?String(t):t,Dt={},ao=[],mr=()=>{},Kb=()=>!1,Vb=/^on[^a-z]/,Na=e=>Vb.test(e),ju=e=>e.startsWith("onUpdate:"),kn=Object.assign,Uu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qb=Object.prototype.hasOwnProperty,_t=(e,t)=>qb.call(e,t),et=Array.isArray,lo=e=>gs(e)==="[object Map]",uo=e=>gs(e)==="[object Set]",dp=e=>gs(e)==="[object Date]",ht=e=>typeof e=="function",zt=e=>typeof e=="string",hs=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",pp=e=>Rt(e)&&ht(e.then)&&ht(e.catch),hp=Object.prototype.toString,gs=e=>hp.call(e),zb=e=>gs(e).slice(8,-1),gp=e=>gs(e)==="[object Object]",Wu=e=>zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ma=nr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fa=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Gb=/-(\w)/g,Ar=Fa(e=>e.replace(Gb,(t,n)=>n?n.toUpperCase():"")),Yb=/\B([A-Z])/g,co=Fa(e=>e.replace(Yb,"-$1").toLowerCase()),$a=Fa(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ku=Fa(e=>e?`on${$a(e)}`:""),ms=(e,t)=>!Object.is(e,t),Ba=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ja=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let mp;const Xb=()=>mp||(mp=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},yp=e=>(e.w&ai)>0,bp=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":et(e)?Wu(n)&&l.push(s.get("length")):(l.push(s.get(Ei)),lo(e)&&l.push(s.get(Gu)));break;case"delete":et(e)||(l.push(s.get(Ei)),lo(e)&&l.push(s.get(Gu)));break;case"set":lo(e)&&l.push(s.get(Ei));break}if(l.length===1)l[0]&&Xu(l[0]);else{const c=[];for(const d of l)d&&c.push(...d);Xu(Vu(c))}}function Xu(e,t){const n=et(e)?e:[...e];for(const r of n)r.computed&&Tp(r);for(const r of n)r.computed||Tp(r)}function Tp(e,t){(e!==vr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const nC=nr("__proto__,__v_isRef,__isVue"),xp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hs)),rC=Ju(),iC=Ju(!1,!0),oC=Ju(!0),kp=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){fo();const r=kt(this)[t].apply(this,n);return po(),r}}),e}function aC(e){const t=kt(this);return Pn(t,"has",e),t.hasOwnProperty(e)}function Ju(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:Rp:t?Dp:Pp).get(r))return r;const s=et(r);if(!e){if(s&&_t(kp,i))return Reflect.get(kp,i,o);if(i==="hasOwnProperty")return aC}const l=Reflect.get(r,i,o);return(hs(i)?xp.has(i):nC(i))||(e||Pn(r,"get",i),t)?l:mn(l)?s&&Wu(i)?l:l.value:Rt(l)?e?ec(l):Dn(l):l}}const lC=Sp(),uC=Sp(!0);function Sp(e=!1){return function(n,r,i,o){let s=n[r];if(go(s)&&mn(s)&&!mn(i))return!1;if(!e&&(!Ga(i)&&!go(i)&&(s=kt(s),i=kt(i)),!et(n)&&mn(s)&&!mn(i)))return s.value=i,!0;const l=et(n)&&Wu(r)?Number(r)e,Ua=e=>Reflect.getPrototypeOf(e);function Wa(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}=Ua(i),l=r?Zu:n?nc:ys;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 Ka(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 Va(e,t=!1){return e=e.__v_raw,!t&&Pn(kt(e),"iterate",Ei),Reflect.get(e,"size",e)}function Ep(e){e=kt(e);const t=kt(this);return Ua(t).has.call(t,e)||(t.add(e),Ur(t,"add",e,e)),this}function Op(e,t){t=kt(t);const n=kt(this),{has:r,get:i}=Ua(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?ms(t,s)&&Ur(n,"set",e,t):Ur(n,"add",e,t),this}function Lp(e){const t=kt(this),{has:n,get:r}=Ua(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 Ip(){const e=kt(this),t=e.size!==0,n=e.clear();return t&&Ur(e,"clear",void 0,void 0),n}function qa(e,t){return function(r,i){const o=this,s=o.__v_raw,l=kt(s),c=t?Zu:e?nc:ys;return!e&&Pn(l,"iterate",Ei),s.forEach((d,h)=>r.call(i,c(d),c(h),o))}}function za(e,t,n){return function(...r){const i=this.__v_raw,o=kt(i),s=lo(o),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=i[e](...r),h=n?Zu:t?nc:ys;return!t&&Pn(o,"iterate",c?Gu:Ei),{next(){const{value:p,done:b}=d.next();return b?{value:p,done:b}:{value:l?[h(p[0]),h(p[1])]:h(p),done:b}},[Symbol.iterator](){return this}}}}function ui(e){return function(...t){return e==="delete"?!1:this}}function gC(){const e={get(o){return Wa(this,o)},get size(){return Va(this)},has:Ka,add:Ep,set:Op,delete:Lp,clear:Ip,forEach:qa(!1,!1)},t={get(o){return Wa(this,o,!1,!0)},get size(){return Va(this)},has:Ka,add:Ep,set:Op,delete:Lp,clear:Ip,forEach:qa(!1,!0)},n={get(o){return Wa(this,o,!0)},get size(){return Va(this,!0)},has(o){return Ka.call(this,o,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:qa(!0,!1)},r={get(o){return Wa(this,o,!0,!0)},get size(){return Va(this,!0)},has(o){return Ka.call(this,o,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:qa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=za(o,!1,!1),n[o]=za(o,!0,!1),t[o]=za(o,!1,!0),r[o]=za(o,!0,!0)}),[e,n,t,r]}const[mC,vC,yC,bC]=gC();function Qu(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:Qu(!1,!1)},_C={get:Qu(!1,!0)},wC={get:Qu(!0,!1)},Pp=new WeakMap,Dp=new WeakMap,Rp=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 go(e)?e:tc(e,!1,Ap,CC,Pp)}function SC(e){return tc(e,!1,hC,_C,Dp)}function ec(e){return tc(e,!0,pC,wC,Rp)}function tc(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 ho(e){return go(e)?ho(e.__v_raw):!!(e&&e.__v_isReactive)}function go(e){return!!(e&&e.__v_isReadonly)}function Ga(e){return!!(e&&e.__v_isShallow)}function Np(e){return ho(e)||go(e)}function kt(e){const t=e&&e.__v_raw;return t?kt(t):e}function Mp(e){return Ha(e,"__v_skip",!0),e}const ys=e=>Rt(e)?Dn(e):e,nc=e=>Rt(e)?ec(e):e;function Fp(e){li&&vr&&(e=kt(e),wp(e.dep||(e.dep=Vu())))}function $p(e,t){e=kt(e);const n=e.dep;n&&Xu(n)}function mn(e){return!!(e&&e.__v_isRef===!0)}function Et(e){return Bp(e,!1)}function AC(e){return Bp(e,!0)}function Bp(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:ys(t)}get value(){return Fp(this),this._value}set value(t){const n=this.__v_isShallow||Ga(t)||go(t);t=n?t:kt(t),ms(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ys(t),$p(this))}}function Hp(e){return mn(e)?e.value:e}const OC={get:(e,t,n)=>Hp(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 jp(e){return ho(e)?e:new Proxy(e,OC)}var Up;class LC{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Up]=!1,this._dirty=!0,this.effect=new Yu(t,()=>{this._dirty||(this._dirty=!0,$p(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=kt(this);return Fp(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Up="__v_isReadonly";function IC(e,t,n=!1){let r,i;const o=ht(e);return o?(r=e,i=mr):(r=e.get,i=e.set),new LC(r,i,o||!i,n)}function a3(e,...t){}function ci(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Ya(o,t,n)}return i}function yr(e,t,n,r){if(ht(e)){const o=ci(e,t,n,r);return o&&pp(o)&&o.catch(s=>{Ya(s,t,n)}),o}const i=[];for(let o=0;o>>1;Cs(vn[r])Er&&vn.splice(t,1)}function NC(e){et(e)?mo.push(...e):(!Wr||!Wr.includes(e,e.allowRecurse?Oi+1:Oi))&&mo.push(e),Kp()}function Vp(e,t=bs?Er+1:0){for(;tCs(n)-Cs(r)),Oi=0;Oie.id==null?1/0:e.id,MC=(e,t)=>{const n=Cs(e)-Cs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zp(e){rc=!1,bs=!0,vn.sort(MC);const t=mr;try{for(Er=0;Erzt(y)?y.trim():y)),p&&(i=n.map(ja))}let l,c=r[l=Ku(t)]||r[l=Ku(Ar(t))];!c&&o&&(c=r[l=Ku(co(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 Gp(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(!ht(e)){const c=d=>{const h=Gp(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):(et(o)?o.forEach(c=>s[c]=null):kn(s,o),Rt(e)&&r.set(e,s),s)}function Ja(e,t){return!e||!Na(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,co(t))||_t(e,t))}let dn=null,Za=null;function Qa(e){const t=dn;return dn=e,Za=e&&e.type.__scopeId||null,t}function vo(e){Za=e}function yo(){Za=null}function sc(e,t=dn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&_h(-1);const o=Qa(t);let s;try{s=e(...i)}finally{Qa(o),r._d&&_h(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function l3(){}function ac(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:b,setupState:y,ctx:w,inheritAttrs:T}=e;let O,I;const P=Qa(e);try{if(n.shapeFlag&4){const L=i||r;O=Or(h.call(L,L,p,o,y,b,w)),I=c}else{const L=t;O=Or(L.length>1?L(o,{attrs:c,slots:l,emit:d}):L(o,null)),I=t.props?c:$C(c)}}catch(L){xs.length=0,Ya(L,e,1),O=xe(fi)}let j=O;if(I&&T!==!1){const L=Object.keys(I),{shapeFlag:we}=j;L.length&&we&7&&(s&&L.some(ju)&&(I=BC(I,s)),j=Co(j,I))}return n.dirs&&(j=Co(j),j.dirs=j.dirs?j.dirs.concat(n.dirs):n.dirs),n.transition&&(j.transition=n.transition),O=j,Qa(P),O}const $C=e=>{let t;for(const n in e)(n==="class"||n==="style"||Na(n))&&((t||(t={}))[n]=e[n]);return t},BC=(e,t)=>{const n={};for(const r in e)(!ju(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?Yp(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;function WC(e,t){t&&t.pendingBranch?et(e)?t.effects.push(...e):t.effects.push(e):NC(e)}function Xp(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 bo(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&&ht(t)?t.call(r.proxy):t}}const el={};function rr(e,t,n){return Jp(e,t,n)}function Jp(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=Dt){const l=vp()===(Gt==null?void 0:Gt.scope)?Gt:null;let c,d=!1,h=!1;if(mn(e)?(c=()=>e.value,d=Ga(e)):ho(e)?(c=()=>e,r=!0):et(e)?(h=!0,d=e.some(j=>ho(j)||Ga(j)),c=()=>e.map(j=>{if(mn(j))return j.value;if(ho(j))return Li(j);if(ht(j))return ci(j,l,2)})):ht(e)?t?c=()=>ci(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return p&&p(),yr(e,l,3,[b])}:c=mr,t&&r){const j=c;c=()=>Li(j())}let p,b=j=>{p=I.onStop=()=>{ci(j,l,4)}},y;if(As)if(b=mr,t?n&&yr(t,l,3,[c(),h?[]:void 0,b]):c(),i==="sync"){const j=F_();y=j.__watcherHandles||(j.__watcherHandles=[])}else return mr;let w=h?new Array(e.length).fill(el):el;const T=()=>{if(I.active)if(t){const j=I.run();(r||d||(h?j.some((L,we)=>ms(L,w[we])):ms(j,w)))&&(p&&p(),yr(t,l,3,[j,w===el?void 0:h&&w[0]===el?[]:w,b]),w=j)}else I.run()};T.allowRecurse=!!t;let O;i==="sync"?O=T:i==="post"?O=()=>Nn(T,l&&l.suspense):(T.pre=!0,l&&(T.id=l.uid),O=()=>oc(T));const I=new Yu(c,O);t?n?T():w=I.run():i==="post"?Nn(I.run.bind(I),l&&l.suspense):I.run();const P=()=>{I.stop(),l&&l.scope&&Uu(l.scope.effects,I)};return y&&y.push(P),P}function KC(e,t,n){const r=this.proxy,i=zt(e)?e.includes(".")?Zp(r,e):()=>r[e]:e.bind(r,r);let o;ht(t)?o=t:(o=t.handler,n=t);const s=Gt;_o(this);const l=Jp(i,o.bind(r),n);return s?_o(s):Ri(),l}function Zp(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Li(n,t)});else if(gp(e))for(const n in e)Li(e[n],t);return e}function Rn(e){return ht(e)?{setup:e,name:e.name}:e}const _s=e=>!!e.type.__asyncLoader,Qp=e=>e.type.__isKeepAlive;function VC(e,t){eh(e,"a",t)}function qC(e,t){eh(e,"da",t)}function eh(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(tl(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Qp(i.parent.vnode)&&zC(r,t,n,i),i=i.parent}}function zC(e,t,n,r){const i=tl(t,e,r,!0);th(()=>{Uu(r[t],i)},n)}function tl(e,t,n=Gt,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;fo(),_o(n);const l=yr(t,n,e,s);return Ri(),po(),l});return r?i.unshift(o):i.push(o),o}}const Kr=e=>(t,n=Gt)=>(!As||e==="sp")&&tl(e,(...r)=>t(...r),n),GC=Kr("bm"),lc=Kr("m"),YC=Kr("bu"),XC=Kr("u"),JC=Kr("bum"),th=Kr("um"),ZC=Kr("sp"),QC=Kr("rtg"),e_=Kr("rtc");function t_(e,t=Gt){tl("ec",e,t)}function ye(e,t){const n=dn;if(n===null)return e;const r=ul(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;lTh(t)?!(t.type===fi||t.type===Be&&!oh(t.children)):!0)?e:null}const fc=e=>e?Sh(e)?ul(e)||e.proxy:fc(e.parent):null,ws=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=>fc(e.parent),$root:e=>fc(e.root),$emit:e=>e.emit,$options:e=>hc(e),$forceUpdate:e=>e.f||(e.f=()=>oc(e.update)),$nextTick:e=>e.n||(e.n=Xa.bind(e.proxy)),$watch:e=>KC.bind(e)}),dc=(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 y=s[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(dc(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];pc&&(s[t]=0)}}const h=ws[t];let p,b;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(b=c.config.globalProperties,_t(b,t))return b[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return dc(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)||dc(t,s)||(l=o[0])&&_t(l,s)||_t(r,s)||_t(ws,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 pc=!0;function o_(e){const t=hc(e),n=e.proxy,r=e.ctx;pc=!1,t.beforeCreate&&sh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:b,beforeUpdate:y,updated:w,activated:T,deactivated:O,beforeDestroy:I,beforeUnmount:P,destroyed:j,unmounted:L,render:we,renderTracked:m,renderTriggered:ce,errorCaptured:D,serverPrefetch:S,expose:R,inheritAttrs:U,components:ee,directives:J,filters:be}=t;if(d&&s_(d,r,null,e.appContext.config.unwrapInjectedRef),s)for(const z in s){const ie=s[z];ht(ie)&&(r[z]=ie.bind(n))}if(i){const z=i.call(n,n);Rt(z)&&(e.data=Dn(z))}if(pc=!0,o)for(const z in o){const ie=o[z],fe=ht(ie)?ie.bind(n,n):ht(ie.get)?ie.get.bind(n,n):mr,rt=!ht(ie)&&ht(ie.set)?ie.set.bind(n):mr,Ve=tn({get:fe,set:rt});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:ne=>Ve.value=ne})}if(l)for(const z in l)ah(l[z],r,n,z);if(c){const z=ht(c)?c.call(n):c;Reflect.ownKeys(z).forEach(ie=>{Xp(ie,z[ie])})}h&&sh(h,e,"c");function Ne(z,ie){et(ie)?ie.forEach(fe=>z(fe.bind(n))):ie&&z(ie.bind(n))}if(Ne(GC,p),Ne(lc,b),Ne(YC,y),Ne(XC,w),Ne(VC,T),Ne(qC,O),Ne(t_,D),Ne(e_,m),Ne(QC,ce),Ne(JC,P),Ne(th,L),Ne(ZC,S),et(R))if(R.length){const z=e.exposed||(e.exposed={});R.forEach(ie=>{Object.defineProperty(z,ie,{get:()=>n[ie],set:fe=>n[ie]=fe})})}else e.exposed||(e.exposed={});we&&e.render===mr&&(e.render=we),U!=null&&(e.inheritAttrs=U),ee&&(e.components=ee),J&&(e.directives=J)}function s_(e,t,n=mr,r=!1){et(e)&&(e=gc(e));for(const i in e){const o=e[i];let s;Rt(o)?"default"in o?s=bo(o.from||i,o.default,!0):s=bo(o.from||i):s=bo(o),mn(s)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[i]=s}}function sh(e,t,n){yr(et(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ah(e,t,n,r){const i=r.includes(".")?Zp(n,r):()=>n[r];if(zt(e)){const o=t[e];ht(o)&&rr(i,o)}else if(ht(e))rr(i,e.bind(n));else if(Rt(e))if(et(e))e.forEach(o=>ah(o,t,n,r));else{const o=ht(e.handler)?e.handler.bind(n):t[e.handler];ht(o)&&rr(i,o,e)}}function hc(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=>rl(c,d,s,!0)),rl(c,t,s)),Rt(t)&&o.set(t,c),c}function rl(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&rl(e,o,n,!0),i&&i.forEach(s=>rl(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:lh,props:Pi,emits:Pi,methods:Pi,computed:Pi,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:Pi,directives:Pi,watch:u_,provide:lh,inject:l_};function lh(e,t){return t?e?function(){return kn(ht(e)?e.call(this,this):e,ht(t)?t.call(this,this):t)}:t:e}function l_(e,t){return Pi(gc(e),gc(t))}function gc(e){if(et(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[b,y]=ch(p,t,!0);kn(s,b),y&&l.push(...y)};!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,ao),ao;if(et(o))for(let h=0;h-1,y[1]=T<0||w-1||_t(y,"default"))&&l.push(p)}}}const d=[s,l];return Rt(e)&&r.set(e,d),d}function fh(e){return e[0]!=="$"}function dh(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ph(e,t){return dh(e)===dh(t)}function hh(e,t){return et(t)?t.findIndex(n=>ph(n,e)):ht(t)&&ph(t,e)?0:-1}const gh=e=>e[0]==="_"||e==="$stable",vc=e=>et(e)?e.map(Or):[Or(e)],d_=(e,t,n)=>{if(t._n)return t;const r=sc((...i)=>vc(t(...i)),n);return r._c=!1,r},mh=(e,t,n)=>{const r=e._ctx;for(const i in e){if(gh(i))continue;const o=e[i];if(ht(o))t[i]=d_(i,o,r);else if(o!=null){const s=vc(o);t[i]=()=>s}}},vh=(e,t)=>{const n=vc(t);e.slots.default=()=>n},p_=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=kt(t),Ha(t,"_",n)):mh(t,e.slots={})}else e.slots={},t&&vh(e,t);Ha(e.slots,sl,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,mh(t,i)),s=t}else t&&(vh(e,t),s={default:1});if(o)for(const l in i)!gh(l)&&!(l in s)&&delete i[l]};function yh(){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){ht(r)||(r=Object.assign({},r)),i!=null&&!Rt(i)&&(i=null);const o=yh(),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&&ht(d.install)?(s.add(d),d.install(c,...h)):ht(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 b=xe(r,i);return b.appContext=o,h&&t?t(b,d):e(b,d,p),l=!0,c._container=d,d.__vue_app__=c,ul(b.component)||b.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 yc(e,t,n,r,i=!1){if(et(e)){e.forEach((b,y)=>yc(b,t&&(et(t)?t[y]:t),n,r,i));return}if(_s(r)&&!i)return;const o=r.shapeFlag&4?ul(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)),ht(c))ci(c,l,12,[s,h]);else{const b=zt(c),y=mn(c);if(b||y){const w=()=>{if(e.f){const T=b?_t(p,c)?p[c]:h[c]:c.value;i?et(T)&&Uu(T,o):et(T)?T.includes(o)||T.push(o):b?(h[c]=[o],_t(p,c)&&(p[c]=h[c])):(c.value=[o],e.k&&(h[e.k]=c.value))}else b?(h[c]=s,_t(p,c)&&(p[c]=s)):y&&(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:b,setScopeId:y=mr,insertStaticContent:w}=e,T=(N,$,G,te=null,K=null,X=null,Ce=!1,de=null,ve=!!$.dynamicChildren)=>{if(N===$)return;N&&!Ss(N,$)&&(te=He(N),ne(N,K,X,!0),N=null),$.patchFlag===-2&&(ve=!1,$.dynamicChildren=null);const{type:se,ref:ke,shapeFlag:_e}=$;switch(se){case ol:O(N,$,G,te);break;case fi:I(N,$,G,te);break;case _c:N==null&&P($,G,te,Ce);break;case Be:ee(N,$,G,te,K,X,Ce,de,ve);break;default:_e&1?we(N,$,G,te,K,X,Ce,de,ve):_e&6?J(N,$,G,te,K,X,Ce,de,ve):(_e&64||_e&128)&&se.process(N,$,G,te,K,X,Ce,de,ve,Le)}ke!=null&&K&&yc(ke,N&&N.ref,X,$||N,!$)},O=(N,$,G,te)=>{if(N==null)r($.el=l($.children),G,te);else{const K=$.el=N.el;$.children!==N.children&&d(K,$.children)}},I=(N,$,G,te)=>{N==null?r($.el=c($.children||""),G,te):$.el=N.el},P=(N,$,G,te)=>{[N.el,N.anchor]=w(N.children,$,G,te,N.el,N.anchor)},j=({el:N,anchor:$},G,te)=>{let K;for(;N&&N!==$;)K=b(N),r(N,G,te),N=K;r($,G,te)},L=({el:N,anchor:$})=>{let G;for(;N&&N!==$;)G=b(N),i(N),N=G;i($)},we=(N,$,G,te,K,X,Ce,de,ve)=>{Ce=Ce||$.type==="svg",N==null?m($,G,te,K,X,Ce,de,ve):S(N,$,K,X,Ce,de,ve)},m=(N,$,G,te,K,X,Ce,de)=>{let ve,se;const{type:ke,props:_e,shapeFlag:Me,transition:Se,dirs:qe}=N;if(ve=N.el=s(N.type,X,_e&&_e.is,_e),Me&8?h(ve,N.children):Me&16&&D(N.children,ve,null,te,K,X&&ke!=="foreignObject",Ce,de),qe&&Ii(N,null,te,"created"),ce(ve,N,N.scopeId,Ce,te),_e){for(const lt in _e)lt!=="value"&&!Ma(lt)&&o(ve,lt,null,_e[lt],X,N.children,te,K,Oe);"value"in _e&&o(ve,"value",null,_e.value),(se=_e.onVnodeBeforeMount)&&Lr(se,te,N)}qe&&Ii(N,null,te,"beforeMount");const dt=(!K||K&&!K.pendingBranch)&&Se&&!Se.persisted;dt&&Se.beforeEnter(ve),r(ve,$,G),((se=_e&&_e.onVnodeMounted)||dt||qe)&&Nn(()=>{se&&Lr(se,te,N),dt&&Se.enter(ve),qe&&Ii(N,null,te,"mounted")},K)},ce=(N,$,G,te,K)=>{if(G&&y(N,G),te)for(let X=0;X{for(let se=ve;se{const de=$.el=N.el;let{patchFlag:ve,dynamicChildren:se,dirs:ke}=$;ve|=N.patchFlag&16;const _e=N.props||Dt,Me=$.props||Dt;let Se;G&&Di(G,!1),(Se=Me.onVnodeBeforeUpdate)&&Lr(Se,G,$,N),ke&&Ii($,N,G,"beforeUpdate"),G&&Di(G,!0);const qe=K&&$.type!=="foreignObject";if(se?R(N.dynamicChildren,se,de,G,te,qe,X):Ce||ie(N,$,de,null,G,te,qe,X,!1),ve>0){if(ve&16)U(de,$,_e,Me,G,te,K);else if(ve&2&&_e.class!==Me.class&&o(de,"class",null,Me.class,K),ve&4&&o(de,"style",_e.style,Me.style,K),ve&8){const dt=$.dynamicProps;for(let lt=0;lt{Se&&Lr(Se,G,$,N),ke&&Ii($,N,G,"updated")},te)},R=(N,$,G,te,K,X,Ce)=>{for(let de=0;de<$.length;de++){const ve=N[de],se=$[de],ke=ve.el&&(ve.type===Be||!Ss(ve,se)||ve.shapeFlag&70)?p(ve.el):G;T(ve,se,ke,null,te,K,X,Ce,!0)}},U=(N,$,G,te,K,X,Ce)=>{if(G!==te){if(G!==Dt)for(const de in G)!Ma(de)&&!(de in te)&&o(N,de,G[de],null,Ce,$.children,K,X,Oe);for(const de in te){if(Ma(de))continue;const ve=te[de],se=G[de];ve!==se&&de!=="value"&&o(N,de,se,ve,Ce,$.children,K,X,Oe)}"value"in te&&o(N,"value",G.value,te.value)}},ee=(N,$,G,te,K,X,Ce,de,ve)=>{const se=$.el=N?N.el:l(""),ke=$.anchor=N?N.anchor:l("");let{patchFlag:_e,dynamicChildren:Me,slotScopeIds:Se}=$;Se&&(de=de?de.concat(Se):Se),N==null?(r(se,G,te),r(ke,G,te),D($.children,G,ke,K,X,Ce,de,ve)):_e>0&&_e&64&&Me&&N.dynamicChildren?(R(N.dynamicChildren,Me,G,K,X,Ce,de),($.key!=null||K&&$===K.subTree)&&bc(N,$,!0)):ie(N,$,G,ke,K,X,Ce,de,ve)},J=(N,$,G,te,K,X,Ce,de,ve)=>{$.slotScopeIds=de,N==null?$.shapeFlag&512?K.ctx.activate($,G,te,Ce,ve):be($,G,te,K,X,Ce,ve):je(N,$,ve)},be=(N,$,G,te,K,X,Ce)=>{const de=N.component=O_(N,te,K);if(Qp(N)&&(de.ctx.renderer=Le),L_(de),de.asyncDep){if(K&&K.registerDep(de,Ne),!N.el){const ve=de.subTree=xe(fi);I(null,ve,$,G)}return}Ne(de,N,$,G,K,X,Ce)},je=(N,$,G)=>{const te=$.component=N.component;if(HC(N,$,G))if(te.asyncDep&&!te.asyncResolved){z(te,$,G);return}else te.next=$,RC(te.update),te.update();else $.el=N.el,te.vnode=$},Ne=(N,$,G,te,K,X,Ce)=>{const de=()=>{if(N.isMounted){let{next:ke,bu:_e,u:Me,parent:Se,vnode:qe}=N,dt=ke,lt;Di(N,!1),ke?(ke.el=qe.el,z(N,ke,Ce)):ke=qe,_e&&Ba(_e),(lt=ke.props&&ke.props.onVnodeBeforeUpdate)&&Lr(lt,Se,ke,qe),Di(N,!0);const Ct=ac(N),Ft=N.subTree;N.subTree=Ct,T(Ft,Ct,p(Ft.el),He(Ft),N,K,X),ke.el=Ct.el,dt===null&&jC(N,Ct.el),Me&&Nn(Me,K),(lt=ke.props&&ke.props.onVnodeUpdated)&&Nn(()=>Lr(lt,Se,ke,qe),K)}else{let ke;const{el:_e,props:Me}=$,{bm:Se,m:qe,parent:dt}=N,lt=_s($);if(Di(N,!1),Se&&Ba(Se),!lt&&(ke=Me&&Me.onVnodeBeforeMount)&&Lr(ke,dt,$),Di(N,!0),_e&&mt){const Ct=()=>{N.subTree=ac(N),mt(_e,N.subTree,N,K,null)};lt?$.type.__asyncLoader().then(()=>!N.isUnmounted&&Ct()):Ct()}else{const Ct=N.subTree=ac(N);T(null,Ct,G,te,N,K,X),$.el=Ct.el}if(qe&&Nn(qe,K),!lt&&(ke=Me&&Me.onVnodeMounted)){const Ct=$;Nn(()=>Lr(ke,dt,Ct),K)}($.shapeFlag&256||dt&&_s(dt.vnode)&&dt.vnode.shapeFlag&256)&&N.a&&Nn(N.a,K),N.isMounted=!0,$=G=te=null}},ve=N.effect=new Yu(de,()=>oc(se),N.scope),se=N.update=()=>ve.run();se.id=N.uid,Di(N,!0),se()},z=(N,$,G)=>{$.component=N;const te=N.vnode.props;N.vnode=$,N.next=null,f_(N,$.props,te,G),h_(N,$.children,G),fo(),Vp(),po()},ie=(N,$,G,te,K,X,Ce,de,ve=!1)=>{const se=N&&N.children,ke=N?N.shapeFlag:0,_e=$.children,{patchFlag:Me,shapeFlag:Se}=$;if(Me>0){if(Me&128){rt(se,_e,G,te,K,X,Ce,de,ve);return}else if(Me&256){fe(se,_e,G,te,K,X,Ce,de,ve);return}}Se&8?(ke&16&&Oe(se,K,X),_e!==se&&h(G,_e)):ke&16?Se&16?rt(se,_e,G,te,K,X,Ce,de,ve):Oe(se,K,X,!0):(ke&8&&h(G,""),Se&16&&D(_e,G,te,K,X,Ce,de,ve))},fe=(N,$,G,te,K,X,Ce,de,ve)=>{N=N||ao,$=$||ao;const se=N.length,ke=$.length,_e=Math.min(se,ke);let Me;for(Me=0;Me<_e;Me++){const Se=$[Me]=ve?di($[Me]):Or($[Me]);T(N[Me],Se,G,null,K,X,Ce,de,ve)}se>ke?Oe(N,K,X,!0,!1,_e):D($,G,te,K,X,Ce,de,ve,_e)},rt=(N,$,G,te,K,X,Ce,de,ve)=>{let se=0;const ke=$.length;let _e=N.length-1,Me=ke-1;for(;se<=_e&&se<=Me;){const Se=N[se],qe=$[se]=ve?di($[se]):Or($[se]);if(Ss(Se,qe))T(Se,qe,G,null,K,X,Ce,de,ve);else break;se++}for(;se<=_e&&se<=Me;){const Se=N[_e],qe=$[Me]=ve?di($[Me]):Or($[Me]);if(Ss(Se,qe))T(Se,qe,G,null,K,X,Ce,de,ve);else break;_e--,Me--}if(se>_e){if(se<=Me){const Se=Me+1,qe=SeMe)for(;se<=_e;)ne(N[se],K,X,!0),se++;else{const Se=se,qe=se,dt=new Map;for(se=qe;se<=Me;se++){const Re=$[se]=ve?di($[se]):Or($[se]);Re.key!=null&&dt.set(Re.key,se)}let lt,Ct=0;const Ft=Me-qe+1;let an=!1,Ht=0;const fn=new Array(Ft);for(se=0;se=Ft){ne(Re,K,X,!0);continue}let Fe;if(Re.key!=null)Fe=dt.get(Re.key);else for(lt=qe;lt<=Me;lt++)if(fn[lt-qe]===0&&Ss(Re,$[lt])){Fe=lt;break}Fe===void 0?ne(Re,K,X,!0):(fn[Fe-qe]=se+1,Fe>=Ht?Ht=Fe:an=!0,T(Re,$[Fe],G,null,K,X,Ce,de,ve),Ct++)}const Q=an?b_(fn):ao;for(lt=Q.length-1,se=Ft-1;se>=0;se--){const Re=qe+se,Fe=$[Re],ot=Re+1{const{el:X,type:Ce,transition:de,children:ve,shapeFlag:se}=N;if(se&6){Ve(N.component.subTree,$,G,te);return}if(se&128){N.suspense.move($,G,te);return}if(se&64){Ce.move(N,$,G,Le);return}if(Ce===Be){r(X,$,G);for(let _e=0;_ede.enter(X),K);else{const{leave:_e,delayLeave:Me,afterLeave:Se}=de,qe=()=>r(X,$,G),dt=()=>{_e(X,()=>{qe(),Se&&Se()})};Me?Me(X,qe,dt):dt()}else r(X,$,G)},ne=(N,$,G,te=!1,K=!1)=>{const{type:X,props:Ce,ref:de,children:ve,dynamicChildren:se,shapeFlag:ke,patchFlag:_e,dirs:Me}=N;if(de!=null&&yc(de,null,G,N,!0),ke&256){$.ctx.deactivate(N);return}const Se=ke&1&&Me,qe=!_s(N);let dt;if(qe&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Lr(dt,$,N),ke&6)Ae(N.component,G,te);else{if(ke&128){N.suspense.unmount(G,te);return}Se&&Ii(N,null,$,"beforeUnmount"),ke&64?N.type.remove(N,$,G,K,Le,te):se&&(X!==Be||_e>0&&_e&64)?Oe(se,$,G,!1,!0):(X===Be&&_e&384||!K&&ke&16)&&Oe(ve,$,G),te&&me(N)}(qe&&(dt=Ce&&Ce.onVnodeUnmounted)||Se)&&Nn(()=>{dt&&Lr(dt,$,N),Se&&Ii(N,null,$,"unmounted")},G)},me=N=>{const{type:$,el:G,anchor:te,transition:K}=N;if($===Be){Te(G,te);return}if($===_c){L(N);return}const X=()=>{i(G),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(N.shapeFlag&1&&K&&!K.persisted){const{leave:Ce,delayLeave:de}=K,ve=()=>Ce(G,X);de?de(N.el,X,ve):ve()}else X()},Te=(N,$)=>{let G;for(;N!==$;)G=b(N),i(N),N=G;i($)},Ae=(N,$,G)=>{const{bum:te,scope:K,update:X,subTree:Ce,um:de}=N;te&&Ba(te),K.stop(),X&&(X.active=!1,ne(Ce,N,$,G)),de&&Nn(de,$),Nn(()=>{N.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve())},Oe=(N,$,G,te=!1,K=!1,X=0)=>{for(let Ce=X;CeN.shapeFlag&6?He(N.component.subTree):N.shapeFlag&128?N.suspense.next():b(N.anchor||N.el),Xe=(N,$,G)=>{N==null?$._vnode&&ne($._vnode,null,null,!0):T($._vnode||null,N,$,null,null,null,G),Vp(),qp(),$._vnode=N},Le={p:T,um:ne,m:Ve,r:me,mt:be,mc:D,pc:ie,pbc:R,n:He,o:e};let it,mt;return t&&([it,mt]=t(Le)),{render:Xe,hydrate:it,createApp:m_(Xe,it)}}function Di({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function bc(e,t,n=!1){const r=e.children,i=t.children;if(et(r)&&et(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,Ts=e=>e&&(e.disabled||e.disabled===""),bh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Cc=(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:b,o:{insert:y,querySelector:w,createText:T,createComment:O}}=d,I=Ts(t.props);let{shapeFlag:P,children:j,dynamicChildren:L}=t;if(e==null){const we=t.el=T(""),m=t.anchor=T("");y(we,n,r),y(m,n,r);const ce=t.target=Cc(t.props,w),D=t.targetAnchor=T("");ce&&(y(D,ce),s=s||bh(ce));const S=(R,U)=>{P&16&&h(j,R,U,i,o,s,l,c)};I?S(n,m):ce&&S(ce,D)}else{t.el=e.el;const we=t.anchor=e.anchor,m=t.target=e.target,ce=t.targetAnchor=e.targetAnchor,D=Ts(e.props),S=D?n:m,R=D?we:ce;if(s=s||bh(m),L?(b(e.dynamicChildren,L,S,i,o,s,l),bc(e,t,!0)):c||p(e,t,S,R,i,o,s,l,!1),I)D||il(t,n,we,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=Cc(t.props,w);U&&il(t,U,null,d,0)}else D&&il(t,m,ce,d,1)}Ch(t)},remove(e,t,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:l,children:c,anchor:d,targetAnchor:h,target:p,props:b}=e;if(p&&o(h),(s||!Ts(b))&&(o(d),l&16))for(let y=0;y0?br||ao:null,x_(),ks>0&&br&&br.push(e),e}function B(e,t,n,r,i,o){return wh(x(e,t,n,r,i,o,!0))}function Qe(e,t,n,r,i){return wh(xe(e,t,n,r,i,!0))}function Th(e){return e?e.__v_isVNode===!0:!1}function Ss(e,t){return e.type===t.type&&e.key===t.key}const sl="__vInternal",xh=({key:e})=>e??null,al=({ref:e,ref_key:t,ref_for:n})=>e!=null?zt(e)||mn(e)||ht(e)?{i:dn,r:e,k:t,f:!!n}:e:null;function x(e,t=null,n=null,r=0,i=null,o=e===Be?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xh(t),ref:t&&al(t),scopeId:Za,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?(wc(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=zt(n)?8:16),ks>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===nh)&&(e=fi),Th(e)){const l=Co(e,t,!0);return n&&wc(l,n),ks>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=Ze(l)),Rt(c)&&(Np(c)&&!et(c)&&(c=kn({},c)),t.style=bt(c))}const s=zt(e)?1:UC(e)?128:C_(e)?64:Rt(e)?4:ht(e)?2:0;return x(e,t,n,r,i,s,o,!0)}function S_(e){return e?Np(e)||sl in e?kn({},e):e:null}function Co(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,l=t?ll(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&xh(l),ref:t&&t.ref?n&&i?et(i)?i.concat(al(t)):[i,al(t)]:al(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!==Be?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&&Co(e.ssContent),ssFallback:e.ssFallback&&Co(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xt(e=" ",t=0){return xe(ol,null,e,t)}function Pe(e="",t=!1){return t?(E(),Qe(fi,null,e)):xe(fi,null,e)}function Or(e){return e==null||typeof e=="boolean"?xe(fi):et(e)?xe(Be,null,e.slice()):typeof e=="object"?di(e):xe(ol,null,String(e))}function di(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Co(e)}function wc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(et(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),wc(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(sl in t)?t._ctx=dn:i===3&&dn&&(dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ht(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 ll(...e){const t={};for(let n=0;nGt||dn,_o=e=>{Gt=e,e.scope.on()},Ri=()=>{Gt&&Gt.scope.off(),Gt=null};function Sh(e){return e.vnode.shapeFlag&4}let As=!1;function L_(e,t=!1){As=t;const{props:n,children:r}=e.vnode,i=Sh(e);c_(e,n,i,t),p_(e,r);const o=i?I_(e,t):void 0;return As=!1,o}function I_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Mp(new Proxy(e.ctx,i_));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?D_(e):null;_o(e),fo();const o=ci(r,e,0,[e.props,i]);if(po(),Ri(),pp(o)){if(o.then(Ri,Ri),t)return o.then(s=>{Ah(e,s,t)}).catch(s=>{Ya(s,e,0)});e.asyncDep=o}else Ah(e,o,t)}else Oh(e,t)}function Ah(e,t,n){ht(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rt(t)&&(e.setupState=jp(t)),Oh(e,n)}let Eh;function Oh(e,t,n){const r=e.type;if(!e.render){if(!t&&Eh&&!r.render){const i=r.template||hc(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=Eh(i,d)}}e.render=r.render||mr}_o(e),fo(),o_(e),po(),Ri()}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 ul(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(jp(Mp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ws)return ws[n](e)},has(t,n){return n in t||n in ws}}))}function R_(e,t=!0){return ht(e)?e.displayName||e.name:e.name||t&&e.__name}function N_(e){return ht(e)&&"__vccOpts"in e}const tn=(e,t)=>IC(e,t,As),M_=Symbol(""),F_=()=>bo(M_),$_="3.2.47",B_="http://www.w3.org/2000/svg",Ni=typeof document<"u"?document:null,Lh=Ni&&Ni.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?Ni.createElementNS(B_,e):Ni.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ni.createTextNode(e),createComment:e=>Ni.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ni.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{Lh.innerHTML=r?`${e}`:e;const l=Lh.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&&Tc(r,o,"");for(const o in n)Tc(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 Ih=/\s*!important$/;function Tc(e,t,n){if(et(n))n.forEach(r=>Tc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=W_(e,t);Ih.test(n)?e.setProperty(co(r),n.replace(Ih,""),"important"):e[r]=n}}const Ph=["Webkit","Moz","ms"],xc={};function W_(e,t){const n=xc[t];if(n)return n;let r=Ar(t);if(r!=="filter"&&r in e)return xc[t]=r;r=$a(r);for(let i=0;ikc||(Y_.then(()=>kc=0),kc=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(et(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 Nh=/^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):Na(t)?ju(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&&Nh.test(t)&&ht(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Nh.test(t)&&zt(n)?!1:t in e}const wo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return et(t)?n=>Ba(t,n):t};function t1(e){e.target.composing=!0}function Mh(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=wo(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=ja(l)),e._assign(l)}),n&&pi(e,"change",()=>{e.value=e.value.trim()}),t||(pi(e,"compositionstart",t1),pi(e,"compositionend",Mh),pi(e,"change",Mh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=wo(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&ja(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},Fh={deep:!0,created(e,t,n){e._assign=wo(n),pi(e,"change",()=>{const r=e._modelValue,i=Os(e),o=e.checked,s=e._assign;if(et(r)){const l=Hu(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(uo(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=wo(n),$h(e,t,n)}};function $h(e,{value:t,oldValue:n},r){e._modelValue=t,et(t)?e.checked=Hu(t,r.props.value)>-1:uo(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=ps(t,Hh(e,!0)))}const Es={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=uo(t);pi(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?ja(Os(s)):Os(s));e._assign(e.multiple?i?new Set(o):o:o[0])}),e._assign=wo(r)},mounted(e,{value:t}){Bh(e,t)},beforeUpdate(e,t,n){e._assign=wo(n)},updated(e,{value:t}){Bh(e,t)}};function Bh(e,t){const n=e.multiple;if(!(n&&!et(t)&&!uo(t))){for(let r=0,i=e.options.length;r-1:o.selected=t.has(s);else if(ps(Os(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Os(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 n1=["ctrl","shift","alt","meta"],r1={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)=>n1.some(n=>e[`${n}Key`]&&!t.includes(n))},gt=(e,t)=>(n,...r)=>{for(let i=0;i{Ls(e,!1)}):Ls(e,t))},beforeUnmount(e,{value:t}){Ls(e,t)}};function Ls(e,t){e.style.display=t?e._vod:"none"}const i1=kn({patchProp:Q_},H_);let jh;function o1(){return jh||(jh=v_(i1))}const s1=(...e)=>{const t=o1().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=a1(r);if(!i)return;const o=t._component;!ht(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 a1(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 c1(e,t){if(e==null)return{};var n=u1(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 f1="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),Is=qr(/Edge/i),Wh=qr(/firefox/i),Ps=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 fl(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 d1(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&&fl(e,t):fl(e,t))||r&&e===n)return e;if(e===n)break}while(e=d1(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 tt(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 To(e,t){var n="";if(typeof e=="string")n=e;else do{var r=tt(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 xo(e,t,n,r){for(var i=0,o=0,s=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=c1(r,C1);Rs.pluginEvent.bind(nt)(t,n,Ir({dragEl:Ee,parentEl:Kt,ghostEl:pt,rootEl:$t,nextEl:Mi,lastDownEl:dl,cloneEl:Ut,cloneHidden:gi,dragStarted:Ms,putSortable:pn,activeSortable:nt.active,originalEvent:i,oldIndex:So,oldDraggableIndex:Ns,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){b1(Ir({putSortable:pn,cloneEl:Ut,targetEl:Ee,rootEl:$t,oldIndex:So,oldDraggableIndex:Ns,newIndex:zn,newDraggableIndex:mi},e))}var Ee,Kt,pt,$t,Mi,dl,Ut,gi,So,zn,Ns,mi,pl,pn,Ao=!1,hl=!1,gl=[],Fi,Cr,Oc,Lc,eg,tg,Ms,Eo,Fs,$s=!1,ml=!1,vl,yn,Ic=[],Pc=!1,yl=[],bl=typeof document<"u",Cl=Kh,ng=Is||zr?"cssFloat":"float",_1=bl&&!Vh&&!Kh&&"draggable"in document.createElement("div"),rg=function(){if(bl){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=tt(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=xo(t,0,n),s=xo(t,1,n),l=o&&tt(o),c=s&&tt(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"},w1=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},T1=function(t,n){var r;return gl.some(function(i){var o=i[qn].options.emptyInsertThreshold;if(!(!o||Sc(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 b=(s?l:c).options.group.name;return o===!0||typeof o=="string"&&o===b||o.join&&o.indexOf(b)>-1}}var r={},i=t.group;(!i||cl(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&&pt&&tt(pt,"display","none")},ag=function(){!rg&&pt&&tt(pt,"display","")};bl&&!Vh&&document.addEventListener("click",function(e){if(hl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),hl=!1,!1},!0);var $i=function(t){if(Ee){t=t.touches?t.touches[0]:t;var n=T1(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)}}},x1=function(t){Ee&&Ee.parentNode[qn]._isOutsideThisEl(t.target)};function nt(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:nt.supportPointer!==!1&&"PointerEvent"in window&&!Ps,emptyInsertThreshold:5};Rs.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:_1,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)),gl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Vr(this,m1())}nt.prototype={constructor:nt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Eo=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(P1(r),!Ee&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ps&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Pr(c,i.draggable,r,!1),!(c&&c.animated)&&dl!==c)){if(So=or(c),Ns=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,Mi=Ee.nextSibling,dl=r,pl=s.group,nt.dragged=Ee,Fi={target:Ee,clientX:(n||t).clientX,clientY:(n||t).clientY},eg=Fi.clientX-d.left,tg=Fi.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}),nt.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(),Dc)}),St(l,"dragover",$i),St(l,"mousemove",$i),St(l,"touchmove",$i),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||!(Is||zr))){if(nt.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&&Dc(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?wl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Ao=!1,$t&&Ee){Mn("dragStarted",this,{evt:n}),this.nativeDraggable&&St(document,"dragover",x1);var r=this.options;!t&&Vn(Ee,r.dragClass,!1),Vn(Ee,r.ghostClass,!0),nt.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(Fi){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,s=pt&&To(pt,!0),l=pt&&s&&s.a,c=pt&&s&&s.d,d=Cl&&yn&&Xh(yn),h=(o.clientX-Fi.clientX+i.x)/(l||1)+(d?d[0]-Ic[0]:0)/(l||1),p=(o.clientY-Fi.clientY+i.y)/(c||1)+(d?d[1]-Ic[1]:0)/(c||1);if(!nt.active&&!Ao){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!==So&&zn>=0&&(An({sortable:this,name:"update",toEl:Kt,originalEvent:t}),An({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),nt.active&&((zn==null||zn===-1)&&(zn=So,mi=Ns),An({sortable:this,name:"end",toEl:Kt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Mn("nulling",this),$t=Ee=Kt=pt=Mi=Ut=dl=gi=Fi=Cr=Ms=zn=mi=So=Ns=Eo=Fs=pn=pl=nt.dragged=nt.ghost=nt.clone=nt.active=null,yl.forEach(function(t){t.checked=!0}),yl.length=Oc=Lc=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ee&&(this._onDragOver(t),k1(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 O1(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,b=!1;if(!s){if(l&&vlh+d*o/2:cp-vl)return-Fs}else if(c>h+d*(1-i)/2&&cp-d*o/2)?c>h+d/2?1:-1:0}function L1(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 De(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(V1,arguments)},brighten:function(){return this._applyModification(q1,arguments)},darken:function(){return this._applyModification(z1,arguments)},desaturate:function(){return this._applyModification(U1,arguments)},saturate:function(){return this._applyModification(W1,arguments)},greyscale:function(){return this._applyModification(K1,arguments)},spin:function(){return this._applyModification(G1,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(J1,arguments)},complement:function(){return this._applyCombination(Y1,arguments)},monochromatic:function(){return this._applyCombination(Z1,arguments)},splitcomplement:function(){return this._applyCombination(X1,arguments)},triad:function(){return this._applyCombination(hg,[3])},tetrad:function(){return this._applyCombination(hg,[4])}},De.fromRatio=function(e,t){if(Sl(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=js(e[r]));e=n}return De(e,t)};function F1(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=rw(e)),Sl(e)=="object"&&(Gr(e.r)&&Gr(e.g)&&Gr(e.b)?(t=$1(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=js(e.s),i=js(e.v),t=H1(e.h,r,i),s=!0,l="hsv"):Gr(e.h)&&Gr(e.s)&&Gr(e.l)&&(r=js(e.s),o=js(e.l),t=B1(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 $1(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(De(r));return o}function Z1(e,t){t=t||6;for(var n=De(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],l=1/t;t--;)s.push(De({h:r,s:i,v:o})),o=(o+l)%1;return s}De.mix=function(e,t,n){n=n===0?0:n||50;var r=De(e).toRgb(),i=De(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 De(s)},De.readability=function(e,t){var n=De(e),r=De(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},De.isReadable=function(e,t,n){var r=De.readability(e,t),i,o;switch(o=!1,i=iw(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},De.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=De(t[d]));return De.isReadable(e,r,{level:l,size:c})||!s?r:(n.includeFallbackColors=!1,De.mostReadable(e,["#fff","#000"],n))};var Uc=De.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"},Q1=De.hexNames=ew(Uc);function ew(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){tw(e)&&(e="100%");var n=nw(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 Al(e){return Math.min(1,Math.max(0,e))}function Gn(e){return parseInt(e,16)}function tw(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function nw(e){return typeof e=="string"&&e.indexOf("%")!=-1}function _r(e){return e.length==1?"0"+e:""+e}function js(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 rw(e){e=e.replace(N1,"").replace(M1,"").toLowerCase();var t=!1;if(Uc[e])e=Uc[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 iw(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 pe={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 R1(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 kl){let r=kl[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(ce(this._config.chunk)&&!R){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||!ce(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){ce(this._config.error)?this._config.error(S):o&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:S,finished:!1})}}function p(D){var S;(D=D||{}).chunkSize||(D.chunkSize=c.RemoteChunkSize),h.call(this,D),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(R){this._input=R,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 R=this._config.downloadRequestHeaders;for(var U in R)S.setRequestHeader(U,R[U])}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(R){var U=R.getResponseHeader("Content-Range");return U===null?-1:parseInt(U.substring(U.lastIndexOf("/")+1))}(S),this.parseChunk(S.responseText)))},this._chunkError=function(R){var U=S.statusText||R;this._sendError(new Error(U))}}function b(D){var S,R;(D=D||{}).chunkSize||(D.chunkSize=c.LocalChunkSize),h.call(this,D);var U=typeof FileReader<"u";this.stream=function(ee){this._input=ee,R=ee.slice||ee.webkitSlice||ee.mozSlice,U?((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 y(D){var S;h.call(this,D=D||{}),this.stream=function(R){return S=R,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var R,U=this._config.chunkSize;return U?(R=S.substring(0,U),S=S.substring(U)):(R=S,S=""),this._finished=!S,this.parseChunk(R)}}}function w(D){h.call(this,D=D||{});var S=[],R=!0,U=!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(){U&&S.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),S.length?this.parseChunk(S.shift()):R=!0},this._streamData=m(function(ee){try{S.push(typeof ee=="string"?ee:ee.toString(this._config.encoding)),R&&(R=!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(),U=!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 T(D){var S,R,U,ee=Math.pow(2,53),J=-ee,be=/^\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,rt=!1,Ve=[],ne={data:[],errors:[],meta:{}};if(ce(D.step)){var me=D.step;D.step=function(Le){if(ne=Le,Oe())Ae();else{if(Ae(),ne.data.length===0)return;z+=Le.data.length,D.preview&&z>D.preview?R.abort():(ne.data=ne.data[0],me(ne,Ne))}}}function Te(Le){return D.skipEmptyLines==="greedy"?Le.join("").trim()==="":Le.length===1&&Le[0].length===0}function Ae(){return ne&&U&&(Xe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),U=!1),D.skipEmptyLines&&(ne.data=ne.data.filter(function(Le){return!Te(Le)})),Oe()&&function(){if(!ne)return;function Le(mt,N){ce(D.transformHeader)&&(mt=D.transformHeader(mt,N)),Ve.push(mt)}if(Array.isArray(ne.data[0])){for(var it=0;Oe()&&it=Ve.length?"__parsed_extra":Ve[$]),D.transform&&(K=D.transform(K,te)),K=He(te,K),te==="__parsed_extra"?(G[te]=G[te]||[],G[te].push(K)):G[te]=K}return D.header&&($>Ve.length?Xe("FieldMismatch","TooManyFields","Too many fields: expected "+Ve.length+" fields but parsed "+$,ie+N):$=Ce.length/2?`\r `:"\r"}(Le,N)),U=!1,D.delimiter)ce(D.delimiter)&&(D.delimiter=D.delimiter(Le),ne.meta.delimiter=D.delimiter);else{var $=function(te,K,X,Ce,de){var ve,se,ke,_e;de=de||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Me=0;Me=be)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:He.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=be)return Ht(!0);break}Xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:He.length,index:z}),Se++}}else Se++}return Ft();function lt(Q){He.push(Q),it=z}function Ct(Q){var Re=0;if(Q!==-1){var Fe=fe.substring(Se+1,Q);Fe&&Fe.trim()===""&&(Re=Fe.length)}return Re}function Ft(Q){return Ve||(Q===void 0&&(Q=fe.substring(z)),Le.push(Q),z=ne,lt(Le),Oe&&fn()),Ht()}function an(Q){z=Q,lt(Le),Le=[],_e=fe.indexOf(U,z)}function Ht(Q){return{data:He,errors:Xe,meta:{delimiter:R,linebreak:U,aborted:ie,truncated:!!Q,cursor:it+(rt||0)}}}function fn(){J(Ht()),He=[],Xe=[]}},this.abort=function(){ie=!0},this.getCharIndex=function(){return z}}function P(D){var S=D.data,R=s[S.workerId],U=!1;if(S.error)R.userError(S.error,S.file);else if(S.results&&S.results.data){var ee={abort:function(){U=!0,j(S.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:L,resume:L};if(ce(R.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},groupTagsTranslate:{type:Boolean,default:!0},groupTagsTranslateCache:{type:Object,default:()=>({toEn:new Map,toLocal:new Map})}},data(){return{cancelMultiTranslate:!1,globals:kl}},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 pe.getLang(e,this.languageCode,this.languages)},replaceGlobals(e){return pe.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=sw.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):""},async translateToLocalByGroupTags(e){return e=e.trim().toLowerCase(),this.groupTagsTranslateCache.toLocal.has(e)?this.groupTagsTranslateCache.toLocal.get(e).join(" / "):""},async translateToEnByGroupTags(e){return e=e.trim().toLowerCase(),this.groupTagsTranslateCache.toEn.has(e)?this.groupTagsTranslateCache.toEn.get(e):""}}},Bi=Number.isNaN||window.isNaN,aw=/^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/,lw=/\.\d*(?:0|9){10}\d*$/,bg=(e,t=1e11)=>lw.test(String(e))?Math.round(e*t)/t:e,uw=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 Bi(this.value)||this.valuethis.min}},watch:{modelValue:{immediate:!0,handler(e,t){!(Bi(e)&&typeof t>"u")&&e!==this.value&&this.setValue(e)}}},methods:{isNaN:Bi,change(e){this.setValue(e.target.value)},paste(e){const t=e.clipboardData||window.clipboardData;t&&!aw.test(t.getData("text"))&&e.preventDefault()},decrease(){if(this.decreasable){let{value:e}=this;Bi(e)&&(e=0),this.setValue(bg(e-this.step))}},increase(){if(this.increasable){let{value:e}=this;Bi(e)&&(e=0),this.setValue(bg(e+this.step))}},setValue(e){const t=this.value;let n=typeof e!="number"?parseFloat(e):e;Bi(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},cw=["disabled"],fw=["name","value","min","max","step","readonly","disabled","placeholder"],dw=["disabled"];function pw(e,t,n,r,i,o){return E(),B("div",{class:Ze(["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(),B("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,cw)):Pe("",!0),x("input",ll({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,fw),e.controls?(E(),B("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,dw)):Pe("",!0)],2)}const hw=En(uw,[["render",pw]]),gw={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(),pe.hasBrackets(n)&&(n=pe.replaceBrackets(n)),this._appendTag(n,t),this.updateTags();else{pe.hasBrackets(n)?(n=pe.replaceBrackets(n),n=[n]):n=pe.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(),pe.hasBrackets(n)&&(n=pe.replaceBrackets(n)),this._appendTag(n,t),this.updateTags()},300)},onSettingBoxMouseEnter(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[]},getCurrentTypeFavorites(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[];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)}})}}},mw={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 Kc="__autosizeInputGhost",vw={" ":"nbsp","<":"lt",">":"gt"};function yw(e){return"&"+vw[e]+";"}function bw(e){return e.replace(/\s|<|>/g,yw)}function Cw(){var e=document.createElement("div");return e.id=Kc,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 _w=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(Kc)||Cw();l.style.cssText+=r,l.innerHTML=bw(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(Kc);s&&s.parentNode.removeChild(s)}};const ww=El(_w),Tw={data(){return{tagClickTimeId:0}},mounted(){pe.gradioApp().addEventListener("mousemove",()=>{this.$refs.highlightPrompt.hide()})},methods:{_setTag(e){if(typeof e.type=="string"&&e.type==="wrap")e.weightNum=1,e.incWeight=0,e.decWeight=0;else if(e.weightNum=pe.getTagWeightNum(e.value),e.weightNum=e.weightNum<=0?1:e.weightNum,e.incWeight=pe.getTagIncWeight(e.value),e.decWeight=pe.getTagDecWeight(e.value),e.originalValue=e.value,!e.isLora&&!e.isLyco&&!e.isEmbedding){let t=e.value;const n=pe.hasBrackets(t);(n[0]==="("&&n[1]===")"||n[0]==="["&&n[1]==="]")&&(t=pe.setLayers(t,0,n[0],n[1]),e.originalValue=t.replace(pe.weightNumRegex,"$1"))}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(pe.loraRegex);if(n&&(e.isLora=!0,e.loraName=n[1],this.loraExists(n[1])!==!1&&(e.loraExists=!0)),!e.isLora){const r=e.value.match(pe.lycoRegex);r&&(e.isLyco=!0,e.lycoName=r[1],this.lycoExists(r[1])!==!1&&(e.lycoExists=!0))}if(!e.isLora&&!e.isLyco){const r=this.embeddingExists(e.value);if(r!==!1)e.isEmbedding=!0,e.value=r,e.embeddingName=r;else{const i=this.embeddingExists(e.originalValue);i!==!1&&(e.isEmbedding=!0,e.embeddingName=i)}}}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){var t,n,r,i,o;if(typeof e.type=="string"&&e.type==="wrap")return!1;if(e.isLora){if((t=this.blacklist.lora)!=null&&t.includes(e.loraName.toLowerCase()))return!0}else if(e.isLyco){if((n=this.blacklist.lycoris)!=null&&n.includes(e.lycoName.toLowerCase()))return!0}else if(e.isEmbedding){if((r=this.blacklist.embedding)!=null&&r.includes(e.embeddingName.toLowerCase()))return!0}else if(this.neg){if((i=this.blacklist.negative_prompt)!=null&&i.includes(e.originalValue.toLowerCase()))return!0}else if((o=this.blacklist.prompt)!=null&&o.includes(e.originalValue.toLowerCase()))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]&&ww(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=pe.escapeHtml(n),t.incWeight>0){n=pe.setLayers(n,0,"(",")"),n='
'+n+"
";let r='
'+"(".repeat(t.incWeight)+"
",i='
'+")".repeat(t.incWeight)+"
";n=r+n+i}else if(t.decWeight>0){n=pe.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=pe.hasBrackets(i);s[0]==="("&&s[1]===")"&&(i=pe.setLayers(i,0,s[0],s[1]),o!==""&&(o=pe.setLayers(o,0,s[0],s[1]))),i=i.replace(pe.weightNumRegex,"$1"),o!==""&&(o=o.replace(pe.weightNumRegex,"$1"))}else{if(!pe.weightNumRegex.test(i)){let s=pe.hasBrackets(i);s?(i=pe.setLayers(i,1,s[0],s[1],":"+r),o!==""&&(o=pe.setLayers(o,1,s[0],s[1],":"+r))):(i=i+":"+r,o!==""&&(o=o+":"+r))}pe.hasBrackets(i)||(i=pe.setLayers(i,1,"(",")"),o!==""&&(o=pe.setLayers(o,1,"(",")")))}i!==n.value&&(n.value=i,o!==""&&(n.localValue=o),this._setTag(n))}else{const s=pe.hasBrackets(i);s[0]==="<"&&s[1]===">"?r=.1:this.autoKeepWeightZero?(n.value=i.replace(pe.weightNumRegex,"$1:0"),o!==""&&(n.localValue=n.localValue.replace(pe.weightNumRegex,"$1:0"))):(n.value=i.replace(pe.weightNumRegex,"$1"),o!==""&&(n.localValue=n.localValue.replace(pe.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=pe.setLayers(r,0,"[","]"),i!==""&&(i=pe.setLayers(i,0,"[","]"));let o=n.incWeight;o+=t,o<0&&(o=0),n.incWeight=o,n.decWeight=0,r=pe.setLayers(r,o,"(",")"),i!==""&&(i=pe.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=pe.setLayers(r,0,"(",")"),i!==""&&(i=pe.setLayers(i,0,"(",")"));let o=n.decWeight;o+=t,o<0&&(o=0),n.incWeight=0,n.decWeight=o,r=pe.setLayers(r,o,"[","]"),i!==""&&(i=pe.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()})}}},xw={data(){return{groupTagsActive:"",subGroupTagsActive:""}},watch:{groupTags:{handler(){(!this.groupTagsActive||!this.subGroupTagsActive)&&(this.groupTagsActive="favorite",this.subGroupTagsActive="favorite-"+this.favoriteKey),this._setGroupTagItemWidth()},deep:!0,immediate:!0},favorites:{handler(){},deep:!0,immediate:!0}},methods:{activeGroupTab(e){e==="favorite"?(this.groupTagsActive="favorite",this.subGroupTagsActive="favorite-"+this.favoriteKey,e=0):(this.groupTagsActive=this.groupTags[e].tabKey,this.subGroupTagsActive=this.groupTags[e].groups[0].tabKey,e+=1);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"}),this._setGroupTagItemWidth()},activeSubGroupTab(e,t){e==="favorite"?this.subGroupTagsActive="favorite-"+t:this.subGroupTagsActive=this.groupTags[e].groups[t].tabKey,this._setGroupTagItemWidth()},_setGroupTagItemWidth(){this.$nextTick(()=>{if(!this.$refs.groupTagItem)return;this.$refs.groupTagItem.forEach((t,n)=>{t.style.width="auto"});let e=0;this.$refs.groupTagItem.forEach((t,n)=>{e=Math.max(e,t.offsetWidth)}),e>0&&this.$refs.groupTagItem.forEach((t,n)=>{t.style.width=e+"px"})})},onClickHideGroupTags(){this.$emit("update:hideGroupTags",!this.hideGroupTags)},onClickGroupTag(e,t){this._appendTag(t,e,!1,-1,"text"),this.updateTags()},onClickGroupTagFavorite(e){e.tags.forEach(t=>{this._appendTag(t.value,t.localValue,t.disabled,-1,t.type)}),this.updateTags()},getGroupTagTooltip(e,t){let n="";return e&&e!==t&&(n+=e+"
"),n+=t,n},getGroupTagStyle(e,t){let n={},r=pe.getTagsColorKey(e,t),i="";return this.groupTagsColor[r]&&(i=this.groupTagsColor[r],pe.isColorTransparent(i)&&(i="")),i&&(n={background:i}),n},getTagsColorKey(e,t){return pe.getTagsColorKey(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=pe.getTagsColorKey(t.name,n.name);e===r&&(this.groupTagsColor[e]=Et(pe.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 pe.isColorTransparent(n)?{}:{background:n}}}},kw={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})}}},Sw=["innerHTML"];function Aw(e,t,n,r,i,o){return ye((E(),B("div",{class:Ze(["icon-svg","icon-svg-"+n.name]),"data-name":"name",innerHTML:i.svgCode},null,10,Sw)),[[Ot,i.svgCode]])}const sr=En(kw,[["render",Aw]]),Ew={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=pe.escapeHtml(t),n=pe.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 Ow(e,t,n,r,i,o){return E(),B("div",{class:"physton-highlight-prompt",ref:"highlightPrompt",onClick:t[0]||(t[0]=(...s)=>o.hide&&o.hide(...s))},null,512)}const Lw=En(Ew,[["render",Ow]]);function Iw(e){return vp()?(Qb(e),!0):!1}function Us(e){return typeof e=="function"?e():Hp(e)}const Cg=typeof window<"u",Ws=()=>{},Pw=Dw();function Dw(){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 Rw(e,t={}){let n,r,i=Ws;const o=l=>{clearTimeout(l),i(),i=Ws};return l=>{const c=Us(e),d=Us(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 Nw(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:ec(t),pause:n,resume:r,eventFilter:i}}function Hi(e,t=200,n={}){return _g(Rw(t,n),e)}function Oo(e,t=!0){kh()?lc(e):t?e():Xa(e)}var Tg=Object.getOwnPropertySymbols,Mw=Object.prototype.hasOwnProperty,Fw=Object.prototype.propertyIsEnumerable,$w=(e,t)=>{var n={};for(var r in e)Mw.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&&Fw.call(e,r)&&(n[r]=e[r]);return n};function Bw(e,t,n={}){const r=n,{eventFilter:i=wg}=r,o=$w(r,["eventFilter"]);return rr(e,_g(i,t),o)}var Hw=Object.defineProperty,jw=Object.defineProperties,Uw=Object.getOwnPropertyDescriptors,Ol=Object.getOwnPropertySymbols,xg=Object.prototype.hasOwnProperty,kg=Object.prototype.propertyIsEnumerable,Sg=(e,t,n)=>t in e?Hw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ww=(e,t)=>{for(var n in t||(t={}))xg.call(t,n)&&Sg(e,n,t[n]);if(Ol)for(var n of Ol(t))kg.call(t,n)&&Sg(e,n,t[n]);return e},Kw=(e,t)=>jw(e,Uw(t)),Vw=(e,t)=>{var n={};for(var r in e)xg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ol)for(var r of Ol(e))t.indexOf(r)<0&&kg.call(e,r)&&(n[r]=e[r]);return n};function qw(e,t,n={}){const r=n,{eventFilter:i}=r,o=Vw(r,["eventFilter"]),{eventFilter:s,pause:l,resume:c,isActive:d}=Nw(i);return{stop:Bw(e,t,Kw(Ww({},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 Ks(e){var t;const n=Us(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vs=Cg?window:void 0;function qs(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=Vs):[t,n,r,i]=e,!t)return Ws;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(h=>h()),o.length=0},l=(h,p,b,y)=>(h.addEventListener(p,b,y),()=>h.removeEventListener(p,b,y)),c=rr(()=>[Ks(t),Us(i)],([h,p])=>{s(),h&&o.push(...n.flatMap(b=>r.map(y=>l(h,b,y,p))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Iw(d),d}let Ag=!1;function zw(e,t,n={}){const{window:r=Vs,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return;Pw&&!Ag&&(Ag=!0,Array.from(r.document.body.children).forEach(b=>b.addEventListener("click",Ws)),r.document.documentElement.addEventListener("click",Ws));let l=!0;const c=b=>i.some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(w=>w===b.target||b.composedPath().includes(w));{const w=Ks(y);return w&&(b.target===w||b.composedPath().includes(w))}}),h=[qs(r,"click",b=>{const y=Ks(e);if(!(!y||y===b.target||b.composedPath().includes(y))){if(b.detail===0&&(l=!c(b)),!l){l=!0;return}t(b)}},{passive:!0,capture:o}),qs(r,"pointerdown",b=>{const y=Ks(e);y&&(l=!b.composedPath().includes(y)&&!c(b))},{passive:!0}),s&&qs(r,"blur",b=>{setTimeout(()=>{var y;const w=Ks(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(w!=null&&w.contains(r.document.activeElement))&&t(b)},0)})].filter(Boolean);return()=>h.forEach(b=>b())}const Ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Il="__vueuse_ssr_handlers__",Gw=Yw();function Yw(){return Il in Ll||(Ll[Il]=Ll[Il]||{}),Ll[Il]}function Xw(e,t){return Gw[e]||t}function Jw(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 Zw=Object.defineProperty,Eg=Object.getOwnPropertySymbols,Qw=Object.prototype.hasOwnProperty,eT=Object.prototype.propertyIsEnumerable,Og=(e,t,n)=>t in e?Zw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lg=(e,t)=>{for(var n in t||(t={}))Qw.call(t,n)&&Og(e,n,t[n]);if(Eg)for(var n of Eg(t))eT.call(t,n)&&Og(e,n,t[n]);return e};const tT={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 nT(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=Vs,eventFilter:b,onError:y=D=>{console.error(D)}}=r,w=(h?AC:Et)(t);if(!n)try{n=Xw("getDefaultStorage",()=>{var D;return(D=Vs)==null?void 0:D.localStorage})()}catch(D){y(D)}if(!n)return w;const T=Us(t),O=Jw(T),I=(i=r.serializer)!=null?i:tT[O],{pause:P,resume:j}=qw(w,()=>L(w.value),{flush:o,deep:s,eventFilter:b});return p&&l&&(qs(p,"storage",ce),qs(p,Ig,m)),ce(),w;function L(D){try{if(D==null)n.removeItem(e);else{const S=I.write(D),R=n.getItem(e);R!==S&&(n.setItem(e,S),p&&p.dispatchEvent(new CustomEvent(Ig,{detail:{key:e,oldValue:R,newValue:S,storageArea:n}})))}}catch(S){y(S)}}function we(D){const S=D?D.newValue:n.getItem(e);if(S==null)return c&&T!==null&&n.setItem(e,I.write(T)),T;if(!D&&d){const R=I.read(S);return typeof d=="function"?d(R,T):O==="object"&&!Array.isArray(R)?Lg(Lg({},T),R):R}else return typeof S!="string"?S:I.read(S)}function m(D){ce(D.detail)}function ce(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){w.value=T;return}if(!(D&&D.key!==e)){P();try{w.value=we(D)}catch(S){y(S)}finally{D?Xa(j):j()}}}}}function Vc(e,t,n={}){const{window:r=Vs}=n;return nT(e,t,r==null?void 0:r.localStorage,n)}var ji=ji||{};ji.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 j(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(rt){var Ve=fe();return Ve&&(je(e.comma)||n("Missing comma before color stops")),{type:z,orientation:Ve,colorStops:j(L)}})}function l(z,ie){var fe=je(z);if(fe){je(e.startCall)||n("Missing (");var rt=ie(fe);return je(e.endCall)||n("Missing )"),rt}}function c(){return d()||h()}function d(){return be("directional",e.sideOrCorner,1)}function h(){return be("angular",e.angleValue,1)}function p(){var z,ie=b(),fe;return ie&&(z=[],z.push(ie),fe=t,je(e.comma)&&(ie=b(),ie?z.push(ie):t=fe)),z}function b(){var z=y()||w();if(z)z.at=O();else{var ie=T();if(ie){z=ie;var fe=O();fe&&(z.at=fe)}else{var rt=I();rt&&(z={type:"default-radial",at:rt})}}return z}function y(){var z=be("shape",/^(circle)/i,0);return z&&(z.style=J()||T()),z}function w(){var z=be("shape",/^(ellipse)/i,0);return z&&(z.style=U()||T()),z}function T(){return be("extent-keyword",e.extentKeywords,1)}function O(){if(be("position",/^at/,0)){var z=I();return z||n("Missing positioning value"),z}}function I(){var z=P();if(z.x||z.y)return{type:"position",value:z}}function P(){return{x:U(),y:U()}}function j(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 L(){var z=we();return z||n("Expected color definition"),z.length=U(),z}function we(){return ce()||S()||D()||m()}function m(){return be("literal",e.literalColor,0)}function ce(){return be("hex",e.hexColor,1)}function D(){return l(e.rgbColor,function(){return{type:"rgb",value:j(R)}})}function S(){return l(e.rgbaColor,function(){return{type:"rgba",value:j(R)}})}function R(){return je(e.number)[1]}function U(){return be("%",e.percentageValue,1)||ee()||J()}function ee(){return be("position-keyword",e.positionKeywords,1)}function J(){return be("px",e.pixelValue,1)||be("em",e.emValue,1)}function be(z,ie,fe){var rt=je(ie);if(rt)return{type:z,value:rt[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 rT=ji.parse,iT=ji.stringify,Fn="top",ar="bottom",lr="right",$n="left",qc="auto",zs=[Fn,ar,lr,$n],Lo="start",Gs="end",oT="clippingParents",Pg="viewport",Ys="popper",sT="reference",Dg=zs.reduce(function(e,t){return e.concat([t+"-"+Lo,t+"-"+Gs])},[]),Rg=[].concat(zs,[qc]).reduce(function(e,t){return e.concat([t,t+"-"+Lo,t+"-"+Gs])},[]),aT="beforeRead",lT="read",uT="afterRead",cT="beforeMain",fT="main",dT="afterMain",pT="beforeWrite",hT="write",gT="afterWrite",mT=[aT,lT,uT,cT,fT,dT,pT,hT,gT];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 Ui(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 zc(e){if(typeof ShadowRoot>"u")return!1;var t=Yn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vT(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 yT(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:vT,effect:yT,requires:["computeStyles"]};function Nr(e){return e.split("-")[0]}var Wi=Math.max,Pl=Math.min,Io=Math.round;function Gc(){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(Gc())}function Po(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&&Io(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Io(r.height)/e.offsetHeight||1);var s=Ui(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,b=r.height/o;return{width:p,height:b,top:h,right:d+p,bottom:h+b,left:d,x:d,y:h}}function Yc(e){var t=Po(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zc(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 bT(e){return["table","td","th"].indexOf(Rr(e))>=0}function vi(e){return((Ui(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dl(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(zc(e)?e.host:null)||vi(e)}function $g(e){return!ur(e)||Yr(e).position==="fixed"?null:e.offsetParent}function CT(e){var t=/firefox/i.test(Gc()),n=/Trident/i.test(Gc());if(n&&ur(e)){var r=Yr(e);if(r.position==="fixed")return null}var i=Dl(e);for(zc(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 Xs(e){for(var t=Yn(e),n=$g(e);n&&bT(n)&&Yr(n).position==="static";)n=$g(n);return n&&(Rr(n)==="html"||Rr(n)==="body"&&Yr(n).position==="static")?t:n||CT(e)||t}function Xc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Js(e,t,n){return Wi(e,Pl(t,n))}function _T(e,t,n){var r=Js(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 wT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Hg(typeof t!="number"?t:jg(t,zs))};function TT(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=Xc(l),d=[$n,lr].indexOf(l)>=0,h=d?"height":"width";if(!(!o||!s)){var p=wT(i.padding,n),b=Yc(o),y=c==="y"?Fn:$n,w=c==="y"?ar:lr,T=n.rects.reference[h]+n.rects.reference[c]-s[c]-n.rects.popper[h],O=s[c]-n.rects.reference[c],I=Xs(o),P=I?c==="y"?I.clientHeight||0:I.clientWidth||0:0,j=T/2-O/2,L=p[y],we=P-b[h]-p[w],m=P/2-b[h]/2+j,ce=Js(L,m,we),D=c;n.modifiersData[r]=(t={},t[D]=ce,t.centerOffset=ce-m,t)}}function xT(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 kT={name:"arrow",enabled:!0,phase:"main",fn:TT,effect:xT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Do(e){return e.split("-")[1]}var ST={top:"auto",right:"auto",bottom:"auto",left:"auto"};function AT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Io(n*i)/i||0,y:Io(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,b=s.x,y=b===void 0?0:b,w=s.y,T=w===void 0?0:w,O=typeof h=="function"?h({x:y,y:T}):{x:y,y:T};y=O.x,T=O.y;var I=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),j=$n,L=Fn,we=window;if(d){var m=Xs(n),ce="clientHeight",D="clientWidth";if(m===Yn(n)&&(m=vi(n),Yr(m).position!=="static"&&l==="absolute"&&(ce="scrollHeight",D="scrollWidth")),m=m,i===Fn||(i===$n||i===lr)&&o===Gs){L=ar;var S=p&&m===we&&we.visualViewport?we.visualViewport.height:m[ce];T-=S-r.height,T*=c?1:-1}if(i===$n||(i===Fn||i===ar)&&o===Gs){j=lr;var R=p&&m===we&&we.visualViewport?we.visualViewport.width:m[D];y-=R-r.width,y*=c?1:-1}}var U=Object.assign({position:l},d&&ST),ee=h===!0?AT({x:y,y:T},Yn(n)):{x:y,y:T};if(y=ee.x,T=ee.y,c){var J;return Object.assign({},U,(J={},J[L]=P?"0":"",J[j]=I?"0":"",J.transform=(we.devicePixelRatio||1)<=1?"translate("+y+"px, "+T+"px)":"translate3d("+y+"px, "+T+"px, 0)",J))}return Object.assign({},U,(t={},t[L]=P?T+"px":"",t[j]=I?y+"px":"",t.transform="",t))}function ET(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:Do(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 OT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ET,data:{}};var Rl={passive:!0};function LT(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,Rl)}),l&&c.addEventListener("resize",n.update,Rl),function(){o&&d.forEach(function(h){h.removeEventListener("scroll",n.update,Rl)}),l&&c.removeEventListener("resize",n.update,Rl)}}const IT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LT,data:{}};var PT={left:"right",right:"left",bottom:"top",top:"bottom"};function Nl(e){return e.replace(/left|right|bottom|top/g,function(t){return PT[t]})}var DT={start:"end",end:"start"};function Wg(e){return e.replace(/start|end/g,function(t){return DT[t]})}function Jc(e){var t=Yn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Zc(e){return Po(vi(e)).left+Jc(e).scrollLeft}function RT(e,t){var n=Yn(e),r=vi(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+Zc(e),y:c}}function NT(e){var t,n=vi(e),r=Jc(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Wi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Wi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Zc(e),c=-r.scrollTop;return Yr(i||n).direction==="rtl"&&(l+=Wi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function Qc(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)&&Qc(e)?e:Kg(Dl(e))}function Zs(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||[],Qc(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Zs(Dl(s)))}function ef(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function MT(e,t){var n=Po(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?ef(RT(e,n)):Ui(t)?MT(t,n):ef(NT(vi(e)))}function FT(e){var t=Zs(Dl(e)),n=["absolute","fixed"].indexOf(Yr(e).position)>=0,r=n&&ur(e)?Xs(e):e;return Ui(r)?t.filter(function(i){return Ui(i)&&Fg(i,r)&&Rr(i)!=="body"}):[]}function $T(e,t,n,r){var i=t==="clippingParents"?FT(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=Wi(h.top,c.top),c.right=Pl(h.right,c.right),c.bottom=Pl(h.bottom,c.bottom),c.left=Wi(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?Do(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?Xc(i):null;if(d!=null){var h=d==="y"?"height":"width";switch(o){case Lo:c[d]=c[d]-(t[h]/2-n[h]/2);break;case Gs:c[d]=c[d]+(t[h]/2-n[h]/2);break}}return c}function Qs(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?oT:l,d=n.rootBoundary,h=d===void 0?Pg:d,p=n.elementContext,b=p===void 0?Ys:p,y=n.altBoundary,w=y===void 0?!1:y,T=n.padding,O=T===void 0?0:T,I=Hg(typeof O!="number"?O:jg(O,zs)),P=b===Ys?sT:Ys,j=e.rects.popper,L=e.elements[w?P:b],we=$T(Ui(L)?L:L.contextElement||vi(e.elements.popper),c,h,s),m=Po(e.elements.reference),ce=qg({reference:m,element:j,strategy:"absolute",placement:i}),D=ef(Object.assign({},j,ce)),S=b===Ys?D:m,R={top:we.top-S.top+I.top,bottom:S.bottom-we.bottom+I.bottom,left:we.left-S.left+I.left,right:S.right-we.right+I.right},U=e.modifiersData.offset;if(b===Ys&&U){var ee=U[i];Object.keys(R).forEach(function(J){var be=[lr,ar].indexOf(J)>=0?1:-1,je=[Fn,ar].indexOf(J)>=0?"y":"x";R[J]+=ee[je]*be})}return R}function BT(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=Do(r),p=h?l?Dg:Dg.filter(function(w){return Do(w)===h}):zs,b=p.filter(function(w){return d.indexOf(w)>=0});b.length===0&&(b=p);var y=b.reduce(function(w,T){return w[T]=Qs(e,{placement:T,boundary:i,rootBoundary:o,padding:s})[Nr(T)],w},{});return Object.keys(y).sort(function(w,T){return y[w]-y[T]})}function HT(e){if(Nr(e)===qc)return[];var t=Nl(e);return[Wg(e),t,Wg(t)]}function jT(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,b=n.altBoundary,y=n.flipVariations,w=y===void 0?!0:y,T=n.allowedAutoPlacements,O=t.options.placement,I=Nr(O),P=I===O,j=c||(P||!w?[Nl(O)]:HT(O)),L=[O].concat(j).reduce(function(Te,Ae){return Te.concat(Nr(Ae)===qc?BT(t,{placement:Ae,boundary:h,rootBoundary:p,padding:d,flipVariations:w,allowedAutoPlacements:T}):Ae)},[]),we=t.rects.reference,m=t.rects.popper,ce=new Map,D=!0,S=L[0],R=0;R=0,je=be?"width":"height",Ne=Qs(t,{placement:U,boundary:h,rootBoundary:p,altBoundary:b,padding:d}),z=be?J?lr:$n:J?ar:Fn;we[je]>m[je]&&(z=Nl(z));var ie=Nl(z),fe=[];if(o&&fe.push(Ne[ee]<=0),l&&fe.push(Ne[z]<=0,Ne[ie]<=0),fe.every(function(Te){return Te})){S=U,D=!1;break}ce.set(U,fe)}if(D)for(var rt=w?3:1,Ve=function(Ae){var Oe=L.find(function(He){var Xe=ce.get(He);if(Xe)return Xe.slice(0,Ae).every(function(Le){return Le})});if(Oe)return S=Oe,"break"},ne=rt;ne>0;ne--){var me=Ve(ne);if(me==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const UT={name:"flip",enabled:!0,phase:"main",fn:jT,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 WT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Qs(t,{elementContext:"reference"}),l=Qs(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 KT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WT};function VT(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 qT(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]=VT(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 zT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qT};function GT(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 YT={name:"popperOffsets",enabled:!0,phase:"read",fn:GT,data:{}};function XT(e){return e==="x"?"y":"x"}function JT(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,b=n.tether,y=b===void 0?!0:b,w=n.tetherOffset,T=w===void 0?0:w,O=Qs(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:h}),I=Nr(t.placement),P=Do(t.placement),j=!P,L=Xc(I),we=XT(L),m=t.modifiersData.popperOffsets,ce=t.rects.reference,D=t.rects.popper,S=typeof T=="function"?T(Object.assign({},t.rects,{placement:t.placement})):T,R=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ee={x:0,y:0};if(m){if(o){var J,be=L==="y"?Fn:$n,je=L==="y"?ar:lr,Ne=L==="y"?"height":"width",z=m[L],ie=z+O[be],fe=z-O[je],rt=y?-D[Ne]/2:0,Ve=P===Lo?ce[Ne]:D[Ne],ne=P===Lo?-D[Ne]:-ce[Ne],me=t.elements.arrow,Te=y&&me?Yc(me):{width:0,height:0},Ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bg(),Oe=Ae[be],He=Ae[je],Xe=Js(0,ce[Ne],Te[Ne]),Le=j?ce[Ne]/2-rt-Xe-Oe-R.mainAxis:Ve-Xe-Oe-R.mainAxis,it=j?-ce[Ne]/2+rt+Xe+He+R.mainAxis:ne+Xe+He+R.mainAxis,mt=t.elements.arrow&&Xs(t.elements.arrow),N=mt?L==="y"?mt.clientTop||0:mt.clientLeft||0:0,$=(J=U==null?void 0:U[L])!=null?J:0,G=z+Le-$-N,te=z+it-$,K=Js(y?Pl(ie,G):ie,z,y?Wi(fe,te):fe);m[L]=K,ee[L]=K-z}if(l){var X,Ce=L==="x"?Fn:$n,de=L==="x"?ar:lr,ve=m[we],se=we==="y"?"height":"width",ke=ve+O[Ce],_e=ve-O[de],Me=[Fn,$n].indexOf(I)!==-1,Se=(X=U==null?void 0:U[we])!=null?X:0,qe=Me?ke:ve-ce[se]-D[se]-Se+R.altAxis,dt=Me?ve+ce[se]+D[se]-Se-R.altAxis:_e,lt=y&&Me?_T(qe,ve,dt):Js(y?qe:ke,ve,y?dt:_e);m[we]=lt,ee[we]=lt-ve}t.modifiersData[r]=ee}}const ZT={name:"preventOverflow",enabled:!0,phase:"main",fn:JT,requiresIfExists:["offset"]};function QT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ex(e){return e===Yn(e)||!ur(e)?Jc(e):QT(e)}function tx(e){var t=e.getBoundingClientRect(),n=Io(t.width)/e.offsetWidth||1,r=Io(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nx(e,t,n){n===void 0&&(n=!1);var r=ur(t),i=ur(t)&&tx(t),o=vi(t),s=Po(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Rr(t)!=="body"||Qc(o))&&(l=ex(t)),ur(t)?(c=Po(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Zc(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function rx(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 ix(e){var t=rx(e);return mT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function ox(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function sx(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 ux(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 ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}const cx={silent:!1,logLevel:"warn"},fx=["validator"],em=Object.prototype,tm=em.toString,dx=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 Ki=ux;let Cn=e=>e;const Ro=(e,t)=>dx.call(e,t),px=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},No=Array.isArray||function(e){return tm.call(e)==="[object Array]"},Mo=e=>tm.call(e)==="[object Function]",Ml=e=>Ki(e)&&Ro(e,"_vueTypes_name"),im=e=>Ki(e)&&(Ro(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>Ro(e,t)));function tf(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Vi(e,t,n=!1){let r,i=!0,o="";r=Ki(e)?e:{type:e};const s=Ml(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;No(r.type)?(i=r.type.some(l=>Vi(l,t,!0)===!0),o=r.type.map(l=>rm(l)).join(" or ")):(o=rm(r),i=o==="Array"?No(t):o==="Object"?Ki(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(Ro(r,"validator")&&Mo(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?(Ro(this,"default")&&delete this.default,this):Mo(i)||Vi(this,i,!0)===!0?(this.default=No(i)?()=>[...i]:Ki(i)?()=>Object.assign({},i):i,this):(Cn(`${this._vueTypes_name} - invalid default value: "${i}"`),this)}}}),{validator:r}=n;return Mo(r)&&(n.validator=tf(r,n)),n}function Mr(e,t){const n=Xn(e,t);return Object.defineProperty(n,"validate",{value(r){return Mo(this.validator)&&Cn(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info: ${JSON.stringify(this)}`),this.validator=tf(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,!Ki(n))return r;const{validator:i}=n,o=Qg(n,fx);if(Mo(i)){let{validator:c}=r;c&&(c=(l=(s=c).__original)!==null&&l!==void 0?l:s),r.validator=tf(c?function(d){return c.call(this,d)&&i.call(this,d)}:i,r)}var s,l;return Object.assign(r,o)}function Fl(e){return e.replace(/^(?!\s*$)/gm," ")}const hx=()=>Mr("any",{}),gx=()=>Mr("function",{type:Function}),mx=()=>Mr("boolean",{type:Boolean}),vx=()=>Mr("string",{type:String}),yx=()=>Mr("number",{type:Number}),bx=()=>Mr("array",{type:Array}),Cx=()=>Mr("object",{type:Object}),_x=()=>Xn("integer",{type:Number,validator:e=>px(e)}),wx=()=>Xn("symbol",{validator:e=>typeof e=="symbol"});function Tx(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 xx(e){if(!No(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 kx(e){if(!No(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=Vi(Ml(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: ${Fl(o.join(` `))}`),s}}:{type:r})}function Sx(e){return Xn("arrayOf",{type:Array,validator(t){let n="";const r=t.every(i=>(n=Vi(e,i,!0),n===!0));return r||Cn(`arrayOf - value validation error: ${Fl(n)}`),r}})}function Ax(e){return Xn("instanceOf",{type:e})}function Ex(e){return Xn("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(i=>(n=Vi(e,t[i],!0),n===!0));return r||Cn(`objectOf - value validation error: ${Fl(n)}`),r}})}function Ox(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(!Ki(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=Vi(e[s],i[s],!0);return typeof l=="string"&&Cn(`shape - "${s}" property validation error: ${Fl(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 Lx=["name","validate","getter"],Ix=(()=>{var e;return(e=class{static get any(){return hx()}static get func(){return gx().def(this.defaults.func)}static get bool(){return mx().def(this.defaults.bool)}static get string(){return vx().def(this.defaults.string)}static get number(){return yx().def(this.defaults.number)}static get array(){return bx().def(this.defaults.array)}static get object(){return Cx().def(this.defaults.object)}static get integer(){return _x().def(this.defaults.integer)}static get symbol(){return wx()}static get nullable(){return{type:null}}static extend(t){if(No(t))return t.forEach(c=>this.extend(c)),this;const{name:n,validate:r=!1,getter:i=!1}=t,o=Qg(t,Lx);if(Ro(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:s}=o;if(Ml(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=cx,e.custom=Tx,e.oneOf=xx,e.instanceOf=Ax,e.oneOfType=kx,e.arrayOf=Sx,e.objectOf=Ex,e.shape=Ox,e.utils={validate:(t,n)=>Vi(n,t,!0)===!0,toType:(t,n,r=!1)=>r?Mr(t,n):Xn(t,n)},e})();function Px(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends Ix{static get sensibleDefaults(){return ea({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?ea({},n!==!0?n:e):{}}}).defaults=ea({},e),t}let at=class extends Px(){};var sm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nf(e){var t={exports:{}};return e(t,t.exports),t.exports}var $l=function(e){return e&&e.Math==Math&&e},rn=$l(typeof globalThis=="object"&&globalThis)||$l(typeof window=="object"&&window)||$l(typeof self=="object"&&self)||$l(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,Dx={f:lm&&!am.call({1:2},1)?function(e){var t=lm(this,e);return!!t&&t.enumerable}:am},Bl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rx={}.toString,Xr=function(e){return Rx.call(e).slice(8,-1)},Nx="".split,Hl=Nt(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return Xr(e)=="String"?Nx.call(e,""):Object(e)}:Object,yi=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Fo=function(e){return Hl(yi(e))},cn=function(e){return typeof e=="object"?e!==null:typeof e=="function"},rf=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")},Mx={}.hasOwnProperty,Zt=function(e,t){return Mx.call(e,t)},of=rn.document,Fx=cn(of)&&cn(of.createElement),um=function(e){return Fx?of.createElement(e):{}},cm=!cr&&!Nt(function(){return Object.defineProperty(um("div"),"a",{get:function(){return 7}}).a!=7}),fm=Object.getOwnPropertyDescriptor,sf={f:cr?fm:function(e,t){if(e=Fo(e),t=rf(t,!0),cm)try{return fm(e,t)}catch{}if(Zt(e,t))return Bl(!Dx.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=rf(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,Bl(1,n))}:function(e,t,n){return e[t]=n,e},af=function(e,t){try{fr(rn,e,t)}catch{rn[e]=t}return t},qi=rn["__core-js_shared__"]||af("__core-js_shared__",{}),$x=Function.toString;typeof qi.inspectSource!="function"&&(qi.inspectSource=function(e){return $x.call(e)});var jl,ta,Ul,pm=qi.inspectSource,hm=rn.WeakMap,Bx=typeof hm=="function"&&/native code/.test(pm(hm)),gm=nf(function(e){(e.exports=function(t,n){return qi[t]||(qi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Hx=0,jx=Math.random(),lf=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++Hx+jx).toString(36)},mm=gm("keys"),uf=function(e){return mm[e]||(mm[e]=lf(e))},Wl={},Ux=rn.WeakMap;if(Bx){var $o=qi.state||(qi.state=new Ux),Wx=$o.get,Kx=$o.has,Vx=$o.set;jl=function(e,t){return t.facade=e,Vx.call($o,e,t),t},ta=function(e){return Wx.call($o,e)||{}},Ul=function(e){return Kx.call($o,e)}}else{var na=uf("state");Wl[na]=!0,jl=function(e,t){return t.facade=e,fr(e,na,t),t},ta=function(e){return Zt(e,na)?e[na]:{}},Ul=function(e){return Zt(e,na)}}var bi={set:jl,get:ta,has:Ul,enforce:function(e){return Ul(e)?ta(e):jl(e,{})},getterFor:function(e){return function(t){var n;if(!cn(t)||(n=ta(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ci=nf(function(e){var t=bi.get,n=bi.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:af(o,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||pm(this)})}),cf=rn,vm=function(e){return typeof e=="function"?e:void 0},Kl=function(e,t){return arguments.length<2?vm(cf[e])||vm(rn[e]):cf[e]&&cf[e][t]||rn[e]&&rn[e][t]},qx=Math.ceil,zx=Math.floor,Bo=function(e){return isNaN(e=+e)?0:(e>0?zx:qx)(e)},Gx=Math.min,Jn=function(e){return e>0?Gx(Bo(e),9007199254740991):0},Yx=Math.max,Xx=Math.min,Vl=function(e,t){var n=Bo(e);return n<0?Yx(n+t,0):Xx(n,t)},ym=function(e){return function(t,n,r){var i,o=Fo(t),s=Jn(o.length),l=Vl(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)},Jx=bm.indexOf,Cm=function(e,t){var n,r=Fo(e),i=0,o=[];for(n in r)!Zt(Wl,n)&&Zt(r,n)&&o.push(n);for(;t.length>i;)Zt(r,n=t[i++])&&(~Jx(o,n)||o.push(n));return o},ql=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Zx=ql.concat("length","prototype"),Qx={f:Object.getOwnPropertyNames||function(e){return Cm(e,Zx)}},ek={f:Object.getOwnPropertySymbols},tk=Kl("Reflect","ownKeys")||function(e){var t=Qx.f(On(e)),n=ek.f;return n?t.concat(n(e)):t},nk=function(e,t){for(var n=tk(t),r=Jr.f,i=sf.f,o=0;o1?arguments[1]:void 0)}}),function(){function e(){zi(this,e)}return Gi(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 pk=[].join,hk=Hl!=Object,gk=df("join",",");_n({target:"Array",proto:!0,forced:hk||!gk},{join:function(e){return pk.call(Fo(this),e===void 0?",":e)}});var jo,zl,Zr=function(e){return Object(yi(e))},Uo=Array.isArray||function(e){return Xr(e)=="Array"},km=!!Object.getOwnPropertySymbols&&!Nt(function(){return!String(Symbol())}),mk=km&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Gl=gm("wks"),ia=rn.Symbol,vk=mk?ia:ia&&ia.withoutSetter||lf,Vt=function(e){return Zt(Gl,e)||(km&&Zt(ia,e)?Gl[e]=ia[e]:Gl[e]=vk("Symbol."+e)),Gl[e]},yk=Vt("species"),Yl=function(e,t){var n;return Uo(e)&&(typeof(n=e.constructor)!="function"||n!==Array&&!Uo(n.prototype)?cn(n)&&(n=n[yk])===null&&(n=void 0):n=void 0),new(n===void 0?Array:n)(t===0?0:t)},Wo=function(e,t,n){var r=rf(t);r in e?Jr.f(e,r,Bl(0,n)):e[r]=n},hf=Kl("navigator","userAgent")||"",Sm=rn.process,Am=Sm&&Sm.versions,Em=Am&&Am.v8;Em?zl=(jo=Em.split("."))[0]+jo[1]:hf&&(!(jo=hf.match(/Edge\/(\d+)/))||jo[1]>=74)&&(jo=hf.match(/Chrome\/(\d+)/))&&(zl=jo[1]);var Xl=zl&&+zl,bk=Vt("species"),gf=function(e){return Xl>=51||!Nt(function(){var t=[];return(t.constructor={})[bk]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Ck=gf("splice"),_k=Ho("splice",{ACCESSORS:!0,0:0,1:2}),wk=Math.max,Tk=Math.min;_n({target:"Array",proto:!0,forced:!Ck||!_k},{splice:function(e,t){var n,r,i,o,s,l,c=Zr(this),d=Jn(c.length),h=Vl(e,d),p=arguments.length;if(p===0?n=r=0:p===1?(n=0,r=d-h):(n=p-2,r=Tk(wk(Bo(t),0),d-h)),d+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Yl(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)),Cf&&(n=new RegExp("^"+c+"$(?!\\s)",l)),bf&&(t=o.lastIndex),r=Jl.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:bf&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Cf&&r&&r.length>1&&Ak.call(r[0],n,function(){for(i=1;i")!=="7"}),$m="a".replace(/./,"$0")==="$0",Bm=Vt("replace"),Hm=!!/./[Bm]&&/./[Bm]("a","$0")==="",Pk=!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,b=/a/;return e==="split"&&((b={}).constructor={},b.constructor[Lk]=function(){return b},b.flags="",b[i]=/./[i]),b.exec=function(){return p=!0,null},b[i](""),!p});if(!o||!s||e==="replace"&&(!Ik||!$m||Hm)||e==="split"&&!Pk){var l=/./[i],c=n(i,""[e],function(p,b,y,w,T){return b.exec===oa?o&&!T?{done:!0,value:l.call(b,y,w)}:{done:!0,value:p.call(y,b,w)}:{done:!1}},{REPLACE_KEEPS_$0:$m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Hm}),d=c[0],h=c[1];Ci(String.prototype,e,d),Ci(RegExp.prototype,i,t==2?function(p,b){return h.call(p,this,b)}:function(p){return h.call(p,this)})}r&&fr(RegExp.prototype[i],"sham",!0)},Dk=Vt("match"),Um=function(e){var t;return cn(e)&&((t=e[Dk])!==void 0?!!t:Xr(e)=="RegExp")},_f=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},Rk=Vt("species"),Wm=function(e){return function(t,n){var r,i,o=String(yi(t)),s=Bo(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)},Nk=Km.charAt,Vm=function(e,t,n){return t+(n?Nk(e,t).length:1)},wf=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 oa.call(e,t)},Mk=[].push,Fk=Math.min,Ko=!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(yi(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=[],b=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),y=0,w=new RegExp(i.source,b+"g");(c=oa.call(w,s))&&!((d=w.lastIndex)>y&&(p.push(s.slice(y,c.index)),c.length>1&&c.index=l));)w.lastIndex===c.index&&w.lastIndex++;return y===s.length?!h&&w.test("")||p.push(""):p.push(s.slice(y)),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=yi(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(L,we){var m,ce=On(L).constructor;return ce===void 0||(m=On(ce)[Rk])==null?we:_f(m)}(l,RegExp),h=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(Ko?"y":"g"),b=new d(Ko?l:"^(?:"+l.source+")",p),y=o===void 0?4294967295:o>>>0;if(y===0)return[];if(c.length===0)return wf(b,c)===null?[c]:[];for(var w=0,T=0,O=[];T1?arguments[1]:void 0,t.length)),r=String(e);return qm?qm.call(t,r,n):t.slice(n,n+r.length)===r}});var Vo=function(e){return typeof e=="string"},qo=function(e){return e!==null&&Gm(e)==="object"},zo=function(){function e(){zi(this,e)}return Gi(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&&qo(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,n){return!!(t&&qo(t)&&Vo(n)&&t.nodeType===1)&&t.classList.contains(n.trim())}},{key:"addClass",value:function(t,n){if(t&&qo(t)&&Vo(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&&qo(t)&&Vo(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&&qo(t)&&Vo(n)&&t.nodeType===1&&t.classList.toggle(n,r)}},{key:"replaceClass",value:function(t,n,r){t&&qo(t)&&Vo(n)&&Vo(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,nS=/\$([$&'`]|\d\d?)/g,rS=function(e,t,n,r,i,o){var s=n+e.length,l=r.length,c=nS;return i!==void 0&&(i=Zr(i),c=tS),eS.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 b=+h;if(b===0)return d;if(b>l){var y=Qk(b/10);return y===0?d:y<=l?r[y-1]===void 0?h.charAt(1):r[y-1]+h.charAt(1):d}p=r[b-1]}return p===void 0?"":p})},iS=Math.max,oS=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=yi(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),b=typeof c=="function";b||(c=String(c));var y=h.global;if(y){var w=h.unicode;h.lastIndex=0}for(var T=[];;){var O=wf(h,p);if(O===null||(T.push(O),!y))break;String(O[0])===""&&(h.lastIndex=Vm(p,Jn(h.lastIndex),w))}for(var I,P="",j=0,L=0;L=j&&(P+=p.slice(j,m)+U,j=m+we.length)}return P+p.slice(j)}]}),function(){function e(){zi(this,e)}return Gi(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(){zi(this,e)}return Gi(e,null,[{key:"_clone",value:function(){}}]),e}();var Ym=Vt("isConcatSpreadable"),sS=Xl>=51||!Nt(function(){var e=[];return e[Ym]=!1,e.concat()[0]!==e}),aS=gf("concat"),lS=function(e){if(!cn(e))return!1;var t=e[Ym];return t!==void 0?!!t:Uo(e)};_n({target:"Array",proto:!0,forced:!sS||!aS},{concat:function(e){var t,n,r,i,o,s=Zr(this),l=Yl(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");Wo(l,c++,o)}return l.length=c,l}});var Af,sa=function(e,t,n){if(_f(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,_i=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 b,y,w=Zr(c),T=Hl(w),O=sa(d,h,3),I=Jn(T.length),P=0,j=p||Yl,L=t?j(c,I):n||s?j(c,0):void 0;I>P;P++)if((l||P in T)&&(y=O(b=T[P],P,w),e))if(t)L[P]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return P;case 2:Xm.call(L,b)}else switch(e){case 4:return!1;case 7:Xm.call(L,b)}return o?-1:r||i?i:L}},Jm={forEach:_i(0),map:_i(1),filter:_i(2),some:_i(3),every:_i(4),find:_i(5),findIndex:_i(6),filterOut:_i(7)},uS=cr?Object.defineProperties:function(e,t){On(e);for(var n,r=kf(t),i=r.length,o=0;i>o;)Jr.f(e,n=r[o++],t[n]);return e},cS=Kl("document","documentElement"),Zm=uf("IE_PROTO"),Ef=function(){},Qm=function(e){return"