skills-manager-cli 2026.8.26 → 2026.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/dist/cli/main.js +48 -5
- package/dist/cli/main.js.map +1 -1
- package/dist/core/services/distribute-service.js +105 -13
- package/dist/core/services/distribute-service.js.map +1 -1
- package/dist/core/services/index.js +1 -1
- package/dist/core/services/index.js.map +1 -1
- package/dist/core/services/init-service.js +84 -12
- package/dist/core/services/init-service.js.map +1 -1
- package/dist/core/services/install-service.js +8 -1
- package/dist/core/services/install-service.js.map +1 -1
- package/dist/dashboard/server/main.js +59 -13
- package/dist/dashboard/server/main.js.map +1 -1
- package/dist/dashboard-web/assets/index-BtkWyamF.js +47 -0
- package/dist/dashboard-web/assets/index-DbZ7PRHg.css +1 -0
- package/dist/dashboard-web/index.html +2 -2
- package/docs/CLI.md +14 -1
- package/package.json +25 -4
- package/dist/dashboard-web/assets/index-B43GPIpA.js +0 -13
- package/dist/dashboard-web/assets/index-CzbkHV2A.css +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r=Object.freeze({}),i=Object.freeze([]),a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>w(e)===`[object Map]`,h=e=>w(e)===`[object Set]`,g=e=>w(e)===`[object Date]`,_=e=>w(e)===`[object RegExp]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),C=Object.prototype.toString,w=e=>C.call(e),T=e=>w(e).slice(8,-1),E=e=>w(e)===`[object Object]`,D=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,O=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=n(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),te=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ne=/-\w/g,k=te(e=>e.replace(ne,e=>e.slice(1).toUpperCase())),re=/\B([A-Z])/g,ie=te(e=>e.replace(re,`-$1`).toLowerCase()),ae=te(e=>e.charAt(0).toUpperCase()+e.slice(1)),oe=te(e=>e?`on${ae(e)}`:``),A=(e,t)=>!Object.is(e,t),se=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ce=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},le=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ue=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},de,fe=()=>de||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},pe=n(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function me(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?ve(r):me(r);if(i)for(let e in i)t[e]=i[e]}return t}if(y(e)||x(e))return e}var he=/;(?![^(]*\))/g,ge=/:([^]+)/,_e=/\/\*[^]*?\*\//g;function ve(e){let t={};return e.replace(_e,``).split(he).forEach(e=>{if(e){let n=e.split(ge);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){if(!e)return``;if(y(e))return e;let t=``;for(let n in e){let r=e[n];if(y(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:ie(n);t+=`${e}:${r};`}}return t}function be(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=be(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function xe(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=be(t)),n&&(e.style=me(n)),e}var Se=`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`,Ce=`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`,we=`annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics`,Te=n(Se),Ee=n(Ce),De=n(we),Oe=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ke=n(Oe),Ae=n(Oe+`,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function je(e){return!!e||e===``}var Me=n(`accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`),Ne=n(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);function Pe(e){if(e==null)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`}var Fe=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Ie(e,t){return e.replace(Fe,e=>t?e===`"`?`\\\\\\"`:`\\\\${e}`:`\\${e}`)}function Le(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Re(e[r],t[r]);return n}function Re(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=b(e),r=b(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return n&&r?Le(e,t):!1;if(n=x(e),r=x(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Re(e[n],t[n]))return!1}}return String(e)===String(t)}function ze(e,t){return e.findIndex(e=>Re(e,t))}var Be=e=>!!(e&&e.__v_isRef===!0),j=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===C||!v(e.toString))?Be(e)?j(e.value):JSON.stringify(e,Ve,2):String(e),Ve=(e,t)=>Be(t)?Ve(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[He(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>He(e))}:b(t)?He(t):x(t)&&!p(t)&&!E(t)?String(t):t,He=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function Ue(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:((typeof e!=`number`||!Number.isFinite(e))&&console.warn(`[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:`,e),String(e))}function We(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Ge,Ke=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ge&&(Ge.active?(this.parent=Ge,this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=Ge;try{return Ge=this,e()}finally{Ge=t}}else this._warnOnRun&&We(`cannot run an inactive effect scope.`)}on(){++this._on===1&&(this.prevScope=Ge,Ge=this)}off(){if(this._on>0&&--this._on===0){if(Ge===this)Ge=this.prevScope;else{let e=Ge;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function qe(e){return new Ke(e)}function Je(){return Ge}function Ye(e,t=!1){Ge?Ge.cleanups.push(e):t||We(`onScopeDispose() is called when there is no active effect scope to be associated with.`)}var Xe,Ze=new WeakSet,Qe=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ge&&(Ge.active?Ge.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ze.has(this)&&(Ze.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||nt(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_t(this),at(this);let e=Xe,t=pt;Xe=this,pt=!0;try{return this.fn()}finally{Xe!==this&&We(`Active effect was not restored correctly - this is likely a Vue internal bug.`),ot(this),Xe=e,pt=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)lt(e);this.deps=this.depsTail=void 0,_t(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ze.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){st(this)&&this.run()}get dirty(){return st(this)}},$e=0,et,tt;function nt(e,t=!1){if(e.flags|=8,t){e.next=tt,tt=e;return}e.next=et,et=e}function rt(){$e++}function it(){if(--$e>0)return;if(tt){let e=tt;for(tt=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;et;){let t=et;for(et=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function at(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ot(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),lt(r),ut(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function st(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ct(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ct(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===vt)||(e.globalVersion=vt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!st(e))))return;e.flags|=2;let t=e.dep,n=Xe,r=pt;Xe=e,pt=!0;try{at(e);let n=e.fn(e._value);(t.version===0||A(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Xe=n,pt=r,ot(e),e.flags&=-3}}function lt(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)lt(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ut(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function dt(e,t){e.effect instanceof Qe&&(e=e.effect.fn);let n=new Qe(e);t&&l(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function ft(e){e.effect.stop()}var pt=!0,mt=[];function ht(){mt.push(pt),pt=!1}function gt(){let e=mt.pop();pt=e===void 0||e}function _t(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Xe;Xe=void 0;try{t()}finally{Xe=e}}}var vt=0,yt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},bt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,this.subsHead=void 0}track(e){if(!Xe||!pt||Xe===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Xe)t=this.activeLink=new yt(Xe,this),Xe.deps?(t.prevDep=Xe.depsTail,Xe.depsTail.nextDep=t,Xe.depsTail=t):Xe.deps=Xe.depsTail=t,xt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Xe.depsTail,t.nextDep=void 0,Xe.depsTail.nextDep=t,Xe.depsTail=t,Xe.deps===t&&(Xe.deps=e)}return Xe.onTrack&&Xe.onTrack(l({effect:Xe},e)),t}trigger(e){this.version++,vt++,this.notify(e)}notify(e){rt();try{for(let t=this.subsHead;t;t=t.nextSub)t.sub.onTrigger&&!(t.sub.flags&8)&&t.sub.onTrigger(l({effect:t.sub},e));for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{it()}}};function xt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)xt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}var St=new WeakMap,Ct=Symbol(`Object iterate`),wt=Symbol(`Map keys iterate`),Tt=Symbol(`Array iterate`);function Et(e,t,n){if(pt&&Xe){let r=St.get(e);r||St.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new bt),i.map=r,i.key=n),i.track({target:e,type:t,key:n})}}function Dt(e,t,n,r,i,a){let o=St.get(e);if(!o){vt++;return}let s=o=>{o&&o.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:a})};if(rt(),t===`clear`)o.forEach(s);else{let i=p(e),a=i&&D(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Tt||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Tt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ct)),m(e)&&s(o.get(wt)));break;case`delete`:i||(s(o.get(Ct)),m(e)&&s(o.get(wt)));break;case`set`:m(e)&&s(o.get(Ct))}}it()}function Ot(e,t){let n=St.get(e);return n&&n.get(t)}function kt(e){let t=M(e);return t===e?t:(Et(t,`iterate`,Tt),yn(e)?t:t.map(Sn))}function At(e){return Et(e=M(e),`iterate`,Tt),e}function jt(e,t){return vn(e)?Cn(_n(e)?Sn(t):t):Sn(t)}var Mt={__proto__:null,[Symbol.iterator](){return Nt(this,Symbol.iterator,e=>jt(this,e))},concat(...e){return kt(this).concat(...e.map(e=>p(e)?kt(e):e))},entries(){return Nt(this,`entries`,e=>(e[1]=jt(this,e[1]),e))},every(e,t){return Ft(this,`every`,e,t,void 0,arguments)},filter(e,t){return Ft(this,`filter`,e,t,e=>e.map(e=>jt(this,e)),arguments)},find(e,t){return Ft(this,`find`,e,t,e=>jt(this,e),arguments)},findIndex(e,t){return Ft(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Ft(this,`findLast`,e,t,e=>jt(this,e),arguments)},findLastIndex(e,t){return Ft(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Ft(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Lt(this,`includes`,e)},indexOf(...e){return Lt(this,`indexOf`,e)},join(e){return kt(this).join(e)},lastIndexOf(...e){return Lt(this,`lastIndexOf`,e)},map(e,t){return Ft(this,`map`,e,t,void 0,arguments)},pop(){return Rt(this,`pop`)},push(...e){return Rt(this,`push`,e)},reduce(e,...t){return It(this,`reduce`,e,t)},reduceRight(e,...t){return It(this,`reduceRight`,e,t)},shift(){return Rt(this,`shift`)},some(e,t){return Ft(this,`some`,e,t,void 0,arguments)},splice(...e){return Rt(this,`splice`,e)},toReversed(){return kt(this).toReversed()},toSorted(e){return kt(this).toSorted(e)},toSpliced(...e){return kt(this).toSpliced(...e)},unshift(...e){return Rt(this,`unshift`,e)},values(){return Nt(this,`values`,e=>jt(this,e))}};function Nt(e,t,n){let r=At(e),i=r[t]();return r!==e&&!yn(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Pt=Array.prototype;function Ft(e,t,n,r,i,a){let o=At(e),s=o!==e&&!yn(e),c=o[t];if(c!==Pt[t]){let t=c.apply(e,a);return s?Sn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,jt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function It(e,t,n,r){let i=At(e),a=i!==e&&!yn(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=jt(e,t)),n.call(this,t,jt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?jt(e,c):c}function Lt(e,t,n){let r=M(e);Et(r,`iterate`,Tt);let i=r[t](...n);return(i===-1||i===!1)&&bn(n[0])?(n[0]=M(n[0]),r[t](...n)):i}function Rt(e,t,n=[]){ht(),rt();let r=M(e)[t].apply(e,n);return it(),gt(),r}var zt=n(`__proto__,__v_isRef,__isVue`),Bt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function Vt(e){b(e)||(e=String(e));let t=M(this);return Et(t,`has`,e),t.hasOwnProperty(e)}var Ht=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?un:ln:i?cn:sn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=Mt[t]))return e;if(t===`hasOwnProperty`)return Vt}let o=Reflect.get(e,t,wn(e)?e:n);if((b(t)?Bt.has(t):zt(t))||(r||Et(e,`get`,t),i))return o;if(wn(o)){let e=a&&D(t)?o:o.value;return r&&x(e)?mn(e):e}return x(o)?r?mn(o):fn(o):o}},Ut=class extends Ht{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=p(e)&&D(t);if(!this._isShallow){let r=vn(i);if(!yn(n)&&!vn(n)&&(i=M(i),n=M(n)),!a&&wn(i)&&!wn(n))return r?(We(`Set operation on key "${String(t)}" failed: target is readonly.`,e[t]),!0):(i.value=n,!0)}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,wn(e)?e:r);return e===M(r)&&s&&(o?A(n,i)&&Dt(e,`set`,t,n,i):Dt(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Dt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!b(t)||!Bt.has(t))&&Et(e,`has`,t),n}ownKeys(e){return Et(e,`iterate`,p(e)?`length`:Ct),Reflect.ownKeys(e)}},Wt=class extends Ht{constructor(e=!1){super(!0,e)}set(e,t){return We(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return We(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Gt=new Ut,Kt=new Wt,qt=new Ut(!0),Jt=new Wt(!0),Yt=e=>e,Xt=e=>Reflect.getPrototypeOf(e);function Zt(e,t,n){return function(...r){let i=this.__v_raw,a=M(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?Yt:t?Cn:Sn;return!t&&Et(a,`iterate`,c?wt:Ct),l(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Qt(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:``;We(`${ae(e)} operation ${n}failed: target is readonly.`,M(this))}return e===`delete`?!1:e===`clear`?void 0:this}}function $t(e,t){let n={get(n){let r=this.__v_raw,i=M(r),a=M(n);e||(A(n,a)&&Et(i,`get`,n),Et(i,`get`,a));let{has:o}=Xt(i),s=t?Yt:e?Cn:Sn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&Et(M(t),`iterate`,Ct),t.size},has(t){let n=this.__v_raw,r=M(n),i=M(t);return e||(A(t,i)&&Et(r,`has`,t),Et(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=M(a),s=t?Yt:e?Cn:Sn;return!e&&Et(o,`iterate`,Ct),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Qt(`add`),set:Qt(`set`),delete:Qt(`delete`),clear:Qt(`clear`)}:{add(e){let n=M(this),r=Xt(n),i=M(e),a=!t&&!yn(e)&&!vn(e)?i:e;return r.has.call(n,a)||A(e,a)&&r.has.call(n,e)||A(i,a)&&r.has.call(n,i)||(n.add(a),Dt(n,`add`,a,a)),this},set(e,n){!t&&!yn(n)&&!vn(n)&&(n=M(n));let r=M(this),{has:i,get:a}=Xt(r),o=i.call(r,e);o?on(r,i,e):(e=M(e),o=i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?A(n,s)&&Dt(r,`set`,e,n,s):Dt(r,`add`,e,n),this},delete(e){let t=M(this),{has:n,get:r}=Xt(t),i=n.call(t,e);i?on(t,n,e):(e=M(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Dt(t,`delete`,e,void 0,a),o},clear(){let e=M(this),t=e.size!==0,n=m(e)?new Map(e):new Set(e),r=e.clear();return t&&Dt(e,`clear`,void 0,void 0,n),r}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Zt(r,e,t)}),n}function en(e,t){let n=$t(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(f(n,r)&&r in t?n:t,r,i)}var tn={get:en(!1,!1)},nn={get:en(!1,!0)},rn={get:en(!0,!1)},an={get:en(!0,!0)};function on(e,t,n){let r=M(n);if(r!==n&&t.call(e,r)){let t=T(e);We(`Reactive ${t} contains both the raw and reactive versions of the same object${t===`Map`?` as keys`:``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var sn=new WeakMap,cn=new WeakMap,ln=new WeakMap,un=new WeakMap;function dn(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function fn(e){return vn(e)?e:gn(e,!1,Gt,tn,sn)}function pn(e){return gn(e,!1,qt,nn,cn)}function mn(e){return gn(e,!0,Kt,rn,ln)}function hn(e){return gn(e,!0,Jt,an,un)}function gn(e,t,n,r,i){if(!x(e))return We(`value cannot be made ${t?`readonly`:`reactive`}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=dn(T(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function _n(e){return vn(e)?_n(e.__v_raw):!!(e&&e.__v_isReactive)}function vn(e){return!!(e&&e.__v_isReadonly)}function yn(e){return!!(e&&e.__v_isShallow)}function bn(e){return e?!!e.__v_raw:!1}function M(e){let t=e&&e.__v_raw;return t?M(t):e}function xn(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&ce(e,`__v_skip`,!0),e}var Sn=e=>x(e)?fn(e):e,Cn=e=>x(e)?mn(e):e;function wn(e){return e?e.__v_isRef===!0:!1}function N(e){return En(e,!1)}function Tn(e){return En(e,!0)}function En(e,t){return wn(e)?e:new Dn(e,t)}var Dn=class{constructor(e,t){this.dep=new bt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:M(e),this._value=t?e:Sn(e),this.__v_isShallow=t}get value(){return this.dep.track({target:this,type:`get`,key:`value`}),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||yn(e)||vn(e);e=n?e:M(e),A(e,t)&&(this._rawValue=e,this._value=n?e:Sn(e),this.dep.trigger({target:this,type:`set`,key:`value`,newValue:e,oldValue:t}))}};function On(e){e.dep&&e.dep.trigger({target:e,type:`set`,key:`value`,newValue:e._value})}function P(e){return wn(e)?e.value:e}function kn(e){return v(e)?e():P(e)}var An={get:(e,t,n)=>t===`__v_raw`?e:P(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return wn(i)&&!wn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function jn(e){return _n(e)?e:new Proxy(e,An)}var Mn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new bt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Nn(e){return new Mn(e)}function Pn(e){bn(e)||We(`toRefs() expects a reactive object but received a plain one.`);let t=p(e)?Array(e.length):{};for(let n in e)t[n]=Rn(e,n);return t}var Fn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=M(e);let r=!0,i=e;if(!p(e)||b(this._key)||!D(this._key))do r=!bn(i)||yn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=P(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&wn(this._raw[this._key])){let t=this._object[this._key];if(wn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Ot(this._raw,this._key)}},In=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function Ln(e,t,n){return wn(e)?e:v(e)?new In(e):x(e)&&arguments.length>1?Rn(e,t,n):N(e)}function Rn(e,t,n){return new Fn(e,t,n)}var zn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new bt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Xe!==this)return nt(this,!0),!0}get value(){let e=this.dep.track({target:this,type:`get`,key:`value`});return ct(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter?this.setter(e):We(`Write operation failed: computed value is readonly`)}};function Bn(e,t,n=!1){let r,i;v(e)?r=e:(r=e.get,i=e.set);let a=new zn(r,i,n);return t&&!n&&(a.onTrack=t.onTrack,a.onTrigger=t.onTrigger),a}var Vn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Hn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Un={},Wn=new WeakMap,Gn=void 0;function Kn(){return Gn}function qn(e,t=!1,n=Gn){if(n){let t=Wn.get(n);t||Wn.set(n,t=[]),t.push(e)}else t||We(`onWatcherCleanup() was called when there was no active watcher to associate with.`)}function Jn(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>{(n.onWarn||We)(`Invalid watch source: `,e,`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`)},m=e=>o?e:yn(e)||o===!1||o===0?Yn(e,1):Yn(e),h,g,_,y,b=!1,x=!1;if(wn(e)?(g=()=>e.value,b=yn(e)):_n(e)?(g=()=>m(e),b=!0):p(e)?(x=!0,b=e.some(e=>_n(e)||yn(e)),g=()=>e.map(e=>{if(wn(e))return e.value;if(_n(e))return m(e);if(v(e))return d?d(e,2):e();f(e)})):v(e)?g=t?d?()=>d(e,2):e:()=>{if(_){ht();try{_()}finally{gt()}}let t=Gn;Gn=h;try{return d?d(e,3,[y]):e(y)}finally{Gn=t}}:(g=a,f(e)),t&&o){let e=g,t=o===!0?1/0:o;g=()=>Yn(e(),t)}let S=Je(),C=()=>{h.stop(),S&&S.active&&u(S.effects,h)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return C(),n}}let w=x?Array(e.length).fill(Un):Un,T=e=>{if(!(!(h.flags&1)||!h.dirty&&!e)){if(t){let n=h.run();if(e||o||b||(x?n.some((e,t)=>A(e,w[t])):A(n,w))){_&&_();let e=Gn;Gn=h;try{let e=[n,w===Un?void 0:x&&w[0]===Un?[]:w,y];w=n,d?d(t,3,e):t(...e)}finally{Gn=e}}}else h.run()}};return l&&l(T),h=new Qe(g),h.scheduler=c?()=>c(T,!1):T,y=e=>qn(e,!1,h),_=h.onStop=()=>{let e=Wn.get(h);if(e){if(d)d(e,4);else for(let t of e)t();Wn.delete(h)}},h.onTrack=n.onTrack,h.onTrigger=n.onTrigger,t?i?T(!0):w=h.run():c?c(T.bind(null,!0),!0):h.run(),C.pause=h.pause.bind(h),C.resume=h.resume.bind(h),C.stop=C,C}function Yn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,wn(e))Yn(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)Yn(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{Yn(e,t,n)});else if(E(e)){for(let r in e)Yn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Yn(e[r],t,n)}return e}var Xn=[];function Zn(e){Xn.push(e)}function Qn(){Xn.pop()}var $n=!1;function F(e,...t){if($n)return;$n=!0,ht();let n=Xn.length?Xn[Xn.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=er();if(r)cr(r,n,11,[e+t.map(e=>e.toString?.call(e)??JSON.stringify(e)).join(``),n&&n.proxy,i.map(({vnode:e})=>`at <${Ll(n,e.type)}>`).join(`
|
|
2
|
+
`),i]);else{let n=[`[Vue warn]: ${e}`,...t];i.length&&n.push(`
|
|
3
|
+
`,...tr(i)),console.warn(...n)}gt(),$n=!1}function er(){let e=Xn[Xn.length-1];if(!e)return[];let t=[];for(;e;){let n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});let r=e.component&&e.component.parent;e=r&&r.vnode}return t}function tr(e){let t=[];return e.forEach((e,n)=>{t.push(...n===0?[]:[`
|
|
4
|
+
`],...nr(e))}),t}function nr({vnode:e,recurseCount:t}){let n=t>0?`... (${t} recursive calls)`:``,r=e.component?e.component.parent==null:!1,i=` at <${Ll(e.component,e.type,r)}`,a=`>`+n;return e.props?[i,...rr(e.props),a]:[i+a]}function rr(e){let t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...ir(n,e[n]))}),n.length>3&&t.push(` ...`),t}function ir(e,t,n){return y(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t==`number`||typeof t==`boolean`||t==null?n?t:[`${e}=${t}`]:wn(t)?(t=ir(e,M(t.value),!0),n?t:[`${e}=Ref<`,t,`>`]):v(t)?[`${e}=fn${t.name?`<${t.name}>`:``}`]:(t=M(t),n?t:[`${e}=`,t])}function ar(e,t){e!==void 0&&(typeof e==`number`?isNaN(e)&&F(`${t} is NaN - the duration expression might be incorrect.`):F(`${t} is not a valid number - got ${JSON.stringify(e)}.`))}var or={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},sr={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function cr(e,t,n,r){try{return r?e(...r):e()}catch(e){ur(e,t,n)}}function lr(e,t,n,r){if(v(e)){let i=cr(e,t,n,r);return i&&S(i)&&i.catch(e=>{ur(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(lr(e[a],t,n,r));return i}F(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function ur(e,t,n,i=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||r;if(t){let r=t.parent,i=t.proxy,a=sr[n];for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){ht(),cr(o,null,10,[e,i,a]),gt();return}}dr(e,n,a,i,s)}function dr(e,t,n,r=!0,i=!1){{let i=sr[t];if(n&&Zn(n),F(`Unhandled error${i?` during execution of ${i}`:``}`),n&&Qn(),r)throw e;console.error(e)}}var fr=[],pr=-1,mr=[],hr=null,gr=0,_r=Promise.resolve(),vr=null,yr=100;function br(e){let t=vr||_r;return e?t.then(this?e.bind(this):e):t}function xr(e){let t=pr+1,n=fr.length;for(;t<n;){let r=t+n>>>1,i=fr[r],a=Dr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Sr(e){if(!(e.flags&1)){let t=Dr(e),n=fr[fr.length-1];!n||!(e.flags&2)&&t>=Dr(n)?fr.push(e):fr.splice(xr(t),0,e),e.flags|=1,Cr()}}function Cr(){vr||=_r.then(Or)}function wr(e){if(!p(e))hr&&e.id===-1?hr.splice(gr+1,0,e):e.flags&1||(mr.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)mr.push(e[t]);Cr()}function Tr(e,t,n=pr+1){for(t||=new Map;n<fr.length;n++){let r=fr[n];if(r&&r.flags&2){if(e&&r.id!==e.uid||kr(t,r))continue;fr.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Er(e){if(mr.length){let t=[...new Set(mr)].sort((e,t)=>Dr(e)-Dr(t));if(mr.length=0,hr){for(let e=0;e<t.length;e++)hr.push(t[e]);return}for(hr=t,e||=new Map,gr=0;gr<hr.length;gr++){let t=hr[gr];kr(e,t)||(t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2)}hr=null,gr=0}}var Dr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Or(e){e||=new Map;let t=t=>kr(e,t);try{for(pr=0;pr<fr.length;pr++){let e=fr[pr];if(e&&!(e.flags&8)){if(t(e))continue;e.flags&4&&(e.flags&=-2),cr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2)}}}finally{for(;pr<fr.length;pr++){let e=fr[pr];e&&(e.flags&=-2)}pr=-1,fr.length=0,Er(e),vr=null,(fr.length||mr.length)&&Or(e)}}function kr(e,t){let n=e.get(t)||0;if(n>yr){let e=t.i,n=e&&Il(e.type);return ur(`Maximum recursive updates exceeded${n?` in component <${n}>`:``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}var Ar=!1,jr=e=>{try{return Ar}finally{Ar=e}},Mr=new Map;fe().__VUE_HMR_RUNTIME__={createRecord:Vr(Ir),rerender:Vr(Rr),reload:Vr(zr)};var Nr=new Map;function Pr(e){let t=e.type.__hmrId,n=Nr.get(t);n||=(Ir(t,e.type),Nr.get(t)),n.instances.add(e)}function Fr(e){Nr.get(e.type.__hmrId).instances.delete(e)}function Ir(e,t){return!Nr.has(e)&&(Nr.set(e,{initialDef:Lr(t),instances:new Set}),!0)}function Lr(e){return Rl(e)?e.__vccOpts:e}function Rr(e,t){let n=Nr.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(e=>{t&&(e.render=t,Lr(e.type).render=t),e.renderCache=[],Ar=!0,e.job.flags&8||e.update(),Ar=!1}))}function zr(e,t){let n=Nr.get(e);if(!n)return;t=Lr(t),Br(n.initialDef,t);let r=[...n.instances];for(let e=0;e<r.length;e++){let i=r[e],a=Lr(i.type),o=Mr.get(a);o||(a!==n.initialDef&&Br(a,t),Mr.set(a,o=new Set)),o.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(o.add(i),i.ceReload(t.styles),o.delete(i)):i.parent?Sr(()=>{i.job.flags&8||(Ar=!0,i.parent.update(),Ar=!1,o.delete(i))}):i.appContext.reload?i.appContext.reload():typeof window<`u`?window.location.reload():console.warn(`[HMR] Root or manually mounted instance modified. Full reload required.`),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(a)}wr(()=>{Mr.clear()})}function Br(e,t){l(e,t);for(let n in e)n!==`__file`&&!(n in t)&&delete e[n]}function Vr(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn(`[HMR] Something went wrong during Vue component hot-reload. Full reload required.`)}}}var Hr,Ur=[],Wr=!1;function Gr(e,...t){Hr?Hr.emit(e,...t):Wr||Ur.push({event:e,args:t})}function Kr(e,t){Hr=e,Hr?(Hr.enabled=!0,Ur.forEach(({event:e,args:t})=>Hr.emit(e,...t)),Ur=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Kr(e,t)}),setTimeout(()=>{Hr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Wr=!0,Ur=[])},3e3)):(Wr=!0,Ur=[])}function qr(e,t){Gr(`app:init`,e,t,{Fragment:B,Text:Ic,Comment:Lc,Static:Rc})}function Jr(e){Gr(`app:unmount`,e)}var Yr=$r(`component:added`),Xr=$r(`component:updated`),Zr=$r(`component:removed`),Qr=e=>{Hr&&typeof Hr.cleanupBuffer==`function`&&!Hr.cleanupBuffer(e)&&Zr(e)};function $r(e){return t=>{Gr(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}var ei=ni(`perf:start`),ti=ni(`perf:end`);function ni(e){return(t,n,r)=>{Gr(e,t.appContext.app,t.uid,t,n,r)}}function ri(e,t,n){Gr(`component:emit`,e.appContext.app,e,t,n)}var ii=null,ai=null;function oi(e){let t=ii;return ii=e,ai=e&&e.type.__scopeId||null,t}function si(e){ai=e}function ci(){ai=null}var li=e=>I;function I(e,t=ii,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Uc(-1);let i=oi(t),a=zc.length,o;try{o=e(...n)}finally{for(let e=zc.length;e>a;e--)Vc();oi(i),r._d&&Uc(1)}return Xr(t),o};return r._n=!0,r._c=!0,r._d=!0,r}function ui(e){ee(e)&&F(`Do not use built-in directive ids as custom directive id: `+e)}function di(e,t){if(ii===null)return F(`withDirectives can only be used inside render functions.`),e;let n=Nl(ii),i=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&Yn(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function fi(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(ht(),lr(c,n,8,[e.el,s,e,t]),gt())}}function pi(e,t){if((!fl||fl.isMounted)&&F(`provide() can only be used inside setup().`),fl){let n=fl.provides,r=fl.parent&&fl.parent.provides;r===n&&(n=fl.provides=Object.create(r)),n[e]=t}}function mi(e,t,n=!1){let r=pl();if(r||ds){let i=ds?ds._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(r&&r.proxy):t;F(`injection "${String(e)}" not found.`)}else F(`inject() can only be used inside setup() or functional components.`)}function hi(){return!!(pl()||ds)}var gi=Symbol.for(`v-scx`),_i=()=>{{let e=mi(gi);return e||F(`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`),e}};function vi(e,t){return xi(e,null,t)}function yi(e,t){return xi(e,null,l({},t,{flush:`post`}))}function bi(e,t){return xi(e,null,l({},t,{flush:`sync`}))}function L(e,t,n){return v(t)||F("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),xi(e,t,n)}function xi(e,t,n=r){let{immediate:i,deep:o,flush:s,once:c}=n;t||(i!==void 0&&F(`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`),o!==void 0&&F(`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`),c!==void 0&&F(`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`));let u=l({},n);u.onWarn=F;let d=t&&i||!t&&s!==`post`,f;if(xl){if(s===`sync`){let e=_i();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=fl;u.call=(e,t,n)=>lr(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{uc(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Sr(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Jn(e,t,u);return xl&&(f?f.push(h):d&&h()),h}function Si(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Ci(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=gl(this),s=xi(i,a.bind(r),n);return o(),s}function Ci(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var wi=new WeakMap,Ti=Symbol(`_vte`),Ei=e=>e.__isTeleport,Di=e=>e&&(e.disabled||e.disabled===``),Oi=e=>e&&(e.defer||e.defer===``),ki=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Ai=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,ji=(e,t)=>{let n=e&&e.to;if(y(n)){if(t){let r=t(n);return!r&&!Di(e)&&F(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}return F(`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`),null}return!n&&!Di(e)&&F(`Invalid Teleport target: ${n}`),n},Mi={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Di(t.props),{dynamicChildren:y}=t;Ar&&(c=!1,y=null);let b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Di(e.props),r=e.target=ji(e.props,m),a=Li(r,e,h,p);r?(o!==`svg`&&ki(r)?o=`svg`:o!==`mathml`&&Ai(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Ii(e,!1))):n||F(`Invalid Teleport target on mount:`,r,`(${typeof r})`)},S=e=>{let t=()=>{if(wi.get(e)===t){if(wi.delete(e),Di(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Ii(e,!0)}x(e)}};wi.set(e,t),uc(t,a)};if(e==null){let e=t.el=g(`teleport start`),i=t.anchor=g(`teleport end`);if(p(e,n,r),p(i,n,r),Oi(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Ii(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=wi.get(e);if(u){u.flags|=8,wi.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Di(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||ki(p)?o=`svg`:(o===`mathml`||Ai(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),_c(e,t,!1)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ni(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=ji(t.props,m);e?(t.target=e,Ni(t,e,null,l,0)):F(`Invalid Teleport target on update:`,p,`(${typeof p})`)}else g&&Ni(t,p,h,l,1);Ii(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Di(f),m=a||!p,h=wi.get(e);if(h&&(h.flags|=8,wi.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:Ni,hydrate:Pi};function Ni(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!wi.has(e)&&(!d||Di(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Pi(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=ji(t.props,c),h=Di(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||Li(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||Li(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),Ii(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Fi=Mi;function Ii(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function Li(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Ti]=o,e&&(r(a,e,i),r(o,e,i)),o}var Ri=Symbol(`_leaveCb`),zi=Symbol(`_enterCb`);function Bi(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return $a(()=>{e.isMounted=!0}),no(()=>{e.isUnmounting=!0}),e}var Vi=[Function,Array],Hi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vi,onEnter:Vi,onAfterEnter:Vi,onEnterCancelled:Vi,onBeforeLeave:Vi,onLeave:Vi,onAfterLeave:Vi,onLeaveCancelled:Vi,onBeforeAppear:Vi,onAppear:Vi,onAfterAppear:Vi,onAppearCancelled:Vi},Ui=e=>{let t=e.subTree;return t.component?Ui(t.component):t},Wi={name:`BaseTransition`,props:Hi,setup(e,{slots:t}){let n=pl(),r=Bi();return()=>{let i=t.default&&Qi(t.default(),!0),a=i&&i.length?Gi(i):n.subTree?K():void 0;if(!a)return;let o=M(e),{mode:s}=o;if(s&&s!==`in-out`&&s!==`out-in`&&s!=="default"&&F(`invalid <transition> mode: ${s}`),r.isLeaving)return Yi(a);let c=Xi(a);if(!c)return Yi(a);let l=Ji(c,o,r,n,e=>l=e);c.type!==Lc&&Zi(c,l);let u=n.subTree&&Xi(n.subTree);if(u&&u.type!==Lc&&!Kc(u,c)&&Ui(n).type!==Lc){let e=Ji(u,o,r,n);if(Zi(u,e),s===`out-in`&&c.type!==Lc)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Yi(a);s===`in-out`&&c.type!==Lc?e.delayLeave=(e,t,n)=>{let i=qi(r,u);i[String(u.key)]=u,e[Ri]=()=>{t(),e[Ri]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Gi(e){let t=e[0];if(e.length>1){let n=!1;for(let r of e)if(r.type!==Lc){if(n){F(`<transition> can only be used on a single element or component. Use <transition-group> for lists.`);break}t=r,n=!0}}return t}var Ki=Wi;function qi(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ji(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=qi(n,e),C=(e,t)=>{e&&lr(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),p(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Ri]&&t[Ri](!0);let i=S[x];i&&Kc(e,i)&&i.el[Ri]&&i.el[Ri](),C(r,[t])},enter(t){if(!Ar&&S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||d;else return}let s=!1;t[zi]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[zi]=void 0)};let c=t[zi].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[zi]&&t[zi](!0),n.isUnmounting)return r();C(f,[t]);let a=!1;t[Ri]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Ri]=void 0,S[i]===e&&delete S[i])};let o=t[Ri].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Ji(e,t,n,r,i);return i&&i(a),a}};return T}function Yi(e){if(Va(e))return e=tl(e),e.children=null,e}function Xi(e){if(!Va(e))return Ei(e.type)&&e.children?Gi(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&v(n.default))return n.default()}}function Zi(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Zi(Ei(n.type)&&Xi(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Qi(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===B?(o.patchFlag&128&&i++,r=r.concat(Qi(o.children,t,s))):(t||o.type!==Lc)&&r.push(s==null?o:tl(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function R(e,t){return v(e)?l({name:e.name},t,{setup:e}):e}function $i(){let e=pl();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:(F(`useId() is called when there is no active component instance to be associated with.`),``)}function ea(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}var ta=new WeakSet;function na(e){let t=pl(),n=Tn(null);if(t){let i=t.refs===r?t.refs={}:t.refs;ra(i,e)?F(`useTemplateRef('${e}') already exists.`):Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}else F(`useTemplateRef() is called when there is no active component instance to be associated with.`);let i=mn(n);return ta.add(i),i}function ra(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var ia=new WeakMap;function aa(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>aa(e,t&&(p(t)?t[r]:t),n,i,a));return}if(Ra(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&aa(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?Nl(i.component):i.el,c=a?null:s,{i:l,r:d}=e;if(!l){F(`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`);return}let m=t&&t.r,h=l.refs===r?l.refs={}:l.refs,g=l.setupState,_=M(g),b=g===r?o:e=>(f(_,e)&&!wn(_[e])&&F(`Template ref "${e}" used on a non-ref value. It will not work in the production build.`),ta.has(_[e])||ra(h,e)?!1:f(_,e)),x=(e,t)=>!(ta.has(e)||t&&ra(h,t));if(m!=null&&m!==d){if(oa(t),y(m))h[m]=null,b(m)&&(g[m]=null);else if(wn(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(v(d))cr(d,l,12,[c,h]);else{let t=y(d),r=wn(d);if(t||r){let i=()=>{if(e.f){let n=t?b(d)?g[d]:h[d]:x(d)||!e.k?d.value:h[e.k];if(a)p(n)&&u(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)h[d]=[s],b(d)&&(g[d]=h[d]);else{let t=[s];x(d,e.k)&&(d.value=t),e.k&&(h[e.k]=t)}}else t?(h[d]=c,b(d)&&(g[d]=c)):r?(x(d,e.k)&&(d.value=c),e.k&&(h[e.k]=c)):F(`Invalid template ref type:`,d,`(${typeof d})`)};if(c){let t=()=>{i(),ia.delete(e)};t.id=-1,ia.set(e,t),uc(t,n)}else oa(e),i()}else F(`Invalid template ref type:`,d,`(${typeof d})`)}}function oa(e){let t=ia.get(e);t&&(t.flags|=8,ia.delete(e))}var sa=!1,ca=()=>{sa||=(console.error(`Hydration completed but contains mismatches.`),!0)},la=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,ua=e=>e.namespaceURI.includes(`MathML`),da=e=>{if(e.nodeType===1){if(la(e))return`svg`;if(ua(e))return`mathml`}},fa=e=>e.nodeType===8;function pa(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){F(`Attempting to hydrate existing markup but container is empty. Performing full mount instead.`),n(null,e,t),Er(),t._vnode=e;return}f(t.firstChild,e,null,null,null),Er(),t._vnode=e},f=(n,r,s,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=fa(n)&&n.data===`[`,x=()=>g(n,r,s,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,ce(n,`__vnode`,r,!0),ce(n,`__vueParentComponent`,s,!0),T===-2&&(d=!1,r.dynamicChildren=null);let D=null;switch(S){case Ic:E===3?(n.data!==r.children&&(F(`Hydration text mismatch in`,n.parentNode,`
|
|
5
|
+
- rendered on server: ${JSON.stringify(n.data)}
|
|
6
|
+
- expected on client: ${JSON.stringify(r.children)}`),ca(),n.data=r.children),D=a(n)):r.children===``?(l(r.el=i(``),o(n),n),D=n):D=x();break;case Lc:y(n)?(D=a(n),v(r.el=n.content.firstChild,n,s)):D=E!==8||b?x():a(n);break;case Rc:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=D.nodeType===1?D.outerHTML:D.data),t===r.staticCount-1&&(r.anchor=D),D=a(D);return b?a(D):D}x();break;case B:D=b?h(n,r,s,c,u,d):x();break;default:if(w&1)D=(E!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():p(n,r,s,c,u,d);else if(w&6){r.slotScopeIds=u;let e=o(n);if(D=b?_(n):fa(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,c,da(e),d),Ra(r)&&!r.type.__asyncResolved){let t;b?(t=G(B),t.anchor=D?D.previousSibling:e.lastChild):t=n.nodeType===3?rl(``):G(`div`),t.el=n,r.component.subTree=t}}else w&64?D=E===8?r.type.hydrate(n,r,s,c,u,d,e,m):x():w&128?D=r.type.hydrate(n,r,s,c,da(o(n)),u,d,e,f):F(`Invalid HostVNode type:`,S,`(${typeof S})`)}return C!=null&&aa(C,null,c,r),D},p=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:l,dynamicProps:u,props:d,patchFlag:f,shapeFlag:p,dirs:h,transition:g}=t,_=l===`input`||l===`option`;{h&&fi(t,null,n,`created`);let l=!1;if(y(e)){l=gc(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let r=m(e.firstChild,t,e,n,i,a,o);for(r&&!Ta(e,1)&&(F(`Hydration children mismatch on`,e,`
|
|
7
|
+
Server rendered element contains more child nodes than client vdom.`),ca());r;){let e=r;r=r.nextSibling,c(e)}}else if(p&8){let n=t.children;n[0]===`
|
|
8
|
+
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
|
|
9
|
+
`)&&(Ta(e,0)||(F(`Hydration text content mismatch on`,e,`
|
|
10
|
+
- rendered on server: ${r}
|
|
11
|
+
- expected on client: ${n}`),ca()),e.textContent=t.children)}if(d){let i=e.tagName.includes(`-`),a=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let o in d)if(!(h&&h.some(e=>e.dir.created))&&ga(e,o,d[o],t,n)&&ca(),_&&(o.endsWith(`value`)||o===`indeterminate`)||s(o)&&!O(o)||o[0]===`.`||i&&!O(o)||u&&u.includes(o)){if(ha(e,o,d[o]))continue;r(e,o,null,d[o],a,n)}}let f;(f=d&&d.onVnodeBeforeMount)&&cl(f,n,t),h&&fi(t,null,n,`beforeMount`),((f=d&&d.onVnodeMounted)||h||l)&&Nc(()=>{f&&cl(f,n,t),l&&g.enter(e),h&&fi(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t<p;t++){let h=u?d[t]:d[t]=al(d[t]),g=h.type===Ic;e?(g&&!u&&t+1<p&&al(d[t+1]).type===Ic&&(l(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=f(e,h,o,s,c,u)):g&&!h.children?l(h.el=i(``),r):(m||(m=!0,Ta(r,1)||(F(`Hydration children mismatch on`,r,`
|
|
12
|
+
Server rendered element contains fewer child nodes than client vdom.`),ca())),n(null,h,r,null,o,s,da(r),c))}return e},h=(e,t,n,r,i,s)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&fa(f)&&f.data===`]`?a(t.anchor=f):(ca(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(Da(e,t)||(F(`Hydration node mismatch:
|
|
13
|
+
- rendered on server:`,e,e.nodeType===3?`(text)`:fa(e)&&e.data===`[`?`(start of fragment)`:``,`
|
|
14
|
+
- expected on client:`,t.type),ca()),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,da(d),s),r&&(r.vnode.el=t.el,ks(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&fa(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var ma=new Set([`src`,`srcset`,`href`,`poster`]);function ha(e,t,n){return ma.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}function ga(e,t,n,r,i){let a,o,s,c;if(t===`class`)e.$cls?(s=e.$cls,delete e.$cls):s=e.getAttribute(`class`),c=be(n),ya(va(s||``),va(c))||(a=2,o=`class`);else if(t===`style`){s=e.getAttribute(`style`)||``,c=y(n)?n:ye(me(n));let t=ba(s),l=ba(c);if(r.dirs)for(let{dir:e,value:t}of r.dirs)e.name===`show`&&!t&&l.set(`display`,`none`);i&&Sa(i,r,l),xa(t,l)||(a=3,o=`style`)}else(e instanceof SVGElement&&Ne(t)||e instanceof HTMLElement&&(Ae(t)||Me(t)))&&(t===`hidden`?(s=_a(e.getAttribute(t)),c=_a(n)):Ae(t)?(s=e.hasAttribute(t),c=je(n)):n==null?(s=e.hasAttribute(t),c=!1):(s=e.hasAttribute(t)?e.getAttribute(t):t===`value`&&e.tagName===`TEXTAREA`&&e.value,c=Pe(n)?String(n):!1),s!==c&&(a=4,o=t));if(a!=null&&!Ta(e,a)){let t=e=>e===!1?`(not rendered)`:`${o}="${e}"`;return F(`Hydration ${wa[a]} mismatch on`,e,`
|
|
15
|
+
- rendered on server: ${t(s)}
|
|
16
|
+
- expected on client: ${t(c)}
|
|
17
|
+
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
|
|
18
|
+
You should fix the source of the mismatch.`),!0}return!1}function _a(e){return Pe(e)?y(e)?e.toLowerCase()===`until-found`?`until-found`:``:je(e)?``:!1:!1}function va(e){return new Set(e.trim().split(/\s+/))}function ya(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function ba(e){let t=new Map;for(let n of e.split(`;`)){let[e,r]=n.split(`:`);e=e.trim(),r&&=r.trim(),e&&r&&t.set(e,r)}return t}function xa(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e)if(r!==t.get(n))return!1;return!0}function Sa(e,t,n){let r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===B&&r.children.includes(t))){let t=e.getCssVars();for(let e in t){let r=Ue(t[e]);n.set(`--${Ie(e,!1)}`,r)}}t===r&&e.parent&&Sa(e.parent,e.vnode,n)}var Ca=`data-allow-mismatch`,wa={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ta(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ca);)e=e.parentElement;return Ea(e&&e.getAttribute(Ca),t)}function Ea(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(wa[t])}}function Da(e,t){return Ta(e.parentElement,1)||Oa(e)||ka(t)}function Oa(e){return e.nodeType===1&&Ea(e.getAttribute(Ca),1)}function ka({props:e}){let t=e&&e[Ca];return typeof t==`string`&&Ea(t,1)}var Aa=fe().requestIdleCallback||(e=>setTimeout(e,1)),ja=fe().cancelIdleCallback||(e=>clearTimeout(e)),Ma=(e=1e4)=>t=>{let n=Aa(t,{timeout:e});return()=>ja(n)};function Na(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var Pa=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Na(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Fa=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Ia=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function La(e,t){if(fa(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(fa(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Ra=e=>!!e.type.__asyncLoader;function za(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>{if(e!==l&&l)return l;if(t||F(`Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`),t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),t&&!x(t)&&!v(t))throw Error(`Invalid async component load result: ${t}`);return u=t,t}))};return R({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{if(i){F(`Skipping lazy hydration for component '${Il(u)||u.__file}': it was updated before lazy hydration performed.`);return}!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>La(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=fl;if(ea(e),u)return()=>Ba(u,e);let t=t=>{l=null,ur(t,e,13,!r)};if(s&&e.suspense||xl)return p().then(t=>()=>Ba(t,e)).catch(e=>(t(e),()=>r?G(r,{error:e}):null));let a=N(!1),c=N(),d=N(!!i),f,m;return ro(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Va(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Ba(u,e);if(c.value&&r)return G(r,{error:c.value});if(n&&!d.value)return Ba(n,e)}}})}function Ba(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=G(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Va=e=>e.type.__isKeepAlive,Ha={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=pl(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null;n.__v_cache=i;let s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),uc(()=>{a.isDeactivated=!1,a.a&&se(a.a);let t=e.props&&e.props.onVnodeMounted;t&&cl(t,a.parent,e)},s),Yr(a)},r.deactivate=e=>{let t=e.component;bc(t.m),bc(t.a),l(e,f,null,1,s),uc(()=>{t.da&&se(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&cl(n,t.parent,e),t.isDeactivated=!0},s),Yr(t),t.__keepAliveStorageContainer=f};function p(e){Ja(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Il(Ra(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Kc(t,o))?p(t):o&&Ja(o),i.delete(e),a.delete(e)}L(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ua(e,t)),t&&m(e=>!Ua(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Sc(n.subTree.type)?uc(()=>{i.set(g,Ya(n.subTree))},n.subTree.suspense):i.set(g,Ya(n.subTree)))};return $a(_),to(_),no(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Ya(t);if(e.type===i.type&&e.key===i.key){Ja(i);let e=i.component.da;e&&uc(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return F(`KeepAlive should contain exactly one component child.`),o=null,n;if(!Gc(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Ya(r);if(s.type===Lc)return o=null,s;let c=s.type,l=Il(Ra(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ua(u,l))||d&&l&&Ua(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=tl(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Zi(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Sc(r.type)?r:s}}};function Ua(e,t){return p(e)?e.some(e=>Ua(e,t)):y(e)?e.split(`,`).includes(t):_(e)?(e.lastIndex=0,e.test(t)):!1}function Wa(e,t){Ka(e,`a`,t)}function Ga(e,t){Ka(e,`da`,t)}function Ka(e,t,n=fl){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Xa(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Va(e.parent.vnode)&&qa(r,t,n,e),e=e.parent}}function qa(e,t,n,r){let i=Xa(t,e,r,!0);ro(()=>{u(r[t],i)},n)}function Ja(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ya(e){return e.shapeFlag&128?e.ssContent:e}function Xa(e,t,n=fl,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ht();let i=gl(n),a=lr(t,n,e,r);return i(),gt(),a};return r?i.unshift(a):i.push(a),a}F(`${oe(sr[e].replace(/ hook$/,``))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}var Za=e=>(t,n=fl)=>{(!xl||e===`sp`)&&Xa(e,(...e)=>t(...e),n)},Qa=Za(`bm`),$a=Za(`m`),eo=Za(`bu`),to=Za(`u`),no=Za(`bum`),ro=Za(`um`),io=Za(`sp`),ao=Za(`rtg`),oo=Za(`rtc`);function so(e,t=fl){Xa(`ec`,e,t)}var co=`components`,lo=`directives`;function uo(e,t){return ho(co,e,!0,t)||e}var fo=Symbol.for(`v-ndc`);function po(e){return y(e)?ho(co,e,!1)||e:e||fo}function mo(e){return ho(lo,e)}function ho(e,t,n=!0,r=!1){let i=ii||fl;if(i){let a=i.type;if(e===co){let e=Il(a,!1);if(e&&(e===t||e===k(t)||e===ae(k(t))))return a}let o=go(i[e]||a[e],t)||go(i.appContext[e],t);if(!o&&r)return a;if(n&&!o){let n=e===co?`
|
|
19
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:``;F(`Failed to resolve ${e.slice(0,-1)}: ${t}${n}`)}return o}F(`resolve${ae(e.slice(0,-1))} can only be used in render() or setup().`)}function go(e,t){return e&&(e[t]||e[k(t)]||e[ae(k(t))])}function _o(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&_n(e),r=!1,s=!1;n&&(r=!yn(e),s=vn(e),e=At(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Cn(Sn(e[n])):Sn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){if(!Number.isInteger(e)||e<0)F(`The v-for range expects a positive integer value but got ${e}.`),i=[];else{i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}}else if(x(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function vo(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(p(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function z(e,t,n,r,i,a){if(n??={},ii.ce||ii.parent&&Ra(ii.parent)&&ii.parent.ce){let e=a!=null&&n.key==null?l({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),V(),U(B,null,[G(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o.length>1&&(F(`SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`),o=()=>[]),o&&o._c&&(o._d=!1);let s=zc.length;V();let c;try{let i=o&&yo(o(n)),s=n.key||a||i&&i.key;c=U(B,{key:(s&&!b(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=zc.length;e>s;e--)Vc();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function yo(e){return e.some(e=>!Gc(e)||!(e.type===Lc||e.type===B&&!yo(e.children)))?e:null}function bo(e,t){let n={};if(!x(e))return F(`v-on with no argument expects an object value.`),n;for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:oe(r)]=e[r];return n}var xo=e=>e?bl(e)?Nl(e):xo(e.parent):null,So=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>hn(e.props),$attrs:e=>hn(e.attrs),$slots:e=>hn(e.slots),$refs:e=>hn(e.refs),$parent:e=>xo(e.parent),$root:e=>xo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Qo(e),$forceUpdate:e=>e.f||=()=>{Sr(e.update)},$nextTick:e=>e.n||=br.bind(e.proxy),$watch:e=>Si.bind(e)}),Co=e=>e===`_`||e===`$`,wo=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),To={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t===`__isVue`)return!0;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(wo(i,t))return s[t]=1,i[t];else if(a!==r&&f(a,t))return s[t]=2,a[t];else if(f(o,t))return s[t]=3,o[t];else if(n!==r&&f(n,t))return s[t]=4,n[t];else qo&&(s[t]=0)}let u=So[t],d,p;if(u)return t===`$attrs`?(Et(e.attrs,`get`,``),ys()):t===`$slots`&&Et(e,`get`,t),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==r&&f(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,f(p,t))return p[t];ii&&(!y(t)||t.indexOf(`__v`)!==0)&&(a!==r&&Co(t[0])&&f(a,t)?F(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===ii&&F(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){let{data:i,setupState:a,ctx:o}=e;return wo(a,t)?(a[t]=n,!0):a.__isScriptSetup&&f(a,t)?(F(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):i!==r&&f(i,t)?(i[t]=n,!0):f(e.props,t)?(F(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]===`$`&&t.slice(1)in e?(F(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:n}):o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==r&&c[0]!==`$`&&f(e,c)||wo(t,c)||f(o,c)||f(i,c)||f(So,c)||f(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?f(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};To.ownKeys=e=>(F(`Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`),Reflect.ownKeys(e));var Eo=l({},To,{get(e,t){if(t!==Symbol.unscopables)return To.get(e,t,e)},has(e,t){let n=t[0]!==`_`&&!pe(t);return!n&&To.has(e,t)&&F(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});function Do(e){let t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(So).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>So[n](e),set:a})}),t}function Oo(e){let{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:a})})}function ko(e){let{ctx:t,setupState:n}=e;Object.keys(M(n)).forEach(e=>{if(!n.__isScriptSetup){if(Co(e[0])){F(`setup() return property ${JSON.stringify(e)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>n[e],set:a})}})}var Ao=e=>F(`${e}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);function jo(){return Ao(`defineProps`),null}function Mo(){return Ao(`defineEmits`),null}function No(e){Ao(`defineExpose`)}function Po(e){Ao(`defineOptions`)}function Fo(){return Ao(`defineSlots`),null}function Io(){Ao(`defineModel`)}function Lo(e,t){return Ao(`withDefaults`),null}function Ro(){return Bo(`useSlots`).slots}function zo(){return Bo(`useAttrs`).attrs}function Bo(e){let t=pl();return t||F(`${e}() called without active instance.`),t.setupContext||=Ml(t)}function Vo(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ho(e,t){let n=Vo(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?p(r)||v(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null?r=n[e]={default:t[e]}:F(`props default key "${e}" has no corresponding declaration.`),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Uo(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},Vo(e),Vo(t))}function Wo(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Go(e){let t=pl(),n=xl;t||F(`withAsyncContext called without active current instance. This is likely a bug.`);let r=e();_l(),n&&hl(!1);let i=()=>{gl(t),n&&hl(!0)},a=()=>{pl()!==t&&t.scope.off(),_l(),n&&hl(!1)};return S(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}function Ko(){let e=Object.create(null);return(t,n)=>{e[n]?F(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}var qo=!0;function Jo(e){let t=Qo(e),n=e.proxy,r=e.ctx;qo=!1,t.beforeCreate&&Xo(t.beforeCreate,e,`bc`);let{data:i,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:m,beforeUpdate:h,updated:g,activated:_,deactivated:y,beforeDestroy:b,beforeUnmount:C,destroyed:w,unmounted:T,render:E,renderTracked:D,renderTriggered:O,errorCaptured:ee,serverPrefetch:te,expose:ne,inheritAttrs:k,components:re,directives:ie,filters:ae}=t,oe=Ko();{let[t]=e.propsOptions;if(t)for(let e in t)oe(`Props`,e)}if(u&&Yo(u,r,oe),s)for(let e in s){let t=s[e];v(t)?(Object.defineProperty(r,e,{value:t.bind(n),configurable:!0,enumerable:!0,writable:!0}),oe(`Methods`,e)):F(`Method "${e}" has type "${typeof t}" in the component definition. Did you reference the function correctly?`)}if(i){v(i)||F(`The data option must be a function. Plain object usage is no longer supported.`);let t=i.call(n,n);if(S(t)&&F(`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`),!x(t))F(`data() should return an object.`);else{e.data=fn(t);for(let e in t)oe(`Data`,e),Co(e[0])||Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:()=>t[e],set:a})}}if(qo=!0,o)for(let e in o){let t=o[e],i=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):a;i===a&&F(`Computed property "${e}" has no getter.`);let s=J({get:i,set:!v(t)&&v(t.set)?t.set.bind(n):()=>{F(`Write operation failed: computed property "${e}" is readonly.`)}});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}),oe(`Computed`,e)}if(c)for(let e in c)Zo(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{pi(t,e[t])})}d&&Xo(d,e,`c`);function A(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(A(Qa,f),A($a,m),A(eo,h),A(to,g),A(Wa,_),A(Ga,y),A(so,ee),A(oo,D),A(ao,O),A(no,C),A(ro,T),A(io,te),p(ne)){if(ne.length){let t=e.exposed||={};ne.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}E&&e.render===a&&(e.render=E),k!=null&&(e.inheritAttrs=k),re&&(e.components=re),ie&&(e.directives=ie),te&&ea(e)}function Yo(e,t,n=a){p(e)&&(e=rs(e));for(let r in e){let i=e[r],a;a=x(i)?`default`in i?mi(i.from||r,i.default,!0):mi(i.from||r):mi(i),wn(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[r]=a,n(`Inject`,r)}}function Xo(e,t,n){lr(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zo(e,t,n,r){let i=r.includes(`.`)?Ci(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)?L(i,n):F(`Invalid watch handler specified by key "${e}"`,n)}else if(v(e))L(i,e.bind(n));else if(x(e)){if(p(e))e.forEach(e=>Zo(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)?L(i,r,e):F(`Invalid watch handler specified by key "${e.handler}"`,r)}}else F(`Invalid watch option: "${r}"`,e)}function Qo(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>$o(c,e,o,!0)),$o(c,t,o)),x(t)&&a.set(t,c),c}function $o(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&$o(e,a,n,!0),i&&i.forEach(t=>$o(e,t,n,!0));for(let i in t)if(r&&i===`expose`)F(`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`);else{let r=es[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var es={data:ts,props:os,emits:os,methods:as,computed:as,beforeCreate:is,created:is,beforeMount:is,mounted:is,beforeUpdate:is,updated:is,beforeDestroy:is,beforeUnmount:is,destroyed:is,unmounted:is,activated:is,deactivated:is,errorCaptured:is,serverPrefetch:is,components:as,directives:as,watch:ss,provide:ts,inject:ns};function ts(e,t){return t?e?function(){return l(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function ns(e,t){return as(rs(e),rs(t))}function rs(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function is(e,t){return e?[...new Set([].concat(e,t))]:t}function as(e,t){return e?l(Object.create(null),e,t):t}function os(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Vo(e),Vo(t??{})):t}function ss(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=is(e[r],t[r]);return n}function cs(){return{app:null,config:{isNativeTag:o,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}}var ls=0;function us(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(F(`root props passed to app.mount() must be an object.`),r=null);let i=cs(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:ls++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ul,get config(){return i.config},set config(e){F(`app.config cannot be replaced. Modify individual options instead.`)},use(e,...t){return a.has(e)?F(`Plugin has already been applied to target app.`):e&&v(e.install)?(a.add(e),e.install(c,...t)):v(e)?(a.add(e),e(c,...t)):F(`A plugin must either be a function or an object with an "install" function.`),c},mixin(e){return i.mixins.includes(e)?F(`Mixin has already been applied to target app`+(e.name?`: ${e.name}`:``)):i.mixins.push(e),c},component(e,t){return yl(e,i.config),t?(i.components[e]&&F(`Component "${e}" has already been registered in target app.`),i.components[e]=t,c):i.components[e]},directive(e,t){return ui(e),t?(i.directives[e]&&F(`Directive "${e}" has already been registered in target app.`),i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(s)F("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{a.__vue_app__&&F("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");let u=c._ceVNode||G(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),i.reload=()=>{let t=tl(u);t.el=null,e(t,a,l)},o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,c._instance=u.component,qr(c,Ul),Nl(u.component)}},onUnmount(e){typeof e!=`function`&&F(`Expected function as first argument to app.onUnmount(), but got ${typeof e}`),o.push(e)},unmount(){s?(lr(o,c._instance,16),e(null,c._container),c._instance=null,Jr(c),delete c._container.__vue_app__):F(`Cannot unmount an app that is not mounted.`)},provide(e,t){return e in i.provides&&(f(i.provides,e)?F(`App already provides property with key "${String(e)}". It will be overwritten with the new value.`):F(`App already provides property with key "${String(e)}" inherited from its parent element. It will be overwritten with the new value.`)),i.provides[e]=t,c},runWithContext(e){let t=ds;ds=c;try{return e()}finally{ds=t}}};return c}}var ds=null;function fs(e,t,n=r){let i=pl();if(!i)return F(`useModel() called without active instance.`),N();let a=k(t);if(!i.propsOptions[0][a])return F(`useModel() called with prop "${t}" which is not declared.`),N();let o=ie(t),s=ps(e,a),c=Nn((s,c)=>{let l,u=r,d;return bi(()=>{let t=e[a];A(l,t)&&(l=t,c())}),{get(){return s(),n.get?n.get(l):l},set(e){let s=n.set?n.set(e):e;if(!A(s,l)&&!(u!==r&&A(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),A(e,u)&&(A(e,s)&&!A(s,d)||p&&u!==r&&!A(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||r:c,done:!1}:{done:!0}}}},c}var ps=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${k(t)}Modifiers`]||e[`${ie(t)}Modifiers`];function ms(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r;{let{emitsOptions:r,propsOptions:[i]}=e;if(r){if(!(t in r))(!i||!(oe(k(t))in i))&&F(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${oe(k(t))}" prop.`);else{let e=r[t];v(e)&&(e(...n)||F(`Invalid event arguments: event validation failed for event "${t}".`))}}}let a=n,o=t.startsWith(`update:`),s=o&&ps(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=n.map(le))),ri(e,t,a);{let n=t.toLowerCase();n!==t&&i[oe(n)]&&F(`Event "${n}" is emitted in component ${Ll(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${ie(t)}" instead of "${t}".`)}let c,l=i[c=oe(t)]||i[c=oe(k(t))];!l&&o&&(l=i[c=oe(ie(t))]),l&&lr(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,lr(u,e,6,a)}}var hs=new WeakMap;function gs(e,t,n=!1){let r=n?hs:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!v(e)){let r=e=>{let n=gs(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(x(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),x(e)&&r.set(e,o),o)}function _s(e,t){return!e||!s(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),f(e,t[0].toLowerCase()+t.slice(1))||f(e,ie(t))||f(e,t))}var vs=!1;function ys(){vs=!0}function bs(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:l,emit:u,render:d,renderCache:f,props:p,data:m,setupState:h,ctx:g,inheritAttrs:_}=e,v=oi(e),y,b;vs=!1;try{if(n.shapeFlag&4){let e=i||r,t=h.__isScriptSetup?new Proxy(e,{get(e,t,n){return F(`Property '${String(t)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(e,t,n)}}):e;y=al(d.call(t,e,f,hn(p),h,m,g)),b=l}else{let e=t;l===p&&ys(),y=al(e.length>1?e(hn(p),{get attrs(){return ys(),hn(l)},slots:o,emit:u}):e(hn(p),null)),b=t.props?l:Cs(l)}}catch(t){zc.length=0,ur(t,e,1),y=G(Lc)}let x=y,S;if(y.patchFlag>0&&y.patchFlag&2048&&([x,S]=xs(y)),b&&_!==!1){let e=Object.keys(b),{shapeFlag:t}=x;if(e.length){if(t&7)a&&e.some(c)&&(b=ws(b,a)),x=tl(x,b,!1,!0);else if(!vs&&x.type!==Lc){let e=Object.keys(l),t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r];s(i)?c(i)||t.push(i[2].toLowerCase()+i.slice(3)):n.push(i)}n.length&&F(`Extraneous non-props attributes (${n.join(`, `)}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),t.length&&F(`Extraneous non-emits event listeners (${t.join(`, `)}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}if(n.dirs&&(Ts(x)||F(`Runtime directive used on component with non-element root node. The directives will not function as intended.`),x=tl(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition){let e=Ei(x.type)&&Xi(x)||x;Ts(e)||F(`Component inside <Transition> renders non-element root node that cannot be animated.`),Zi(e,n.transition)}return S?S(x):y=x,oi(v),y}var xs=e=>{let t=e.children,n=e.dynamicChildren,r=Ss(t,!1);if(!r)return[e,void 0];if(r.patchFlag>0&&r.patchFlag&2048)return xs(r);let i=t.indexOf(r),a=n?n.indexOf(r):-1;return[al(r),r=>{t[i]=r,n&&(a>-1?n[a]=r:r.patchFlag>0&&(e.dynamicChildren=[...n,r]))}]};function Ss(e,t=!0){let n;for(let r=0;r<e.length;r++){let i=e[r];if(Gc(i)){if(i.type!==Lc||i.children===`v-if`){if(n)return;if(n=i,t&&n.patchFlag>0&&n.patchFlag&2048)return Ss(n.children)}}else return}return n}var Cs=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},ws=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Ts=e=>e.shapeFlag&7||e.type===Lc;function Es(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if((i||s)&&Ar||t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Ds(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Os(o,r,n)&&!_s(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Ds(r,o,l):!!o;return!1}function Ds(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Os(t,e,a)&&!_s(n,a))return!0}return!1}function Os(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!Re(r,i):r!==i}function ks({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var As={},js=()=>Object.create(As),Ms=e=>Object.getPrototypeOf(e)===As;function Ns(e,t,n,r=!1){let i={},a=js();e.propsDefaults=Object.create(null),Is(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);Hs(t||{},i,e),e.props=n?r?i:pn(i):e.type.props?i:a,e.attrs=a}function Ps(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Fs(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=M(i),[c]=e.propsOptions,l=!1;if(!Ps(e)&&(r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(_s(e.emitsOptions,o))continue;let u=t[o];if(c){if(f(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=k(o);i[t]=Ls(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Is(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!f(t,a)&&((r=ie(a))===a||!f(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Ls(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!f(t,e))&&(delete a[e],l=!0)}l&&Dt(e.attrs,`set`,``),Hs(t||{},i,e)}function Is(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(O(r))continue;let l=t[r],u;a&&f(a,u=k(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:_s(e.emitsOptions,r)||(!(r in i)||l!==i[r])&&(i[r]=l,s=!0)}if(o){let t=M(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=Ls(a,t,s,i[s],e,!f(i,s))}}return s}function Ls(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=f(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=gl(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===ie(n))&&(r=!0))}return r}var Rs=new WeakMap;function zs(e,t,n=!1){let a=n?Rs:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!v(e)){let r=e=>{d=!0;let[n,r]=zs(e,t,!0);l(c,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return x(e)&&a.set(e,i),i;if(p(s))for(let e=0;e<s.length;e++){y(s[e])||F(`props must be strings when using array syntax.`,s[e]);let t=k(s[e]);Bs(t)&&(c[t]=r)}else if(s){x(s)||F(`invalid props options`,s);for(let e in s){let t=k(e);if(Bs(t)){let n=s[e],r=c[t]=p(n)||v(n)?{type:n}:l({},n),i=r.type,a=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){let t=i[e],n=v(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=v(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}}let m=[c,u];return x(e)&&a.set(e,m),m}function Bs(e){return e[0]!==`$`&&!O(e)||(F(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Vs(e){return e===null?`null`:typeof e==`function`?e.name||``:typeof e==`object`&&e.constructor&&e.constructor.name||``}function Hs(e,t,n){let r=M(t),i=n.propsOptions[0],a=Object.keys(e).map(e=>k(e));for(let e in i){let t=i[e];t!=null&&Us(e,r[e],t,hn(r),!a.includes(e))}}function Us(e,t,n,r,i){let{type:a,required:o,validator:s,skipCheck:c}=n;if(o&&i){F(`Missing required prop: "`+e+`"`);return}if(!(t==null&&!o)){if(a!=null&&a!==!0&&!c){let n=!1,r=p(a)?a:[a],i=[];for(let e=0;e<r.length&&!n;e++){let{valid:a,expectedType:o}=Gs(t,r[e]);i.push(o||``),n=a}if(!n){F(Ks(e,t,i));return}}s&&!s(t,r)&&F(`Invalid prop: custom validator check failed for prop "`+e+`".`)}}var Ws=n(`String,Number,Boolean,Function,Symbol,BigInt`);function Gs(e,t){let n,r=Vs(t);if(r===`null`)n=e===null;else if(Ws(r)){let i=typeof e;n=i===r.toLowerCase(),!n&&i===`object`&&(n=e instanceof t)}else n=r===`Object`?x(e):r===`Array`?p(e):e instanceof t;return{valid:n,expectedType:r}}function Ks(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(ae).join(` | `)}`,i=n[0],a=T(t),o=qs(t,i),s=qs(t,a);return n.length===1&&Js(i)&&Ys(i,a)&&(r+=` with value ${o}`),r+=`, got ${a} `,Js(a)&&(r+=`with value ${s}.`),r}function qs(e,t){return b(e)?e.toString():t===`String`?`"${e}"`:t===`Number`?`${Number(e)}`:`${e}`}function Js(e){return[`string`,`number`,`boolean`].some(t=>e.toLowerCase()===t)}function Ys(...e){return e.every(e=>{let t=e.toLowerCase();return t!==`boolean`&&t!==`symbol`})}var Xs=e=>e===`_`||e===`_ctx`||e===`$stable`,Zs=e=>p(e)?e.map(al):[al(e)],Qs=(e,t,n)=>{if(t._n)return t;let r=I((...r)=>(fl&&!(n===null&&ii)&&!(n&&n.root!==fl.root)&&F(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Zs(t(...r))),n);return r._c=!1,r},$s=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Xs(n))continue;let i=e[n];if(v(i))t[n]=Qs(n,i,r);else if(i!=null){F(`Non-function value encountered for slot "${n}". Prefer function slots for better performance.`);let e=Zs(i);t[n]=()=>e}}},ec=(e,t)=>{Va(e.vnode)||F(`Non-function value encountered for default slot. Prefer function slots for better performance.`);let n=Zs(t);e.slots.default=()=>n},tc=(e,t,n)=>{for(let r in t)(n||!Xs(r))&&(e[r]=t[r])},nc=(e,t,n)=>{let r=e.slots=js();if(e.vnode.shapeFlag&32){let e=t._;e?(tc(r,t,n),n&&ce(r,`_`,e,!0)):$s(t,r)}else t&&ec(e,t)},rc=(e,t,n)=>{let{vnode:i,slots:a}=e,o=!0,s=r;if(i.shapeFlag&32){let r=t._;r?Ar?(tc(a,t,n),Dt(e,`set`,`$slots`)):n&&r===1?o=!1:tc(a,t,n):(o=!t.$stable,$s(t,a)),s=t}else t&&(ec(e,t),s={default:1});if(o)for(let e in a)!Xs(e)&&s[e]==null&&delete a[e]},ic,ac;function oc(e,t){e.appContext.config.performance&&cc()&&ac.mark(`vue-${t}-${e.uid}`),ei(e,t,cc()?ac.now():Date.now())}function sc(e,t){if(e.appContext.config.performance&&cc()){let n=`vue-${t}-${e.uid}`,r=n+`:end`,i=`<${Ll(e,e.type)}> ${t}`;ac.mark(r),ac.measure(i,n,r),ac.clearMeasures(i),ac.clearMarks(n),ac.clearMarks(r)}ti(e,t,cc()?ac.now():Date.now())}function cc(){return ic===void 0&&(typeof window<`u`&&window.performance?(ic=!0,ac=window.performance):ic=!1),ic}function lc(){let e=[];if(e.length){let t=e.length>1;console.warn(`Feature flag${t?`s`:``} ${e.join(`, `)} ${t?`are`:`is`} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
20
|
+
|
|
21
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}var uc=Nc;function dc(e){return pc(e)}function fc(e){return pc(e,pa)}function pc(e,t){lc();let n=fe();n.__VUE__=!0,Kr(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!Ar&&!!t.dynamicChildren)=>{if(e===t)return;e&&!Kc(e,t)&&(r=be(e),he(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Ic:y(e,t,n,r);break;case Lc:b(e,t,n,r);break;case Rc:e==null?x(t,n,r,o):S(e,t,n,o);break;case B:re(e,t,n,r,i,a,o,s,c);break;default:d&1?T(e,t,n,r,i,a,o,s,c):d&6?ie(e,t,n,r,i,a,o,s,c):d&64||d&128?l.process(e,t,n,r,i,a,o,s,c,Ce):F(`Invalid VNode type:`,l,`(${typeof l})`)}u!=null&&i?aa(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&aa(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=(e,t,n,r)=>{if(t.children!==e.children){let i=h(e.anchor);w(e),[t.el,t.anchor]=_(t.children,n,i,r)}else t.el=e.el,t.anchor=e.anchor},C=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},w=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},T=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)E(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},E=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ee(e.children,d,null,r,i,mc(e,a),s,u),_&&fi(e,null,r,`created`),D(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!O(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&cl(f,r,e)}ce(d,`__vnode`,e,!0),ce(d,`__vueParentComponent`,r,!0),_&&fi(e,null,r,`beforeMount`);let v=gc(i,g);if(v&&g.beforeEnter(d),o(d,t,n),(f=m&&m.onVnodeMounted)||v||_){let t=Ar;uc(()=>{let n;n=jr(t);try{f&&cl(f,r,e),v&&g.enter(d),_&&fi(e,null,r,`mounted`)}finally{jr(n)}},i)}},D=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(n.patchFlag>0&&n.patchFlag&2048&&(n=Ss(n.children)||n),t===n||Sc(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;D(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ee=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?ol(e[l]):al(e[l]);v(null,c,t,n,r,i,a,o,s)}},te=(e,t,n,i,a,o,s)=>{let l=t.el=e.el;l.__vnode=t;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||r,h=t.props||r,g;if(n&&hc(n,!1),(g=h.onVnodeBeforeUpdate)&&cl(g,n,t,e),f&&fi(t,e,n,`beforeUpdate`),n&&hc(n,!0),(Ar||d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length))&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?(ne(e.dynamicChildren,d,l,n,i,mc(t,a),o),_c(e,t)):s||ue(e,t,l,null,n,i,mc(t,a),o,!1),u>0){if(u&16)k(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&k(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&uc(()=>{g&&cl(g,n,t,e),f&&fi(t,e,n,`updated`)},i)},ne=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===B||!Kc(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},k=(e,t,n,i,a)=>{if(t!==n){if(t!==r)for(let r in t)!O(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(O(r))continue;let o=n[r],s=t[r];o!==s&&r!==`value`&&c(e,r,s,o,a,i)}`value`in n&&c(e,`value`,t.value,n.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;(Ar||p&2048)&&(p=0,l=!1,m=null),h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ee(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ne(e.dynamicChildren,m,n,i,a,s,c),_c(e,t)):ue(e,t,n,f,i,a,s,c,l)},ie=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ae(t,n,r,i,a,o,c):oe(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=dl(e,r,i);if(s.type.__hmrId&&Pr(s),Zn(e),oc(s,`mount`),Va(e)&&(s.ctx.renderer=Ce),oc(s,`init`),Sl(s,!1,o),sc(s,`init`),Ar&&(e.el=null),s.asyncDep){if(i&&i.registerDep(s,A,o),!e.el){let r=s.subTree=G(Lc);b(null,r,t,n),e.placeholder=r.el}}else A(s,e,t,n,i,a,o);Qn(),sc(s,`mount`)},oe=(e,t,n)=>{let r=t.component=e.component;if(Es(e,t,n)){if(r.asyncDep&&!r.asyncResolved){Zn(t),le(r,t,n),Qn();return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},A=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=yc(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{uc(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Zn(t||e.vnode),hc(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&se(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&cl(d,s,t,c),hc(e,!0),oc(e,`render`);let f=bs(e);sc(e,`render`);let p=e.subTree;e.subTree=f,oc(e,`patch`),v(p,f,m(p.el),be(p),e,i,a),sc(e,`patch`),t.el=f.el,u===null&&ks(e,f.el),r&&uc(r,i),(d=t.props&&t.props.onVnodeUpdated)&&uc(()=>cl(d,s,t,c),i),Xr(e),Qn()}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Ra(t);if(hc(e,!1),l&&se(l),!m&&(o=c&&c.onVnodeBeforeMount)&&cl(o,d,t),hc(e,!0),s&&Te){let t=()=>{oc(e,`render`),e.subTree=bs(e),sc(e,`render`),oc(e,`hydrate`),Te(s,e.subTree,e,i,null),sc(e,`hydrate`)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0),oc(e,`render`);let o=e.subTree=bs(e);sc(e,`render`),oc(e,`patch`),v(null,o,n,r,e,i,a),sc(e,`patch`),t.el=o.el}if(u&&uc(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;uc(()=>cl(o,d,e),i)}(t.shapeFlag&256||d&&Ra(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&uc(e.a,i),e.isMounted=!0,Yr(e),t=n=r=null}};e.scope.on();let c=e.effect=new Qe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Sr(u),hc(e,!0),c.onTrack=e.rtc?t=>se(e.rtc,t):void 0,c.onTrigger=e.rtg?t=>se(e.rtg,t):void 0,l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Fs(e,t.props,r,n),rc(e,t.children,n),ht(),Tr(e),gt()},ue=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){pe(l,d,n,r,i,a,o,s,c);return}if(f&256){de(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ye(l,i,a),d!==l&&p(n,d)):u&16?m&16?pe(l,d,n,r,i,a,o,s,c):ye(l,i,a,!0):(u&8&&p(n,``),m&16&&ee(d,n,r,i,a,o,s,c))},de=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let r=t[p]=l?ol(t[p]):al(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?ye(e,a,o,!0,!1,f):ee(t,n,r,a,o,s,c,l,f)},pe=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?ol(t[u]):al(t[u]);if(Kc(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?ol(t[p]):al(t[p]);if(Kc(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,i=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?ol(t[u]):al(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)he(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?ol(t[u]):al(t[u]);e.key!=null&&(g.has(e.key)&&F(`Duplicate keys found during update:`,JSON.stringify(e.key),`Make sure keys are unique.`),g.set(e.key,u))}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){he(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Kc(r,t[_])){i=_;break}i===void 0?he(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?vc(C):i;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,i=t[e],f=t[e+1],p=e+1<d?f.el||xc(f):r;C[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?me(i,n,p,2):_--)}}},me=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){me(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,Ce);return}if(c===B){o(a,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Rc){C(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Ri]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),uc(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Ri];a._isLeaving&&a[Ri](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},he=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(ht(),aa(s,null,n,e,!0),gt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Ra(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&cl(_,t,e),u&6)ve(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&fi(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Ce,r):l&&!l.hasOnce&&(a!==B||d>0&&d&64)?ye(l,t,n,!1,!0):(a===B&&d&384||!i&&u&16)&&ye(c,t,n),r&&ge(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&uc(()=>{_&&cl(_,t,e),h&&fi(e,null,t,`unmounted`),v&&(e.el=null)},n)},ge=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===B){e.patchFlag>0&&e.patchFlag&2048&&i&&!i.persisted?e.children.forEach(e=>{e.type===Lc?s(e.el):ge(e)}):_e(n,r);return}if(t===Rc){w(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},_e=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ve=(e,t,n)=>{e.type.__hmrId&&Fr(e);let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;bc(c),bc(l),r&&se(r),i.stop(),a&&(a.flags|=8,he(o,e,t,n)),s&&uc(s,t),uc(()=>{e.isUnmounted=!0},t),Qr(e)},ye=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)he(e[o],t,n,r,i)},be=e=>{if(e.shapeFlag&6)return be(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Ti];return n?h(n):t},xe=!1,Se=(e,t,n)=>{let r;e==null?t._vnode&&(he(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,xe||=(xe=!0,Tr(r),Er(),!1)},Ce={p:v,um:he,m:me,r:ge,mt:ae,mc:ee,pc:ue,pbc:ne,n:be,o:e},we,Te;return t&&([we,Te]=t(Ce)),{render:Se,hydrate:we,createApp:us(Se,we)}}function mc({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function hc({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _c(e,t,n=!1){let r=e.children,i=t.children;if(p(r)&&p(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=ol(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&_c(t,a)),a.type===Ic&&(a.patchFlag===-1&&(a=i[e]=ol(a)),a.el=t.el),a.type===Lc&&!a.el&&(a.el=t.el),a.el&&(a.el.__vnode=a)}}function vc(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function yc(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:yc(t)}function bc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function xc(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?xc(t.subTree):null}var Sc=e=>e.__isSuspense,Cc=0,wc={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Ec(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Dc(e,t,n,r,i,o,s,c,l)}},hydrate:Ac,normalize:jc};function Tc(e,t){let n=e.props&&e.props[t];v(n)&&n()}function Ec(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=kc(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Tc(e,`onPending`),Tc(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),Pc(f,e.ssFallback)):f.resolve(!1,!0)}function Dc(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Kc(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),Pc(d,p)))):(d.pendingId=Cc++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),Pc(d,p))):m&&Kc(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Kc(m,f))c(m,f,n,r,i,d,a,o,s),Pc(d,f);else if(Tc(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:Cc++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}var Oc=!1;function kc(e,t,n,r,i,a,o,s,c,l,u=!1){Oc||(Oc=!0,console[console.info?`info`:`log`](`<Suspense> is an experimental feature and its API will likely change.`));let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Fc(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?ue(e.props.timeout):void 0;ar(y,`Suspense timeout`);let b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Cc++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){if(!e&&!x.pendingBranch)throw Error(`suspense.resolve() is called without a pending branch.`);if(x.isUnmounted)throw Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),wr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&uc(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,Pc(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e<c.length;e++)y.effects.push(c[e]);S=!0;break}y=y.parent}!S&&!g&&wr(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Tc(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Tc(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),Pc(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{ur(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;_l(),e.asyncResolved=!0;let{vnode:s}=e;Zn(s),wl(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),ks(e,s.el),Qn(),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Ac(e,t,n,r,i,a,o,s,c){let l=t.suspense=kc(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function jc(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Mc(r?n.default:n),e.ssFallback=r?Mc(n.fallback):G(Lc)}function Mc(e){let t;if(v(e)){let n=Hc&&e._c;n&&(e._d=!1,V()),e=e(),n&&(e._d=!0,t=Bc,Vc())}if(p(e)){let t=Ss(e);!t&&e.filter(e=>e!==fo).length>0&&F(`<Suspense> slots expect a single root node.`),e=t}return e=al(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Nc(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):wr(e)}function Pc(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,ks(r,i))}function Fc(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var B=Symbol.for(`v-fgt`),Ic=Symbol.for(`v-txt`),Lc=Symbol.for(`v-cmt`),Rc=Symbol.for(`v-stc`),zc=[],Bc=null;function V(e=!1){zc.push(Bc=e?null:[])}function Vc(){zc.pop(),Bc=zc[zc.length-1]||null}var Hc=1;function Uc(e,t=!1){Hc+=e,e<0&&Bc&&t&&(Bc.hasOnce=!0)}function Wc(e){return e.dynamicChildren=Hc>0?Bc||i:null,Vc(),Hc>0&&Bc&&Bc.push(e),e}function H(e,t,n,r,i,a){return Wc(W(e,t,n,r,i,a,!0))}function U(e,t,n,r,i){return Wc(G(e,t,n,r,i,!0))}function Gc(e){return e?e.__v_isVNode===!0:!1}function Kc(e,t){if(t.shapeFlag&6&&e.component){let n=Mr.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}var qc;function Jc(e){qc=e}var Yc=(...e)=>$c(...qc?qc(e,ii):e),Xc=({key:e})=>e??null,Zc=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||wn(e)||v(e)?{i:ii,r:e,k:t,f:!!n}:e);function W(e,t=null,n=null,r=0,i=null,a=e===B?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xc(t),ref:t&&Zc(t),scopeId:ai,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ii};if(s?(sl(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),c.key!==c.key&&F(`VNode created with invalid key (NaN). VNode type:`,c.type),t&&c.shapeFlag&1){let e=t.innerHTML==null?t.textContent==null?null:`textContent`:`innerHTML`;e&&Qc(c.children)&&F(`The \`${e}\` prop on <${c.type}> will override its children. Remove either the \`${e}\` prop or the children.`)}return Hc>0&&!o&&Bc&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Bc.push(c),c}function Qc(e){return y(e)?e!==``:p(e)?e.length>0:!1}var G=Yc;function $c(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===fo)&&(e||F(`Invalid vnode type when creating vnode: ${e}.`),e=Lc),Gc(e)){let r=tl(e,t,!0);return n&&sl(r,n),Hc>0&&!a&&Bc&&(r.shapeFlag&6?Bc[Bc.indexOf(e)]=r:Bc.push(r)),r.patchFlag=-2,r}if(Rl(e)&&(e=e.__vccOpts),t){t=el(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=be(e)),x(n)&&(bn(n)&&!p(n)&&(n=l({},n)),t.style=me(n))}let o=y(e)?1:Sc(e)?128:Ei(e)?64:x(e)?4:v(e)?2:0;return o&4&&bn(e)&&(e=M(e),F("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
22
|
+
Component that was made reactive: `,e)),W(e,t,n,r,i,o,a,!0)}function el(e){return e?bn(e)||Ms(e)?l({},e):e:null}function tl(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?q(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Xc(l),ref:t&&t.ref?n&&a?p(a)?a.concat(Zc(t)):[a,Zc(t)]:Zc(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o===-1&&p(s)?s.map(nl):s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==B?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tl(e.ssContent),ssFallback:e.ssFallback&&tl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Zi(u,c.clone(u)),u}function nl(e){let t=tl(e);return p(e.children)&&(t.children=e.children.map(nl)),t}function rl(e=` `,t=0){return G(Ic,null,e,t)}function il(e,t){let n=G(Rc,null,e);return n.staticCount=t,n}function K(e=``,t=!1){return t?(V(),U(Lc,null,e)):G(Lc,null,e)}function al(e){return e==null||typeof e==`boolean`?G(Lc):p(e)?G(B,null,e.slice()):Gc(e)?ol(e):G(Ic,null,String(e))}function ol(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tl(e)}function sl(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(p(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),sl(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Ms(t)?t._ctx=ii:r===3&&ii&&(ii.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){sl(e,{default:t});return}t={default:t,_ctx:ii},n=32}else t=String(t),r&64?(n=16,t=[rl(t)]):n=8;e.children=t,e.shapeFlag|=n}function q(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=be([t.class,r.class]));else if(e===`style`)t.style=me([t.style,r.style]);else if(s(e)){let n=t[e],i=r[e];i&&n!==i&&!(p(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!c(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function cl(e,t,n,r=null){lr(e,t,7,[n,r])}var ll=cs(),ul=0;function dl(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||ll,o={uid:ul++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ke(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zs(i,a),emitsOptions:gs(i,a),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx=Do(o),o.root=t?t.root:o,o.emit=ms.bind(null,o),e.ce&&e.ce(o),o}var fl=null,pl=()=>fl||ii,ml,hl;{let e=fe(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ml=t(`__VUE_INSTANCE_SETTERS__`,e=>fl=e),hl=t(`__VUE_SSR_SETTERS__`,e=>xl=e)}var gl=e=>{let t=fl;return ml(e),e.scope.on(),()=>{e.scope.off(),ml(t)}},_l=()=>{fl&&fl.scope.off(),ml(null)},vl=n(`slot,component`);function yl(e,{isNativeTag:t}){(vl(e)||t(e))&&F(`Do not use built-in or reserved HTML elements as component id: `+e)}function bl(e){return e.vnode.shapeFlag&4}var xl=!1;function Sl(e,t=!1,n=!1){t&&hl(t);let{props:r,children:i}=e.vnode,a=bl(e);Ns(e,r,a,t),nc(e,i,n||t);let o=a?Cl(e,t):void 0;return t&&hl(!1),o}function Cl(e,t){let n=e.type;if(n.name&&yl(n.name,e.appContext.config),n.components){let t=Object.keys(n.components);for(let n=0;n<t.length;n++)yl(t[n],e.appContext.config)}if(n.directives){let e=Object.keys(n.directives);for(let t=0;t<e.length;t++)ui(e[t])}n.compilerOptions&&Ol()&&F(`"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.`),e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,To),Oo(e);let{setup:r}=n;if(r){ht();let i=e.setupContext=r.length>1?Ml(e):null,a=gl(e),o=cr(r,e,0,[hn(e.props),i]),s=S(o);if(gt(),a(),(s||e.sp)&&!Ra(e)&&ea(e),s){if(o.then(_l,_l),t)return o.then(n=>{hl(!0);try{wl(e,n,t)}finally{hl(!1)}}).catch(t=>{ur(t,e,0)});e.asyncDep=o,e.suspense||F(`Component <${Ll(e,n)}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}else wl(e,o,t)}else kl(e,t)}function wl(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)?(Gc(t)&&F(`setup() should not return VNodes directly - return a render function instead.`),e.devtoolsRawSetupState=t,e.setupState=jn(t),ko(e)):t!==void 0&&F(`setup() should return an object. Received: ${t===null?`null`:typeof t}`),kl(e,n)}var Tl,El;function Dl(e){Tl=e,El=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Eo))}}var Ol=()=>!Tl;function kl(e,t,n){let r=e.type;if(!e.render){if(!t&&Tl&&!r.render){let t=r.template||Qo(e).template;if(t){oc(e,`compile`);let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=l(l({isCustomElement:n,delimiters:a},i),o);r.render=Tl(t,s),sc(e,`compile`)}}e.render=r.render||a,El&&El(e)}{let t=gl(e);ht();try{Jo(e)}finally{gt(),t()}}!r.render&&e.render===a&&!t&&(!Tl&&r.template?F(`Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`):F(`Component is missing template or render function: `,r))}var Al={get(e,t){return ys(),Et(e,`get`,``),e[t]},set(){return F(`setupContext.attrs is readonly.`),!1},deleteProperty(){return F(`setupContext.attrs is readonly.`),!1}};function jl(e){return new Proxy(e.slots,{get(t,n){return Et(e,`get`,`$slots`),t[n]}})}function Ml(e){let t=t=>{if(e.exposed&&F(`expose() should be called only once per setup().`),t!=null){let e=typeof t;e===`object`&&(p(t)?e=`array`:wn(t)&&(e=`ref`)),e!==`object`&&F(`expose() should be passed a plain object, received ${e}.`)}e.exposed=t||{}};{let n,r;return Object.freeze({get attrs(){return n||=new Proxy(e.attrs,Al)},get slots(){return r||=jl(e)},get emit(){return(t,...n)=>e.emit(t,...n)},expose:t})}}function Nl(e){return e.exposed?e.exposeProxy||=new Proxy(jn(xn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in So)return So[n](e)},has(e,t){return t in e||t in So}}):e.proxy}var Pl=/(?:^|[-_])\w/g,Fl=e=>e.replace(Pl,e=>e.toUpperCase()).replace(/[-_]/g,``);function Il(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function Ll(e,t,n=!1){let r=Il(t);if(!r&&t.__file){let e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e){let n=e=>{for(let n in e)if(e[n]===t)return n};r=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return r?Fl(r):n?`App`:`Anonymous`}function Rl(e){return v(e)&&`__vccOpts`in e}var J=(e,t)=>{let n=Bn(e,t,xl);{let e=pl();e&&e.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function zl(e,t,n){try{Uc(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?Gc(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Gc(n)&&(n=[n]),G(e,t,n))}finally{Uc(1)}}function Bl(){if(typeof window>`u`)return;let e={style:`color:#3ba776`},t={style:`color:#1677ff`},n={style:`color:#f5222d`},i={style:`color:#eb2f96`},a={__vue_custom_formatter:!0,header(t){if(!x(t))return null;if(t.__isVue)return[`div`,e,`VueInstance`];if(wn(t)){ht();let n=t.value;return gt(),[`div`,{},[`span`,e,f(t)],`<`,c(n),`>`]}return _n(t)?[`div`,{},[`span`,e,yn(t)?`ShallowReactive`:`Reactive`],`<`,c(t),`>${vn(t)?` (readonly)`:``}`]:vn(t)?[`div`,{},[`span`,e,yn(t)?`ShallowReadonly`:`Readonly`],`<`,c(t),`>`]:null},hasBody(e){return e&&e.__isVue},body(e){if(e&&e.__isVue)return[`div`,{},...o(e.$)]}};function o(e){let t=[];e.type.props&&e.props&&t.push(s(`props`,M(e.props))),e.setupState!==r&&t.push(s(`setup`,e.setupState)),e.data!==r&&t.push(s(`data`,M(e.data)));let n=u(e,`computed`);n&&t.push(s(`computed`,n));let a=u(e,`inject`);return a&&t.push(s(`injected`,a)),t.push([`div`,{},[`span`,{style:i.style+`;opacity:0.66`},`$ (internal): `],[`object`,{object:e}]]),t}function s(e,t){return t=l({},t),Object.keys(t).length?[`div`,{style:`line-height:1.25em;margin-bottom:0.6em`},[`div`,{style:`color:#476582`},e],[`div`,{style:`padding-left:1.25em`},...Object.keys(t).map(e=>[`div`,{},[`span`,i,e+`: `],c(t[e],!1)])]]:[`span`,{}]}function c(e,r=!0){return typeof e==`number`?[`span`,t,e]:typeof e==`string`?[`span`,n,JSON.stringify(e)]:typeof e==`boolean`?[`span`,i,e]:x(e)?[`object`,{object:r?M(e):e}]:[`span`,n,String(e)]}function u(e,t){let n=e.type;if(v(n))return;let r={};for(let i in e.ctx)d(n,i,t)&&(r[i]=e.ctx[i]);return r}function d(e,t,n){let r=e[n];if(p(r)&&r.includes(t)||x(r)&&t in r||e.extends&&d(e.extends,t,n)||e.mixins&&e.mixins.some(e=>d(e,t,n)))return!0}function f(e){return yn(e)?`ShallowRef`:e.effect?`ComputedRef`:`Ref`}window.devtoolsFormatters?window.devtoolsFormatters.push(a):window.devtoolsFormatters=[a]}function Vl(e,t,n,r){let i=n[r];if(i&&Hl(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Hl(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(A(n[e],t[e]))return!1;return Hc>0&&Bc&&Bc.push(e),!0}var Ul=`3.5.41`,Wl=F,Gl=sr,Kl=Hr,ql=Kr,Jl={createComponentInstance:dl,setupComponent:Sl,renderComponentRoot:bs,setCurrentRenderingInstance:oi,isVNode:Gc,normalizeVNode:al,getComponentPublicInstance:Nl,ensureValidVNode:yo,pushWarningContext:Zn,popWarningContext:Qn},Yl=void 0,Xl=typeof window<`u`&&window.trustedTypes;if(Xl)try{Yl=Xl.createPolicy(`vue`,{createHTML:e=>e})}catch(e){Wl(`Error creating trusted types policy: ${e}`)}var Zl=Yl?e=>Yl.createHTML(e):e=>e,Ql=`http://www.w3.org/2000/svg`,$l=`http://www.w3.org/1998/Math/MathML`,eu=typeof document<`u`?document:null,tu=eu&&eu.createElement(`template`),nu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?eu.createElementNS(Ql,e):t===`mathml`?eu.createElementNS($l,e):n?eu.createElement(e,{is:n}):eu.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>eu.createTextNode(e),createComment:e=>eu.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>eu.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{tu.innerHTML=Zl(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=tu.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ru=`transition`,iu=`animation`,au=Symbol(`_vtc`),ou={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},su=l({},Hi,ou),cu=(e=>(e.displayName=`Transition`,e.props=su,e))((e,{slots:t})=>zl(Ki,du(e),t)),lu=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},uu=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function du(e){let t={};for(let n in e)n in ou||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=fu(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,hu(e,t?d:s),hu(e,t?u:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,hu(e,f),hu(e,m),hu(e,p),t&&t()},O=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);lu(i,[t,o]),gu(()=>{hu(t,e?c:a),mu(t,e?d:s),uu(i)||vu(t,r,g,o)})};return l(t,{onBeforeEnter(e){lu(v,[e]),mu(e,a),mu(e,o)},onBeforeAppear(e){lu(C,[e]),mu(e,c),mu(e,u)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);mu(e,f),e._enterCancelled?(mu(e,p),Su(e)):(Su(e),mu(e,p)),gu(()=>{e._isLeaving&&(hu(e,f),mu(e,m),uu(x)||vu(e,r,_,n))}),lu(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),lu(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),lu(T,[e])},onLeaveCancelled(e){D(e),lu(S,[e])}})}function fu(e){if(e==null)return null;if(x(e))return[pu(e.enter),pu(e.leave)];{let t=pu(e);return[t,t]}}function pu(e){let t=ue(e);return ar(t,`<transition> explicit duration`),t}function mu(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[au]||(e[au]=new Set)).add(t)}function hu(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[au];n&&(n.delete(t),n.size||(e[au]=void 0))}function gu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var _u=0;function vu(e,t,n,r){let i=e._endId=++_u,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=yu(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function yu(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${ru}Delay`),a=r(`${ru}Duration`),o=bu(i,a),s=r(`${iu}Delay`),c=r(`${iu}Duration`),l=bu(s,c),u=null,d=0,f=0;t===ru?o>0&&(u=ru,d=o,f=a.length):t===iu?l>0&&(u=iu,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?ru:iu:null,f=u?u===ru?a.length:c.length:0);let p=u===ru&&/\b(?:transform|all)(?:,|$)/.test(r(`${ru}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function bu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>xu(t)+xu(e[n])))}function xu(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Su(e){return(e?e.ownerDocument:document).body.offsetHeight}function Cu(e,t,n){let r=e[au];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var wu=Symbol(`_vod`),Tu=Symbol(`_vsh`),Eu={name:`show`,beforeMount(e,{value:t},{transition:n}){e[wu]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Du(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Du(e,!0),r.enter(e)):r.leave(e,()=>{Du(e,!1)}):Du(e,t))},beforeUnmount(e,{value:t}){Du(e,t)}};function Du(e,t){e.style.display=t?e[wu]:`none`,e[Tu]=!t}function Ou(){Eu.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var ku=Symbol(`CSS_VAR_TEXT`);function Au(e){let t=pl();if(!t){Wl(`useCssVars is called without current active component instance.`);return}let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Mu(e,n))};t.getCssVars=()=>e(t.proxy);let r=()=>{let r=e(t.proxy);t.ce?Mu(t.ce,r):ju(t.subTree,r),n(r)};eo(()=>{wr(r)}),$a(()=>{L(r,a,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ro(()=>e.disconnect())})}function ju(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ju(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Mu(e.el,t);else if(e.type===B)e.children.forEach(e=>ju(e,t));else if(e.type===Rc){let{el:n,anchor:r}=e;for(;n&&(Mu(n,t),n!==r);)n=n.nextSibling}}function Mu(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Ue(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[ku]=r}}var Nu=/(?:^|;)\s*display\s*:/;function Pu(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t){if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Lu(r,t,``)}else for(let e in t)n[e]??Lu(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Lu(r,i,``):Vu(e,i,!y(t)&&t?t[i]:void 0,o)||Lu(r,i,o)}}else if(i){if(t!==n){let e=r[ku];e&&(n+=`;`+e),r.cssText=n,a=Nu.test(n)}}else t&&e.removeAttribute(`style`);wu in e&&(e[wu]=a?r.display:``,e[Tu]&&(r.display=`none`))}var Fu=/[^\\];\s*$/,Iu=/\s*!important$/;function Lu(e,t,n){if(p(n))n.forEach(n=>Lu(e,t,n));else if(n??=``,Fu.test(n)&&Wl(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith(`--`))e.setProperty(t,n);else{let r=Bu(e,t);Iu.test(n)?e.setProperty(ie(r),n.replace(Iu,``),`important`):e[r]=n}}var Ru=[`Webkit`,`Moz`,`ms`],zu={};function Bu(e,t){let n=zu[t];if(n)return n;let r=k(t);if(r!==`filter`&&r in e)return zu[t]=r;r=ae(r);for(let n=0;n<Ru.length;n++){let i=Ru[n]+r;if(i in e)return zu[t]=i}return t}function Vu(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var Hu=`http://www.w3.org/1999/xlink`;function Uu(e,t,n,r,i,a=ke(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Hu,t.slice(6,t.length)):e.setAttributeNS(Hu,t,n):n==null||a&&!je(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function Wu(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Zl(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=je(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch(e){o||Wl(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${n} is invalid.`,e)}o&&e.removeAttribute(i||t)}function Gu(e,t,n,r){e.addEventListener(t,n,r)}function Ku(e,t,n,r){e.removeEventListener(t,n,r)}var qu=Symbol(`_vei`);function Ju(e,t,n,r,i=null){let a=e[qu]||(e[qu]={}),o=a[t];if(r&&o)o.value=nd(r,t);else{let[n,s]=Zu(t);r?Gu(e,n,a[t]=td(nd(r,t),i),s):o&&(Ku(e,n,o,s),a[t]=void 0)}}var Yu=/(Once|Passive|Capture)$/,Xu=/^on:?(?:Once|Passive|Capture)$/;function Zu(e){let t,n;for(;(n=e.match(Yu))&&!Xu.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):ie(e.slice(2)),t]}var Qu=0,$u=Promise.resolve(),ed=()=>Qu||=($u.then(()=>Qu=0),Date.now());function td(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(p(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&lr(e,t,5,a)}}else lr(r,t,5,[e])};return n.value=e,n.attached=ed(),n}function nd(e,t){return v(e)||p(e)?e:(Wl(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
23
|
+
Expected function or array of functions, received type ${typeof e}.`),a)}var rd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,id=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Cu(e,r,o):t===`style`?Pu(e,n,r):s(t)?c(t)||Ju(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):ad(e,t,r,o))?(Wu(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Uu(e,t,r,o,a,t!==`value`)):e._isVueCE&&(od(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?Wu(e,k(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Uu(e,t,r,o))};function ad(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&rd(t)&&v(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return rd(t)&&y(n)?!1:t in e}function od(e,t){let n=e._def.props;if(!n)return!1;let r=k(t);return Array.isArray(n)?n.some(e=>k(e)===r):Object.keys(n).some(e=>k(e)===r)}var sd={};function cd(e,t,n){let r=R(e,t);E(r)&&(r=l({},r,t));class i extends dd{constructor(e){super(r,e,n)}}return i.def=r,i}var ld=((e,t)=>cd(e,t,nf)),ud=typeof HTMLElement<`u`?HTMLElement:class{},dd=class e extends ud{constructor(e,t={},n=tf){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==tf?this._root=this.shadowRoot:(this.shadowRoot&&Wl("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),e.shadowRoot===!1?this._root=this:(this.attachShadow(l({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot))}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,br(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!p(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=ue(this._props[e])),(i||=Object.create(null))[k(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot?this._applyStyles(r):r&&Wl(`Custom element style injection is not supported when using shadowRoot: false`),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){e.name||=`VueElement`,this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)f(this,e)?Wl(`Exposed property "${e}" already exists on custom element.`):Object.defineProperty(this,e,{get:()=>P(t[e])})}_resolveProps(e){let{props:t}=e,n=p(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(k))e in Object.getPrototypeOf(this)&&Wl(`Custom element prop "${e}" conflicts with an existing property on the element and will overwrite it.`),Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):sd,r=k(e);t&&this._numberProps&&this._numberProps[r]&&(n=ue(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===sd?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(ie(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(ie(e),t+``):t||this.removeAttribute(ie(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),$d(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=G(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0,e.ceReload=e=>{this._styles&&(this._styles.forEach(e=>this._root.removeChild(e)),this._styles.length=0),this._styleAnchors.delete(this._def),this._applyStyles(e),this._instance=null,this._update()};let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,E(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),ie(e)!==e&&t(ie(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);if(r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c)),t){if(t.__hmrId){this._childStyles||=new Map;let e=this._childStyles.get(t.__hmrId);e||this._childStyles.set(t.__hmrId,e=[]),e.push(c)}}else(this._styles||=[]).push(c)}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){if(this._styleChildren.delete(e),this._styleAnchors.delete(e),this._childStyles&&e.__hmrId){let t=this._childStyles.get(e.__hmrId);t&&(t.forEach(e=>this._root.removeChild(e)),t.length=0)}}};function fd(e){let t=pl();return t&&t.ce||(Wl(t?`${e||`useHost`} can only be used in components defined via defineCustomElement.`:`${e||`useHost`} called without an active component instance.`),null)}function pd(){let e=fd(`useShadowRoot`);return e&&e.shadowRoot}function md(e=`$style`){{let t=pl();if(!t)return Wl(`useCssModule must be called inside setup()`),r;let n=t.type.__cssModules;return n?n[e]||(Wl(`Current instance does not have CSS module named "${e}".`),r):(Wl(`Current instance does not have CSS modules injected.`),r)}}var hd=new WeakMap,gd=new WeakMap,_d=Symbol(`_moveCb`),vd=Symbol(`_enterCb`),yd=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},su,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=pl(),r=Bi(),i,a;return to(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!wd(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(bd),i.forEach(xd);let r=i.filter(Sd);Su(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;mu(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[_d]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[_d]=null,hu(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=M(e),s=du(o),c=o.tag||B;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[Tu]&&(i.push(t),Zi(t,Ji(t,s,r,n)),hd.set(t,Cd(t.el)))}a=t.default?Qi(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key==null?t.type!==Ic&&Wl(`<TransitionGroup> children must be keyed.`):Zi(t,Ji(t,s,r,n))}return G(c,null,a)}}});function bd(e){let t=e.el;t[_d]&&t[_d](),t[vd]&&t[vd]()}function xd(e){gd.set(e,Cd(e.el))}function Sd(e){let t=hd.get(e),n=gd.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Cd(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function wd(e,t,n){let r=e.cloneNode(),i=e[au];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=yu(r);return a.removeChild(r),o}var Td=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>se(t,e):t};function Ed(e){e.target.composing=!0}function Dd(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Od=Symbol(`_assign`),kd=Symbol(`_initialValue`);function Ad(e,t,n){return t&&(e=e.trim()),n&&(e=le(e)),e}var jd={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[kd]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[kd]=e.defaultValue.replace(/\r\n?/g,`
|
|
24
|
+
`))),e[Od]=Td(i);let a=r||i.props&&i.props.type===`number`;Gu(e,t?`change`:`input`,t=>{t.target.composing||e[Od](Ad(e.value,n,a))}),(n||a)&&Gu(e,`change`,()=>{e.value=Ad(e.value,n,a)}),t||(Gu(e,`compositionstart`,Ed),Gu(e,`compositionend`,Dd),Gu(e,`change`,Dd))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[kd];delete e[kd],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[Od](Ad(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Od]=Td(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?le(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Md={deep:!0,created(e,t,n){e[Od]=Td(n),Gu(e,`change`,()=>{let t=e._modelValue,n=Ld(e),r=e.checked,i=e[Od];if(p(t)){let e=ze(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Rd(e,r))})},mounted:Nd,beforeUpdate(e,t,n){e[Od]=Td(n),Nd(e,t,n)}};function Nd(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=ze(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=Re(t,Rd(e,!0))}e.checked!==i&&(e.checked=i)}var Pd={created(e,{value:t},n){e.checked=Re(t,n.props.value),e[Od]=Td(n),Gu(e,`change`,()=>{e[Od](Ld(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Od]=Td(r),t!==n&&(e.checked=Re(t,r.props.value))}},Fd={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Gu(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?le(Ld(e)):Ld(e));e[Od](e.multiple?h(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,br(()=>{e._assigning=!1})}),e[Od]=Td(r)},mounted(e,{value:t}){Id(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Od]=Td(n)},updated(e,{value:t}){e._assigning||Id(e,t)}};function Id(e,t){let n=e.multiple,r=p(t);if(n&&!r&&!h(t)){Wl(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Ld(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):ze(t,o)>-1}else a.selected=t.has(o)}else if(Re(Ld(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function Ld(e){return`_value`in e?e._value:e.value}function Rd(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var zd={created(e,t,n){Vd(e,t,n,null,`created`)},mounted(e,t,n){Vd(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Vd(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Vd(e,t,n,r,`updated`)}};function Bd(e,t){switch(e){case`SELECT`:return Fd;case`TEXTAREA`:return jd;default:switch(t){case`checkbox`:return Md;case`radio`:return Pd;default:return jd}}}function Vd(e,t,n,r,i){let a=Bd(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Hd(){jd.getSSRProps=({value:e})=>({value:e}),Pd.getSSRProps=({value:e},t)=>{if(t.props&&Re(t.props.value,e))return{checked:!0}},Md.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&ze(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},zd.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Bd(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Ud=[`ctrl`,`shift`,`alt`,`meta`],Wd={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)=>Ud.some(n=>e[`${n}Key`]&&!t.includes(n))},Gd=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Wd[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Kd={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},qd=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=ie(n.key);if(t.some(e=>e===r||Kd[e]===r))return e(n)}))},Jd=l({patchProp:id},nu),Yd,Xd=!1;function Zd(){return Yd||=dc(Jd)}function Qd(){return Yd=Xd?Yd:fc(Jd),Xd=!0,Yd}var $d=((...e)=>{Zd().render(...e)}),ef=((...e)=>{Qd().hydrate(...e)}),tf=((...e)=>{let t=Zd().createApp(...e);af(t),of(t);let{mount:n}=t;return t.mount=e=>{let r=sf(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,rf(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),nf=((...e)=>{let t=Qd().createApp(...e);af(t),of(t);let{mount:n}=t;return t.mount=e=>{let t=sf(e);if(t)return n(t,!0,rf(t))},t});function rf(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function af(e){Object.defineProperty(e.config,"isNativeTag",{value:e=>Te(e)||Ee(e)||De(e),writable:!1})}function of(e){if(Ol()){let t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Wl("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});let n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Wl(r),n},set(){Wl(r)}})}}function sf(e){if(y(e)){let t=document.querySelector(e);return t||Wl(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode===`closed`&&Wl('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var cf=!1,lf=()=>{cf||(cf=!0,Hd(),Ou())},uf=t({BaseTransition:()=>Ki,BaseTransitionPropsValidators:()=>Hi,Comment:()=>Lc,DeprecationTypes:()=>null,EffectScope:()=>Ke,ErrorCodes:()=>or,ErrorTypeStrings:()=>Gl,Fragment:()=>B,KeepAlive:()=>Ha,ReactiveEffect:()=>Qe,Static:()=>Rc,Suspense:()=>wc,Teleport:()=>Fi,Text:()=>Ic,TrackOpTypes:()=>Vn,Transition:()=>cu,TransitionGroup:()=>yd,TriggerOpTypes:()=>Hn,VueElement:()=>dd,assertNumber:()=>ar,callWithAsyncErrorHandling:()=>lr,callWithErrorHandling:()=>cr,camelize:()=>k,capitalize:()=>ae,cloneVNode:()=>tl,compatUtils:()=>null,compile:()=>ff,computed:()=>J,createApp:()=>tf,createBlock:()=>U,createCommentVNode:()=>K,createElementBlock:()=>H,createElementVNode:()=>W,createHydrationRenderer:()=>fc,createPropsRestProxy:()=>Wo,createRenderer:()=>dc,createSSRApp:()=>nf,createSlots:()=>vo,createStaticVNode:()=>il,createTextVNode:()=>rl,createVNode:()=>G,customRef:()=>Nn,defineAsyncComponent:()=>za,defineComponent:()=>R,defineCustomElement:()=>cd,defineEmits:()=>Mo,defineExpose:()=>No,defineModel:()=>Io,defineOptions:()=>Po,defineProps:()=>jo,defineSSRCustomElement:()=>ld,defineSlots:()=>Fo,devtools:()=>Kl,effect:()=>dt,effectScope:()=>qe,getCurrentInstance:()=>pl,getCurrentScope:()=>Je,getCurrentWatcher:()=>Kn,getTransitionRawChildren:()=>Qi,guardReactiveProps:()=>el,h:()=>zl,handleError:()=>ur,hasInjectionContext:()=>hi,hydrate:()=>ef,hydrateOnIdle:()=>Ma,hydrateOnInteraction:()=>Ia,hydrateOnMediaQuery:()=>Fa,hydrateOnVisible:()=>Pa,initCustomFormatter:()=>Bl,initDirectivesForSSR:()=>lf,inject:()=>mi,isMemoSame:()=>Hl,isProxy:()=>bn,isReactive:()=>_n,isReadonly:()=>vn,isRef:()=>wn,isRuntimeOnly:()=>Ol,isShallow:()=>yn,isVNode:()=>Gc,markRaw:()=>xn,mergeDefaults:()=>Ho,mergeModels:()=>Uo,mergeProps:()=>q,nextTick:()=>br,nodeOps:()=>nu,normalizeClass:()=>be,normalizeProps:()=>xe,normalizeStyle:()=>me,onActivated:()=>Wa,onBeforeMount:()=>Qa,onBeforeUnmount:()=>no,onBeforeUpdate:()=>eo,onDeactivated:()=>Ga,onErrorCaptured:()=>so,onMounted:()=>$a,onRenderTracked:()=>oo,onRenderTriggered:()=>ao,onScopeDispose:()=>Ye,onServerPrefetch:()=>io,onUnmounted:()=>ro,onUpdated:()=>to,onWatcherCleanup:()=>qn,openBlock:()=>V,patchProp:()=>id,popScopeId:()=>ci,provide:()=>pi,proxyRefs:()=>jn,pushScopeId:()=>si,queuePostFlushCb:()=>wr,reactive:()=>fn,readonly:()=>mn,ref:()=>N,registerRuntimeCompiler:()=>Dl,render:()=>$d,renderList:()=>_o,renderSlot:()=>z,resolveComponent:()=>uo,resolveDirective:()=>mo,resolveDynamicComponent:()=>po,resolveFilter:()=>null,resolveTransitionHooks:()=>Ji,setBlockTracking:()=>Uc,setDevtoolsHook:()=>ql,setTransitionHooks:()=>Zi,shallowReactive:()=>pn,shallowReadonly:()=>hn,shallowRef:()=>Tn,ssrContextKey:()=>gi,ssrUtils:()=>Jl,stop:()=>ft,toDisplayString:()=>j,toHandlerKey:()=>oe,toHandlers:()=>bo,toRaw:()=>M,toRef:()=>Ln,toRefs:()=>Pn,toValue:()=>kn,transformVNodeArgs:()=>Jc,triggerRef:()=>On,unref:()=>P,useAttrs:()=>zo,useCssModule:()=>md,useCssVars:()=>Au,useHost:()=>fd,useId:()=>$i,useModel:()=>fs,useSSRContext:()=>_i,useShadowRoot:()=>pd,useSlots:()=>Ro,useTemplateRef:()=>na,useTransitionState:()=>Bi,vModelCheckbox:()=>Md,vModelDynamic:()=>zd,vModelRadio:()=>Pd,vModelSelect:()=>Fd,vModelText:()=>jd,vShow:()=>Eu,version:()=>Ul,warn:()=>Wl,watch:()=>L,watchEffect:()=>vi,watchPostEffect:()=>yi,watchSyncEffect:()=>bi,withAsyncContext:()=>Go,withCtx:()=>I,withDefaults:()=>Lo,withDirectives:()=>di,withKeys:()=>qd,withMemo:()=>Vl,withModifiers:()=>Gd,withScopeId:()=>li});function df(){Bl()}df();var ff=()=>{Wl(`Runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`)},pf=typeof window<`u`,mf,hf;{let e=pf&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(mf=t=>{e.mark(t)},hf=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}var gf=/\{([0-9a-zA-Z]+)\}/g;function _f(e,...t){return t.length===1&&X(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(gf,(e,n)=>t.hasOwnProperty(n)?t[n]:``)}var vf=(e,t=!1)=>t?Symbol.for(e):Symbol(e),yf=(e,t,n)=>bf({l:e,k:t,s:n}),bf=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),xf=e=>typeof e==`number`&&isFinite(e),Sf=e=>Lf(e)===`[object Date]`,Cf=e=>Lf(e)===`[object RegExp]`,wf=e=>Rf(e)&&Object.keys(e).length===0,Tf=Object.assign,Ef=Object.create,Df=(e=null)=>Ef(e),Of,kf=()=>Of||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:Df(),Af=Object.prototype.hasOwnProperty;function jf(e,t){return Af.call(e,t)}var Mf=Array.isArray,Nf=e=>typeof e==`function`,Y=e=>typeof e==`string`,Pf=e=>typeof e==`boolean`,X=e=>typeof e==`object`&&!!e,Ff=e=>X(e)&&Nf(e.then)&&Nf(e.catch),If=Object.prototype.toString,Lf=e=>If.call(e),Rf=e=>Lf(e)===`[object Object]`,zf=e=>e==null?``:Mf(e)||Rf(e)&&e.toString===If?JSON.stringify(e,null,2):String(e);function Bf(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var Vf=2;function Hf(e,t=0,n=e.length){let r=e.split(/\r?\n/),i=0,a=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+1,i>=t){for(let o=e-Vf;o<=e+Vf||n>i;o++){if(o<0||o>=r.length)continue;let s=o+1;a.push(`${s}${` `.repeat(3-String(s).length)}| ${r[o]}`);let c=r[o].length;if(o===e){let e=t-(i-c)+1,r=Math.max(1,n>i?c-e:n-t);a.push(` | `+` `.repeat(e)+`^`.repeat(r))}else if(o>e){if(n>i){let e=Math.max(Math.min(n-i,c),1);a.push(` | `+`^`.repeat(e))}i+=c+1}}break}return a.join(`
|
|
25
|
+
`)}function Uf(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var Wf={};function Gf(e){Wf[e]||(Wf[e]=!0,Uf(e))}function Kf(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function qf(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}var Jf=/^javascript:/i,Yf=/^(?:href|src|action|formaction)$/i,Xf=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Zf=/&(?:Tab|NewLine);/g,Qf=/:?/gi,$f=/[\u0000-\u0020\u007f-\u009f]/g,ep=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,tp=/(^|[\s"'<>/])on(\w+\s*=)/gi,np=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function rp(e,t,n){let r=t||n;if(!r)return e;let i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function ip(e){let t=e.replace(Xf,rp).replace(Zf,``).replace(Qf,`:`).replace($f,``);return Jf.test(t)}function ap(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l){t===l&&(l=null);continue}if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=ip(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function op(e,t){return Yf.test(e)&&ip(t)?`about:blank`:qf(e.toLowerCase()===`style`?ap(t):t)}function sp(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${op(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${op(t,n)}'`),ep.test(e)&&(Uf(`Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages.`),e=e.replace(tp,`$1on$2`)),e=e.replace(np,(e,t,n,r)=>ip(r)?`${t}${n}about:blank`:e),e}function cp(){let e=new Map;return{events:e,on(t,n){let r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){let r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get(`*`)||[]).slice().map(e=>e(t,n))}}}var lp=e=>!X(e)||Mf(e);function up(e,t){if(lp(e)||lp(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{if(r===`__proto__`)return;let i=e[r];if(Mf(i)){let e=[];e.length=i.length,t[r]=e,n.push({src:i,des:e})}else X(i)?((!X(t[r])||Mf(t[r]))&&(t[r]=Df()),n.push({src:i,des:t[r]})):t[r]=i})}}function dp(e,t,n){return{line:e,column:t,offset:n}}function fp(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var Z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},pp={[Z.EXPECTED_TOKEN]:`Expected token: '{0}'`,[Z.INVALID_TOKEN_IN_PLACEHOLDER]:`Invalid token in placeholder: '{0}'`,[Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:`Unterminated single quote in placeholder`,[Z.UNKNOWN_ESCAPE_SEQUENCE]:`Unknown escape sequence: \\{0}`,[Z.INVALID_UNICODE_ESCAPE_SEQUENCE]:`Invalid unicode escape sequence: {0}`,[Z.UNBALANCED_CLOSING_BRACE]:`Unbalanced closing brace`,[Z.UNTERMINATED_CLOSING_BRACE]:`Unterminated closing brace`,[Z.EMPTY_PLACEHOLDER]:`Empty placeholder`,[Z.NOT_ALLOW_NEST_PLACEHOLDER]:`Not allowed nest placeholder`,[Z.INVALID_LINKED_FORMAT]:`Invalid linked format`,[Z.MUST_HAVE_MESSAGES_IN_PLURAL]:`Plural must have messages`,[Z.UNEXPECTED_EMPTY_LINKED_MODIFIER]:`Unexpected empty linked modifier`,[Z.UNEXPECTED_EMPTY_LINKED_KEY]:`Unexpected empty linked key`,[Z.UNEXPECTED_LEXICAL_ANALYSIS]:`Unexpected lexical analysis in token: '{0}'`,[Z.UNHANDLED_CODEGEN_NODE_TYPE]:`unhandled codegen node type: '{0}'`,[Z.UNHANDLED_MINIFIER_NODE_TYPE]:`unhandled mimifier node type: '{0}'`};function mp(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=_f((i||pp)[e]||``,...a||[]),s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function hp(e){throw e}var gp=/<\/?[\w\s="/.':;#-\/]+>/,_p=e=>gp.test(e),vp=` `,yp=`\r`,bp=`
|
|
26
|
+
`,xp=`\u2028`,Sp=`\u2029`;function Cp(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===yp&&t[e+1]===bp,s=e=>t[e]===bp,c=e=>t[e]===Sp,l=e=>t[e]===xp,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?bp:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var wp=void 0,Tp=`'`,Ep=`tokenizer`;function Dp(e,t={}){let n=t.location!==!1,r=Cp(e),i=()=>r.index(),a=()=>dp(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=mp(e,n?fp(a.startLoc,t):null,{domain:Ep,args:i});u(r)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=fp(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(Z.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===vp||e.currentPeek()===bp;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===wp)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===wp)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===Tp;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(n!==7&&n!==11)return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===vp||!t?!1:t===bp?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?r!==vp&&r!==bp:i===vp?(e.peek(),n(!0,vp)):i!==bp||(e.peek(),n(!0,bp))},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();if(n!==wp)return t(n)?(e.next(),n):null}function ee(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function te(e){return O(e,ee)}function ne(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function k(e){return O(e,ne)}function re(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ie(e){return O(e,re)}function ae(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function oe(e){return O(e,ae)}function A(e){let t=``,n=``;for(;t=ie(e);)n+=t;return n}function se(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===vp||n===bp){if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next()}else t+=n,e.next()}return t}function ce(e){g(e);let t=``,n=``;for(;t=k(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==wp&&r!==vp&&r!==bp&&r!==` `){let t=he(e);return d(Z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===wp&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n}function le(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${A(e)}`):t+=A(e),e.currentChar()===wp&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),t}function ue(e){return e!==Tp&&e!==bp}function de(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,ue);)n+=t===`\\`?fe(e):t;let r=e.currentChar();return r===bp||r===wp?(d(Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===bp&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function fe(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return pe(e,t,4);case`U`:return pe(e,t,6);default:return d(Z.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function pe(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=oe(e);if(!n){d(Z.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function me(e){return e!==`{`&&e!==`}`&&e!==vp&&e!==bp}function he(e){g(e);let t=``,n=``;for(;t=O(e,me);)n+=t;return n}function ge(e){let t=``,n=``;for(;t=te(e);)n+=t;return n}function _e(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===vp?n:(n+=r,e.next(),t(n))};return t(``)}function ve(e){g(e);let t=m(e,`|`);return g(e),t}function ye(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(Z.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(Z.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n=be(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,ve(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,xe(e,t);if(r=y(e,t))return n=f(t,4,ce(e)),g(e),n;if(i=b(e,t))return n=f(t,5,le(e)),g(e),n;if(o=x(e,t))return n=f(t,6,de(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,he(e)),d(Z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function be(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===bp||i===vp)&&d(Z.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,ve(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),be(e,t)):C(e,t)?(g(e),f(t,11,ge(e))):T(e,t)?(g(e),i===`{`?ye(e,t)||r:f(t,10,_e(e))):(n===7&&d(Z.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,xe(e,t))}}function xe(e,t){let n={type:13};if(t.braceNest>0)return ye(e,t)||p(t);if(t.inLinked)return be(e,t)||p(t);switch(e.currentChar()){case`{`:return ye(e,t)||p(t);case`}`:return d(Z.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return be(e,t)||p(t);default:if(E(e))return n=f(t,1,ve(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,se(e))}return n}function Se(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===wp?f(c,13):xe(r,c)}return{nextToken:Se,currentOffset:i,currentPosition:a,context:l}}var Op=`parser`,kp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Ap=/\\([\\@{}|])/g;function jp(e,t){return t}function Mp(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function Np(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=mp(r,t?fp(i,s):null,{domain:Op,args:o});n(e)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(Ap,jp),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(kp,Mp),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,Pp(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,Z.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(o)),n.key=l(e,o.value||``);break;default:{r(e,Z.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pp(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,Z.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=Dp(n,Tf({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,Z.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function Pp(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function Fp(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function Ip(e,t){for(let n=0;n<e.length;n++)Lp(e[n],t)}function Lp(e,t){switch(e.type){case 1:Ip(e.cases,t),t.helper(`plural`);break;case 2:Ip(e.items,t);break;case 6:Lp(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`)}}function Rp(e,t={}){let n=Fp(e);n.helper(`normalize`),e.body&&Lp(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function zp(e){let t=e.body;return t.type===2?Bp(t):t.cases.forEach(e=>Bp(e)),e}function Bp(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(r.type!==3&&r.type!==9||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Bf(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}var Vp=`minifier`;function Hp(e){switch(e.t=e.type,e.type){case 0:{let t=e;Hp(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)Hp(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)Hp(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;Hp(t.key),t.k=t.key,delete t.key,t.modifier&&(Hp(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}default:throw mp(Z.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Vp,args:[e.type]})}delete e.type}var Up=`parser`;function Wp(e,t){let{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);let s=()=>o;function c(e,t){o.code+=e}function l(e,t=!0){let n=t?r:``;c(i?n+` `.repeat(e):n)}function u(e=!0){let t=++o.indentLevel;e&&l(t)}function d(e=!0){let t=--o.indentLevel;e&&l(t)}function f(){l(o.indentLevel)}return{context:s,push:c,indent:u,deindent:d,newline:f,helper:e=>`_${e}`,needIndent:()=>o.needIndent}}function Gp(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),Yp(e,t.key),t.modifier?(e.push(`, `),Yp(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function Kp(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(Yp(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function qp(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(Yp(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function Jp(e,t){t.body?Yp(e,t.body):e.push(`null`)}function Yp(e,t){let{helper:n}=e;switch(t.type){case 0:Jp(e,t);break;case 1:qp(e,t);break;case 2:Kp(e,t);break;case 6:Gp(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw mp(Z.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Up,args:[t.type]})}}var Xp=(e,t={})=>{let n=Y(t.mode)?t.mode:`normal`,r=Y(t.filename)?t.filename:`message.intl`;t.sourceMap;let i=t.breakLineCode==null?n===`arrow`?`;`:`
|
|
27
|
+
`:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=Wp(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${Bf(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),Yp(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function Zp(e,t={}){let n=Tf({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null||n.optimize,o=Np(n).parse(e);return r?(a&&zp(o),i&&Hp(o),{ast:o,code:``}):(Rp(o,n),Xp(o,n))}function Qp(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(kf().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(kf().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function $p(e){return X(e)&&lm(e)===0&&(jf(e,`b`)||jf(e,`body`))}var em=[`b`,`body`];function tm(e){return gm(e,em)}var nm=[`c`,`cases`];function rm(e){return gm(e,nm,[])}var im=[`s`,`static`];function am(e){return gm(e,im)}var om=[`i`,`items`];function sm(e){return gm(e,om,[])}var cm=[`t`,`type`];function lm(e){return gm(e,cm)}var um=[`v`,`value`];function dm(e,t){let n=gm(e,um);if(n!=null)return n;throw vm(t)}var fm=[`m`,`modifier`];function pm(e){return gm(e,fm)}var mm=[`k`,`key`];function hm(e){let t=gm(e,mm);if(t)return t;throw vm(6)}function gm(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(jf(e,r)&&e[r]!=null)return e[r]}return n}var _m=[...em,...nm,...im,...om,...mm,...fm,...um,...cm];function vm(e){return Error(`unhandled node type: ${e}`)}function ym(e){return t=>bm(t,e)}function bm(e,t){let n=tm(t);if(n==null)throw vm(0);if(lm(n)===1){let t=rm(n);return e.plural(t.reduce((t,n)=>[...t,xm(e,n)],[]))}return xm(e,n)}function xm(e,t){let n=am(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=sm(t).reduce((t,n)=>[...t,Sm(e,n)],[]);return e.normalize(n)}}function Sm(e,t){let n=lm(t);switch(n){case 3:return dm(t,n);case 9:return dm(t,n);case 4:{let r=t;if(jf(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(jf(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw vm(n)}case 5:{let r=t;if(jf(r,`i`)&&xf(r.i))return e.interpolate(e.list(r.i));if(jf(r,`index`)&&xf(r.index))return e.interpolate(e.list(r.index));throw vm(n)}case 6:{let n=t,r=pm(n),i=hm(n);return e.linked(Sm(e,i),r?Sm(e,r):void 0,e.type)}case 7:return dm(t,n);case 8:return dm(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var Cm=`Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;function wm(e,t){t&&_p(e)&&Uf(_f(Cm,{source:e}))}var Tm=e=>e,Em=Df();function Dm(e,t={}){let n=!1,r=t.onError||hp;return t.onError=e=>{n=!0,r(e)},{...Zp(e,t),detectError:n}}function Om(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Y(e)){wm(e,!Pf(t.warnHtmlMessage)||t.warnHtmlMessage);let n=(t.onCacheKey||Tm)(e),r=Em[n];if(r)return r;let{ast:i,detectError:a}=Dm(e,{...t,location:!0,jit:!0}),o=ym(i);return a?o:Em[n]=o}{if(!$p(e))return Uf(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);let n=e.cacheKey;return n?Em[n]||(Em[n]=ym(e)):ym(e)}}var km=null;function Am(e){km=e}function jm(e,t,n){km&&km.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var Mm=Nm(`function:translate`);function Nm(e){return t=>km&&km.emit(e,t)}var Pm={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Fm(e){return mp(e,null,{messages:Im})}var Im={[Pm.INVALID_ARGUMENT]:`Invalid arguments`,[Pm.INVALID_DATE_ARGUMENT]:`The date provided is an invalid Date object.Make sure your Date represents a valid date.`,[Pm.INVALID_ISO_DATE_ARGUMENT]:`The argument provided is not a valid ISO date string`,[Pm.NOT_SUPPORT_NON_STRING_MESSAGE]:`Not support non-string message`,[Pm.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:`cannot support promise value`,[Pm.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:`cannot support async function`,[Pm.NOT_SUPPORT_LOCALE_TYPE]:`cannot support locale type`};function Lm(e,t){return t.locale==null?zm(e.locale):zm(t.locale)}var Rm;function zm(e){if(Y(e))return e;if(Nf(e)){if(e.resolvedOnce&&Rm!=null)return Rm;if(e.constructor.name===`Function`){let t=e();if(Ff(t))throw Fm(Pm.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Rm=t}throw Fm(Pm.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Fm(Pm.NOT_SUPPORT_LOCALE_TYPE)}function Bm(e,t,n){return[...new Set([n,...Mf(t)?t:X(t)?Object.keys(t).filter(e=>e!=="default"):Y(t)?[t]:[n]])]}function Vm(e,t,n){let r=Y(n)?n:ah,i=e;i.__localeChainCache||=new Map;let a=bf(t),o=i.__localeChainCache.get(r);o||(o=new Map,i.__localeChainCache.set(r,o));let s=o.get(a);if(s)return s;let c=[],l=[n];for(;Mf(l);)l=Hm(c,l,t);let u=Mf(t)||!Rf(t)?t:t.default?t.default:null;return l=Y(u)?[u]:u,Mf(l)&&Hm(c,l,!1),o.set(a,c),c}function Hm(e,t,n){let r=!0;for(let i=0;i<t.length&&Pf(r);i++){let a=t[i];Y(a)&&(r=Um(e,t[i],n))}return r}function Um(e,t,n){let r,i=t.split(`-`);do r=Wm(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function Wm(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(Mf(n)||Rf(n))&&n[i]&&(r=n[i])}return r}var Gm=[];Gm[0]={w:[0],i:[3,0],"[":[4],o:[7]},Gm[1]={w:[1],".":[2],"[":[4],o:[7]},Gm[2]={w:[2],i:[3,0],0:[3,0]},Gm[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Gm[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Gm[5]={"'":[4,0],o:8,l:[5,0]},Gm[6]={'"':[4,0],o:8,l:[6,0]};var Km=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function qm(e){return Km.test(e)}function Jm(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function Ym(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function Xm(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:qm(t)?Jm(t):`*`+t}function Zm(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=Xm(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=Ym(a),d=Gm[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var Qm=new Map;function $m(e,t){return X(e)?e[t]:null}function eh(e,t){if(!X(e))return null;let n=Qm.get(t);if(n||(n=Zm(t),n&&Qm.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(_m.includes(e)&&$p(i)||!X(i)||!jf(i,e))return null;let t=i[e];if(t===void 0||Nf(i))return null;i=t,a++}return i}var th={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},nh={[th.NOT_FOUND_KEY]:`Not found '{key}' key in '{locale}' locale messages.`,[th.FALLBACK_TO_TRANSLATE]:`Fall back to translate '{key}' key with '{target}' locale.`,[th.CANNOT_FORMAT_NUMBER]:`Cannot format a number value due to not supported Intl.NumberFormat.`,[th.FALLBACK_TO_NUMBER_FORMAT]:`Fall back to number format '{key}' key with '{target}' locale.`,[th.CANNOT_FORMAT_DATE]:`Cannot format a date value due to not supported Intl.DateTimeFormat.`,[th.FALLBACK_TO_DATE_FORMAT]:`Fall back to datetime format '{key}' key with '{target}' locale.`,[th.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:`This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.`,[th.INVALID_NUMBER_ARGUMENT]:`Invalid argument for number formatting: expected a number but received '{value}'.`,[th.INVALID_DATE_ARGUMENT]:`Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'.`};function rh(e,...t){return _f(nh[e],...t)}var ih=`11.4.9`,ah=`en-US`,oh=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sh(){return{upper:(e,t)=>t===`text`&&Y(e)?e.toUpperCase():t===`vnode`&&X(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&Y(e)?e.toLowerCase():t===`vnode`&&X(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&Y(e)?oh(e):t===`vnode`&&X(e)&&`__v_isVNode`in e?oh(e.children):e}}var ch;function lh(e){ch=e}var uh;function dh(e){uh=e}var fh;function ph(e){fh=e}var mh=null,hh=()=>mh,gh=null,_h=e=>{gh=e},vh=()=>gh,yh=0;function bh(e={}){let t=Nf(e.onWarn)?e.onWarn:Uf,n=Y(e.version)?e.version:ih,r=Y(e.locale)||Nf(e.locale)?e.locale:ah,i=Nf(r)?ah:r,a=Mf(e.fallbackLocale)||Rf(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Rf(e.messages)?e.messages:xh(i),s=Rf(e.datetimeFormats)?e.datetimeFormats:xh(i),c=Rf(e.numberFormats)?e.numberFormats:xh(i),l=Tf(Df(),e.modifiers,sh()),u=e.pluralRules||Df(),d=Nf(e.missing)?e.missing:null,f=Pf(e.missingWarn)||Cf(e.missingWarn)?e.missingWarn:!0,p=Pf(e.fallbackWarn)||Cf(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=Nf(e.postTranslation)?e.postTranslation:null,_=Rf(e.processor)?e.processor:null,v=!Pf(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,b=Nf(e.messageCompiler)?e.messageCompiler:ch;Nf(e.messageCompiler)&&Gf(rh(th.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));let x=Nf(e.messageResolver)?e.messageResolver:uh||$m,S=Nf(e.localeFallbacker)?e.localeFallbacker:fh||Bm,C=X(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=X(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=X(w.__numberFormatters)?w.__numberFormatters:new Map,D=X(w.__meta)?w.__meta:{};yh++;let O={version:n,cid:yh,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,O.__v_emitter=w.__v_emitter==null?void 0:w.__v_emitter,jm(O,n,D),O}var xh=e=>({[e]:Df()});function Sh(e,t){return e instanceof RegExp?e.test(t):e}function Ch(e,t){return e instanceof RegExp?e.test(t):e}function wh(e,t,n,r,i){let{missing:a,onWarn:o}=e;{let r=e.__v_emitter;r&&r.emit(`missing`,{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(a!==null){let r=a(e,n,t,i);return Y(r)?r:t}return Ch(r,t)&&o(rh(th.NOT_FOUND_KEY,{key:t,locale:n})),t}function Th(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Eh(e,t){return e!==t&&e.split(`-`)[0]===t.split(`-`)[0]}function Dh(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Eh(e,t[r]))return!0;return!1}function Oh(e,t,n,r,i,a,o){let{fallbackLocale:s,localeFallbacker:c,onWarn:l}=e,u=c(e,s,n),d=n;for(let s=0;s<u.length;s++){let c=u[s];if(n!==c&&Sh(a,t)&&l(rh(o===`datetime format`?th.FALLBACK_TO_DATE_FORMAT:th.FALLBACK_TO_NUMBER_FORMAT,{key:t,target:c})),n!==c){let n=e.__v_emitter;n&&n.emit(`fallback`,{type:o,key:t,from:d,to:c,groupId:`${o}:${t}`})}let f=(r[c]||{})[t];if(Rf(f)&&Y(c))return c;wh(e,t,c,i,o),d=c}return null}function kh(e,t,n){let r=`${e}__${t}`;return Rf(n)&&!wf(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function Ah(e,t,n){for(let r in n){let n=`${t}__${r}`;for(let t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function jh(e,t,n,r){let[,i,a,o]=e,s=n;return Y(i)?t.key=i:Rf(i)&&Object.keys(i).forEach(e=>{r.includes(e)?s[e]=i[e]:t[e]=i[e]}),Y(a)?t.locale=a:Rf(a)&&(s=a),Rf(o)&&(s=o),s}var Mh=typeof Intl<`u`,Nh={dateTimeFormat:Mh&&Intl.DateTimeFormat!==void 0,numberFormat:Mh&&Intl.NumberFormat!==void 0};function Ph(e,...t){let{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!Nh.dateTimeFormat)return i(rh(th.CANNOT_FORMAT_DATE)),``;if(!Y(t[0])&&!Sf(t[0])&&!xf(t[0]))return i(rh(th.INVALID_DATE_ARGUMENT,{value:String(t[0])})),``;let[o,s,c,l]=Ih(...t),u=Pf(c.missingWarn)?c.missingWarn:e.missingWarn,d=Pf(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Lm(e,c);if(!Y(o)||o===``){let e=new Intl.DateTimeFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=Oh(e,o,p,n,u,d,`datetime format`);if(!Y(m))return r?-1:o;let h=n[m][o],g=kh(m,o,l),_=a.get(g);return _||(_=new Intl.DateTimeFormat(m,Tf({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var Fh=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function Ih(...e){let[t]=e,n=Df(),r=Df(),i;if(Y(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Fm(Pm.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(n);try{i.toISOString()}catch{throw Fm(Pm.INVALID_ISO_DATE_ARGUMENT)}}else if(Sf(t)){if(isNaN(t.getTime()))throw Fm(Pm.INVALID_DATE_ARGUMENT);i=t}else if(xf(t))i=t;else throw Fm(Pm.INVALID_ARGUMENT);let a=jh(e,n,r,Fh);return[n.key||``,i,n,a]}function Lh(e,t,n){Ah(e.__datetimeFormatters,t,n)}function Rh(e,...t){let{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!Nh.numberFormat)return i(rh(th.CANNOT_FORMAT_NUMBER)),``;if(!xf(t[0]))return i(rh(th.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),``;let[o,s,c,l]=Bh(...t),u=Pf(c.missingWarn)?c.missingWarn:e.missingWarn,d=Pf(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Lm(e,c);if(!Y(o)||o===``){let e=new Intl.NumberFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=Oh(e,o,p,n,u,d,`number format`);if(!Y(m))return r?-1:o;let h=n[m][o],g=kh(m,o,l),_=a.get(g);return _||(_=new Intl.NumberFormat(m,Tf({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var zh=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function Bh(...e){let[t]=e,n=Df(),r=Df();if(!xf(t))throw Fm(Pm.INVALID_ARGUMENT);let i=t,a=jh(e,n,r,zh);return[n.key||``,i,n,a]}function Vh(e,t,n){Ah(e.__numberFormatters,t,n)}var Hh=e=>e,Uh=e=>``,Wh=`text`,Gh=e=>e.length===0?``:Bf(e),Kh=zf;function qh(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function Jh(e){let t=xf(e.pluralIndex)?e.pluralIndex:-1;return xf(e.named?.count)?e.named.count:xf(e.named?.n)?e.named.n:t}function Yh(e={}){let t=e.locale,n=Jh(e),r=Y(t)&&Nf(e.pluralRules?.[t])?e.pluralRules[t]:qh,i=r===qh?void 0:qh,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||Df();xf(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(Nf(e.messages)?e.messages(t,!!n):X(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Uh)}let d=t=>e.modifiers?e.modifiers[t]:Hh,f=Nf(e.processor?.normalize)?e.processor.normalize:Gh,p=Nf(e.processor?.interpolate)?e.processor.interpolate:Kh,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?X(n)?(a=n.modifier||a,i=n.type||i):Y(n)&&(a=n||a):t.length===2&&(Y(n)&&(a=n||a),Y(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&Mf(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:Y(e.processor?.type)?e.processor.type:Wh,interpolate:p,normalize:f,values:Tf(Df(),o,c)};return m}var Xh=()=>``,Zh=e=>Nf(e);function Qh(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=rg(...t),u=Pf(l.missingWarn)?l.missingWarn:e.missingWarn,d=Pf(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=Pf(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=Y(l.default)||Pf(l.default)?Pf(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(Y(m)||Nf(m)),g=Lm(e,l);f&&$h(l);let[_,v,y]=p?[c,g,s[g]||Df()]:eg(e,c,g,o,d,u),b=_,x=c;if(!p&&!(Y(b)||$p(b)||Zh(b))&&h&&(b=m,x=b),!p&&(!(Y(b)||$p(b)||Zh(b))||!Y(v)))return i?-1:c;if(Y(b)&&e.messageCompiler==null)return Uf(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let S=!1,C=Zh(b)?b:tg(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=ng(e,C,Yh(og(e,v,y,l))),T=r?r(w,c):w;f&&Y(T)&&(T=sp(T));{let t={timestamp:Date.now(),key:Y(c)?c:Zh(b)?b.key:``,locale:v||(Zh(b)?b.locale:``),format:Y(b)?b:Zh(b)?b.source:``,message:T};t.meta=Tf({},e.__meta,hh()||{}),Mm(t)}return T}function $h(e){Mf(e.list)?e.list=e.list.map(e=>Y(e)?Kf(e):e):X(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=Kf(e.named[t]))})}function eg(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=Df(),f,p=null,m=n,h=null,g=`translate`;for(let r=0;r<u.length;r++){f=h=u[r],n!==f&&!Eh(n,f)&&Sh(i,t)&&s(rh(th.FALLBACK_TO_TRANSLATE,{key:t,target:f}));let l=e.__v_emitter;n!==f&&l&&l.emit(`fallback`,{type:g,key:t,from:m,to:h,groupId:`${g}:${t}`}),d=o[f]||Df();let _=null,v,y;if(pf&&l&&(_=window.performance.now(),v=`intlify-message-resolve-start`,y=`intlify-message-resolve-end`,mf&&mf(v)),(p=c(d,t))===null&&(p=d[t]),pf&&l){let e=window.performance.now();l&&_&&p&&l.emit(`message-resolve`,{type:`message-resolve`,key:t,message:p,time:e-_,groupId:`${g}:${t}`}),v&&y&&mf&&hf&&(mf(y),hf(`intlify message resolve`,v,y))}if(Y(p)||$p(p)||Zh(p))break;if(!Dh(f,u)){let n=wh(e,t,f,a,g);n!==t&&(p=n)}m=h}return[p,f,d]}function tg(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Zh(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=e.__v_emitter,l=null,u,d;pf&&c&&(l=window.performance.now(),u=`intlify-message-compilation-start`,d=`intlify-message-compilation-end`,mf&&mf(u));let f=o(r,ig(e,n,i,r,s,a));if(pf&&c){let e=window.performance.now();c&&l&&c.emit(`message-compilation`,{type:`message-compilation`,message:r,time:e-l,groupId:`translate:${t}`}),u&&d&&mf&&hf&&(mf(d),hf(`intlify message compilation`,u,d))}return f.locale=n,f.key=t,f.source=r,f}function ng(e,t,n){let r=e.__v_emitter,i=null,a,o;pf&&r&&(i=window.performance.now(),a=`intlify-message-evaluation-start`,o=`intlify-message-evaluation-end`,mf&&mf(a));let s=t(n);if(pf&&r){let e=window.performance.now();r&&i&&r.emit(`message-evaluation`,{type:`message-evaluation`,value:s,time:e-i,groupId:`translate:${t.key}`}),a&&o&&mf&&hf&&(mf(o),hf(`intlify message evaluation`,a,o))}return s}function rg(...e){let[t,n,r]=e,i=Df();if(!Y(t)&&!xf(t)&&!Zh(t)&&!$p(t))throw Fm(Pm.INVALID_ARGUMENT);let a=xf(t)?String(t):(Zh(t),t);return xf(n)?i.plural=n:Y(n)?i.default=n:Rf(n)&&!wf(n)?i.named=n:Mf(n)&&(i.list=n),xf(r)?i.plural=r:Y(r)?i.default=r:Rf(r)&&Tf(i,r),[a,i]}function ig(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:t=>{a&&a(t);{let i=ag(r),a=t.location&&i&&Hf(i,t.location.start.offset,t.location.end.offset),o=e.__v_emitter;o&&i&&o.emit(`compile-error`,{message:i,error:t.message,start:t.location&&t.location.start.offset,end:t.location&&t.location.end.offset,groupId:`translate:${n}`});let s=`Message compilation error: ${t.message}`;throw SyntaxError(a?`${s}\n${a}`:s)}},onCacheKey:e=>yf(t,n,e)}}function ag(e){if(Y(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function og(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=eg(u||e,r,t,s,c,l);a=n??o(i,r)}if(Y(a)||$p(a)){let n=!1,i=tg(e,r,t,a,r,()=>{n=!0});return n?Xh:i}return Zh(a)?a:Xh}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),xf(r.plural)&&(d.pluralIndex=r.plural),d}Qp();function sg(){return cg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function cg(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}var lg=typeof Proxy==`function`,ug=`devtools-plugin:setup`,dg=`plugin:settings:set`,fg,pg;function mg(){return fg===void 0&&(typeof window<`u`&&window.performance?(fg=!0,pg=window.performance):typeof globalThis<`u`&&globalThis.perf_hooks?.performance?(fg=!0,pg=globalThis.perf_hooks.performance):fg=!1),fg}function hg(){return mg()?pg.now():Date.now()}var gg=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;let n={};if(e.settings)for(let t in e.settings)n[t]=e.settings[t].defaultValue;let r=`__vue-devtools-plugin-settings__${e.id}`,i=Object.assign({},n);try{let e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch{}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}i=e},now(){return hg()}},t&&t.on(dg,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:t===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(let e of this.onQueue)this.target.on[e.method](...e.args);for(let e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}};function _g(e,t){let n=e,r=cg(),i=sg(),a=lg&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(ug,e,t);else{let e=a?new gg(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}}var vg=`11.4.9`;function yg(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(kf().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(kf().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(kf().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(kf().__INTLIFY_PROD_DEVTOOLS__=!1)}var bg={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function xg(e,...t){return mp(e,null,{messages:Sg,args:t})}var Sg={[bg.UNEXPECTED_RETURN_TYPE]:`Unexpected return type in composer`,[bg.INVALID_ARGUMENT]:`Invalid argument`,[bg.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[bg.NOT_INSTALLED]:"Need to install with `app.use` function",[bg.UNEXPECTED_ERROR]:`Unexpected error`,[bg.REQUIRED_VALUE]:`Required in value: {0}`,[bg.INVALID_VALUE]:`Invalid value`,[bg.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:`Cannot setup vue-devtools plugin`,[bg.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[bg.NOT_COMPATIBLE_LEGACY_VUE_I18N]:`Not compatible legacy VueI18n.`,[bg.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:`Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly`},Cg=vf(`__translateVNode`),wg=vf(`__datetimeParts`),Tg=vf(`__numberParts`),Eg=vf(`__enableEmitter`),Dg=vf(`__disableEmitter`),Og=vf(`__setPluralRules`);vf(`__intlifyMeta`);var kg=vf(`__injectWithOption`),Ag=vf(`__dispose`),jg={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15},Mg={[jg.FALLBACK_TO_ROOT]:`Fall back to {type} '{key}' with root locale.`,[jg.NOT_FOUND_PARENT_SCOPE]:`Not found parent scope. use the global scope.`,[jg.IGNORE_OBJ_FLATTEN]:`Ignore object flatten: '{key}' key has an string value`,[jg.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
28
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[jg.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:`'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.`,[jg.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Ng(e,...t){return _f(Mg[e],...t)}var Pg=null;{let e=kf().__VUE_INSTANCE_SETTERS__;Mf(e)&&e.push(e=>{Pg=e})}function Fg(e){if(!X(e)||$p(e))return e;for(let t in e)if(jf(e,t)){if(!t.includes(`.`))X(e[t])&&Fg(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=Df()),!X(i[n[e]])){Uf(Ng(jg.IGNORE_OBJ_FLATTEN,{key:n[e]})),a=!0;break}i=i[n[e]]}if(a||($p(i)?_m.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!$p(i)){let e=i[n[r]];X(e)&&Fg(e)}}}return e}function Ig(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=Rf(n)?n:Mf(r)?Df():{[e]:Df()};if(Mf(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||Df(),up(n,o[t])):up(n,o)}else Y(e)&&up(JSON.parse(e),o)}),i==null&&a)for(let e in o)jf(o,e)&&Fg(o[e]);return o}function Lg(e){return e.type}function Rg(e,t,n){let r=X(t.messages)?t.messages:Df();`__i18nGlobal`in n&&(r=Ig(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),X(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(X(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function zg(e){return G(Ic,null,e,0)}function Bg(){return Pg??pl()}var Vg=()=>[],Hg=()=>!1,Ug=0;function Wg(e){return((t,n,r,i)=>e(n,r,Bg()||void 0,i))}function Gg(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=pf?N:Tn,o=!Pf(e.inheritLocale)||e.inheritLocale,s=a(t&&o?t.locale.value:Y(e.locale)?e.locale:ah),c=a(t&&o?t.fallbackLocale.value:Y(e.fallbackLocale)||Mf(e.fallbackLocale)||Rf(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(Ig(s.value,e)),u=a(Rf(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(Rf(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=t?t.missingWarn:Pf(e.missingWarn)||Cf(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:Pf(e.fallbackWarn)||Cf(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:!Pf(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,g=Nf(e.missing)?e.missing:null,_=Nf(e.missing)?Wg(e.missing):null,v=Nf(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:!Pf(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,x=t?t.modifiers:Rf(e.modifiers)?e.modifiers:{},S=e.pluralRules||t&&t.pluralRules,C;C=(()=>{r&&_h(null);let t={version:vg,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:x,pluralRules:S,missing:_===null?void 0:_,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=Rf(C)?C.__datetimeFormatters:void 0,t.__numberFormatters=Rf(C)?C.__numberFormatters:void 0,t.__v_emitter=Rf(C)?C.__v_emitter:void 0;let n=bh(t);return r&&_h(n),n})(),Th(C,s.value,c.value);function w(){return[s.value,c.value,l.value,u.value,d.value]}let T=J({get:()=>s.value,set:e=>{C.locale=e,s.value=e}}),E=J({get:()=>c.value,set:e=>{C.fallbackLocale=e,c.value=e,Th(C,s.value,e)}}),D=J(()=>l.value),O=J(()=>u.value),ee=J(()=>d.value);function te(){return Nf(v)?v:null}function ne(e){v=e,C.postTranslation=e}function k(){return g}function re(e){e!==null&&(_=Wg(e)),g=e,C.missing=_}function ie(e,t){return e!==`translate`||!t.resolvedMessage}let ae=(e,n,i,a,o,s)=>{w();let c;try{r||(C.fallbackContext=t?vh():void 0),c=e(C)}finally{r||(C.fallbackContext=void 0)}if(i!==`translate exists`&&xf(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();if(t&&Y(e)&&ie(i,r)){m&&(Sh(p,e)||Ch(f,e))&&Uf(Ng(jg.FALLBACK_TO_ROOT,{key:e,type:i}));{let{__v_emitter:t}=C;t&&m&&t.emit(`fallback`,{type:i,key:e,to:`global`,groupId:`${i}:${e}`})}}return t&&m?a(t):o(e)}if(s(c))return c;throw xg(bg.UNEXPECTED_RETURN_TYPE)};function oe(...e){return ae(t=>Reflect.apply(Qh,null,[t,...e]),()=>rg(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>Y(e))}function A(...e){let[t,n,r]=e;if(r&&!X(r))throw xg(bg.INVALID_ARGUMENT);return oe(t,n,Tf({resolvedMessage:!0},r||{}))}function se(...e){return ae(t=>Reflect.apply(Ph,null,[t,...e]),()=>Ih(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>Y(e)||Mf(e))}function ce(...e){return ae(t=>Reflect.apply(Rh,null,[t,...e]),()=>Bh(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>Y(e)||Mf(e))}function le(e){return e.map(e=>Y(e)||xf(e)||Pf(e)?zg(String(e)):e)}let ue={normalize:le,interpolate:e=>e,type:`vnode`};function de(...e){return ae(t=>{let n,r=t;try{r.processor=ue,n=Reflect.apply(Qh,null,[r,...e])}finally{r.processor=null}return n},()=>rg(...e),`translate`,t=>t[Cg](...e),e=>[zg(e)],e=>Mf(e))}function fe(...e){return ae(t=>Reflect.apply(Rh,null,[t,...e]),()=>Bh(...e),`number format`,t=>t[Tg](...e),Vg,e=>Y(e)||Mf(e))}function pe(...e){return ae(t=>Reflect.apply(Ph,null,[t,...e]),()=>Ih(...e),`datetime format`,t=>t[wg](...e),Vg,e=>Y(e)||Mf(e))}function me(e){S=e,C.pluralRules=S}function he(e,t){return ae(()=>{if(!e)return!1;let n=Y(t)?t:s.value,r=Y(t)?[n]:Vm(C,c.value,n);for(let t=0;t<r.length;t++){let n=ve(r[t]),i=C.messageResolver(n,e);if(i===null&&(i=n[e]),$p(i)||Zh(i)||Y(i))return!0}return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),Hg,e=>Pf(e))}function ge(e){let t=null,n=Vm(C,c.value,s.value);for(let r=0;r<n.length;r++){let i=l.value[n[r]]||{},a=C.messageResolver(i,e);if(a!=null){t=a;break}}return t}function _e(e){return ge(e)??(t&&t.tm(e)||{})}function ve(e){return l.value[e]||{}}function ye(e,t){if(i){let n={[e]:t};for(let e in n)jf(n,e)&&Fg(n[e]);t=n[e]}l.value[e]=t,C.messages=l.value}function be(e,t){l.value[e]=l.value[e]||{};let n={[e]:t};if(i)for(let e in n)jf(n,e)&&Fg(n[e]);t=n[e],up(t,l.value[e]),C.messages=l.value}function xe(e){return u.value[e]||{}}function Se(e,t){u.value[e]=t,C.datetimeFormats=u.value,Lh(C,e,t)}function Ce(e,t){u.value[e]=Tf(u.value[e]||{},t),C.datetimeFormats=u.value,Lh(C,e,t)}function we(e){return d.value[e]||{}}function Te(e,t){d.value[e]=t,C.numberFormats=d.value,Vh(C,e,t)}function Ee(e,t){d.value[e]=Tf(d.value[e]||{},t),C.numberFormats=d.value,Vh(C,e,t)}Ug++,t&&pf&&(L(t.locale,e=>{o&&(s.value=e,C.locale=e,Th(C,s.value,c.value))}),L(t.fallbackLocale,e=>{o&&(c.value=e,C.fallbackLocale=e,Th(C,s.value,c.value))}));let De={id:Ug,locale:T,fallbackLocale:E,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,Th(C,s.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:D,get modifiers(){return x},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,C.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,C.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(e){m=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,C.fallbackFormat=h},get warnHtmlMessage(){return y},set warnHtmlMessage(e){y=e,C.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,C.escapeParameter=e},t:oe,getLocaleMessage:ve,setLocaleMessage:ye,mergeLocaleMessage:be,getPostTranslationHandler:te,setPostTranslationHandler:ne,getMissingHandler:k,setMissingHandler:re,[Og]:me};return De.datetimeFormats=O,De.numberFormats=ee,De.rt=A,De.te=he,De.tm=_e,De.d=se,De.n=ce,De.getDateTimeFormat=xe,De.setDateTimeFormat=Se,De.mergeDateTimeFormat=Ce,De.getNumberFormat=we,De.setNumberFormat=Te,De.mergeNumberFormat=Ee,De[kg]=n,De[Cg]=de,De[wg]=pe,De[Tg]=fe,De[Eg]=e=>{C.__v_emitter=e},De[Dg]=()=>{C.__v_emitter=void 0},De}var Kg=`vue-i18n: composer properties`,qg={"vue-devtools-plugin-vue-i18n":`Vue I18n DevTools`,"vue-i18n-resource-inspector":`Vue I18n DevTools`,"vue-i18n-timeline":`Vue I18n`},Jg={"vue-i18n-resource-inspector":`Search for scopes ...`},Yg={"vue-i18n-timeline":16764185},Xg;async function Zg(e,t){return new Promise((n,r)=>{try{_g({id:`vue-devtools-plugin-vue-i18n`,label:qg[`vue-devtools-plugin-vue-i18n`],packageName:`vue-i18n`,homepage:`https://vue-i18n.intlify.dev`,logo:`https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png`,componentStateTypes:[Kg],app:e},r=>{Xg=r,r.on.visitComponentTree(({componentInstance:e,treeNode:n})=>{$g(e,n,t)}),r.on.inspectComponent(({componentInstance:e,instanceData:n})=>{e.__VUE_I18N__&&n&&(t.mode===`legacy`?e.__VUE_I18N__!==t.global.__composer&&e_(n,e.__VUE_I18N__):e_(n,e.__VUE_I18N__))}),r.addInspector({id:`vue-i18n-resource-inspector`,label:qg[`vue-i18n-resource-inspector`],icon:`language`,treeFilterPlaceholder:Jg[`vue-i18n-resource-inspector`]}),r.on.getInspectorTree(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&o_(n,t)});let i=new Map;r.on.getInspectorState(async n=>{if(n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`){if(r.unhighlightElement(),l_(n,t),n.nodeId===`global`){if(!i.has(n.app)){let[e]=await r.getComponentInstances(n.app);i.set(n.app,e)}r.highlightElement(i.get(n.app))}else{let e=s_(n.nodeId,t);e&&r.highlightElement(e)}}}),r.on.editInspectorState(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&f_(n,t)}),r.addTimelineLayer({id:`vue-i18n-timeline`,label:qg[`vue-i18n-timeline`],color:Yg[`vue-i18n-timeline`]}),n(!0)})}catch(e){console.error(e),r(!1)}})}function Qg(e){return e.type.name||e.type.displayName||e.type.__file||`Anonymous`}function $g(e,t,n){let r=n.mode===`composition`?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){let n={label:`i18n (${Qg(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}function e_(e,t){let n=Kg;e.state.push({type:n,key:`locale`,editable:!0,value:t.locale.value}),e.state.push({type:n,key:`availableLocales`,editable:!1,value:t.availableLocales}),e.state.push({type:n,key:`fallbackLocale`,editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:`inheritLocale`,editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:`messages`,editable:!1,value:t_(t.messages.value)}),e.state.push({type:n,key:`datetimeFormats`,editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:`numberFormats`,editable:!1,value:t.numberFormats.value})}function t_(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];Nf(r)&&`source`in r?t[n]=a_(r):$p(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:X(r)?t[n]=t_(r):t[n]=r}),t}var n_={"<":`<`,">":`>`,'"':`"`,"&":`&`};function r_(e){return e.replace(/[<>"&]/g,i_)}function i_(e){return n_[e]||e}function a_(e){return{_custom:{type:`function`,display:`<span>ƒ</span> ${e.source?`("${r_(e.source)}")`:`(?)`}`}}}function o_(e,t){e.rootNodes.push({id:`global`,label:`Global Scope`});let n=t.mode===`composition`?t.global:t.global.__composer;for(let[r,i]of t.__instances){let a=t.mode===`composition`?i:i.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${Qg(r)} Scope`})}}function s_(e,t){let n=null;if(e!==`global`){for(let[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function c_(e,t){if(e===`global`)return t.mode===`composition`?t.global:t.global.__composer;{let n=Array.from(t.__instances.values()).find(t=>t.id.toString()===e);return n?t.mode===`composition`?n:n.__composer:null}}function l_(e,t){let n=c_(e.nodeId,t);return n&&(e.state=u_(n)),null}function u_(e){let t={},n=`Locale related info`;t[n]=[{type:n,key:`locale`,editable:!0,value:e.locale.value},{type:n,key:`fallbackLocale`,editable:!0,value:e.fallbackLocale.value},{type:n,key:`availableLocales`,editable:!1,value:e.availableLocales},{type:n,key:`inheritLocale`,editable:!0,value:e.inheritLocale}];let r=`Locale messages info`;t[r]=[{type:r,key:`messages`,editable:!1,value:t_(e.messages.value)}];{let n=`Datetime formats info`;t[n]=[{type:n,key:`datetimeFormats`,editable:!1,value:e.datetimeFormats.value}];let r=`Datetime formats info`;t[r]=[{type:r,key:`numberFormats`,editable:!1,value:e.numberFormats.value}]}return t}function d_(e,t){if(Xg){let n;t&&`groupId`in t&&(n=t.groupId,delete t.groupId),Xg.addTimelineEvent({layerId:`vue-i18n-timeline`,event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e===`compile-error`?`error`:e===`fallback`||e===`missing`?`warning`:`default`}})}}function f_(e,t){let n=c_(e.nodeId,t);if(n){let[t]=e.path;t===`locale`&&Y(e.state.value)?n.locale.value=e.state.value:t===`fallbackLocale`&&(Y(e.state.value)||Mf(e.state.value)||X(e.state.value))?n.fallbackLocale.value=e.state.value:t===`inheritLocale`&&Pf(e.state.value)&&(n.inheritLocale=e.state.value)}}function p_(e){let t=Y(e.locale)?e.locale:ah,n=Y(e.fallbackLocale)||Mf(e.fallbackLocale)||Rf(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Nf(e.missing)?e.missing:void 0,i=Pf(e.silentTranslationWarn)||Cf(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=Pf(e.silentFallbackWarn)||Cf(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=!Pf(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,c=Rf(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=Nf(e.postTranslation)?e.postTranslation:void 0,d=!Y(e.warnHtmlInMessage)||e.warnHtmlInMessage!==`off`,f=!!e.escapeParameterHtml,p=!Pf(e.sync)||e.sync,m=e.messages;if(Rf(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(Tf(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function m_(e={}){let t=Gg(p_(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return Pf(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=Pf(e)?!e:e},get silentFallbackWarn(){return Pf(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=Pf(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r.__enableEmitter=e=>{let n=t;n[Eg]&&n[Eg](e)},r.__disableEmitter=()=>{let e=t;e[Dg]&&e[Dg]()},r}function h_(e,t,n){return{beforeCreate(){let r=Bg();if(!r)throw xg(bg.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=g_(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=m_(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n){if(this===this.$root)this.$i18n=g_(e,i);else{this.$i18n=m_({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else this.$i18n=e;i.__i18nGlobal&&Rg(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){if(this.$i18n){let e=Bg();if(!e)return;let t=this.$i18n;e.__VUE_I18N__=t.__composer;let n=this.__v_emitter=cp();t.__enableEmitter&&t.__enableEmitter(n),n.on(`*`,d_)}},unmounted(){let e=Bg();if(!e)throw xg(bg.UNEXPECTED_ERROR);let t=this.$i18n;e.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off(`*`,d_),delete this.__v_emitter),t&&(t.__disableEmitter&&t.__disableEmitter(),delete e.__VUE_I18N__)),t&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t?.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n)}}}function g_(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Og](t.pluralizationRules||e.pluralizationRules);let n=Ig(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var __={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function v_({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===B?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},Df())}function y_(){return B}var b_=R({name:`i18n-t`,props:Tf({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>xf(e)||!isNaN(e)}},__),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||j_({useScope:e.scope,__useComponent:!0});return()=>{let a=()=>{let r=Object.keys(n).filter(e=>e[0]!==`_`),a=Df();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Y(e.plural)?+e.plural:e.plural);let o=v_(t,r);return i[Cg](e.keypath,o,a)},o=Tf(Df(),r),s=Y(e.tag)||X(e.tag)?e.tag:y_();return X(s)?zl(s,o,{default:a}):zl(s,o,a())}}});function x_(e){return Mf(e)&&!Y(e[0])}function S_(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t=()=>{let t={part:!0},a=Df();e.locale&&(t.locale=e.locale),Y(e.format)?t.key=e.format:X(e.format)&&(Y(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?Tf(Df(),t,{[r]:e.format[r]}):t,Df()));let o=r(e.value,t,a),s=[t.key];return Mf(o)?s=o.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return x_(r)&&(r[0].key=`${e.type}-${t}`),r}):Y(o)&&(s=[o]),s},o=Tf(Df(),a),s=Y(e.tag)||X(e.tag)?e.tag:y_();return X(s)?zl(s,o,{default:t}):zl(s,o,t())}}var C_=R({name:`i18n-n`,props:Tf({value:{type:Number,required:!0},format:{type:[String,Object]}},__),setup(e,t){let n=e.i18n||j_({useScope:e.scope,__useComponent:!0});return S_(e,t,zh,(...e)=>n[Tg](...e))}});function w_(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function T_(e){let t=t=>{Gf(Ng(jg.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));let{instance:n,value:r}=t;if(!n||!n.$)throw xg(bg.UNEXPECTED_ERROR);let i=w_(e,n.$),a=E_(r);return[Reflect.apply(i.t,i,[...D_(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);pf&&(e.__i18nWatcher=L(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{pf&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=E_(t);e.textContent=Reflect.apply(n.t,n,[...D_(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function E_(e){if(Y(e))return{path:e};if(Rf(e)){if(!(`path`in e))throw xg(bg.REQUIRED_VALUE,`path`);return e}throw xg(bg.INVALID_VALUE)}function D_(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return Y(n)&&(o.locale=n),xf(i)&&(o.plural=i),xf(a)&&(o.plural=a),[t,s,o]}function O_(e,t,...n){let r=Rf(n[0])?n[0]:{};(!Pf(r.globalInstall)||r.globalInstall)&&([b_.name,`I18nT`].forEach(t=>e.component(t,b_)),[C_.name,`I18nN`].forEach(t=>e.component(t,C_)),[H_.name,`I18nD`].forEach(t=>e.component(t,H_))),e.directive(`t`,T_(t))}var k_=vf(`global-vue-i18n`);function A_(e={}){let t=__VUE_I18N_LEGACY_API__&&Pf(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;t&&Gf(Ng(jg.DEPRECATE_LEGACY_MODE));let n=!Pf(e.globalInjection)||e.globalInjection,r=new Map,[i,a]=M_(e,t),o=vf(`vue-i18n`);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let u={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`},async install(e,...r){if(e.__VUE_I18N__=u,e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,u),Rf(r[0])){let e=r[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=V_(e,u.global)),__VUE_I18N_FULL_INSTALL__&&O_(e,u,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(h_(a,a.__composer,u));let s=e.unmount;e.unmount=()=>{i&&i(),u.dispose(),s()};{if(!await Zg(e,u))throw xg(bg.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);let n=cp();if(t){let e=a;e.__enableEmitter&&e.__enableEmitter(n)}else{let e=a;e[Eg]&&e[Eg](n)}n.on(`*`,d_)}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return u}function j_(e={}){let t=Bg();if(t==null)throw xg(bg.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw xg(bg.NOT_INSTALLED);let n=N_(t),r=F_(n),i=Lg(t),a=P_(e,i);if(a===`global`)return Rg(r,e,i),r;if(a===`parent`){let i=I_(n,t,e.__useComponent);return i??=(Uf(Ng(jg.NOT_FOUND_PARENT_SCOPE)),r),i}if(a===`isolated`){if(n.mode!==`composition`)throw xg(bg.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);let i=n,a=Tf({},e);a.__root=I_(n,t)||r;let o=Gg(a);i.__composerExtend&&(o[Ag]=i.__composerExtend(o));let s=null;{s=cp();let e=o;e[Eg]&&e[Eg](s),s.on(`*`,d_)}return Je()&&Ye(()=>{{s&&s.off(`*`,d_);let e=o;e[Dg]&&e[Dg]()}let e=o[Ag];e&&(e(),delete o[Ag])}),o}let o=n,s=o.__getInstance(t);if(s==null){let n=Tf({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=Gg(n),o.__composerExtend&&(s[Ag]=o.__composerExtend(s)),R_(o,t,s),o.__setInstance(t,s)}else a===`local`&&Uf(Ng(jg.DUPLICATE_USE_I18N_CALLING));return s}function M_(e,t){let n=qe(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>m_(e)):n.run(()=>Gg(e));if(r==null)throw xg(bg.UNEXPECTED_ERROR);return[n,r]}function N_(e){let t=mi(e.isCE?k_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw xg(e.isCE?bg.NOT_INSTALLED_WITH_PROVIDE:bg.UNEXPECTED_ERROR);return t}function P_(e,t){return wf(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function F_(e){return e.mode===`composition`?e.global:e.global.__composer}function I_(e,t,n=!1){let r=null,i=t.root,a=L_(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[kg]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function L_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function R_(e,t,n){let r=null;$a(()=>{{t.__VUE_I18N__=n,r=cp();let e=n;e[Eg]&&e[Eg](r),r.on(`*`,d_)}},t),ro(()=>{let i=n;r&&r.off(`*`,d_),i[Dg]&&i[Dg](),delete t.__VUE_I18N__,e.__deleteInstance(t);let a=i[Ag];a&&(a(),delete i[Ag])},t)}var z_=[`locale`,`fallbackLocale`,`availableLocales`],B_=[`t`,`rt`,`d`,`n`,`tm`,`te`];function V_(e,t){let n=Object.create(null);return z_.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw xg(bg.UNEXPECTED_ERROR);let i=wn(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,B_.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw xg(bg.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,B_.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var H_=R({name:`i18n-d`,props:Tf({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},__),setup(e,t){let n=e.i18n||j_({useScope:e.scope,__useComponent:!0});return S_(e,t,Fh,(...e)=>n[wg](...e))}});yg(),lh(Om),dh(eh),ph(Vm);{let e=kf();e.__INTLIFY__=!0,Am(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var U_=class extends Error{code;details;constructor(e,t,n){super(t),this.code=e,this.details=n,this.name=`ApiError`}};function W_(e){return e instanceof Error?e.message:String(e)}async function G_(e,t){let n=await fetch(e,{headers:{"content-type":`application/json`},...t}),r=await n.json().catch(()=>null);if(!r)throw Error(`${n.status} ${n.statusText}`);if(!r.ok)throw new U_(r.error.code,r.error.message,r.error.details);return r.data}function K_(){return G_(`/api/state`)}function q_(e,t){let n=new URLSearchParams({scope:e});return t&&n.set(`projectRoot`,t),G_(`/api/catalog/agents?${n.toString()}`)}function J_(e){return G_(`/api/distribute`,{method:`POST`,body:JSON.stringify(e)})}function Y_(e){return G_(`/api/undistribute`,{method:`POST`,body:JSON.stringify(e)})}function X_(e){return G_(`/api/skills/remove`,{method:`POST`,body:JSON.stringify({skills:e})})}function Z_(e){return G_(`/api/update/skills`,{method:`POST`,body:JSON.stringify({skills:e})})}function Q_(e){return G_(`/api/distribute/refresh`,{method:`POST`,body:JSON.stringify({skill:e})})}function $_(e){return G_(`/api/discover`,{method:`POST`,body:JSON.stringify({source:e})})}function ev(e={}){return G_(`/api/init/preview`,{method:`POST`,body:JSON.stringify(e)})}function tv(e={}){return G_(`/api/init/apply`,{method:`POST`,body:JSON.stringify(e)})}function nv(e){return G_(`/api/install`,{method:`POST`,body:JSON.stringify(e)})}function rv(e){let t=new URLSearchParams;return e&&t.set(`path`,e),G_(`/api/fs/browse?${t.toString()}`)}function iv(e,t){return G_(`/api/skill/file?${new URLSearchParams({name:e,path:t}).toString()}`)}function av(e){return G_(`/api/skill/files?name=${encodeURIComponent(e)}`)}function ov(e,t){let n=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return n.length===0?[...e]:e.filter(e=>{let t=`${e.name}\n${e.category}\n${e.description}`.toLowerCase();return n.every(e=>t.includes(e))})}function sv(e){return{skillCount:e.length,agentCount:e.reduce((e,t)=>e+t.distributedAgents.length,0)}}function cv(e){return{redirect:e.trim().replace(/^#\/?/,``)!==``}}var lv={active:!1,names:[]};function uv(e,t){let n=e.names.includes(t)?e.names.filter(e=>e!==t):[...e.names,t].sort();return n.length>0?{active:!0,names:n}:lv}function dv(e){return lv}function fv(e){return e.names.length}function pv(e,t){return e.names.includes(t)}function mv(e){return e>0}function hv(e){return e.filter(e=>e.hasUpdate).map(e=>e.name)}var gv=4e3,_v={notice:null,dismissAt:null};function vv(e,t,n,r,i=gv){return{notice:{kind:t,text:n},dismissAt:r+i}}function yv(e,t){return e.dismissAt===null||t<e.dismissAt?e:_v}var bv=N(_v),xv;function Sv(){function e(e,t,n=gv){bv.value=vv(bv.value,e,t,Date.now(),n),window.clearTimeout(xv);let r=bv.value.dismissAt??Date.now()+n;xv=window.setTimeout(()=>{bv.value=yv(bv.value,Date.now())},Math.max(0,r-Date.now()))}return{notice:J(()=>bv.value.notice),show:e}}function Cv(e){return e.filter(e=>e.kind===`project`).map(e=>e.targetRoot)}function wv(e,t,n){let r=e(`status.agents`,t);return n>0?`${r} · ${e(`status.projects`,n)}`:r}function Tv(e){return e.warning===null?e.hasUpdate?{kind:`updatable`}:e.distributedAgents.length>0?{kind:`distributed`,agentCount:e.distributedAgents.length,projectCount:Cv(e.distribution).length}:{kind:`unlinked`}:{kind:`warning`}}function Ev(e){return e?`toggle`:`preview`}function Dv(e){return e?`toggle`:null}function Ov(e){return typeof e==`string`?`'${e}'`:new Mv().serialize(e)}var kv=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Av=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[kv.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function jv(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&Av[n]?Av[n]:n+128,s=a<128&&Av[a]?Av[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var Mv=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?jv(e,t):n===`number`&&r===`number`?e-t:jv(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(jv),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})();function Nv(e,t){return e===t||Ov(e)===Ov(t)}function Pv(e,t,n){let r=e.findIndex(e=>Nv(e,t)),i=e.findIndex(e=>Nv(e,n));if(r===-1||i===-1)return[];let[a,o]=[r,i].sort((e,t)=>e-t);return e.slice(a,o+1)}function Fv(e,t=-1/0,n=1/0){return Math.min(n,Math.max(t,e))}function Iv(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=mi(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(pi(r,e),e)]}function Lv(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Rv(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function zv(e){return e==null}function Bv(e,t){return zv(e)?!1:Array.isArray(e)?e.some(e=>Nv(e,t)):Nv(e,t)}function Vv(e,t){return Je()?(Ye(e,t),!0):!1}function Hv(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return Vv(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}function Uv(e){let t=!1,n,r=qe(!0);return((...i)=>(t||=(n=r.run(()=>e(...i)),!0),n))}var Wv=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Gv=e=>e!==void 0,Kv=Object.prototype.toString,qv=e=>Kv.call(e)===`[object Object]`,Jv=()=>{},Yv=Xv();function Xv(){var e,t;return Wv&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Zv(e){return Array.isArray(e)?e:[e]}function Qv(e){return e||pl()}function $v(e){if(!Wv)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=qe(!0),n=r.run(()=>e(...a))),Vv(i),n))}function ey(e,t=1e4){return Nn((n,r)=>{let i=kn(e),a,o=()=>setTimeout(()=>{i=kn(e),r()},kn(t));return Vv(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function ty(e,t){Qv(t)&&no(e,t)}function ny(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=Tn(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},kn(t))}return r&&(a.value=!0,Wv&&l()),Vv(c),{isPending:hn(a),start:l,stop:c}}function ry(e=1e3,t={}){let{controls:n=!1,callback:r}=t,i=ny(r??Jv,e,t),a=J(()=>!i.isPending.value);return n?{ready:a,...i}:a}function iy(e,t,n){return L(e,t,{...n,immediate:!0})}var ay=Wv?window:void 0;Wv&&window.document,Wv&&window.navigator,Wv&&window.location;function oy(e){let t=kn(e);return t?.$el??t}function sy(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=J(()=>{let t=Zv(kn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return iy(()=>[n.value?.map(e=>oy(e))??[ay].filter(e=>e!=null),Zv(kn(n.value?e[1]:e[0])),Zv(P(n.value?e[2]:e[1])),kn(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=qv(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function cy(){let e=Tn(!1),t=pl();return t&&$a(()=>{e.value=!0},t),e}function ly(e){let t=cy();return J(()=>(t.value,!!e()))}function uy(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function dy(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=ay,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=uy(t);return sy(i,a,e=>{e.repeat&&kn(s)||c(e)&&n(e)},o)}function fy(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=ay,once:a=!1}=t,o=Tn(!1),s=J(()=>{let e=kn(r);return e?1e3/e:null}),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&n<s.value){l=i.requestAnimationFrame(u);return}if(c=t,e({delta:n,timestamp:t}),a){o.value=!1,l=null;return}l=i.requestAnimationFrame(u)}function d(){!o.value&&i&&(o.value=!0,c=0,l=i.requestAnimationFrame(u))}function f(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return n&&d(),Vv(f),{isActive:hn(o),pause:f,resume:d}}function py(e){return JSON.parse(JSON.stringify(e))}function my(e,t,n={}){let{window:r=ay,...i}=n,a,o=ly(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=L(J(()=>{let t=kn(e);return Array.isArray(t)?t.map(e=>oy(e)):[oy(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return Vv(l),{isSupported:o,stop:l}}function hy(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:u,shouldEmit:d}=r,f=pl(),p=n||f?.emit||(f==null||(i=f.$emit)==null?void 0:i.bind(f))||(f==null||(a=f.proxy)==null||(a=a.$emit)==null?void 0:a.bind(f?.proxy)),m=c;t||=`modelValue`,m||=`update:${t.toString()}`;let h=e=>o?typeof o==`function`?o(e):py(e):e,g=()=>Gv(e[t])?h(e[t]):u,_=e=>{d?d(e)&&p(m,e):p(m,e)};if(s){let n=N(g()),r=!1;return L(()=>e[t],e=>{r||(r=!0,n.value=h(e),br(()=>r=!1))}),L(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}return J({get(){return g()},set(e){_(e)}})}function gy(e){return e?e.flatMap(e=>e.type===B?gy(e.children):[e]):[]}var _y=[`INPUT`,`TEXTAREA`];function vy(e,t,n,r={}){if(!t||r.enableIgnoredElement&&_y.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;return v||_?b=yy(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function yy(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;let i=e.indexOf(t),a;if(a=i===-1?n.goForward?0:e.length-1:n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;let o=e[(a+e.length)%e.length];return o?o.hasAttribute(`disabled`)&&o.getAttribute(`disabled`)!==`false`?yy(e,o,n,r):o:null}var[by,xy]=Iv(`ConfigProvider`),Sy=fn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});function Cy(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function wy(e,t,n=`.`,r){if(!Cy(t))return wy(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:Cy(a)&&Cy(i[t])?wy(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function Ty(e){return(...t)=>t.reduce((t,n)=>wy(t,n,``,e),{})}var Ey=Ty(),Dy=$v(()=>{let e=N(new Map),t=N(),n=J(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=by({scrollBody:N(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,Sy.layersWithOutsidePointerEventsDisabled.size===0&&(document.body.style.pointerEvents=``),document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,Yv&&i?.(),t.value=void 0};return L(n,(e,o)=>{if(!Wv)return;if(!e){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=r.scrollBody?.value?typeof r.scrollBody.value==`object`?Ey({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),Yv&&(i=sy(document,`touchmove`,e=>Ay(e),{passive:!1})),br(()=>{n.value&&(document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function Oy(e){let t=Math.random().toString(36).substring(2,7),n=Dy();n.value.set(t,e??!1);let r=J({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return ty(()=>{n.value.delete(t)}),r}function ky(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:ky(t)}}function Ay(e){let t=e||window.event,n=t.target;return n instanceof Element&&ky(n)?!1:t.touches.length>1||(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var jy=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Bopomofo}]/u,My=/android/i;function Ny(){return typeof navigator<`u`&&My.test(navigator.userAgent)}function Py(e){let t=N(!1),n=N(!0),r=N(!1),i=J(()=>t.value&&n.value);function a(){t.value=!0,n.value=!0,r.value=!1}function o(e){e.data&&(jy.test(e.data)?(n.value=!0,r.value=!0):Ny()&&!r.value&&(n.value=!1))}function s(n){br(()=>{t.value=!1,e?.(n)})}return{isComposing:t,shouldDeferInput:i,handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:s}}function Fy(e){let t=by({dir:N(`ltr`)});return J(()=>e?.value||t.dir?.value||`ltr`)}function Iy(e){let t=pl(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[oe(k(t))]=(...n)=>e(t,...n)}),r}function Ly(e){let t=J(()=>P(e)),n=J(()=>new Intl.Collator(`en`,{usage:`search`,...t.value}));return{startsWith:(e,t)=>t.length===0||(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(0,t.length),t)===0),endsWith:(e,t)=>t.length===0||(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(-t.length),t)===0),contains:(e,t)=>{if(t.length===0)return!0;e=e.normalize(`NFC`),t=t.normalize(`NFC`);let r=0,i=t.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(n.value.compare(t,a)===0)return!0}return!1}}}var Ry=0;function zy(){vi(e=>{if(!Wv)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??By()),document.body.insertAdjacentElement(`beforeend`,t[1]??By()),Ry++,e(()=>{Ry===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),Ry--})})}function By(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function Vy(e){return J(()=>!kn(e)||!!oy(e)?.closest(`form`))}function Q(){let e=pl(),t=N(),n=J(()=>r());to(()=>{n.value!==r()&&On(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:oy(t)}let i=Object.assign({},e.exposed),a={};for(let t in e.props)Object.defineProperty(a,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(i).length>0)for(let e in i)Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>i[e]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function o(n){if(t.value=n,n&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},a);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:o,currentRef:t,currentElement:n}}function Hy(e){let t=pl(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=Ln(e);return J(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[k(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function Uy(e,t){let n=Hy(e),r=t?Iy(t):{};return J(()=>({...n.value,...r}))}function Wy(){let e=pl()?.vnode?.scopeId;return e?{[e]:``}:{}}var Gy=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ky=new WeakMap,qy=new WeakMap,Jy={},Yy=0,Xy=function(e){return e&&(e.host||Xy(e.parentNode))},Zy=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Xy(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Qy=function(e,t,n,r){var i=Zy(t,Array.isArray(e)?e:[e]);Jy[n]||(Jy[n]=new WeakMap);var a=Jy[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Ky.get(e)||0)+1,l=(a.get(e)||0)+1;Ky.set(e,c),a.set(e,l),o.push(e),c===1&&i&&qy.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Yy++,function(){o.forEach(function(e){var t=Ky.get(e)-1,i=a.get(e)-1;Ky.set(e,t),a.set(e,i),t||(qy.has(e)||e.removeAttribute(r),qy.delete(e)),i||e.removeAttribute(n)}),Yy--,Yy||(Ky=new WeakMap,Ky=new WeakMap,qy=new WeakMap,Jy={})}},$y=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Gy(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Qy(r,i,n,`aria-hidden`)):function(){return null}};function eb(e){let t;L(()=>oy(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=$y(e):t&&t()}),ro(()=>{t&&t()})}var tb=0;function nb(e,t=`reka`){if(e)return e;let n,r=by({useId:void 0});return n=r.useId?r.useId():`useId`in uf?$i?.():`${++tb}`,t?`${t}-${n}`:n}function rb(){return{ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,SPACE_CODE:`Space`}}function ib(e){let t=N(),n=J(()=>t.value?.width??0),r=J(()=>t.value?.height??0),i;return $a(()=>{let n=oy(e);n?(t.value={width:n.offsetWidth,height:n.offsetHeight},i=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}}),i.observe(n,{box:`border-box`})):t.value=void 0}),ro(()=>{i?.disconnect(),i=void 0}),{width:n,height:r}}function ab(e,t){let n=N(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function ob(e){let t=ey(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=Lv(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=cb(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function sb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function cb(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=sb(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function lb(e,t){let n=N({}),r=N(`none`),i=N(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??ay,{state:c,dispatch:l}=ab(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(Wv){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};L(e,async(e,i)=>{let a=i!==e;if(await br(),a){let a=r.value,o=ub(t.value);e?(l(`MOUNT`),u(`enter`),o===`none`&&u(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(l(`UNMOUNT`),u(`leave`),u(`after-leave`)):i&&a!==o?(l(`ANIMATION_OUT`),u(`leave`)):(l(`UNMOUNT`),u(`after-leave`))}},{immediate:!0});let d=e=>{if(e.target!==t.value)return;let n=ub(t.value),r=n.includes(CSS.escape(e.animationName)),a=c.value===`mounted`?`enter`:`leave`;if(r&&(u(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}n===`none`&&l(`ANIMATION_END`)},f=e=>{e.target===t.value&&(r.value=ub(t.value))},p=L(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,f),e.addEventListener(`animationcancel`,d),e.addEventListener(`animationend`,d)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,f),t?.removeEventListener(`animationcancel`,d),t?.removeEventListener(`animationend`,d))},{immediate:!0}),m=L(c,()=>{let e=ub(t.value);r.value=c.value===`mounted`?e:`none`});return ro(()=>{p(),m(),t.value&&(t.value.removeEventListener(`animationstart`,f),t.value.removeEventListener(`animationcancel`,d),t.value.removeEventListener(`animationend`,d)),o!==void 0&&s?.clearTimeout(o)}),{isPresent:J(()=>[`mounted`,`unmountSuspended`].includes(c.value))}}function ub(e){return e&&getComputedStyle(e).animationName||`none`}var db=R({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=Pn(e),a=N(),{isPresent:o}=lb(r,a);n({present:o});let s=t.default({present:o.value});s=gy(s||[]);let c=pl();if(s&&s?.length>1){let e=c?.parent?.type.name?`<${c.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
|
|
29
|
+
`)].join(`
|
|
30
|
+
`))}return()=>i.value||r.value||o.value?zl(t.default({present:o.value})[0],{ref:e=>{let t=oy(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),fb=R({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=gy(n.default()),r=e.findIndex(e=>e.type!==Lc);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?q(t,i.props):t,o=tl({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),pb=[`area`,`img`,`input`],$=R({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&pb.includes(r)?()=>zl(r,t):r===`template`?()=>zl(fb,t,{default:n.default}):()=>zl(e.as,t,{default:n.default})}});function mb(){let e=N();return{primitiveElement:e,currentElement:J(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:oy(e))}}var[hb,gb]=Iv(`DialogRoot`),_b=R({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=hy(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=N(),a=N(),{modal:o,unmountOnHide:s}=Pn(n);return gb({open:r,modal:o,unmountOnHide:s,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>z(e.$slots,`default`,{open:P(r),close:()=>r.value=!1})}}),vb=R({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;Q();let n=hb();return(e,r)=>(V(),U(P($),q(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>P(n).onOpenChange(!1)}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`type`]))}}),yb=`dismissableLayer.pointerDownOutside`,bb=`dismissableLayer.focusOutside`;function xb(e,t){if(!(t instanceof Element))return!1;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function Sb(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=N(!1),a=N(()=>{});return vi(o=>{if(!Wv||!kn(n))return;let s=async n=>{let o=n.target;if(!(!t?.value||!o)){if(xb(t.value,o)){i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function i(){Rv(yb,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,a.value),a.value=i,r.addEventListener(`click`,a.value,{once:!0})):i()}else r.removeEventListener(`click`,a.value);i.value=!1}},c=window.setTimeout(()=>{r.addEventListener(`pointerdown`,s)},0);o(()=>{window.clearTimeout(c),r.removeEventListener(`pointerdown`,s),r.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{kn(n)&&(i.value=!0)}}}function Cb(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=N(!1);return vi(a=>{if(!Wv||!kn(n))return;let o=async n=>{if(!t?.value)return;await br(),await br();let r=n.target;!t.value||!r||xb(t.value,r)||n.target&&!i.value&&Rv(bb,e,{originalEvent:n})};r.addEventListener(`focusin`,o),a(()=>r.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{kn(n)&&(i.value=!0)},onBlurCapture:()=>{kn(n)&&(i.value=!1)}}}var wb=R({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=Q(),o=J(()=>a.value?.ownerDocument??globalThis.document),s=J(()=>Sy.layersRoot),c=J(()=>a.value?Array.from(s.value).indexOf(a.value):-1),l=J(()=>Sy.layersWithOutsidePointerEventsDisabled.size>0),u=J(()=>{let e=Array.from(s.value),[t]=[...Sy.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return c.value>=n}),d=Sb(async e=>{let t=[...Sy.branches].some(t=>t?.contains(e.target));!n.present||!u.value||t||(r(`pointerDownOutside`,e),r(`interactOutside`,e),await br(),e.defaultPrevented||r(`dismiss`))},a,()=>n.present),f=Cb(e=>{let t=[...Sy.branches].some(t=>t?.contains(e.target));!n.present||t||(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},a);return dy(`Escape`,e=>{n.present&&c.value===s.value.size-1&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))}),L([a,()=>n.disableOutsidePointerEvents,()=>n.present],([e,t,n],r,i)=>{!e||!n||t&&(Sy.layersWithOutsidePointerEventsDisabled.size===0&&(Sy.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents=`none`),Sy.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{Sy.layersWithOutsidePointerEventsDisabled.delete(e),Sy.layersWithOutsidePointerEventsDisabled.size===0&&!zv(Sy.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=Sy.originalBodyPointerEvents)}))},{immediate:!0}),L([a,()=>n.present],([e,t],n,r)=>{!e||!t||(s.value.add(e),r(()=>{s.value.delete(e)}))},{immediate:!0}),vi(e=>{e(()=>{a.value&&(s.value.delete(a.value),Sy.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(e,t)=>(V(),U(P($),{ref:P(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:me({pointerEvents:l.value?u.value?`auto`:`none`:void 0}),onFocusCapture:P(f).onFocusCapture,onBlurCapture:P(f).onBlurCapture,onPointerdownCapture:P(d).onPointerDownCapture},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),Tb=R({__name:`DismissableLayerBranch`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=Q(),i=null;return $a(()=>{i=r.value,i&&Sy.branches.add(i)}),ro(()=>{i&&=(Sy.branches.delete(i),null)}),(e,r)=>(V(),U(P($),q({ref:P(n)},t),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Eb=Uv(()=>N([]));function Db(){let e=Eb();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=Ob(e.value,t),e.value.unshift(t)},remove(t){e.value=Ob(e.value,t),e.value[0]?.resume()}}}function Ob(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var kb=`focusScope.autoFocusOnMount`,Ab=`focusScope.autoFocusOnUnmount`,jb={bubbles:!1,cancelable:!0};function Mb(e,{select:t=!1}={}){let n=Lv();for(let r of e)if(Rb(r,{select:t}),Lv()!==n)return!0}function Nb(e){let t=Pb(e);return[Fb(t,e),Fb(t.reverse(),e)]}function Pb(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fb(e,t){for(let n of e)if(!Ib(n,{upTo:t}))return n}function Ib(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Lb(e){return e instanceof HTMLInputElement&&`select`in e}function Rb(e,{select:t=!1}={}){if(e&&e.focus){let n=Lv();e.focus({preventScroll:!0}),e!==n&&Lb(e)&&t&&e.select()}}var zb=R({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=Q(),o=N(null),s=Db(),c=fn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});vi(e=>{if(!Wv)return;let t=a.value;if(!n.trapped)return;function r(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:Rb(o.value,{select:!0})}function i(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||Rb(o.value,{select:!0}))}function s(e){let n=o.value;if(n===null||!e.some(e=>e.removedNodes.length>0))return;let r=Lv();r&&t.contains(r)||t.contains(n)||Rb(t)}document.addEventListener(`focusin`,r),document.addEventListener(`focusout`,i);let l=new MutationObserver(s);t&&l.observe(t,{childList:!0,subtree:!0}),e(()=>{document.removeEventListener(`focusin`,r),document.removeEventListener(`focusout`,i),l.disconnect()})});function l(e,t){let n=new CustomEvent(kb,jb),i=e=>r(`mountAutoFocus`,e);e.addEventListener(kb,i),e.dispatchEvent(n),e.removeEventListener(kb,i),n.defaultPrevented||(Mb(Pb(e),{select:!0}),Lv()===t&&Rb(e))}vi(async e=>{let t=a.value;if(await br(),!t)return;n.present!==!1&&s.add(c);let i=Lv();!t.contains(i)&&n.present!==!1&&l(t,i),e(()=>{let e=new CustomEvent(Ab,jb),n=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(Ab,n),t.dispatchEvent(e),t.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||Rb(i??document.body,{select:!0}),t.removeEventListener(Ab,n),s.remove(c),t.removeAttribute(`data-focus-scope-unmounting`)},0)})}),L(()=>n.present,async(e,t)=>{if(!Wv)return;if(e===!1&&t===!0){s.remove(c);return}if(e!==!0||t!==!1)return;s.add(c),await br();let n=a.value;if(!n)return;let r=Lv();n.contains(r)||l(n,r)});function u(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=Lv();if(t&&r){let t=e.currentTarget,[i,a]=Nb(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&Rb(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&Rb(a,{select:!0})):r===t&&e.preventDefault()}}return(e,t)=>(V(),U(P($),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:u},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),Bb=`menu.itemSelect`,Vb=[`Enter`,` `],Hb=[`ArrowDown`,`PageUp`,`Home`],Ub=[`ArrowUp`,`PageDown`,`End`],Wb=[...Hb,...Ub];[...Vb],[...Vb];function Gb(e){return e?`open`:`closed`}function Kb(e){let t=Lv();for(let n of e)if(n===t||(n.focus(),Lv()!==t))return}function qb(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Jb(e,t){return t?qb({x:e.clientX,y:e.clientY},t):!1}function Yb(e){return e.pointerType===`mouse`}var Xb=`DialogTitle`,Zb=`DialogContent`;function Qb({titleName:e=Xb,contentName:t=Zb,componentLink:n=`dialog.html#title`,titleId:r,descriptionId:i,contentElement:a}){let o=`Warning: \`${t}\` requires a \`${e}\` for the component to be accessible for screen reader users.
|
|
31
|
+
|
|
32
|
+
If you want to hide the \`${e}\`, you can wrap it with our VisuallyHidden component.
|
|
33
|
+
|
|
34
|
+
For more information, see https://www.reka-ui.com/docs/components/${n}`,s=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${t}.`;$a(()=>{document.getElementById(r)||console.warn(o);let e=a.value?.getAttribute(`aria-describedby`);i&&e&&(document.getElementById(i)||console.warn(s))})}var $b=R({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=hb(),{forwardRef:a,currentElement:o}=Q();return i.titleId||=nb(void 0,`reka-dialog-title`),i.descriptionId||=nb(void 0,`reka-dialog-description`),$a(()=>{i.contentElement=o,Lv()!==document.body&&(i.triggerElement.value=Lv())}),Qb({titleName:`DialogTitle`,contentName:`DialogContent`,componentLink:`dialog.html#title`,titleId:i.titleId,descriptionId:i.descriptionId,contentElement:o}),(e,t)=>(V(),U(P(zb),{"as-child":``,loop:``,trapped:n.trapFocus,present:n.present,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:I(()=>[G(P(wb),q({id:P(i).contentId,ref:P(a),as:e.as,"as-child":e.asChild,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":P(i).descriptionId,"aria-labelledby":P(i).titleId,"data-state":P(Gb)(P(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>P(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`present`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`,`present`]))}}),ex=R({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=hb(),a=Iy(r),{forwardRef:o,currentElement:s}=Q();eb(J(()=>n.present?s.value:void 0));let c=J(()=>{let{present:e,...t}=n;return t});return L(()=>n.present,(e,t)=>{!e&&t&&i.triggerElement.value?.focus()}),(e,t)=>(V(),U($b,q({...c.value,...P(a)},{ref:P(o),present:e.present,"trap-focus":P(i).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),P(i).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`present`,`trap-focus`,`disable-outside-pointer-events`]))}}),tx=R({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=Iy(t);Q();let i=hb(),a=N(!1),o=N(!1),s=J(()=>{let{present:e,...t}=n;return t});return L(()=>n.present,(e,t)=>{!e&&t&&(a.value||i.triggerElement.value?.focus(),a.value=!1,o.value=!1)}),(e,t)=>(V(),U($b,q({...s.value,...P(r)},{present:e.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(a.value||P(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;P(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`present`]))}}),nx=R({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=hb(),a=Iy(r),{forwardRef:o}=Q();return(e,t)=>(V(),U(P(db),{present:e.forceMount||P(i).open.value,"force-mount":e.forceMount||!P(i).unmountOnHide.value},{default:I(({present:t})=>[P(i).modal.value?di((V(),U(ex,q({key:0,ref:P(o),present:P(i).unmountOnHide.value||t},{...n,...P(a),...e.$attrs}),{default:I(()=>[z(e.$slots,`default`)]),_:2},1040,[`present`])),[[Eu,P(i).unmountOnHide.value||t]]):di((V(),U(tx,q({key:1,ref:P(o),present:P(i).unmountOnHide.value||t},{...n,...P(a),...e.$attrs}),{default:I(()=>[z(e.$slots,`default`)]),_:2},1040,[`present`])),[[Eu,P(i).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`]))}}),rx=R({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){let t=e,n=hb(),r=Oy(t.present);return L(()=>t.present,e=>r.value=e),Q(),(e,t)=>(V(),U(P($),{as:e.as,"as-child":e.asChild,"data-state":P(n).open.value?`open`:`closed`,style:{"pointer-events":`auto`},onPointerdown:t[0]||=Gd(()=>{},[`left`,`self`,`prevent`])},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),ix=R({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=hb(),{forwardRef:n}=Q();return(e,r)=>P(t)?.modal.value?(V(),U(P(db),{key:0,present:e.forceMount||P(t).open.value,"force-mount":e.forceMount||!P(t).unmountOnHide.value},{default:I(({present:r})=>[di(G(rx,q(e.$attrs,{ref:P(n),as:e.as,"as-child":e.asChild,present:P(t).unmountOnHide.value||r}),{default:I(()=>[z(e.$slots,`default`)]),_:2},1040,[`as`,`as-child`,`present`]),[[Eu,P(t).unmountOnHide.value||r]])]),_:3},8,[`present`,`force-mount`])):K(`v-if`,!0)}}),ax=R({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e,n=by({}),r=J(()=>t.to??n.teleportTo?.value??`body`),i=cy();return(e,t)=>P(i)||e.forceMount?(V(),U(Fi,{key:0,to:r.value,disabled:e.disabled,defer:e.defer},[z(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):K(`v-if`,!0)}}),ox=R({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(V(),U(P(ax),xe(el(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),sx=R({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=hb();return Q(),(e,r)=>(V(),U(P($),q(t,{id:P(n).titleId}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`]))}}),cx=`data-reka-collection-item`;function lx(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;n?(i={collectionRef:N(),itemMap:N(new Map)},pi(r,i)):i=mi(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${cx}]`)),r=new Map(n.map((e,t)=>[e,t])),a=Array.from(i.itemMap.value.values()).sort((e,t)=>(r.get(e.ref)??-1)-(r.get(t.ref)??-1));return e?a:a.filter(e=>e.ref.dataset.disabled!==``)},o=R({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=mb();return L(a,()=>{i.collectionRef.value=a.value}),()=>zl(fb,{ref:r,...n},t)}}),s=R({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=mb();return vi(t=>{if(a.value){let n=xn(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>zl(fb,{...n,[cx]:``,ref:r},t)}});return{getItems:a,reactiveItems:J(()=>Array.from(i.itemMap.value.values())),itemMapSize:J(()=>i.itemMap.value.size),CollectionSlot:o,CollectionItem:s}}var ux=R({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(e,t)=>(V(),U(P($),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`focusable`||e.feature===`fully-hidden`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`,top:`-1px`,left:`-1px`}},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),dx=R({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,{primitiveElement:n,currentElement:r}=mb();return L(J(()=>t.checked??t.value),(e,t)=>{if(!r.value)return;let n=r.value,i=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(i,`value`).set;if(a&&e!==t){let t=new Event(`input`,{bubbles:!0}),r=new Event(`change`,{bubbles:!0});a.call(n,e),n.dispatchEvent(t),n.dispatchEvent(r)}}),(e,r)=>(V(),U(ux,q({ref_key:`primitiveElement`,ref:n},{...t,...e.$attrs},{as:`input`}),null,16))}}),fx=R({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,n=J(()=>typeof t.value==`object`&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=J(()=>typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`boolean`||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value==`object`&&Array.isArray(t.value)?t.value.flatMap((e,n)=>typeof e==`object`?Object.entries(e).map(([e,r])=>({name:`${t.name}[${n}][${e}]`,value:r})):{name:`${t.name}[${n}]`,value:e}):t.value!==null&&typeof t.value==`object`&&!Array.isArray(t.value)?Object.entries(t.value).map(([e,n])=>({name:`${t.name}[${e}]`,value:n})):[]);return(e,i)=>(V(),H(B,null,[K(` We render single input if it's required `),n.value?(V(),U(dx,q({key:e.name},{...t,...e.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`])):(V(!0),H(B,{key:1},_o(r.value,n=>(V(),U(dx,q({key:n.name},{ref_for:!0},{...t,...e.$attrs},{name:n.name,value:n.value}),null,16,[`name`,`value`]))),128))],2112))}});function px(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(e=>mx(e,t,n)):mx(e,t,n)}function mx(e,t,n){return e===void 0||t===void 0?!1:typeof e==`string`?e===t:typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]===t?.[n]:Nv(e,t)}var hx=`rovingFocusGroup.onEntryFocus`,gx={bubbles:!1,cancelable:!0},_x={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function vx(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function yx(e,t,n){let r=vx(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return _x[r]}function bx(e,t=!1){let n=Lv();for(let r of e)if(r===n||(r.focus({preventScroll:t}),Lv()!==n))return}function xx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[Sx,Cx]=Iv(`ListboxRoot`),[wx,Tx]=Iv(`ListboxHighlightScroll`),Ex=R({__name:`ListboxRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:`vertical`},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:`toggle`},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`],setup(e,{expose:t,emit:n}){let r=e,i=n,{multiple:a,highlightOnHover:o,orientation:s,disabled:c,selectionBehavior:l,dir:u}=Pn(r),{getItems:d}=lx({isProvider:!0}),{handleTypeaheadSearch:f}=ob(),{primitiveElement:p,currentElement:m}=mb(),h=rb(),g=Fy(u),_=wx(null);Tx({suppressHighlightScroll:N(!1),onHighlightScrollRequest:()=>{}});let v=Vy(m),y=N(),b=N(!1),x=N(!0),S=hy(r,`modelValue`,i,{defaultValue:r.defaultValue??(a.value?[]:void 0),passive:r.modelValue===void 0,deep:!0});function C(e){if(b.value=!0,r.multiple){let t=Array.isArray(S.value)?[...S.value]:[],n=t.findIndex(t=>mx(t,e,r.by));r.selectionBehavior===`toggle`?(n===-1?t.push(e):t.splice(n,1),S.value=t):(S.value=[e],y.value=e)}else r.selectionBehavior===`toggle`&&mx(S.value,e,r.by)?S.value=void 0:S.value=e;setTimeout(()=>{b.value=!1},1)}let w=N(null),T=N(null),E=N(!1),D=N(!1),O=Hv(),ee=Hv(),te=Hv();function ne(){return d().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)}function k(e,t=!0,n){if(!e)return;w.value=e;let r=_?.suppressHighlightScroll.value??!1;(n??x.value)&&(r?w.value.focus({preventScroll:!0}):w.value.focus()),r?_?.onHighlightScrollRequest(t?()=>{let e=w.value;e?.isConnected&&e.scrollIntoView({block:`nearest`})}:void 0):t&&w.value.scrollIntoView({block:`nearest`});let a=d().find(t=>t.ref===e);i(`highlight`,a)}function re(e){if(E.value)te.trigger(e);else{let t=d().find(t=>mx(t.value,e,r.by));t&&(w.value=t.ref,k(t.ref))}}function ie(e){if(w.value&&w.value.isConnected){if(e.ctrlKey||e.metaKey||e.altKey)return;e.preventDefault(),e.stopPropagation(),D.value||w.value.click()}}function ae(e){if(x.value){if(b.value=!0,E.value)ee.trigger(e);else{let t=e.altKey||e.ctrlKey||e.metaKey;if(t&&e.key===`a`&&a.value){let t=d(),n=t.map(e=>e.value);S.value=[...n],e.preventDefault();let r=t.at(-1);r&&k(r.ref)}else if(!t){let t=f(e.key,d());t&&k(t)}}setTimeout(()=>{b.value=!1},1)}}function oe(){D.value=!0}function A(){br(()=>{D.value=!1})}function se(){br(()=>{ue(new KeyboardEvent(`keydown`,{key:`PageUp`}))})}function ce(e){let t=w.value;t?.isConnected&&(T.value=t),w.value=null,i(`leave`,e)}function le(e){let t=new CustomEvent(`listbox.entryFocus`,{bubbles:!1,cancelable:!0});if(e.currentTarget?.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){if(T.value)k(T.value);else{let e=ne()?.[0];k(e)}}}function ue(e){let t=yx(e,s.value,g.value);if(!t)return;let n=ne();if(w.value){if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let e=n.indexOf(w.value);n=n.slice(e+1)}de(e,n[0])}if(n.length){let e=!w.value&&t===`prev`?n.length-1:0;k(n[e])}if(E.value)return ee.trigger(e)}function de(e,t){if(!(E.value||r.selectionBehavior!==`replace`||!a.value||!Array.isArray(S.value))&&!((e.altKey||e.ctrlKey||e.metaKey)&&!e.shiftKey)&&e.shiftKey){let n=d().filter(e=>e.ref.dataset.disabled!==``),r=n.find(e=>e.ref===t)?.value;if(e.key===h.END?r=n.at(-1)?.value:e.key===h.HOME&&(r=n[0]?.value),!r||!y.value)return;let i=Pv(n.map(e=>e.value),y.value,r);S.value=i}}async function fe(e,t=!0){if(Wv){if(await br(),E.value)O.trigger({event:e,scroll:t});else{let e=ne(),n=e.find(e=>e.dataset.state===`checked`),r=t?void 0:!1;n?k(n,t,r):e.length&&k(e[0],t,r)}}}let pe=!1;return L(S,()=>{if(!b.value){let e=pe;pe=!0,br(()=>{fe(void 0,e)})}},{immediate:!0,deep:!0}),t({highlightedElement:w,highlightItem:re,highlightFirstItem:se,highlightSelected:fe,getItems:d}),Cx({modelValue:S,onValueChange:C,multiple:a,orientation:s,dir:g,disabled:c,highlightOnHover:o,highlightedElement:w,isVirtual:E,virtualFocusHook:O,virtualKeydownHook:ee,virtualHighlightHook:te,by:r.by,firstValue:y,selectionBehavior:l,focusable:x,onLeave:ce,onEnter:le,changeHighlight:k,onKeydownEnter:ie,onKeydownNavigation:ue,onKeydownTypeAhead:ae,onCompositionStart:oe,onCompositionEnd:A,highlightFirstItem:se}),(e,t)=>(V(),U(P($),{ref_key:`primitiveElement`,ref:p,as:e.as,"as-child":e.asChild,dir:P(g),"data-disabled":P(c)?``:void 0,onPointerleave:ce,onFocusout:t[0]||=async e=>{let t=e.relatedTarget||e.target;await br(),w.value&&P(m)&&!P(m).contains(t)&&ce(e)}},{default:I(()=>[z(e.$slots,`default`,{modelValue:P(S)}),P(v)&&e.name?(V(),U(P(fx),{key:0,name:e.name,value:P(S),disabled:P(c),required:e.required},null,8,[`name`,`value`,`disabled`,`required`])):K(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`dir`,`data-disabled`]))}}),Dx=R({__name:`ListboxContent`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{CollectionSlot:t}=lx(),n=Sx(),r=ey(!1,10);return(e,i)=>(V(),U(P(t),null,{default:I(()=>[G(P($),{role:`listbox`,as:e.as,"as-child":e.asChild,tabindex:P(n).focusable.value?P(n).highlightedElement.value?`-1`:`0`:`-1`,"aria-orientation":P(n).orientation.value,"aria-multiselectable":!!P(n).multiple.value,"data-orientation":P(n).orientation.value,onMousedown:i[0]||=Gd(e=>r.value=!0,[`left`]),onFocus:i[1]||=e=>{P(r)||P(n).onEnter(e)},onKeydown:[i[2]||=qd(e=>{(P(n).orientation.value!==`vertical`||e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)&&(P(n).orientation.value!==`horizontal`||e.key!==`ArrowUp`&&e.key!==`ArrowDown`)&&(e.preventDefault(),P(n).focusable.value&&P(n).onKeydownNavigation(e))},[`down`,`up`,`left`,`right`,`home`,`end`]),qd(P(n).onKeydownEnter,[`enter`]),P(n).onKeydownTypeAhead]},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`tabindex`,`aria-orientation`,`aria-multiselectable`,`data-orientation`,`onKeydown`])]),_:3}))}}),Ox=R({__name:`ListboxFilter`,props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=hy(n,`modelValue`,t,{defaultValue:``,passive:n.modelValue===void 0}),i=Sx(),{primitiveElement:a,currentElement:o}=mb(),s=J(()=>n.disabled||i.disabled.value||!1),c=N();bi(()=>c.value=i.highlightedElement.value?.id),$a(()=>{i.focusable.value=!1,setTimeout(()=>{n.autoFocus&&o.value?.focus()},1)}),ro(()=>{i.focusable.value=!0});let{isComposing:l,shouldDeferInput:u,handleCompositionStart:d,handleCompositionUpdate:f,handleCompositionEnd:p}=Py(e=>{r.value=e.target.value,i.onCompositionEnd(),i.highlightFirstItem()});function m(){i.onCompositionStart(),d()}function h(e){u.value||(r.value=e.target.value,i.highlightFirstItem())}function g(e){l.value||(e.preventDefault(),i.onKeydownNavigation(e))}function _(e){l.value||i.onKeydownEnter(e)}return(e,t)=>(V(),U(P($),{ref_key:`primitiveElement`,ref:a,as:e.as,"as-child":e.asChild,value:P(r),disabled:s.value?``:void 0,"data-disabled":s.value?``:void 0,"aria-disabled":s.value??void 0,"aria-activedescendant":c.value,type:`text`,onKeydown:[qd(g,[`down`,`up`,`home`,`end`]),qd(_,[`enter`])],onInput:h,onCompositionstart:m,onCompositionupdate:P(f),onCompositionend:P(p)},{default:I(()=>[z(e.$slots,`default`,{modelValue:P(r)})]),_:3},8,[`as`,`as-child`,`value`,`disabled`,`data-disabled`,`aria-disabled`,`aria-activedescendant`,`onCompositionupdate`,`onCompositionend`]))}}),[kx,Ax]=Iv(`ListboxGroup`),jx=R({__name:`ListboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=nb(void 0,`reka-listbox-group`);return Ax({id:n}),(e,r)=>(V(),U(P($),q({role:`group`},t,{"aria-labelledby":P(n)}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),Mx=`listbox.select`,[Nx,Px]=Iv(`ListboxItem`),Fx=R({__name:`ListboxItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=nb(void 0,`reka-listbox-item`),{CollectionItem:a}=lx(),{forwardRef:o,currentElement:s}=Q(),c=Sx(),l=J(()=>s.value!=null&&s.value===c.highlightedElement.value),u=J(()=>px(c.modelValue.value,n.value,c.by)),d=J(()=>c.disabled.value||n.disabled);async function f(e){r(`select`,e),!e?.defaultPrevented&&!d.value&&e&&(c.onValueChange(n.value),c.changeHighlight(s.value))}function p(e){Rv(Mx,f,{originalEvent:e,value:n.value})}return Px({isSelected:u}),(e,t)=>(V(),U(P(a),{value:e.value},{default:I(()=>[Vl([l.value,u.value,d.value,P(c).focusable.value],()=>G(P($),q({id:P(i)},e.$attrs,{ref:P(o),role:`option`,tabindex:P(c).focusable.value?l.value?`0`:`-1`:-1,"aria-selected":u.value,as:e.as,"as-child":e.asChild,disabled:d.value?``:void 0,"data-disabled":d.value?``:void 0,"data-highlighted":l.value?``:void 0,"data-state":u.value?`checked`:`unchecked`,onClick:p,onKeydown:qd(Gd(p,[`prevent`]),[`space`]),onPointermove:t[0]||=()=>{P(c).highlightedElement.value!==P(s)&&P(c).highlightOnHover.value&&P(c).changeHighlight(P(s),!1,!1)}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`tabindex`,`aria-selected`,`as`,`as-child`,`disabled`,`data-disabled`,`data-highlighted`,`data-state`,`onKeydown`]),t,1)]),_:3},8,[`value`]))}}),[Ix,Lx]=Iv(`PopperRoot`),Rx=R({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=N();return Lx({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>z(e.$slots,`default`)}}),zx=R({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=Q(),i=Ix();return yi(()=>{i.onAnchorChange(t.reference??r.value)}),(e,t)=>(V(),U(P($),{ref:P(n),as:e.as,"as-child":e.asChild},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});function Bx(e){return e!==null}function Vx(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Hx(n),u={start:e.dir===`rtl`?`100%`:`0%`,center:`50%`,end:e.dir===`rtl`?`0%`:`100%`}[l],d={start:`0%`,center:`50%`,end:`100%`}[l],f=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,m=``,h=``;return c===`bottom`?(m=a?u:`${f}px`,h=`${-s}px`):c===`top`?(m=a?u:`${f}px`,h=`${r.floating.height+s}px`):c===`right`?(m=`${-s}px`,h=a?d:`${p}px`):c===`left`&&(m=`${r.floating.width+s}px`,h=a?d:`${p}px`),{data:{x:m,y:h}}}}}function Hx(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ux=[`top`,`right`,`bottom`,`left`],Wx=Math.min,Gx=Math.max,Kx=Math.round,qx=Math.floor,Jx=e=>({x:e,y:e}),Yx={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Xx(e,t,n){return Gx(e,Wx(t,n))}function Zx(e,t){return typeof e==`function`?e(t):e}function Qx(e){return e.split(`-`)[0]}function $x(e){return e.split(`-`)[1]}function eS(e){return e===`x`?`y`:`x`}function tS(e){return e===`y`?`height`:`width`}function nS(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function rS(e){return eS(nS(e))}function iS(e,t,n){n===void 0&&(n=!1);let r=$x(e),i=rS(e),a=tS(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=pS(o)),[o,pS(o)]}function aS(e){let t=pS(e);return[oS(e),t,oS(t)]}function oS(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var sS=[`left`,`right`],cS=[`right`,`left`],lS=[`top`,`bottom`],uS=[`bottom`,`top`];function dS(e,t,n){switch(e){case`top`:case`bottom`:return n?t?cS:sS:t?sS:cS;case`left`:case`right`:return t?lS:uS;default:return[]}}function fS(e,t,n,r){let i=$x(e),a=dS(Qx(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(oS)))),a}function pS(e){let t=Qx(e);return Yx[t]+e.slice(t.length)}function mS(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function hS(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:mS(e)}function gS(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _S(e,t,n){let{reference:r,floating:i}=e,a=nS(t),o=rS(t),s=tS(o),c=Qx(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=$x(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function vS(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Zx(t,e),p=hS(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=gS(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=gS(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var yS=50,bS=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:vS},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=_S(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<yS&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=_S(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},xS=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Zx(e,t)||{};if(l==null)return{};let d=hS(u),f={x:n,y:r},p=rS(i),m=tS(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Wx(d[_],T),D=Wx(d[v],T),O=C-h[m]-D,ee=C/2-h[m]/2+w,te=Xx(E,ee,O),ne=!c.arrow&&$x(i)!=null&&ee!==te&&a.reference[m]/2-(ee<E?E:D)-h[m]/2<0,k=ne?ee<E?ee-E:ee-O:0;return{[p]:f[p]+k,data:{[p]:te,centerOffset:ee-te-k,...ne&&{alignmentOffset:k}},reset:ne}}}),SS=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Zx(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Qx(r),_=nS(o),v=Qx(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[pS(o)]:aS(o)),x=p!==`none`;!d&&x&&b.push(...fS(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=iS(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===nS(t)||T.every(e=>nS(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=nS(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function CS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wS(e){return Ux.some(t=>e[t]>=0)}var TS=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Zx(e,t);switch(i){case`referenceHidden`:{let e=CS(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:wS(e)}}}case`escaped`:{let e=CS(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:wS(e)}}}default:return{}}}}},ES=new Set([`left`,`top`]);async function DS(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Qx(n),s=$x(n),c=nS(n)===`y`,l=ES.has(o)?-1:1,u=a&&c?-1:1,d=Zx(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var OS=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await DS(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},kS=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Zx(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=nS(i),p=eS(f),m=u[p],h=u[f],g=(e,t)=>Xx(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},AS=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Zx(e,t),u={x:n,y:r},d=nS(i),f=eS(d),p=u[f],m=u[d],h=Zx(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ES.has(Qx(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},jS=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Zx(e,t),c=await i.detectOverflow(t,s),l=Qx(n),u=$x(n),d=nS(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Wx(p-c[m],g),y=Wx(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Gx(c.left,c.right):S=p-2*Gx(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function MS(){return typeof window<`u`}function NS(e){return IS(e)?(e.nodeName||``).toLowerCase():`#document`}function PS(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function FS(e){return((IS(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function IS(e){return MS()?e instanceof Node||e instanceof PS(e).Node:!1}function LS(e){return MS()?e instanceof Element||e instanceof PS(e).Element:!1}function RS(e){return MS()?e instanceof HTMLElement||e instanceof PS(e).HTMLElement:!1}function zS(e){return!MS()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof PS(e).ShadowRoot}function BS(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ZS(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function VS(e){return/^(table|td|th)$/.test(NS(e))}function HS(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var US=/transform|translate|scale|rotate|perspective|filter/,WS=/paint|layout|strict|content/,GS=e=>!!e&&e!==`none`,KS;function qS(e){let t=LS(e)?ZS(e):e;return GS(t.transform)||GS(t.translate)||GS(t.scale)||GS(t.rotate)||GS(t.perspective)||!YS()&&(GS(t.backdropFilter)||GS(t.filter))||US.test(t.willChange||``)||WS.test(t.contain||``)}function JS(e){let t=$S(e);for(;RS(t)&&!XS(t);){if(qS(t))return t;if(HS(t))return null;t=$S(t)}return null}function YS(){return KS??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),KS}function XS(e){return/^(html|body|#document)$/.test(NS(e))}function ZS(e){return PS(e).getComputedStyle(e)}function QS(e){return LS(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $S(e){if(NS(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||zS(e)&&e.host||FS(e);return zS(t)?t.host:t}function eC(e){let t=$S(e);return XS(t)?(e.ownerDocument||e).body:RS(t)&&BS(t)?t:eC(t)}function tC(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=eC(e),i=r===e.ownerDocument?.body,a=PS(r);if(i){let e=nC(a);return t.concat(a,a.visualViewport||[],BS(r)?r:[],e&&n?tC(e):[])}return t.concat(r,tC(r,[],n))}function nC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rC(e){let t=ZS(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=RS(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Kx(n)!==a||Kx(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function iC(e){return LS(e)?e:e.contextElement}function aC(e){let t=iC(e);if(!RS(t))return Jx(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=rC(t),o=(a?Kx(n.width):n.width)/r,s=(a?Kx(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var oC=Jx(0);function sC(e){let t=PS(e);return!YS()||!t.visualViewport?oC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cC(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===PS(e)}function lC(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=iC(e),o=Jx(1);t&&(r?LS(r)&&(o=aC(r)):o=aC(e));let s=cC(a,n,r)?sC(a):Jx(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=PS(a),t=LS(r)?PS(r):r,n=e,i=nC(n);for(;i&&t!==n;){let e=aC(i),t=i.getBoundingClientRect(),r=ZS(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=PS(i),i=nC(n)}}return gS({width:u,height:d,x:c,y:l})}function uC(e,t){let n=QS(e).scrollLeft;return t?t.left+n:lC(FS(e)).left+n}function dC(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-uC(e,n),y:n.top+t.scrollTop}}function fC(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=FS(r),s=t?HS(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Jx(1),u=Jx(0),d=RS(r);if((d||!a)&&((NS(r)!==`body`||BS(o))&&(c=QS(r)),d)){let e=lC(r);l=aC(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?dC(o,c):Jx(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function pC(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function mC(e){let t=QS(e),n=e.ownerDocument.body,r=Gx(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Gx(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+uC(e),o=-t.scrollTop;return ZS(n).direction===`rtl`&&(a+=Gx(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var hC=25;function gC(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=PS(e),a=FS(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!YS()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(uC(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=hC&&(s-=o)}return{width:s,height:c,x:l,y:u}}function _C(e,t){let n=lC(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=aC(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function vC(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=gC(e,n,t);else if(t===`document`)r=mC(FS(e));else if(LS(t))r=_C(t,n);else{let n=sC(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gS(r)}function yC(e,t){let n=t.get(e);if(n)return n;let r=tC(e,[],!1).filter(e=>LS(e)&&NS(e)!==`body`),i=null,a=ZS(e).position===`fixed`,o=a?$S(e):e;for(;LS(o)&&!XS(o);){let e=ZS(o),t=qS(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=$S(o)}return t.set(e,r),r}function bC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?HS(t)?[]:yC(t,this._c):[].concat(n),r],o=vC(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=vC(t,a[e],i);s=Gx(n.top,s),c=Wx(n.right,c),l=Wx(n.bottom,l),u=Gx(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function xC(e){let{width:t,height:n}=rC(e);return{width:t,height:n}}function SC(e,t,n){let r=RS(t),i=FS(t),a=n===`fixed`,o=lC(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Jx(0);if((r||!a)&&((NS(t)!==`body`||BS(i))&&(s=QS(t)),r)){let e=lC(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=uC(i));let l=i&&!r&&!a?dC(i,s):Jx(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function CC(e){return ZS(e).position===`static`}function wC(e,t){if(!RS(e)||ZS(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return FS(e)===n&&(n=n.ownerDocument.body),n}function TC(e,t){let n=PS(e);if(HS(e))return n;if(!RS(e)){let t=$S(e);for(;t&&!XS(t);){if(LS(t)&&!CC(t))return t;t=$S(t)}return n}let r=wC(e,t);for(;r&&VS(r)&&CC(r);)r=wC(r,t);return r&&XS(r)&&CC(r)&&!qS(r)?n:r||JS(e)||n}var EC=async function(e){let t=this.getOffsetParent||TC,n=this.getDimensions,r=await n(e.floating);return{reference:SC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DC(e){return ZS(e).direction===`rtl`}var OC={convertOffsetParentRelativeRectToViewportRelativeRect:fC,getDocumentElement:FS,getClippingRect:bC,getOffsetParent:TC,getElementRects:EC,getClientRects:pC,getDimensions:xC,getScale:aC,isElement:LS,isRTL:DC};function kC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function AC(e,t,n){let r=null,i,a=FS(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=qx(d),h=qx(a.clientWidth-(u+f)),g=qx(a.clientHeight-(d+p)),_=qx(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Gx(0,Wx(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!kC(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=PS(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function jC(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=iC(e),u=i||a?[...l?tC(l):[],...t?tC(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?AC(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?lC(e):null;c&&g();function g(){let t=lC(e);h&&!kC(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var MC=OS,NC=kS,PC=SS,FC=jS,IC=TS,LC=xS,RC=AS,zC=(e,t,n)=>{let r=new Map,i=n??{},a={...OC,...i.platform,_c:r};return bS(e,t,{...i,platform:a})};function BC(e){return typeof e==`object`&&!!e&&`$el`in e}function VC(e){if(BC(e)){let t=e.$el;return IS(t)&&NS(t)===`#comment`?null:t}return e}function HC(e){return typeof e==`function`?e():P(e)}function UC(e){return{name:`arrow`,options:e,fn(t){let n=VC(HC(e.element));return n==null?{}:LC({element:n,padding:e.padding}).fn(t)}}}function WC(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function GC(e,t){let n=WC(e);return Math.round(t*n)/n}function KC(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=J(()=>HC(n.open)??!0),a=J(()=>HC(n.middleware)),o=J(()=>HC(n.placement)??`bottom`),s=J(()=>HC(n.strategy)??`absolute`),c=J(()=>HC(n.transform)??!0),l=J(()=>VC(e.value)),u=J(()=>VC(t.value)),d=N(0),f=N(0),p=N(s.value),m=N(o.value),h=Tn({}),g=N(!1),_=J(()=>{let e={position:p.value,left:`0`,top:`0`};if(!u.value)return e;let t=GC(u.value,d.value),n=GC(u.value,f.value);return c.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...WC(u.value)>=1.5&&{willChange:`transform`}}:{position:p.value,left:t+`px`,top:n+`px`}}),v;function y(){if(l.value==null||u.value==null)return;let e=i.value;zC(l.value,u.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(t=>{d.value=t.x,f.value=t.y,p.value=t.strategy,m.value=t.placement,h.value=t.middlewareData,g.value=e!==!1})}function b(){typeof v==`function`&&(v(),v=void 0)}function x(){if(b(),r===void 0){y();return}if(l.value!=null&&u.value!=null){v=r(l.value,u.value,y);return}}function S(){i.value||(g.value=!1)}return L([a,o,s,i],y,{flush:`sync`}),L([l,u],x,{flush:`sync`}),L(i,S,{flush:`sync`}),Je()&&Ye(b),{x:hn(d),y:hn(f),strategy:hn(p),placement:hn(m),middlewareData:hn(h),isPositioned:hn(g),floatingStyles:_,update:y}}var qC=[`dir`],JC={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[YC,XC]=Iv(`PopperContent`),ZC=R({inheritAttrs:!1,__name:`PopperContent`,props:Ho({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...JC}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=Ix(),{forwardRef:a,currentElement:o}=Q(),s=Fy(J(()=>n.dir)),c=N(),l=N(),{width:u,height:d}=ib(l),f=J(()=>n.side+(n.align===`center`?``:`-${n.align}`)),p=J(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),m=J(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=J(()=>({padding:p.value,boundary:m.value.filter(Bx),altBoundary:m.value.length>0})),g=J(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),_=J(()=>[MC({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&PC({...h.value,...g.value}),n.avoidCollisions&&NC({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?RC():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&PC({...h.value,...g.value}),FC({...h.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),l.value&&UC({element:l.value,padding:n.arrowPadding}),Vx({arrowWidth:u.value,arrowHeight:d.value,dir:s.value}),n.hideWhenDetached&&IC({strategy:`referenceHidden`,...h.value})]),{floatingStyles:v,placement:y,isPositioned:b,middlewareData:x,update:S}=KC(J(()=>n.reference??i.anchor.value),c,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...e)=>jC(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:_}),C=J(()=>Hx(y.value)[0]),w=J(()=>Hx(y.value)[1]);yi(()=>{b.value&&r(`placed`)});let T=J(()=>{let e=x.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),E=N(``);return vi(()=>{o.value&&(E.value=window.getComputedStyle(o.value).zIndex)}),XC({placedSide:C,onArrowChange:e=>l.value=e,arrowX:J(()=>x.value.arrow?.x??0),arrowY:J(()=>x.value.arrow?.y??0),shouldHideArrow:T}),(e,t)=>(V(),H(`div`,{ref_key:`floatingRef`,ref:c,"data-reka-popper-content-wrapper":``,dir:P(s),style:me({...P(v),transform:P(b)?P(v).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:E.value,"--reka-popper-transform-origin":[P(x).transformOrigin?.x,P(x).transformOrigin?.y].join(` `),...P(x).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[n.memoDependencies?Vl([n.asChild,n.as,C.value,w.value,P(b),...Object.values(e.$attrs),...n.memoDependencies],()=>(V(),U(P($),q({key:0,ref:P(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":C.value,"data-align":w.value,style:{animation:P(b)?void 0:`none`}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])),t,0):(V(),U(P($),q({key:1,ref:P(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":C.value,"data-align":w.value,dir:P(s),style:{animation:P(b)?void 0:`none`}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`dir`,`style`]))],12,qC))}});function QC(e){let t=N(`inline`),n=N(!1),r=N(),i=J(()=>t.value===`popper`&&!n.value),a;Tx({suppressHighlightScroll:i,onHighlightScrollRequest(e){a=e}});function o(e,i){(r.value!==e||t.value!==i)&&(n.value=!1,a=void 0),r.value=e,t.value=i}function s(i){if(r.value!==i||t.value!==`popper`||n.value)return;n.value=!0;let o=a;a=void 0,e.value&&o?.()}function c(e){r.value===e&&(r.value=void 0,t.value=`inline`,n.value=!1,a=void 0)}return{onContentPositionChange:o,onContentPlaced:s,onContentUnmount:c}}var[$C,ew]=Iv(`ComboboxRoot`),tw=R({__name:`ComboboxRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},openOnFocus:{type:Boolean,required:!1,default:!1},openOnClick:{type:Boolean,required:!1,default:!1},ignoreFilter:{type:Boolean,required:!1},resetModelValueOnClear:{type:Boolean,required:!1,default:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1,default:!0},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=n,{primitiveElement:a,currentElement:o}=mb(),{multiple:s,disabled:c,ignoreFilter:l,resetSearchTermOnSelect:u,openOnFocus:d,openOnClick:f,dir:p,resetModelValueOnClear:m,highlightOnHover:h}=Pn(r),g=Fy(p),_=hy(r,`modelValue`,i,{defaultValue:r.defaultValue??(s.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),v=hy(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});async function y(e){v.value=e,te.value=``,e?(await br(),a.value?.highlightSelected(),x.value=!0,C.value?.focus()):(x.value=!1,setTimeout(()=>{!e&&r.resetSearchTermOnBlur&&b.trigger()},1))}let b=Hv(),x=N(!1),S=N(!1),C=N(),w=N(),T=J(()=>a.value?.highlightedElement??void 0),E=QC(v),D=N(new Map),O=N(new Map),{contains:ee}=Ly({sensitivity:`base`}),te=N(``),ne=J(e=>{if(!te.value||r.ignoreFilter||S.value)return{count:D.value.size,items:e?.items??new Map,groups:e?.groups??new Set(O.value.keys())};let t=0,n=new Map,i=new Set;for(let[e,r]of D.value){let i=ee(r,te.value);n.set(e,+!!i),i&&t++}for(let[e,t]of O.value)for(let r of t)if(n.get(r)>0){i.add(e);break}return{count:t,items:n,groups:i}}),k=pl();return $a(()=>{k?.exposed&&(k.exposed.highlightItem=a.value?.highlightItem,k.exposed.highlightFirstItem=a.value?.highlightFirstItem,k.exposed.highlightSelected=a.value?.highlightSelected)}),t({filtered:ne,highlightedElement:T,highlightItem:a.value?.highlightItem,highlightFirstItem:a.value?.highlightFirstItem,highlightSelected:a.value?.highlightSelected}),ew({modelValue:_,multiple:s,disabled:c,open:v,onOpenChange:y,...E,contentId:``,isUserInputted:x,isVirtual:S,inputElement:C,highlightedElement:T,onInputElementChange:e=>C.value=e,triggerElement:w,onTriggerElementChange:e=>w.value=e,parentElement:o,resetSearchTermOnSelect:u,onResetSearchTerm:b.on,allItems:D,allGroups:O,filterSearch:te,filterState:ne,ignoreFilter:l,openOnFocus:d,openOnClick:f,resetModelValueOnClear:m}),(e,t)=>(V(),U(P(Rx),null,{default:I(()=>[G(P(Ex),q({ref_key:`primitiveElement`,ref:a},e.$attrs,{modelValue:P(_),"onUpdate:modelValue":t[0]||=e=>wn(_)?_.value=e:null,style:{pointerEvents:P(v)?`auto`:void 0},as:e.as,"as-child":e.asChild,dir:P(g),multiple:P(s),name:e.name,required:e.required,disabled:P(c),"highlight-on-hover":P(h),by:r.by,onHighlight:t[1]||=e=>i(`highlight`,e)}),{default:I(()=>[z(e.$slots,`default`,{open:P(v),modelValue:P(_)})]),_:3},16,[`modelValue`,`style`,`as`,`as-child`,`dir`,`multiple`,`name`,`required`,`disabled`,`highlight-on-hover`,`by`])]),_:3}))}}),nw=R({__name:`ComboboxAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{forwardRef:t}=Q();return(e,n)=>(V(),U(P(zx),{"as-child":``,reference:e.reference},{default:I(()=>[G(P($),q({ref:P(t),"as-child":e.asChild,as:e.as},e.$attrs),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`as-child`,`as`])]),_:3},8,[`reference`]))}}),[rw,iw]=Iv(`ComboboxContent`),aw=R({__name:`ComboboxContentImpl`,props:{position:{type:String,required:!1,default:`inline`},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,{position:i}=Pn(n),a=$C(),o=Symbol(`ComboboxContent`);L(i,e=>a.onContentPositionChange(o,e),{immediate:!0});let s=J(()=>a.ignoreFilter.value?a.allItems.value.size===0:a.filterState.value.count===0),{forwardRef:c,currentElement:l}=Q();Oy(n.bodyLock),zy(),eb(a.parentElement);let u=Hy(J(()=>n.position===`popper`?n:{}).value),d={boxSizing:`border-box`,"--reka-combobox-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-combobox-content-available-width":`var(--reka-popper-available-width)`,"--reka-combobox-content-available-height":`var(--reka-popper-available-height)`,"--reka-combobox-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-combobox-trigger-height":`var(--reka-popper-anchor-height)`};iw({position:i});let f=N(!1);$a(()=>{a.inputElement.value&&(f.value=l.value.contains(a.inputElement.value),f.value&&a.inputElement.value.focus())}),ro(()=>{a.onContentUnmount(o);let e=Lv();f.value&&(!e||e===document.body)&&a.triggerElement.value?.focus()});function p(e){if(a.parentElement.value?.contains(e))return!0;let t=(e instanceof Element?e.closest(`label`):null)?.control;return!!t&&!!a.parentElement.value?.contains(t)}let m={placed:()=>a.onContentPlaced(o)};return(e,t)=>(V(),U(P(Dx),{"as-child":``},{default:I(()=>[G(P(zb),{"as-child":``,onMountAutoFocus:t[5]||=Gd(()=>{},[`prevent`]),onUnmountAutoFocus:t[6]||=Gd(()=>{},[`prevent`])},{default:I(()=>[G(P(wb),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onDismiss:t[0]||=e=>P(a).onOpenChange(!1),onFocusOutside:t[1]||=e=>{p(e.target)&&e.preventDefault(),r(`focusOutside`,e)},onInteractOutside:t[2]||=e=>r(`interactOutside`,e),onEscapeKeyDown:t[3]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[4]||=e=>{p(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)}},{default:I(()=>[(V(),U(po(P(i)===`popper`?P(ZC):P($)),q({...e.$attrs,...P(u)},{id:P(a).contentId,ref:P(c),"memo-dependencies":P(i)===`popper`?[P(a).filterSearch.value,P(a).filterState.value]:void 0,"data-state":P(a).open.value?`open`:`closed`,"data-empty":s.value?``:void 0,style:{display:n.hideWhenEmpty&&s.value?`none`:`flex`,flexDirection:`column`,outline:`none`,...P(i)===`popper`?d:{}}},bo(P(i)===`popper`?m:{})),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`memo-dependencies`,`data-state`,`data-empty`,`style`]))]),_:3},8,[`disable-outside-pointer-events`])]),_:3})]),_:3}))}}),ow=R({__name:`ComboboxContent`,props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=Uy(e,t),{forwardRef:r}=Q(),i=$C();return i.contentId||=nb(void 0,`reka-combobox-content`),(e,t)=>(V(),U(P(db),{present:e.forceMount||P(i).open.value},{default:I(()=>[G(aw,q({...P(n),...e.$attrs},{ref:P(r)}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16)]),_:3},8,[`present`]))}}),sw=R({__name:`ComboboxEmpty`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=$C(),r=J(()=>n.ignoreFilter.value?n.allItems.value.size===0:n.filterState.value.count===0);return(e,n)=>r.value?(V(),U(P($),xe(q({key:0},t)),{default:I(()=>[z(e.$slots,`default`,{},()=>[n[0]||=rl(`No options`)])]),_:3},16)):K(`v-if`,!0)}}),[cw,lw]=Iv(`ComboboxGroup`),uw=R({__name:`ComboboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=nb(void 0,`reka-combobox-group`),r=$C(),i=J(()=>r.ignoreFilter.value?!0:!r.filterSearch.value||r.filterState.value.groups.has(n)),a=lw({id:n,labelId:``});return $a(()=>{r.allGroups.value.has(n)||r.allGroups.value.set(n,new Set)}),ro(()=>{r.allGroups.value.delete(n)}),(e,r)=>(V(),U(P(jx),q({id:P(n),"aria-labelledby":P(a).labelId},t,{hidden:!i.value||void 0}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`hidden`]))}}),dw=R({__name:`ComboboxInput`,props:{displayValue:{type:Function,required:!1},modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=$C(),a=Sx(),{primitiveElement:o,currentElement:s}=mb(),c=hy(n,`modelValue`,r,{passive:n.modelValue===void 0});$a(()=>{s.value&&i.onInputElementChange(s.value)});let{isComposing:l,shouldDeferInput:u,handleCompositionStart:d,handleCompositionUpdate:f,handleCompositionEnd:p}=Py(e=>{let t=e.target;t&&h(t.value)});function m(e){l.value||(e.preventDefault(),i.open.value||i.onOpenChange(!0))}function h(e){i.open.value?i.filterSearch.value=e:(i.onOpenChange(!0),br(()=>{e&&(i.filterSearch.value=e,a.highlightFirstItem())}))}function g(e){u.value||h(e.target.value)}function _(){i.openOnFocus.value&&!i.open.value&&i.onOpenChange(!0)}function v(e){if(!i.open.value)return;let t=e.relatedTarget;if(!t)return;let n=i.parentElement.value?.contains(t),r=document.getElementById(i.contentId)?.contains(t);!n&&!r&&requestAnimationFrame(()=>{if(!i.open.value)return;let e=document.activeElement;!i.parentElement.value?.contains(e)&&!document.getElementById(i.contentId)?.contains(e)&&i.onOpenChange(!1)})}function y(){i.openOnClick.value&&!i.open.value&&i.onOpenChange(!0)}function b(){let e=i.modelValue.value;n.displayValue?c.value=n.displayValue(e):!i.multiple.value&&e&&!Array.isArray(e)?typeof e==`object`?c.value=``:c.value=e.toString():c.value=``,br(()=>{c.value=c.value})}return i.onResetSearchTerm(()=>{b()}),L(i.modelValue,async()=>{!i.isUserInputted.value&&i.resetSearchTermOnSelect.value&&b()},{immediate:!0,deep:!0}),L(i.filterState,(e,t)=>{!i.isVirtual.value&&t.count===0&&a.highlightFirstItem()}),(e,t)=>(V(),U(P(Ox),{ref_key:`primitiveElement`,ref:o,modelValue:P(c),"onUpdate:modelValue":t[0]||=e=>wn(c)?c.value=e:null,as:e.as,"as-child":e.asChild,"auto-focus":e.autoFocus,disabled:e.disabled,"aria-expanded":P(i).open.value,"aria-controls":P(i).contentId,"aria-autocomplete":`list`,role:`combobox`,autocomplete:`off`,onClick:y,onInput:g,onKeydown:qd(m,[`down`,`up`]),onFocus:_,onBlur:v,onCompositionstart:P(d),onCompositionupdate:P(f),onCompositionend:P(p)},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`modelValue`,`as`,`as-child`,`auto-focus`,`disabled`,`aria-expanded`,`aria-controls`,`onCompositionstart`,`onCompositionupdate`,`onCompositionend`]))}}),fw=R({__name:`ComboboxItem`,props:{textValue:{type:String,required:!1},value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=nb(void 0,`reka-combobox-item`),a=$C(),o=cw(null),{primitiveElement:s,currentElement:c}=mb();if(n.value===``)throw Error(`A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.`);let l=J(()=>{if(a.isVirtual.value||a.ignoreFilter.value||!a.filterSearch.value)return!0;{let e=a.filterState.value.items.get(i);return e===void 0||e>0}});return $a(()=>{a.allItems.value.set(i,n.textValue||c.value.textContent||c.value.innerText);let e=o?.id;e&&(a.allGroups.value.has(e)?a.allGroups.value.get(e)?.add(i):a.allGroups.value.set(e,new Set([i])))}),ro(()=>{a.allItems.value.delete(i)}),(e,t)=>l.value?Vl([l.value,P(a).filterSearch.value,P(a).disabled.value,e.disabled,n.value,n.as,n.asChild,...Object.values(e.$attrs)],()=>(V(),U(P(Fx),q({key:0},n,{id:P(i),ref_key:`primitiveElement`,ref:s,disabled:P(a).disabled.value||e.disabled,onSelect:t[0]||=t=>{r(`select`,t),!t.defaultPrevented&&(!P(a).multiple.value&&!e.disabled&&!P(a).disabled.value?(t.preventDefault(),P(a).onOpenChange(!1),P(a).modelValue.value=n.value):P(a).multiple.value&&P(a).inputElement.value?.focus())}}),{default:I(()=>[z(e.$slots,`default`,{},()=>[rl(j(e.value),1)])]),_:3},16,[`id`,`disabled`])),t,1):K(`v-if`,!0)}}),pw=R({__name:`ComboboxLabel`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e;Q();let n=cw({id:``,labelId:``});return n.labelId||=nb(void 0,`reka-combobox-group-label`),(e,r)=>(V(),U(P($),q(t,{id:P(n).labelId}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`]))}}),mw=R({__name:`ComboboxPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(V(),U(P(ax),xe(el(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}});function hw(e){let t=by({nonce:N()});return J(()=>e?.value||t.nonce?.value)}var gw=R({__name:`ComboboxViewport`,props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n}=Q(),{nonce:r}=Pn(t),i=hw(r),a=$C();return(e,r)=>(V(),H(B,null,[G(P($),q({...e.$attrs,...t},{ref:P(n),"data-reka-combobox-viewport":``,role:`presentation`,style:{position:`relative`,flex:P(a).isVirtual.value?void 0:1,overflow:`auto`}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`style`]),G(P($),{as:`style`,nonce:P(i)},{default:I(()=>r[0]||=[rl(` /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-combobox-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-combobox-viewport]::-webkit-scrollbar { display: none; } `)]),_:1,__:[0]},8,[`nonce`])],64))}}),[_w,vw]=Iv(`RovingFocusGroup`),yw=R({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=Pn(r),c=Fy(s),l=hy(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=N(!1),d=N(!1),f=N(0),{getItems:p,CollectionSlot:m}=lx({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(hx,gx);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);bx([e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===l.value),...e].filter(Boolean),r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),vw({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(e,t)=>(V(),U(P(m),null,{default:I(()=>[G(P($),{tabindex:u.value||f.value===0?-1:0,"data-orientation":P(o),as:e.as,"as-child":e.asChild,dir:P(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),bw=R({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=_w(),r=nb(),i=J(()=>t.tabStopId||r),a=J(()=>n.currentTabStopId.value===i.value),{getItems:o,CollectionItem:s}=lx();$a(()=>{t.focusable&&n.onFocusableItemAdd()}),ro(()=>{t.focusable&&n.onFocusableItemRemove()}),L(()=>t.focusable,(e,t)=>{e!==t&&(e?n.onFocusableItemAdd():n.onFocusableItemRemove())});function c(e){if(e.key===`Tab`&&e.shiftKey){n.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let r=yx(e,n.orientation.value,n.dir.value);if(r!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!t.allowShiftKey&&e.shiftKey)return;e.preventDefault();let i=[...o().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(r===`last`)i.reverse();else if(r===`prev`||r===`next`){r===`prev`&&i.reverse();let t=i.indexOf(e.currentTarget);i=n.loop.value?xx(i,t+1):i.slice(t+1)}br(()=>bx(i))}}return(e,t)=>(V(),U(P(s),null,{default:I(()=>[G(P($),{tabindex:a.value?0:-1,"data-orientation":P(n).orientation.value,"data-active":e.active?``:void 0,"data-disabled":e.focusable?void 0:``,as:e.as,"as-child":e.asChild,onMousedown:t[0]||=t=>{e.focusable?P(n).onItemFocus(i.value):t.preventDefault()},onFocus:t[1]||=e=>P(n).onItemFocus(i.value),onKeydown:c},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),[xw,Sw]=Iv(`CheckboxGroupRoot`);function Cw(e){return e===`indeterminate`}function ww(e){return Cw(e)?`indeterminate`:e?`checked`:`unchecked`}var[Tw,Ew]=Iv(`CheckboxRoot`),Dw=R({inheritAttrs:!1,__name:`CheckboxRoot`,props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:`on`},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=Q(),o=xw(null),s=hy(n,`modelValue`,r,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),c=J(()=>o?.disabled.value||n.disabled),l=J(()=>Nv(s.value,n.trueValue)),u=J(()=>zv(o?.modelValue.value)?s.value===`indeterminate`?`indeterminate`:l.value:Bv(o.modelValue.value,n.value));function d(){if(zv(o?.modelValue.value))s.value===`indeterminate`?s.value=n.trueValue:s.value=l.value?n.falseValue:n.trueValue;else{let e=[...o.modelValue.value||[]];if(Bv(e,n.value)){let t=e.findIndex(e=>Nv(e,n.value));e.splice(t,1)}else e.push(n.value);o.modelValue.value=e}}let f=Vy(a),p=Wy(),m=zo(),h=J(()=>{if(!m[`aria-label`])return n.id&&a.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0});return Ew({disabled:c,state:u}),(e,t)=>(V(),H(B,null,[(V(),U(po(P(o)?.rovingFocus.value?P(bw):P($)),q({...e.$attrs,...P(p)},{id:e.id,ref:P(i),role:`checkbox`,"as-child":e.asChild,as:e.as,type:e.as===`button`?`button`:void 0,"aria-checked":P(Cw)(u.value)?`mixed`:u.value,"aria-required":e.required,"aria-label":e.$attrs[`aria-label`]||h.value,"data-state":P(ww)(u.value),"data-disabled":c.value?``:void 0,disabled:c.value,focusable:P(o)?.rovingFocus.value?!c.value:void 0,onKeydown:qd(Gd(()=>{},[`prevent`]),[`enter`]),onClick:d}),{default:I(()=>[z(e.$slots,`default`,{modelValue:P(s),state:u.value})]),_:3},16,[`id`,`as-child`,`as`,`type`,`aria-checked`,`aria-required`,`aria-label`,`data-state`,`data-disabled`,`disabled`,`focusable`,`onKeydown`])),P(f)&&e.name&&!P(o)?(V(),U(P(fx),q({key:0,type:`checkbox`,checked:!!u.value,name:e.name,value:e.value,disabled:c.value,required:e.required},P(p)),null,16,[`checked`,`name`,`value`,`disabled`,`required`])):K(`v-if`,!0)],64))}}),Ow=R({__name:`CheckboxIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=Q(),n=Tw();return(e,r)=>(V(),U(P(db),{present:e.forceMount||P(Cw)(P(n).state.value)||P(n).state.value===!0},{default:I(()=>[G(P($),q({ref:P(t),"data-state":P(ww)(P(n).state.value),"data-disabled":P(n).disabled.value?``:void 0,style:{pointerEvents:`none`},"as-child":e.asChild,as:e.as},e.$attrs),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`data-state`,`data-disabled`,`as-child`,`as`])]),_:3},8,[`present`]))}}),kw=R({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(V(),U(P(zx),xe(el(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}});function Aw(){let e=N(!1);return $a(()=>{sy(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),sy([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}var jw=$v(Aw),[Mw,Nw]=Iv([`MenuRoot`,`MenuSub`],`MenuContext`),[Pw,Fw]=Iv(`MenuRoot`),Iw=R({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=Pn(n),o=Fy(a),s=hy(n,`open`,r),c=N(),l=jw();return Nw({open:s,onOpenChange:e=>{s.value=e},content:c,onContentChange:e=>{c.value=e}}),Fw({onClose:()=>{s.value=!1},isUsingKeyboardRef:l,dir:o,modal:i}),(e,t)=>(V(),U(P(Rx),null,{default:I(()=>[z(e.$slots,`default`)]),_:3}))}}),[Lw,Rw]=Iv(`MenuContent`),zw=R({__name:`MenuContentImpl`,props:Ho({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...JC}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=Mw(),a=Pw(),{trapFocus:o,disableOutsidePointerEvents:s,loop:c}=Pn(n);zy(),Oy(s.value);let l=N(``),u=N(0),d=N(0),f=N(null),p=N(`right`),m=N(0),h=N(null),g=N(),{forwardRef:_,currentElement:v}=Q(),{handleTypeaheadSearch:y}=ob(),b=N();function x(e){let t=vy(e,b.value||Lv(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!1,attributeName:`[data-reka-collection-item]:not([data-disabled])`});t&&(b.value=t,t.scrollIntoView({block:`nearest`}))}function S(){b.value&&b.value.click()}let C=N(),w=N();L(b,e=>{if(w.value&&(e===void 0||e!==w.value.trigger.value)){if(e===void 0)return;w.value.onOpenChange(!1),w.value=void 0}}),L(v,e=>{i.onContentChange(e)}),ro(()=>{window.clearTimeout(u.value)});function T(e){return p.value===f.value?.side&&Jb(e,f.value?.area)}async function E(e){r(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),v.value?.focus({preventScroll:!0}))}function D(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=[`input`,`textarea`].includes(t.tagName.toLowerCase()),i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1,s=vy(e,Lv(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(s)return s?.focus();if(e.code===`Space`)return;let l=g.value?.getItems()??[];if(n&&(e.key===`Tab`&&a.modal.value&&e.preventDefault(),!i&&o&&!r&&y(e.key,l)),e.target!==v.value||!Wb.includes(e.key))return;e.preventDefault();let u=[...l.map(e=>e.ref)];Ub.includes(e.key)&&u.reverse(),Kb(u)}function O(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(u.value),l.value=``)}function ee(e){if(!Yb(e))return;let t=e.target,n=m.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>m.value?`right`:`left`;p.value=t,m.value=e.clientX}}function te(e){Yb(e)&&C.value&&C.value.focus()}return Rw({onItemEnter:e=>!!T(e),onItemLeave:e=>T(e)?!0:([`INPUT`,`TEXTAREA`].includes(Lv()?.tagName||``)||v.value?.focus(),h.value=null,!1),onTriggerLeave:e=>!!T(e),searchRef:l,highlightedElement:b,onKeydownNavigation:x,onKeydownEnter:S,filterElement:C,onFilterElementChange:e=>{C.value=e},activeSubmenuContext:w,pointerGraceTimerRef:d,onPointerGraceIntentChange:e=>{f.value=e}}),(e,t)=>(V(),U(P(zb),{"as-child":``,trapped:P(o),onMountAutoFocus:E,onUnmountAutoFocus:t[7]||=e=>r(`closeAutoFocus`,e)},{default:I(()=>[G(P(wb),{"as-child":``,"disable-outside-pointer-events":P(s),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[4]||=e=>r(`focusOutside`,e),onInteractOutside:t[5]||=e=>r(`interactOutside`,e),onDismiss:t[6]||=e=>r(`dismiss`)},{default:I(()=>[G(P(yw),{ref_key:`rovingFocusGroupRef`,ref:g,"current-tab-stop-id":h.value,"onUpdate:currentTabStopId":t[0]||=e=>h.value=e,"as-child":``,orientation:`vertical`,dir:P(a).dir.value,loop:P(c),onEntryFocus:t[1]||=e=>{r(`entryFocus`,e),P(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:I(()=>[G(P(ZC),{ref:P(_),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":P(Gb)(P(i).open.value),dir:P(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:D,onBlur:O,onPointermove:ee,onPointerenter:te},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),Bw=R({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Lw(),{forwardRef:r,currentElement:i}=Q(),{CollectionItem:a}=lx(),o=N(!1),s=J(()=>o.value||i.value!=null&&n.highlightedElement.value===i.value);async function c(e){if(!(e.defaultPrevented||!Yb(e))){if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){let t=e.currentTarget;n.highlightedElement.value=t,[`INPUT`,`TEXTAREA`].includes(Lv()?.tagName||``)||t.focus({preventScroll:!0})}}}async function l(e){await br(),!e.defaultPrevented&&Yb(e)&&n.highlightedElement.value===i.value&&!n.onItemLeave(e)&&n.highlightedElement.value===i.value&&(n.highlightedElement.value=void 0)}return(e,t)=>(V(),U(P(a),{value:{textValue:e.textValue}},{default:I(()=>[G(P($),q({ref:P(r),role:`menuitem`,tabindex:`-1`},e.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":s.value?``:void 0,onPointermove:c,onPointerleave:l,onFocus:t[0]||=async t=>{await br(),!(t.defaultPrevented||e.disabled)&&(o.value=!0,P(n).highlightedElement.value=t.currentTarget)},onBlur:t[1]||=async e=>{await br(),!e.defaultPrevented&&(o.value=!1)}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),Vw=R({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=Q(),o=Pw(),s=Lw(),c=N(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(Bb,{bubbles:!0,cancelable:!0});r(`select`,e),await br(),e.defaultPrevented?c.value=!1:o.onClose()}}return(e,t)=>(V(),U(Bw,q(n,{ref:P(i),onClick:l,onPointerdown:t[0]||=()=>{c.value=!0},onPointerup:t[1]||=async e=>{await br(),!e.defaultPrevented&&(c.value||e.currentTarget?.click())},onKeydown:t[2]||=async t=>{let n=P(s).searchRef.value!==``;e.disabled||n&&t.key===` `||P(Vb).includes(t.key)&&(t.currentTarget?.click(),t.preventDefault())}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Hw=R({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Uy(n,r),a=Mw(),{forwardRef:o,currentElement:s}=Q();return eb(s),(e,t)=>(V(),U(zw,q(P(i),{ref:P(o),"trap-focus":P(a).open.value,"disable-outside-pointer-events":P(a).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>P(a).onOpenChange(!1),onFocusOutside:t[1]||=Gd(e=>r(`focusOutside`,e),[`prevent`])}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),Uw=R({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Uy(e,t),r=Mw();return(e,t)=>(V(),U(zw,q(P(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>P(r).onOpenChange(!1)}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Ww=R({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Uy(e,t),r=Mw(),i=Pw();return(e,t)=>(V(),U(P(db),{present:e.forceMount||P(r).open.value},{default:I(()=>[P(i).modal.value?(V(),U(Hw,xe(q({key:0},{...e.$attrs,...P(n)})),{default:I(()=>[z(e.$slots,`default`)]),_:3},16)):(V(),U(Uw,xe(q({key:1},{...e.$attrs,...P(n)})),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Gw=R({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(V(),U(P(ax),xe(el(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),[Kw,qw]=Iv(`DropdownMenuRoot`),Jw=R({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;Q();let i=hy(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=N(),{modal:o,dir:s}=Pn(n),c=Fy(s);return qw({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:o,dir:c}),(e,t)=>(V(),U(P(Iw),{open:P(i),"onUpdate:open":t[0]||=e=>wn(i)?i.value=e:null,dir:P(c),modal:P(o)},{default:I(()=>[z(e.$slots,`default`,{open:P(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),Yw=R({__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let n=Uy(e,t);Q();let r=Kw(),i=N(!1);function a(e){e.defaultPrevented||(i.value||setTimeout(()=>{r.triggerElement.value?.focus()},0),i.value=!1,e.preventDefault())}return r.contentId||=nb(void 0,`reka-dropdown-menu-content`),(e,t)=>(V(),U(P(Ww),q(P(n),{id:P(r).contentId,"aria-labelledby":P(r)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`},onCloseAutoFocus:a,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,a=t.button===2||n;(!P(r).modal.value||a)&&(i.value=!0),P(r).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),Xw=R({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=Iy(t);return Q(),(e,t)=>(V(),U(P(Vw),xe(el({...n,...P(r)})),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Zw=R({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(V(),U(P(Gw),xe(el(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Qw=R({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Kw(),{forwardRef:r,currentElement:i}=Q();return $a(()=>{n.triggerElement=i}),n.triggerId||=nb(void 0,`reka-dropdown-menu-trigger`),(e,i)=>(V(),U(P(kw),{"as-child":``},{default:I(()=>[G(P($),{id:P(n).triggerId,ref:P(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":P(n).open.value,"aria-controls":P(n).open.value?P(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":P(n).open.value?`open`:`closed`,onClick:i[0]||=async t=>{!e.disabled&&t.button===0&&t.ctrlKey===!1&&(P(n)?.onOpenToggle(),await br(),P(n).open.value&&t.preventDefault())},onKeydown:i[1]||=qd(t=>{e.disabled||([`Enter`,` `].includes(t.key)&&P(n).onOpenToggle(),t.key===`ArrowDown`&&P(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),$w=[` `,`Enter`,`ArrowUp`,`ArrowDown`],eT=[` `,`Enter`];function tT(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(e=>nT(e,t,n)):nT(e,t,n)}function nT(e,t,n){return e===void 0||t===void 0?!1:typeof e==`string`?e===t:typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]===t?.[n]:Nv(e,t)}function rT(e){return e==null||e===``||Array.isArray(e)&&e.length===0}var iT=[`value`],[aT,oT]=Iv(`SelectRoot`),sT=R({inheritAttrs:!1,__name:`SelectRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},nullableValue:{type:String,required:!1,default:``},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`update:open`],setup(e,{emit:t}){let n=e,r=t,{required:i,disabled:a,multiple:o,dir:s}=Pn(n),c=hy(n,`modelValue`,r,{defaultValue:n.defaultValue??(o.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),l=hy(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),u=N(),d=N(),f=N({x:0,y:0}),p=J(()=>o.value&&Array.isArray(c.value)?c.value?.length===0:zv(c.value));lx({isProvider:!0});let m=Fy(s),h=Vy(u),g=N(new Set),_=J(()=>Array.from(g.value).map(e=>e.value).join(`;`));function v(e){if(o.value){let t=Array.isArray(c.value)?[...c.value]:[],r=t.findIndex(t=>nT(t,e,n.by));r===-1?t.push(e):t.splice(r,1),c.value=[...t]}else c.value=e}function y(e){return Array.from(g.value).find(t=>tT(e,t.value,n.by))}return oT({triggerElement:u,onTriggerChange:e=>{u.value=e},valueElement:d,onValueElementChange:e=>{d.value=e},contentId:``,modelValue:c,onValueChange:v,by:n.by,open:l,multiple:o,required:i,onOpenChange:e=>{l.value=e},dir:m,triggerPointerDownPosRef:f,disabled:a,isEmptyModelValue:p,optionsSet:g,onOptionAdd:e=>{let t=y(e.value);t&&g.value.delete(t),g.value.add(e)},onOptionRemove:e=>{let t=y(e.value);t&&g.value.delete(t)}}),(e,t)=>(V(),U(P(Rx),null,{default:I(()=>[z(e.$slots,`default`,{modelValue:P(c),open:P(l)}),P(h)&&e.name?(V(),U(cT,{key:_.value,"aria-hidden":`true`,tabindex:`-1`,multiple:P(o),required:P(i),name:e.name,autocomplete:e.autocomplete,disabled:P(a),value:P(c)},{default:I(()=>[P(zv)(P(c))?(V(),H(`option`,{key:0,value:e.nullableValue},null,8,iT)):K(`v-if`,!0),(V(!0),H(B,null,_o(Array.from(g.value),e=>(V(),H(`option`,q({key:e.value??``},{ref_for:!0},e),null,16))),128))]),_:1},8,[`multiple`,`required`,`name`,`autocomplete`,`disabled`,`value`])):K(`v-if`,!0)]),_:3}))}}),cT=R({__name:`BubbleSelect`,props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){let t=e,n=N(),r=aT();L(()=>t.value,(e,t)=>{let r=window.HTMLSelectElement.prototype,i=Object.getOwnPropertyDescriptor(r,`value`).set;if(e!==t&&i&&n.value){let t=new Event(`change`,{bubbles:!0});i.call(n.value,e),n.value.dispatchEvent(t)}});function i(e){r.onValueChange(e.target.value)}return(e,r)=>(V(),U(P(ux),{"as-child":``},{default:I(()=>[W(`select`,q({ref_key:`selectElement`,ref:n},t,{onInput:i}),[z(e.$slots,`default`)],16)]),_:3}))}}),lT=R({__name:`SelectPopperPosition`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:`start`},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:10},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=Hy(e);return(e,n)=>(V(),U(P(ZC),q(P(t),{style:{boxSizing:`border-box`,"--reka-select-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-select-content-available-width":`var(--reka-popper-available-width)`,"--reka-select-content-available-height":`var(--reka-popper-available-height)`,"--reka-select-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-select-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),uT={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[dT,fT]=Iv(`SelectContent`),pT=R({__name:`SelectContentImpl`,props:{position:{type:String,required:!1,default:`item-aligned`},bodyLock:{type:Boolean,required:!1,default:!0},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:`start`},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:[`closeAutoFocus`,`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=aT();zy(),Oy(n.bodyLock);let{CollectionSlot:a,getItems:o}=lx(),s=N();eb(s);let{search:c,handleTypeaheadSearch:l}=ob(),u=N(),d=N(),f=N(),p=N(!1),m=N(!1),h=N(!1);function g(){d.value&&s.value&&Kb([d.value,s.value])}L(p,()=>{g()});let{onOpenChange:_,triggerPointerDownPosRef:v}=i;vi(e=>{if(!s.value)return;let t={x:0,y:0},n=e=>{t={x:Math.abs(Math.round(e.pageX)-(v.value?.x??0)),y:Math.abs(Math.round(e.pageY)-(v.value?.y??0))}},r=e=>{e.pointerType!==`touch`&&(t.x<=10&&t.y<=10?e.preventDefault():s.value?.contains(e.target)||_(!1),document.removeEventListener(`pointermove`,n),v.value=null)};v.value!==null&&(document.addEventListener(`pointermove`,n),document.addEventListener(`pointerup`,r,{capture:!0,once:!0})),e(()=>{document.removeEventListener(`pointermove`,n),document.removeEventListener(`pointerup`,r,{capture:!0})})});function y(e){let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&l(e.key,o()),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=[...o().map(e=>e.ref)];if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>Kb(t)),e.preventDefault()}}let b=Hy(J(()=>n.position===`popper`?n:{}).value);return fT({content:s,viewport:u,onViewportChange:e=>{u.value=e},itemRefCallback:(e,t,n)=>{let r=!m.value&&!n,a=tT(i.modelValue.value,t,i.by);if(i.multiple.value){if(h.value)return;(a||r)&&(d.value=e,a&&(h.value=!0))}else(a||r)&&(d.value=e);r&&(m.value=!0)},selectedItem:d,selectedItemText:f,onItemLeave:()=>{s.value?.focus()},itemTextRefCallback:(e,t,n)=>{let r=!m.value&&!n;(tT(i.modelValue.value,t,i.by)||r)&&(f.value=e)},focusSelectedItem:g,position:n.position,isPositioned:p,searchRef:c}),(e,t)=>(V(),U(P(a),null,{default:I(()=>[G(P(zb),{"as-child":``,onMountAutoFocus:t[6]||=Gd(()=>{},[`prevent`]),onUnmountAutoFocus:t[7]||=e=>{r(`closeAutoFocus`,e),!e.defaultPrevented&&(P(i).triggerElement.value?.focus({preventScroll:!0}),e.preventDefault())}},{default:I(()=>[G(P(wb),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onFocusOutside:t[2]||=Gd(()=>{},[`prevent`]),onDismiss:t[3]||=e=>P(i).onOpenChange(!1),onEscapeKeyDown:t[4]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[5]||=e=>r(`pointerDownOutside`,e)},{default:I(()=>[(V(),U(po(e.position===`popper`?lT:gT),q({...e.$attrs,...P(b)},{id:P(i).contentId,ref:e=>{if(!e)return;let t=P(oy)(e);t?.hasAttribute(`data-reka-popper-content-wrapper`)?s.value=t.firstElementChild:s.value=t},role:`listbox`,"data-state":P(i).open.value?`open`:`closed`,dir:P(i).dir.value,style:{display:`flex`,flexDirection:`column`,outline:`none`},onContextmenu:t[0]||=Gd(()=>{},[`prevent`]),onPlaced:t[1]||=e=>p.value=!0,onKeydown:y}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`dir`,`onKeydown`]))]),_:3},8,[`disable-outside-pointer-events`])]),_:3})]),_:3}))}}),[mT,hT]=Iv(`SelectItemAlignedPosition`),gT=R({inheritAttrs:!1,__name:`SelectItemAlignedPosition`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,{getItems:i}=lx(),a=aT(),o=dT(),s=N(!1),c=N(!0),l=N(),{forwardRef:u,currentElement:d}=Q(),{viewport:f,selectedItem:p,selectedItemText:m,focusSelectedItem:h}=o;function g(){if(a.triggerElement.value&&a.valueElement.value&&l.value&&d.value&&f?.value&&p?.value&&m?.value){let e=a.triggerElement.value.getBoundingClientRect(),t=d.value.getBoundingClientRect(),n=a.valueElement.value.getBoundingClientRect(),o=m.value.getBoundingClientRect();if(a.dir.value!==`rtl`){let r=o.left-t.left,i=n.left-r,a=e.left-i,s=e.width+a,c=Math.max(s,t.width),u=window.innerWidth-10,d=Fv(i,10,Math.max(10,u-c));l.value.style.minWidth=`${s}px`,l.value.style.left=`${d}px`}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,s=e.width+a,c=Math.max(s,t.width),u=window.innerWidth-10,d=Fv(i,10,Math.max(10,u-c));l.value.style.minWidth=`${s}px`,l.value.style.right=`${d}px`}let c=i().map(e=>e.ref),u=window.innerHeight-20,h=f.value.scrollHeight,g=window.getComputedStyle(d.value),_=Number.parseInt(g.borderTopWidth,10),v=Number.parseInt(g.paddingTop,10),y=Number.parseInt(g.borderBottomWidth,10),b=Number.parseInt(g.paddingBottom,10),x=_+v+h+b+y,S=Math.min(p.value.offsetHeight*5,x),C=window.getComputedStyle(f.value),w=Number.parseInt(C.paddingTop,10),T=Number.parseInt(C.paddingBottom,10),E=e.top+e.height/2-10,D=u-E,O=p.value.offsetHeight/2,ee=p.value.offsetTop+O,te=_+v+ee,ne=x-te;if(te<=E){let e=p.value===c.at(-1);l.value.style.bottom=`0px`;let t=d.value.clientHeight-f.value.offsetTop-f.value.offsetHeight,n=te+Math.max(D,O+(e?T:0)+t+y);l.value.style.height=`${n}px`}else{let e=p.value===c[0];l.value.style.top=`0px`;let t=Math.max(E,_+f.value.offsetTop+(e?w:0)+O)+ne;l.value.style.height=`${t}px`,f.value.scrollTop=te-E+f.value.offsetTop}l.value.style.margin=`10px 0`,l.value.style.minHeight=`${S}px`,l.value.style.maxHeight=`${u}px`,r(`placed`),requestAnimationFrame(()=>s.value=!0)}}let _=N(``);$a(async()=>{await br(),g(),d.value&&(_.value=window.getComputedStyle(d.value).zIndex)});function v(e){e&&c.value===!0&&(g(),h?.(),c.value=!1)}return my(a.triggerElement,()=>{g()}),hT({contentWrapper:l,shouldExpandOnScrollRef:s,onScrollButtonChange:v}),(e,t)=>(V(),H(`div`,{ref_key:`contentWrapperElement`,ref:l,style:me({display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:_.value})},[G(P($),q({ref:P(u),style:{boxSizing:`border-box`,maxHeight:`100%`}},{...e.$attrs,...n}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16)],4))}}),_T=R({inheritAttrs:!1,__name:`SelectProvider`,props:{context:{type:Object,required:!0}},setup(e){return oT(e.context),fT(uT),(e,t)=>z(e.$slots,`default`)}}),vT={key:1},yT=R({inheritAttrs:!1,__name:`SelectContent`,props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`closeAutoFocus`,`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=Uy(n,t),i=aT(),a=N();$a(()=>{a.value=new DocumentFragment});let o=N(),s=J(()=>n.forceMount||i.open.value),c=N(s.value),l;function u(){l&&=(clearTimeout(l),void 0)}return L(s,(e,t,n)=>{u(),l=setTimeout(()=>{c.value=s.value,l=void 0}),n(u)}),ro(u),(e,t)=>s.value||c.value||o.value?.present?(V(),U(P(db),{key:0,ref_key:`presenceRef`,ref:o,present:s.value},{default:I(()=>[G(pT,xe(el({...P(r),...e.$attrs})),{default:I(()=>[z(e.$slots,`default`)]),_:3},16)]),_:3},8,[`present`])):a.value?(V(),H(`div`,vT,[(V(),U(Fi,{to:a.value},[G(_T,{context:P(i)},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`context`])],8,[`to`]))])):K(`v-if`,!0)}}),[bT,xT]=Iv(`SelectItem`),ST=R({__name:`SelectItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{disabled:i}=Pn(n),a=aT(),o=dT(),{forwardRef:s,currentElement:c}=Q(),{CollectionItem:l}=lx(),u=J(()=>tT(a.modelValue?.value,n.value,a.by)),d=N(!1),f=N(n.textValue??``),p=nb(void 0,`reka-select-item-text`);async function m(e){e.defaultPrevented||Rv(`select.select`,h,{originalEvent:e,value:n.value})}async function h(e){await br(),r(`select`,e),!e.defaultPrevented&&(i.value||(a.onValueChange(n.value),a.multiple.value||a.onOpenChange(!1)))}async function g(e){await br(),!e.defaultPrevented&&(i.value?o.onItemLeave?.():e.currentTarget?.focus({preventScroll:!0}))}async function _(e){await br(),!e.defaultPrevented&&e.currentTarget===Lv()&&o.onItemLeave?.()}async function v(e){await br(),!e.defaultPrevented&&(o.searchRef?.value===``||e.key!==` `)&&(eT.includes(e.key)&&m(e),e.key===` `&&e.preventDefault())}if(n.value===``)throw Error(`A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return $a(()=>{c.value&&o.itemRefCallback(c.value,n.value,n.disabled)}),xT({value:n.value,disabled:i,textId:p,isSelected:u,onItemTextChange:e=>{f.value=((f.value||e?.textContent)??``).trim()}}),(e,t)=>(V(),U(P(l),{value:{textValue:f.value}},{default:I(()=>[G(P($),{ref:P(s),role:`option`,"aria-labelledby":P(p),"data-highlighted":d.value?``:void 0,"aria-selected":u.value,"data-state":u.value?`checked`:`unchecked`,"aria-disabled":P(i)||void 0,"data-disabled":P(i)?``:void 0,tabindex:P(i)?void 0:-1,as:e.as,"as-child":e.asChild,onFocus:t[0]||=e=>d.value=!0,onBlur:t[1]||=e=>d.value=!1,onPointerup:m,onPointerdown:t[2]||=e=>{e.currentTarget.focus({preventScroll:!0})},onTouchend:t[3]||=Gd(()=>{},[`prevent`,`stop`]),onPointermove:g,onPointerleave:_,onKeydown:v},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`aria-labelledby`,`data-highlighted`,`aria-selected`,`data-state`,`aria-disabled`,`data-disabled`,`tabindex`,`as`,`as-child`])]),_:3},8,[`value`]))}}),CT=R({__name:`SelectPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(V(),U(P(ax),xe(el(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),wT=R({__name:`SelectTrigger`,props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=aT(),{forwardRef:r,currentElement:i}=Q(),a=J(()=>n.disabled?.value||t.disabled);n.contentId||=nb(void 0,`reka-select-content`),$a(()=>{n.onTriggerChange(i.value)});let{getItems:o}=lx(),{search:s,handleTypeaheadSearch:c,resetTypeahead:l}=ob();function u(){a.value||(n.onOpenChange(!0),l())}function d(e){u(),n.triggerPointerDownPosRef.value={x:Math.round(e.pageX),y:Math.round(e.pageY)}}function f(e){return e.button===0&&e.ctrlKey===!1}let p=!1;function m(e){if(e.pointerType===`touch`)return e.preventDefault();let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),f(e)&&(d(e),p=!0)}function h(e){f(e)&&e.preventDefault()}function g(e){p||e.currentTarget?.focus(),p=!1}return(e,t)=>(V(),U(P(zx),{"as-child":``,reference:e.reference},{default:I(()=>[G(P($),{ref:P(r),role:`combobox`,type:e.as===`button`?`button`:void 0,"aria-controls":P(n).open.value?P(n).contentId:void 0,"aria-expanded":P(n).open.value||!1,"aria-required":P(n).required?.value,"aria-autocomplete":`none`,disabled:a.value,dir:P(n)?.dir.value,"data-state":P(n)?.open.value?`open`:`closed`,"data-disabled":a.value?``:void 0,"data-placeholder":P(rT)(P(n).modelValue?.value)?``:void 0,"as-child":e.asChild,as:e.as,onClick:g,onPointerdown:m,onMousedown:h,onPointerup:t[0]||=Gd(e=>{e.pointerType===`touch`&&d(e)},[`prevent`]),onKeydown:t[1]||=e=>{let t=P(s)!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&t&&e.key===` `||(P(c)(e.key,P(o)()),P($w).includes(e.key)&&(u(),e.preventDefault()))}},{default:I(()=>[z(e.$slots,`default`)]),_:3},8,[`type`,`aria-controls`,`aria-expanded`,`aria-required`,`disabled`,`dir`,`data-state`,`data-disabled`,`data-placeholder`,`as-child`,`as`])]),_:3},8,[`reference`]))}}),TT=R({__name:`SelectValue`,props:{placeholder:{type:String,required:!1,default:``},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,{forwardRef:n,currentElement:r}=Q(),i=aT();$a(()=>{i.valueElement=r});let a=J(()=>{let e=[],t=Array.from(i.optionsSet.value),n=e=>t.find(t=>tT(e,t.value,i.by));return e=Array.isArray(i.modelValue.value)?i.modelValue.value.map(e=>n(e)?.textContent??``):[n(i.modelValue.value)?.textContent??``],e.filter(Boolean)}),o=J(()=>a.value.length?a.value.join(`, `):t.placeholder);return(e,r)=>(V(),U(P($),{ref:P(n),as:e.as,"as-child":e.asChild,style:{pointerEvents:`none`},"data-placeholder":a.value.length?void 0:t.placeholder},{default:I(()=>[z(e.$slots,`default`,{selectedLabel:a.value,modelValue:P(i).modelValue.value},()=>[rl(j(o.value),1)])]),_:3},8,[`as`,`as-child`,`data-placeholder`]))}}),ET=R({__name:`SelectViewport`,props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{nonce:n}=Pn(t),r=hw(n),i=dT(),a=i.position===`item-aligned`?mT():void 0,{forwardRef:o,currentElement:s}=Q();$a(()=>{i?.onViewportChange(s.value)});let c=N(0);function l(e){let t=e.currentTarget,{shouldExpandOnScrollRef:n,contentWrapper:r}=a??{};if(n?.value&&r?.value){let e=Math.abs(c.value-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Number.parseFloat(r.value.style.minHeight),a=Number.parseFloat(r.value.style.height),o=Math.max(i,a);if(o<n){let i=o+e,a=Math.min(n,i),s=i-a;r.value.style.height=`${a}px`,r.value.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,r.value.style.justifyContent=`flex-end`)}}}c.value=t.scrollTop}return(e,n)=>(V(),H(B,null,[G(P($),q({ref:P(o),"data-reka-select-viewport":``,role:`presentation`},{...e.$attrs,...t},{style:{position:`relative`,flex:1,overflow:`hidden auto`},onScroll:l}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16),G(P($),{as:`style`,nonce:P(r)},{default:I(()=>n[0]||=[rl(` /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } `)]),_:1,__:[0]},8,[`nonce`])],64))}}),[DT,OT]=Iv(`ToastProvider`),kT=R({inheritAttrs:!1,__name:`ToastProvider`,props:{label:{type:String,required:!1,default:`Notification`},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeDirection:{type:String,required:!1,default:`right`},swipeThreshold:{type:Number,required:!1,default:50}},setup(e){let t=e,{label:n,duration:r,disableSwipe:i,swipeDirection:a,swipeThreshold:o}=Pn(t);lx({isProvider:!0});let s=N(),c=N(0),l=N(!1),u=N(!1);if(t.label&&typeof t.label==`string`&&!t.label.trim())throw Error("Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.");return OT({label:n,duration:r,disableSwipe:i,swipeDirection:a,swipeThreshold:o,toastCount:c,viewport:s,onViewportChange(e){s.value=e},onToastAdd(){c.value++},onToastRemove(){c.value--},isFocusedToastEscapeKeyDownRef:l,isClosePausedRef:u}),(e,t)=>z(e.$slots,`default`)}}),AT=R({__name:`ToastAnnounce`,setup(e){let t=DT(),n=ry(1e3),r=N(!1),i=0,a=0;return Wv&&(i=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{r.value=!0})}),Ye(()=>{cancelAnimationFrame(i),cancelAnimationFrame(a)})),(e,i)=>P(n)||r.value?(V(),U(P(ux),{key:0,feature:`fully-hidden`},{default:I(()=>[rl(j(P(t).label.value)+` `,1),z(e.$slots,`default`)]),_:3})):K(`v-if`,!0)}}),jT=`toast.viewportPause`,MT=`toast.viewportResume`;function NT(e,t,n){let r=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function PT(e,t,n=0){let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n}function FT(e){return e.nodeType===e.ELEMENT_NODE}function IT(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),FT(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.rekaToastAnnounceExclude===``;if(!n){if(r){let n=e.dataset.rekaToastAnnounceAlt;n&&t.push(n)}else t.push(...IT(e))}}}),t}var[LT,RT]=Iv(`ToastRoot`),zT=R({inheritAttrs:!1,__name:`ToastRootImpl`,props:{type:{type:String,required:!1},open:{type:Boolean,required:!1,default:!1},duration:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`close`,`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=Q(),{CollectionItem:o}=lx(),s=DT(),c=N(null),l=N(null),u=J(()=>typeof n.duration==`number`?n.duration:s.duration.value),d=N(0),f=N(u.value),p=N(0),m=N(u.value),h=fy(()=>{let e=Date.now()-d.value;m.value=Math.max(f.value-e,0)},{fpsLimit:60});function g(e){e<=0||e===1/0||Wv&&(window.clearTimeout(p.value),d.value=Date.now(),p.value=window.setTimeout(_,e))}function _(e){let t=e?.pointerType===``;a.value?.contains(Lv())&&t&&s.viewport.value?.focus(),t&&(s.isClosePausedRef.value=!1),r(`close`)}let v=J(()=>a.value?IT(a.value):null);if(n.type&&![`foreground`,`background`].includes(n.type))throw Error("Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.");return vi(e=>{let t=s.viewport.value;if(t){let n=()=>{g(f.value),h.resume(),r(`resume`)},i=()=>{let e=Date.now()-d.value;f.value-=e,window.clearTimeout(p.value),h.pause(),r(`pause`)};t.addEventListener(jT,i),t.addEventListener(MT,n),e(()=>{t.removeEventListener(jT,i),t.removeEventListener(MT,n)})}}),L(()=>[n.open,u.value],()=>{f.value=u.value,n.open&&!s.isClosePausedRef.value&&g(u.value)},{immediate:!0}),dy(`Escape`,e=>{r(`escapeKeyDown`,e),e.defaultPrevented||(s.isFocusedToastEscapeKeyDownRef.value=!0,_())}),$a(()=>{s.onToastAdd()}),ro(()=>{s.onToastRemove()}),RT({onClose:_}),(e,t)=>(V(),H(B,null,[v.value?(V(),U(AT,{key:0,role:`alert`,"aria-live":e.type===`foreground`?`assertive`:`polite`},{default:I(()=>[K(`
|
|
35
|
+
Render each chunk as its own text node so screen readers get the
|
|
36
|
+
natural pause break between nodes (see comment in utils.ts).
|
|
37
|
+
Interpolating the array directly with \`{{ announceTextContent }}\`
|
|
38
|
+
would route through Vue's \`toDisplayString\`, which JSON-stringifies
|
|
39
|
+
arrays — the live region would then announce literal \`[\`, quotes
|
|
40
|
+
and commas instead of the toast title and description.
|
|
41
|
+
`),(V(!0),H(B,null,_o(v.value,(e,t)=>(V(),H(B,{key:t},[rl(j(e),1)],64))),128))]),_:1},8,[`aria-live`])):K(`v-if`,!0),P(s).viewport.value?(V(),U(Fi,{key:1,to:P(s).viewport.value},[G(P(o),null,{default:I(()=>[G(P($),q({ref:P(i),tabindex:`0`},e.$attrs,{as:e.as,"as-child":e.asChild,"data-state":e.open?`open`:`closed`,"data-swipe-direction":P(s).swipeDirection.value,style:P(s).disableSwipe.value?void 0:{userSelect:`none`,touchAction:`none`},onPointerdown:t[0]||=Gd(e=>{P(s).disableSwipe.value||(c.value={x:e.clientX,y:e.clientY})},[`left`]),onPointermove:t[1]||=e=>{if(P(s).disableSwipe.value||!c.value)return;let t=e.clientX-c.value.x,n=e.clientY-c.value.y,i=!!l.value,a=[`left`,`right`].includes(P(s).swipeDirection.value),o=[`left`,`up`].includes(P(s).swipeDirection.value)?Math.min:Math.max,u=a?o(0,t):0,d=a?0:o(0,n),f=e.pointerType===`touch`?10:2,p={x:u,y:d},m={originalEvent:e,delta:p};i?(l.value=p,P(NT)(P(`toast.swipeMove`),e=>r(`swipeMove`,e),m)):P(PT)(p,P(s).swipeDirection.value,f)?(l.value=p,P(NT)(P(`toast.swipeStart`),e=>r(`swipeStart`,e),m),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>f||Math.abs(n)>f)&&(c.value=null)},onPointerup:t[2]||=e=>{if(P(s).disableSwipe.value)return;let t=l.value,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),l.value=null,c.value=null,t){let n=e.currentTarget,i={originalEvent:e,delta:t};P(PT)(t,P(s).swipeDirection.value,P(s).swipeThreshold.value)?P(NT)(P(`toast.swipeEnd`),e=>r(`swipeEnd`,e),i):P(NT)(P(`toast.swipeCancel`),e=>r(`swipeCancel`,e),i),n?.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}}}),{default:I(()=>[z(e.$slots,`default`,{remaining:m.value,duration:u.value})]),_:3},16,[`as`,`as-child`,`data-state`,`data-swipe-direction`,`style`])]),_:3})],8,[`to`])):K(`v-if`,!0)],64))}}),BT=R({__name:`ToastDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return Q(),(e,n)=>(V(),U(P($),xe(el(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),VT=R({__name:`ToastRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!0},forceMount:{type:Boolean,required:!1},type:{type:String,required:!1,default:`foreground`},open:{type:Boolean,required:!1,default:void 0},duration:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i}=Q(),a=hy(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return(e,t)=>(V(),U(P(db),{present:e.forceMount||P(a)},{default:I(()=>[G(zT,q({ref:P(i),open:P(a),type:e.type,as:e.as,"as-child":e.asChild,duration:e.duration},e.$attrs,{onClose:t[0]||=e=>a.value=!1,onPause:t[1]||=e=>r(`pause`),onResume:t[2]||=e=>r(`resume`),onEscapeKeyDown:t[3]||=e=>r(`escapeKeyDown`,e),onSwipeStart:t[4]||=e=>{r(`swipeStart`,e),e.defaultPrevented||e.currentTarget.setAttribute(`data-swipe`,`start`)},onSwipeMove:t[5]||=e=>{if(r(`swipeMove`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`move`),r.style.setProperty(`--reka-toast-swipe-move-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-move-y`,`${n}px`)}},onSwipeCancel:t[6]||=e=>{if(r(`swipeCancel`,e),!e.defaultPrevented){let t=e.currentTarget;t.setAttribute(`data-swipe`,`cancel`),t.style.removeProperty(`--reka-toast-swipe-move-x`),t.style.removeProperty(`--reka-toast-swipe-move-y`),t.style.removeProperty(`--reka-toast-swipe-end-x`),t.style.removeProperty(`--reka-toast-swipe-end-y`)}},onSwipeEnd:t[7]||=e=>{if(r(`swipeEnd`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`end`),r.style.removeProperty(`--reka-toast-swipe-move-x`),r.style.removeProperty(`--reka-toast-swipe-move-y`),r.style.setProperty(`--reka-toast-swipe-end-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-end-y`,`${n}px`),a.value=!1}}}),{default:I(({remaining:t,duration:n})=>[z(e.$slots,`default`,{remaining:t,duration:n,open:P(a)})]),_:3},16,[`open`,`type`,`as`,`as-child`,`duration`])]),_:3},8,[`present`]))}}),HT=R({__name:`FocusProxy`,emits:[`focusFromOutsideViewport`],setup(e,{emit:t}){let n=t,r=DT();return(e,t)=>(V(),U(P(ux),{tabindex:`0`,style:{position:`fixed`},onFocus:t[0]||=e=>{let t=e.relatedTarget;P(r).viewport.value?.contains(t)||n(`focusFromOutsideViewport`)}},{default:I(()=>[z(e.$slots,`default`)]),_:3}))}}),UT=R({inheritAttrs:!1,__name:`ToastViewport`,props:{hotkey:{type:Array,required:!1,default:()=>[`F8`]},label:{type:[String,Function],required:!1,default:`Notifications ({hotkey})`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ol`}},setup(e){let{hotkey:t,label:n}=Pn(e),{forwardRef:r,currentElement:i}=Q(),{CollectionSlot:a,getItems:o}=lx(),s=DT(),c=J(()=>s.toastCount.value>0),l=N(),u=N(),d=/Key/g,f=/Digit/g,p=J(()=>t.value.join(`+`).replace(d,``).replace(f,``));dy(t.value,()=>{i.value.focus()}),$a(()=>{s.onViewportChange(i.value)}),vi(e=>{let t=i.value;if(c.value&&t){let n=()=>{if(!s.isClosePausedRef.value){let e=new CustomEvent(jT);t.dispatchEvent(e),s.isClosePausedRef.value=!0}},r=()=>{if(s.isClosePausedRef.value){let e=new CustomEvent(MT);t.dispatchEvent(e),s.isClosePausedRef.value=!1}},i=e=>{t.contains(e.relatedTarget)||r()},a=()=>{t.contains(Lv())||r()},o=e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n){let n=Lv(),r=e.shiftKey;if(e.target===t&&r){l.value?.focus();return}let i=m({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);Mb(i.slice(a+1))?e.preventDefault():r?l.value?.focus():u.value?.focus()}};t.addEventListener(`focusin`,n),t.addEventListener(`focusout`,i),t.addEventListener(`pointermove`,n),t.addEventListener(`pointerleave`,a),t.addEventListener(`keydown`,o),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),e(()=>{t.removeEventListener(`focusin`,n),t.removeEventListener(`focusout`,i),t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointerleave`,a),t.removeEventListener(`keydown`,o),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)})}});function m({tabbingDirection:e}){let t=o().map(e=>e.ref).map(t=>{let n=[t,...Pb(t)];return e===`forwards`?n:n.reverse()});return(e===`forwards`?t.reverse():t).flat()}return(e,t)=>(V(),U(P(Tb),{role:`region`,"aria-label":typeof P(n)==`string`?P(n).replace(`{hotkey}`,p.value):P(n)(p.value),tabindex:`-1`,style:me({pointerEvents:c.value?void 0:`none`})},{default:I(()=>[c.value?(V(),U(HT,{key:0,ref:e=>{e&&(l.value=P(oy)(e))},onFocusFromOutsideViewport:t[0]||=()=>{let e=m({tabbingDirection:`forwards`});P(Mb)(e)}},null,512)):K(`v-if`,!0),G(P(a),null,{default:I(()=>[G(P($),q({ref:P(r),tabindex:`-1`,as:e.as,"as-child":e.asChild},e.$attrs),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3}),c.value?(V(),U(HT,{key:1,ref:e=>{e&&(u.value=P(oy)(e))},onFocusFromOutsideViewport:t[1]||=()=>{let e=m({tabbingDirection:`backwards`});P(Mb)(e)}},null,512)):K(`v-if`,!0)]),_:3},8,[`aria-label`,`style`]))}}),WT=R({__name:`RowMenu`,props:{modelValue:{type:Boolean,default:!1},modelModifiers:{}},emits:Uo([`preview`,`undistribute`,`remove`],[`update:modelValue`]),setup(e,{expose:t}){t();let n=fs(e,`modelValue`),{t:r}=j_(),i={open:n,t:r,get DropdownMenuContent(){return Yw},get DropdownMenuItem(){return Xw},get DropdownMenuPortal(){return Zw},get DropdownMenuRoot(){return Jw},get DropdownMenuTrigger(){return Qw}};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),GT=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function KT(e,t,n,r,i,a){return V(),U(r.DropdownMenuRoot,{open:r.open,"onUpdate:open":t[3]||=e=>r.open=e},{default:I(()=>[G(r.DropdownMenuTrigger,{class:`px-[4px] text-fg3 hover:text-fg`,"aria-label":r.t(`menu.more`)},{default:I(()=>[...t[4]||=[rl(` ⋮ `,-1)]]),_:1},8,[`aria-label`]),G(r.DropdownMenuPortal,null,{default:I(()=>[G(r.DropdownMenuContent,{class:`z-[601] min-w-[180px] rounded-[10px] border border-line bg-bg p-[6px] shadow-[0_10px_28px_rgba(0,0,0,0.14)]`,"side-offset":4,align:`end`},{default:I(()=>[G(r.DropdownMenuItem,{class:`cursor-pointer rounded-[6px] px-[12px] py-[7px] text-[13.5px] text-fg outline-none data-[highlighted]:bg-line2`,onSelect:t[0]||=t=>e.$emit(`preview`)},{default:I(()=>[rl(j(r.t(`menu.preview`)),1)]),_:1}),G(r.DropdownMenuItem,{class:`cursor-pointer rounded-[6px] px-[12px] py-[7px] text-[13.5px] text-fg outline-none data-[highlighted]:bg-line2`,onSelect:t[1]||=t=>e.$emit(`undistribute`)},{default:I(()=>[rl(j(r.t(`menu.undistribute`)),1)]),_:1}),G(r.DropdownMenuItem,{class:`cursor-pointer rounded-[6px] px-[12px] py-[7px] text-[13.5px] text-fg outline-none data-[highlighted]:bg-line2`,onSelect:t[2]||=t=>e.$emit(`remove`)},{default:I(()=>[rl(j(r.t(`menu.remove`)),1)]),_:1})]),_:1})]),_:1})]),_:1},8,[`open`])}var qT=GT(WT,[[`render`,KT],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/RowMenu.vue`]]),JT=R({__name:`Check`,props:{checked:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1}},emits:[`toggle`],setup(e,{expose:t,emit:n}){t();let r={emit:n,get CheckboxIndicator(){return Ow},get CheckboxRoot(){return Dw}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});function YT(e,t,n,r,i,a){return V(),U(r.CheckboxRoot,{"model-value":n.checked??!1,disabled:n.disabled,class:`inline-flex size-[15px] shrink-0 items-center justify-center rounded-[3px] border border-fg3 text-[10px] leading-none text-bg data-[state=checked]:border-accent data-[state=checked]:bg-accent`,"onUpdate:modelValue":t[0]||=e=>r.emit(`toggle`)},{default:I(()=>[G(r.CheckboxIndicator,null,{default:I(()=>[...t[1]||=[rl(`✓`,-1)]]),_:1})]),_:1},8,[`model-value`,`disabled`])}var XT=GT(JT,[[`render`,YT],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/Check.vue`]]),ZT=R({__name:`SkillRow`,props:{skill:{type:null,required:!0},updating:{type:Boolean,required:!1},selected:{type:Boolean,required:!1},selecting:{type:Boolean,required:!1}},emits:[`distribute`,`update`,`undistribute`,`remove`,`preview`,`toggle`,`refreshed`],setup(e,{expose:t,emit:n}){t();let r=e,i=N(!1),a=N(!1),o=n,{t:s}=j_(),c=J(()=>Tv(r.skill)),l=J(()=>{switch(c.value.kind){case`warning`:return r.skill.warning===`outdated-copy`?s(`status.warningOutdated`):s(`status.warningBroken`);case`updatable`:return s(`status.updatable`);case`distributed`:return wv(s,c.value.agentCount,c.value.projectCount);case`unlinked`:return s(`status.unlinked`)}}),u=J(()=>{switch(c.value.kind){case`warning`:return`text-warn`;case`updatable`:return`text-accent font-semibold`;default:return`text-fg3`}});function d(){Ev(r.selecting??!1)===`toggle`?o(`toggle`,r.skill.name):o(`preview`,r.skill)}function f(){Dv(r.selecting??!1)===`toggle`&&o(`toggle`,r.skill.name)}async function p(){if(!a.value){a.value=!0;try{let e=await Q_(r.skill.name);o(`refreshed`,r.skill.name,e)}finally{a.value=!1}}}let m={props:r,menuOpen:i,refreshing:a,emit:o,t:s,status:c,statusText:l,statusColor:u,onNameClick:d,onBodyClick:f,onRefresh:p,RowMenu:qT,Check:XT};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),QT={class:`min-w-0 flex-1`},$T={class:`flex items-baseline gap-[10px]`},eE=[`title`],tE=[`title`],nE={class:`mt-[3px] overflow-hidden text-ellipsis whitespace-nowrap text-[13.5px] text-fg2`},rE=[`disabled`],iE=[`disabled`];function aE(e,t,n,r,i,a){return V(),H(`div`,{class:`group relative flex items-baseline gap-[10px] border-b border-line2 py-[13px] px-[2px]`,onClick:r.onBodyClick},[W(`span`,{class:be([`flex w-[22px] shrink-0 self-center transition-opacity duration-100`,n.selecting?`opacity-100`:`opacity-0 group-hover:opacity-100`]),onClick:t[1]||=Gd(()=>{},[`stop`])},[G(r.Check,{checked:n.selected,onToggle:t[0]||=t=>e.$emit(`toggle`,n.skill.name)},null,8,[`checked`])],2),W(`div`,QT,[W(`div`,$T,[W(`button`,{class:`mono text-[15px] font-semibold hover:underline`,title:r.t(`preview.openHint`),onClick:Gd(r.onNameClick,[`stop`])},j(n.skill.name),9,eE),W(`span`,{class:be([`ml-auto whitespace-nowrap text-[12.5px]`,[r.statusColor,r.menuOpen?`hidden`:`group-hover:hidden`]])},j(r.statusText),3),n.skill.staleCount>0?(V(),H(`span`,{key:0,class:be([`whitespace-nowrap text-[12.5px] text-warn`,r.menuOpen?`hidden`:`group-hover:hidden`]),title:r.t(`status.staleHint`,{count:n.skill.staleCount})},j(r.t(`status.staleBadge`,{count:n.skill.staleCount})),11,tE)):K(`v-if`,!0)]),W(`div`,nE,j(n.skill.description||r.t(`row.noDescription`)),1)]),K(` Actions stay in the DOM (opacity/pointer-events gated, zero layout
|
|
42
|
+
footprint via absolute placement): a dialog opened from here can hand
|
|
43
|
+
focus back to its trigger, and keyboard operators can reach them. `),W(`div`,{class:be([`absolute top-1/2 right-0 flex -translate-y-1/2 items-center gap-[12px] text-[13px] text-fg2 opacity-0 pointer-events-none group-hover:pointer-events-auto group-hover:opacity-100 focus-within:pointer-events-auto focus-within:opacity-100`,{"pointer-events-auto opacity-100":r.menuOpen}]),onClick:t[8]||=Gd(()=>{},[`stop`])},[n.skill.staleCount>0?(V(),H(`button`,{key:0,class:`font-semibold text-accent hover:text-fg disabled:cursor-default disabled:opacity-60`,disabled:r.refreshing,onClick:r.onRefresh},j(r.refreshing?r.t(`action.refreshing`):r.t(`action.refresh`)),9,rE)):K(`v-if`,!0),n.skill.hasUpdate?(V(),H(`button`,{key:1,class:`font-semibold text-accent hover:text-fg disabled:cursor-default disabled:opacity-60`,disabled:n.updating,onClick:t[2]||=t=>e.$emit(`update`,n.skill.name)},j(n.updating?r.t(`action.updating`):r.t(`action.update`)),9,iE)):K(`v-if`,!0),W(`button`,{class:`hover:text-fg`,onClick:t[3]||=t=>e.$emit(`distribute`,n.skill.name)},j(r.t(`action.distribute`)),1),G(r.RowMenu,{modelValue:r.menuOpen,"onUpdate:modelValue":t[4]||=e=>r.menuOpen=e,onPreview:t[5]||=t=>e.$emit(`preview`,n.skill),onUndistribute:t[6]||=t=>e.$emit(`undistribute`,n.skill),onRemove:t[7]||=t=>e.$emit(`remove`,n.skill)},null,8,[`modelValue`])],2)])}var oE=GT(ZT,[[`render`,aE],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/SkillRow.vue`]]),sE=R({__name:`Sheet`,props:Uo({title:{type:String,required:!0},wide:{type:Boolean,required:!1},side:{type:String,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:Uo([`closed`],[`update:open`]),setup(e,{expose:t,emit:n}){t();let r=n,i=fs(e,`open`),{t:a}=j_();L(i,(e,t)=>{!e&&t&&r(`closed`)});let o={emit:r,open:i,t:a,get DialogClose(){return vb},get DialogContent(){return nx},get DialogOverlay(){return ix},get DialogPortal(){return ox},get DialogRoot(){return _b},get DialogTitle(){return sx}};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}});function cE(e,t,n,r,i,a){return V(),U(r.DialogRoot,{open:r.open,"onUpdate:open":t[0]||=e=>r.open=e,modal:``},{default:I(()=>[G(r.DialogPortal,null,{default:I(()=>[G(r.DialogOverlay,{class:be([`sheet-overlay`,n.side===`right`?`log-overlay`:``])},null,8,[`class`]),G(r.DialogContent,{class:be([n.side===`right`?`log-panel`:`sheet-place`,n.side!==`right`&&!n.wide?`sheet max-h-[84vh] overflow-y-auto`:``,n.side!==`right`&&n.wide?`sheet sheet-wide`:``]),"aria-describedby":void 0},{default:I(()=>[W(`div`,{class:be([`sheet-head`,n.wide?`shrink-0`:``])},[G(r.DialogTitle,{as:`h2`,class:`sheet-title`},{default:I(()=>[rl(j(n.title),1)]),_:1}),z(e.$slots,`head`),G(r.DialogClose,{class:`sheet-close`,"aria-label":r.t(`chrome.close`)},{default:I(()=>[...t[1]||=[rl(`✕`,-1)]]),_:1},8,[`aria-label`])],2),z(e.$slots,`default`)]),_:3},8,[`class`])]),_:3})]),_:3},8,[`open`])}var lE=GT(sE,[[`render`,cE],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/Sheet.vue`]]);function uE(e){let t=[];for(let n of e){let e=n.split(`/`),r=t,i=``;e.forEach((t,n)=>{i=i?`${i}/${t}`:t;let a=n===e.length-1,o=r.find(e=>e.name===t);o||(o=a?{name:t,path:i}:{name:t,path:i,children:[]},r.push(o)),a||(r=o.children??=[])})}let n=e=>{e.sort((e,t)=>{let n=e.children!==void 0;return n===(t.children!==void 0)?e.name<t.name?-1:+(e.name>t.name):n?-1:1});for(let t of e)t.children&&n(t.children)};return n(t),t}function dE(e){return e.includes(`SKILL.md`)?`SKILL.md`:e[0]??null}var fE=`rendered`;function pE(e){return e===`rendered`?`source`:`rendered`}var mE=/^https:\/\/github\.com\/([^/]+)\/([^/]+?)(?:\.git)?\/?$/,hE=/^git@github\.com:([^/]+)\/([^/]+?)(?:\.git)?$/;function gE(e,t,n){let r=`${e}/${t}`,i=`https://github.com/${e}/${t}`;return n.subpath?{href:`${i}/tree/${n.ref||`HEAD`}/${n.subpath.replace(/\/+$/,``)}`,label:r}:{href:i,label:r}}function _E(e){let t=e?.url.trim();if(!t)return null;if(e.type===`local`||/^[./~]/.test(t))return{href:null,label:t};let n=t.match(mE);if(n)return gE(n[1],n[2],e);let r=t.match(hE);if(r)return gE(r[1],r[2],e);let i=t.replace(/^git@([^:]+):/,`https://$1/`).replace(/\.git$/,``);if(!/^https?:\/\//.test(i))return{href:null,label:t};try{let{hostname:e,pathname:t}=new URL(i);return{href:i,label:`${e}${t}`.replace(/\/$/,``)}}catch{return{href:null,label:t}}}var vE=R({__name:`SkillPreviewSheet`,props:Uo({skill:{type:null,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:Uo([`close`],[`update:open`]),setup(e,{expose:t,emit:n}){t();let r=e,i=n,a=fs(e,`open`),{t:o}=j_(),s=N([]),c=N(null),l=N(null),u=N(null),d=N(fE),f=J(()=>_E(r.skill.source)),p=J(()=>Cv(r.skill.distribution)),m=J(()=>r.skill.distributedAgents.length>0),h=J(()=>wv(o,r.skill.distributedAgents.length,p.value.length)),g=J(()=>uE(s.value.map(e=>e.path))),_=J(()=>{let e=[],t=(n,r)=>{for(let i of n)e.push({name:i.name,path:i.path,depth:r,isDir:i.children!==void 0}),i.children&&t(i.children,r+1)};return t(g.value,0),e});async function v(e){c.value=e,l.value=null,d.value=fE;try{l.value=await iv(r.skill.name,e)}catch(e){u.value=W_(e)}}$a(async()=>{try{s.value=(await av(r.skill.name)).files;let e=dE(s.value.map(e=>e.path));e&&await v(e)}catch(e){u.value=W_(e)}});function y(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}let b={props:r,emit:i,open:a,t:o,files:s,selectedPath:c,file:l,loadError:u,view:d,src:f,projectRoots:p,distributed:m,distCounts:h,tree:g,treeRows:_,select:v,formatSize:y,Sheet:lE,get togglePreviewView(){return pE}};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}}),yE={class:`mt-[2px] mb-[12px] shrink-0 border-b border-line2 pb-[10px]`},bE={key:0,class:`mb-[6px] text-[13.5px] leading-[1.65] text-fg2`},xE={key:1,class:`flex flex-wrap items-baseline gap-x-[18px] gap-y-[4px] text-[12.5px] text-fg3`},SE={key:0},CE=[`href`],wE={key:1,class:`mono`},TE={key:1,class:`min-w-0`},EE={class:`cursor-pointer text-fg3 hover:text-fg2`},DE={class:`grid gap-[10px] pt-[8px] pb-[2px]`},OE={class:`shrink-0`},kE={class:`mono [overflow-wrap:anywhere]`},AE={class:`flex min-h-0 flex-1`},jE={key:0,class:`w-[240px] shrink-0 overflow-y-auto border-r border-line2 pt-[6px] pb-[16px]`},ME=[`disabled`,`onClick`],NE={class:`min-w-0 flex-1 overflow-y-auto px-[20px]`},PE={key:0,class:`text-[13.5px] text-danger`},FE={key:1,class:`text-[13px] text-fg3`},IE={key:0,class:`text-[13px] text-warn`},LE={key:1,class:`text-[13px] text-fg3`},RE=[`innerHTML`],zE={key:3,class:`mono break-words pt-[6px] pb-[28px] text-[13px] leading-[1.65] whitespace-pre-wrap text-fg2`},BE=[`innerHTML`],VE={key:5,class:`mono break-words pt-[6px] pb-[28px] text-[13px] leading-[1.65] whitespace-pre-wrap text-fg2`};function HE(e,t,n,r,i,a){return V(),U(r.Sheet,{wide:``,title:n.skill.name,open:r.open,"onUpdate:open":t[1]||=e=>r.open=e,onClosed:t[2]||=e=>r.emit(`close`)},{head:I(()=>[r.file?.kind===`markdown`?(V(),H(`button`,{key:0,class:`text-btn shrink-0 whitespace-nowrap`,onClick:t[0]||=e=>r.view=r.togglePreviewView(r.view)},j(r.view===`rendered`?r.t(`preview.viewSource`):r.t(`preview.viewRendered`)),1)):K(`v-if`,!0)]),default:I(()=>[W(`div`,yE,[n.skill.description?(V(),H(`p`,bE,j(n.skill.description),1)):K(`v-if`,!0),r.src||r.distributed?(V(),H(`div`,xE,[r.src?(V(),H(`span`,SE,[rl(j(r.t(`preview.sourceLabel`))+` `,1),r.src.href?(V(),H(`a`,{key:0,class:`text-accent`,href:r.src.href,target:`_blank`,rel:`noreferrer`},j(r.src.label),9,CE)):(V(),H(`span`,wE,j(r.src.label),1))])):K(`v-if`,!0),K(` 接入 reverse lookup: inline <details>, grouped by target (physical
|
|
44
|
+
layer); shared runtime paths appear once, agents on each. `),r.distributed?(V(),H(`details`,TE,[W(`summary`,EE,j(r.t(`preview.distPrefix`))+` `+j(r.distCounts),1),W(`div`,DE,[(V(!0),H(B,null,_o(n.skill.distribution,e=>(V(),H(`div`,{key:e.targetRoot},[W(`p`,{class:be([`mb-[2px] text-[12.5px] font-semibold text-fg2 [overflow-wrap:anywhere]`,{mono:e.kind===`project`}])},j(e.kind===`user`?r.t(`preview.distUser`):e.targetRoot),3),(V(!0),H(B,null,_o(e.entries,e=>(V(),H(`p`,{key:e.runtimePath,class:`flex items-baseline gap-[12px] text-[12.5px] text-fg3`},[W(`span`,OE,j(e.agents.join(`, `)),1),W(`span`,kE,j(e.runtimePath),1)]))),128))]))),128))])])):K(`v-if`,!0)])):K(`v-if`,!0)]),W(`div`,AE,[r.treeRows.length?(V(),H(`aside`,jE,[(V(!0),H(B,null,_o(r.treeRows,e=>(V(),H(`button`,{key:e.path,class:be([`mono block w-full overflow-hidden text-ellipsis whitespace-nowrap px-[10px] py-[3px] text-left text-[12.5px]`,[e.path===r.selectedPath?`bg-line2 text-accent`:``,e.isDir?`cursor-default font-semibold text-fg3`:`text-fg2 hover:text-fg`]]),style:me({paddingLeft:`${8+e.depth*14}px`}),disabled:e.isDir,onClick:t=>r.select(e.path)},j(e.name),15,ME))),128))])):K(`v-if`,!0),W(`div`,NE,[r.loadError?(V(),H(`p`,PE,j(r.t(`preview.loadFailed`,{message:r.loadError})),1)):r.file?(V(),H(B,{key:2},[r.file.kind!==`binary`&&r.file.truncated?(V(),H(`p`,IE,j(r.t(`preview.truncated`)),1)):K(`v-if`,!0),r.file.kind===`binary`?(V(),H(`p`,LE,j(r.t(`preview.binary`,{size:r.formatSize(r.file.size)})),1)):K(`v-if`,!0),K(` v-html is safe here: the server pipeline sanitizes everything it puts in html. `),r.file.kind===`markdown`&&r.view===`rendered`?(V(),H(`div`,{key:2,class:`preview-md`,innerHTML:r.file.html},null,8,RE)):r.file.kind===`markdown`?(V(),H(`pre`,zE,j(r.file.raw),1)):r.file.kind===`source`?(V(),H(`div`,{key:4,class:`preview-code pt-[8px] pb-[28px]`,innerHTML:r.file.html},null,8,BE)):r.file.kind===`text`?(V(),H(`pre`,VE,j(r.file.raw),1)):K(`v-if`,!0)],64)):(V(),H(`p`,FE,j(r.t(`preview.loading`)),1))])])]),_:1},8,[`title`,`open`])}var UE=GT(vE,[[`render`,HE],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/SkillPreviewSheet.vue`]]),WE=`sm:browser-history`,GE=10;function KE(){try{let e=localStorage.getItem(WE);return e?JSON.parse(e):{paths:[]}}catch{return{paths:[]}}}function qE(e){try{localStorage.setItem(WE,JSON.stringify(e))}catch{}}function JE(){let e=N(KE()),t=J(()=>e.value.paths);function n(t){if(!t||t.trim()===``)return;let n=t.trim(),r=[n,...e.value.paths.filter(e=>e!==n)].slice(0,GE);e.value={paths:r},qE(e.value)}return{recentPaths:t,addPath:n}}var YE=R({__name:`DirectoryBrowser`,props:Uo({initialPath:{type:String,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:Uo([`select`],[`update:open`]),setup(e,{expose:t,emit:n}){t();let r=e,i=n,a=fs(e,`open`),{t:o}=j_(),{recentPaths:s,addPath:c}=JE(),l=N(!1),u=N(null),d=N(null),f=J(()=>{if(!d.value)return[];let e=d.value.path.split(`/`).filter(Boolean);return e.map((t,n)=>({text:t||`/`,path:`/`+e.slice(0,n+1).join(`/`)}))});async function p(e){l.value=!0,u.value=null;try{d.value=await rv(e)}catch(e){u.value=W_(e)}finally{l.value=!1}}function m(e){p(e)}function h(){d.value?.parent&&p(d.value.parent)}function g(){d.value&&(c(d.value.path),a.value=!1,i(`select`,d.value.path))}L(a,e=>{e&&p(r.initialPath)});let _={props:r,emit:i,open:a,t:o,recentPaths:s,addPath:c,loading:l,error:u,browse:d,pathBreadcrumbs:f,load:p,navigateTo:m,goParent:h,select:g,Sheet:lE};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}}),XE={key:0,class:`border-b border-line2 px-[1rem] py-[0.75rem]`},ZE={class:`mb-[0.5rem] text-[0.75rem] font-semibold tracking-[0.08em] text-fg3 uppercase`},QE={class:`flex flex-wrap gap-[0.5rem] overflow-x-auto overflow-y-hidden`},$E=[`title`,`onClick`],eD={key:1,class:`flex min-h-[200px] items-center justify-center p-[1rem] text-center text-fg3`},tD={key:2,class:`flex min-h-[200px] items-center justify-center p-[1rem] text-center text-danger`},nD={key:3,class:`flex max-h-[60vh] min-h-[300px] flex-col gap-[1rem] p-[1rem]`},rD={class:`flex flex-wrap items-center gap-[0.5rem]`},iD={class:`flex flex-1 items-center overflow-x-auto text-[0.875rem] break-all`},aD={key:0,class:`mx-[0.25rem] text-fg3`},oD=[`onClick`],sD={class:`flex flex-1 flex-col gap-[0.5rem] overflow-y-auto`},cD={key:0,class:`flex cursor-default items-center gap-[0.5rem] rounded-[4px] border border-line2 px-[0.75rem] py-[0.5rem] text-left text-[0.875rem] text-fg3`,disabled:``},lD=[`onClick`],uD={class:`flex-1 overflow-hidden text-ellipsis whitespace-nowrap`},dD={class:`sheet-foot`},fD=[`disabled`];function pD(e,t,n,r,i,a){return V(),U(r.Sheet,{title:r.t(`browser.title`),open:r.open,"onUpdate:open":t[1]||=e=>r.open=e},{default:I(()=>[K(` Recent paths quick access `),r.recentPaths.length>0?(V(),H(`div`,XE,[W(`div`,ZE,j(r.t(`browser.recent`)),1),W(`div`,QE,[(V(!0),H(B,null,_o(r.recentPaths,e=>(V(),H(`button`,{key:e,class:`cursor-pointer rounded-[4px] border border-line bg-line2 px-[0.75rem] py-[0.4rem] text-[0.8rem] whitespace-nowrap text-fg2 transition-colors duration-200 hover:bg-line`,title:e,onClick:t=>r.navigateTo(e)},j(e.split(`/`).pop()||e),9,$E))),128))])])):K(`v-if`,!0),r.loading?(V(),H(`div`,eD,j(r.t(`browser.loading`)),1)):r.error?(V(),H(`div`,tD,j(r.error),1)):r.browse?(V(),H(`div`,nD,[K(` Breadcrumb navigation `),W(`div`,rD,[r.browse.parent?(V(),H(`button`,{key:0,class:`rounded-[4px] border border-line bg-line2 px-[0.8rem] py-[0.4rem] text-[0.875rem] text-fg2 hover:bg-line`,onClick:r.goParent},` ↑ `+j(r.t(`browser.up`)),1)):K(`v-if`,!0),W(`div`,iD,[(V(!0),H(B,null,_o(r.pathBreadcrumbs,(e,t)=>(V(),H(`span`,{key:e.path,class:`flex items-center`},[t>0?(V(),H(`span`,aD,`/`)):K(`v-if`,!0),W(`button`,{class:`p-0 text-accent hover:underline`,onClick:t=>r.navigateTo(e.path)},j(e.text),9,oD)]))),128))])]),K(` Directory list with max-height constraint `),W(`div`,sD,[r.browse.entries.length===0?(V(),H(`button`,cD,j(r.t(`browser.empty`)),1)):K(`v-if`,!0),(V(!0),H(B,null,_o(r.browse.entries,e=>(V(),H(`button`,{key:e.path,class:`flex items-center gap-[0.5rem] rounded-[4px] border border-line2 px-[0.75rem] py-[0.5rem] text-left text-[0.875rem] text-fg transition-colors duration-200 hover:bg-line2`,onClick:t=>r.navigateTo(e.path)},[t[2]||=W(`span`,{class:`shrink-0`},`📁`,-1),W(`span`,uD,j(e.name),1)],8,lD))),128))])])):K(`v-if`,!0),W(`div`,dD,[t[3]||=W(`span`,{class:`flex-1`},null,-1),W(`button`,{class:`text-btn`,onClick:t[0]||=e=>r.open=!1},j(r.t(`browser.cancel`)),1),W(`button`,{class:`primary-btn`,disabled:!r.browse,onClick:r.select},j(r.t(`browser.select`)),9,fD)])]),_:1},8,[`title`,`open`])}var mD=GT(YE,[[`render`,pD],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/DirectoryBrowser.vue`]]),hD=R({__name:`ProjectDropdown`,props:{modelValue:{type:String,required:!0},recentPaths:{type:Array,required:!0},knownProjects:{type:Array,required:!0},placeholder:{type:String,required:!1}},emits:[`update:modelValue`,`browse`],setup(e,{expose:t,emit:n}){t();let r=e,i=n,{t:a}=j_(),o=J(()=>r.modelValue.trim().toLowerCase()),s=e=>o.value?e.filter(e=>e.toLowerCase().includes(o.value)):e,c=J(()=>s(r.recentPaths)),l=J(()=>s(r.knownProjects));function u(e){i(`update:modelValue`,e)}function d(e){i(`update:modelValue`,e)}let f={props:r,emit:i,t:a,query:o,filterPaths:s,filteredRecent:c,filteredKnown:l,onInput:u,onSelect:d,get ComboboxAnchor(){return nw},get ComboboxContent(){return ow},get ComboboxEmpty(){return sw},get ComboboxGroup(){return uw},get ComboboxInput(){return dw},get ComboboxItem(){return fw},get ComboboxLabel(){return pw},get ComboboxPortal(){return mw},get ComboboxRoot(){return tw},get ComboboxViewport(){return gw}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),gD={class:`min-w-[120px] shrink-0 overflow-hidden text-ellipsis whitespace-nowrap font-medium`},_D={class:`min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-[0.75rem] text-fg3`},vD={class:`min-w-[120px] shrink-0 overflow-hidden text-ellipsis whitespace-nowrap font-medium`},yD={class:`min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-[0.75rem] text-fg3`};function bD(e,t,n,r,i,a){return V(),U(r.ComboboxRoot,{class:`relative w-full`,"model-value":n.modelValue,"ignore-filter":!0,"reset-search-term-on-blur":!1,"open-on-focus":``,"onUpdate:modelValue":r.onSelect},{default:I(()=>[G(r.ComboboxAnchor,{class:`w-full`},{default:I(()=>[G(r.ComboboxInput,{class:`w-full rounded-[4px] border border-line bg-bg px-[0.75rem] py-[0.5rem] text-[0.875rem] text-fg outline-none focus:border-accent`,"display-value":()=>n.modelValue,placeholder:n.placeholder,"onUpdate:modelValue":r.onInput},null,8,[`display-value`,`placeholder`])]),_:1}),G(r.ComboboxPortal,null,{default:I(()=>[G(r.ComboboxContent,{class:`z-[601] max-h-[300px] w-[var(--reka-combobox-trigger-width)] overflow-hidden rounded-[4px] border border-line bg-bg shadow-[0_4px_12px_rgba(0,0,0,0.15)]`,position:`popper`,"side-offset":4},{default:I(()=>[W(`button`,{type:`button`,class:`flex w-full items-center gap-[0.5rem] border-b border-line bg-line2 px-[1rem] py-[0.75rem] text-[0.875rem] text-fg hover:bg-line`,onPointerdown:t[0]||=Gd(()=>{},[`prevent`]),onClick:t[1]||=e=>r.emit(`browse`)},[t[2]||=W(`span`,null,`📁`,-1),W(`span`,null,j(r.t(`dropdown.browse`)),1)],32),G(r.ComboboxViewport,{class:`max-h-[240px] overflow-y-auto`},{default:I(()=>[G(r.ComboboxEmpty,{class:`px-[1rem] py-[1rem] text-center text-[0.875rem] text-fg3`},{default:I(()=>[rl(j(r.t(`dropdown.noMatch`)),1)]),_:1}),r.filteredRecent.length>0?(V(),U(r.ComboboxGroup,{key:0},{default:I(()=>[G(r.ComboboxLabel,{class:`bg-bg px-[1rem] py-[0.5rem] text-[0.7rem] font-semibold tracking-[0.08em] text-fg3 uppercase`},{default:I(()=>[rl(j(r.t(`dropdown.recentLabel`)),1)]),_:1}),(V(!0),H(B,null,_o(r.filteredRecent,e=>(V(),U(r.ComboboxItem,{key:`recent-${e}`,class:`flex cursor-pointer items-center gap-[0.75rem] px-[1rem] py-[0.75rem] text-[0.875rem] text-fg outline-none data-[highlighted]:bg-line2`,value:e,"text-value":e},{default:I(()=>[t[3]||=W(`span`,{class:`shrink-0`},`🕐`,-1),W(`span`,gD,j(e.split(`/`).pop()||e),1),W(`span`,_D,j(e),1)]),_:2},1032,[`value`,`text-value`]))),128))]),_:1})):K(`v-if`,!0),r.filteredKnown.length>0?(V(),U(r.ComboboxGroup,{key:1},{default:I(()=>[G(r.ComboboxLabel,{class:`bg-bg px-[1rem] py-[0.5rem] text-[0.7rem] font-semibold tracking-[0.08em] text-fg3 uppercase`},{default:I(()=>[rl(j(r.t(`dropdown.knownLabel`)),1)]),_:1}),(V(!0),H(B,null,_o(r.filteredKnown,e=>(V(),U(r.ComboboxItem,{key:`known-${e}`,class:`flex cursor-pointer items-center gap-[0.75rem] px-[1rem] py-[0.75rem] text-[0.875rem] text-fg outline-none data-[highlighted]:bg-line2`,value:e,"text-value":e},{default:I(()=>[t[4]||=W(`span`,{class:`shrink-0`},`📂`,-1),W(`span`,vD,j(e.split(`/`).pop()||e),1),W(`span`,yD,j(e),1)]),_:2},1032,[`value`,`text-value`]))),128))]),_:1})):K(`v-if`,!0)]),_:1})]),_:1})]),_:1})]),_:1},8,[`model-value`])}var xD=GT(hD,[[`render`,bD],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/ProjectDropdown.vue`]]),SD=e=>e.filter(e=>e.invalidReason===null),CD=e=>[...e].sort();function wD(e,t){let n=new Set(SD(e).map(e=>e.id));return t===null?SD(e).filter(e=>e.detected).map(e=>e.id):CD(t.filter(e=>n.has(e)))}function TD(e,t){return CD(e.includes(t)?e.filter(e=>e!==t):[...e,t])}function ED(e,t,n){let r=SD(e).filter(e=>e.familyKey===n).map(e=>e.id),i=r.length>0&&r.every(e=>t.includes(e)),a=new Set(t);for(let e of r)i?a.delete(e):a.add(e);return CD(a)}function DD(e,t,n){return{...e,[t]:[...n]}}function OD(e,t){let n=t.trim().toLowerCase();return n===``?[...e]:e.filter(e=>e.id.toLowerCase().includes(n)||e.label.toLowerCase().includes(n))}var kD=(e,t)=>SD(OD(e,t)).map(e=>e.id),AD=(e,t)=>[...new Set([...e,...t])];function jD(e,t,n){return CD(AD(n,kD(e,t)))}function MD(e,t,n){return CD(AD(n,SD(OD(e,t)).filter(e=>e.detected).map(e=>e.id)))}function ND(e,t,n){let r=new Set(kD(e,t));return CD(n.filter(e=>!r.has(e)))}function PD(e){return e[0]??``}function FD(e){let t=new Map,n=[];for(let r of SD(e)){if(r.familyKey===null){n.push(r);continue}t.set(r.familyKey,[...t.get(r.familyKey)||[],r])}let r=[];for(let[e,i]of t)i.length>=2?r.push({familyKey:e,members:i}):n.push(i[0]);return{families:r,singletons:n}}var ID=N({});function LD(){function e(e,t){ID.value=DD(ID.value,e,t)}return{memory:ID,rememberApply:e}}var RD=R({__name:`AgentPickerSheet`,props:Uo({skills:{type:Array,required:!0},knownProjects:{type:Array,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:Uo([`close`],[`update:open`]),setup(e,{expose:t,emit:n}){t();let r=e,i=n,a=fs(e,`open`),{t:o}=j_(),{memory:s,rememberApply:c}=LD(),{show:l}=Sv(),{addPath:u,recentPaths:d}=JE(),f=N(`user`),p=N(``),m=N(``),h=N([]),g=N(null),_=N(!1),v=N(`symlink`),y=N([]),b=N(!1),x=e=>e===`user`?`symlink`:`copy`;async function S(){if(g.value=null,C.value){h.value=[],y.value=[];return}try{let e=await q_(f.value,f.value===`project`?p.value:void 0);h.value=e.agents,y.value=wD(e.agents,s.value[f.value]??null)}catch(e){g.value=W_(e)}}let C=J(()=>f.value===`project`&&p.value.trim()===``);function w(){let e=p.value.trim();e&&u(e)}L(f,e=>{v.value=x(e),e===`project`&&(p.value=PD(r.knownProjects)),S()}),S();let T=J(()=>OD(h.value,m.value)),E=J(()=>T.value.filter(e=>e.detected&&e.invalidReason===null)),D=J(()=>T.value.filter(e=>e.invalidReason!==null)),O=J(()=>FD(T.value)),ee=e=>e.split(`/`).filter(Boolean).slice(-2).join(`/`)||e;function te(e){return/project-only/i.test(e.invalidReason??``)?o(`picker.reasonProjectOnly`):/cannot be resolved/i.test(e.invalidReason??``)?o(`picker.reasonUnresolvable`):e.invalidReason??``}function ne(e){p.value=e,S()}async function k(){_.value=!0;try{await J_({to:f.value,projectRoot:f.value===`project`&&p.value.trim()||void 0,skills:r.skills,agents:y.value,mode:v.value}),f.value===`project`&&w(),c(f.value,y.value),l(`ok`,o(`notice.distributed`,{skills:r.skills.join(`, `),n:y.value.length})),i(`close`)}catch(e){l(`error`,W_(e))}finally{_.value=!1}}let re={props:r,emit:i,open:a,t:o,memory:s,rememberApply:c,show:l,addProjectPath:u,recentPaths:d,scope:f,projectRoot:p,query:m,agents:h,loadError:g,applying:_,mode:v,selection:y,showBrowser:b,defaultMode:x,loadAgents:S,projectPending:C,rememberProjectPath:w,visible:T,detected:E,invalid:D,grouping:O,familyName:ee,reasonText:te,onBrowsedPath:ne,apply:k,Sheet:lE,DirectoryBrowser:mD,ProjectDropdown:xD,get clearVisible(){return ND},get selectAllVisible(){return jD},get selectDetectedVisible(){return MD},get toggleAgent(){return TD},get toggleFamily(){return ED},Check:XT};return Object.defineProperty(re,"__isScriptSetup",{enumerable:!1,value:!0}),re}}),zD={class:`scope-row`},BD={key:0,class:`pb-[1rem]`},VD=[`placeholder`],HD={key:1,class:`mb-[6px] mt-[-4px] flex gap-[14px]`},UD={key:2,class:`picker-error`},WD={key:3,class:`agent-list`},GD={class:`picker-hint`},KD={key:4,class:`agent-list`},qD={key:0},JD={class:`agent-heading`},YD={class:`agent-id mono`},XD={class:`agent-label`},ZD={class:`agent-heading`},QD=[`onClick`],$D={class:`agent-id mono`},eO={class:`agent-label`},tO={class:`agent-id mono`},nO={class:`agent-label`},rO={key:0,class:`picker-hint`},iO={key:1},aO={class:`agent-heading`},oO={class:`agent-id mono`},sO={class:`agent-label`},cO={class:`mt-[10px] flex items-baseline gap-[14px] text-[13.5px]`},lO={class:`text-fg3`},uO={class:`sheet-foot`},dO={class:`picker-count`},fO=[`disabled`];function pO(e,t,n,r,i,a){return V(),H(B,null,[G(r.Sheet,{title:r.t(`picker.title`,{n:n.skills.length}),open:r.open,"onUpdate:open":t[12]||=e=>r.open=e,onClosed:t[13]||=e=>r.emit(`close`)},{default:I(()=>[W(`div`,zD,[W(`button`,{class:be([`tab`,r.scope===`user`?`tab-on`:``]),onClick:t[0]||=e=>r.scope=`user`},j(r.t(`picker.scopeUser`)),3),W(`button`,{class:be([`tab`,r.scope===`project`?`tab-on`:``]),onClick:t[1]||=e=>r.scope=`project`},j(r.t(`picker.scopeProject`)),3)]),r.scope===`project`?(V(),H(`div`,BD,[G(r.ProjectDropdown,{modelValue:r.projectRoot,"onUpdate:modelValue":[t[2]||=e=>r.projectRoot=e,t[3]||=()=>void r.loadAgents()],"recent-paths":r.recentPaths,"known-projects":n.knownProjects,placeholder:r.t(`picker.projectRoot`),onBrowse:t[4]||=e=>r.showBrowser=!0},null,8,[`modelValue`,`recent-paths`,`known-projects`,`placeholder`])])):K(`v-if`,!0),W(`div`,null,[di(W(`input`,{"onUpdate:modelValue":t[5]||=e=>r.query=e,type:`search`,class:`field-input`,placeholder:r.t(`picker.searchPlaceholder`)},null,8,VD),[[jd,r.query]])]),r.loadError?K(`v-if`,!0):(V(),H(`div`,HD,[W(`button`,{class:`quick-btn`,onClick:t[6]||=e=>r.selection=r.selectAllVisible(r.agents,r.query,r.selection)},j(r.t(`picker.quick.selectAll`)),1),W(`button`,{class:`quick-btn`,onClick:t[7]||=e=>r.selection=r.selectDetectedVisible(r.agents,r.query,r.selection)},j(r.t(`picker.quick.selectDetected`)),1),W(`button`,{class:`quick-btn`,onClick:t[8]||=e=>r.selection=r.clearVisible(r.agents,r.query,r.selection)},j(r.t(`picker.quick.clear`)),1)])),r.loadError?(V(),H(`p`,UD,j(r.t(`error.loadFailed`,{message:r.loadError})),1)):r.projectPending?(V(),H(`div`,WD,[W(`p`,GD,j(r.t(`picker.projectHint`)),1)])):(V(),H(`div`,KD,[r.detected.length>0?(V(),H(`section`,qD,[W(`h3`,JD,j(r.t(`picker.detected`)),1),(V(!0),H(B,null,_o(r.detected,e=>(V(),H(`label`,{key:e.id,class:`agent-row`},[G(r.Check,{checked:r.selection.includes(e.id),onToggle:t=>r.selection=r.toggleAgent(r.selection,e.id)},null,8,[`checked`,`onToggle`]),W(`span`,YD,j(e.id),1),W(`span`,XD,j(e.label),1)]))),128))])):K(`v-if`,!0),W(`section`,null,[W(`h3`,ZD,j(r.t(`picker.allAgents`)),1),(V(!0),H(B,null,_o(r.grouping.families,e=>(V(),H(`div`,{key:e.familyKey,class:`family`},[W(`button`,{class:`py-[2px] text-[12.5px] text-fg3 hover:text-accent`,onClick:t=>r.selection=r.toggleFamily(r.visible,r.selection,e.familyKey)},j(r.familyName(e.familyKey))+` · `+j(r.t(`picker.selectAll`)),9,QD),(V(!0),H(B,null,_o(e.members,e=>(V(),H(`label`,{key:e.id,class:`agent-row`},[G(r.Check,{checked:r.selection.includes(e.id),onToggle:t=>r.selection=r.toggleAgent(r.selection,e.id)},null,8,[`checked`,`onToggle`]),W(`span`,$D,j(e.id),1),W(`span`,eO,j(e.label),1)]))),128))]))),128)),(V(!0),H(B,null,_o(r.grouping.singletons,e=>(V(),H(`label`,{key:e.id,class:`agent-row`},[G(r.Check,{checked:r.selection.includes(e.id),onToggle:t=>r.selection=r.toggleAgent(r.selection,e.id)},null,8,[`checked`,`onToggle`]),W(`span`,tO,j(e.id),1),W(`span`,nO,j(e.label),1)]))),128)),r.grouping.families.length===0&&r.grouping.singletons.length===0?(V(),H(`p`,rO,j(r.t(`picker.noMatch`)),1)):K(`v-if`,!0)]),r.invalid.length>0?(V(),H(`section`,iO,[W(`h3`,aO,j(r.t(`picker.invalid`)),1),(V(!0),H(B,null,_o(r.invalid,e=>(V(),H(`label`,{key:e.id,class:`agent-row agent-row-invalid`},[G(r.Check,{disabled:``}),W(`span`,oO,j(e.id),1),W(`span`,sO,j(r.reasonText(e)),1)]))),128))])):K(`v-if`,!0)])),W(`div`,cO,[W(`span`,lO,j(r.t(`picker.mode`)),1),W(`button`,{class:be([`tab`,r.mode===`symlink`?`tab-on`:``]),onClick:t[9]||=e=>r.mode=`symlink`},j(r.t(`picker.symlink`)),3),W(`button`,{class:be([`tab`,r.mode===`copy`?`tab-on`:``]),onClick:t[10]||=e=>r.mode=`copy`},j(r.t(`picker.copy`)),3)]),W(`div`,uO,[W(`span`,dO,j(r.t(`picker.selected`,r.selection.length)),1),W(`button`,{class:`text-btn`,onClick:t[11]||=e=>r.emit(`close`)},j(r.t(`picker.cancel`)),1),W(`button`,{class:`primary-btn`,disabled:r.selection.length===0||r.applying||r.projectPending,onClick:r.apply},j(r.applying?r.t(`picker.applying`):r.t(`picker.apply`)),9,fO)])]),_:1},8,[`title`,`open`]),G(r.DirectoryBrowser,{open:r.showBrowser,"onUpdate:open":t[14]||=e=>r.showBrowser=e,"initial-path":r.projectRoot.trim()?r.projectRoot.trim():void 0,onSelect:r.onBrowsedPath},null,8,[`open`,`initial-path`])],64)}var mO=GT(RD,[[`render`,pO],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/AgentPickerSheet.vue`]]),hO=R({__name:`UndistributeSheet`,props:Uo({skill:{type:String,required:!0},agents:{type:Array,required:!0},knownProjects:{type:Array,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:Uo([`close`],[`update:open`]),setup(e,{expose:t,emit:n}){t();let r=e,i=n,a=fs(e,`open`),{t:o}=j_(),{show:s}=Sv(),{recentPaths:c}=JE(),l=N(`user`),u=N(``),d=N([...r.agents]),f=N(!1),p=N(!1),m=J(()=>l.value===`project`&&u.value.trim()===``);L(l,e=>{d.value=[...r.agents],e===`project`&&(u.value=PD(r.knownProjects))});function h(e){d.value=TD(d.value,e)}function g(e){u.value=e}async function _(){f.value=!0;try{let{removed:e}=await Y_({to:l.value,projectRoot:l.value===`project`&&u.value.trim()||void 0,skills:[r.skill],agents:d.value});s(`ok`,o(`notice.undistributed`,{skill:r.skill,n:e.length})),i(`close`)}catch(e){s(`error`,W_(e))}finally{f.value=!1}}let v={props:r,emit:i,open:a,t:o,show:s,recentPaths:c,scope:l,projectRoot:u,selection:d,applying:f,showBrowser:p,projectPending:m,toggle:h,onBrowsedPath:g,apply:_,Sheet:lE,DirectoryBrowser:mD,ProjectDropdown:xD,Check:XT};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),gO={class:`picker-hint`},_O={class:`scope-row`},vO={key:0,class:`pb-[1rem]`},yO={key:1,class:`picker-hint`},bO={key:2,class:`agent-list`},xO={class:`agent-id mono`},SO={class:`sheet-foot`},CO=[`disabled`];function wO(e,t,n,r,i,a){return V(),H(B,null,[G(r.Sheet,{title:r.t(`undistribute.title`,{skill:n.skill}),open:r.open,"onUpdate:open":t[5]||=e=>r.open=e,onClosed:t[6]||=e=>r.emit(`close`)},{default:I(()=>[W(`p`,gO,j(r.t(`undistribute.hint`)),1),W(`div`,_O,[W(`button`,{class:be([`tab`,r.scope===`user`?`tab-on`:``]),onClick:t[0]||=e=>r.scope=`user`},j(r.t(`picker.scopeUser`)),3),W(`button`,{class:be([`tab`,r.scope===`project`?`tab-on`:``]),onClick:t[1]||=e=>r.scope=`project`},j(r.t(`picker.scopeProject`)),3)]),r.scope===`project`?(V(),H(`div`,vO,[G(r.ProjectDropdown,{modelValue:r.projectRoot,"onUpdate:modelValue":t[2]||=e=>r.projectRoot=e,"recent-paths":r.recentPaths,"known-projects":n.knownProjects,placeholder:r.t(`picker.projectRoot`),onBrowse:t[3]||=e=>r.showBrowser=!0},null,8,[`modelValue`,`recent-paths`,`known-projects`,`placeholder`])])):K(`v-if`,!0),n.agents.length===0?(V(),H(`p`,yO,j(r.t(`undistribute.none`)),1)):(V(),H(`div`,bO,[(V(!0),H(B,null,_o(n.agents,e=>(V(),H(`label`,{key:e,class:`agent-row`},[G(r.Check,{checked:r.selection.includes(e),onToggle:t=>r.toggle(e)},null,8,[`checked`,`onToggle`]),W(`span`,xO,j(e),1)]))),128))])),W(`div`,SO,[W(`button`,{class:`text-btn`,onClick:t[4]||=e=>r.emit(`close`)},j(r.t(`undistribute.cancel`)),1),W(`button`,{class:`primary-btn`,disabled:r.selection.length===0||r.applying||r.projectPending,onClick:r.apply},j(r.applying?r.t(`picker.applying`):r.t(`undistribute.apply`)),9,CO)])]),_:1},8,[`title`,`open`]),G(r.DirectoryBrowser,{open:r.showBrowser,"onUpdate:open":t[7]||=e=>r.showBrowser=e,"initial-path":r.projectRoot.trim()?r.projectRoot.trim():void 0,onSelect:r.onBrowsedPath},null,8,[`open`,`initial-path`])],64)}var TO=GT(hO,[[`render`,wO],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/UndistributeSheet.vue`]]),EO=R({__name:`ConfirmSheet`,props:Uo({title:{type:String,required:!0},confirmLabel:{type:String,required:!0},danger:{type:Boolean,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:Uo([`confirm`,`cancel`],[`update:open`]),setup(e,{expose:t,emit:n}){t();let r=n,i=fs(e,`open`),{t:a}=j_(),o={emit:r,open:i,t:a,Sheet:lE};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),DO={class:`confirm-body`},OO={class:`sheet-foot`};function kO(e,t,n,r,i,a){return V(),U(r.Sheet,{title:n.title,open:r.open,"onUpdate:open":t[2]||=e=>r.open=e,onClosed:t[3]||=e=>r.emit(`cancel`)},{default:I(()=>[W(`div`,DO,[z(e.$slots,`default`)]),W(`div`,OO,[t[4]||=W(`span`,null,null,-1),W(`button`,{class:`text-btn`,onClick:t[0]||=e=>r.emit(`cancel`)},j(r.t(`remove.cancel`)),1),W(`button`,{class:be([`primary-btn`,n.danger?`bg-danger`:``]),onClick:t[1]||=e=>r.emit(`confirm`)},j(n.confirmLabel),3)])]),_:3},8,[`title`,`open`])}var AO=GT(EO,[[`render`,kO],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/ConfirmSheet.vue`]]),jO=R({__name:`SelectionBar`,props:{count:{type:Number,required:!0},busy:{type:Boolean,required:!1}},emits:[`update`,`distribute`,`remove`,`cancel`],setup(e,{expose:t}){t();let{t:n}=j_(),r={t:n};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),MO={class:`fixed bottom-[24px] left-1/2 z-[400] flex -translate-x-1/2 items-center gap-[14px] rounded-[12px] bg-fg px-[16px] py-[10px] text-[14px] text-bg shadow-[0_12px_32px_rgba(0,0,0,0.25)]`},NO={class:`font-semibold`},PO=[`disabled`],FO=[`disabled`],IO=[`disabled`],LO={class:`text-[12px] opacity-60`};function RO(e,t,n,r,i,a){return V(),U(Fi,{to:`body`},[W(`div`,MO,[W(`span`,NO,j(r.t(`selection.count`,n.count)),1),W(`button`,{class:`rounded-[7px] px-[12px] py-[5px] hover:enabled:bg-fg3/25 disabled:cursor-default disabled:opacity-50`,disabled:n.busy,onClick:t[0]||=t=>e.$emit(`update`)},j(r.t(`action.update`)),9,PO),W(`button`,{class:`rounded-[7px] px-[12px] py-[5px] hover:enabled:bg-fg3/25 disabled:cursor-default disabled:opacity-50`,disabled:n.busy,onClick:t[1]||=t=>e.$emit(`distribute`)},j(r.t(`action.distribute`)),9,FO),W(`button`,{class:`rounded-[7px] px-[12px] py-[5px] text-danger hover:enabled:bg-fg3/25 disabled:cursor-default disabled:opacity-50`,disabled:n.busy,onClick:t[2]||=t=>e.$emit(`remove`)},j(r.t(`menu.removeTitle`)),9,IO),W(`button`,{class:`rounded-[7px] px-[12px] py-[5px] hover:bg-fg3/25`,onClick:t[3]||=t=>e.$emit(`cancel`)},j(r.t(`selection.cancel`)),1),W(`span`,LO,j(r.t(`selection.esc`)),1)])])}var zO=GT(jO,[[`render`,RO],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/SelectionBar.vue`]]),BO=R({__name:`AddWizard`,props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:Uo([`close`],[`update:open`]),setup(e,{expose:t,emit:n}){t();let r=n,i=fs(e,`open`),{t:a}=j_(),{show:o}=Sv(),s=N(``),c=N(`source`),l=N([]),u=N([]),d=N([]),f=N(null),p=N(null),m=N(null);async function h(){if(s.value.trim()!==``){f.value=`discover`,p.value=null;try{let e=await $_(s.value.trim());l.value=e.discovered,u.value=e.existing,d.value=e.discovered.map(e=>e.subpath),c.value=`pick`}catch(e){p.value=W_(e)}finally{f.value=null}}}function g(e){d.value=TD(d.value,e)}async function _(e){f.value=`install`,p.value=null,m.value=null;try{let t=await nv({source:s.value.trim(),subpaths:d.value,overwrite:e});o(`ok`,a(`notice.installed`,{skills:t.installed.join(`, `)})),r(`close`)}catch(e){if(e instanceof U_&&e.code===`install_would_overwrite`){let t=e.details;m.value=t?.existing??[];return}p.value=W_(e)}finally{f.value=null}}let v={emit:r,open:i,t:a,show:o,sourceInput:s,step:c,discovered:l,existing:u,selected:d,busy:f,error:p,overwriteAsk:m,runDiscover:h,toggle:g,runInstall:_,Sheet:lE,Check:XT};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),VO=[`placeholder`],HO={key:0,class:`picker-error`},UO={class:`sheet-foot`},WO=[`disabled`],GO={class:`picker-hint`},KO={class:`agent-list`},qO={class:`agent-id mono`},JO={class:`agent-label`},YO={key:0,class:`existing-mark`},XO={key:0,class:`mt-[12px] rounded-[10px] border border-line p-[12px] text-[13.5px] text-fg2`},ZO={class:`mt-[10px] flex justify-end gap-[14px]`},QO={key:1,class:`picker-error`},$O={class:`sheet-foot`},ek={class:`picker-count`},tk=[`disabled`];function nk(e,t,n,r,i,a){return V(),U(r.Sheet,{title:r.t(`add.title`),open:r.open,"onUpdate:open":t[7]||=e=>r.open=e,onClosed:t[8]||=e=>r.emit(`close`)},{default:I(()=>[r.step===`source`?(V(),H(B,{key:0},[W(`div`,null,[di(W(`input`,{"onUpdate:modelValue":t[0]||=e=>r.sourceInput=e,type:`text`,class:`field-input`,placeholder:r.t(`add.sourcePlaceholder`),onKeydown:qd(r.runDiscover,[`enter`])},null,40,VO),[[jd,r.sourceInput]])]),r.error?(V(),H(`p`,HO,j(r.error),1)):K(`v-if`,!0),W(`div`,UO,[t[9]||=W(`span`,null,null,-1),W(`button`,{class:`text-btn`,onClick:t[1]||=e=>r.emit(`close`)},j(r.t(`add.cancel`)),1),W(`button`,{class:`primary-btn`,disabled:r.busy!==null||r.sourceInput.trim()===``,onClick:r.runDiscover},j(r.busy===`discover`?r.t(`add.discovering`):r.t(`add.discover`)),9,WO)])],64)):(V(),H(B,{key:1},[W(`p`,GO,j(r.t(`add.discoveredAt`,{source:r.sourceInput})),1),W(`div`,KO,[(V(!0),H(B,null,_o(r.discovered,e=>(V(),H(`label`,{key:e.subpath,class:`agent-row`},[G(r.Check,{checked:r.selected.includes(e.subpath),onToggle:t=>r.toggle(e.subpath)},null,8,[`checked`,`onToggle`]),W(`span`,qO,j(e.name),1),W(`span`,JO,[rl(j(e.description||r.t(`row.noDescription`))+` `,1),r.existing.includes(e.name)?(V(),H(`em`,YO,j(r.t(`add.existingBadge`)),1)):K(`v-if`,!0)])]))),128))]),r.overwriteAsk?(V(),H(`div`,XO,[W(`p`,null,j(r.t(`add.overwriteBody`,{skills:r.overwriteAsk.join(`, `)})),1),W(`div`,ZO,[W(`button`,{class:`text-btn`,onClick:t[2]||=e=>r.overwriteAsk=null},j(r.t(`remove.cancel`)),1),W(`button`,{class:`primary-btn bg-danger`,onClick:t[3]||=e=>r.runInstall(!0)},j(r.t(`add.overwriteConfirm`)),1)])])):r.error?(V(),H(`p`,QO,j(r.error),1)):K(`v-if`,!0),W(`div`,$O,[W(`button`,{class:`text-btn`,onClick:t[4]||=e=>r.step=`source`},j(r.t(`add.back`)),1),W(`span`,ek,j(r.t(`add.selected`,r.selected.length)),1),W(`button`,{class:`text-btn`,onClick:t[5]||=e=>r.emit(`close`)},j(r.t(`add.cancel`)),1),W(`button`,{class:`primary-btn`,disabled:r.busy!==null||r.selected.length===0,onClick:t[6]||=e=>r.runInstall(!1)},j(r.busy===`install`?r.t(`add.installing`):r.t(`add.install`)),9,tk)])],64))]),_:1},8,[`title`,`open`])}var rk=GT(BO,[[`render`,nk],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/AddWizard.vue`]]),ik=R({__name:`InlineCombobox`,props:{placeholder:{type:String,required:!0},emptyText:{type:String,required:!0},options:{type:Array,required:!0}},emits:[`select`],setup(e,{expose:t,emit:n}){t();let r=e,i=n,a=N(``),o=J(()=>{let e=a.value.trim().toLowerCase();return e?r.options.filter(t=>t.label.toLowerCase().includes(e)):r.options});function s(e){typeof e==`string`&&(a.value=``,i(`select`,e))}let c={props:r,emit:i,query:a,filtered:o,onSelect:s,get ComboboxAnchor(){return nw},get ComboboxContent(){return ow},get ComboboxEmpty(){return sw},get ComboboxInput(){return dw},get ComboboxItem(){return fw},get ComboboxPortal(){return mw},get ComboboxRoot(){return tw},get ComboboxViewport(){return gw}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}});function ak(e,t,n,r,i,a){return V(),U(r.ComboboxRoot,{"ignore-filter":!0,"open-on-focus":``,"onUpdate:modelValue":r.onSelect},{default:I(()=>[G(r.ComboboxAnchor,{class:`block w-[min(22rem,100%)]`},{default:I(()=>[G(r.ComboboxInput,{class:`w-full border-b border-line bg-transparent py-[4px] pr-[2px] pl-[2px] text-[13px] text-fg outline-none placeholder:text-fg3 focus:border-accent`,"display-value":()=>r.query,placeholder:n.placeholder,"onUpdate:modelValue":t[0]||=e=>r.query=String(e)},null,8,[`display-value`,`placeholder`])]),_:1}),G(r.ComboboxPortal,null,{default:I(()=>[G(r.ComboboxContent,{class:`z-[601] max-h-[280px] w-[var(--reka-combobox-trigger-width)] overflow-hidden rounded-[8px] border border-line bg-bg shadow-[0_8px_24px_rgba(0,0,0,0.14)]`,position:`popper`,"side-offset":4},{default:I(()=>[G(r.ComboboxViewport,{class:`overflow-y-auto py-[4px]`},{default:I(()=>[G(r.ComboboxEmpty,{class:`px-[12px] py-[10px] text-center text-[13px] text-fg3`},{default:I(()=>[rl(j(n.emptyText),1)]),_:1}),(V(!0),H(B,null,_o(r.filtered,e=>(V(),U(r.ComboboxItem,{key:e.value,class:`block cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap px-[12px] py-[6px] text-[13px] text-fg outline-none data-[highlighted]:bg-line2`,value:e.value,"text-value":e.label},{default:I(()=>[rl(j(e.label),1)]),_:2},1032,[`value`,`text-value`]))),128))]),_:1})]),_:1})]),_:1})]),_:1})}var ok=GT(ik,[[`render`,ak],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/InlineCombobox.vue`]]),sk=R({__name:`InlineSelect`,props:{modelValue:{type:String,required:!1},placeholder:{type:String,required:!0},options:{type:Array,required:!0}},emits:[`update:modelValue`],setup(e,{expose:t,emit:n}){t();let r=e,i=n;function a(e){typeof e==`string`&&i(`update:modelValue`,e)}let o={props:r,emit:i,onSelect:a,get SelectContent(){return yT},get SelectItem(){return ST},get SelectPortal(){return CT},get SelectRoot(){return sT},get SelectTrigger(){return wT},get SelectValue(){return TT},get SelectViewport(){return ET}};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}});function ck(e,t,n,r,i,a){return V(),U(r.SelectRoot,{"model-value":n.modelValue,"onUpdate:modelValue":r.onSelect},{default:I(()=>[G(r.SelectTrigger,{class:`ml-[0.5rem] max-w-[22rem] overflow-hidden text-ellipsis align-bottom text-fg2 hover:text-fg`,"aria-label":n.placeholder},{default:I(()=>[G(r.SelectValue,{class:`data-[placeholder]:text-fg3`,placeholder:n.placeholder},null,8,[`placeholder`]),t[0]||=W(`span`,{class:`ml-[2px] text-fg3`,"aria-hidden":`true`},`▾`,-1)]),_:1},8,[`aria-label`]),G(r.SelectPortal,null,{default:I(()=>[G(r.SelectContent,{class:`z-[601] max-h-[280px] overflow-hidden rounded-[8px] border border-line bg-bg py-[4px] shadow-[0_8px_24px_rgba(0,0,0,0.14)]`,position:`popper`,"side-offset":4},{default:I(()=>[G(r.SelectViewport,null,{default:I(()=>[(V(!0),H(B,null,_o(n.options,e=>(V(),U(r.SelectItem,{key:e.value,value:e.value,class:`cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap px-[12px] py-[6px] text-[13px] text-fg outline-none data-[state=checked]:text-accent data-[highlighted]:bg-line2`},{default:I(()=>[rl(j(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,[`model-value`])}var lk=GT(sk,[[`render`,ck],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/InlineSelect.vue`]]);function uk(e){let t=new Map;for(let n of e){let e=t.get(n.runtimeDir)??[];t.set(n.runtimeDir,e.includes(n.agentId)?e:[...e,n.agentId])}return[...t.entries()].map(([e,t])=>({value:e,agentIds:[...t].sort()}))}function dk(e,t){return!t||e.includes(t)?[...e]:[...e,t]}function fk(e,t){return e.filter(e=>e!==t)}function pk(e,t,n){let r=t+n;if(t<0||r<0||r>=e.length)return[...e];let i=[...e],[a]=i.splice(t,1);return i.splice(r,0,a),i}var mk=R({__name:`InitSheet`,props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:Uo([`close`],[`update:open`]),setup(e,{expose:t,emit:n}){t();let r=n,i=fs(e,`open`),{t:a}=j_(),{show:o}=Sv(),s=N(null),c=N(null),l=N(!1),u=N({}),d=N([]);async function f(){s.value=await ev({prefer:d.value.length>0?d.value:void 0,resolve:Object.keys(u.value).length>0?u.value:void 0})}$a(async()=>{try{await f()}catch(e){c.value=W_(e)}}),L(d,async()=>{if(s.value)try{await f()}catch(e){c.value=W_(e)}});let p=J(()=>{let e=new Map;for(let t of s.value?.conflicts??[])e.set(t.skill,t);return e}),m=J(()=>uk(s.value?.scanned??[])),h=J(()=>{let e=new Set(d.value),t=m.value.filter(t=>!e.has(t.value));return e.has(`hub`)?t:[...t,{value:`hub`,agentIds:[]}]}),g=J(()=>{if(!s.value)return 0;let e=s.value.conflicts.filter(e=>!u.value[e.skill]).length;return s.value.discovered.length-e});function _(e){if(e===`hub`)return a(`init.preferHub`);let t=m.value.find(t=>t.value===e);return t&&t.agentIds.length>0?`${e} (${t.agentIds.join(`, `)})`:e}function v(e){let t=e.locations.map(e=>({value:e.runtimeDir,label:e.runtimeDir}));return e.hub||e.kind===`hub-vs-runtime`?[...t,{value:`hub`,label:a(`init.keepHub`)}]:t}async function y(){l.value=!0,c.value=null;try{let e=await tv({resolve:u.value,prefer:d.value.length>0?d.value:void 0});e.imported.length>0&&o(`ok`,a(`notice.imported`,{skills:e.imported.join(`, `)})),e.failed.length>0&&o(`error`,e.failed.map(e=>a(`notice.importFailed`,{skill:e.skill,message:e.reason})).join(`; `)),r(`close`)}catch(e){c.value=W_(e)}finally{l.value=!1}}let b={emit:r,open:i,t:a,show:o,preview:s,error:c,busy:l,resolve:u,prefer:d,loadPreview:f,conflictBySkill:p,sources:m,remainingSources:h,importableCount:g,sourceLabel:_,choicesFor:v,runApply:y,Sheet:lE,InlineCombobox:ok,InlineSelect:lk,get addPrefer(){return dk},get movePrefer(){return pk},get removePrefer(){return fk}};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}}),hk={key:0,class:`picker-error`},gk={key:1,class:`picker-hint`},_k={class:`picker-hint`},vk={class:`mb-[12px]`},yk={class:`picker-hint`},bk={key:0,class:`mb-[8px] pl-[1.2rem]`},xk={class:`mono mr-auto min-w-0 overflow-hidden text-ellipsis`},Sk=[`disabled`,`onClick`],Ck=[`disabled`,`onClick`],wk=[`onClick`],Tk={key:0,class:`picker-hint`},Ek={key:1,class:`agent-list`},Dk={class:`agent-id mono`},Ok={class:`agent-label`},kk={key:0,class:`existing-mark`},Ak={class:`existing-mark`},jk={class:`sheet-foot`},Mk={class:`picker-count`},Nk=[`disabled`];function Pk(e,t,n,r,i,a){return V(),U(r.Sheet,{title:r.t(`init.title`),open:r.open,"onUpdate:open":t[2]||=e=>r.open=e,onClosed:t[3]||=e=>r.emit(`close`)},{default:I(()=>[r.error?(V(),H(`p`,hk,j(r.error),1)):r.preview?(V(),H(B,{key:2},[W(`p`,_k,j(r.t(`init.hint`)),1),W(`div`,vk,[W(`p`,yk,j(r.t(`init.preferHint`)),1),r.prefer.length>0?(V(),H(`ol`,bk,[(V(!0),H(B,null,_o(r.prefer,(e,t)=>(V(),H(`li`,{key:e,class:`flex items-baseline gap-[8px] text-[13px]`},[W(`span`,xk,j(r.sourceLabel(e)),1),W(`button`,{type:`button`,class:`text-btn`,disabled:t===0,onClick:e=>r.prefer=r.movePrefer(r.prefer,t,-1)},j(r.t(`init.preferUp`)),9,Sk),W(`button`,{type:`button`,class:`text-btn`,disabled:t===r.prefer.length-1,onClick:e=>r.prefer=r.movePrefer(r.prefer,t,1)},j(r.t(`init.preferDown`)),9,Ck),W(`button`,{type:`button`,class:`text-btn`,onClick:t=>r.prefer=r.removePrefer(r.prefer,e)},j(r.t(`init.preferRemove`)),9,wk)]))),128))])):K(`v-if`,!0),K(` Search-to-add: picking an option appends it to the priority list;
|
|
45
|
+
the control resets to its placeholder. `),r.remainingSources.length>0?(V(),U(r.InlineCombobox,{key:1,class:`mt-[6px]`,placeholder:r.t(`init.preferAdd`),"empty-text":r.t(`init.preferNoMatch`),options:r.remainingSources.map(e=>({value:e.value,label:r.sourceLabel(e.value)})),onSelect:t[0]||=e=>r.prefer=r.addPrefer(r.prefer,e)},null,8,[`placeholder`,`empty-text`,`options`])):K(`v-if`,!0)]),r.preview.discovered.length===0&&r.preview.skippedManaged.length===0?(V(),H(`div`,Tk,j(r.t(`init.empty`)),1)):(V(),H(`div`,Ek,[(V(!0),H(B,null,_o(r.preview.discovered,e=>(V(),H(`label`,{key:e.name,class:`agent-row`},[W(`span`,Dk,j(e.name),1),W(`span`,Ok,[rl(j(e.title)+` `,1),r.preview.skippedManaged.includes(e.name)?(V(),H(`em`,kk,j(r.t(`init.managedBadge`)),1)):K(`v-if`,!0),r.conflictBySkill.has(e.name)?(V(),H(B,{key:1},[W(`em`,Ak,j(r.t(`init.conflictBadge`)),1),G(r.InlineSelect,{modelValue:r.resolve[e.name],"onUpdate:modelValue":t=>r.resolve[e.name]=t,placeholder:r.t(`init.choicePlaceholder`),options:r.choicesFor(r.conflictBySkill.get(e.name))},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`,`options`])],64)):K(`v-if`,!0)])]))),128))])),W(`div`,jk,[W(`span`,Mk,j(r.t(`init.selected`,r.importableCount)),1),W(`button`,{class:`text-btn`,onClick:t[1]||=e=>r.emit(`close`)},j(r.t(`init.cancel`)),1),W(`button`,{class:`primary-btn`,disabled:r.busy||r.importableCount===0,onClick:r.runApply},j(r.busy?r.t(`init.applying`):r.t(`init.apply`)),9,Nk)])],64)):(V(),H(`p`,gk,j(r.t(`init.scanning`)),1))]),_:1},8,[`title`,`open`])}var Fk=GT(mk,[[`render`,Pk],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/InitSheet.vue`]]),Ik=R({__name:`LogDrawer`,props:Uo({records:{type:Array,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(e,{expose:t}){t();let n=fs(e,`open`),{t:r,locale:i}=j_();function a(e){return new Date(e).toLocaleString(i.value,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`})}let o={open:n,t:r,locale:i,formatTime:a,Sheet:lE};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),Lk={key:0,class:`my-[8px] text-[13px] text-fg3`},Rk={key:1},zk={class:`whitespace-nowrap tabular-nums text-fg3`},Bk={class:`mono whitespace-nowrap text-fg2`},Vk={class:`overflow-hidden text-ellipsis text-fg2`};function Hk(e,t,n,r,i,a){return V(),U(r.Sheet,{side:`right`,title:r.t(`log.title`),open:r.open,"onUpdate:open":t[0]||=e=>r.open=e},{default:I(()=>[n.records.length===0?(V(),H(`p`,Lk,j(r.t(`log.empty`)),1)):(V(),H(`div`,Rk,[(V(!0),H(B,null,_o(n.records,e=>(V(),H(`p`,{key:e.id,class:`flex items-baseline gap-[10px] border-b border-line2 py-[8px] text-[13px]`},[W(`span`,zk,j(r.formatTime(e.timestamp)),1),W(`span`,Bk,j(e.action),1),W(`span`,Vk,j(e.summary),1)]))),128))]))]),_:1},8,[`title`,`open`])}var Uk=GT(Ik,[[`render`,Hk],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/LogDrawer.vue`]]),Wk=`skills-manager.prefs.theme`;function Gk(e){let t=e.getItem(Wk);return t===`light`||t===`dark`?t:null}function Kk(e,t){return Gk(e)??t}function qk(e,t){e.setItem(Wk,t)}function Jk(e){return e===`dark`?`light`:`dark`}function Yk(e,t){return Gk(e)?null:t}function Xk(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Zk(e){document.documentElement.dataset.theme=e}function Qk(){let e=N(Kk(localStorage,Xk()));Zk(e.value),window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,t=>{let n=Yk(localStorage,t.matches?`dark`:`light`);n!==null&&(e.value=n,Zk(n))});function t(){let t=Jk(e.value);e.value=t,Zk(t),qk(localStorage,t)}return{theme:e,toggleTheme:t}}var $k=[`zh-CN`,`en-US`],eA=`skills-manager.prefs.locale`;function tA(){let e=localStorage.getItem(eA);return e===`zh-CN`||e===`en-US`?e:navigator.language.toLowerCase().startsWith(`zh`)?`zh-CN`:`en-US`}function nA(e){localStorage.setItem(eA,e)}var rA=null;function iA(e){rA=e}function aA(){let e=N(tA());function t(t){e.value=t,nA(t),rA&&(rA.locale.value=t)}return{locale:e,setLocale:t,supportedLocales:$k}}var oA=R({__name:`NoticeToast`,props:{notice:{type:null,required:!0},raised:{type:Boolean,required:!1}},setup(e,{expose:t}){t();let n={get ToastDescription(){return BT},get ToastRoot(){return VT},get ToastViewport(){return UT}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function sA(e,t,n,r,i,a){return V(),H(B,null,[K(` One ToastRoot only — a new notice remounts this slot instead of stacking.
|
|
46
|
+
Duration 0 disables Reka's own timer: the single TTL lives in useNotice
|
|
47
|
+
(domain noticeSlot dismissAt), so exactly one clock can expire a toast. `),n.notice?(V(),U(r.ToastRoot,{key:`${n.notice.kind}:${n.notice.text}`,open:!0,duration:0,type:`foreground`,as:`div`,role:`status`,"aria-live":`polite`,class:be([`max-w-[min(560px,calc(100vw-48px))] rounded-[8px] border border-line bg-bg px-[14px] py-[8px] text-center text-[13px] shadow-[0_8px_24px_rgba(0,0,0,0.12)]`,n.notice.kind===`error`?`text-danger`:`text-ok`])},{default:I(()=>[G(r.ToastDescription,null,{default:I(()=>[rl(j(n.notice.text),1)]),_:1})]),_:1},8,[`class`])):K(`v-if`,!0),G(r.ToastViewport,{as:`div`,class:be([`fixed left-1/2 z-[650] flex -translate-x-1/2 p-0`,n.raised?`bottom-[84px]`:`bottom-[24px]`]),label:``},null,8,[`class`])],64)}var cA=GT(oA,[[`render`,sA],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/components/NoticeToast.vue`]]),lA=R({__name:`App`,setup(e,{expose:t}){t();let{t:n}=j_(),{notice:r,show:i}=Sv(),{theme:a,toggleTheme:o}=Qk(),{locale:s,setLocale:c}=aA(),l=N(null),u=N(null),d=N(``),f=N(null),p=N(!1),m=N(null),h=N(!1),g=N(null),_=N(!1),v=N(null),y=N(!1),b=N(!1),x=N(!1),S=N(!1),C=N(!1),w=N(!1),T=N(null),E=N(lv);vi(()=>{document.body.classList.toggle(`selecting`,E.value.active)});function D(e){E.value=uv(E.value,e)}let O=J(()=>l.value?l.value.skills.filter(e=>pv(E.value,e.name)):[]);async function ee(){await ce(hv(O.value)),E.value=dv(E.value)}function te(){f.value=[...E.value.names],p.value=!0}async function ne(){u.value=null;try{if(l.value=await K_(),l.value.skills.length===0&&T.value===null)try{T.value=(await ev()).discovered.length}catch{T.value=0}}catch(e){u.value=W_(e)}}$a(()=>{cv(location.hash).redirect&&history.replaceState(null,``,location.pathname+location.search),window.addEventListener(`keydown`,k),ne()}),ro(()=>window.removeEventListener(`keydown`,k));function k(e){e.key===`Escape`&&(!E.value.active||f.value||g.value||v.value||m.value||(E.value=dv(E.value)))}let re=J(()=>l.value?ov(l.value.skills,d.value):[]),ie=J(()=>d.value.trim()!==``),ae=N(new Set),oe=J(()=>l.value!==null&&mv(l.value.updateCount)),A=J(()=>{let e=l.value?hv(l.value.skills):[];return e.length>0&&e.every(e=>ae.value.has(e))});async function se(e,t){try{l.value=await K_(),i(t.errored>0?`error`:`ok`,t.errored>0?n(`notice.refreshErrors`,{n:t.errored,first:t.errors[0]?.message??``}):n(`notice.refreshed`,{skill:e}))}catch(e){i(`error`,W_(e))}}async function ce(e){if(e.length!==0){ae.value=new Set(e);try{let{updated:t}=await Z_(e);i(`ok`,n(`notice.updated`,{skills:t.join(`, `)}))}catch(e){i(`error`,W_(e))}finally{ae.value=new Set}await ne()}}function le(e){f.value=[e],p.value=!0}function ue(e){m.value=e,h.value=!0}function de(e){g.value=e,_.value=!0}function fe(e){v.value=[e],y.value=!0}function pe(){v.value=O.value,y.value=!0}function me(){b.value=!0,x.value=!0}function he(){C.value=!0,w.value=!0}async function ge(){b.value=!1,x.value=!1,await ne()}async function _e(){C.value=!1,w.value=!1,T.value=null,await ne()}async function ve(){f.value=null,p.value=!1,E.value=dv(E.value),await ne()}async function ye(){g.value=null,_.value=!1,await ne()}function be(){v.value=null,y.value=!1}function xe(){m.value=null,h.value=!1}let Se=J(()=>v.value?sv(v.value):null);async function Ce(){let e=v.value??[];v.value=null,E.value=dv(E.value);try{let{results:t}=await X_(e.map(e=>e.name)),r=t.filter(e=>e.ok).map(e=>e.skill),a=t.filter(e=>!e.ok);r.length>0&&i(`ok`,n(`notice.removed`,{skills:r.join(`, `)})),a.length>0&&i(`error`,a.map(e=>n(`notice.removeFailed`,{skill:e.skill,message:e.error.message})).join(`; `))}catch(e){i(`error`,W_(e))}await ne()}let we={t:n,notice:r,show:i,theme:a,toggleTheme:o,locale:s,setLocale:c,state:l,loadError:u,query:d,pickerSkills:f,pickerOpen:p,previewTarget:m,previewOpen:h,undistributeTarget:g,undistributeOpen:_,removeTargets:v,removeOpen:y,addSession:b,addOpen:x,logOpen:S,initSession:C,initOpen:w,importableCount:T,selection:E,onRowToggle:D,selectedSkillStates:O,batchUpdate:ee,batchDistribute:te,load:ne,onKeydown:k,rows:re,isFiltering:ie,updating:ae,stripVisible:oe,updatingAll:A,onRefreshed:se,runUpdate:ce,openPicker:le,openPreview:ue,openUndistribute:de,openRemove:fe,batchRemove:pe,beginAdd:me,beginInit:he,onAddClose:ge,onInitClose:_e,onPickerClose:ve,onUndistributeClose:ye,onRemoveCancel:be,onPreviewClose:xe,removeSummary:Se,onRemoveConfirm:Ce,get exitSelection(){return dv},get isSelected(){return pv},get selectionCount(){return fv},get updatableNames(){return hv},SkillRow:oE,SkillPreviewSheet:UE,AgentPickerSheet:mO,UndistributeSheet:TO,ConfirmSheet:AO,SelectionBar:zO,AddWizard:rk,InitSheet:Fk,LogDrawer:Uk,get ToastProvider(){return kT},NoticeToast:cA};return Object.defineProperty(we,"__isScriptSetup",{enumerable:!1,value:!0}),we}}),uA={class:`mx-auto max-w-[720px] px-[24px] pb-[80px] pt-[56px]`},dA={class:`mb-[6px] flex items-baseline gap-[12px]`},fA={class:`text-[22px] font-bold tracking-[-0.01em]`},pA={class:`ml-auto flex gap-[16px] text-[13.5px] text-fg2`},mA=[`title`],hA={class:`mb-[18px] text-[13px] text-fg3`},gA={class:`mb-[8px] border-b border-line`},_A=[`placeholder`],vA={key:0,class:`py-[10px] px-[2px] text-[14px] text-fg2`},yA={class:`font-semibold text-fg`},bA=[`disabled`],xA={key:1,class:`px-[2px] py-[48px] text-fg2`},SA={class:`mb-[6px] text-[16px] font-semibold text-fg`},CA={key:2,class:`flex items-center justify-center gap-[10px] px-[2px] py-[48px] text-fg2`,role:`status`},wA={key:0,class:`px-[2px] py-[48px] text-fg2`},TA={class:`mb-[6px] text-[16px] font-semibold text-fg`},EA={class:`text-[13.5px] text-fg3`},DA={class:`mb-[6px] text-[16px] font-semibold text-fg`},OA={class:`text-[13.5px] text-fg3`},kA={class:`confirm-skills mono`};function AA(e,t,n,r,i,a){return V(),U(r.ToastProvider,{"disable-swipe":``,label:r.t(`library.title`)},{default:I(()=>[W(`main`,uA,[W(`header`,dA,[W(`h1`,fA,j(r.t(`library.title`)),1),W(`div`,pA,[W(`button`,{class:`hover:text-fg`,onClick:t[0]||=e=>r.logOpen=!0},j(r.t(`log.link`)),1),W(`button`,{class:`hover:text-fg`,onClick:r.beginAdd},j(r.t(`add.link`)),1),W(`button`,{class:`hover:text-fg`,onClick:r.beginInit},j(r.t(`init.link`)),1),W(`button`,{class:`hover:text-fg`,title:r.t(`chrome.themeHint`),onClick:t[1]||=(...e)=>r.toggleTheme&&r.toggleTheme(...e)},j(r.theme===`dark`?`☀`:`◐`),9,mA),W(`button`,{class:`hover:text-fg`,onClick:t[2]||=e=>r.setLocale(r.locale===`zh-CN`?`en-US`:`zh-CN`)},j(r.locale===`zh-CN`?`EN`:`中文`),1),t[14]||=W(`a`,{class:`text-inherit no-underline hover:text-fg`,href:`https://github.com/shenysun/skills-manager`,target:`_blank`,rel:`noreferrer`},`GitHub`,-1)])]),W(`p`,hA,j(r.t(`library.count`,r.state?.skills.length??0)),1),W(`div`,gA,[di(W(`input`,{"onUpdate:modelValue":t[3]||=e=>r.query=e,type:`search`,class:`w-full border-none bg-transparent py-[8px] px-[2px] text-[14.5px] outline-none placeholder:text-fg3`,placeholder:r.t(`search.placeholder`)},null,8,_A),[[jd,r.query]])]),r.stripVisible?(V(),H(`p`,vA,[W(`b`,yA,j(r.t(`strip.text`,r.state?.updateCount??0)),1),W(`button`,{class:`ml-[12px] font-semibold text-accent disabled:cursor-default disabled:opacity-60`,disabled:r.updating.size>0,onClick:t[4]||=e=>r.runUpdate(r.updatableNames(r.state?.skills??[]))},j(r.updatingAll?r.t(`strip.updating`):r.t(`strip.updateAll`)),9,bA)])):K(`v-if`,!0),r.loadError?(V(),H(`div`,xA,[W(`p`,SA,j(r.t(`error.loadFailed`,{message:r.loadError})),1),W(`button`,{class:`mt-[10px] text-[13.5px] font-semibold text-accent`,onClick:r.load},j(r.t(`error.retry`)),1)])):r.state?r.state?(V(),H(B,{key:3},[r.rows.length===0?(V(),H(`div`,wA,[!r.isFiltering&&(r.importableCount??0)>0?(V(),H(B,{key:0},[W(`p`,TA,j(r.t(`empty.guided.title`,r.importableCount??0)),1),W(`p`,EA,j(r.t(`empty.guided.hint`)),1),W(`button`,{class:`primary-btn mt-[12px]`,onClick:r.beginInit},j(r.t(`empty.guided.action`)),1)],64)):(V(),H(B,{key:1},[W(`p`,DA,j(r.isFiltering?r.t(`empty.filtered.title`,{query:r.query.trim()}):r.t(`empty.library.title`)),1),W(`p`,OA,j(r.isFiltering?r.t(`empty.filtered.hint`):r.t(`empty.library.hint`)),1)],64))])):K(`v-if`,!0),(V(!0),H(B,null,_o(r.rows,e=>(V(),U(r.SkillRow,{key:e.name,skill:e,updating:r.updating.has(e.name),selected:r.isSelected(r.selection,e.name),selecting:r.selection.active,onToggle:r.onRowToggle,onDistribute:r.openPicker,onUpdate:t[5]||=e=>r.runUpdate([e]),onUndistribute:r.openUndistribute,onRemove:r.openRemove,onPreview:r.openPreview,onRefreshed:r.onRefreshed},null,8,[`skill`,`updating`,`selected`,`selecting`]))),128))],64)):K(`v-if`,!0):(V(),H(`div`,CA,[t[15]||=W(`span`,{class:`size-[12px] animate-spin rounded-full border-[1.5px] border-fg3 border-t-transparent`,"aria-hidden":`true`},null,-1),rl(` `+j(r.t(`library.loading`)),1)])),r.pickerSkills?(V(),U(r.AgentPickerSheet,{key:4,open:r.pickerOpen,"onUpdate:open":t[6]||=e=>r.pickerOpen=e,skills:r.pickerSkills,"known-projects":r.state?.knownProjects??[],onClose:r.onPickerClose},null,8,[`open`,`skills`,`known-projects`])):K(`v-if`,!0),r.undistributeTarget?(V(),U(r.UndistributeSheet,{key:5,open:r.undistributeOpen,"onUpdate:open":t[7]||=e=>r.undistributeOpen=e,skill:r.undistributeTarget.name,agents:r.undistributeTarget.distributedAgents,"known-projects":r.state?.knownProjects??[],onClose:r.onUndistributeClose},null,8,[`open`,`skill`,`agents`,`known-projects`])):K(`v-if`,!0),r.removeTargets&&r.removeSummary?(V(),U(r.ConfirmSheet,{key:6,open:r.removeOpen,"onUpdate:open":t[8]||=e=>r.removeOpen=e,title:r.t(`remove.title`),"confirm-label":r.t(`remove.confirm`),danger:``,onCancel:r.onRemoveCancel,onConfirm:r.onRemoveConfirm},{default:I(()=>[W(`p`,null,j(r.t(`remove.consequence`,{agents:r.removeSummary.agentCount,skills:r.removeSummary.skillCount})),1),W(`p`,kA,j(r.removeTargets.map(e=>e.name).join(` · `)),1)]),_:1},8,[`open`,`title`,`confirm-label`])):K(`v-if`,!0),r.addSession?(V(),U(r.AddWizard,{key:7,open:r.addOpen,"onUpdate:open":t[9]||=e=>r.addOpen=e,onClose:r.onAddClose},null,8,[`open`])):K(`v-if`,!0),r.previewTarget?(V(),U(r.SkillPreviewSheet,{key:8,open:r.previewOpen,"onUpdate:open":t[10]||=e=>r.previewOpen=e,skill:r.previewTarget,onClose:r.onPreviewClose},null,8,[`open`,`skill`])):K(`v-if`,!0),r.initSession?(V(),U(r.InitSheet,{key:9,open:r.initOpen,"onUpdate:open":t[11]||=e=>r.initOpen=e,onClose:r.onInitClose},null,8,[`open`])):K(`v-if`,!0),G(r.LogDrawer,{open:r.logOpen,"onUpdate:open":t[12]||=e=>r.logOpen=e,records:r.state?.activity??[]},null,8,[`open`,`records`]),r.selection.active?(V(),U(r.SelectionBar,{key:10,count:r.selectionCount(r.selection),busy:r.updating.size>0,onUpdate:r.batchUpdate,onDistribute:r.batchDistribute,onRemove:r.batchRemove,onCancel:t[13]||=e=>r.selection=r.exitSelection(r.selection)},null,8,[`count`,`busy`])):K(`v-if`,!0),G(r.NoticeToast,{notice:r.notice,raised:r.selection.active},null,8,[`notice`,`raised`])])]),_:1},8,[`label`])}var jA=GT(lA,[[`render`,AA],[`__file`,`/home/runner/work/skills-manager/skills-manager/dashboard-web/src/App.vue`]]),MA={library:{title:`Skill library`,count:`{n} skills`,loading:`Loading…`},search:{placeholder:`Search skills / categories / descriptions…`},status:{updatable:`Update available`,warningBroken:`⚠ broken link`,warningOutdated:`⚠ outdated copy`,agents:`{n} agents`,projects:`{n} projects`,unlinked:`not distributed`,staleBadge:`stale: {count}`,staleHint:`{count} copy target(s) lag the hub`},row:{noDescription:`No description`},preview:{openHint:`Preview skill contents`,viewSource:`View source`,viewRendered:`Rendered view`,sourceLabel:`Source`,distPrefix:`Distributed to`,distUser:`User`,loadFailed:`Preview failed to load: {message}`,truncated:`Content exceeds 512KB; shown truncated.`,binary:`Binary file, contents not rendered · {size}`,loading:`Loading…`},action:{distribute:`Distribute`,update:`Update`,updating:`Updating…`,refresh:`Refresh copies`,refreshing:`Refreshing…`},strip:{text:`{n} skills can be updated`,updateAll:`Update all`,updating:`Updating…`},empty:{filtered:{title:`No skills match “{query}”`,hint:`This is the search filter at work — adjust or clear the query to see every skill.`},library:{title:`The library is empty`,hint:`Use “+ Add” at the top to install your first skill.`},guided:{title:`{n} existing skills detected`,hint:`They live in agent runtime dirs (e.g. ~/.claude/skills). Import them to manage them in one place — origins become links.`,action:`Import now`}},init:{link:`Import existing`,title:`Import runtime skills`,scanning:`Scanning runtime directories…`,hint:`Selected skills move into the library; each origin is backed up first and its old spot becomes a link back to the hub.`,empty:`No importable skills found in agent runtime directories.`,managedBadge:`managed`,conflictBadge:`clash`,choicePlaceholder:`skip (pick a copy to import)`,keepHub:`keep hub copy`,preferHint:`Optional: clashes resolve in this order; unlisted ones stay skipped, per-row picks win.`,preferAdd:`Search to add…`,preferNoMatch:`No match`,preferRemove:`Remove`,preferUp:`Up`,preferDown:`Down`,preferHub:`hub`,selected:`{n} to import`,apply:`Import`,applying:`Importing…`,cancel:`Cancel`},error:{loadFailed:`Failed to load: {message}`,retry:`Retry`},picker:{title:`Distribute {n} skill(s)`,scopeUser:`User`,scopeProject:`Project`,projectRoot:`Project root (e.g. ~/code/myproject)`,projectHint:`Pick a project from your distribution history, or type a new path and press Enter.`,browsePath:`Browse`,searchPlaceholder:`Search agents…`,quick:{selectAll:`Select all`,selectDetected:`Select detected`,clear:`Clear`},detected:`Detected`,allAgents:`Full catalog`,selectAll:`select all`,invalid:`Unavailable in this scope`,reasonProjectOnly:`Project scope only (no global runtime path in the catalog)`,reasonUnresolvable:`Global runtime dir cannot be resolved on this machine`,noMatch:`No matching agents.`,mode:`Mode`,symlink:`symlink (link)`,copy:`copy (copy)`,selected:`{n} agents selected`,apply:`Distribute`,applying:`Distributing…`,cancel:`Cancel`},undistribute:{title:`Undistribute: {skill}`,hint:`Removes only the agent-side entries; the skill stays in the library.`,none:`This skill has no distributed agents.`,apply:`Undistribute`,cancel:`Cancel`},menu:{more:`More`,preview:`Preview…`,undistribute:`Undistribute…`,remove:`Remove from library…`,removeTitle:`Remove`},notice:{distributed:`Distributed {skills} → {n} agent(s)`,undistributed:`Undistributed {skill} from {n} agent(s)`,removed:`Removed from library: {skills}`,removeFailed:`Remove failed: {skill} — {message}`,updated:`Updated: {skills}`,installed:`Installed: {skills}`,imported:`Imported: {skills}`,importFailed:`Import failed: {skill} — {message}`,refreshed:`Refreshed copies of {skill}`,refreshErrors:`Refreshed, but {n} target(s) failed: {first}`},remove:{title:`Remove from library`,consequence:`This undistributes {agents} agent entrie(s) and archives {skills} skill(s) from the library.`,confirm:`Remove`,cancel:`Cancel`},selection:{count:`{n} selected`,cancel:`Cancel`,esc:`Esc to exit`},add:{link:`+ Add`,title:`+ Add skills`,cancel:`Cancel`,sourcePlaceholder:`Source: local path / Git URL / GitHub (owner/repo)`,discover:`Discover`,discovering:`Discovering…`,discoveredAt:`From: {source}`,existingBadge:`already installed`,back:`Back`,selected:`{n} selected`,install:`Install`,installing:`Installing…`,overwriteBody:`Already in the library: {skills}. Continuing overwrites these skills.`,overwriteConfirm:`Overwrite and install`},log:{link:`Log`,title:`Operation log`,empty:`No operations recorded yet.`},chrome:{themeHint:`Toggle light/dark theme`,close:`Close`},browser:{title:`Select project directory`,recent:`Recent`,up:`Go up`,empty:`No subdirectories`,loading:`Loading…`,cancel:`Cancel`,select:`Select this directory`},dropdown:{browse:`Browse directory`,noMatch:`No matching projects`,recentLabel:`Recent`,knownLabel:`Known projects`}},NA={library:{title:`技能库`,count:`{n} 个技能`,loading:`加载中…`},search:{placeholder:`搜索技能 / 分类 / 描述…`},status:{updatable:`可更新`,warningBroken:`⚠ 接入已断开`,warningOutdated:`⚠ 副本过期`,agents:`{n} agents`,projects:`{n} projects`,unlinked:`未接入`,staleBadge:`落后 {count}`,staleHint:`{count} 个 copy 副本落后于 hub`},row:{noDescription:`无描述`},preview:{openHint:`预览技能内容`,viewSource:`查看源码`,viewRendered:`渲染视图`,sourceLabel:`来源`,distPrefix:`接入`,distUser:`用户`,loadFailed:`预览加载失败:{message}`,truncated:`内容超过 512KB,已截断显示。`,binary:`二进制文件,不渲染内容 · {size}`,loading:`加载中…`},action:{distribute:`接入`,update:`更新`,updating:`更新中…`,refresh:`刷新副本`,refreshing:`刷新中…`},strip:{text:`{n} 个技能可更新`,updateAll:`全部更新`,updating:`更新中…`},empty:{filtered:{title:`没有匹配「{query}」的技能`,hint:`这是搜索过滤的结果——调整或清空搜索词即可看到全部技能。`},library:{title:`技能库是空的`,hint:`用顶部的「+添加」安装第一个技能。`},guided:{title:`检测到 {n} 个可导入的技能`,hint:`它们目前散落在 agent 运行时目录(如 ~/.claude/skills)。导入后统一管理,原位置自动变为链接。`,action:`立即导入`}},init:{link:`导入已有`,title:`导入运行时技能`,scanning:`正在扫描运行时目录…`,hint:`选中的技能将移入技能库;原目录先备份,原位置变为指回技能库的链接。`,empty:`没有在 agent 运行时目录发现可导入的技能。`,managedBadge:`已管理`,conflictBadge:`冲突`,choicePlaceholder:`跳过(选择版本后导入)`,keepHub:`保留库中版本`,preferHint:`可选:按此顺序裁决冲突;未列入的跳过,逐行选择优先。`,preferAdd:`搜索并加入优先级…`,preferNoMatch:`无匹配`,preferRemove:`移除`,preferUp:`上移`,preferDown:`下移`,preferHub:`技能库`,selected:`将导入 {n} 个`,apply:`导入`,applying:`导入中…`,cancel:`取消`},error:{loadFailed:`加载失败:{message}`,retry:`重试`},picker:{title:`接入 {n} 个技能`,scopeUser:`用户`,scopeProject:`项目`,projectRoot:`项目根目录(如 ~/code/myproject)`,projectHint:`从分发历史选择项目路径,或输入新路径后回车。`,browsePath:`浏览`,searchPlaceholder:`搜索 agent…`,quick:{selectAll:`全选`,selectDetected:`全选已检测`,clear:`清空`},detected:`已检测`,allAgents:`全部目录`,selectAll:`全选`,invalid:`此范围不可用`,reasonProjectOnly:`仅项目 scope 可用(目录无全局运行时路径)`,reasonUnresolvable:`全局运行时目录在本机无法解析`,noMatch:`没有匹配的 agent。`,mode:`模式`,symlink:`symlink(链接)`,copy:`copy(复制)`,selected:`已选 {n} 个 agent`,apply:`接入`,applying:`接入中…`,cancel:`取消`},undistribute:{title:`撤除接入:{skill}`,hint:`只移除 agent 侧的接入,技能保留在库中。`,none:`该技能没有已接入的 agent。`,apply:`撤除接入`,cancel:`取消`},menu:{more:`更多`,preview:`预览…`,undistribute:`撤除接入…`,remove:`从库中移除…`,removeTitle:`移除`},notice:{distributed:`已接入 {skills} → {n} 个 agent`,undistributed:`已从 {n} 个 agent 撤除接入:{skill}`,removed:`已从库中移除:{skills}`,removeFailed:`移除失败:{skill} —{message}`,updated:`已更新:{skills}`,installed:`已安装:{skills}`,imported:`已导入:{skills}`,importFailed:`导入失败:{skill} —{message}`,refreshed:`已刷新 {skill} 的副本`,refreshErrors:`刷新完成,但 {n} 个目标失败:{first}`},remove:{title:`从库中移除`,consequence:`将撤除 {agents} 处接入,并从库中归档 {skills} 个技能。`,confirm:`移除`,cancel:`取消`},selection:{count:`已选 {n} 项`,cancel:`取消`,esc:`Esc 退出`},add:{link:`+添加`,title:`+添加技能`,cancel:`取消`,sourcePlaceholder:`来源:本地路径 / Git URL / GitHub(owner/repo)`,discover:`发现`,discovering:`发现中…`,discoveredAt:`来自:{source}`,existingBadge:`已存在`,back:`返回`,selected:`已选 {n} 个`,install:`安装`,installing:`安装中…`,overwriteBody:`目标已存在:{skills}。继续将覆盖库中的这些技能。`,overwriteConfirm:`覆盖并安装`},log:{link:`日志`,title:`日志`,empty:`暂无操作记录。`},chrome:{themeHint:`切换明暗主题`,close:`关闭`},browser:{title:`选择项目目录`,recent:`最近访问`,up:`返回上级`,empty:`该目录无子目录`,loading:`加载中…`,cancel:`取消`,select:`选择此目录`},dropdown:{browse:`浏览目录`,noMatch:`没有匹配的项目`,recentLabel:`最近访问`,knownLabel:`已知项目`}};function PA(){return A_({legacy:!1,locale:tA(),fallbackLocale:`en-US`,messages:{"en-US":MA,"zh-CN":NA}})}var FA=PA();iA(FA.global),tf(jA).use(FA).mount(`#app`);
|