物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

767 lines
1.0 MiB

  1. const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./jsx-DuZiukum-Ci4WOsQs.js","./index-bVOhw2NF.js","./index-DB_sRdQO.css"])))=>i.map(i=>d[i]);
  2. import{s as Pt,c as os,ap as Su,D as Dv,Y as NT,d as nn,aq as Fv,ar as Bv,al as Go,P as bd,B as OT,o as At,b as Ht,q as Ks,w as Kh,E as $v,t as zs,_ as Jp,i as fi,e as ft,M as Ed,h as jv,n as Td,y as ic,z as Kp,K as Ln,u as Ge,k as Kr,F as di,r as Uv,f as ko,g as Yr,N as LT,T as RT,v as MT,x as DT,a5 as FT,an as xd}from"./index-bVOhw2NF.js";const Ei=Symbol("props"),qv=Symbol("preview-ref");var Mt=Uint8Array,br=Uint16Array,Yp=Int32Array,oc=new Mt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ac=new Mt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Yh=new Mt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Vv=function(e,t){for(var r=new br(31),s=0;s<31;++s)r[s]=t+=1<<e[s-1];for(var i=new Yp(r[30]),s=1;s<30;++s)for(var o=r[s];o<r[s+1];++o)i[o]=o-r[s]<<5|s;return{b:r,r:i}},Wv=Vv(oc,2),Gv=Wv.b,Qh=Wv.r;Gv[28]=258,Qh[258]=28;var zv=Vv(ac,0),BT=zv.b,kd=zv.r,Zh=new br(32768);for(var yt=0;yt<32768;++yt){var Us=(yt&43690)>>1|(yt&21845)<<1;Us=(Us&52428)>>2|(Us&13107)<<2,Us=(Us&61680)>>4|(Us&3855)<<4,Zh[yt]=((Us&65280)>>8|(Us&255)<<8)>>1}var as=function(e,t,r){for(var s=e.length,i=0,o=new br(t);i<s;++i)e[i]&&++o[e[i]-1];var a=new br(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;var h;if(r){h=new br(1<<t);var l=15-t;for(i=0;i<s;++i)if(e[i])for(var f=i<<4|e[i],d=t-e[i],g=a[e[i]-1]++<<d,y=g|(1<<d)-1;g<=y;++g)h[Zh[g]>>l]=f}else for(h=new br(s),i=0;i<s;++i)e[i]&&(h[i]=Zh[a[e[i]-1]++]>>15-e[i]);return h},en=new Mt(288);for(var yt=0;yt<144;++yt)en[yt]=8;for(var yt=144;yt<256;++yt)en[yt]=9;for(var yt=256;yt<280;++yt)en[yt]=7;for(var yt=280;yt<288;++yt)en[yt]=8;var Po=new Mt(32);for(var yt=0;yt<32;++yt)Po[yt]=5;var $T=as(en,9,0),jT=as(en,9,1),UT=as(Po,5,0),qT=as(Po,5,1),_u=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Rr=function(e,t,r){var s=t/8|0;return(e[s]|e[s+1]<<8)>>(t&7)&r},wu=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Qp=function(e){return(e+7)/8|0},lc=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Mt(e.subarray(t,r))},VT=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Or=function(e,t,r){var s=new Error(t||VT[e]);if(s.code=e,Error.captureStackTrace&&Error.captureStackTrace(s,Or),!r)throw s;return s},WT=function(e,t,r,s){var i=e.length,o=0;if(!i||t.f&&!t.l)return r||new Mt(0);var a=!r,h=a||t.i!=2,l=t.i;a&&(r=new Mt(i*3));var f=function(pe){var ve=r.length;if(pe>ve){var xe=new Mt(Math.max(ve*2,pe));xe.set(r),r=xe}},d=t.f||0,g=t.p||0,y=t.b||0,v=t.l,w=t.d,_=t.m,S=t.n,k=i*8;do{if(!v){d=Rr(e,g,1);var E=Rr(e,g+1,3);if(g+=3,E)if(E==1)v=jT,w=qT,_=9,S=5;else if(E==2){var M=Rr(e,g,31)+257,F=Rr(e,g+10,15)+4,x=M+Rr(e,g+5,31)+1;g+=14;for(var I=new Mt(x),R=new Mt(19),L=0;L<F;++L)R[Yh[L]]=Rr(e,g+L*3,7);g+=F*3;for(var z=_u(R),J=(1<<z)-1,re=as(R,z,1),L=0;L<x;){var V=re[Rr(e,g,J)];g+=V&15;var P=V>>4;if(P<16)I[L++]=P;else{var ee=0,G=0;for(P==16?(G=3+Rr(e,g,3),g+=2,ee=I[L-1]):P==17?(G=3+Rr(e,g,7),g+=3):P==18&&(G=11+Rr(e,g,127),g+=7);G--;)I[L++]=ee}}var Q=I.subarray(0,M),ie=I.subarray(M);_=_u(Q),S=_u(ie),v=as(Q,_,1),w=as(ie,S,1)}else Or(1);else{var P=Qp(g)+4,O=e[P-4]|e[P-3]<<8,A=P+O;if(A>i){l&&Or(0);break}h&&f(y+O),r.set(e.subarray(P,A),y),t.b=y+=O,t.p=g=A*8,t.f=d;continue}if(g>k){l&&Or(0);break}}h&&f(y+131072);for(var ce=(1<<_)-1,ne=(1<<S)-1,W=g;;W=g){var ee=v[wu(e,g)&ce],K=ee>>4;if(g+=ee&15,g>k){l&&Or(0);break}if(ee||Or(2),K<256)r[y++]=K;else if(K==256){W=g,v=null;break}else{var j=K-254;if(K>264){var L=K-257,B=oc[L];j=Rr(e,g,(1<<B)-1)+Gv[L],g+=B}var Z=w[wu(e,g)&ne],U=Z>>4;Z||Or(3),g+=Z&15;var ie=BT[U];if(U>3){var B=ac[U];ie+=wu(e,g)&(1<<B)-1,g+=B}if(g>k){l&&Or(0);break}h&&f(y+131072);var se=y+j;if(y<ie){var ae=o-ie,de=Math.min(ie,se);for(ae+y<0&&Or(3);y<de;++y)r[y]=s[ae+y]}for(;y<se;++y)r[y]=r[y-ie]}}t.l=v,t.p=W,t.b=y,t.f=d,v&&(d=1,t.m=_,t.d=w,t.n=S)}while(!d);return y!=r.length&&a?lc(r,0,y):r.subarray(0,
  3. * @vue/compiler-sfc v3.5.13
  4. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  5. * @license MIT
  6. **//*! #__NO_SIDE_EFFECTS__ */function Kt(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const s0=Object.freeze({}),Eu=()=>{},co=()=>!1,Zv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ls=Object.assign,n0=Object.prototype.hasOwnProperty,Zp=(e,t)=>n0.call(e,t),jt=Array.isArray,i0=e=>ef(e)==="[object Map]",o0=e=>ef(e)==="[object Set]",eS=e=>typeof e=="function",Ke=e=>typeof e=="string",on=e=>typeof e=="symbol",an=e=>e!==null&&typeof e=="object",tS=Object.prototype.toString,ef=e=>tS.call(e),rS=e=>ef(e)==="[object Object]",Cd=Kt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),tf=Kt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),cc=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},a0=/-(\w)/g,ur=cc(e=>e.replace(a0,(t,r)=>r?r.toUpperCase():"")),l0=/\B([A-Z])/g,c0=cc(e=>e.replace(l0,"-$1").toLowerCase()),tn=cc(e=>e.charAt(0).toUpperCase()+e.slice(1)),u0=cc(e=>e?`on${tn(e)}`:""),h0=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function El(e){return h0.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function p0(e,t){return e+JSON.stringify(t,(r,s)=>typeof s=="function"?s.toString():s)}const al={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},f0={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},d0="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",sS=Kt(d0),Nd=2;function Ti(e,t=0,r=e.length){if(t=Math.max(0,Math.min(t,e.length)),r=Math.max(0,Math.min(r,e.length)),t>r)return"";let s=e.split(/(\r?\n)/);const i=s.filter((h,l)=>l%2===1);s=s.filter((h,l)=>l%2===0);let o=0;const a=[];for(let h=0;h<s.length;h++)if(o+=s[h].length+(i[h]&&i[h].length||0),o>=t){for(let l=h-Nd;l<=h+Nd||r>o;l++){if(l<0||l>=s.length)continue;const f=l+1;a.push(`${f}${" ".repeat(Math.max(3-String(f).length,0))}| ${s[l]}`);const d=s[l].length,g=i[l]&&i[l].length||0;if(l===h){const y=t-(o-(d+g)),v=Math.max(1,r>o?d-y:r-t);a.push(" | "+" ".repeat(y)+"^".repeat(v))}else if(l>h){if(r>o){const y=Math.max(Math.min(r-o,d),1);a.push(" | "+"^".repeat(y))}o+=d+g}}break}return a.join(`
  7. `)}function nS(e){if(jt(e)){const t={};for(let r=0;r<e.length;r++){const s=e[r],i=Ke(s)?iS(s):nS(s);if(i)for(const o in i)t[o]=i[o]}return t}else if(Ke(e)||an(e))return e}const m0=/;(?![^(]*\))/g,g0=/:([^]+)/,y0=/\/\*[^]*?\*\//g;function iS(e){const t={};return e.replace(y0,"").split(m0).forEach(r=>{if(r){const s=r.split(g0);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function v0(e){if(!e)return"";if(Ke(e))return e;let t="";for(const r in e){const s=e[r];if(Ke(s)||typeof s=="number"){const i=r.startsWith("--")?r:c0(r);t+=`${i}:${s};`}}return t}function oS(e){let t="";if(Ke(e))t=e;else if(jt(e))for(let r=0;r<e.length;r++){const s=oS(e[r]);s&&(t+=s+" ")}else if(an(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const S0="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",_0="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",w0="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",b0="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",E0=Kt(S0),T0=Kt(_0),x0=Kt(w0),aS=Kt(b0),k0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lS=Kt(k0+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),P0=/[>/="'\u0009\u000a\u000c\u0020]/,Tu={};function A0(e){if(Tu.hasOwnProperty(e))return Tu[e];const t=P0.test(e);return t&&console.error(`unsafe attribute name: ${e}`),Tu[e]=!t}const I0={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},C0=Kt("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"),N0=Kt("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,att
  8. Details: ${a}`:""}`,l=new SyntaxError(h);l.code=e,r&&(l.loc=r),t.onWarn(l)}function hf(e){throw e}function bS(e){console.warn(`[Vue warn] ${e.message}`)}function it(e,t,r,s){const i=(r||pf)[e]+(s||""),o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const tx={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},pf={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was e
  9. Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function Ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),r}var ei={},Md;function rx(){if(Md)return ei;Md=1,Object.defineProperty(ei,"__esModule",{value:!0});function e(C,c){if(C==null)return{};var n={};for(var u in C)if({}.hasOwnProperty.call(C,u)){if(c.includes(u))continue;n[u]=C[u]}return n}class t{constructor(c,n,u){this.line=void 0,this.column=void 0,this.index=void 0,this.line=c,this.column=n,this.index=u}}class r{constructor(c,n){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=c,this.end=n}}function s(C,c){const{line:n,column:u,index:m}=C;return new t(n,u+c,m+c)}const i="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var o={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:i},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:i}};const a={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},h=C=>C.type==="UpdateExpression"?a.UpdateExpression[`${C.prefix}`]:a[C.type];var l={AccessorIsGenerator:({kind:C})=>`A ${C}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructo
  10. - Did you mean \`export { '${C}' as '${c}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:C})=>`'${C==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:C})=>`Unsyntactic ${C==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:C})=>`A string literal cannot be used as an imported binding.
  11. - Did you mean \`import { "${C}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:C})=>`\`import()\` requires exactly ${C===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:C})=>`Expected number in radix ${C}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:C})=>`Escape sequence in keyword ${C}.`,InvalidIdentifier:({identifierName:C})=>`Invalid identifier ${C}.`,InvalidLhs:({ancestor:C})=>`Invalid left-hand side in ${h(C)}.`,InvalidLhsBinding:({ancestor:C})=>`Binding invalid left-hand side in ${h(C)}.`,InvalidLhsOptionalChaining:({ancestor:C})=>`Invalid optional chaining in the left-hand side of ${h(C)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:C})=>`Unexpected character '${C}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:C})=>`Private name #${C} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:C})=>`Label '${C}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:C})=>`This experimental syntax requires enabling the parser plugin: ${C.map(c=>JSON.stringify(c)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:C})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${C.map(c=>JSON.stringify(c)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:C})=>`Duplicate key "${C}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:C})=>`An export name cannot include a lone surrogate, found '\\u${C.toString(16)}'.`,ModuleExportUndefined:({localName:C})=>`Export '${C}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",Overr
  12. `,++n,Ee===13&&c.charCodeAt(n)===10&&++n,++m,fe=u=n):b.unterminated(N,D,q):++n}return{pos:n,str:Y,firstInvalidLoc:X,lineStart:u,curLine:m,containsInvalid:!!X}}function au(C,c,n,u){return C==="template"?c===96||c===36&&n.charCodeAt(u+1)===123:c===(C==="double"?34:39)}function lu(C,c,n,u,m,b){const N=!m;c++;const D=Y=>({pos:c,ch:Y,lineStart:n,curLine:u}),q=C.charCodeAt(c++);switch(q){case 110:return D(`
  13. `);case 114:return D("\r");case 120:{let Y;return{code:Y,pos:c}=Gi(C,c,n,u,2,!1,N,b),D(Y===null?null:String.fromCharCode(Y))}case 117:{let Y;return{code:Y,pos:c}=ua(C,c,n,u,N,b),D(Y===null?null:String.fromCodePoint(Y))}case 116:return D(" ");case 98:return D("\b");case 118:return D("\v");case 102:return D("\f");case 13:C.charCodeAt(c)===10&&++c;case 10:n=c,++u;case 8232:case 8233:return D("");case 56:case 57:if(m)return D(null);b.strictNumericEscape(c-1,n,u);default:if(q>=48&&q<=55){const Y=c-1;let fe=/^[0-7]+/.exec(C.slice(Y,c+2))[0],be=parseInt(fe,8);be>255&&(fe=fe.slice(0,-1),be=parseInt(fe,8)),c+=fe.length-1;const Ee=C.charCodeAt(c);if(fe!=="0"||Ee===56||Ee===57){if(m)return D(null);b.strictNumericEscape(Y,n,u)}return D(String.fromCharCode(be))}return D(String.fromCharCode(q))}}function Gi(C,c,n,u,m,b,N,D){const q=c;let Y;return{n:Y,pos:c}=ca(C,c,n,u,16,m,b,!1,D,!N),Y===null&&(N?D.invalidEscapeSequence(q,n,u):c=q-1),{code:Y,pos:c}}function ca(C,c,n,u,m,b,N,D,q,Y){const X=c,fe=m===16?Yn.hex:Yn.decBinOct,be=m===16?$s.hex:m===10?$s.dec:m===8?$s.oct:$s.bin;let Ee=!1,Ie=0;for(let rt=0,ar=b??1/0;rt<ar;++rt){const Ze=C.charCodeAt(c);let St;if(Ze===95&&D!=="bail"){const ma=C.charCodeAt(c-1),Hi=C.charCodeAt(c+1);if(D){if(Number.isNaN(Hi)||!be(Hi)||fe.has(ma)||fe.has(Hi)){if(Y)return{n:null,pos:c};q.unexpectedNumericSeparator(c,n,u)}}else{if(Y)return{n:null,pos:c};q.numericSeparatorInEscapeSequence(c,n,u)}++c;continue}if(Ze>=97?St=Ze-97+10:Ze>=65?St=Ze-65+10:Wi(Ze)?St=Ze-48:St=1/0,St>=m){if(St<=9&&Y)return{n:null,pos:c};if(St<=9&&q.invalidDigit(c,n,u,m))St=0;else if(N)St=0,Ee=!0;else break}++c,Ie=Ie*m+St}return c===X||b!=null&&c-X!==b||Ee?{n:null,pos:c}:{n:Ie,pos:c}}function ua(C,c,n,u,m,b){const N=C.charCodeAt(c);let D;if(N===123){if(++c,{code:D,pos:c}=Gi(C,c,n,u,C.indexOf("}",c)-c,!0,m,b),++c,D!==null&&D>1114111)if(m)b.invalidCodePoint(c,n,u);else return{code:null,pos:c}}else({code:D,pos:c}=Gi(C,c,n,u,4,!1,m,b));return{code:D,pos:c}}function mn(C,c,n){return new t(n,C-c,C)}const cu=new Set([103,109,115,105,121,117,100,118]);class Hr{constructor(c){this.type=c.type,this.value=c.value,this.start=c.start,this.end=c.end,this.loc=new r(c.startLoc,c.endLoc)}}class uu extends Ui{constructor(c,n){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(u,m,b,N)=>this.options.errorRecovery?(this.raise(S.InvalidDigit,mn(u,m,b),{radix:N}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(S.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(S.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(S.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(S.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(u,m,b)=>{this.recordStrictModeErrors(S.StrictNumericEscape,mn(u,m,b))},unterminated:(u,m,b)=>{throw this.raise(S.UnterminatedString,mn(u-1,m,b))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(S.StrictNumericEscape),unterminated:(u,m,b)=>{throw this.raise(S.UnterminatedTemplate,mn(u,m,b))}}),this.state=new dn,this.state.init(c),this.input=n,this.length=n.length,this.comments=[],this.isLookahead=!1}pushToken(c){this.tokens.length=this.state.tokensLength,this.tokens.push(c),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Hr(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(c){return this.match(c)?(this.next(),!0):!1}match(c){return this.state.type===c}createLookaheadState(c){return{pos:c.pos,value:null,type:c.type,start:c.start,end:c.end,context:[this.curContext()],inType:c.inType,startLoc:c.startLoc,lastTokEndLoc:c.lastTokEndLoc,curLine:c.curLine,lineStart:c.lineStart,curPosition:c.curPosition}}lookahead(){const c=this.state;this.state=this.createLookaheadState(c),this.isLookahea
  14. `:`\r
  15. `):m=String.fromCharCode(u),++this.state.curLine,this.state.lineStart=this.state.pos,m}jsxReadString(n){let u="",m=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(S.UnterminatedString,this.state.startLoc);const b=this.input.charCodeAt(this.state.pos);if(b===n)break;b===38?(u+=this.input.slice(m,this.state.pos),u+=this.jsxReadEntity(),m=this.state.pos):zr(b)?(u+=this.input.slice(m,this.state.pos),u+=this.jsxReadNewLine(!1),m=this.state.pos):++this.state.pos}u+=this.input.slice(m,this.state.pos++),this.finishToken(133,u)}jsxReadEntity(){const n=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let u=10;this.codePointAtPos(this.state.pos)===120&&(u=16,++this.state.pos);const m=this.readInt(u,void 0,!1,"bail");if(m!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(m)}else{let u=0,m=!1;for(;u++<10&&this.state.pos<this.length&&!(m=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(m){const b=this.input.slice(n,this.state.pos),N=nT[b];if(++this.state.pos,N)return N}}return this.state.pos=n,"&"}jsxReadWord(){let n;const u=this.state.pos;do n=this.input.charCodeAt(++this.state.pos);while(Qe(n)||n===45);this.finishToken(140,this.input.slice(u,this.state.pos))}jsxParseIdentifier(){const n=this.startNode();return this.match(140)?n.name=this.state.value:tt(this.state.type)?n.name=pt(this.state.type):this.unexpected(),this.next(),this.finishNode(n,"JSXIdentifier")}jsxParseNamespacedName(){const n=this.state.startLoc,u=this.jsxParseIdentifier();if(!this.eat(14))return u;const m=this.startNodeAt(n);return m.namespace=u,m.name=this.jsxParseIdentifier(),this.finishNode(m,"JSXNamespacedName")}jsxParseElementName(){const n=this.state.startLoc;let u=this.jsxParseNamespacedName();if(u.type==="JSXNamespacedName")return u;for(;this.eat(16);){const m=this.startNodeAt(n);m.object=u,m.property=this.jsxParseIdentifier(),u=this.finishNode(m,"JSXMemberExpression")}return u}jsxParseAttributeValue(){let n;switch(this.state.type){case 5:return n=this.startNode(),this.setContext(M.brace),this.next(),n=this.jsxParseExpressionContainer(n,M.j_oTag),n.expression.type==="JSXEmptyExpression"&&this.raise(gn.AttributeIsEmpty,n),n;case 142:case 133:return this.parseExprAtom();default:throw this.raise(gn.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const n=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(n,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(n){return this.next(),n.expression=this.parseExpression(),this.setContext(M.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXSpreadChild")}jsxParseExpressionContainer(n,u){if(this.match(8))n.expression=this.jsxParseEmptyExpression();else{const m=this.parseExpression();n.expression=m}return this.setContext(u),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXExpressionContainer")}jsxParseAttribute(){const n=this.startNode();return this.match(5)?(this.setContext(M.brace),this.next(),this.expect(21),n.argument=this.parseMaybeAssignAllowIn(),this.setContext(M.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXSpreadAttribute")):(n.name=this.jsxParseNamespacedName(),n.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(n,"JSXAttribute"))}jsxParseOpeningElementAt(n){const u=this.startNodeAt(n);return this.eat(143)?this.finishNode(u,"JSXOpeningFragment"):(u.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(u))}jsxParseOpeningElementAfterName(n){const u=[];for(;!this.match(56)&&!this.match(143);)u.push(this.jsxParseAttribute());return n.attributes=u,n.selfClosing=this.eat(56),this.expect(143),this.finishNode(n,"JSXOpeningElement")}jsxParseClosingElementAt(n){const u=this.startNodeAt(n);return this.eat(143)?this.finishNode(u,"JSXClosingFragment"):(u.name=this.jsxParseElementName(),this.expect(143),this.finishNode(u,"JSXClosingElement"))}jsxParseElementAt(n){const u=this.startNodeAt(n),m=[],b=this.jsxParseOpeningElementAt(n);let N=null;if(!b.selfClosi
  16. `),cooked:b===null?null:b.slice(1,Y)},D.tail=q,this.next();const fe=this.finishNode(D,"TemplateElement");return this.resetEndLocation(fe,s(this.state.lastTokEndLoc,Y)),fe}parseTemplate(c){const n=this.startNode();let u=this.parseTemplateElement(c);const m=[u],b=[];for(;!u.tail;)b.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),m.push(u=this.parseTemplateElement(c));return n.expressions=b,n.quasis=m,this.finishNode(n,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(c,n,u,m){u&&this.expectPlugin("recordAndTuple");const b=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const N=Object.create(null);let D=!0;const q=this.startNode();for(q.properties=[],this.next();!this.match(c);){if(D)D=!1;else if(this.expect(12),this.match(c)){this.addTrailingCommaExtraToNode(q);break}let X;n?X=this.parseBindingProperty():(X=this.parsePropertyDefinition(m),this.checkProto(X,u,N,m)),u&&!this.isObjectProperty(X)&&X.type!=="SpreadElement"&&this.raise(S.InvalidRecordProperty,X),X.shorthand&&this.addExtra(X,"shorthand",!0),q.properties.push(X)}this.next(),this.state.inFSharpPipelineDirectBody=b;let Y="ObjectExpression";return n?Y="ObjectPattern":u&&(Y="RecordExpression"),this.finishNode(q,Y)}addTrailingCommaExtraToNode(c){this.addExtra(c,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(c,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(c){return!c.computed&&c.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(c){let n=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(S.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)n.push(this.parseDecorator());const u=this.startNode();let m=!1,b=!1,N;if(this.match(21))return n.length&&this.unexpected(),this.parseSpread();n.length&&(u.decorators=n,n=[]),u.method=!1,c&&(N=this.state.startLoc);let D=this.eat(55);this.parsePropertyNamePrefixOperator(u);const q=this.state.containsEsc;if(this.parsePropertyName(u,c),!D&&!q&&this.maybeAsyncOrAccessorProp(u)){const{key:Y}=u,X=Y.name;X==="async"&&!this.hasPrecedingLineBreak()&&(m=!0,this.resetPreviousNodeTrailingComments(Y),D=this.eat(55),this.parsePropertyName(u)),(X==="get"||X==="set")&&(b=!0,this.resetPreviousNodeTrailingComments(Y),u.kind=X,this.match(55)&&(D=!0,this.raise(S.AccessorIsGenerator,this.state.curPosition(),{kind:X}),this.next()),this.parsePropertyName(u))}return this.parseObjPropValue(u,N,D,m,!1,b,c)}getGetterSetterExpectedParamCount(c){return c.kind==="get"?0:1}getObjectOrClassMethodParams(c){return c.params}checkGetterSetterParams(c){var n;const u=this.getGetterSetterExpectedParamCount(c),m=this.getObjectOrClassMethodParams(c);m.length!==u&&this.raise(c.kind==="get"?S.BadGetterArity:S.BadSetterArity,c),c.kind==="set"&&((n=m[m.length-1])==null?void 0:n.type)==="RestElement"&&this.raise(S.BadSetterRestParameter,c)}parseObjectMethod(c,n,u,m,b){if(b){const N=this.parseMethod(c,n,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(N),N}if(u||n||this.match(10))return m&&this.unexpected(),c.kind="method",c.method=!0,this.parseMethod(c,n,u,!1,!1,"ObjectMethod")}parseObjectProperty(c,n,u,m){if(c.shorthand=!1,this.eat(14))return c.value=u?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(m),this.finishNode(c,"ObjectProperty");if(!c.computed&&c.key.type==="Identifier"){if(this.checkReservedWord(c.key.name,c.key.loc.start,!0,!1),u)c.value=this.parseMaybeDefault(n,Ss(c.key));else if(this.match(29)){const b=this.state.startLoc;m!=null?m.shorthandAssignLoc===null&&(m.shorthandAssignLoc=b):this.raise(S.InvalidCoverInitializedName,b),c.value=this.parseMaybeDefault(n,Ss(c.key))}else c.value=Ss(c.key);return c.shorthand=!0,this.finishNode(c,"ObjectProperty")}}parseObjPropValue(c,n,u,m,b,N,D){const q=this.parseObjectMethod(c,u,m,b,N)||this.parseObjectProperty(c,n,b,D);return q||this.unexpected(),q}parsePropertyName(c,n){if(this.eat(0))c.computed=!0,c.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{
  17. `);else if(bx(o.content)){const a=e[i-1]&&e[i-1].type,h=e[i+1]&&e[i+1].type;!a||!h||r&&(a===3&&(h===3||h===1)||a===1&&(h===3||h===1&&Ex(o.content)))?(s=!0,e[i]=null):o.content=" "}else r&&(o.content=FS(o.content))}return s?e.filter(Boolean):e}function bx(e){for(let t=0;t<e.length;t++)if(!_r(e.charCodeAt(t)))return!1;return!0}function Ex(e){for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r===10||r===13)return!0}return!1}function FS(e){let t="",r=!1;for(let s=0;s<e.length;s++)_r(e.charCodeAt(s))?r||(t+=" ",r=!0):(t+=e[s],r=!1);return t}function cp(e){(Ct[0]||Il).children.push(e)}function Nt(e,t){return{start:gt.getPos(e),end:t==null?t:gt.getPos(t),source:t==null?t:Qt(e,t)}}function Tx(e){return Nt(e.start.offset,e.end.offset)}function Tn(e,t){e.end=gt.getPos(t),e.source=Qt(e.start.offset,t)}function xx(e){const t={type:6,name:e.rawName,nameLoc:Nt(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const r=e.exp.loc;r.end.offset<e.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),t.value={type:2,content:e.exp.content,loc:r}}return t}function ul(e,t=!1,r,s=0,i=0){const o=Te(e,t,r,s);if(!t&&dt.prefixIdentifiers&&i!==3&&e.trim()){if(Is(e))return o.ast=null,o;try{const a=dt.expressionPlugins,h={plugins:a?[...a,"typescript"]:["typescript"]};i===2?o.ast=$r.parse(` ${e} `,h).program:i===1?o.ast=$r.parseExpression(`(${e})=>{}`,h):o.ast=$r.parseExpression(`(${e})`,h)}catch(a){o.ast=!1,sr(45,r.start.offset,a.message)}}return o}function sr(e,t,r){dt.onError(it(e,Nt(t,t),void 0,r))}function kx(){gt.reset(),Zt=null,ot=null,Cr="",bs=-1,vn=-1,Ct.length=0}function Ic(e,t){if(kx(),Ps=e,dt=ls({},RS),t){let i;for(i in t)t[i]!=null&&(dt[i]=t[i])}dt.decodeEntities&&console.warn("[@vue/compiler-core] decodeEntities option is passed but will be ignored in non-browser builds."),gt.mode=dt.parseMode==="html"?1:dt.parseMode==="sfc"?2:0,gt.inXML=dt.ns===1||dt.ns===2;const r=t&&t.delimiters;r&&(gt.delimiterOpen=Al(r[0]),gt.delimiterClose=Al(r[1]));const s=Il=Un([],e);return gt.parse(Ps),s.loc=Nt(0,e.length),s.children=DS(s.children),Il=null,s}function Px(e,t){hl(e,void 0,t,BS(e,e.children[0]))}function BS(e,t){const{children:r}=e;return r.length===1&&t.type===1&&!_i(t)}function hl(e,t,r,s=!1,i=!1){const{children:o}=e,a=[];for(let d=0;d<o.length;d++){const g=o[d];if(g.type===1&&g.tagType===0){const y=s?0:pr(g,r);if(y>0){if(y>=2){g.codegenNode.patchFlag=-1,a.push(g);continue}}else{const v=g.codegenNode;if(v.type===13){const w=v.patchFlag;if((w===void 0||w===512||w===1)&&jS(g,r)>=2){const _=US(g);_&&(v.props=r.hoist(_))}v.dynamicProps&&(v.dynamicProps=r.hoist(v.dynamicProps))}}}else if(g.type===12&&(s?0:pr(g,r))>=2){a.push(g);continue}if(g.type===1){const y=g.tagType===1;y&&r.scopes.vSlot++,hl(g,e,r,!1,i),y&&r.scopes.vSlot--}else if(g.type===11)hl(g,e,r,g.children.length===1,!0);else if(g.type===9)for(let y=0;y<g.branches.length;y++)hl(g.branches[y],e,r,g.branches[y].children.length===1,i)}let h=!1;if(a.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&jt(e.codegenNode.children))e.codegenNode.children=l(ks(e.codegenNode.children)),h=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!jt(e.codegenNode.children)&&e.codegenNode.children.type===15){const d=f(e.codegenNode,"default");d&&(d.returns=l(ks(d.returns)),h=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!jt(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=Ot(e,"slot",!0),g=d&&d.arg&&f(t.codegenNode,d.arg);g&&(g.returns=l(ks(g.returns)),h=!0)}}if(!h)for(const d of a)d.codegenNode=r.cache(d.codegenNode);function l(d){const g=r.cache(d);return i&&r.hmr&&(g.needArraySpread=!0),g}function f(d,g){if(d.children&&!jt(d.children)&&d.children.type===15){const y=d.children.properties.find(v=>v.key===g||v.key.content===g);return y&&y.value}}a.length&&r.transformHoist&&r.transformHoist(o,r,e)}function pr(e,t){const{constantCache:r}=t;switch(e.type){case 1:if(e.tagType!=
  18. `+" ".repeat(S),0)}function _(S,k=null){const{_names:E,_mappings:P}=v.map;k!==null&&!E.has(k)&&E.add(k),P.add({originalLine:S.line,originalColumn:S.column-1,generatedLine:v.line,generatedColumn:v.column-1,source:i,name:k})}return s&&(v.map=new fo.SourceMapGenerator,v.map.setSourceContent(i,v.source),v.map._sources.add(i)),v}function wf(e,t={}){const r=Kd(e,t);t.onContextCreated&&t.onContextCreated(r);const{mode:s,push:i,prefixIdentifiers:o,indent:a,deindent:h,newline:l,scopeId:f,ssr:d}=r,g=Array.from(e.helpers),y=g.length>0,v=!o&&s!=="module",w=f!=null&&s==="module",_=!!t.inline,S=_?Kd(e,t):r;s==="module"?$x(e,S,w,_):Bx(e,S);const k=d?"ssrRender":"render",E=d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];t.bindingMetadata&&!t.inline&&E.push("$props","$setup","$data","$options");const P=t.isTS?E.map(O=>`${O}: any`).join(","):E.join(", ");if(i(_?`(${P}) => {`:`function ${k}(${P}) {`),a(),v&&(i("with (_ctx) {"),a(),y&&(i(`const { ${g.map(pl).join(", ")} } = _Vue
  19. `,-1),l())),e.components.length&&(Yd(e.components,"component",r),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Yd(e.directives,"directive",r),e.temps>0&&l()),e.temps>0){i("let ");for(let O=0;O<e.temps;O++)i(`${O>0?", ":""}_temp${O}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
  20. `,0),l()),d||i("return "),e.codegenNode?_t(e.codegenNode,r):i("null"),v&&(h(),i("}")),h(),i("}"),{ast:e,code:r.code,preamble:_?S.code:"",map:r.map?r.map.toJSON():void 0}}function Bx(e,t){const{ssr:r,prefixIdentifiers:s,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:h,ssrRuntimeModuleName:l}=t,f=r?`require(${JSON.stringify(a)})`:h,d=Array.from(e.helpers);if(d.length>0){if(s)i(`const { ${d.map(pl).join(", ")} } = ${f}
  21. `,-1);else if(i(`const _Vue = ${f}
  22. `,-1),e.hoists.length){const g=[zo,hc,ki,pc,fc].filter(y=>d.includes(y)).map(pl).join(", ");i(`const { ${g} } = _Vue
  23. `,-1)}}e.ssrHelpers&&e.ssrHelpers.length&&i(`const { ${e.ssrHelpers.map(pl).join(", ")} } = require("${l}")
  24. `,-1),GS(e.hoists,t),o(),i("return ")}function $x(e,t,r,s){const{push:i,newline:o,optimizeImports:a,runtimeModuleName:h,ssrRuntimeModuleName:l}=t;if(e.helpers.size){const f=Array.from(e.helpers);a?(i(`import { ${f.map(d=>cr[d]).join(", ")} } from ${JSON.stringify(h)}
  25. `,-1),i(`
  26. // Binding optimization for webpack code-split
  27. const ${f.map(d=>`_${cr[d]} = ${cr[d]}`).join(", ")}
  28. `,-1)):i(`import { ${f.map(d=>`${cr[d]} as _${cr[d]}`).join(", ")} } from ${JSON.stringify(h)}
  29. `,-1)}e.ssrHelpers&&e.ssrHelpers.length&&i(`import { ${e.ssrHelpers.map(f=>`${cr[f]} as _${cr[f]}`).join(", ")} } from "${l}"
  30. `,-1),e.imports.length&&(jx(e.imports,t),o()),GS(e.hoists,t),o(),s||i("export ")}function Yd(e,t,{helper:r,push:s,newline:i,isTS:o}){const a=r(t==="component"?Io:dc);for(let h=0;h<e.length;h++){let l=e[h];const f=l.endsWith("__self");f&&(l=l.slice(0,-6)),s(`const ${Lo(l,t)} = ${a}(${JSON.stringify(l)}${f?", true":""})${o?"!":""}`),h<e.length-1&&i()}}function GS(e,t){if(!e.length)return;t.pure=!0;const{push:r,newline:s}=t;s();for(let i=0;i<e.length;i++){const o=e[i];o&&(r(`const _hoisted_${i+1} = `),_t(o,t),s())}t.pure=!1}function jx(e,t){e.length&&e.forEach(r=>{t.push("import "),_t(r.exp,t),t.push(` from '${r.path}'`),t.newline()})}function Ux(e){return Ke(e)||e.type===4||e.type===2||e.type===5||e.type===8}function Nc(e,t){const r=e.length>3||e.some(s=>jt(s)||!Ux(s));t.push("["),r&&t.indent(),Oi(e,t,r),r&&t.deindent(),t.push("]")}function Oi(e,t,r=!1,s=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const h=e[a];Ke(h)?i(h,-3):jt(h)?Nc(h,t):_t(h,t),a<e.length-1&&(r?(s&&i(","),o()):s&&i(", "))}}function _t(e,t){if(Ke(e)){t.push(e,-3);return}if(on(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:ap(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),_t(e.codegenNode,t);break;case 2:qx(e,t);break;case 4:zS(e,t);break;case 5:Vx(e,t);break;case 12:_t(e.codegenNode,t);break;case 8:HS(e,t);break;case 3:Gx(e,t);break;case 13:zx(e,t);break;case 14:Xx(e,t);break;case 15:Jx(e,t);break;case 17:Kx(e,t);break;case 18:Yx(e,t);break;case 19:Qx(e,t);break;case 20:Zx(e,t);break;case 21:Oi(e.body,t,!0,!1);break;case 22:ek(e,t);break;case 23:XS(e,t);break;case 24:tk(e,t);break;case 25:rk(e,t);break;case 26:sk(e,t);break;case 10:break;default:return ap(!1,`unhandled codegen node type: ${e.type}`),e}}function qx(e,t){t.push(JSON.stringify(e.content),-3,e)}function zS(e,t){const{content:r,isStatic:s}=e;t.push(s?JSON.stringify(r):r,-3,e)}function Vx(e,t){const{push:r,helper:s,pure:i}=t;i&&r(Cc),r(`${s(Xo)}(`),_t(e.content,t),r(")")}function HS(e,t){for(let r=0;r<e.children.length;r++){const s=e.children[r];Ke(s)?t.push(s,-3):_t(s,t)}}function Wx(e,t){const{push:r}=t;if(e.type===8)r("["),HS(e,t),r("]");else if(e.isStatic){const s=Is(e.content)?e.content:JSON.stringify(e.content);r(s,-2,e)}else r(`[${e.content}]`,-3,e)}function Gx(e,t){const{push:r,helper:s,pure:i}=t;i&&r(Cc),r(`${s(ki)}(${JSON.stringify(e.content)})`,-3,e)}function zx(e,t){const{push:r,helper:s,pure:i}=t,{tag:o,props:a,children:h,patchFlag:l,dynamicProps:f,directives:d,isBlock:g,disableTracking:y,isComponent:v}=e;let w;if(l)if(l<0)w=l+` /* ${al[l]} */`;else{const S=Object.keys(al).map(Number).filter(k=>k>0&&l&k).map(k=>al[k]).join(", ");w=l+` /* ${S} */`}d&&r(s(mc)+"("),g&&r(`(${s(rn)}(${y?"true":""}), `),i&&r(Cc);const _=g?Dn(t.inSSR,v):Mn(t.inSSR,v);r(s(_)+"(",-2,e),Oi(Hx([o,a,h,w,f]),t),r(")"),g&&r(")"),d&&(r(", "),_t(d,t),r(")"))}function Hx(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(r=>r||"null")}function Xx(e,t){const{push:r,helper:s,pure:i}=t,o=Ke(e.callee)?e.callee:s(e.callee);i&&r(Cc),r(o+"(",-2,e),Oi(e.arguments,t),r(")")}function Jx(e,t){const{push:r,indent:s,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length){r("{}",-2,e);return}const h=a.length>1||a.some(l=>l.value.type!==4);r(h?"{":"{ "),h&&s();for(let l=0;l<a.length;l++){const{key:f,value:d}=a[l];Wx(f,t),r(": "),_t(d,t),l<a.length-1&&(r(","),o())}h&&i(),r(h?"}":" }")}function Kx(e,t){Nc(e.elements,t)}function Yx(e,t){const{push:r,indent:s,deindent:i}=t,{params:o,returns:a,body:h,newline:l,isSlot:f}=e;f&&r(`_${cr[_c]}(`),r("(",-2,e),jt(o)?Oi(o,t):o&&_t(o,t),r(") => "),(l||h)&&(r("{"),s()),a?(l&&r("return "),jt(a)?Nc(a,t):_t(a,t)):h&&_t(h,t),(l||h)&&(i(),r("}")),f&&r(")")}function Qx(e,t){const{test:r,consequent:s,alternate:i,newline:o}=e,{push:a,indent:h,deindent:l,newline:f}=t;if(r.type===4){const g=!Is(r.content);g&&a("("),zS(r,t),g&&a(")")}else a("("),_t(r,t),a(")");o&&h(),t.indentLevel++,o||a(" "),a("? "),_t(s,t),t.indentLevel--,o&&f(),o||a(" "),a(": ");const d=i.type===19;d||t.indentLevel++,_t(i,t),d
  31. `:""} ? ${_}.value ${I} ${L} : ${_}`}else if(O){k.start=S.start,k.end=S.end;const{prefix:x,operator:I}=S,R=x?I:"",L=x?"":I;return`${t.helperString(No)}(${_})${t.isTS?` //@ts-ignore
  32. `:""} ? ${R}${_}.value${L} : ${R}${_}${L}`}else return A?_:F(_);else{if(E==="props")return El(_);if(E==="props-aliased")return El(a.__propsAliases[_])}}else{if(E&&E.startsWith("setup")||E==="literal-const")return`$setup.${_}`;if(E==="props-aliased")return`$props['${a.__propsAliases[_]}']`;if(E)return`$${E}.${_}`}return`_ctx.${_}`},l=e.content;let f=e.ast;if(f===!1)return e;if(f===null||!f&&Is(l)){const _=t.identifiers[l],S=sS(l),k=nk(l);return!r&&!_&&!k&&(!S||a[l])?(Qd(a[l])&&(e.constType=1),e.content=h(l)):_||(k?e.constType=3:e.constType=2),e}if(!f){const _=s?` ${l} `:`(${l})${r?"=>{}":""}`;try{f=$r.parseExpression(_,{sourceType:"module",plugins:t.expressionPlugins})}catch(S){return t.onError(it(45,e.loc,void 0,S.message)),e}}const d=[],g=[],y=Object.create(t.identifiers);Ai(f,(_,S,k,E,P)=>{if(PS(_,S))return;const O=E&&ik(_);O&&!P?(Ci(S)&&S.shorthand&&(_.prefix=`${_.name}: `),_.name=h(_.name,S,_),d.push(_)):(!(O&&P)&&(!S||S.type!=="CallExpression"&&S.type!=="NewExpression"&&S.type!=="MemberExpression")&&(_.isConstant=!0),d.push(_))},!0,g,y);const v=[];d.sort((_,S)=>_.start-S.start),d.forEach((_,S)=>{const k=_.start-1,E=_.end-1,P=d[S-1],O=l.slice(P?P.end-1:0,k);(O.length||_.prefix)&&v.push(O+(_.prefix||""));const A=l.slice(k,E);v.push(Te(_.name,!1,{start:op(e.loc.start,A,k),end:op(e.loc.start,A,E),source:A},_.isConstant?3:0)),S===d.length-1&&E<l.length&&v.push(l.slice(E))});let w;return v.length?(w=Bt(v,e.loc),w.ast=f):(w=e,w.constType=3),w.identifiers=Object.keys(y),w}function ik(e){return!(sS(e.name)||e.name==="require")}function Oc(e){return Ke(e)?e:e.type===4?e.content:e.children.map(Oc).join("")}function Qd(e){return e==="setup-const"||e==="literal-const"}const ok=Yo(/^(if|else|else-if)$/,(e,t,r)=>Ef(e,t,r,(s,i,o)=>{const a=r.parent.children;let h=a.indexOf(s),l=0;for(;h-->=0;){const f=a[h];f&&f.type===9&&(l+=f.branches.length)}return()=>{if(o)s.codegenNode=em(i,l,r);else{const f=lk(s.codegenNode);f.alternate=em(i,l+s.branches.length-1,r)}}}));function Ef(e,t,r,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;r.onError(it(28,t.loc)),t.exp=Te("true",!1,i)}if(r.prefixIdentifiers&&t.exp&&(t.exp=Dt(t.exp,r)),t.name==="if"){const i=Zd(e,t),o={type:9,loc:Tx(e.loc),branches:[i]};if(r.replaceNode(o),s)return s(o,i,!0)}else{const i=r.parent.children,o=[];let a=i.indexOf(e);for(;a-->=-1;){const h=i[a];if(h&&h.type===3){r.removeNode(h),o.unshift(h);continue}if(h&&h.type===2&&!h.content.trim().length){r.removeNode(h);continue}if(h&&h.type===9){t.name==="else-if"&&h.branches[h.branches.length-1].condition===void 0&&r.onError(it(30,e.loc)),r.removeNode();const l=Zd(e,t);o.length&&!(r.parent&&r.parent.type===1&&(r.parent.tag==="transition"||r.parent.tag==="Transition"))&&(l.children=[...o,...l.children]);{const d=l.userKey;d&&h.branches.forEach(({userKey:g})=>{ak(g,d)&&r.onError(it(29,l.userKey.loc))})}h.branches.push(l);const f=s&&s(h,l,!1);Ni(l,r),f&&f(),r.currentNode=null}else r.onError(it(30,e.loc));break}}}function Zd(e,t){const r=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:r&&!Ot(e,"for")?e.children:[e],userKey:fr(e,"key"),isTemplateIf:r}}function em(e,t,r){return e.condition?Br(e.condition,tm(e,t,r),Re(r.helper(ki),['"v-if"',"true"])):tm(e,t,r)}function tm(e,t,r){const{helper:s}=r,i=at("key",Te(`${t}`,!1,Et,2)),{children:o}=e,a=o[0];if(o.length!==1||a.type!==1)if(o.length===1&&a.type===11){const l=a.codegenNode;return Oo(l,i,r),l}else{let l=64;return!e.isTemplateIf&&o.filter(f=>f.type!==3).length===1&&(l|=2048),vi(r,s(mi),hr([i]),o,l,void 0,void 0,!0,!1,!1,e.loc)}else{const l=a.codegenNode,f=OS(l);return f.type===13&&bc(f,r),Oo(f,i,r),l}}function ak(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const r=e.exp,s=t.exp;if(r.type!==s.type||r.type!==4||r.isStatic!==s.isStatic||r.content!==s.content)return!1}return!0}function lk(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const Tf=(e,t,r)=>{const{modifiers:s,loc:i}=e,o=e.arg;let{ex
  33. //@ts-ignore
  34. `:""}(...args)`} => ${v?"{":"("}`,l,v?"}":")"]))}let d={props:[at(h,l||Te("() => {}",!1,i))]};return s&&(d=s(d)),f&&(d.props[0].value=r.cache(d.props[0].value)),d.props.forEach(g=>g.key.isHandlerKey=!0),d},mk=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const r=e.children;let s,i=!1;for(let o=0;o<r.length;o++){const a=r[o];if(po(a)){i=!0;for(let h=o+1;h<r.length;h++){const l=r[h];if(po(l))s||(s=r[o]=Bt([a],a.loc)),s.children.push(" + ",l),r.splice(h,1),h--;else{s=void 0;break}}}}if(!(!i||r.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name]))))for(let o=0;o<r.length;o++){const a=r[o];if(po(a)||a.type===8){const h=[];(a.type!==2||a.content!==" ")&&h.push(a),!t.ssr&&pr(a,t)===0&&h.push(`1 /* ${al[1]} */`),r[o]={type:12,content:a,loc:a.loc,codegenNode:Re(t.helper(pc),h)}}}}},im=new WeakSet,gk=(e,t)=>{if(e.type===1&&Ot(e,"once",!0))return im.has(e)||t.inVOnce||t.inSSR?void 0:(im.add(e),t.inVOnce=!0,t.helper(Co),()=>{t.inVOnce=!1;const r=t.currentNode;r.codegenNode&&(r.codegenNode=t.cache(r.codegenNode,!0,!0))})},Mc=(e,t,r)=>{const{exp:s,arg:i}=e;if(!s)return r.onError(it(41,e.loc)),Qi();const o=s.loc.source.trim(),a=s.type===4?s.content:o,h=r.bindingMetadata[o];if(h==="props"||h==="props-aliased")return r.onError(it(44,s.loc)),Qi();const l=r.inline&&(h==="setup-let"||h==="setup-ref"||h==="setup-maybe-ref");if(!a.trim()||!gf(s,r)&&!l)return r.onError(it(42,s.loc)),Qi();if(r.prefixIdentifiers&&Is(a)&&r.identifiers[a])return r.onError(it(43,s.loc)),Qi();const f=i||Te("modelValue",!0),d=i?Xt(i)?`onUpdate:${ur(i.content)}`:Bt(['"onUpdate:" + ',i]):"onUpdate:modelValue";let g;const y=r.isTS?"($event: any)":"$event";if(l)if(h==="setup-ref")g=Bt([`${y} => ((`,Te(o,!1,s.loc),").value = $event)"]);else{const w=h==="setup-let"?`${o} = $event`:"null";g=Bt([`${y} => (${r.helperString(No)}(${o}) ? (`,Te(o,!1,s.loc),`).value = $event : ${w})`])}else g=Bt([`${y} => ((`,s,") = $event)"]);const v=[at(f,e.exp),at(d,g)];if(r.prefixIdentifiers&&!r.inVOnce&&r.cacheHandlers&&!lr(s,r.identifiers)&&(v[1].value=r.cache(v[1].value)),e.modifiers.length&&t.tagType===1){const w=e.modifiers.map(S=>S.content).map(S=>(Is(S)?S:JSON.stringify(S))+": true").join(", "),_=i?Xt(i)?`${i.content}Modifiers`:Bt([i,' + "Modifiers"']):"modelModifiers";v.push(at(_,Te(`{ ${w} }`,!1,e.loc,2)))}return Qi(v)};function Qi(e=[]){return{props:e}}const om=new WeakSet,yk=(e,t)=>{if(e.type===1){const r=Ot(e,"memo");return!r||om.has(e)?void 0:(om.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&bc(s,t),e.codegenNode=Re(t.helper(wc),[r.exp,xr(void 0,s),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function Nf(e){return[[gk,ok,yk,ck,...e?[Af,bf]:[],dk,QS,Pf,mk],{on:Rc,bind:Tf,model:Mc}]}function ZS(e,t={}){const r=t.onError||hf,s=t.mode==="module",i=t.prefixIdentifiers===!0||s;!i&&t.cacheHandlers&&r(it(49)),t.scopeId&&!s&&r(it(50));const o=ls({},t,{prefixIdentifiers:i}),a=Ke(e)?Ic(e,o):e,[h,l]=Nf(i);if(t.isTS){const{expressionPlugins:f}=t;(!f||!f.includes("typescript"))&&(t.expressionPlugins=[...f||[],"typescript"])}return _f(a,ls({},o,{nodeTransforms:[...h,...t.nodeTransforms||[]],directiveTransforms:ls({},l,t.directiveTransforms||{})})),wf(a,o)}const vk={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},mo=()=>({props:[]}),Of=Symbol("vModelRadio"),Lf=Symbol("vModelCheckbox"),Rf=Symbol("vModelText"),Mf=Symbol("vModelSelect"),Cl=Symbol("vModelDynamic"),Df=Symbol("vOnModifiersGuard"),Ff=Symbol("vOnKeysGuard"),Bf=Symbol("vShow"),qn=Symbol("Transition"),Ri=Symbol("TransitionGroup");cf({[Of]:"vModelRadio",[Lf]:"vModelCheckbox",[Rf]:"vModelText",[Mf]:"vModelSelect",[Cl]:"vModelDynamic",[Df]:"withModifiers",[Ff]:"withKeys",[Bf]:"vShow",[qn]:"Transition",[Ri]:"TransitionGroup"});const wi={parseMode:"html",isVoidTag:aS,isNativeTag:e=>E0(e)||T0(e)||x
  35. ${e.map(i=>`"${s?"--":""}${s_(t,i,r,s)}": (${i})`).join(`,
  36. `)}
  37. }`}function s_(e,t,r,s=!1){return r?Gk(e+t):`${e}-${M0(t,s)}`}function n_(e){return e=e.trim(),e[0]==="'"&&e[e.length-1]==="'"||e[0]==='"'&&e[e.length-1]==='"'?e.slice(1,-1):e}const dl=/v-bind\s*\(/g;function zk(e){const t=[];return e.styles.forEach(r=>{let s;const i=r.content.replace(/\/\*([\s\S]*?)\*\/|\/\/.*/g,"");for(;s=dl.exec(i);){const o=s.index+s[0].length,a=i_(i,o);if(a!==null){const h=n_(i.slice(o,a));t.includes(h)||t.push(h)}}}),t}function i_(e,t){let r=0,s=0;for(let i=t;i<e.length;i++){const o=e.charAt(i);switch(r){case 0:if(o==="'")r=1;else if(o==='"')r=2;else if(o==="(")s++;else if(o===")")if(s>0)s--;else return i;break;case 1:o==="'"&&(r=0);break;case 2:o==='"'&&(r=0);break}}return null}const o_=e=>{const{id:t,isProd:r}=e;return{postcssPlugin:"vue-sfc-vars",Declaration(s){const i=s.value;if(dl.test(i)){dl.lastIndex=0;let o="",a=0,h;for(;h=dl.exec(i);){const l=h.index+h[0].length,f=i_(i,l);if(f!==null){const d=n_(i.slice(l,f));o+=i.slice(a,h.index)+`var(--${s_(t,d,r)})`,a=f+1}}s.value=o+i.slice(a)}}}};o_.postcss=!0;function a_(e,t,r,s){const i=r_(e,r,s),o=Te(i,!1),a=Ko(Un([]),{prefixIdentifiers:!0,inline:!0,bindingMetadata:t.__isScriptSetup===!1?void 0:t}),h=Dt(o,a),l=h.type===4?h.content:h.children.map(f=>typeof f=="string"?f:f.content).join("");return`_${Nl}(_ctx => (${l}))`}function Hk(e,t,r,s,i){return`
  38. import { ${Nl} as _${Nl} } from 'vue'
  39. const __injectCSSVars__ = () => {
  40. ${a_(e,t,r,s)}}
  41. const __setup__ = ${i}.setup
  42. ${i}.setup = __setup__
  43. ? (props, ctx) => { __injectCSSVars__();return __setup__(props, ctx) }
  44. : __injectCSSVars__
  45. `}var sn=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function l_(){throw new Error("setTimeout has not been defined")}function c_(){throw new Error("clearTimeout has not been defined")}var Vs=l_,Ws=c_;typeof sn.setTimeout=="function"&&(Vs=setTimeout);typeof sn.clearTimeout=="function"&&(Ws=clearTimeout);function u_(e){if(Vs===setTimeout)return setTimeout(e,0);if((Vs===l_||!Vs)&&setTimeout)return Vs=setTimeout,setTimeout(e,0);try{return Vs(e,0)}catch{try{return Vs.call(null,e,0)}catch{return Vs.call(this,e,0)}}}function Xk(e){if(Ws===clearTimeout)return clearTimeout(e);if((Ws===c_||!Ws)&&clearTimeout)return Ws=clearTimeout,clearTimeout(e);try{return Ws(e)}catch{try{return Ws.call(null,e)}catch{return Ws.call(this,e)}}}var Es=[],ci=!1,xn,ml=-1;function Jk(){!ci||!xn||(ci=!1,xn.length?Es=xn.concat(Es):ml=-1,Es.length&&h_())}function h_(){if(!ci){var e=u_(Jk);ci=!0;for(var t=Es.length;t;){for(xn=Es,Es=[];++ml<t;)xn&&xn[ml].run();ml=-1,t=Es.length}xn=null,ci=!1,Xk(e)}}function Kk(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Es.push(new p_(e,t)),Es.length===1&&!ci&&u_(h_)}function p_(e,t){this.fun=e,this.array=t}p_.prototype.run=function(){this.fun.apply(null,this.array)};var Yk="browser",Qk="browser",Zk=!0,eP={},tP=[],rP="",sP={},nP={},iP={};function Vn(){}var oP=Vn,aP=Vn,lP=Vn,cP=Vn,uP=Vn,hP=Vn,pP=Vn;function fP(e){throw new Error("process.binding is not supported")}function dP(){return"/"}function mP(e){throw new Error("process.chdir is not supported")}function gP(){return 0}var ii=sn.performance||{},yP=ii.now||ii.mozNow||ii.msNow||ii.oNow||ii.webkitNow||function(){return new Date().getTime()};function vP(e){var t=yP.call(ii)*.001,r=Math.floor(t),s=Math.floor(t%1*1e9);return e&&(r=r-e[0],s=s-e[1],s<0&&(r--,s+=1e9)),[r,s]}var SP=new Date;function _P(){var e=new Date,t=e-SP;return t/1e3}var dr={nextTick:Kk,title:Yk,browser:Zk,env:eP,argv:tP,version:rP,versions:sP,on:oP,addListener:aP,once:lP,off:cP,removeListener:uP,removeAllListeners:hP,emit:pP,binding:fP,cwd:dP,chdir:mP,umask:gP,hrtime:vP,platform:Qk,release:nP,config:iP,uptime:_P};function Dc(e=500){return new Map}function f_(e,t){return wP(t).has(e)}const dm=Dc();function wP(e){const{content:t,ast:r}=e.template,s=dm.get(t);if(s)return s;const i=new Set;r.children.forEach(o);function o(a){var h;switch(a.type){case 1:let l=a.tag;l.includes(".")&&(l=l.split(".")[0].trim()),!wi.isNativeTag(l)&&!wi.isBuiltInComponent(l)&&(i.add(ur(l)),i.add(tn(ur(l))));for(let f=0;f<a.props.length;f++){const d=a.props[f];d.type===7&&(tf(d.name)||i.add(`v${tn(ur(d.name))}`),d.arg&&!d.arg.isStatic&&wa(i,d.arg),d.name==="for"?wa(i,d.forParseResult.source):d.exp?wa(i,d.exp):d.name==="bind"&&!d.exp&&i.add(ur(d.arg.content))),d.type===6&&d.name==="ref"&&((h=d.value)!=null&&h.content)&&i.add(d.value.content)}a.children.forEach(o);break;case 5:wa(i,a.content);break}}return dm.set(t,i),i}function wa(e,t){t.ast?Ai(t.ast,r=>e.add(r.name)):t.ast===null&&e.add(t.content)}var bP=Object.defineProperty,EP=Object.defineProperties,TP=Object.getOwnPropertyDescriptors,mm=Object.getOwnPropertySymbols,xP=Object.prototype.hasOwnProperty,kP=Object.prototype.propertyIsEnumerable,gm=(e,t,r)=>t in e?bP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ym=(e,t)=>{for(var r in t||(t={}))xP.call(t,r)&&gm(e,r,t[r]);if(mm)for(var r of mm(t))kP.call(t,r)&&gm(e,r,t[r]);return e},vm=(e,t)=>EP(e,TP(t));const d_="anonymous.vue",fp=Dc();function m_(e,t={}){var r;const s=p0(e,vm(ym({},t),{compiler:{parse:(r=t.compiler)==null?void 0:r.parse}})),i=fp.get(s);if(i)return i;const{sourceMap:o=!0,filename:a=d_,sourceRoot:h="",pad:l=!1,ignoreEmpty:f=!0,compiler:d=pp,templateParseOptions:g={}}=t,y={filename:a,source:e,template:null,script:null,scriptSetup:null,styles:[],customBlocks:[],cssVars:[],slotted:!1,shouldForceReload:E=>LP(E,y)},v=[];d.parse(e,vm(ym({parseMode:"sfc",prefixIdentifiers:!0},g),{onError:E=>{v.push(E)}})).children.forEach(E=>{if(E.type===1&&!(f&&E.tag!=="template"&&OP(E)&&!NP(E)))switch(E.tag){case"template
  46. `:`
  47. `;return Array(s).join(i)}}function NP(e){return e.props.some(t=>t.type!==6?!1:t.name==="src")}function OP(e){for(let t=0;t<e.children.length;t++){const r=e.children[t];if(r.type!==2||r.content.trim()!=="")return!1}return!0}function LP(e,t){if(!t.scriptSetup||t.scriptSetup.lang!=="ts"&&t.scriptSetup.lang!=="tsx")return!1;for(const r in e)if(!e[r].isUsedInTemplate&&f_(r,t))return!0;return!1}function RP(e){const t=e.split(`
  48. `),r=t.reduce(function(s,i){var o,a;if(i.trim()==="")return s;const h=((a=(o=i.match(/^\s*/))==null?void 0:o[0])==null?void 0:a.length)||0;return Math.min(h,s)},1/0);return r===0?[e,r]:[t.map(function(s){return s.slice(r)}).join(`
  49. `),r]}function y_(e,t){for(var r=0,s=e.length-1;s>=0;s--){var i=e[s];i==="."?e.splice(s,1):i===".."?(e.splice(s,1),r++):r&&(e.splice(s,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var MP=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Wf=function(e){return MP.exec(e).slice(1)};function Ol(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var s=r>=0?arguments[r]:"/";if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;e=s+"/"+e,t=s.charAt(0)==="/"}return e=y_(Xf(e.split("/"),function(i){return!!i}),!t).join("/"),(t?"/":"")+e||"."}function Gf(e){var t=zf(e),r=DP(e,-1)==="/";return e=y_(Xf(e.split("/"),function(s){return!!s}),!t).join("/"),!e&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function zf(e){return e.charAt(0)==="/"}function v_(){var e=Array.prototype.slice.call(arguments,0);return Gf(Xf(e,function(t,r){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))}function S_(e,t){e=Ol(e).substr(1),t=Ol(t).substr(1);function r(f){for(var d=0;d<f.length&&f[d]==="";d++);for(var g=f.length-1;g>=0&&f[g]==="";g--);return d>g?[]:f.slice(d,g-d+1)}for(var s=r(e.split("/")),i=r(t.split("/")),o=Math.min(s.length,i.length),a=o,h=0;h<o;h++)if(s[h]!==i[h]){a=h;break}for(var l=[],h=a;h<s.length;h++)l.push("..");return l=l.concat(i.slice(a)),l.join("/")}var __="/",w_=":";function Ll(e){var t=Wf(e),r=t[0],s=t[1];return!r&&!s?".":(s&&(s=s.substr(0,s.length-1)),r+s)}function b_(e,t){var r=Wf(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function Hf(e){return Wf(e)[3]}var Cs={extname:Hf,basename:b_,dirname:Ll,sep:__,delimiter:w_,relative:S_,join:v_,isAbsolute:zf,normalize:Gf,resolve:Ol};function Xf(e,t){if(e.filter)return e.filter(t);for(var r=[],s=0;s<e.length;s++)t(e[s],s,e)&&r.push(e[s]);return r}var DP="ab".substr(-1)==="b"?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)},FP=Object.freeze({__proto__:null,basename:b_,default:Cs,delimiter:w_,dirname:Ll,extname:Hf,isAbsolute:zf,join:v_,normalize:Gf,relative:S_,resolve:Ol,sep:__});/*! https://mths.be/punycode v1.4.1 by @mathias */var Mu=2147483647,go=36,E_=1,dp=26,BP=38,$P=700,jP=72,UP=128,qP="-",VP=/[^\x20-\x7E]/,WP=/[\x2E\u3002\uFF0E\uFF61]/g,GP={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Du=go-E_,ai=Math.floor,Fu=String.fromCharCode;function _m(e){throw new RangeError(GP[e])}function zP(e,t){for(var r=e.length,s=[];r--;)s[r]=t(e[r]);return s}function HP(e,t){var r=e.split("@"),s="";r.length>1&&(s=r[0]+"@",e=r[1]),e=e.replace(WP,".");var i=e.split("."),o=zP(i,t).join(".");return s+o}function XP(e){for(var t=[],r=0,s=e.length,i,o;r<s;)i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<s?(o=e.charCodeAt(r++),(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),r--)):t.push(i);return t}function wm(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function JP(e,t,r){var s=0;for(e=r?ai(e/$P):e>>1,e+=ai(e/t);e>Du*dp>>1;s+=go)e=ai(e/Du);return ai(s+(Du+1)*e/(e+BP))}function KP(e){var t,r,s,i,o,a,h,l,f,d,g,y=[],v,w,_,S;for(e=XP(e),v=e.length,t=UP,r=0,o=jP,a=0;a<v;++a)g=e[a],g<128&&y.push(Fu(g));for(s=i=y.length,i&&y.push(qP);s<v;){for(h=Mu,a=0;a<v;++a)g=e[a],g>=t&&g<h&&(h=g);for(w=s+1,h-t>ai((Mu-r)/w)&&_m("overflow"),r+=(h-t)*w,t=h,a=0;a<v;++a)if(g=e[a],g<t&&++r>Mu&&_m("overflow"),g==t){for(l=r,f=go;d=f<=o?E_:f>=o+dp?dp:f-o,!(l<d);f+=go)S=l-d,_=go-d,y.push(Fu(wm(d+S%_,0))),l=ai(S/_);y.push(Fu(wm(l,0))),o=JP(r,w,s==i),r=0,++s}++r,++t}return y.join("")}function YP(e){return HP(e,function(t){return VP.test(t)?"xn--"+KP(t):t})}var Zr=[],Nr=[],QP=typeof Uint8Array<"u"?Uint8Array:Array,Jf=!1;function T_(){Jf=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Zr[t]=e[t],Nr[e.charCodeAt(t)]=t;Nr[45]=62,Nr[95]=63}function ZP(e){Jf||T_();var t,r,s,i,o,a,h=e.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[h-2]==="="?2
  50. * The buffer module from node.js, for the browser.
  51. *
  52. * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  53. * @license MIT
  54. */var sA=50;ge.TYPED_ARRAY_SUPPORT=sn.TYPED_ARRAY_SUPPORT!==void 0?sn.TYPED_ARRAY_SUPPORT:!0;Rl();function Rl(){return ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ts(e,t){if(Rl()<t)throw new RangeError("Invalid typed array length");return ge.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=ge.prototype):(e===null&&(e=new ge(t)),e.length=t),e}function ge(e,t,r){if(!ge.TYPED_ARRAY_SUPPORT&&!(this instanceof ge))return new ge(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Kf(this,e)}return P_(this,e,t,r)}ge.poolSize=8192;ge._augment=function(e){return e.__proto__=ge.prototype,e};function P_(e,t,r,s){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?oA(e,t,r,s):typeof t=="string"?iA(e,t,r):aA(e,t)}ge.from=function(e,t,r){return P_(null,e,t,r)};ge.TYPED_ARRAY_SUPPORT&&(ge.prototype.__proto__=Uint8Array.prototype,ge.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&ge[Symbol.species]);function A_(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function nA(e,t,r,s){return A_(t),t<=0?Ts(e,t):r!==void 0?typeof s=="string"?Ts(e,t).fill(r,s):Ts(e,t).fill(r):Ts(e,t)}ge.alloc=function(e,t,r){return nA(null,e,t,r)};function Kf(e,t){if(A_(t),e=Ts(e,t<0?0:Yf(t)|0),!ge.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}ge.allocUnsafe=function(e){return Kf(null,e)};ge.allocUnsafeSlow=function(e){return Kf(null,e)};function iA(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!ge.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var s=I_(t,r)|0;e=Ts(e,s);var i=e.write(t,r);return i!==s&&(e=e.slice(0,i)),e}function mp(e,t){var r=t.length<0?0:Yf(t.length)|0;e=Ts(e,r);for(var s=0;s<r;s+=1)e[s]=t[s]&255;return e}function oA(e,t,r,s){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(s||0))throw new RangeError("'length' is out of bounds");return r===void 0&&s===void 0?t=new Uint8Array(t):s===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,s),ge.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=ge.prototype):e=mp(e,t),e}function aA(e,t){if(fs(t)){var r=Yf(t.length)|0;return e=Ts(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||kA(t.length)?Ts(e,0):mp(e,t);if(t.type==="Buffer"&&k_(t.data))return mp(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Yf(e){if(e>=Rl())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Rl().toString(16)+" bytes");return e|0}ge.isBuffer=PA;function fs(e){return!!(e!=null&&e._isBuffer)}ge.compare=function(t,r){if(!fs(t)||!fs(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var s=t.length,i=r.length,o=0,a=Math.min(s,i);o<a;++o)if(t[o]!==r[o]){s=t[o],i=r[o];break}return s<i?-1:i<s?1:0};ge.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};ge.concat=function(t,r){if(!k_(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return ge.alloc(0);var s;if(r===void 0)for(r=0,s=0;s<t.length;++s)r+=t[s].length;var i=ge.allocUnsafe(r),o=0;for(s=0;s<t.length;++s){var a=t[s];if(!fs(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i};function I_(e,t){if(fs(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return M
  55. `)>-1&&(o?h=h.split(`
  56. `).map(function(f){return" "+f}).join(`
  57. `).substr(2):h=`
  58. `+h.split(`
  59. `).map(function(f){return" "+f}).join(`
  60. `))):h=e.stylize("[Circular]","special")),ss(a)){if(o&&i.match(/^\d+$/))return h;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+h}function MA(e,t,r){var s=e.reduce(function(i,o){return o.indexOf(`
  61. `)>=0,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?r[0]+(t===""?"":t+`
  62. `)+" "+e.join(`,
  63. `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function Zf(e){return Array.isArray(e)}function qc(e){return typeof e=="boolean"}function xs(e){return e===null}function e1(e){return e==null}function t1(e){return typeof e=="number"}function ln(e){return typeof e=="string"}function j_(e){return typeof e=="symbol"}function ss(e){return e===void 0}function yo(e){return Os(e)&&r1(e)==="[object RegExp]"}function Os(e){return typeof e=="object"&&e!==null}function Bl(e){return Os(e)&&r1(e)==="[object Date]"}function vo(e){return Os(e)&&(r1(e)==="[object Error]"||e instanceof Error)}function So(e){return typeof e=="function"}function U_(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function q_(e){return ge.isBuffer(e)}function r1(e){return Object.prototype.toString.call(e)}function ju(e){return e<10?"0"+e.toString(10):e.toString(10)}var DA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function FA(){var e=new Date,t=[ju(e.getHours()),ju(e.getMinutes()),ju(e.getSeconds())].join(":");return[e.getDate(),DA[e.getMonth()],t].join(" ")}function V_(){console.log("%s - %s",FA(),Uc.apply(null,arguments))}function s1(e,t){if(!t||!Os(t))return e;for(var r=Object.keys(t),s=r.length;s--;)e[r[s]]=t[r[s]];return e}function W_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var _n=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function n1(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(_n&&e[_n]){var t=e[_n];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,_n,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var r,s,i=new Promise(function(h,l){r=h,s=l}),o=[],a=0;a<arguments.length;a++)o.push(arguments[a]);o.push(function(h,l){h?s(h):r(l)});try{e.apply(this,o)}catch(h){s(h)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),_n&&Object.defineProperty(t,_n,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,B_(e))}n1.custom=_n;function BA(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function G_(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],s=0;s<arguments.length;s++)r.push(arguments[s]);var i=r.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,r).then(function(h){dr.nextTick(a.bind(null,null,h))},function(h){dr.nextTick(BA.bind(null,h,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,B_(e)),t}var $A={inherits:Dl,_extend:s1,log:V_,isBuffer:q_,isPrimitive:U_,isFunction:So,isError:vo,isDate:Bl,isObject:Os,isRegExp:yo,isUndefined:ss,isSymbol:j_,isString:ln,isNumber:t1,isNullOrUndefined:e1,isNull:xs,isBoolean:qc,isArray:Zf,inspect:cs,deprecate:Qf,format:Uc,debuglog:$_,promisify:n1,callbackify:G_},jA=Object.freeze({__proto__:null,_extend:s1,callbackify:G_,debuglog:$_,default:$A,deprecate:Qf,format:Uc,inherits:Dl,inspect:cs,isArray:Zf,isBoolean:qc,isBuffer:q_,isDate:Bl,isError:vo,isFunction:So,isNull:xs,isNullOrUndefined:e1,isNumber:t1,isObject:Os,isPrimitive:U_,isRegExp:yo,isString:ln,isSymbol:j_,isUndefined:ss,log:V_,promisify:n1});function UA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var z_=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function Uu(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function qA(e,t,r,s){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?xm(VA(e),function(i){var o=encodeURIComponent(Uu(i))+r;return z_(e[i])?xm(e[i],function(a){return o+encodeURIComponent(Uu(a))}).join(t):o+encodeURIComponent(Uu(e[i]))}).join(t):""}function xm(e,t){if(e.map)return e.map(t);for(var r=[],s=0;s<e.lengt
  64. `," "],JA=["{","}","|","\\","^","`"].concat(XA),yp=["'"].concat(JA),Pm=["%","/","?",";","#"].concat(yp),Am=["/","?","#"],KA=255,Im=/^[+a-z0-9A-Z_-]{0,63}$/,YA=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,QA={javascript:!0,"javascript:":!0},vp={javascript:!0,"javascript:":!0},ui={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Mi(e,t,r){if(e&&Os(e)&&e instanceof Tr)return e;var s=new Tr;return s.parse(e,t,r),s}Tr.prototype.parse=function(e,t,r){return J_(this,e,t,r)};function J_(e,t,r,s){if(!ln(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),o=i!==-1&&i<t.indexOf("#")?"?":"#",a=t.split(o),h=/\\/g;a[0]=a[0].replace(h,"/"),t=a.join(o);var l=t;if(l=l.trim(),!s&&t.split("#").length===1){var f=HA.exec(l);if(f)return e.path=l,e.href=l,e.pathname=f[1],f[2]?(e.search=f[2],r?e.query=km(e.search.substr(1)):e.query=e.search.substr(1)):r&&(e.search="",e.query={}),e}var d=GA.exec(l);if(d){d=d[0];var g=d.toLowerCase();e.protocol=g,l=l.substr(d.length)}if(s||d||l.match(/^\/\/[^@\/]+@[^@\/]+/)){var y=l.substr(0,2)==="//";y&&!(d&&vp[d])&&(l=l.substr(2),e.slashes=!0)}var v,w,_,S;if(!vp[d]&&(y||d&&!ui[d])){var k=-1;for(v=0;v<Am.length;v++)w=l.indexOf(Am[v]),w!==-1&&(k===-1||w<k)&&(k=w);var E,P;for(k===-1?P=l.lastIndexOf("@"):P=l.lastIndexOf("@",k),P!==-1&&(E=l.slice(0,P),l=l.slice(P+1),e.auth=decodeURIComponent(E)),k=-1,v=0;v<Pm.length;v++)w=l.indexOf(Pm[v]),w!==-1&&(k===-1||w<k)&&(k=w);k===-1&&(k=l.length),e.host=l.slice(0,k),l=l.slice(k),ew(e),e.hostname=e.hostname||"";var O=e.hostname[0]==="["&&e.hostname[e.hostname.length-1]==="]";if(!O){var A=e.hostname.split(/\./);for(v=0,_=A.length;v<_;v++){var M=A[v];if(M&&!M.match(Im)){for(var F="",x=0,I=M.length;x<I;x++)M.charCodeAt(x)>127?F+="x":F+=M[x];if(!F.match(Im)){var R=A.slice(0,v),L=A.slice(v+1),z=M.match(YA);z&&(R.push(z[1]),L.unshift(z[2])),L.length&&(l="/"+L.join(".")+l),e.hostname=R.join(".");break}}}}e.hostname.length>KA?e.hostname="":e.hostname=e.hostname.toLowerCase(),O||(e.hostname=YP(e.hostname)),S=e.port?":"+e.port:"";var J=e.hostname||"";e.host=J+S,e.href+=e.host,O&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!QA[g])for(v=0,_=yp.length;v<_;v++){var re=yp[v];if(l.indexOf(re)!==-1){var V=encodeURIComponent(re);V===re&&(V=escape(re)),l=l.split(re).join(V)}}var ee=l.indexOf("#");ee!==-1&&(e.hash=l.substr(ee),l=l.slice(0,ee));var G=l.indexOf("?");if(G!==-1?(e.search=l.substr(G),e.query=l.substr(G+1),r&&(e.query=km(e.query)),l=l.slice(0,G)):r&&(e.search="",e.query={}),l&&(e.pathname=l),ui[g]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){S=e.pathname||"";var Q=e.search||"";e.path=S+Q}return e.href=i1(e),e}function K_(e){if(typeof e=="string")e=new Tr().parse(e);else if(!(e instanceof Tr))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+String(e));if(e.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return ZA(e)}function ZA(e){const t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){const s=t.codePointAt(r+2)|32;if(t[r+1]==="2"&&s===102)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(t)}function Y_(e){return ln(e)&&(e=J_({},e)),i1(e)}function i1(e){var t=e.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var r=e.protocol||"",s=e.pathname||"",i=e.hash||"",o=!1,a="";e.host?o=t+e.host:e.hostname&&(o=t+(e.hostname.indexOf(":")===-1?e.hostname:"["+this.hostname+"]"),e.port&&(o+=":"+e.port)),e.query&&Os(e.query)&&Object.keys(e.query).length&&(a=qA(e.query));var h=e.search||a&&"?"+a||"";return r&&r.substr(-1)!==":"&&(r+=":"),e.slashes||(!r||ui[r])&&o!==!1?(o="//"+(o||""),s&&s.charAt(0)!=="/"&&(s="/"+s)):o||(o=""),i&&i.charAt(0)!=="#"&&(i="#"+i),h&&h.charAt(0)!=="?"&&(h="?"+h),s=s.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),h=h.replace("#","%23"),r+o+s+h+i}Tr.prototype.format=function(){return i1(this)};function Q_(e,t){return Mi(e,!1,!0).resolve(t)}Tr.prototype.resolve=function(e){re
  65. `)}var fC=Object.defineProperty,dC=Object.defineProperties,mC=Object.getOwnPropertyDescriptors,Um=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,yC=Object.prototype.propertyIsEnumerable,qm=(e,t,r)=>t in e?fC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ql=(e,t)=>{for(var r in t||(t={}))gC.call(t,r)&&qm(e,r,t[r]);if(Um)for(var r of Um(t))yC.call(t,r)&&qm(e,r,t[r]);return e},xp=(e,t)=>dC(e,mC(t));function vC({source:e,filename:t,preprocessOptions:r},s){let i="",o=null;if(s.render(e,ql({filename:t},r),(a,h)=>{a&&(o=a),i=h}),o)throw o;return i}function Pw(e){const{preprocessLang:t,preprocessCustomRequire:r}=e;if(t&&!r)throw new Error("[@vue/compiler-sfc] Template preprocessing in the browser build must provide the `preprocessCustomRequire` option to return the in-browser version of the preprocessor in the shape of { render(): string }.");const s=t?r?r(t):void 0:!1;if(s)try{return Vm(xp(ql({},e),{source:vC(e,s),ast:void 0}))}catch(i){return{code:"export default function render() {}",source:e.source,tips:[],errors:[i]}}else return t?{code:"export default function render() {}",source:e.source,tips:[`Component ${e.filename} uses lang ${t} for template. Please install the language preprocessor.`],errors:[`Component ${e.filename} uses lang ${t} for template, however it is not installed.`]}:Vm(e)}function Vm({filename:e,id:t,scoped:r,slotted:s,inMap:i,source:o,ast:a,ssr:h=!1,ssrCssVars:l,isProd:f=!1,compiler:d,compilerOptions:g={},transformAssetUrls:y}){const v=[],w=[];let _=[];if(an(y)){const x=uI(y);_=[hI(x),mI(x)]}else y!==!1&&(_=[sw,nw]);h&&!l&&_o("compileTemplate is called with `ssr: true` but no corresponding `cssVars` option."),t||(_o("compileTemplate now requires the `id` option."),t="");const S=t.replace(/^data-v-/,""),k=`data-v-${S}`,E=h?lC:pp;if(d=d||E,d!==E&&(a=void 0),a!=null&&a.transformed){const I=(h?pp:d).parse(a.source,xp(ql({prefixIdentifiers:!0},g),{parseMode:"sfc",onError:R=>v.push(R)})).children.find(R=>R.type===1&&R.tag==="template");a=Un(I.children,a.source)}let{code:P,ast:O,preamble:A,map:M}=d.compile(a||o,xp(ql({mode:"module",prefixIdentifiers:!0,hoistStatic:!0,cacheHandlers:!0,ssrCssVars:h&&l&&l.length?r_(l,S,f,!0):"",scopeId:r?k:void 0,slotted:s,sourceMap:!0},g),{hmr:!f,nodeTransforms:_.concat(g.nodeTransforms||[]),filename:e,onError:x=>v.push(x),onWarn:x=>w.push(x)}));i&&!a&&(M&&(M=SC(i,M)),v.length&&_C(v,o,i));const F=w.map(x=>{let I=x.message;return x.loc&&(I+=`
  66. ${Ti((a==null?void 0:a.source)||o,x.loc.start.offset,x.loc.end.offset)}`),I});return{code:P,ast:O,preamble:A,source:o,errors:v,tips:F,map:M}}function SC(e,t){if(!e)return t;if(!t)return e;const r=new fo.SourceMapConsumer(e),s=new fo.SourceMapConsumer(t),i=new fo.SourceMapGenerator;s.eachMapping(a=>{if(a.originalLine==null)return;const h=r.originalPositionFor({line:a.originalLine,column:a.originalColumn});h.source!=null&&i.addMapping({generated:{line:a.generatedLine,column:a.generatedColumn},original:{line:h.line,column:a.originalColumn},source:h.source,name:h.name})});const o=i;return r.sources.forEach(a=>{o._sources.add(a);const h=r.sourceContentFor(a);h!=null&&i.setSourceContent(a,h)}),o._sourceRoot=e.sourceRoot,o._file=e.file,o.toJSON()}function _C(e,t,r){const s=r.sourcesContent[0],i=s.indexOf(t),o=s.slice(0,i).split(/\r?\n/).length-1;e.forEach(a=>{a.loc&&(a.loc.start.line+=o,a.loc.start.offset+=i,a.loc.end!==a.loc.start&&(a.loc.end.line+=o,a.loc.end.offset+=i))})}var xa={exports:{}},Wm;function Aw(){if(Wm)return xa.exports;Wm=1;let e=dr||{},t=e.argv||[],r=e.env||{},s=!(r.NO_COLOR||t.includes("--no-color"))&&(!!r.FORCE_COLOR||t.includes("--color")||e.platform==="win32"||(e.stdout||{}).isTTY&&r.TERM!=="dumb"||!!r.CI),i=(h,l,f=h)=>d=>{let g=""+d,y=g.indexOf(l,h.length);return~y?h+o(g,l,f,y)+l:h+g+l},o=(h,l,f,d)=>{let g="",y=0;do g+=h.substring(y,d)+f,y=d+l.length,d=h.indexOf(l,y);while(~d);return g+h.substring(y)},a=(h=s)=>{let l=h?i:()=>String;return{isColorSupported:h,reset:l("\x1B[0m","\x1B[0m"),bold:l("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:l("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:l("\x1B[3m","\x1B[23m"),underline:l("\x1B[4m","\x1B[24m"),inverse:l("\x1B[7m","\x1B[27m"),hidden:l("\x1B[8m","\x1B[28m"),strikethrough:l("\x1B[9m","\x1B[29m"),black:l("\x1B[30m","\x1B[39m"),red:l("\x1B[31m","\x1B[39m"),green:l("\x1B[32m","\x1B[39m"),yellow:l("\x1B[33m","\x1B[39m"),blue:l("\x1B[34m","\x1B[39m"),magenta:l("\x1B[35m","\x1B[39m"),cyan:l("\x1B[36m","\x1B[39m"),white:l("\x1B[37m","\x1B[39m"),gray:l("\x1B[90m","\x1B[39m"),bgBlack:l("\x1B[40m","\x1B[49m"),bgRed:l("\x1B[41m","\x1B[49m"),bgGreen:l("\x1B[42m","\x1B[49m"),bgYellow:l("\x1B[43m","\x1B[49m"),bgBlue:l("\x1B[44m","\x1B[49m"),bgMagenta:l("\x1B[45m","\x1B[49m"),bgCyan:l("\x1B[46m","\x1B[49m"),bgWhite:l("\x1B[47m","\x1B[49m"),blackBright:l("\x1B[90m","\x1B[39m"),redBright:l("\x1B[91m","\x1B[39m"),greenBright:l("\x1B[92m","\x1B[39m"),yellowBright:l("\x1B[93m","\x1B[39m"),blueBright:l("\x1B[94m","\x1B[39m"),magentaBright:l("\x1B[95m","\x1B[39m"),cyanBright:l("\x1B[96m","\x1B[39m"),whiteBright:l("\x1B[97m","\x1B[39m"),bgBlackBright:l("\x1B[100m","\x1B[49m"),bgRedBright:l("\x1B[101m","\x1B[49m"),bgGreenBright:l("\x1B[102m","\x1B[49m"),bgYellowBright:l("\x1B[103m","\x1B[49m"),bgBlueBright:l("\x1B[104m","\x1B[49m"),bgMagentaBright:l("\x1B[105m","\x1B[49m"),bgCyanBright:l("\x1B[106m","\x1B[49m"),bgWhiteBright:l("\x1B[107m","\x1B[49m")}};return xa.exports=a(),xa.exports.createColors=a,xa.exports}var Gu,Gm;function Iw(){if(Gm)return Gu;Gm=1;const e=39,t=34,r=92,s=47,i=10,o=32,a=12,h=9,l=13,f=91,d=93,g=40,y=41,v=123,w=125,_=59,S=42,k=58,E=64,P=/[\t\n\f\r "#'()/;[\\\]{}]/g,O=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,A=/.[\r\n"'(/\\]/,M=/[\da-f]/i;return Gu=function(x,I={}){let R=x.css.valueOf(),L=I.ignoreErrors,z,J,re,V,ee,G,Q,ie,ce,ne,W=R.length,K=0,j=[],B=[];function Z(){return K}function U(pe){throw x.error("Unclosed "+pe,K)}function se(){return B.length===0&&K>=W}function ae(pe){if(B.length)return B.pop();if(K>=W)return;let ve=pe?pe.ignoreUnclosed:!1;switch(z=R.charCodeAt(K),z){case i:case o:case h:case l:case a:{V=K;do V+=1,z=R.charCodeAt(V);while(z===o||z===i||z===h||z===l||z===a);G=["space",R.slice(K,V)],K=V-1;break}case f:case d:case v:case w:case k:case _:case y:{let xe=String.fromCharCode(z);G=[xe,xe,K];break}case g:{if(ne=j.length?j.pop()[1]:"",ce=R.charCodeAt(K+1),ne==="url"&&ce!==e&&ce!==t&&ce!==o&&ce!==i&&ce!==h&&ce!==a&&ce!==l){V=K;do{if(Q=!1,V=R.indexOf(")",V+1),V===-1)if(L||ve){V=K;break}else U("bracket");for(ie=V;R.charCodeAt(ie-1)===r;)ie-=1,Q=!Q}while(Q);
  67. `):f+=d[1]}return f}return a.registerInput=s,zu=a,zu}var Hu,Hm;function u1(){if(Hm)return Hu;Hm=1;let e=Aw(),t=Cw();class r extends Error{constructor(i,o,a,h,l,f){super(i),this.name="CssSyntaxError",this.reason=i,l&&(this.file=l),h&&(this.source=h),f&&(this.plugin=f),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(this.line=o,this.column=a):(this.line=o.line,this.column=o.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let o=this.source;i==null&&(i=e.isColorSupported);let a=v=>v,h=v=>v,l=v=>v;if(i){let{bold:v,gray:w,red:_}=e.createColors(!0);h=S=>v(_(S)),a=S=>w(S),t&&(l=S=>t(S))}let f=o.split(/\r?\n/),d=Math.max(this.line-3,0),g=Math.min(this.line+2,f.length),y=String(g).length;return f.slice(d,g).map((v,w)=>{let _=d+1+w,S=" "+(" "+_).slice(-y)+" | ";if(_===this.line){if(v.length>160){let E=20,P=Math.max(0,this.column-E),O=Math.max(this.column+E,this.endColumn+E),A=v.slice(P,O),M=a(S.replace(/\d/g," "))+v.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return h(">")+a(S)+l(A)+`
  68. `+M+h("^")}let k=a(S.replace(/\d/g," "))+v.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+a(S)+l(v)+`
  69. `+k+h("^")}return" "+a(S)+l(v)}).join(`
  70. `)}toString(){let i=this.showSourceCode();return i&&(i=`
  71. `+i+`
  72. `),this.name+": "+this.message+i}}return Hu=r,r.default=r,Hu}var Xu,Xm;function Nw(){if(Xm)return Xu;Xm=1;const e={after:`
  73. `,beforeClose:`
  74. `,beforeComment:`
  75. `,beforeDecl:`
  76. `,beforeOpen:" ",beforeRule:`
  77. `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(i){this.builder=i}atrule(i,o){let a="@"+i.name,h=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?a+=i.raws.afterName:h&&(a+=" "),i.nodes)this.block(i,a+h);else{let l=(i.raws.between||"")+(o?";":"");this.builder(a+h+l,i)}}beforeAfter(i,o){let a;i.type==="decl"?a=this.raw(i,null,"beforeDecl"):i.type==="comment"?a=this.raw(i,null,"beforeComment"):o==="before"?a=this.raw(i,null,"beforeRule"):a=this.raw(i,null,"beforeClose");let h=i.parent,l=0;for(;h&&h.type!=="root";)l+=1,h=h.parent;if(a.includes(`
  78. `)){let f=this.raw(i,null,"indent");if(f.length)for(let d=0;d<l;d++)a+=f}return a}block(i,o){let a=this.raw(i,"between","beforeOpen");this.builder(o+a+"{",i,"start");let h;i.nodes&&i.nodes.length?(this.body(i),h=this.raw(i,"after")):h=this.raw(i,"after","emptyBody"),h&&this.builder(h),this.builder("}",i,"end")}body(i){let o=i.nodes.length-1;for(;o>0&&i.nodes[o].type==="comment";)o-=1;let a=this.raw(i,"semicolon");for(let h=0;h<i.nodes.length;h++){let l=i.nodes[h],f=this.raw(l,"before");f&&this.builder(f),this.stringify(l,o!==h||a)}}comment(i){let o=this.raw(i,"left","commentLeft"),a=this.raw(i,"right","commentRight");this.builder("/*"+o+i.text+a+"*/",i)}decl(i,o){let a=this.raw(i,"between","colon"),h=i.prop+a+this.rawValue(i,"value");i.important&&(h+=i.raws.important||" !important"),o&&(h+=";"),this.builder(h,i)}document(i){this.body(i)}raw(i,o,a){let h;if(a||(a=o),o&&(h=i.raws[o],typeof h<"u"))return h;let l=i.parent;if(a==="before"&&(!l||l.type==="root"&&l.first===i||l&&l.type==="document"))return"";if(!l)return e[a];let f=i.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[a]<"u")return f.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(i,a);{let d="raw"+t(a);this[d]?h=this[d](f,i):f.walk(g=>{if(h=g.raws[o],typeof h<"u")return!1})}return typeof h>"u"&&(h=e[a]),f.rawCache[a]=h,h}rawBeforeClose(i){let o;return i.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return o=a.raws.after,o.includes(`
  79. `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(i,o){let a;return i.walkComments(h=>{if(typeof h.raws.before<"u")return a=h.raws.before,a.includes(`
  80. `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(o,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(i,o){let a;return i.walkDecls(h=>{if(typeof h.raws.before<"u")return a=h.raws.before,a.includes(`
  81. `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(o,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(i){let o;return i.walk(a=>{if(a.type!=="decl"&&(o=a.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(i){let o;return i.walk(a=>{if(a.nodes&&(a.parent!==i||i.first!==a)&&typeof a.raws.before<"u")return o=a.raws.before,o.includes(`
  82. `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(i){let o;return i.walkDecls(a=>{if(typeof a.raws.between<"u")return o=a.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(i){let o;return i.walk(a=>{if(a.nodes&&a.nodes.length===0&&(o=a.raws.after,typeof o<"u"))return!1}),o}rawIndent(i){if(i.raws.indent)return i.raws.indent;let o;return i.walk(a=>{let h=a.parent;if(h&&h!==i&&h.parent&&h.parent===i&&typeof a.raws.before<"u"){let l=a.raws.before.split(`
  83. `);return o=l[l.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(i){let o;return i.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(o=a.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(i,o){let a=i[o],h=i.raws[o];return h&&h.value===a?h.raw:a}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,o){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,o)}}return Xu=r,r.default=r,Xu}var Ju,Jm;function Vc(){if(Jm)return Ju;Jm=1;let e=Nw();function t(r,s){new e(s).stringify(r)}return Ju=t,t.default=t,Ju}var ka={},Km;function h1(){return Km||(Km=1,ka.isClean=Symbol("isClean"),ka.my=Symbol("my")),ka}var Ku,Ym;function Wc(){if(Ym)return Ku;Ym=1;let e=u1(),t=Nw(),r=Vc(),{isClean:s,my:i}=h1();function o(h,l){let f=new h.constructor;for(let d in h){if(!Object.prototype.hasOwnProperty.call(h,d)||d==="proxyCache")continue;let g=h[d],y=typeof g;d==="parent"&&y==="object"?l&&(f[d]=l):d==="source"?f[d]=g:Array.isArray(g)?f[d]=g.map(v=>o(v,f)):(y==="object"&&g!==null&&(g=o(g)),f[d]=g)}return f}class a{constructor(l={}){this.raws={},this[s]=!1,this[i]=!0;for(let f in l)if(f==="nodes"){this.nodes=[];for(let d of l[f])typeof d.clone=="function"?this.append(d.clone()):this.append(d)}else this[f]=l[f]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let f=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${f.input.from}:${f.start.line}:${f.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let f in l)this[f]=l[f];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let f=o(this);for(let d in l)f[d]=l[d];return f}cloneAfter(l={}){let f=this.clone(l);return this.parent.insertAfter(this,f),f}cloneBefore(l={}){let f=this.clone(l);return this.parent.insertBefore(this,f),f}error(l,f={}){if(this.source){let{end:d,start:g}=this.rangeBy(f);return this.source.input.error(l,{column:g.column,line:g.line},{column:d.column,line:d.line},f)}return new e(l)}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:f==="root"?()=>l.root().toProxy():l[f]},set(l,f,d){return l[f]===d||(l[f]=d,(f==="prop"||f==="value"||f==="name"||f==="params"||f==="important"||f==="text")&&l.markDirty()),!0}}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let l=this;for(;l=l.parent;)l[s]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,f){let d=this.source.start;if(l.index)d=this.positionInside(l.index);else if(l.word){f=this.source.input.css.slice(this.source.start.offset,this.source.end.offset);let g=f.indexOf(l.word);g!==-1&&(d=this.positionInside(g))}return d}positionInside(l){let f=this.source.start.column,d=this.source.start.line,g=this.source.start.offset,y=g+l;for(let v=g;v<y;v++)this.source.input.css[v]===`
  84. `?(f=1,d+=1):f+=1;return{column:f,line:d}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let f={column:this.source.start.column,line:this.source.start.line},d=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:f.column+1,line:f.line};if(l.word){let g=this.source.input.css.slice(this.source.start.offset,this.source.end.offset),y=g.indexOf(l.word);y!==-1&&(f=this.positionInside(y,g),d=this.positionInside(y+l.word.length,g))}else l.start?f={column:l.start.column,line:l.start.line}:l.index&&(f=this.positionInside(l.index)),l.end?d={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?d=this.positionInside(l.endIndex):l.index&&(d=this.positionInside(l.index+1));return(d.line<f.line||d.line===f.line&&d.column<=f.column)&&(d={column:f.column+1,line:f.line}),{end:d,start:f}}raw(l,f){return new t().raw(this,l,f)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let f=this,d=!1;for(let g of l)g===this?d=!0:d?(this.parent.insertAfter(f,g),f=g):this.parent.insertBefore(f,g);d||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,f){let d={},g=f==null;f=f||new Map;let y=0;for(let v in this){if(!Object.prototype.hasOwnProperty.call(this,v)||v==="parent"||v==="proxyCache")continue;let w=this[v];if(Array.isArray(w))d[v]=w.map(_=>typeof _=="object"&&_.toJSON?_.toJSON(null,f):_);else if(typeof w=="object"&&w.toJSON)d[v]=w.toJSON(null,f);else if(v==="source"){let _=f.get(w.input);_==null&&(_=y,f.set(w.input,y),y++),d[v]={end:w.end,inputId:_,start:w.start}}else d[v]=w}return g&&(d.inputs=[...f.keys()].map(v=>v.toJSON())),d}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let f="";return l(this,d=>{f+=d}),f}warn(l,f,d){let g={node:this};for(let y in d)g[y]=d[y];return l.warn(f,g)}get proxyOf(){return this}}return Ku=a,a.default=a,Ku}var Yu,Qm;function Gc(){if(Qm)return Yu;Qm=1;let e=Wc();class t extends e{constructor(s){super(s),this.type="comment"}}return Yu=t,t.default=t,Yu}var Qu,Zm;function zc(){if(Zm)return Qu;Zm=1;let e=Wc();class t extends e{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Qu=t,t.default=t,Qu}var Zu,eg;function Wn(){if(eg)return Zu;eg=1;let e=Gc(),t=zc(),r=Wc(),{isClean:s,my:i}=h1(),o,a,h,l;function f(y){return y.map(v=>(v.nodes&&(v.nodes=f(v.nodes)),delete v.source,v))}function d(y){if(y[s]=!1,y.proxyOf.nodes)for(let v of y.proxyOf.nodes)d(v)}class g extends r{append(...v){for(let w of v){let _=this.normalize(w,this.last);for(let S of _)this.proxyOf.nodes.push(S)}return this.markDirty(),this}cleanRaws(v){if(super.cleanRaws(v),this.nodes)for(let w of this.nodes)w.cleanRaws(v)}each(v){if(!this.proxyOf.nodes)return;let w=this.getIterator(),_,S;for(;this.indexes[w]<this.proxyOf.nodes.length&&(_=this.indexes[w],S=v(this.proxyOf.nodes[_],_),S!==!1);)this.indexes[w]+=1;return delete this.indexes[w],S}every(v){return this.nodes.every(v)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let v=this.lastEach;return this.indexes[v]=0,v}getProxyProcessor(){return{get(v,w){return w==="proxyOf"?v:v[w]?w==="each"||typeof w=="string"&&w.startsWith("walk")?(..._)=>v[w](..._.map(S=>typeof S=="function"?(k,E)=>S(k.toProxy(),E):S)):w==="every"||w==="some"?_=>v[w]((S,...k)=>_(S.toProxy(),...k)):w==="root"?()=>v.root().toProxy():w==="nodes"?v.nodes.map(_=>_.toProxy()):w==="first"||w==="last"?v[w].toProxy():v[w]:v[w]},set(v,w,_){return v[w]===_||(v[w]=_,(w==="name"||w==="params"||w==="selector")&&v.markDirty()),!0}}}index(v){return typeof v=="number"?v:(v.proxyOf&&(v=v.proxyOf),this.proxyOf.nodes.indexOf(v))}insertAfter(v,w){let _=this.index(v),S=this.normalize(w,this.proxyOf.nodes[_]).reverse();_=this.index(v);for(let E
  85. `);k=new Array(P.length);let O=0;for(let A=0,M=P.length;A<M;A++)k[A]=O,O+=P[A].length+1;this[d]=k}S=k[k.length-1];let E=0;if(_>=S)E=k.length-1;else{let P=k.length-2,O;for(;E<P;)if(O=E+(P-E>>1),_<k[O])P=O-1;else if(_>=k[O+1])E=O+1;else{E=O;break}}return{col:_-k[E]+1,line:E+1}}mapResolve(_){return/^\w+:\/\//.test(_)?_:r(this.map.consumer().sourceRoot||this.map.root||".",_)}origin(_,S,k,E){if(!this.map)return!1;let P=this.map.consumer(),O=P.originalPositionFor({column:S,line:_});if(!O.source)return!1;let A;typeof k=="number"&&(A=P.originalPositionFor({column:E,line:k}));let M;t(O.source)?M=a(O.source):M=new URL(O.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let F={column:O.column,endColumn:A&&A.column,endLine:A&&A.line,line:O.line,url:M.toString()};if(M.protocol==="file:")if(o)F.file=o(M);else throw new Error("file: protocol is not available in this PostCSS build");let x=P.sourceContentFor(O.source);return x&&(F.source=x),F}toJSON(){let _={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(_[S]=this[S]);return this.map&&(_.map={...this.map},_.map.consumerCache&&(_.map.consumerCache=void 0)),_}get from(){return this.file||this.id}}return hh=v,v.default=v,f&&f.registerInput&&f.registerInput(v),hh}var ph,yg;function ea(){if(yg)return ph;yg=1;let e=Wn(),t,r;class s extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,a,h){let l=super.normalize(o);if(a){if(h==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let f of l)f.raws.before=a.raws.before}return l}removeChild(o,a){let h=this.index(o);return!a&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},ph=s,s.default=s,e.registerRoot(s),ph}var fh,vg;function Fw(){if(vg)return fh;vg=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
  86. `," "];return e.split(t,r)},split(t,r,s){let i=[],o="",a=!1,h=0,l=!1,f="",d=!1;for(let g of t)d?d=!1:g==="\\"?d=!0:l?g===f&&(l=!1):g==='"'||g==="'"?(l=!0,f=g):g==="("?h+=1:g===")"?h>0&&(h-=1):h===0&&r.includes(g)&&(a=!0),a?(o!==""&&i.push(o.trim()),o="",a=!1):o+=g;return(s||o!=="")&&i.push(o.trim()),i}};return fh=e,e.default=e,fh}var dh,Sg;function m1(){if(Sg)return dh;Sg=1;let e=Wn(),t=Fw();class r extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let o=this.selector?this.selector.match(/,\s*/):null,a=o?o[0]:","+this.raw("between","beforeOpen");this.selector=i.join(a)}}return dh=r,r.default=r,e.registerRule(r),dh}var mh,_g;function AC(){if(_g)return mh;_g=1;let e=p1(),t=Gc(),r=zc(),s=Hc(),i=Dw(),o=ea(),a=m1();function h(l,f){if(Array.isArray(l))return l.map(y=>h(y));let{inputs:d,...g}=l;if(d){f=[];for(let y of d){let v={...y,__proto__:s.prototype};v.map&&(v.map={...v.map,__proto__:i.prototype}),f.push(v)}}if(g.nodes&&(g.nodes=l.nodes.map(y=>h(y,f))),g.source){let{inputId:y,...v}=g.source;g.source=v,y!=null&&(g.source.input=f[y])}if(g.type==="root")return new o(g);if(g.type==="decl")return new r(g);if(g.type==="rule")return new a(g);if(g.type==="comment")return new t(g);if(g.type==="atrule")return new e(g);throw new Error("Unknown node type: "+l.type)}return mh=h,h.default=h,mh}var gh,wg;function Bw(){if(wg)return gh;wg=1;let{dirname:e,relative:t,resolve:r,sep:s}=c1,{SourceMapConsumer:i,SourceMapGenerator:o}=d1(),{pathToFileURL:a}=Mw,h=Hc(),l=!!(i&&o),f=!!(e&&r&&t&&s);class d{constructor(y,v,w,_){this.stringify=y,this.mapOpts=w.map||{},this.root=v,this.opts=w,this.css=_,this.originalCSS=_,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let y;this.isInline()?y="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?y=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?y=this.mapOpts.annotation(this.opts.to,this.root):y=this.outputFile()+".map";let v=`
  87. `;this.css.includes(`\r
  88. `)&&(v=`\r
  89. `),this.css+=v+"/*# sourceMappingURL="+y+" */"}applyPrevMaps(){for(let y of this.previous()){let v=this.toUrl(this.path(y.file)),w=y.root||e(y.file),_;this.mapOpts.sourcesContent===!1?(_=new i(y.text),_.sourcesContent&&(_.sourcesContent=null)):_=y.consumer(),this.map.applySourceMap(_,v,this.toUrl(this.path(w)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let y;for(let v=this.root.nodes.length-1;v>=0;v--)y=this.root.nodes[v],y.type==="comment"&&y.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(v)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&l&&this.isMap())return this.generateMap();{let y="";return this.stringify(this.root,v=>{y+=v}),[y]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let y=this.previous()[0].consumer();y.file=this.outputFile(),this.map=o.fromSourceMap(y,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let y=1,v=1,w="<no source>",_={generated:{column:0,line:0},original:{column:0,line:0},source:""},S,k;this.stringify(this.root,(E,P,O)=>{if(this.css+=E,P&&O!=="end"&&(_.generated.line=y,_.generated.column=v-1,P.source&&P.source.start?(_.source=this.sourcePath(P),_.original.line=P.source.start.line,_.original.column=P.source.start.column-1,this.map.addMapping(_)):(_.source=w,_.original.line=1,_.original.column=0,this.map.addMapping(_))),k=E.match(/\n/g),k?(y+=k.length,S=E.lastIndexOf(`
  90. `),v=E.length-S):v+=E.length,P&&O!=="start"){let A=P.parent||{raws:{}};(!(P.type==="decl"||P.type==="atrule"&&!P.nodes)||P!==A.last||A.raws.semicolon)&&(P.source&&P.source.end?(_.source=this.sourcePath(P),_.original.line=P.source.end.line,_.original.column=P.source.end.column-1,_.generated.line=y,_.generated.column=v-2,this.map.addMapping(_)):(_.source=w,_.original.line=1,_.original.column=0,_.generated.line=y,_.generated.column=v-1,this.map.addMapping(_)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(y=>y.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let y=this.mapOpts.annotation;return typeof y<"u"&&y!==!0?!1:this.previous().length?this.previous().some(v=>v.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(y=>y.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(y){if(this.mapOpts.absolute||y.charCodeAt(0)===60||/^\w+:\/\//.test(y))return y;let v=this.memoizedPaths.get(y);if(v)return v;let w=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(w=e(r(w,this.mapOpts.annotation)));let _=t(w,y);return this.memoizedPaths.set(y,_),_}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(y=>{if(y.source&&y.source.input.map){let v=y.source.input.map;this.previousMaps.includes(v)||this.previousMaps.push(v)}});else{let y=new h(this.originalCSS,this.opts);y.map&&this.previousMaps.push(y.map)}return this.previousMaps}setSourcesContent(){let y={};if(this.root)this.root.walk(v=>{if(v.source){let w=v.source.input.from;if(w&&!y[w]){y[w]=!0;let _=this.usesFileUrls?this.toFileUrl(w):this.toUrl(this.path(w));this.map.setSourceContent(_,v.source.input.css)}}});else if(this.css){let v=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(v,this.css)}}sourcePath(y){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(y.source.input.from):this.toUrl(this.path(y.source.input.from))}toBase64(y){return ge?ge.from(y).toString("base64"):window.btoa(unescape(encodeURIComponent(y)))}toFileUrl(y){let v=this.memoizedFileURLs.get(y);if(v)return v;if(a){let w=a(y).toString();return this.memoizedFileURLs.set(y,w),w}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(y){let v=this.memoizedURLs.get(y);if(v)return v;s==="\\"&&(y=y.replace(/\\/g,"/"));let w=encodeURI(y).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(y,w),w}}return gh=d,gh}var yh,bg;function IC(){if(bg)return yh;bg=1;let e=p1(),t=Gc(),r=zc(),s=ea(),i=m1(),o=Iw();const a={empty:!0,space:!0};function h(f){for(let d=f.length-1;d>=0;d--){let g=f[d],y=g[3]||g[2];if(y)return y}}class l{constructor(d){this.input=d,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:d,start:{column:1,line:1,offset:0}}}atrule(d){let g=new e;g.name=d[1].slice(1),g.name===""&&this.unnamedAtrule(g,d),this.init(g,d[2]);let y,v,w,_=!1,S=!1,k=[],E=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),y=d[0],y==="("||y==="["?E.push(y==="("?")":"]"):y==="{"&&E.length>0?E.push("}"):y===E[E.length-1]&&E.pop(),E.length===0)if(y===";"){g.source.end=this.getPosition(d[2]),g.source.end.offset++,this.semicolon=!0;break}else if(y==="{"){S=!0;break}else if(y==="}"){if(k.length>0){for(w=k.length-1,v=k[w];v&&v[0]==="space";)v=k[--w];v&&(g.source.end=this.getPosition(v[3]||v[2]),g.source.end.offset++)}this.end(d);break}else k.push(d);else k.push(d);if(this.tokenizer.endOfFile()){_=!0;break}}g.raws.between=this.spacesAndCommentsFromEnd(k),k.length?(g.raws.afterName=this.spacesAndCommentsFromStart(k),this.raw(g,"params",k),_&&(d=k[k.length-1],g.source.end=this.getPosition(d[3]||d[2]),g.
  91. You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(o.from)?l.message+=`
  92. You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(o.from)&&(l.message+=`
  93. You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),l}return h.root}return vh=s,s.default=s,e.registerParse(s),vh}var Sh,Tg;function $w(){if(Tg)return Sh;Tg=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Sh=e,e.default=e,Sh}var _h,xg;function y1(){if(xg)return _h;xg=1;let e=$w();class t{constructor(s,i,o){this.processor=s,this.messages=[],this.root=i,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let o=new e(s,i);return this.messages.push(o),o}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return _h=t,t.default=t,_h}var wh,kg;function jw(){if(kg)return wh;kg=1;let e={};return wh=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},wh}var bh,Pg;function Uw(){if(Pg)return bh;Pg=1;let e=Wn(),t=f1(),r=Bw(),s=g1(),i=y1(),o=ea(),a=Vc(),{isClean:h,my:l}=h1(),f=jw();const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},g={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},y={Once:!0,postcssPlugin:!0,prepare:!0},v=0;function w(O){return typeof O=="object"&&typeof O.then=="function"}function _(O){let A=!1,M=d[O.type];return O.type==="decl"?A=O.prop.toLowerCase():O.type==="atrule"&&(A=O.name.toLowerCase()),A&&O.append?[M,M+"-"+A,v,M+"Exit",M+"Exit-"+A]:A?[M,M+"-"+A,M+"Exit",M+"Exit-"+A]:O.append?[M,v,M+"Exit"]:[M,M+"Exit"]}function S(O){let A;return O.type==="document"?A=["Document",v,"DocumentExit"]:O.type==="root"?A=["Root",v,"RootExit"]:A=_(O),{eventIndex:0,events:A,iterator:0,node:O,visitorIndex:0,visitors:[]}}function k(O){return O[h]=!1,O.nodes&&O.nodes.forEach(A=>k(A)),O}let E={};class P{constructor(A,M,F){this.stringified=!1,this.processed=!1;let x;if(typeof M=="object"&&M!==null&&(M.type==="root"||M.type==="document"))x=k(M);else if(M instanceof P||M instanceof i)x=k(M.root),M.map&&(typeof F.map>"u"&&(F.map={}),F.map.inline||(F.map.inline=!1),F.map.prev=M.map);else{let I=s;F.syntax&&(I=F.syntax.parse),F.parser&&(I=F.parser),I.parse&&(I=I.parse);try{x=I(M,F)}catch(R){this.processed=!0,this.error=R}x&&!x[l]&&e.rebuild(x)}this.result=new i(A,x,F),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(A){return this.async().catch(A)}finally(A){return this.async().then(A,A)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(A,M){let F=this.result.lastPlugin;try{if(M&&M.addToError(A),this.error=A,A.name==="CssSyntaxError"&&!A.plugin)A.plugin=F.postcssPlugin,A.setMessage();else if(F.postcssVersion&&dr.env.NODE_ENV!=="production"){let x=F.postcssPlugin,I=F.postcssVersion,R=this.result.processor.version,L=I.split("."),z=R.split(".");(L[0]!==z[0]||parseInt(L[1])>parseInt(z[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+R+", but "+x+" uses "+I+". Perhaps this is the source of the error below.")}}catch(x){console&&console.error&&console.error(x)}return A}prepareVisitors(){this.listeners={};let A=(M,F,x)=>{this.listeners[F]||(this.listeners[F]=[]),this.listeners[F].push([M,x])};for(let M of this.plugins)if(typeof M=="object")for(let F in M){if(!g[F]&&/^[A-Z]/.test(F))
  94. https://evilmartians.com/chronicles/postcss-8-plugin-migration`),dr.env.LANG&&dr.env.LANG.startsWith("cn")&&console.warn(O+`: 里面 postcss.plugin 被弃用. 迁移指南:
  95. https://www.w3ctech.com/topic/2226`));let R=A(...I);return R.postcssPlugin=O,R.postcssVersion=new y().version,R}let x;return Object.defineProperty(F,"postcss",{get(){return x||(x=F()),x}}),F.process=function(I,R,L){return E([F(L)]).process(I,R)},F},E.stringify=S,E.parse=g,E.fromJSON=a,E.list=f,E.comment=P=>new t(P),E.atRule=P=>new e(P),E.decl=P=>new i(P),E.rule=P=>new _(P),E.root=P=>new w(P),E.document=P=>new o(P),E.CssSyntaxError=s,E.Declaration=i,E.Container=r,E.Processor=y,E.Document=o,E.Comment=t,E.Warning=k,E.AtRule=e,E.Result=v,E.Input=h,E.Rule=_,E.Root=w,E.Node=d,l.registerPostcss(E),xh=E,E.default=E,xh}var LC=OC(),vt=Ec(LC);vt.stringify;vt.fromJSON;vt.plugin;vt.parse;vt.list;vt.document;vt.comment;vt.atRule;vt.rule;vt.decl;vt.root;vt.CssSyntaxError;vt.Declaration;vt.Container;vt.Processor;vt.Document;vt.Comment;vt.Warning;vt.AtRule;vt.Result;vt.Input;const RC=vt.Rule;vt.Root;vt.Node;const qw=()=>({postcssPlugin:"vue-sfc-trim",Once(e){e.walk(({type:t,raws:r})=>{(t==="rule"||t==="atrule")&&(r.before&&(r.before=`
  96. `),"after"in r&&r.after&&(r.after=`
  97. `))})}});qw.postcss=!0;var Ia={exports:{}},Ca={exports:{}},Na={exports:{}},Oa={exports:{}},La={exports:{}},Ra={exports:{}},Mr={},Ma={exports:{}},Ng;function Vw(){return Ng||(Ng=1,function(e,t){t.__esModule=!0,t.default=i;function r(o){for(var a=o.toLowerCase(),h="",l=!1,f=0;f<6&&a[f]!==void 0;f++){var d=a.charCodeAt(f),g=d>=97&&d<=102||d>=48&&d<=57;if(l=d===32,!g)break;h+=a[f]}if(h.length!==0){var y=parseInt(h,16),v=y>=55296&&y<=57343;return v||y===0||y>1114111?["�",h.length+(l?1:0)]:[String.fromCodePoint(y),h.length+(l?1:0)]}}var s=/\\/;function i(o){var a=s.test(o);if(!a)return o;for(var h="",l=0;l<o.length;l++){if(o[l]==="\\"){var f=r(o.slice(l+1,l+7));if(f!==void 0){h+=f[0],l+=f[1];continue}if(o[l+1]==="\\"){h+="\\",l++;continue}o.length===l+1&&(h+=o[l]);continue}h+=o[l]}return h}e.exports=t.default}(Ma,Ma.exports)),Ma.exports}var Da={exports:{}},Og;function MC(){return Og||(Og=1,function(e,t){t.__esModule=!0,t.default=r;function r(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(;o.length>0;){var h=o.shift();if(!s[h])return;s=s[h]}return s}e.exports=t.default}(Da,Da.exports)),Da.exports}var Fa={exports:{}},Lg;function DC(){return Lg||(Lg=1,function(e,t){t.__esModule=!0,t.default=r;function r(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(;o.length>0;){var h=o.shift();s[h]||(s[h]={}),s=s[h]}}e.exports=t.default}(Fa,Fa.exports)),Fa.exports}var Ba={exports:{}},Rg;function FC(){return Rg||(Rg=1,function(e,t){t.__esModule=!0,t.default=r;function r(s){for(var i="",o=s.indexOf("/*"),a=0;o>=0;){i=i+s.slice(a,o);var h=s.indexOf("*/",o+2);if(h<0)return i;a=h+2,o=s.indexOf("/*",a)}return i=i+s.slice(a),i}e.exports=t.default}(Ba,Ba.exports)),Ba.exports}var Mg;function Xc(){if(Mg)return Mr;Mg=1,Mr.__esModule=!0,Mr.unesc=Mr.stripComments=Mr.getProp=Mr.ensureObject=void 0;var e=i(Vw());Mr.unesc=e.default;var t=i(MC());Mr.getProp=t.default;var r=i(DC());Mr.ensureObject=r.default;var s=i(FC());Mr.stripComments=s.default;function i(o){return o&&o.__esModule?o:{default:o}}return Mr}var Dg;function cn(){return Dg||(Dg=1,function(e,t){t.__esModule=!0,t.default=void 0;var r=Xc();function s(h,l){for(var f=0;f<l.length;f++){var d=l[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(h,d.key,d)}}function i(h,l,f){return l&&s(h.prototype,l),Object.defineProperty(h,"prototype",{writable:!1}),h}var o=function h(l,f){if(typeof l!="object"||l===null)return l;var d=new l.constructor;for(var g in l)if(l.hasOwnProperty(g)){var y=l[g],v=typeof y;g==="parent"&&v==="object"?f&&(d[g]=f):y instanceof Array?d[g]=y.map(function(w){return h(w,d)}):d[g]=h(y,d)}return d},a=function(){function h(f){f===void 0&&(f={}),Object.assign(this,f),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var l=h.prototype;return l.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},l.replaceWith=function(){if(this.parent){for(var d in arguments)this.parent.insertBefore(this,arguments[d]);this.remove()}return this},l.next=function(){return this.parent.at(this.parent.index(this)+1)},l.prev=function(){return this.parent.at(this.parent.index(this)-1)},l.clone=function(d){d===void 0&&(d={});var g=o(this);for(var y in d)g[y]=d[y];return g},l.appendToPropertyAndEscape=function(d,g,y){this.raws||(this.raws={});var v=this[d],w=this.raws[d];this[d]=v+g,w||y!==g?this.raws[d]=(w||v)+y:delete this.raws[d]},l.setPropertyAndEscape=function(d,g,y){this.raws||(this.raws={}),this[d]=g,this.raws[d]=y},l.setPropertyWithoutEscape=function(d,g){this[d]=g,this.raws&&delete this.raws[d]},l.isAtPosition=function(d,g){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>d||this.source.end.line<d||this.source.start.line===d&&this.source.start.column>g||this.source.end.line===d&&this.source.end.column<g)},l.stringifyProperty=function(d){return this.raws&&this.raws[d]||this[d]},l.valueToString=function(){return String(this.stringifyProperty("va
  98. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(_,S){if(_){if(typeof _=="string")return f(_,S);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(_);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return f(_,S)}}function f(_,S){(S==null||S>_.length)&&(S=_.length);for(var k=0,E=new Array(S);k<S;k++)E[k]=_[k];return E}function d(_,S){for(var k=0;k<S.length;k++){var E=S[k];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}function g(_,S,k){return S&&d(_.prototype,S),Object.defineProperty(_,"prototype",{writable:!1}),_}function y(_,S){_.prototype=Object.create(S.prototype),_.prototype.constructor=_,v(_,S)}function v(_,S){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,P){return E.__proto__=P,E},v(_,S)}var w=function(_){y(S,_);function S(E){var P;return P=_.call(this,E)||this,P.nodes||(P.nodes=[]),P}var k=S.prototype;return k.append=function(P){return P.parent=this,this.nodes.push(P),this},k.prepend=function(P){P.parent=this,this.nodes.unshift(P);for(var O in this.indexes)this.indexes[O]++;return this},k.at=function(P){return this.nodes[P]},k.index=function(P){return typeof P=="number"?P:this.nodes.indexOf(P)},k.removeChild=function(P){P=this.index(P),this.at(P).parent=void 0,this.nodes.splice(P,1);var O;for(var A in this.indexes)O=this.indexes[A],O>=P&&(this.indexes[A]=O-1);return this},k.removeAll=function(){for(var P=h(this.nodes),O;!(O=P()).done;){var A=O.value;A.parent=void 0}return this.nodes=[],this},k.empty=function(){return this.removeAll()},k.insertAfter=function(P,O){O.parent=this;var A=this.index(P);this.nodes.splice(A+1,0,O),O.parent=this;var M;for(var F in this.indexes)M=this.indexes[F],A<M&&(this.indexes[F]=M+1);return this},k.insertBefore=function(P,O){O.parent=this;var A=this.index(P);this.nodes.splice(A,0,O),O.parent=this;var M;for(var F in this.indexes)M=this.indexes[F],M>=A&&(this.indexes[F]=M+1);return this},k._findChildAtPosition=function(P,O){var A=void 0;return this.each(function(M){if(M.atPosition){var F=M.atPosition(P,O);if(F)return A=F,!1}else if(M.isAtPosition(P,O))return A=M,!1}),A},k.atPosition=function(P,O){if(this.isAtPosition(P,O))return this._findChildAtPosition(P,O)||this},k._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},k.each=function(P){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var O=this.lastEach;if(this.indexes[O]=0,!!this.length){for(var A,M;this.indexes[O]<this.length&&(A=this.indexes[O],M=P(this.at(A),A),M!==!1);)this.indexes[O]+=1;if(delete this.indexes[O],M===!1)return!1}},k.walk=function(P){return this.each(function(O,A){var M=P(O,A);if(M!==!1&&O.length&&(M=O.walk(P)),M===!1)return!1})},k.walkAttributes=function(P){var O=this;return this.walk(function(A){if(A.type===s.ATTRIBUTE)return P.call(O,A)})},k.walkClasses=function(P){var O=this;return this.walk(function(A){if(A.type===s.CLASS)return P.call(O,A)})},k.walkCombinators=function(P){var O=this;return this.walk(function(A){if(A.type===s.COMBINATOR)return P.call(O,A)})},k.walkComments=function(P){var O=this;return this.walk(function(A){if(A.type===s.COMMENT)return P.call(O,A)})},k.walkIds=function(P){var O=this;return this.walk(function(A){if(A.type===s.ID)return P.call(O,A)})},k.walkNesting=function(P){var O=this;return this.walk(function(A){if(A.type===s.NESTING)return P.call(O,A)})},k.walkPseudos=function(P){var O=this;return this.walk(function(A){if(A.type===s.PSEUDO)return P.call(O,A)})},k.walkTags=function(P){var O=this;return this.walk(function(A){if(A.type===s.TAG)return P.call(O,A)})},k.walkUniversals=function(P){var O=this;return this.walk(function(A){if(A.type===s.UNIVERSAL)return P.call(O,A)})},k.split=function(P){var O=this,A=[];return this.reduce(function(M,F,x){var I=P.call(O,F);ret
  99. `),re=V.length-1,re>0?(G=A+re,Q=ee-V[re].length):(G=A,Q=O),ce=t.comment,A=G,L=G,R=ee-Q):x===t.slash?(ee=M,ce=x,L=A,R=M-O,F=ee+1):(ee=g(k,M),ce=t.word,L=A,R=ee-O),F=ee+1;break}S.push([ce,A,M-O,L,R,M,F]),Q&&(O=Q,Q=null),M=F}return S}}(Ih)),Ih}var sy;function UC(){return sy||(sy=1,function(e,t){t.__esModule=!0,t.default=void 0;var r=F(Ww()),s=F(Gw()),i=F(zw()),o=F(Hw()),a=F(Xw()),h=F(Jw()),l=F(Kw()),f=F(Yw()),d=M(Qw()),g=F(Zw()),y=F(eb()),v=F(tb()),w=F($C()),_=M(jC()),S=M(rb()),k=M(tr()),E=Xc(),P,O;function A(ne){if(typeof WeakMap!="function")return null;var W=new WeakMap,K=new WeakMap;return(A=function(B){return B?K:W})(ne)}function M(ne,W){if(ne&&ne.__esModule)return ne;if(ne===null||typeof ne!="object"&&typeof ne!="function")return{default:ne};var K=A(W);if(K&&K.has(ne))return K.get(ne);var j={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in ne)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(ne,Z)){var U=B?Object.getOwnPropertyDescriptor(ne,Z):null;U&&(U.get||U.set)?Object.defineProperty(j,Z,U):j[Z]=ne[Z]}return j.default=ne,K&&K.set(ne,j),j}function F(ne){return ne&&ne.__esModule?ne:{default:ne}}function x(ne,W){for(var K=0;K<W.length;K++){var j=W[K];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(ne,j.key,j)}}function I(ne,W,K){return W&&x(ne.prototype,W),Object.defineProperty(ne,"prototype",{writable:!1}),ne}var R=(P={},P[S.space]=!0,P[S.cr]=!0,P[S.feed]=!0,P[S.newline]=!0,P[S.tab]=!0,P),L=Object.assign({},R,(O={},O[S.comment]=!0,O));function z(ne){return{line:ne[_.FIELDS.START_LINE],column:ne[_.FIELDS.START_COL]}}function J(ne){return{line:ne[_.FIELDS.END_LINE],column:ne[_.FIELDS.END_COL]}}function re(ne,W,K,j){return{start:{line:ne,column:W},end:{line:K,column:j}}}function V(ne){return re(ne[_.FIELDS.START_LINE],ne[_.FIELDS.START_COL],ne[_.FIELDS.END_LINE],ne[_.FIELDS.END_COL])}function ee(ne,W){if(ne)return re(ne[_.FIELDS.START_LINE],ne[_.FIELDS.START_COL],W[_.FIELDS.END_LINE],W[_.FIELDS.END_COL])}function G(ne,W){var K=ne[W];if(typeof K=="string")return K.indexOf("\\")!==-1&&((0,E.ensureObject)(ne,"raws"),ne[W]=(0,E.unesc)(K),ne.raws[W]===void 0&&(ne.raws[W]=K)),ne}function Q(ne,W){for(var K=-1,j=[];(K=ne.indexOf(W,K+1))!==-1;)j.push(K);return j}function ie(){var ne=Array.prototype.concat.apply([],arguments);return ne.filter(function(W,K){return K===ne.indexOf(W)})}var ce=function(){function ne(K,j){j===void 0&&(j={}),this.rule=K,this.options=Object.assign({lossy:!1,safe:!1},j),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,_.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var B=ee(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:B}),this.root.errorGenerator=this._errorGenerator();var Z=new s.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(Z),this.current=Z,this.loop()}var W=ne.prototype;return W._errorGenerator=function(){var j=this;return function(B,Z){return typeof j.rule=="string"?new Error(B):j.rule.error(B,Z)}},W.attribute=function(){var j=[],B=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[_.FIELDS.TYPE]!==S.closeSquare;)j.push(this.currToken),this.position++;if(this.currToken[_.FIELDS.TYPE]!==S.closeSquare)return this.expected("closing square bracket",this.currToken[_.FIELDS.START_POS]);var Z=j.length,U={source:re(B[1],B[2],this.currToken[3],this.currToken[4]),sourceIndex:B[_.FIELDS.START_POS]};if(Z===1&&!~[S.word].indexOf(j[0][_.FIELDS.TYPE]))return this.expected("attribute",j[0][_.FIELDS.START_POS]);for(var se=0,ae="",de="",pe=null,ve=!1;se<Z;){var xe=j[se],we=this.content(xe),De=j[se+1];switch(xe[_.FIELDS.TYPE]){case S.space:if(ve=!0,this.options.lossy)break;if(pe){(0,E.ensureObject)(U,"spaces",pe);var tt=U.spaces[pe].after||"";U.spaces[pe].after=tt+we;var qe=(0,E.getProp)(U,"raws","spaces",pe,"after")||null;qe&&(U.raws.spaces[pe].after=qe+we)}else ae=ae+we,de=de+we;break;case S.asterisk:if(De[_.FIELDS.TYPE]===S.equals)U.operator=we,pe="operator";else
  100. `),r=t.filter(o=>/^\t+/.test(o)),s=t.filter(o=>/^ {2,}/.test(o));if(r.length===0&&s.length===0)return null;if(r.length>=s.length)return" ";const i=s.reduce((o,a)=>{const h=/^ +/.exec(a)[0].length;return Math.min(h,o)},1/0);return new Array(i+1).join(" ")}function DN(e,t){const r=e.split(/[/\\]/),s=t.split(/[/\\]/);for(r.pop();r[0]===s[0];)r.shift(),s.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(s).join("/")}const FN=Object.prototype.toString;function BN(e){return FN.call(e)==="[object Object]"}function Ly(e){const t=e.split(`
  101. `),r=[];for(let s=0,i=0;s<t.length;s++)r.push(i),i+=t[s].length+1;return function(i){let o=0,a=r.length;for(;o<a;){const f=o+a>>1;i<r[f]?a=f:o=f+1}const h=o-1,l=i-r[h];return{line:h,column:l}}}const $N=/\w/;class jN{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,s,i){if(r.length){const o=r.length-1;let a=r.indexOf(`
  102. `,0),h=-1;for(;a>=0&&o>a;){const f=[this.generatedCodeColumn,t,s.line,s.column];i>=0&&f.push(i),this.rawSegments.push(f),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,h=a,a=r.indexOf(`
  103. `,a+1)}const l=[this.generatedCodeColumn,t,s.line,s.column];i>=0&&l.push(i),this.rawSegments.push(l),this.advance(r.slice(h+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(t,r,s,i,o){let a=r.start,h=!0,l=!1;for(;a<r.end;){if(this.hires||h||o.has(a)){const f=[this.generatedCodeColumn,t,i.line,i.column];this.hires==="boundary"?$N.test(s[a])?l||(this.rawSegments.push(f),l=!0):(this.rawSegments.push(f),l=!1):this.rawSegments.push(f)}s[a]===`
  104. `?(i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,h=!0):(i.column+=1,this.generatedCodeColumn+=1,h=!1),a+=1}this.pending=null}advance(t){if(!t)return;const r=t.split(`
  105. `);if(r.length>1){for(let s=0;s<r.length-1;s++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}}const no=`
  106. `,ri={insertLeft:!1,insertRight:!1,storeName:!1};class Gn{constructor(t,r={}){const s=new Bo(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:s},lastChunk:{writable:!0,value:s},lastSearchedChunk:{writable:!0,value:s},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Gl},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList}}),this.byStart[0]=s,this.byEnd[t.length]=s}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const s=this.byEnd[t];return s?s.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const s=this.byStart[t];return s?s.appendRight(r):this.outro+=r,this}clone(){const t=new Gn(this.original,{filename:this.filename});let r=this.firstChunk,s=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[s.start]=s,t.byEnd[s.end]=s;const i=r.next,o=i&&i.clone();o&&(s.next=o,o.previous=s,s=o),r=i}return t.lastChunk=s,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new Gl(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};const r=0,s=Object.keys(this.storedNames),i=new jN(t.hires),o=Ly(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(a=>{const h=o(a.start);a.intro.length&&i.advance(a.intro),a.edited?i.addEdit(r,a.content,h,a.storeName?s.indexOf(a.original):-1):i.addUneditedChunk(r,a,this.original,h,this.sourcemapLocations),a.outro.length&&i.advance(a.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?DN(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:s,mappings:i.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new RN(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=MN(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){const s=/^[^\r\n]/gm;if(BN(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};const i={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(d=>{for(let g=d[0];g<d[1];g+=1)i[g]=!0});let o=r.indentStart!==!1;const a=f=>o?`${t}${f}`:(o=!0,f);this.intro=this.intro.replace(s,a);let h=0,l=this.firstChunk;for(;l;){const f=l.end;if(l.edited)i[h]||(l.content=l.content.replace(s,a),l.content.length&&(o=l.content[l.content.length-1]===`
  107. `));else for(h=l.start;h<f;){if(!i[h]){const d=this.original[h];d===`
  108. `?o=!0:d!=="\r"&&o&&(o=!1,h===l.start||(this._splitChunk(l,h),l=l.next),l.prependRight(t))}h+=1}h=l.end,l=l.next}return this.outro=this.outro.replace(s,a),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return ri.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),ri.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return ri.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),ri.insertRight=!0),this.prependRight(t,r)}move(t,r,s){if(s>=t&&s<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(s);const i=this.byStart[t],o=this.byEnd[r],a=i.previous,h=o.next,l=this.byStart[s];if(!l&&o===this.lastChunk)return this;const f=l?l.previous:this.lastChunk;return a&&(a.next=h),h&&(h.previous=a),f&&(f.next=i),l&&(l.previous=o),i.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=f,o.next=l||null,f||(this.firstChunk=i),l||(this.lastChunk=o),this}overwrite(t,r,s,i){return i=i||{},this.update(t,r,s,{...i,overwrite:!i.contentOnly})}update(t,r,s,i){if(typeof s!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(r),i===!0&&(ri.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),ri.storeName=!0),i={storeName:!0});const o=i!==void 0?i.storeName:!1,a=i!==void 0?i.overwrite:!1;if(o){const f=this.original.slice(t,r);Object.defineProperty(this.storedNames,f,{writable:!0,value:!0,enumerable:!0})}const h=this.byStart[t],l=this.byEnd[r];if(h){let f=h;for(;f!==l;){if(f.next!==this.byStart[f.end])throw new Error("Cannot overwrite across a split point");f=f.next,f.edit("",!1)}h.edit(s,o,!a)}else{const f=new Bo(t,r,"").edit(s,o);l.next=f,f.previous=l}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const s=this.byEnd[t];return s?s.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const s=this.byStart[t];return s?s.prependRight(r):this.outro=r+this.outro,this}remove(t,r){if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let s=this.byStart[t];for(;s;)s.intro="",s.outro="",s.edit(""),s=r>s.end?this.byStart[s.end]:null;return this}reset(t,r){if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let s=this.byStart[t];for(;s;)s.reset(),s=r>s.end?this.byStart[s.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(no);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,s=this.lastChunk;do{if(s.outro.length>0){if(t=s.outro.lastIndexOf(no),t!==-1)return
  109. ${t.filename}
  110. ${Ti(t.source,v.pos+y,v.pos+y+1)}`,v}}this.scriptAst=t.script&&d(t.script.content,t.script.loc.start.offset),this.scriptSetupAst=t.scriptSetup&&d(t.scriptSetup.content,this.startOffset)}helper(t){return this.helperImports.add(t),`_${t}`}getString(t,r=!0){return(r?this.descriptor.scriptSetup:this.descriptor.script).content.slice(t.start,t.end)}warn(t,r,s){Ul(Dy(t,r,this,s))}error(t,r,s){throw new Error(`[@vue/compiler-sfc] ${Dy(t,r,this,s)}`)}}function Dy(e,t,r,s){const i=s?s.offset:r.startOffset;return`${e}
  111. ${(s||r.descriptor).filename}
  112. ${Ti((s||r.descriptor).source,t.start+i,t.end+i)}`}function zl(e,t,r=!1){const s=[];return(!t||!t.some(i=>i==="importAssertions"||i==="importAttributes"||jt(i)&&i[0]==="importAttributes"))&&s.push("importAttributes"),e==="jsx"||e==="tsx"||e==="mtsx"?s.push("jsx"):t&&(t=t.filter(i=>i!=="jsx")),(e==="ts"||e==="mts"||e==="tsx"||e==="mtsx")&&(s.push(["typescript",{dts:r}],"explicitResourceManagement"),(!t||!t.includes("decorators"))&&s.push("decorators-legacy")),t&&s.push(...t),s}function qN(e,t,r){const s=$r.parse(e,{sourceType:"module",plugins:zl("js",r)}).program.body,i=new Gn(e);return x1(s,i,t),i.toString()}function x1(e,t,r){if(!VN(e)){t.append(`
  113. const ${r} = {}`);return}e.forEach(s=>{if(s.type==="ExportDefaultDeclaration")if(s.declaration.type==="ClassDeclaration"&&s.declaration.id){let i=s.declaration.decorators&&s.declaration.decorators.length>0?s.declaration.decorators[s.declaration.decorators.length-1].end:s.start;t.overwrite(i,s.declaration.id.start," class "),t.append(`
  114. const ${r} = ${s.declaration.id.name}`)}else t.overwrite(s.start,s.declaration.start,`const ${r} = `);else if(s.type==="ExportNamedDeclaration"){for(const i of s.specifiers)if(i.type==="ExportSpecifier"&&i.exported.type==="Identifier"&&i.exported.name==="default"){if(s.source)if(i.local.name==="default"){t.prepend(`import { default as __VUE_DEFAULT__ } from '${s.source.value}'
  115. `);const a=$h(t,i.local.end,s.end);t.remove(i.start,a),t.append(`
  116. const ${r} = __VUE_DEFAULT__`);continue}else{t.prepend(`import { ${t.slice(i.local.start,i.local.end)} as __VUE_DEFAULT__ } from '${s.source.value}'
  117. `);const a=$h(t,i.exported.end,s.end);t.remove(i.start,a),t.append(`
  118. const ${r} = __VUE_DEFAULT__`);continue}const o=$h(t,i.end,s.end);t.remove(i.start,o),t.append(`
  119. const ${r} = ${i.local.name}`)}}})}function VN(e){for(const t of e){if(t.type==="ExportDefaultDeclaration")return!0;if(t.type==="ExportNamedDeclaration"&&t.specifiers.some(r=>r.exported.name==="default"))return!0}return!1}function $h(e,t,r){let s=!1,i=t;for(;t<r;)if(/\s/.test(e.slice(t,t+1)))t++;else if(e.slice(t,t+1)===","){t++,s=!0;break}else if(e.slice(t,t+1)==="}")break;return s?t:i}var WN=Object.defineProperty,GN=Object.defineProperties,zN=Object.getOwnPropertyDescriptors,Fy=Object.getOwnPropertySymbols,HN=Object.prototype.hasOwnProperty,XN=Object.prototype.propertyIsEnumerable,By=(e,t,r)=>t in e?WN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JN=(e,t)=>{for(var r in t||(t={}))HN.call(t,r)&&By(e,r,t[r]);if(Fy)for(var r of Fy(t))XN.call(t,r)&&By(e,r,t[r]);return e},KN=(e,t)=>GN(e,zN(t));const oi="__default__";function YN(e,t){var r;const s=e.descriptor.script;if(s.lang&&!e.isJS&&!e.isTS)return s;try{let i=s.content,o=s.map;const a=e.scriptAst,h=pb(a.body),{cssVars:l}=e.descriptor,{genDefaultAs:f,isProd:d}=e.options;if(l.length||f){const g=f||oi,y=new Gn(i);x1(a.body,y,g),i=y.toString(),l.length&&!((r=e.options.templateOptions)!=null&&r.ssr)&&(i+=Hk(l,h,t,!!d,g)),f||(i+=`
  120. export default ${g}`)}return KN(JN({},s),{content:i,map:o,bindings:h,scriptAst:a.body})}catch{return s}}var QN=Object.defineProperty,ZN=Object.defineProperties,eO=Object.getOwnPropertyDescriptors,$y=Object.getOwnPropertySymbols,tO=Object.prototype.hasOwnProperty,rO=Object.prototype.propertyIsEnumerable,jy=(e,t,r)=>t in e?QN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hl=(e,t)=>{for(var r in t||(t={}))tO.call(t,r)&&jy(e,r,t[r]);if($y)for(var r of $y(t))rO.call(t,r)&&jy(e,r,t[r]);return e},Xl=(e,t)=>ZN(e,eO(t));class k1{constructor(t,r,s=0,i=Object.create(null),o=Object.create(null),a=Object.create(null)){this.filename=t,this.source=r,this.offset=s,this.imports=i,this.types=o,this.declares=a,this.isGenericScope=!1,this.resolvedImportSources=Object.create(null),this.exportedTypes=Object.create(null),this.exportedDeclares=Object.create(null)}}function zt(e,t,r,s){const i=!s;if(i&&t._resolvedElements)return t._resolvedElements;const o=sO(e,t,t._ownerScope||r||Yc(e),s);return i?t._resolvedElements=o:o}function sO(e,t,r,s){var i,o;if(t.leadingComments&&t.leadingComments.some(a=>a.value.includes("@vue-ignore")))return{props:{}};switch(t.type){case"TSTypeLiteral":return db(e,t.members,r,s);case"TSInterfaceDeclaration":return nO(e,t,r,s);case"TSTypeAliasDeclaration":case"TSTypeAnnotation":case"TSParenthesizedType":return zt(e,t.typeAnnotation,r,s);case"TSFunctionType":return{props:{},calls:[t]};case"TSUnionType":case"TSIntersectionType":return Uy(t.types.map(a=>zt(e,a,r,s)),t.type);case"TSMappedType":return iO(e,t,r,s);case"TSIndexedAccessType":{const a=mb(e,t,r);return Uy(a.map(h=>zt(e,h,h._ownerScope)),"TSUnionType")}case"TSExpressionWithTypeArguments":case"TSTypeReference":{const a=A1(t);if((a==="ExtractPropTypes"||a==="ExtractPublicPropTypes")&&t.typeParameters&&((i=r.imports[a])==null?void 0:i.source)==="vue")return Gy(zt(e,t.typeParameters.params[0],r,s),r);const h=us(e,t,r);if(h){let l;return(h.type==="TSTypeAliasDeclaration"||h.type==="TSInterfaceDeclaration")&&h.typeParameters&&t.typeParameters&&(l=Object.create(null),h.typeParameters.params.forEach((f,d)=>{let g=s&&s[f.name];g||(g=t.typeParameters.params[d]),l[f.name]=g})),zt(e,h,h._ownerScope,l)}else{if(typeof a=="string"){if(s&&s[a])return zt(e,s[a],r,s);if(oO.has(a))return aO(e,t,a,r,s);if(a==="ReturnType"&&t.typeParameters){const l=SO(e,t.typeParameters.params[0],r);if(l)return zt(e,l,r)}}return e.error("Unresolvable type reference or unsupported built-in utility type",t,r)}}case"TSImportType":{if(Fn(t.argument)==="vue"&&((o=t.qualifier)==null?void 0:o.type)==="Identifier"&&t.qualifier.name==="ExtractPropTypes"&&t.typeParameters)return Gy(zt(e,t.typeParameters.params[0],r),r);const a=Kc(e,t.argument,r,t.argument.value),h=us(e,t,a);if(h)return zt(e,h,h._ownerScope);break}case"TSTypeQuery":{const a=us(e,t,r);if(a)return zt(e,a,a._ownerScope)}break}return e.error(`Unresolvable type: ${t.type}`,t,r)}function db(e,t,r=Yc(e),s){const i={props:{}};for(const o of t)if(o.type==="TSPropertySignature"||o.type==="TSMethodSignature"){s&&(r=C1(r),r.isGenericScope=!0,Object.assign(r.types,s)),o._ownerScope=r;const a=Fn(o.key);if(a&&!o.computed)i.props[a]=o;else if(o.key.type==="TemplateLiteral")for(const h of P1(e,o.key,r))i.props[h]=o;else e.error("Unsupported computed key in type referenced by a macro",o.key,r)}else o.type==="TSCallSignatureDeclaration"&&(i.calls||(i.calls=[])).push(o);return i}function Uy(e,t){if(e.length===1)return e[0];const r={props:{}},{props:s}=r;for(const{props:i,calls:o}of e){for(const a in i)Zp(s,a)?s[a]=bo(s[a].key,{type:t,types:[s[a],i[a]]},s[a]._ownerScope,s[a].optional||i[a].optional):s[a]=i[a];o&&(r.calls||(r.calls=[])).push(...o)}return r}function bo(e,t,r,s){return{type:"TSPropertySignature",key:e,kind:"get",optional:s,typeAnnotation:{type:"TSTypeAnnotation",typeAnnotation:t},_ownerScope:r}}function nO(e,t,r,s){const i=db(e,t.body.body,t._ownerScope,s);if(t.extends)for(const o of t.extends)try{const{props:a,calls:h}=zt(e,o,r);for(const l in a)Zp(i.props,l)||(i.props[l]=a[l]);h&&(i.calls||(i.calls=[])).push(...h)}catch{e.error(
  121. If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:
  122. interface Props extends /* @vue-ignore */ Base {}
  123. Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.`,o,r)}return i}function iO(e,t,r,s){const i={props:{}};let o;if(t.nameType){const{name:a,constraint:h}=t.typeParameter;r=C1(r),Object.assign(r.types,Xl(Hl({},s),{[a]:h})),o=ns(e,t.nameType,r)}else o=ns(e,t.typeParameter.constraint,r);for(const a of o)i.props[a]=bo({type:"Identifier",name:a},t.typeAnnotation,r,!!t.optional);return i}function mb(e,t,r){var s,i;if(t.indexType.type==="TSNumberKeyword")return gb(e,t.objectType,r);const{indexType:o,objectType:a}=t,h=[];let l,f;o.type==="TSStringKeyword"?(f=zt(e,a,r),l=Object.keys(f.props)):(l=ns(e,o,r),f=zt(e,a,r));for(const d of l){const g=(i=(s=f.props[d])==null?void 0:s.typeAnnotation)==null?void 0:i.typeAnnotation;g&&(g._ownerScope=f.props[d]._ownerScope,h.push(g))}return h}function gb(e,t,r){if(t.type==="TSArrayType")return[t.elementType];if(t.type==="TSTupleType")return t.elementTypes.map(s=>s.type==="TSNamedTupleMember"?s.elementType:s);if(t.type==="TSTypeReference"){if(A1(t)==="Array"&&t.typeParameters)return t.typeParameters.params;{const s=us(e,t,r);if(s)return gb(e,s,r)}}return e.error("Failed to resolve element type from target type",t,r)}function ns(e,t,r){switch(t.type){case"StringLiteral":return[t.value];case"TSLiteralType":return ns(e,t.literal,r);case"TSUnionType":return t.types.map(s=>ns(e,s,r)).flat();case"TemplateLiteral":return P1(e,t,r);case"TSTypeReference":{const s=us(e,t,r);if(s)return ns(e,s,r);if(t.typeName.type==="Identifier"){const i=(o=0)=>ns(e,t.typeParameters.params[o],r);switch(t.typeName.name){case"Extract":return i(1);case"Exclude":{const o=i(1);return i().filter(a=>!o.includes(a))}case"Uppercase":return i().map(o=>o.toUpperCase());case"Lowercase":return i().map(o=>o.toLowerCase());case"Capitalize":return i().map(tn);case"Uncapitalize":return i().map(o=>o[0].toLowerCase()+o.slice(1));default:e.error("Unsupported type when resolving index type",t.typeName,r)}}}}return e.error("Failed to resolve index type into finite keys",t,r)}function P1(e,t,r){if(!t.expressions.length)return[t.quasis[0].value.raw];const s=[],i=t.expressions[0],o=t.quasis[0],a=o?o.value.raw:"",h=ns(e,i,r),l=P1(e,Xl(Hl({},t),{expressions:t.expressions.slice(1),quasis:o?t.quasis.slice(1):t.quasis}),r);for(const f of h)for(const d of l)s.push(a+f+d);return s}const oO=new Set(["Partial","Required","Readonly","Pick","Omit"]);function aO(e,t,r,s,i){const o=zt(e,t.typeParameters.params[0],s,i);switch(r){case"Partial":{const l={props:{},calls:o.calls};return Object.keys(o.props).forEach(f=>{l.props[f]=Xl(Hl({},o.props[f]),{optional:!0})}),l}case"Required":{const l={props:{},calls:o.calls};return Object.keys(o.props).forEach(f=>{l.props[f]=Xl(Hl({},o.props[f]),{optional:!1})}),l}case"Readonly":return o;case"Pick":{const l=ns(e,t.typeParameters.params[1],s),f={props:{},calls:o.calls};for(const d of l)f.props[d]=o.props[d];return f}case"Omit":const a=ns(e,t.typeParameters.params[1],s),h={props:{},calls:o.calls};for(const l in o.props)a.includes(l)||(h.props[l]=o.props[l]);return h}}function us(e,t,r,s,i=!1){const o=!(r!=null&&r.isGenericScope);if(o&&t._resolvedReference)return t._resolvedReference;const a=Cp(e,r||Yc(e),s||A1(t),t,i);return o?t._resolvedReference=a:a}function Cp(e,t,r,s,i){if(typeof r=="string"){if(t.imports[r])return uO(e,s,r,t);{const o=s.type==="TSTypeQuery"?i?t.exportedDeclares:t.declares:i?t.exportedTypes:t.types;if(o[r])return o[r];{const a=lO(e);if(a)for(const h of a){const l=s.type==="TSTypeQuery"?h.declares:h.types;if(l[r])return(e.deps||(e.deps=new Set)).add(h.filename),l[r]}}}}else{let o=Cp(e,t,r[0],s,i);if(o&&(o.type!=="TSModuleDeclaration"&&(o=o._ns),o)){const a=dO(e,o,o._ownerScope||t);return Cp(e,a,r.length>2?r.slice(1):r[r.length-1],s,!o.declare)}}}function A1(e){const t=e.type==="TSTypeReference"?e.typeName:e.type==="TSExpressionWithTypeArguments"?e.expression:e.type==="TSImportType"?e.qualifier:e.exprName;return(t==null?void 0:t.type)==="Identifier"?t.name:(t==null?void 0:t.type)==="TSQualifiedName"?yb(t):"default"}function yb(e){return e
  124. ${JSON.stringify(s)}: ${f},`;const d=JSON.stringify(s==="modelValue"?"modelModifiers":`${s}Modifiers`);r+=`
  125. ${d}: {},`}return`{${r}
  126. }`}const Jt="defineProps",wn="withDefaults";function Rp(e,t,r,s=!1){if(!ir(t,Jt))return wO(e,t,r);if(e.hasDefinePropsCall&&e.error(`duplicate ${Jt}() call`,t),e.hasDefinePropsCall=!0,e.propsRuntimeDecl=t.arguments[0],e.propsRuntimeDecl)for(const i of Ip(e.propsRuntimeDecl))i in e.bindingMetadata||(e.bindingMetadata[i]="props");return t.typeParameters&&(e.propsRuntimeDecl&&e.error(`${Jt}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,t),e.propsTypeDecl=t.typeParameters.params[0]),!s&&r&&r.type==="ObjectPattern"&&PO(e,r),e.propsCall=t,e.propsDecl=r,!0}function wO(e,t,r){return ir(t,wn)?(Rp(e,t.arguments[0],r,!0)||e.error(`${wn}' first argument must be a ${Jt} call.`,t.arguments[0]||t),e.propsRuntimeDecl&&e.error(`${wn} can only be used with type-based ${Jt} declaration.`,t),r&&r.type==="ObjectPattern"&&e.warn(`${wn}() is unnecessary when using destructure with ${Jt}().
  127. Reactive destructure will be disabled when using withDefaults().
  128. Prefer using destructure default values, e.g. const { foo = 1 } = defineProps(...). `,t.callee),e.propsRuntimeDefaults=t.arguments[1],e.propsRuntimeDefaults||e.error(`The 2nd argument of ${wn} is required.`,t),e.propsCall=t,!0):!1}function bO(e){let t;if(e.propsRuntimeDecl){if(t=e.getString(e.propsRuntimeDecl).trim(),e.propsDestructureDecl){const s=[];for(const i in e.propsDestructuredBindings){const o=bb(e,i),a=hb(i);o&&s.push(`${a}: ${o.valueString}${o.needSkipFactory?`, __skip_${a}: true`:""}`)}s.length&&(t=`/*@__PURE__*/${e.helper("mergeDefaults")}(${t}, {
  129. ${s.join(`,
  130. `)}
  131. })`)}}else e.propsTypeDecl&&(t=wb(e));const r=_O(e);return t&&r?`/*@__PURE__*/${e.helper("mergeModels")}(${t}, ${r})`:r||t}function wb(e){const t=EO(e,e.propsTypeDecl);if(!t.length)return;const r=[],s=xO(e);for(const o of t)r.push(TO(e,o,s)),"bindingMetadata"in e&&!(o.key in e.bindingMetadata)&&(e.bindingMetadata[o.key]="props");let i=`{
  132. ${r.join(`,
  133. `)}
  134. }`;return e.propsRuntimeDefaults&&!s&&(i=`/*@__PURE__*/${e.helper("mergeDefaults")}(${i}, ${e.getString(e.propsRuntimeDefaults)})`),i}function EO(e,t){const r=[],s=zt(e,t);for(const i in s.props){const o=s.props[i];let a=Gt(e,o),h=!1;a.includes(Jr)&&(a.includes("Boolean")||a.includes("Function")?(a=a.filter(l=>l!==Jr),h=!0):a=["null"]),r.push({key:i,required:!o.optional,type:a||["null"],skipCheck:h})}return r}function TO(e,{key:t,required:r,type:s,skipCheck:i},o){let a;const h=bb(e,t,s);if(h)a=`default: ${h.valueString}${h.needSkipFactory?", skipFactory: true":""}`;else if(o){const f=e.propsRuntimeDefaults.properties.find(d=>d.type==="SpreadElement"?!1:E1(d.key,d.computed)===t);f&&(f.type==="ObjectProperty"?a=`default: ${e.getString(f.value)}`:a=`${f.async?"async ":""}${f.kind!=="method"?`${f.kind} `:""}default() ${e.getString(f.body)}`)}const l=hb(t);return e.options.isProd?s.some(f=>f==="Boolean"||(!o||a)&&f==="Function")?`${l}: { ${Iy([`type: ${li(s)}`,a])} }`:e.isCE?a?`${l}: ${`{ ${a}, type: ${li(s)} }`}`:`${l}: {type: ${li(s)}}`:`${l}: ${a?`{ ${a} }`:"{}"}`:`${l}: { ${Iy([`type: ${li(s)}`,`required: ${r}`,i&&"skipCheck: true",a])} }`}function xO(e){return!!(e.propsRuntimeDefaults&&e.propsRuntimeDefaults.type==="ObjectExpression"&&e.propsRuntimeDefaults.properties.every(t=>t.type!=="SpreadElement"&&(!t.computed||t.key.type.endsWith("Literal"))))}function bb(e,t,r){const s=e.propsDestructuredBindings[t],i=s&&s.default;if(i){const o=e.getString(i),a=kr(i);if(r&&r.length&&!r.includes("null")){const f=kO(a);f&&!r.includes(f)&&e.error(`Default value of prop "${t}" does not match declared type.`,a)}const h=!r&&(Xs(a)||a.type==="Identifier");return{valueString:!h&&!ub(a)&&!(r!=null&&r.includes("Function"))?`() => (${o})`:o,needSkipFactory:h}}}function kO(e){switch(e.type){case"StringLiteral":return"String";case"NumericLiteral":return"Number";case"BooleanLiteral":return"Boolean";case"ObjectExpression":return"Object";case"ArrayExpression":return"Array";case"FunctionExpression":case"ArrowFunctionExpression":return"Function"}}function PO(e,t){if(e.options.propsDestructure==="error")e.error("Props destructure is explicitly prohibited via config.",t);else if(e.options.propsDestructure===!1)return;e.propsDestructureDecl=t;const r=(s,i,o)=>{e.propsDestructuredBindings[s]={local:i,default:o},i!==s&&(e.bindingMetadata[i]="props-aliased",(e.bindingMetadata.__propsAliases||(e.bindingMetadata.__propsAliases={}))[i]=s)};for(const s of t.properties)if(s.type==="ObjectProperty"){const i=E1(s.key,s.computed);if(i||e.error(`${Jt}() destructure cannot use computed key.`,s.key),s.value.type==="AssignmentPattern"){const{left:o,right:a}=s.value;o.type!=="Identifier"&&e.error(`${Jt}() destructure does not support nested patterns.`,o),r(i,o.name,a)}else s.value.type==="Identifier"?r(i,s.value.name):e.error(`${Jt}() destructure does not support nested patterns.`,s.value)}else e.propsDestructureRestId=s.argument.name,e.bindingMetadata[e.propsDestructureRestId]="setup-reactive-const"}function AO(e,t){if(e.options.propsDestructure===!1)return;const r=Object.create(null),s=[r];let i=r;const o=new WeakSet,a=[],h=Object.create(null);for(const S in e.propsDestructuredBindings){const{local:k}=e.propsDestructuredBindings[S];r[k]=!0,h[k]=S}function l(){s.push(i=Object.create(i))}function f(){s.pop(),i=s[s.length-1]||null}function d(S){o.add(S),i?i[S.name]=!1:e.error("registerBinding called without active scope, something is wrong.",S)}function g(S,k=!1){for(const E of S.body)if(E.type==="VariableDeclaration")y(E,k);else if(E.type==="FunctionDeclaration"||E.type==="ClassDeclaration"){if(E.declare||!E.id)continue;d(E.id)}else(E.type==="ForOfStatement"||E.type==="ForInStatement")&&E.left.type==="VariableDeclaration"?y(E.left):E.type==="ExportNamedDeclaration"&&E.declaration&&E.declaration.type==="VariableDeclaration"?y(E.declaration,k):E.type==="LabeledStatement"&&E.body.type==="VariableDeclaration"&&y(E.body,k)}function y(S,k=!1){if(!S.declare)for(const E of S.declarations){const P=k&&E.init&&ir(kr(E.init),"defineProps");for(const O of wr(E.id))P?o.add(O):d
  135. ([__temp,__restore] = ${e.helper("withAsyncContext")}(${h?"async ":""}() => `),e.s.appendLeft(t.end+o,`)),
  136. ${s?"":"__temp = "}await __temp,
  137. __restore()${s?"":`,
  138. __temp`}
  139. )`)}var OO=Object.defineProperty,LO=Object.defineProperties,RO=Object.getOwnPropertyDescriptors,Qy=Object.getOwnPropertySymbols,MO=Object.prototype.hasOwnProperty,DO=Object.prototype.propertyIsEnumerable,Zy=(e,t,r)=>t in e?OO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,io=(e,t)=>{for(var r in t||(t={}))MO.call(t,r)&&Zy(e,r,t[r]);if(Qy)for(var r of Qy(t))DO.call(t,r)&&Zy(e,r,t[r]);return e},Uh=(e,t)=>LO(e,RO(t));const FO=[Jt,On,Jl,Xr,hi,Qc,wn];function BO(e,t){var r,s,i;t.id||_o("compileScript now requires passing the `id` option.\nUpgrade your vite or vue-loader version for compatibility with the latest experimental proposals.");const o=new UN(e,t),{script:a,scriptSetup:h,source:l,filename:f}=e,d=t.hoistStatic!==!1&&!a,g=t.id?t.id.replace(/^data-v-/,""):"",y=a&&a.lang,v=h&&h.lang;if(!h){if(!a)throw new Error("[@vue/compiler-sfc] SFC contains no <script> tags.");return YN(o,g)}if(a&&y!==v)throw new Error("[@vue/compiler-sfc] <script> and <script setup> must have the same language type.");if(v&&!o.isJS&&!o.isTS)return h;const w=Object.create(null),_=Object.create(null);let S,k=!1,E=!1;const P=o.startOffset,O=o.endOffset,A=a&&a.loc.start.offset,M=a&&a.loc.end.offset;function F(W){const K=W.start+P;let j=W.end+P;for(W.trailingComments&&W.trailingComments.length>0&&(j=W.trailingComments[W.trailingComments.length-1].end+P);j<=l.length&&/\s/.test(l.charAt(j));)j++;o.s.move(K,j,0)}function x(W,K,j,B,Z,U){let se=U;U&&o.isTS&&e.template&&!e.template.src&&!e.template.lang&&(se=f_(K,e)),o.userImports[K]={isType:B,imported:j,local:K,source:W,isFromSetup:Z,isUsedInTemplate:se}}function I(W,K){W&&Ai(W,j=>{const B=_[j.name];B&&B!=="literal-const"&&o.error(`\`${K}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`,j)})}const R=o.scriptAst,L=o.scriptSetupAst;if(R){for(const W of R.body)if(W.type==="ImportDeclaration")for(const K of W.specifiers){const j=Pp(K);x(W.source.value,K.local.name,j,W.importKind==="type"||K.type==="ImportSpecifier"&&K.importKind==="type",!1,!t.inlineTemplate)}}for(const W of L.body)if(W.type==="ImportDeclaration"){F(W);let K=0;const j=B=>{const Z=B>K;K++;const U=W.specifiers[B],se=W.specifiers[B+1];o.s.remove(Z?W.specifiers[B-1].end+P:U.start+P,se&&!Z?se.start+P:U.end+P)};for(let B=0;B<W.specifiers.length;B++){const Z=W.specifiers[B],U=Z.local.name,se=Pp(Z),ae=W.source.value,de=o.userImports[U];ae==="vue"&&FO.includes(se)?(U===se?_o(`\`${se}\` is a compiler macro and no longer needs to be imported.`):o.error(`\`${se}\` is a compiler macro and cannot be aliased to a different name.`,Z),j(B)):de?de.source===ae&&de.imported===se?j(B):o.error("different imports aliased to same local name.",Z):x(ae,U,se,W.importKind==="type"||Z.type==="ImportSpecifier"&&Z.importKind==="type",!0,!t.inlineTemplate)}W.specifiers.length&&K===W.specifiers.length&&o.s.remove(W.start+P,W.end+P)}const z={};for(const W in o.userImports){const{source:K,imported:j,local:B}=o.userImports[W];K==="vue"&&(z[j]=B)}if(a&&R){for(const W of R.body)if(W.type==="ExportDefaultDeclaration"){S=W;let K;if(S.declaration.type==="ObjectExpression"?K=S.declaration.properties:S.declaration.type==="CallExpression"&&S.declaration.arguments[0]&&S.declaration.arguments[0].type==="ObjectExpression"&&(K=S.declaration.arguments[0].properties),K)for(const Z of K)Z.type==="ObjectProperty"&&Z.key.type==="Identifier"&&Z.key.name==="name"&&(o.hasDefaultExportName=!0),(Z.type==="ObjectMethod"||Z.type==="ObjectProperty")&&Z.key.type==="Identifier"&&Z.key.name==="render"&&(o.hasDefaultExportRender=!0);const j=W.start+A,B=W.declaration.start+A;o.s.overwrite(j,B,`const ${oi} = `)}else if(W.type==="ExportNamedDeclaration"){const K=W.specifiers.find(j=>j.exported.type==="Identifier"&&j.exported.name==="default");K&&(S=W,W.specifiers.length>1?o.s.remove(K.start+A,K.end+A):o.s.remove(W.start+A,W.end+A),W.source?o.s.prepend(`import { ${K.local.name} as ${oi} } f
  140. `):o.s.appendLeft(M,`
  141. const ${oi} = ${K.local.name}
  142. `)),W.declaration&&qh("script",W.declaration,w,z,d)}else(W.type==="VariableDeclaration"||W.type==="FunctionDeclaration"||W.type==="ClassDeclaration"||W.type==="TSEnumDeclaration")&&!W.declare&&qh("script",W,w,z,d);A>P&&(/\n$/.test(a.content.trim())||o.s.appendLeft(M,`
  143. `),o.s.move(A,M,0))}for(const W of L.body){if(W.type==="ExpressionStatement"){const j=kr(W.expression);if(Rp(o,j)||Xy(o,j)||Yy(o,j)||Ky(o,j))o.s.remove(W.start+P,W.end+P);else if(CO(o,j)){const B=j.callee;o.s.overwrite(B.start+P,B.end+P,"__expose")}else Hy(o,j)}if(W.type==="VariableDeclaration"&&!W.declare){const j=W.declarations.length;let B=j,Z;for(let U=0;U<j;U++){const se=W.declarations[U],ae=se.init&&kr(se.init);if(ae){Yy(o,ae)&&o.error(`${Xr}() has no returning value, it cannot be assigned.`,W);const de=Rp(o,ae,se.id);o.propsDestructureRestId&&(_[o.propsDestructureRestId]="setup-reactive-const");const pe=!de&&Xy(o,ae,se.id);if(!pe&&(Ky(o,ae,se.id)||Hy(o,ae,se.id)),de&&!o.propsDestructureRestId&&o.propsDestructureDecl)if(B===1)o.s.remove(W.start+P,W.end+P);else{let ve=se.start+P,xe=se.end+P;U===j-1?ve=W.declarations[Z].end+P:xe=W.declarations[U+1].start+P,o.s.remove(ve,xe),B--}else pe?o.s.overwrite(P+ae.start,P+ae.end,"__emit"):Z=U}}}let K=!1;if((W.type==="VariableDeclaration"||W.type==="FunctionDeclaration"||W.type==="ClassDeclaration"||W.type==="TSEnumDeclaration")&&!W.declare&&(K=qh("scriptSetup",W,_,z,d,!!o.propsDestructureDecl)),d&&K&&F(W),W.type==="VariableDeclaration"&&!W.declare||W.type.endsWith("Statement")){const j=[L.body];xc(W,{enter(B,Z){if(Xs(B)&&this.skip(),B.type==="BlockStatement"&&j.push(B.body),B.type==="AwaitExpression"){k=!0;const se=j[j.length-1].some((ae,de)=>(j.length===1||de>0)&&ae.type==="ExpressionStatement"&&ae.start===B.start);NO(o,B,se,Z.type==="ExpressionStatement")}},exit(B){B.type==="BlockStatement"&&j.pop()}})}(W.type==="ExportNamedDeclaration"&&W.exportKind!=="type"||W.type==="ExportAllDeclaration"||W.type==="ExportDefaultDeclaration")&&o.error("<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.",W),o.isTS&&(W.type.startsWith("TS")||W.type==="ExportNamedDeclaration"&&W.exportKind==="type"||W.type==="VariableDeclaration"&&W.declare)&&W.type!=="TSEnumDeclaration"&&F(W)}o.propsDestructureDecl&&AO(o,z),I(o.propsRuntimeDecl,Jt),I(o.propsRuntimeDefaults,Jt),I(o.propsDestructureDecl,Jt),I(o.emitsRuntimeDecl,On),I(o.optionsRuntimeDecl,Xr);for(const{runtimeOptionNodes:W}of Object.values(o.modelDecls))for(const K of W)I(K,Qc);a?P<A?(o.s.remove(0,P),o.s.remove(O,A),o.s.remove(M,l.length)):(o.s.remove(0,A),o.s.remove(M,P),o.s.remove(O,l.length)):(o.s.remove(0,P),o.s.remove(O,l.length)),R&&Object.assign(o.bindingMetadata,pb(R.body));for(const[W,{isType:K,imported:j,source:B}]of Object.entries(o.userImports))K||(o.bindingMetadata[W]=j==="*"||j==="default"&&B.endsWith(".vue")||B==="vue"?"setup-const":"setup-maybe-ref");for(const W in w)o.bindingMetadata[W]=w[W];for(const W in _)o.bindingMetadata[W]=_[W];e.cssVars.length&&!((r=t.templateOptions)!=null&&r.ssr)&&(o.helperImports.add(Nl),o.helperImports.add("unref"),o.s.prependLeft(P,`
  144. ${a_(e.cssVars,o.bindingMetadata,g,!!t.isProd)}
  145. `));let J="__props";if(o.propsTypeDecl&&(J+=": any"),o.propsDecl&&(o.propsDestructureRestId?(o.s.overwrite(P+o.propsCall.start,P+o.propsCall.end,`${o.helper("createPropsRestProxy")}(__props, ${JSON.stringify(Object.keys(o.propsDestructuredBindings))})`),o.s.overwrite(P+o.propsDestructureDecl.start,P+o.propsDestructureDecl.end,o.propsDestructureRestId)):o.propsDestructureDecl||o.s.overwrite(P+o.propsCall.start,P+o.propsCall.end,"__props")),k){const W=o.isTS?": any":"";o.s.prependLeft(P,`
  146. let __temp${W}, __restore${W}
  147. `)}const re=o.hasDefineExposeCall||!t.inlineTemplate?["expose: __expose"]:[];o.emitDecl&&re.push("emit: __emit"),re.length&&(J+=`, { ${re.join(", ")} }`);let V;if(!t.inlineTemplate||!e.template&&o.hasDefaultExportRender){const W=io(io({},w),_);for(const K in o.userImports)!o.userImports[K].isType&&o.userImports[K].isUsedInTemplate&&(W[K]=!0);V="{ ";for(const K in W)if(W[K]===!0&&o.userImports[K].source!=="vue"&&!o.userImports[K].source.endsWith(".vue"))V+=`get ${K}() { return ${K} }, `;else if(o.bindingMetadata[K]==="setup-let"){const j=K==="v"?"_v":"v";V+=`get ${K}() { return ${K} }, set ${K}(${j}) { ${K} = ${j} }, `}else V+=`${K}, `;V=V.replace(/, $/,"")+" }"}else if(e.template&&!e.template.src){t.templateOptions&&t.templateOptions.ssr&&(E=!0);const{code:W,ast:K,preamble:j,tips:B,errors:Z}=Pw(Uh(io({filename:f,ast:e.template.ast,source:e.template.content,inMap:e.template.map},t.templateOptions),{id:g,scoped:e.styles.some(se=>se.scoped),isProd:t.isProd,ssrCssVars:e.cssVars,compilerOptions:Uh(io({},t.templateOptions&&t.templateOptions.compilerOptions),{inline:!0,isTS:o.isTS,bindingMetadata:o.bindingMetadata})}));B.length&&B.forEach(_o);const U=Z[0];if(typeof U=="string")throw new Error(U);if(U)throw U.loc&&(U.message+=`
  148. `+e.filename+`
  149. `+Ti(l,U.loc.start.offset,U.loc.end.offset)+`
  150. `),U;j&&o.s.prepend(j),K&&K.helpers.has(yi)&&o.helperImports.delete("unref"),V=W}else V="() => {}";t.inlineTemplate?o.s.appendRight(O,`
  151. return ${V}
  152. }
  153. `):o.s.appendRight(O,`
  154. const __returned__ = ${V}
  155. Object.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })
  156. return __returned__
  157. }
  158. `);const ee=t.genDefaultAs?`const ${t.genDefaultAs} =`:"export default";let G="";if(!o.hasDefaultExportName&&f&&f!==d_){const W=f.match(/([^/\\]+)\.\w+$/);W&&(G+=`
  159. __name: '${W[1]}',`)}E&&(G+=`
  160. __ssrInlineRender: true,`);const Q=bO(o);Q&&(G+=`
  161. props: ${Q},`);const ie=IO(o);ie&&(G+=`
  162. emits: ${ie},`);let ce="";o.optionsRuntimeDecl&&(ce=h.content.slice(o.optionsRuntimeDecl.start,o.optionsRuntimeDecl.end).trim());const ne=o.hasDefineExposeCall||t.inlineTemplate?"":` __expose();
  163. `;if(o.isTS){const W=(S?`
  164. ...${oi},`:"")+(ce?`
  165. ...${ce},`:"");o.s.prependLeft(P,`
  166. ${ee} /*@__PURE__*/${o.helper("defineComponent")}({${W}${G}
  167. ${k?"async ":""}setup(${J}) {
  168. ${ne}`),o.s.appendRight(O,"})")}else S||ce?(o.s.prependLeft(P,`
  169. ${ee} /*@__PURE__*/Object.assign(${S?`${oi}, `:""}${ce?`${ce}, `:""}{${G}
  170. ${k?"async ":""}setup(${J}) {
  171. ${ne}`),o.s.appendRight(O,"})")):(o.s.prependLeft(P,`
  172. ${ee} {${G}
  173. ${k?"async ":""}setup(${J}) {
  174. ${ne}`),o.s.appendRight(O,"}"));if(o.helperImports.size>0){const W=(i=(s=t.templateOptions)==null?void 0:s.compilerOptions)==null?void 0:i.runtimeModuleName,K=W?JSON.stringify(W):"'vue'";o.s.prepend(`import { ${[...o.helperImports].map(j=>`${j} as _${j}`).join(", ")} } from ${K}
  175. `)}return Uh(io({},h),{bindings:o.bindingMetadata,imports:o.userImports,content:o.s.toString(),map:t.sourceMap!==!1?o.s.generateMap({source:f,hires:!0,includeContent:!0}):void 0,scriptAst:R==null?void 0:R.body,scriptSetupAst:L==null?void 0:L.body,deps:o.deps?[...o.deps]:void 0})}function pi(e,t,r){e[t.name]=r}function qh(e,t,r,s,i,o=!1){let a=!1;if(t.type==="VariableDeclaration"){const h=t.kind==="const";a=h&&t.declarations.every(l=>l.id.type==="Identifier"&&Dr(l.init));for(const{id:l,init:f}of t.declarations){const d=f&&kr(f),g=h&&ir(d,y=>y===Jt||y===On||y===wn||y===hi);if(l.type==="Identifier"){let y;const v=s.reactive;(i||e==="script")&&(a||h&&Dr(d))?y="literal-const":ir(d,v)?y=h?"setup-reactive-const":"setup-let":g||h&&kb(d,v)?y=ir(d,Jt)?"setup-reactive-const":"setup-const":h?ir(d,w=>w===s.ref||w===s.computed||w===s.shallowRef||w===s.customRef||w===s.toRef||w===Qc)?y="setup-ref":y="setup-maybe-ref":y="setup-let",pi(r,l,y)}else{if(ir(d,Jt)&&o)continue;l.type==="ObjectPattern"?Tb(l,r,h,g):l.type==="ArrayPattern"&&xb(l,r,h,g)}}}else t.type==="TSEnumDeclaration"?(a=t.members.every(h=>!h.initializer||Dr(h.initializer)),r[t.id.name]=a?"literal-const":"setup-const"):(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration")&&(r[t.id.name]="setup-const");return a}function Tb(e,t,r,s=!1){for(const i of e.properties)if(i.type==="ObjectProperty")if(i.key.type==="Identifier"&&i.key===i.value){const o=s?"setup-const":r?"setup-maybe-ref":"setup-let";pi(t,i.key,o)}else L1(i.value,t,r,s);else{const o=r?"setup-const":"setup-let";pi(t,i.argument,o)}}function xb(e,t,r,s=!1){for(const i of e.elements)i&&L1(i,t,r,s)}function L1(e,t,r,s=!1){if(e.type==="Identifier")pi(t,e,s?"setup-const":r?"setup-maybe-ref":"setup-let");else if(e.type==="RestElement"){const i=r?"setup-const":"setup-let";pi(t,e.argument,i)}else if(e.type==="ObjectPattern")Tb(e,t,r);else if(e.type==="ArrayPattern")xb(e,t,r);else if(e.type==="AssignmentPattern")if(e.left.type==="Identifier"){const i=s?"setup-const":r?"setup-maybe-ref":"setup-let";pi(t,e.left,i)}else L1(e.left,t,r)}function kb(e,t){if(ir(e,t))return!0;switch(e.type){case"UnaryExpression":case"BinaryExpression":case"ArrayExpression":case"ObjectExpression":case"FunctionExpression":case"ArrowFunctionExpression":case"UpdateExpression":case"ClassExpression":case"TaggedTemplateExpression":return!0;case"SequenceExpression":return kb(e.expressions[e.expressions.length-1],t);default:return!!ub(e)}}function Dr(e){switch(e=kr(e),e.type){case"UnaryExpression":return Dr(e.argument);case"LogicalExpression":case"BinaryExpression":return Dr(e.left)&&Dr(e.right);case"ConditionalExpression":return Dr(e.test)&&Dr(e.consequent)&&Dr(e.alternate);case"SequenceExpression":case"TemplateLiteral":return e.expressions.every(t=>Dr(t));case"ParenthesizedExpression":return Dr(e.expression);case"StringLiteral":case"NumericLiteral":case"BooleanLiteral":case"NullLiteral":case"BigIntLiteral":return!0}return!1}var $O=Object.defineProperty,ev=Object.getOwnPropertySymbols,jO=Object.prototype.hasOwnProperty,UO=Object.prototype.propertyIsEnumerable,tv=(e,t,r)=>t in e?$O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rv=(e,t)=>{for(var r in t||(t={}))jO.call(t,r)&&tv(e,r,t[r]);if(ev)for(var r of ev(t))UO.call(t,r)&&tv(e,r,t[r]);return e};const qO="3.5.13",VO=fp,WO=rv(rv({},pf),jf),Pb=xc,GO=()=>!1;var Ab=$r.parse;const sv=Object.freeze(Object.defineProperty({__proto__:null,MagicString:Gn,babelParse:Ab,compileScript:BO,compileStyle:SN,compileStyleAsync:_N,compileTemplate:Pw,errorMessages:WO,extractIdentifiers:wr,extractRuntimeEmits:Eb,extractRuntimeProps:wb,generateCodeFrame:Ti,inferRuntimeType:Gt,invalidateTypeCache:pO,isInDestructureAssignment:Ii,isStaticProperty:Ci,parse:m_,parseCache:VO,registerTS:cO,resolveTypeElements:zt,rewriteDefault:qN,rewriteDefaultAST:x1,shouldTransformRef:GO,version:qO,walk:Pb,walkIdentifiers:Ai},Symbol.toStringTag,{value:"Module"}));var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zO(e){return e&&e.__esModule&&Object.prototype.
  176. <html>
  177. <head>
  178. <style>
  179. html.dark {
  180. color-scheme: dark;
  181. }
  182. body {
  183. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
  184. Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  185. }
  186. </style>
  187. <!-- PREVIEW-OPTIONS-HEAD-HTML -->
  188. <script>
  189. ;(() => {
  190. let scriptEls = []
  191. window.process = { env: {} }
  192. window.__modules__ = {}
  193. window.__export__ = (mod, key, get) => {
  194. Object.defineProperty(mod, key, {
  195. enumerable: true,
  196. configurable: true,
  197. get,
  198. })
  199. }
  200. window.__dynamic_import__ = (key) => {
  201. return Promise.resolve(window.__modules__[key])
  202. }
  203. async function handle_message(ev) {
  204. let { action, cmd_id } = ev.data
  205. const send_message = (payload) =>
  206. parent.postMessage({ ...payload }, ev.origin)
  207. const send_reply = (payload) => send_message({ ...payload, cmd_id })
  208. const send_ok = () => send_reply({ action: 'cmd_ok' })
  209. const send_error = (message, stack) =>
  210. send_reply({ action: 'cmd_error', message, stack })
  211. if (action === 'eval') {
  212. try {
  213. if (scriptEls.length) {
  214. scriptEls.forEach((el) => {
  215. document.head.removeChild(el)
  216. })
  217. scriptEls.length = 0
  218. }
  219. let { script: scripts } = ev.data.args
  220. if (typeof scripts === 'string') scripts = [scripts]
  221. for (const script of scripts) {
  222. const scriptEl = document.createElement('script')
  223. scriptEl.setAttribute('type', 'module')
  224. // send ok in the module script to ensure sequential evaluation
  225. // of multiple proxy.eval() calls
  226. const done = new Promise((resolve) => {
  227. window.__next__ = resolve
  228. })
  229. scriptEl.innerHTML = script + \`\\nwindow.__next__()\`
  230. document.head.appendChild(scriptEl)
  231. scriptEl.onerror = (err) => send_error(err.message, err.stack)
  232. scriptEls.push(scriptEl)
  233. await done
  234. }
  235. send_ok()
  236. } catch (e) {
  237. send_error(e.message, e.stack)
  238. }
  239. }
  240. if (action === 'catch_clicks') {
  241. try {
  242. const top_origin = ev.origin
  243. document.body.addEventListener('click', (event) => {
  244. if (event.which !== 1) return
  245. if (event.metaKey || event.ctrlKey || event.shiftKey) return
  246. if (event.defaultPrevented) return
  247. // ensure target is a link
  248. let el = event.target
  249. while (el && el.nodeName !== 'A') el = el.parentNode
  250. if (!el || el.nodeName !== 'A') return
  251. if (
  252. el.hasAttribute('download') ||
  253. el.getAttribute('rel') === 'external' ||
  254. el.target ||
  255. el.href.startsWith('javascript:') ||
  256. !el.href
  257. )
  258. return
  259. event.preventDefault()
  260. if (el.href.startsWith(top_origin)) {
  261. const url = new URL(el.href)
  262. if (url.hash[0] === '#') {
  263. window.location.hash = url.hash
  264. return
  265. }
  266. }
  267. window.open(el.href, '_blank')
  268. })
  269. send_ok()
  270. } catch (e) {
  271. send_error(e.message, e.stack)
  272. }
  273. }
  274. }
  275. window.addEventListener('message', handle_message, false)
  276. window.onerror = function (msg, url, lineNo, columnNo, error) {
  277. // ignore errors from import map polyfill - these are necessary for
  278. // it to detect browser support
  279. if (msg.includes('module specifier “vue”')) {
  280. // firefox only error, ignore
  281. return false
  282. }
  283. if (msg.includes("Module specifier, 'vue")) {
  284. // Safari only
  285. return false
  286. }
  287. try {
  288. parent.postMessage({ action: 'error', value: error }, '*')
  289. } catch (e) {
  290. parent.postMessage({ action: 'error', value: msg }, '*')
  291. }
  292. }
  293. window.addEventListener('unhandledrejection', (event) => {
  294. if (
  295. event.reason.message &&
  296. event.reason.message.includes('Cross-origin')
  297. ) {
  298. event.preventDefault()
  299. return
  300. }
  301. try {
  302. parent.postMessage(
  303. { action: 'unhandledrejection', value: event.reason },
  304. '*',
  305. )
  306. } catch (e) {
  307. parent.postMessage(
  308. { action: 'unhandledrejection', value: event.reason.message },
  309. '*',
  310. )
  311. }
  312. })
  313. let previous = { level: null, args: null }
  314. ;['clear', 'log', 'info', 'dir', 'warn', 'error', 'table'].forEach(
  315. (level) => {
  316. const original = console[level]
  317. console[level] = (...args) => {
  318. const msg = args[0]
  319. if (typeof msg === 'string') {
  320. if (
  321. msg.includes('You are running a development build of Vue') ||
  322. msg.includes('You are running the esm-bundler build of Vue')
  323. ) {
  324. return
  325. }
  326. }
  327. original(...args)
  328. const stringifiedArgs = stringify(args)
  329. if (
  330. previous.level === level &&
  331. previous.args &&
  332. previous.args === stringifiedArgs
  333. ) {
  334. parent.postMessage(
  335. { action: 'console', level, duplicate: true },
  336. '*',
  337. )
  338. } else {
  339. previous = { level, args: stringifiedArgs }
  340. try {
  341. parent.postMessage({ action: 'console', level, args }, '*')
  342. } catch (err) {
  343. parent.postMessage(
  344. { action: 'console', level, args: args.map(toString) },
  345. '*',
  346. )
  347. }
  348. }
  349. }
  350. },
  351. )
  352. ;[
  353. { method: 'group', action: 'console_group' },
  354. { method: 'groupEnd', action: 'console_group_end' },
  355. { method: 'groupCollapsed', action: 'console_group_collapsed' },
  356. ].forEach((group_action) => {
  357. const original = console[group_action.method]
  358. console[group_action.method] = (label) => {
  359. parent.postMessage({ action: group_action.action, label }, '*')
  360. original(label)
  361. }
  362. })
  363. const timers = new Map()
  364. const original_time = console.time
  365. const original_timelog = console.timeLog
  366. const original_timeend = console.timeEnd
  367. console.time = (label = 'default') => {
  368. original_time(label)
  369. timers.set(label, performance.now())
  370. }
  371. console.timeLog = (label = 'default') => {
  372. original_timelog(label)
  373. const now = performance.now()
  374. if (timers.has(label)) {
  375. parent.postMessage(
  376. {
  377. action: 'console',
  378. level: 'system-log',
  379. args: [\`\${label}: \${now - timers.get(label)}ms\`],
  380. },
  381. '*',
  382. )
  383. } else {
  384. parent.postMessage(
  385. {
  386. action: 'console',
  387. level: 'system-warn',
  388. args: [\`Timer '\${label}' does not exist\`],
  389. },
  390. '*',
  391. )
  392. }
  393. }
  394. console.timeEnd = (label = 'default') => {
  395. original_timeend(label)
  396. const now = performance.now()
  397. if (timers.has(label)) {
  398. parent.postMessage(
  399. {
  400. action: 'console',
  401. level: 'system-log',
  402. args: [\`\${label}: \${now - timers.get(label)}ms\`],
  403. },
  404. '*',
  405. )
  406. } else {
  407. parent.postMessage(
  408. {
  409. action: 'console',
  410. level: 'system-warn',
  411. args: [\`Timer '\${label}' does not exist\`],
  412. },
  413. '*',
  414. )
  415. }
  416. timers.delete(label)
  417. }
  418. const original_assert = console.assert
  419. console.assert = (condition, ...args) => {
  420. if (condition) {
  421. const stack = new Error().stack
  422. parent.postMessage(
  423. { action: 'console', level: 'assert', args, stack },
  424. '*',
  425. )
  426. }
  427. original_assert(condition, ...args)
  428. }
  429. const counter = new Map()
  430. const original_count = console.count
  431. const original_countreset = console.countReset
  432. console.count = (label = 'default') => {
  433. counter.set(label, (counter.get(label) || 0) + 1)
  434. parent.postMessage(
  435. {
  436. action: 'console',
  437. level: 'system-log',
  438. args: \`\${label}: \${counter.get(label)}\`,
  439. },
  440. '*',
  441. )
  442. original_count(label)
  443. }
  444. console.countReset = (label = 'default') => {
  445. if (counter.has(label)) {
  446. counter.set(label, 0)
  447. } else {
  448. parent.postMessage(
  449. {
  450. action: 'console',
  451. level: 'system-warn',
  452. args: \`Count for '\${label}' does not exist\`,
  453. },
  454. '*',
  455. )
  456. }
  457. original_countreset(label)
  458. }
  459. const original_trace = console.trace
  460. console.trace = (...args) => {
  461. const stack = new Error().stack
  462. parent.postMessage(
  463. { action: 'console', level: 'trace', args, stack },
  464. '*',
  465. )
  466. original_trace(...args)
  467. }
  468. function toString(value) {
  469. if (value instanceof Error) {
  470. return value.message
  471. }
  472. for (const fn of [
  473. String,
  474. (v) => Object.prototype.toString.call(v),
  475. (v) => typeof v,
  476. ]) {
  477. try {
  478. return fn(value)
  479. } catch (err) {}
  480. }
  481. }
  482. function isComponentProxy(value) {
  483. return (
  484. value &&
  485. typeof value === 'object' &&
  486. value.__v_skip === true &&
  487. typeof value.$nextTick === 'function' &&
  488. value.$ &&
  489. value._
  490. )
  491. }
  492. function stringify(args) {
  493. try {
  494. return JSON.stringify(args, (key, value) => {
  495. return isComponentProxy(value) ? '{component proxy}' : value
  496. })
  497. } catch (error) {
  498. return null
  499. }
  500. }
  501. })()
  502. <\/script>
  503. <!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) -->
  504. <script
  505. async
  506. src="/web/cdn/es-module-shims.wasm.js"
  507. ><\/script>
  508. <script type="importmap">
  509. <!--IMPORT_MAP-->
  510. <\/script>
  511. </head>
  512. <body>
  513. <!--PREVIEW-OPTIONS-PLACEHOLDER-HTML-->
  514. </body>
  515. </html>
  516. `;let YO=1;class QO{constructor(t,r){this.iframe=t,this.handlers=r,this.pending_cmds=new Map,this.handle_event=s=>this.handle_repl_message(s),window.addEventListener("message",this.handle_event,!1)}destroy(){window.removeEventListener("message",this.handle_event)}iframe_command(t,r){return new Promise((s,i)=>{const o=YO++;this.pending_cmds.set(o,{resolve:s,reject:i}),this.iframe.contentWindow.postMessage({action:t,cmd_id:o,args:r},"*")})}handle_command_message(t){let r=t.action,s=t.cmd_id,i=this.pending_cmds.get(s);if(i){if(this.pending_cmds.delete(s),r==="cmd_error"){let{message:o,stack:a}=t,h=new Error(o);h.stack=a,i.reject(h)}r==="cmd_ok"&&i.resolve(t.args)}else r!=="cmd_error"&&r!=="cmd_ok"&&console.error("command not found",s,t,[...this.pending_cmds.keys()])}handle_repl_message(t){if(t.source!==this.iframe.contentWindow)return;const{action:r,args:s}=t.data;switch(r){case"cmd_error":case"cmd_ok":return this.handle_command_message(t.data);case"fetch_progress":return this.handlers.on_fetch_progress(s.remaining);case"error":return this.handlers.on_error(t.data);case"unhandledrejection":return this.handlers.on_unhandled_rejection(t.data);case"console":return this.handlers.on_console(t.data);case"console_group":return this.handlers.on_console_group(t.data);case"console_group_collapsed":return this.handlers.on_console_group_collapsed(t.data);case"console_group_end":return this.handlers.on_console_group_end(t.data)}}eval(t){return this.iframe_command("eval",{script:t})}handle_links(){return this.iframe_command("catch_clicks",{})}}function nv(e,t=!1){const r=new Set,s=[];if(Dp(e,e.files[e.mainFile],s,r,t),!t){for(const i in e.files)if(i.endsWith(".css")){const o=e.files[i];r.has(o)||s.push(`
  517. window.__css__.push(${JSON.stringify(o.compiled.css)})`)}}return s}const iv="__modules__",Vh="__export__",ZO="__dynamic_import__",oo="__module__";function Dp(e,t,r,s,i){if(s.has(t))return[];if(s.add(t),!i&&t.filename.endsWith(".html"))return rL(e,t.code,t.filename,r,s);let{code:o,importedFiles:a,hasDynamicImport:h}=Cb(e,i?t.compiled.ssr:t.compiled.js,t.filename);Ib(e,a,h,r,s,i),t.compiled.css&&!i&&(o+=`
  518. window.__css__.push(${JSON.stringify(t.compiled.css)})`),r.push(o)}function Ib(e,t,r,s,i,o){if(r)for(const a of Object.values(e.files))i.has(a)||Dp(e,a,s,i,o);else if(t.size>0)for(const a of t)Dp(e,e.files[a],s,i,o)}function Cb(e,t,r){const s=new Gn(t),i=Ab(t,{sourceFilename:r,sourceType:"module"}).program.body,o=new Map,a=new Set,h=new Set,l=new Map;function f(v){const w=e.files;let _=v;return w[_]||w[_=v+".ts"]||w[_=v+".js"]?_:void 0}function d(v,w){const _=f(w.replace(/^\.\/+/,"src/"));if(!_)throw new Error(`File "${w}" does not exist.`);if(h.has(_))return l.get(_);h.add(_);const S=`__import_${h.size}__`;return l.set(_,S),s.appendLeft(v.start,`const ${S} = ${iv}[${JSON.stringify(_)}]
  519. `),S}function g(v,w=v){s.append(`
  520. ${Vh}(${oo}, "${v}", () => ${w})`)}s.prepend(`const ${oo} = ${iv}[${JSON.stringify(r)}] = { [Symbol.toStringTag]: "Module" }
  521. `);for(const v of i)if(v.type==="ImportDeclaration"&&v.source.value.startsWith("./")){const _=d(v,v.source.value);for(const S of v.specifiers)S.type==="ImportSpecifier"?o.set(S.local.name,`${_}.${S.imported.name}`):S.type==="ImportDefaultSpecifier"?o.set(S.local.name,`${_}.default`):o.set(S.local.name,_);s.remove(v.start,v.end)}for(const v of i){if(v.type==="ExportNamedDeclaration")if(v.declaration){if(v.declaration.type==="FunctionDeclaration"||v.declaration.type==="ClassDeclaration")g(v.declaration.id.name);else if(v.declaration.type==="VariableDeclaration")for(const w of v.declaration.declarations)for(const _ of wr(w.id))g(_.name);s.remove(v.start,v.declaration.start)}else if(v.source){const w=d(v,v.source.value);for(const _ of v.specifiers)g(_.exported.name,`${w}.${_.local.name}`);s.remove(v.start,v.end)}else{for(const w of v.specifiers){const _=w.local.name,S=o.get(_);g(w.exported.name,S||_)}s.remove(v.start,v.end)}if(v.type==="ExportDefaultDeclaration")if("id"in v.declaration&&v.declaration.id){const{name:w}=v.declaration.id;s.remove(v.start,v.start+15),s.append(`
  522. ${Vh}(${oo}, "default", () => ${w})`)}else s.overwrite(v.start,v.start+14,`${oo}.default =`);if(v.type==="ExportAllDeclaration"){const w=d(v,v.source.value);s.remove(v.start,v.end),s.append(`
  523. for (const key in ${w}) {
  524. if (key !== 'default') {
  525. ${Vh}(${oo}, key, () => ${w}[key])
  526. }
  527. }`)}}for(const v of i)v.type!=="ImportDeclaration"&&Ai(v,(w,_,S)=>{const k=o.get(w.name);if(k)if(_&&Ci(_)&&_.shorthand)(!_.inPattern||Ii(_,S))&&s.appendLeft(w.end,`: ${k}`);else if(_&&_.type==="ClassDeclaration"&&w===_.superClass){if(!a.has(w.name)){a.add(w.name);const E=S[1];s.prependRight(E.start,`const ${w.name} = ${k};
  528. `)}}else s.overwrite(w.start,w.end,k)});let y=!1;return Pb(i,{enter(v,w){if(v.type==="Import"&&w.type==="CallExpression"){const _=w.arguments[0];_.type==="StringLiteral"&&_.value.startsWith("./")&&(y=!0,s.overwrite(v.start,v.start+6,ZO),s.overwrite(_.start,_.end,JSON.stringify(_.value.replace(/^\.\/+/,"src/"))))}}}),{code:s.toString(),importedFiles:h,hasDynamicImport:y}}const eL=/<script\b(?:\s[^>]*>|>)([^]*?)<\/script>/gi,tL=/<script\b[^>]*type\s*=\s*(?:"module"|'module')[^>]*>([^]*?)<\/script>/gi;function rL(e,t,r,s,i){const o=[];let a="";const h=t.replace(tL,(l,f)=>{const{code:d,importedFiles:g,hasDynamicImport:y}=Cb(e,f,r);return Ib(e,g,y,o,i,!1),a+=`
  529. `+d,""}).replace(eL,(l,f)=>(a+=`
  530. `+f,""));s.push(`document.body.innerHTML = ${JSON.stringify(h)}`),s.push(...o),s.push(a)}const sL=nn({__name:"Preview",props:{show:{type:Boolean},ssr:{type:Boolean}},setup(e,{expose:t}){const r=e,{store:s,clearConsole:i,theme:o,previewTheme:a,previewOptions:h}=fi(Ei),l=Go("container"),f=Pt(),d=Pt();let g,y,v;MT(_),zs(()=>s.value.getImportMap(),()=>{try{_()}catch(E){s.value.errors=[E];return}});function w(){var P;if(!a.value)return;const E=(P=g.contentDocument)==null?void 0:P.documentElement;E?E.className=o.value:_()}zs([o,a],w),DT(()=>{y.destroy(),v&&v()});function _(){var O,A,M,F;g&&(y.destroy(),v&&v(),(O=l.value)==null||O.removeChild(g)),g=document.createElement("iframe"),g.setAttribute("sandbox",["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation"].join(" "));const E=s.value.getImportMap(),P=KO.replace(/<html>/,`<html class="${a.value?o.value:""}">`).replace(/<!--IMPORT_MAP-->/,JSON.stringify(E)).replace(/<!-- PREVIEW-OPTIONS-HEAD-HTML -->/,((A=h.value)==null?void 0:A.headHTML)||"").replace(/<!--PREVIEW-OPTIONS-PLACEHOLDER-HTML-->/,((M=h.value)==null?void 0:M.placeholderHTML)||"");g.srcdoc=P,(F=l.value)==null||F.appendChild(g),y=new QO(g,{on_fetch_progress:x=>{},on_error:x=>{const I=x.value instanceof Error?x.value.message:x.value;I.includes("Failed to resolve module specifier")||I.includes("Error resolving module specifier")?f.value=I.replace(/\. Relative references must.*$/,"")+`.
  531. Tip: edit the "Import Map" tab to specify import paths for dependencies.`:f.value=x.value},on_unhandled_rejection:x=>{let I=x.value;typeof I=="string"&&(I={message:I}),f.value="Uncaught (in promise): "+I.message},on_console:x=>{x.duplicate||(x.level==="error"?x.args[0]instanceof Error?f.value=x.args[0].message:f.value=x.args[0]:x.level==="warn"&&x.args[0].toString().includes("[Vue warn]")&&(d.value=x.args.join("").replace(/\[Vue warn\]:/,"").trim()))},on_console_group:x=>{},on_console_group_end:()=>{},on_console_group_collapsed:x=>{}}),g.addEventListener("load",()=>{y.handle_links(),v=$v(S),w()})}async function S(){var P,O,A,M,F,x;i.value&&console.clear(),f.value=void 0,d.value=void 0;let E=r.ssr;if(s.value.vueVersion){const[I,R,L]=s.value.vueVersion.split(".").map(z=>parseInt(z,10));I===3&&(R<2||R===2&&L<27)&&(alert(`The selected version of Vue (${s.value.vueVersion}) does not support in-browser SSR. Rendering in client mode instead.`),E=!1)}try{const{mainFile:I}=s.value;if(E&&I.endsWith(".vue")){const z=nv(s.value,!0);console.info(`[@vue/repl] successfully compiled ${z.length} modules for SSR.`),await y.eval(["const __modules__ = {};",...z,`import { renderToString as _renderToString } from 'vue/server-renderer'
  532. import { createSSRApp as _createApp } from 'vue'
  533. const AppComponent = __modules__["${I}"].default
  534. AppComponent.name = 'Repl'
  535. const app = _createApp(AppComponent)
  536. if (!app.config.hasOwnProperty('unwrapInjectedRef')) {
  537. app.config.unwrapInjectedRef = true
  538. }
  539. app.config.warnHandler = () => {}
  540. window.__ssr_promise__ = _renderToString(app).then(html => {
  541. document.body.innerHTML = '<div id="app">' + html + '</div>' + \`${((P=h.value)==null?void 0:P.bodyHTML)||""}\`
  542. }).catch(err => {
  543. console.error("SSR Error", err)
  544. })
  545. `])}const R=nv(s.value);console.info(`[@vue/repl] successfully compiled ${R.length} module${R.length>1?"s":""}.`);const L=["window.__modules__ = {};window.__css__ = [];if (window.__app__) window.__app__.unmount();"+(E?"":`document.body.innerHTML = '<div id="app"></div>' + \`${((O=h.value)==null?void 0:O.bodyHTML)||""}\``),...R,"document.querySelectorAll('style[css]').forEach(el => el.remove())\n document.head.insertAdjacentHTML('beforeend', window.__css__.map(s => `<style css>${s}</style>`).join('\\n'))"];I.endsWith(".vue")&&L.push(`import { ${E?"createSSRApp":"createApp"} as _createApp } from "vue"
  546. ${((M=(A=h.value)==null?void 0:A.customCode)==null?void 0:M.importCode)||""}
  547. const _mount = () => {
  548. const AppComponent = __modules__["${I}"].default
  549. AppComponent.name = 'Repl'
  550. const app = window.__app__ = _createApp(AppComponent)
  551. if (!app.config.hasOwnProperty('unwrapInjectedRef')) {
  552. app.config.unwrapInjectedRef = true
  553. }
  554. app.config.errorHandler = e => console.error(e)
  555. ${((x=(F=h.value)==null?void 0:F.customCode)==null?void 0:x.useCode)||""}
  556. app.mount('#app')
  557. }
  558. if (window.__ssr_promise__) {
  559. window.__ssr_promise__.then(_mount)
  560. } else {
  561. _mount()
  562. }`),await y.eval(L)}catch(I){console.error(I),f.value=I.message}}function k(){var E;(E=g.contentWindow)==null||E.location.reload()}return t({reload:k,container:l}),(E,P)=>{var O,A;return At(),Ht(di,null,[ic(ft("div",{ref:"container",class:Kr(["iframe-container",{[Ge(o)]:Ge(a)}])},null,2),[[Kp,E.show]]),Ks(Mp,{err:(((O=Ge(h))==null?void 0:O.showRuntimeError)??!0)&&f.value},null,8,["err"]),!f.value&&(((A=Ge(h))==null?void 0:A.showRuntimeWarning)??!0)?(At(),ko(Mp,{key:0,warn:d.value},null,8,["warn"])):Yr("",!0)],64)}}}),nL=zn(sL,[["__scopeId","data-v-d0ce9d15"]]),iL={class:"tab-buttons"},oL=["onClick"],aL={class:"output-container"},lL=nn({__name:"Output",props:{editorComponent:{},showCompileOutput:{type:Boolean},ssr:{type:Boolean}},setup(e,{expose:t}){const r=e,{store:s}=fi(Ei),i=Go("preview"),o=os(()=>r.showCompileOutput?["preview","js","css","ssr"]:["preview"]),a=os({get:()=>o.value.includes(s.value.outputMode)?s.value.outputMode:"preview",set(l){o.value.includes(s.value.outputMode)&&(s.value.outputMode=l)}});function h(){var l;(l=i.value)==null||l.reload()}return t({reload:h,previewRef:i}),(l,f)=>(At(),Ht(di,null,[ft("div",iL,[(At(!0),Ht(di,null,Uv(o.value,d=>(At(),Ht("button",{key:d,class:Kr({active:a.value===d}),onClick:g=>a.value=d},[ft("span",null,Ln(d),1)],10,oL))),128))]),ft("div",aL,[Ks(nL,{ref:"preview",show:a.value==="preview",ssr:l.ssr},null,8,["show","ssr"]),a.value!=="preview"?(At(),ko(r.editorComponent,{key:0,readonly:"",filename:Ge(s).activeFile.filename,value:Ge(s).activeFile.compiled[a.value],mode:a.value},null,8,["filename","value","mode"])):Yr("",!0)])],64))}}),cL=zn(lL,[["__scopeId","data-v-5893ae30"]]);var H;(function(e){e[e.NONE=0]="NONE";const r=1;e[e._abstract=r]="_abstract";const s=r+1;e[e._accessor=s]="_accessor";const i=s+1;e[e._as=i]="_as";const o=i+1;e[e._assert=o]="_assert";const a=o+1;e[e._asserts=a]="_asserts";const h=a+1;e[e._async=h]="_async";const l=h+1;e[e._await=l]="_await";const f=l+1;e[e._checks=f]="_checks";const d=f+1;e[e._constructor=d]="_constructor";const g=d+1;e[e._declare=g]="_declare";const y=g+1;e[e._enum=y]="_enum";const v=y+1;e[e._exports=v]="_exports";const w=v+1;e[e._from=w]="_from";const _=w+1;e[e._get=_]="_get";const S=_+1;e[e._global=S]="_global";const k=S+1;e[e._implements=k]="_implements";const E=k+1;e[e._infer=E]="_infer";const P=E+1;e[e._interface=P]="_interface";const O=P+1;e[e._is=O]="_is";const A=O+1;e[e._keyof=A]="_keyof";const M=A+1;e[e._mixins=M]="_mixins";const F=M+1;e[e._module=F]="_module";const x=F+1;e[e._namespace=x]="_namespace";const I=x+1;e[e._of=I]="_of";const R=I+1;e[e._opaque=R]="_opaque";const L=R+1;e[e._out=L]="_out";const z=L+1;e[e._override=z]="_override";const J=z+1;e[e._private=J]="_private";const re=J+1;e[e._protected=re]="_protected";const V=re+1;e[e._proto=V]="_proto";const ee=V+1;e[e._public=ee]="_public";const G=ee+1;e[e._readonly=G]="_readonly";const Q=G+1;e[e._require=Q]="_require";const ie=Q+1;e[e._satisfies=ie]="_satisfies";const ce=ie+1;e[e._set=ce]="_set";const ne=ce+1;e[e._static=ne]="_static";const W=ne+1;e[e._symbol=W]="_symbol";const K=W+1;e[e._type=K]="_type";const j=K+1;e[e._unique=j]="_unique";const B=j+1;e[e._using=B]="_using"})(H||(H={}));var p;(function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const r=16;e[e.IS_KEYWORD=r]="IS_KEYWORD";const s=32;e[e.IS_ASSIGN=s]="IS_ASSIGN";const i=64;e[e.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const o=128;e[e.IS_PREFIX=o]="IS_PREFIX";const a=256;e[e.IS_POSTFIX=a]="IS_POSTFIX";const h=512;e[e.IS_EXPRESSION_START=h]="IS_EXPRESSION_START";const l=512;e[e.num=l]="num";const f=1536;e[e.bigint=f]="bigint";const d=2560;e[e.decimal=d]="decimal";const g=3584;e[e.regexp=g]="regexp";const y=4608;e[e.string=y]="string";const v=5632;e[e.name=v]="name";const w=6144;e[e.eof=w]="eof";const _=7680;e[e.bracketL=_]="bracketL";const S=8192;e[e.bracketR=S]="bracketR";const k=9728;e[e.braceL=k]="braceL";const E=10752;e[e.braceBarL=E]="braceBarL";const P=11264;e[e.braceR=P]="braceR";const O=12288;e[e.braceBarR=O]="braceBarR";const A=13824;e[e.parenL=A]="parenL";const M=14336;e[e.parenR=M]=
  563. `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,r){const s=r===Fr.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let i=null;if(this.tokens.matches1(p.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(r);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),i=this.processProps(!0),this.tokens.matches2(p.slash,p.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(p.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(r);else throw new Error("Expected either /> or > at the end of the tag.");i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(i===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(p.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(p.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(p.slash,p.jsxTagEnd))if(this.tokens.matches1(p.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(p.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,r){const s=this.claimAutoImportedName(t,r);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(t,r){if(this.importProcessor){const s=this.jsxImportSource+r;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,p.jsxName,p.jsxName)&&!this.tokens.matches2AtIndex(t-1,p.greaterThan,p.jsxName)&&!this.tokens.matches1AtIndex(t,p.braceL)&&!this.tokens.matches1AtIndex(t,p.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,p.slash,p.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){const r=this.tokens.identifierName();Xb(r)&&this.tokens.replaceToken(`'${r}'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){const r=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;if(!this.tokens.matches1(p.jsxName)&&!this.tokens.matches1(p.braceL)){r?this.tokens.appendCode(`, {${r}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),r?this.tokens.appendCode(` ${r}}`):this.tokens.appendCode("}")}processProps(t){let r=null;for(;;){if(this.tokens.matches2(p.jsxName,p.eq)){const s=this.tokens.identifierName();if(t&&s==="key"){r!==null&&this.tokens.appendCode(r.replace(/[^\n]/g,"")),t
  564. `)r="",s=!0;else{if(i&&s&&(t+=" "),t+=r,r="",a==="&"){const{entity:h,newI:l}=Jb(e,o+1);o=l-1,t+=h}else t+=a;i=!0,s=!1}}return s||(t+=r),JSON.stringify(t)}function cv(e){let t=0,r=0;for(const s of e)s===`
  565. `?(t++,r=0):s===" "&&r++;return`
  566. `.repeat(t)+" ".repeat(r)}function qL(e){let t="";for(let r=0;r<e.length;r++){const s=e[r];if(s===`
  567. `)if(/\s/.test(e[r+1]))for(t+=" ";r<e.length&&/\s/.test(e[r+1]);)r++;else t+=`
  568. `;else if(s==="&"){const{entity:i,newI:o}=Jb(e,r+1);t+=i,r=o-1}else t+=s}return JSON.stringify(t)}function Jb(e,t){let r="",s=0,i,o=t;if(e[o]==="#"){let a=10;o++;let h;if(e[o]==="x")for(a=16,o++,h=o;o<e.length&&WL(e.charCodeAt(o));)o++;else for(h=o;o<e.length&&VL(e.charCodeAt(o));)o++;if(e[o]===";"){const l=e.slice(h,o);l&&(o++,i=String.fromCodePoint(parseInt(l,a)))}}else for(;o<e.length&&s++<10;){const a=e[o];if(o++,a===";"){i=jL.get(r);break}r+=a}return i?{entity:i,newI:o}:{entity:"&",newI:t}}function VL(e){return e>=te.digit0&&e<=te.digit9}function WL(e){return e>=te.digit0&&e<=te.digit9||e>=te.lowercaseA&&e<=te.lowercaseF||e>=te.uppercaseA&&e<=te.uppercaseF}function Kb(e,t){const r=Hb(t),s=new Set;for(let i=0;i<e.tokens.length;i++){const o=e.tokens[i];if(o.type===p.name&&!o.isType&&(o.identifierRole===Ne.Access||o.identifierRole===Ne.ObjectShorthand||o.identifierRole===Ne.ExportAccess)&&!o.shadowsGlobal&&s.add(e.identifierNameForToken(o)),o.type===p.jsxTagStart&&s.add(r.base),o.type===p.jsxTagStart&&i+1<e.tokens.length&&e.tokens[i+1].type===p.jsxTagEnd&&(s.add(r.base),s.add(r.fragmentBase)),o.type===p.jsxName&&o.identifierRole===Ne.Access){const a=e.identifierNameForToken(o);(!Xb(a)||e.tokens[i+1].type===p.dot)&&s.add(e.identifierNameForToken(o))}}return s}class En{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,r,s,i,o,a,h){this.nameManager=t,this.tokens=r,this.enableLegacyTypeScriptModuleInterop=s,this.options=i,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=a,this.helperManager=h,En.prototype.__init.call(this),En.prototype.__init2.call(this),En.prototype.__init3.call(this),En.prototype.__init4.call(this),En.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,p._import)&&!this.tokens.matches3AtIndex(t,p._import,p.name,p.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,p._export)&&!this.tokens.matches2AtIndex(t,p._export,p.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=Kb(this.tokens,this.options);for(const[t,r]of this.importInfoByPath.entries()){if(r.hasBareImport||r.hasStarExport||r.exportStarNames.length>0||r.namedExports.length>0)continue;[...r.defaultNames,...r.wildcardNames,...r.namedImports.map(({localName:i})=>i)].every(i=>this.shouldAutomaticallyElideImportedName(i))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,r]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:i,namedImports:o,namedExports:a,exportStarNames:h,hasStarExport:l}=r;if(s.length===0&&i.length===0&&o.length===0&&a.length===0&&h.length===0&&!l){this.importsToReplace.set(t,`require('${t}');`);continue}const f=this.getFreeIdentifierForPath(t);let d;this.enableLegacyTypeScriptModuleInterop?d=f:d=i.length>0?i[0]:this.getFreeIdentifierForPath(t);let g=`var ${f} = require('${t}');`;if(i.length>0)for(const y of i){const v=this.enableLegacyTypeScriptModuleInterop?f:`${this.helperManager.getHelperName("interopRequireWildcard")}(${f})`;g+=` var ${y} = ${v};`}else h.length>0&&d!==f?g+=` var ${d} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${f});`:s.length>0&&d!==f&&(g+=` var ${d} = ${this.helperManager.getHelperName("interopRequireDefault")}(${f});`);for(const{importedName:y,localName:v}of a)g+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${f}, '${v}', '${y}');`;for(const y of h)g+=` exports.${y} = ${d};`;l&&(g+=` ${this.helperManager.getHelperName("createStarExport")}(${f});`),this.importsToReplace.set(t,g);for(const y of s)this.identifierReplacements.set(y,`${d}.default`);for(const{importedName:y,localName:v}of o)this.identifierReplacements.set(v,`${f}.${y}`)}}getFreeIdentifierForPath
  569. import {createRequire as CREATE_REQUIRE_NAME} from "module";
  570. const require = CREATE_REQUIRE_NAME(import.meta.url);
  571. `,interopRequireWildcard:`
  572. function interopRequireWildcard(obj) {
  573. if (obj && obj.__esModule) {
  574. return obj;
  575. } else {
  576. var newObj = {};
  577. if (obj != null) {
  578. for (var key in obj) {
  579. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  580. newObj[key] = obj[key];
  581. }
  582. }
  583. }
  584. newObj.default = obj;
  585. return newObj;
  586. }
  587. }
  588. `,interopRequireDefault:`
  589. function interopRequireDefault(obj) {
  590. return obj && obj.__esModule ? obj : { default: obj };
  591. }
  592. `,createNamedExportFrom:`
  593. function createNamedExportFrom(obj, localName, importedName) {
  594. Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
  595. }
  596. `,createStarExport:`
  597. function createStarExport(obj) {
  598. Object.keys(obj)
  599. .filter((key) => key !== "default" && key !== "__esModule")
  600. .forEach((key) => {
  601. if (exports.hasOwnProperty(key)) {
  602. return;
  603. }
  604. Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
  605. });
  606. }
  607. `,nullishCoalesce:`
  608. function nullishCoalesce(lhs, rhsFn) {
  609. if (lhs != null) {
  610. return lhs;
  611. } else {
  612. return rhsFn();
  613. }
  614. }
  615. `,asyncNullishCoalesce:`
  616. async function asyncNullishCoalesce(lhs, rhsFn) {
  617. if (lhs != null) {
  618. return lhs;
  619. } else {
  620. return await rhsFn();
  621. }
  622. }
  623. `,optionalChain:`
  624. function optionalChain(ops) {
  625. let lastAccessLHS = undefined;
  626. let value = ops[0];
  627. let i = 1;
  628. while (i < ops.length) {
  629. const op = ops[i];
  630. const fn = ops[i + 1];
  631. i += 2;
  632. if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
  633. return undefined;
  634. }
  635. if (op === 'access' || op === 'optionalAccess') {
  636. lastAccessLHS = value;
  637. value = fn(value);
  638. } else if (op === 'call' || op === 'optionalCall') {
  639. value = fn((...args) => value.call(lastAccessLHS, ...args));
  640. lastAccessLHS = undefined;
  641. }
  642. }
  643. return value;
  644. }
  645. `,asyncOptionalChain:`
  646. async function asyncOptionalChain(ops) {
  647. let lastAccessLHS = undefined;
  648. let value = ops[0];
  649. let i = 1;
  650. while (i < ops.length) {
  651. const op = ops[i];
  652. const fn = ops[i + 1];
  653. i += 2;
  654. if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
  655. return undefined;
  656. }
  657. if (op === 'access' || op === 'optionalAccess') {
  658. lastAccessLHS = value;
  659. value = await fn(value);
  660. } else if (op === 'call' || op === 'optionalCall') {
  661. value = await fn((...args) => value.call(lastAccessLHS, ...args));
  662. lastAccessLHS = undefined;
  663. }
  664. }
  665. return value;
  666. }
  667. `,optionalChainDelete:`
  668. function optionalChainDelete(ops) {
  669. const result = OPTIONAL_CHAIN_NAME(ops);
  670. return result == null ? true : result;
  671. }
  672. `,asyncOptionalChainDelete:`
  673. async function asyncOptionalChainDelete(ops) {
  674. const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
  675. return result == null ? true : result;
  676. }
  677. `};class Kl{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,Kl.prototype.__init.call(this),Kl.prototype.__init2.call(this)}getHelperName(t){let r=this.helperNames[t];return r||(r=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=r,r)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[r,s]of Object.entries(KL)){const i=this.helperNames[r];let o=s;r==="optionalChainDelete"?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):r==="asyncOptionalChainDelete"?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):r==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(t+=" ",t+=o.replace(r,i).replace(/\s+/g," ").trim())}return t}}function dv(e,t,r){YL(e,r)&&QL(e,t,r)}function YL(e,t){for(const r of e.tokens)if(r.type===p.name&&!r.isType&&vL(r)&&t.has(e.identifierNameForToken(r)))return!0;return!1}function QL(e,t,r){const s=[];let i=t.length-1;for(let o=e.tokens.length-1;;o--){for(;s.length>0&&s[s.length-1].startTokenIndex===o+1;)s.pop();for(;i>=0&&t[i].endTokenIndex===o+1;)s.push(t[i]),i--;if(o<0)break;const a=e.tokens[o],h=e.identifierNameForToken(a);if(s.length>1&&!a.isType&&a.type===p.name&&r.has(h)){if(SL(a))mv(s[s.length-1],e,h);else if(_L(a)){let l=s.length-1;for(;l>0&&!s[l].isFunctionScope;)l--;if(l<0)throw new Error("Did not find parent function scope.");mv(s[l],e,h)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function mv(e,t,r){for(let s=e.startTokenIndex;s<e.endTokenIndex;s++){const i=t.tokens[s];(i.type===p.name||i.type===p.jsxName)&&t.identifierNameForToken(i)===r&&(i.shadowsGlobal=!0)}}function ZL(e,t){const r=[];for(const s of t)s.type===p.name&&r.push(e.slice(s.start,s.end));return r}class D1{__init(){this.usedNames=new Set}constructor(t,r){D1.prototype.__init.call(this),this.usedNames=new Set(ZL(t,r))}claimFreeName(t){const r=this.findFreeName(t);return this.usedNames.add(r),r}findFreeName(t){if(!this.usedNames.has(t))return t;let r=2;for(;this.usedNames.has(t+String(r));)r++;return t+String(r)}}var lt={},Bp={},hs={},eR=jr&&jr.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var o in i)i.hasOwnProperty(o)&&(s[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function s(){this.constructor=t}t.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}();Object.defineProperty(hs,"__esModule",{value:!0});hs.DetailContext=hs.NoopContext=hs.VError=void 0;var Qb=function(e){eR(t,e);function t(r,s){var i=e.call(this,s)||this;return i.path=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error);hs.VError=Qb;var tR=function(){function e(){}return e.prototype.fail=function(t,r,s){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(t){},e}();hs.NoopContext=tR;var Zb=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(t,r,s){return this._propNames.push(t),this._messages.push(r),this._score+=s,!1},e.prototype.unionResolver=function(){return new rR},e.prototype.resolveUnion=function(t){for(var r,s,i=t,o=null,a=0,h=i.contexts;a<h.length;a++){var l=h[a];(!o||l._score>=o._score)&&(o=l)}o&&o._score>0&&((r=this._propNames).push.apply(r,o._propNames),(s=this._messages).push.apply(s,o._messages))},e.prototype.getError=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push(t+" "+o)}return new Qb(t,r.join("; "))},e.prototype.getErrorDetail=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."
  678. module.exports = exports.default;
  679. `:""}process(){return this.tokens.matches3(p._import,p.name,p.eq)?this.processImportEquals():this.tokens.matches1(p._import)?(this.processImport(),!0):this.tokens.matches2(p._export,p.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(p._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(p.name,p.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(p.name)||this.tokens.matches1(p.jsxName)?this.processIdentifier():this.tokens.matches1(p.eq)?this.processAssignment():this.tokens.matches1(p.assign)?this.processComplexAssignment():this.tokens.matches1(p.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(t)?BE(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(p._import,p.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const r=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${r}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(p.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(r?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const r=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(r)),this.tokens.appendCode(this.importProcessor.claimImportCode(r))}Pn(this.tokens),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(H._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,H._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(p.name)||this.tokens.matches1(p.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(p.string))return!1;let t=!1,r=!1;for(;!this.tokens.matches1(p.string);)(!t&&this.tokens.matches1(p.braceL)||this.tokens.matches1(p.comma))&&(this.tokens.removeToken(),this.tokens.matches1(p.braceR)||(r=!0),(this.tokens.matches2(p.name,p.comma)||this.tokens.matches2(p.name,p.braceR)||this.tokens.matches4(p.name,p.name,p.name,p.comma)||this.tokens.matches4(p.name,p.name,p.name,p.braceR))&&(t=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?r&&!t:!1}removeRemainingImport(){for(;!this.tokens.matches1(p.string);)this.tokens.removeToken()}processIdentifier(){const t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===Ne.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==Ne.Access)return!1;const r=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!r)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===p.parenR;)s++;return this.tokens.tokens[s].type===p.parenL?this.tokens.tokenAtRelativeIndex(1).type===p.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==p._new?(this.tokens.replaceToken(`${r}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR)):this.tokens.replaceToken(`(0, ${r})`):this.tokens.replaceToken(r),!0}processObjectShorthand(){const t=this.tokens.identifierName(),r=this.importProcessor.getIdentifierReplacement(t);return r?(this.tokens.replaceToken(`${t}: ${r}`),!0):!1}processExport(){if(this.tokens.matches2(p._export,p._enum)||this.tokens.matches3(p._export,p._const,p._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(p._export,p._default))return this.tokens.matches3(p._export,p._default,p._enum)?(this.hadDefaultExp
  680. (function () {
  681. var enterModule = require('react-hot-loader').enterModule;
  682. enterModule && enterModule(module);
  683. })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const t=new Set;for(const s of this.tokens.tokens)!s.isType&&Db(s)&&s.identifierRole!==Ne.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(s));const r=Array.from(t).map(s=>({variableName:s,uniqueLocalName:s}));return this.extractedDefaultExportName&&r.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
  684. ;(function () {
  685. var reactHotLoader = require('react-hot-loader').default;
  686. var leaveModule = require('react-hot-loader').leaveModule;
  687. if (!reactHotLoader) {
  688. return;
  689. }
  690. ${r.map(({variableName:s,uniqueLocalName:i})=>` reactHotLoader.register(${s}, "${i}", ${JSON.stringify(this.filePath||"")});`).join(`
  691. `)}
  692. leaveModule(module);
  693. })();`}process(){return!1}}const j3=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function Av(e){if(e.length===0||!ra[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!Ur[e.charCodeAt(t)])return!1;return!j3.has(e)}class U3 extends qr{constructor(t,r,s){super(),this.rootTransformer=t,this.tokens=r,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(p._public)||this.tokens.matches1(p._protected)||this.tokens.matches1(p._private)||this.tokens.matches1(p._abstract)||this.tokens.matches1(p._readonly)||this.tokens.matches1(p._override)||this.tokens.matches1(p.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(p._enum)||this.tokens.matches2(p._const,p._enum)?(this.processEnum(),!0):this.tokens.matches2(p._export,p._enum)||this.tokens.matches3(p._export,p._const,p._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(p._const)||this.tokens.matches1(p._enum);)this.tokens.removeToken();const r=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${r}; (function (${r})`),this.tokens.copyExpectedToken(p.braceL),this.processEnumBody(r),this.tokens.copyExpectedToken(p.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${r} || (exports.${r} = ${r} = {}));`):this.tokens.appendCode(`)(${r} || (${r} = {}));`)}processEnumBody(t){let r=null;for(;!this.tokens.matches1(p.braceR);){const{nameStringCode:s,variableName:i}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(p.eq,p.string,p.comma)||this.tokens.matches3(p.eq,p.string,p.braceR)?this.processStringLiteralEnumMember(t,s,i):this.tokens.matches1(p.eq)?this.processExplicitValueEnumMember(t,s,i):this.processImplicitValueEnumMember(t,s,i,r),this.tokens.matches1(p.comma)&&this.tokens.removeToken(),i!=null?r=i:r=`${t}[${s}]`}}extractEnumKeyInfo(t){if(t.type===p.name){const r=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${r}"`,variableName:Av(r)?r:null}}else if(t.type===p.string){const r=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:Av(r)?r:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,r,s){s!=null?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${r}] = ${s};`)):(this.tokens.appendCode(`${t}[${r}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,r,s){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected rhsEndIndex on enum assign.");if(s!=null){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${t}[${t}[${r}] = ${s}] = ${r};`)}else{for(this.tokens.appendCode(`${t}[${t}[${r}]`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${r};`)}}processImplicitValueEnumMember(t,r,s,i){let o=i!=null?`${i} + 1`:"0";s!=null&&(this.tokens.appendCode(`const ${s} = ${o}; `),o=s),this.tokens.appendCode(`${t}[${t}[${r}] = ${o}] = ${r};`)}}class nc{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,r,s,i){nc.prototype.__init.call(this),nc.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.he
  694. `);return a===-1&&(a=o.length,o+=`
  695. `),{code:o.slice(0,a+1)+r+o.slice(a+1)+s,mappings:this.shiftMappings(i.mappings,r.length)}}else return{code:r+o+s,mappings:this.shiftMappings(i.mappings,r.length)}}processBalancedCode(){let t=0,r=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(p.braceL)||this.tokens.matches1(p.dollarBraceL))t++;else if(this.tokens.matches1(p.braceR)){if(t===0)return;t--}if(this.tokens.matches1(p.parenL))r++;else if(this.tokens.matches1(p.parenR)){if(r===0)return;r--}this.processToken()}}processToken(){if(this.tokens.matches1(p._class)){this.processClass();return}for(const t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(p._class,p.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=I3(this,this.tokens,this.nameManager,this.disableESTransforms),r=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let s=t.headerInfo.className;r&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const o=this.tokens.currentToken().contextId;if(o==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(p._class);!this.tokens.matchesContextIdAndLabel(p.braceL,o);)this.processToken();this.processClassBody(t,s);const a=t.staticInitializerNames.map(h=>`${s}.${h}()`);r?this.tokens.appendCode(`, ${a.map(h=>`${h}, `).join("")}${s})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${a.map(h=>`${h};`).join(" ")}`)}processClassBody(t,r){const{headerInfo:s,constructorInsertPos:i,constructorInitializerStatements:o,fields:a,instanceInitializerNames:h,rangesToRemove:l}=t;let f=0,d=0;const g=this.tokens.currentToken().contextId;if(g==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(p.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const y=o.length+h.length>0;if(i===null&&y){const v=this.makeConstructorInitCode(o,h,r);if(s.hasSuperclass){const w=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${w}) { super(...${w}); ${v}; }`)}else this.tokens.appendCode(`constructor() { ${v}; }`)}for(;!this.tokens.matchesContextIdAndLabel(p.braceR,g);)if(f<a.length&&this.tokens.currentIndex()===a[f].start){let v=!1;for(this.tokens.matches1(p.bracketL)?this.tokens.copyTokenWithPrefix(`${a[f].initializerName}() {this`):this.tokens.matches1(p.string)||this.tokens.matches1(p.num)?(this.tokens.copyTokenWithPrefix(`${a[f].initializerName}() {this[`),v=!0):this.tokens.copyTokenWithPrefix(`${a[f].initializerName}() {this.`);this.tokens.currentIndex()<a[f].end;)v&&this.tokens.currentIndex()===a[f].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),f++}else if(d<l.length&&this.tokens.currentIndex()>=l[d].start){for(this.tokens.currentIndex()<l[d].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<l[d].end;)this.tokens.removeToken();d++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),y&&this.tokens.appendCode(`;${this.makeConstructorInitCode(o,h,r)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(p.braceR)}makeConstructorInitCode(t,r,s){return[...t,...r.map(i=>`${s}.prototype.${i}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(p.parenR,p.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,p.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(H._async)&&!this.tokens.matches1(p._async))return!1;const t=this.tokens.tokenAtRe
  696. `,r="\r",s=function(){function i(o){this.string=o;for(var a=[0],h=0;h<o.length;)switch(o[h]){case t:h+=t.length,a.push(h);break;case r:h+=r.length,o[h]===t&&(h+=t.length),a.push(h);break;default:h++;break}this.offsets=a}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var a=0,h=this.offsets;h[a+1]<=o;)a++;var l=o-h[a];return{line:a,column:l}},i.prototype.indexForLocation=function(o){var a=o.line,h=o.column;return a<0||a>=this.offsets.length||h<0||h>this.lengthOfLine(a)?null:this.offsets[a]+h},i.prototype.lengthOfLine=function(o){var a=this.offsets[o],h=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return h-a},i}();e.LinesAndColumns=s,e.default=s})(q3);function V3(e){const t=new Set;for(let r=0;r<e.tokens.length;r++)e.matches1AtIndex(r,p._import)&&!e.matches3AtIndex(r,p._import,p.name,p.eq)&&W3(e,r,t);return t}function W3(e,t,r){t++,!e.matches1AtIndex(t,p.parenL)&&(e.matches1AtIndex(t,p.name)&&(r.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,p.comma)&&t++),e.matches1AtIndex(t,p.star)&&(t+=2,r.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,p.braceL)&&(t++,G3(e,t,r)))}function G3(e,t,r){for(;;){if(e.matches1AtIndex(t,p.braceR))return;const s=jo(e,t);if(t=s.endIndex,s.isType||r.add(s.rightName),e.matches2AtIndex(t,p.comma,p.braceR))return;if(e.matches1AtIndex(t,p.braceR))return;if(e.matches1AtIndex(t,p.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function z3(e,t){lR(t);try{const r=H3(e,t),i=new nc(r,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform();let o={code:i.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");o={...o,sourceMap:XL(i,t.filePath,t.sourceMapOptions,e,r.tokenProcessor.tokens)}}return o}catch(r){throw t.filePath&&(r.message=`Error transforming ${t.filePath}: ${r.message}`),r}}function H3(e,t){const r=t.transforms.includes("jsx"),s=t.transforms.includes("typescript"),i=t.transforms.includes("flow"),o=t.disableESTransforms===!0,a=P3(e,r,s,i),h=a.tokens,l=a.scopes,f=new D1(e,h),d=new Kl(f),g=new Eo(e,h,i,o,d),y=!!t.enableLegacyTypeScriptModuleInterop;let v=null;return t.transforms.includes("imports")?(v=new En(f,g,y,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,d),v.preprocessTokens(),dv(g,l,v.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&v.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&dv(g,l,V3(g)),{tokenProcessor:g,scopes:l,nameManager:f,importProcessor:v,helperManager:d}}function X3(e,t){for(;e.length<t;)e="0"+e;return e}function ws(e,t){var r,s,i;if(t.length===0)return e;for(r=0,i=t.length;r<i;r++)s=t.charCodeAt(r),e=(e<<5)-e+s,e|=0;return e<0?e*-2:e}function J3(e,t,r){return Object.keys(t).sort().reduce(s,e);function s(i,o){return VE(i,t[o],o,r)}}function VE(e,t,r,s){var i=ws(ws(ws(e,r),K3(t)),typeof t);if(t===null)return ws(i,"null");if(t===void 0)return ws(i,"undefined");if(typeof t=="object"||typeof t=="function"){if(s.indexOf(t)!==-1)return ws(i,"[Circular]"+r);s.push(t);var o=J3(i,t,s);if(!("valueOf"in t)||typeof t.valueOf!="function")return o;try{return ws(o,String(t.valueOf()))}catch(a){return ws(o,"[valueOf exception]"+(a.stack||a.message))}}return ws(i,t.toString())}function K3(e){return Object.prototype.toString.call(e)}function Y3(e){return X3(VE(0,e,"",[]).toString(16),8)}var Q3=Y3;const Z3=zO(Q3),An="__sfc__",e4=/\.[jt]sx?$/;function Iv(e){return!!(e&&/(\.|\b)tsx?$/.test(e))}function Cv(e){return!!(e&&/(\.|\b)[jt]sx$/.test(e))}async function ld(e,t){return z3(e,{transforms:["typescript",...t?["jsx"]:[]],jsxRuntime:"preserve"}).code}async function il(e,{filename:t,code:r,compiled:s}){var F,x,I,R,L,z,J,re,V;if(!r.trim())return[];if(t.endsWith(".css"))return s.css=r,[];if(e4.test(t)){const ee=Cv(t);return Iv(t)&&(r=await ld(r,ee)),ee&&(r=await Jp(()=>import("./jsx-DuZiukum-Ci4WOsQs.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(G=>G.transformJSX(r))),s.js=s.ssr=r,[]}if(t.endsWith(".json")){let ee;try{ee=JSON.pars
  697. `).slice(0,12).join(`
  698. `)]}if(v+=S,a.scriptSetup||a.cssVars.length>0)try{const ee=await Nv(e,a,i,!0,d,g);w+=ee[0]}catch(ee){w=`/* SSR compile error: ${ee} */`}else w+=S;if(a.template&&(!a.scriptSetup||((J=(z=e.sfcOptions)==null?void 0:z.script)==null?void 0:J.inlineTemplate)===!1)){const ee=await Ov(e,a,i,k,!1,d,g);if(Array.isArray(ee))return ee;v+=`;${ee}`;const G=await Ov(e,a,i,k,!0,d,g);typeof G=="string"?w+=`;${G}`:w=`/* SSR compile error: ${G[0]} */`}y&&_(`
  699. ${An}.__scopeId = ${JSON.stringify(`data-v-${i}`)}`);const E=((re=e.sfcOptions.script)==null?void 0:re.customElement)||/\.ce\.vue$/;function P(ee){return typeof ee=="boolean"?ee:typeof ee=="function"?ee(t):ee.test(t)}let O=P(E),A="",M=[];for(const ee of a.styles){if(ee.module)return["<style module> is not supported in the playground."];const G=await e.compiler.compileStyleAsync({...(V=e.sfcOptions)==null?void 0:V.style,source:ee.content,filename:t,id:i,scoped:ee.scoped,modules:!!ee.module});G.errors.length?G.errors[0].message.includes("pathToFileURL")||(e.errors=G.errors):O?M.push(G.code):A+=G.code+`
  700. `}if(A?s.css=A.trim():s.css=O?s.css="/* The component style of the custom element will be compiled into the component object */":"/* No <style> tags present */",v||w){const ee=O?`
  701. ${An}.styles = ${JSON.stringify(M)}`:"";_(`
  702. ${An}.__file = ${JSON.stringify(t)}`+ee+`
  703. export default ${An}`),s.js=v.trimStart(),s.ssr=w.trimStart()}return[]}async function Nv(e,t,r,s,i,o){var a,h,l,f;if(t.script||t.scriptSetup){const d=[];i&&d.push("typescript"),o&&d.push("jsx");const g=e.compiler.compileScript(t,{inlineTemplate:!0,...(a=e.sfcOptions)==null?void 0:a.script,id:r,genDefaultAs:An,templateOptions:{...(h=e.sfcOptions)==null?void 0:h.template,ssr:s,ssrCssVars:t.cssVars,compilerOptions:{...(f=(l=e.sfcOptions)==null?void 0:l.template)==null?void 0:f.compilerOptions,expressionPlugins:d}}});let y=g.content;return i&&(y=await ld(y,o)),o&&(y=await Jp(()=>import("./jsx-DuZiukum-Ci4WOsQs.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(v=>v.transformJSX(y))),g.bindings&&(y=`/* Analyzed bindings: ${JSON.stringify(g.bindings,null,2)} */
  704. `+y),[y,g.bindings]}else return[`
  705. const ${An} = {}`,void 0]}async function Ov(e,t,r,s,i,o,a){var g,y,v;const h=[];o&&h.push("typescript"),a&&h.push("jsx");let{code:l,errors:f}=e.compiler.compileTemplate({isProd:!1,...(g=e.sfcOptions)==null?void 0:g.template,ast:t.template.ast,source:t.template.content,filename:t.filename,id:r,scoped:t.styles.some(w=>w.scoped),slotted:t.slotted,ssr:i,ssrCssVars:t.cssVars,compilerOptions:{...(v=(y=e.sfcOptions)==null?void 0:y.template)==null?void 0:v.compilerOptions,bindingMetadata:s,expressionPlugins:h}});if(f.length)return f;const d=i?"ssrRender":"render";return l=`
  706. ${l.replace(/\nexport (function|const) (render|ssrRender)/,`$1 ${d}`)}
  707. ${An}.${d} = ${d}`,o&&(l=await ld(l,a)),a&&(l=await Jp(()=>import("./jsx-DuZiukum-Ci4WOsQs.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(w=>w.transformJSX(l))),l}function t4(e={}){function t(o){if(o)return typeof o=="string"?o:o()}const r=Pt(!1),s=Pt(e.vueVersion||null),i=os(()=>{const o=!s.value&&t(r.value?e.runtimeProd:e.runtimeDev)||`https://cdn.jsdelivr.net/npm/@vue/runtime-dom@${s.value||Su}/dist/runtime-dom.esm-browser${r.value?".prod":""}.js`,a=!s.value&&t(e.serverRenderer)||`https://cdn.jsdelivr.net/npm/@vue/server-renderer@${s.value||Su}/dist/server-renderer.esm-browser.js`;return{imports:{vue:o,"vue/server-renderer":a}}});return{productionMode:r,importMap:i,vueVersion:s,defaultVersion:Su}}function Lv(e,t){return{imports:{...e.imports,...t.imports},scopes:{...e.scopes,...t.scopes}}}const Jh=`<script setup>
  708. import { ref } from 'vue'
  709. const msg = ref('Hello World!')
  710. <\/script>
  711. <template>
  712. <h1>{{ msg }}</h1>
  713. <input v-model="msg" />
  714. </template>
  715. `,r4=`<script setup><\/script>
  716. <template>
  717. <div>
  718. <slot />
  719. </div>
  720. </template>
  721. `,Sr="import-map.json",es="tsconfig.json";function s4({files:e=Pt(Object.create(null)),activeFilename:t=void 0,mainFile:r=Pt("src/App.vue"),template:s=Pt({welcomeSFC:Jh,newSFC:r4}),builtinImportMap:i=void 0,errors:o=Pt([]),showOutput:a=Pt(!1),outputMode:h=Pt("preview"),sfcOptions:l=Pt({}),compiler:f=NT(sv),vueVersion:d=Pt(null),locale:g=Pt(),typescriptVersion:y=Pt("5.3.2"),dependencyVersion:v=Pt(Object.create(null)),reloadLanguageTools:w=Pt()}={},_){i||({importMap:i,vueVersion:d}=t4({vueVersion:d.value}));const S=Pt(!1);function k(){const G=Lv(i.value,x());P(G)}function E(){$v(()=>{il(ee,V.value).then(G=>o.value=G)}),zs(()=>{var G;return[(G=e.value[es])==null?void 0:G.code,y.value,g.value,v.value,d.value]},()=>{var G;return(G=w.value)==null?void 0:G.call(w)},{deep:!0}),zs(i,()=>{P(Lv(x(),i.value))},{deep:!0}),zs(d,async G=>{if(G){const Q=`https://cdn.jsdelivr.net/npm/@vue/compiler-sfc@${G}/dist/compiler-sfc.esm-browser.js`;S.value=!0,f.value=await import(Q).finally(()=>S.value=!1),console.info(`[@vue/repl] Now using Vue version: ${G}`)}else f.value=sv,console.info("[@vue/repl] Now using default Vue version")},{immediate:!0}),zs(l,()=>{var G;(G=l.value).script||(G.script={}),l.value.script.fs={fileExists(Q){return Q.startsWith("/")&&(Q=Q.slice(1)),!!ee.files[Q]},readFile(Q){return Q.startsWith("/")&&(Q=Q.slice(1)),ee.files[Q].code}}},{immediate:!0}),e.value[es]||(e.value[es]=new bl(es,JSON.stringify(n4,void 0,2))),o.value=[];for(const[G,Q]of Object.entries(e.value))G!==r.value&&il(ee,Q).then(ie=>o.value.push(...ie))}function P(G){if(G.imports)for(const[ie,ce]of Object.entries(G.imports))ce&&(G.imports[ie]=i4(ce));const Q=JSON.stringify(G,void 0,2);e.value[Sr]?e.value[Sr].code=Q:e.value[Sr]=new bl(Sr,Q)}const O=G=>{t.value=G},A=G=>{let Q;typeof G=="string"?Q=new bl(G,G.endsWith(".vue")?s.value.newSFC:""):Q=G,e.value[Q.filename]=Q,Q.hidden||O(Q.filename)},M=G=>{confirm(`Are you sure you want to delete ${xo(G)}?`)&&(t.value===G&&(t.value=r.value),delete e.value[G])},F=(G,Q)=>{const ie=e.value[G];if(!ie){o.value=[`Could not rename "${G}", file not found`];return}if(!Q||G===Q){o.value=[`Cannot rename "${G}" to "${Q}"`];return}ie.filename=Q;const ce={};for(const[ne,W]of Object.entries(e.value))ne===G?ce[Q]=W:ce[ne]=W;e.value=ce,r.value===G&&(r.value=Q),t.value===G?t.value=Q:il(ee,ie).then(ne=>o.value=ne)},x=()=>{try{return JSON.parse(e.value[Sr].code)}catch(G){return o.value=[`Syntax error in ${Sr}: ${G.message}`],{}}},I=()=>{try{return JSON.parse(e.value[es].code)}catch{return{}}},R=()=>{const G=z(),Q=G[Sr];if(Q){const ie=JSON.parse(Q),ce=i.value.imports||{};if(ie.imports){for(const[ne,W]of Object.entries(ie.imports))ce[ne]===W&&delete ie.imports[ne];ie.imports&&!Object.keys(ie.imports).length&&delete ie.imports}ie.scopes&&!Object.keys(ie.scopes).length&&delete ie.scopes,Object.keys(ie).length?G[Sr]=JSON.stringify(ie,null,2):delete G[Sr]}return d.value&&(G._version=d.value),"#"+t0(JSON.stringify(G))},L=G=>{G.startsWith("#")&&(G=G.slice(1));let Q;try{Q=JSON.parse(r0(G))}catch(ie){return console.error(ie),alert("Failed to load code from URL."),re()}for(const ie in Q)ie==="_version"?d.value=Q[ie]:ol(e.value,ie,Q[ie])},z=()=>{const G={};for(const[Q,ie]of Object.entries(e.value)){const ce=xo(Q);G[ce]=ie.code}return G},J=async(G,Q=ee.mainFile)=>{const ie=Object.create(null);Q=WE(Q),G[Q]||ol(ie,Q,s.value.welcomeSFC||Jh);for(const[ne,W]of Object.entries(G))ol(ie,ne,W);const ce=[];for(const ne of Object.values(ie))ce.push(...await il(ee,ne));ee.mainFile=Q,ee.files=ie,ee.errors=ce,k(),O(ee.mainFile)},re=()=>{ol(e.value,r.value,s.value.welcomeSFC||Jh)};re(),e.value[r.value]||(r.value=Object.keys(e.value)[0]),t||(t=Pt(r.value));const V=os(()=>e.value[t.value]);k();const ee=Dv({files:e,activeFile:V,activeFilename:t,mainFile:r,template:s,builtinImportMap:i,errors:o,showOutput:a,outputMode:h,sfcOptions:l,compiler:f,loading:S,vueVersion:d,locale:g,typescriptVersion:y,dependencyVersion:v,reloadLanguageTools:w,init:E,setActive:O,addFile:A,deleteFile:M,renameFile:F,getImportMap:x,getTsConfig:I,serialize:R,deserialize:L,getFiles:z,setFiles:J});r