mirror of
https://github.com/meshcore-dev/flasher.meshcore.dev.git
synced 2026-04-20 22:13:50 +00:00
25 lines
258 KiB
JavaScript
25 lines
258 KiB
JavaScript
|
|
function makeMap(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const EMPTY_OBJ=Object.freeze({}),EMPTY_ARR=Object.freeze([]),NOOP=()=>{},NO=()=>!1,isOn=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(122<e.charCodeAt(2)||e.charCodeAt(2)<97),isModelListener=e=>e.startsWith("onUpdate:"),extend=Object.assign,remove=(e,t)=>{t=e.indexOf(t);-1<t&&e.splice(t,1)},hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty$1.call(e,t),isArray=Array.isArray,isMap=e=>"[object Map]"===toTypeString(e),isSet=e=>"[object Set]"===toTypeString(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isSymbol=e=>"symbol"==typeof e,isObject=e=>null!==e&&"object"==typeof e,isPromise=e=>(isObject(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject=e=>"[object Object]"===toTypeString(e),isIntegerKey=e=>isString(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),isBuiltInDirective=makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),cacheStringFunction=t=>{const n=Object.create(null);return e=>{return n[e]||(n[e]=t(e))}},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(e,t)=>t?t.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>{return e?"on"+capitalize(e):""}),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(t,...n)=>{for(let e=0;e<t.length;e++)t[e](...n)},def=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},looseToNumber=e=>{var t=parseFloat(e);return isNaN(t)?e:t},toNumber=e=>{var t=isString(e)?Number(e):NaN;return isNaN(t)?e:t};let _globalThis;const getGlobalThis=()=>_globalThis=_globalThis||("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function genCacheKey(e,t){return e+JSON.stringify(t,(e,t)=>"function"==typeof t?t.toString():t)}const PatchFlagNames={[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"},slotFlagsText={[1]:"STABLE",2:"DYNAMIC",3:"FORWARDED"},GLOBALS_ALLOWED="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",isGloballyAllowed=makeMap(GLOBALS_ALLOWED),range=2;function generateCodeFrame(e,n=0,r=e.length){if(n=Math.max(0,Math.min(n,e.length)),(r=Math.max(0,Math.min(r,e.length)))<n)return"";let o=e.split(/(\r?\n)/);var s,i,a,l,c=o.filter((e,t)=>t%2==1);o=o.filter((e,t)=>t%2==0);let p=0;const d=[];for(let t=0;t<o.length;t++)if((p+=o[t].length+(c[t]&&c[t].length||0))>=n){for(let e=t-range;e<=t+range||r>p;e++)e<0||e>=o.length||(s=e+1,d.push(""+s+" ".repeat(Math.max(3-String(s).length,0))+"| "+o[e]),s=o[e].length,i=c[e]&&c[e].length||0,e===t?(l=n-(p-(s+i)),a=Math.max(1,r>p?s-l:r-n),d.push(" | "+" ".repeat(l)+"^".repeat(a))):e>t&&(r>p&&(l=Math.max(Math.min(r-p,s),1),d.push(" | "+"^".repeat(l))),p+=s+i));break}return d.join("\n")}function normalizeStyle(t){if(isArray(t)){const o={};for(let e=0;e<t.length;e++){var n=t[e],r=(isString(n)?parseStringStyle:normalizeStyle)(n);if(r)for(const s in r)o[s]=r[s]}return o}if(isString(t)||isObject(t))return t}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStri
|
||
|
|
`,...formatTrace(o)),console.warn(...s)}resetTracking(),isWarning=!1}}function getComponentTrace(){let e=stack$1[stack$1.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});var n=e.component&&e.component.parent;e=n&&n.vnode}return t}function formatTrace(e){const n=[];return e.forEach((e,t)=>{n.push(...0===t?[]:[`
|
||
|
|
`],...formatTraceEntry(e))}),n}function formatTraceEntry({vnode:e,recurseCount:t}){var t=0<t?`... (${t} recursive calls)`:"",n=!!e.component&&null==e.component.parent,n=" at <"+formatComponentName(e.component,e.type,n),t=">"+t;return e.props?[n,...formatProps(e.props),t]:[n+t]}function formatProps(t){const n=[],e=Object.keys(t);return e.slice(0,3).forEach(e=>{n.push(...formatProp(e,t[e]))}),3<e.length&&n.push(" ..."),n}function formatProp(e,t,n){return isString(t)?(t=JSON.stringify(t),n?t:[e+"="+t]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[e+"="+t]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),n?t:[e+"=Ref<",t,">"]):isFunction(t)?[e+"=fn"+(t.name?`<${t.name}>`:"")]:(t=toRaw(t),n?t:[e+"=",t])}function assertNumber(e,t){void 0!==e&&("number"!=typeof e?warn$1(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&warn$1(t+" is NaN - the duration expression might be incorrect."))}const ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ErrorTypeStrings$1={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function callWithErrorHandling(e,t,n,r){try{return r?e(...r):e()}catch(e){handleError(e,t,n)}}function callWithAsyncErrorHandling(t,n,r,o){if(isFunction(t)){const e=callWithErrorHandling(t,n,r,o);return e&&isPromise(e)&&e.catch(e=>{handleError(e,n,r)}),e}if(isArray(t)){const s=[];for(let e=0;e<t.length;e++)s.push(callWithAsyncErrorHandling(t[e],n,r,o));return s}warn$1("Invalid value type passed to callWithAsyncErrorHandling(): "+typeof t)}function handleError(t,n,r,e=!0){var o=n?n.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=n&&n.appContext.config||EMPTY_OBJ;if(n){let e=n.parent;for(var a=n.proxy,l=ErrorTypeStrings$1[r];e;){const c=e.ec;if(c)for(let e=0;e<c.length;e++)if(!1===c[e](t,a,l))return;e=e.parent}if(s)return pauseTracking(),callWithErrorHandling(s,null,10,[t,a,l]),void resetTracking()}logError(t,r,o,e,i)}function logError(e,t,n,r=!0,o){t=ErrorTypeStrings$1[t];if(n&&pushWarningContext(n),warn$1("Unhandled error"+(t?" during execution of "+t:"")),n&&popWarningContext(),r)throw e;console.error(e)}const queue=[];let flushIndex=-1;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;const RECURSION_LIMIT=100;function nextTick(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,n=queue.length;for(;t<n;){var r=t+n>>>1,o=queue[r],s=getId(o);s<e||s===e&&2&o.flags?t=1+r:n=r}return t}function queueJob(e){var t,n;1&e.flags||(t=getId(e),!(n=queue[queue.length-1])||!(2&e.flags)&&t>=getId(n)?queue.push(e):queue.splice(findInsertionIndex(t),0,e),e.flags|=1,queueFlush())}function queueFlush(){currentFlushPromise=currentFlushPromise||resolvedPromise.then(flushJobs)}function queuePostFlushCb(e){isArray(e)?pendingPostFlushCbs.push(...e):activePostFlushCbs&&-1===e.id?activePostFl
|
||
|
|
- rendered on server: ${JSON.stringify(t.data)}
|
||
|
|
- expected on client: `+JSON.stringify(n.children)),logMismatchError(),t.data=n.children),b(t));break;case Comment:N(t)?(h=b(t),k(n.el=t.content.firstChild,t,e)):h=8!==u||i?a():b(t);break;case Static:if(i&&(t=b(t),u=t.nodeType),1===u||3===u){h=t;var f=!n.children.length;for(let e=0;e<n.staticCount;e++)f&&(n.children+=1===h.nodeType?h.outerHTML:h.data),e===n.staticCount-1&&(n.anchor=h),h=b(h);return i?b(h):h}a();break;case Fragment:h=i?R(t,n,e,r,o,s):a();break;default:if(1&p)h=1===u&&n.type.toLowerCase()===t.tagName.toLowerCase()||N(t)?_(t,n,e,r,o,s):a();else if(6&p){n.slotScopeIds=o;var m=E(t);if(h=i?A(t):isComment(t)&&"teleport start"===t.data?A(t,t.data,"teleport end"):b(t),v(n,m,null,e,r,getContainerType(m),s),isAsyncWrapper(n)&&!n.type.__asyncResolved){let e;i?(e=createVNode(Fragment)).anchor=h?h.previousSibling:m.lastChild:e=3===t.nodeType?createTextVNode(""):createVNode("div"),e.el=t,n.component.subTree=e}}else 64&p?h=8!==u?a():n.type.hydrate(t,n,e,r,o,s,g,w):128&p?h=n.type.hydrate(t,n,e,r,getContainerType(E(t)),o,s,g,x):warn$1("Invalid HostVNode type:",l,`(${typeof l})`)}return null!=c&&setRef(c,null,r,n),h},_=(n,r,o,s,i,a)=>{a=a||!!r.dynamicChildren;const{type:e,props:l,shapeFlag:c,dirs:p,transition:d}=r;var u,h="input"===e||"option"===e;{p&&invokeDirectiveHook(r,null,o,"created");let e=!1;if(N(n)&&(e=needTransition(null,d)&&o&&o.vnode.props&&o.vnode.props.appear,u=n.content.firstChild,e&&d.beforeEnter(u),k(u,n,o),r.el=n=u),16&c&&(!l||!l.innerHTML&&!l.textContent)){let e=w(n.firstChild,r,n,o,s,i,a),t=!1;for(;e;){isMismatchAllowed(n,1)||(t||(warn$1("Hydration children mismatch on",n,`
|
||
|
|
Server rendered element contains more child nodes than client vdom.`),t=!0),logMismatchError());var f=e;e=e.nextSibling,C(f)}}else if(8&c){let e=r.children;"\n"!==e[0]||"PRE"!==n.tagName&&"TEXTAREA"!==n.tagName||(e=e.slice(1)),n.textContent!==e&&(isMismatchAllowed(n,0)||(warn$1("Hydration text content mismatch on",n,`
|
||
|
|
- rendered on server: ${n.textContent}
|
||
|
|
- expected on client: `+r.children),logMismatchError()),n.textContent=r.children)}if(l){var m=n.tagName.includes("-");for(const g in l)p&&p.some(e=>e.dir.created)||!propHasMismatch(n,g,l[g],r,o)||logMismatchError(),(h&&(g.endsWith("value")||"indeterminate"===g)||isOn(g)&&!isReservedProp(g)||"."===g[0]||m)&&y(n,g,null,l[g],void 0,o)}let t;(t=l&&l.onVnodeBeforeMount)&&invokeVNodeHook(t,o,r),p&&invokeDirectiveHook(r,null,o,"beforeMount"),((t=l&&l.onVnodeMounted)||p||e)&&queueEffectWithSuspense(()=>{t&&invokeVNodeHook(t,o,r),e&&d.enter(n),p&&invokeDirectiveHook(r,null,o,"mounted")},s)}return n.nextSibling},w=(t,e,n,r,o,s,i)=>{i=i||!!e.dynamicChildren;const a=e.children;var l=a.length;let c=!1;for(let e=0;e<l;e++){const d=i?a[e]:a[e]=normalizeVNode(a[e]);var p=d.type===Text;t?(p&&!i&&e+1<l&&normalizeVNode(a[e+1]).type===Text&&(T(S(t.data.slice(d.children.length)),n,b(t)),t.data=d.children),t=x(t,d,r,o,s,i)):p&&!d.children?T(d.el=S(""),n):(isMismatchAllowed(n,1)||(c||(warn$1("Hydration children mismatch on",n,`
|
||
|
|
Server rendered element contains fewer child nodes than client vdom.`),c=!0),logMismatchError()),u(null,d,n,null,r,o,getContainerType(n),s))}return t},R=(e,t,n,r,o,s)=>{var i=t["slotScopeIds"],i=(i&&(o=o?o.concat(i):i),E(e)),e=w(b(e),t,i,n,r,o,s);return e&&isComment(e)&&"]"===e.data?b(t.anchor=e):(logMismatchError(),T(t.anchor=a("]"),i,e),e)},O=(e,t,n,r,o,s)=>{if(isMismatchAllowed(e.parentElement,1)||(warn$1(`Hydration node mismatch:
|
||
|
|
- rendered on server:`,e,3===e.nodeType?"(text)":isComment(e)&&"["===e.data?"(start of fragment)":"",`
|
||
|
|
- expected on client:`,t.type),logMismatchError()),t.el=null,s)for(var i=A(e);;){var a=b(e);if(!a||a===i)break;C(a)}var s=b(e),l=E(e);return C(e),u(null,t,l,s,n,r,getContainerType(l),o),n&&(n.vnode.el=t.el,updateHOCHostEl(n,t.el)),s},A=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=b(e))&&isComment(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return b(e);r--}return e},k=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},N=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return warn$1("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),u(null,e,t),flushPostFlushCbs(),void(t._vnode=e);x(t.firstChild,e,null,null,null),flushPostFlushCbs(),t._vnode=e},x]}function propHasMismatch(e,t,n,r,o){let s,i,a,l;if("class"===t)a=e.getAttribute("class"),l=normalizeClass(n),isSetEqual(toClassSet(a||""),toClassSet(l))||(s=2,i="class");else if("style"===t){a=e.getAttribute("style")||"",l=isString(n)?n:stringifyStyle(normalizeStyle(n));var c=toStyleMap(a);const u=toStyleMap(l);if(r.dirs)for(var{dir:p,value:d}of r.dirs)"show"!==p.name||d||u.set("display","none");o&&resolveCssVars(o,r,u),isMapEqual(c,u)||(s=3,i="style")}else(e instanceof SVGElement&&isKnownSvgAttr(t)||e instanceof HTMLElement&&(isBooleanAttr(t)||isKnownHtmlAttr(t)))&&(l=isBooleanAttr(t)?(a=e.hasAttribute(t),includeBooleanAttr(n)):null==n?(a=e.hasAttribute(t),!1):(a=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,!!isRenderableAttrValue(n)&&String(n)),a!==l&&(s=4,i=t));return null!=s&&!isMismatchAllowed(e,s)&&(o=e=>!1===e?"(not rendered)":i+`="${e}"`,warn$1(`Hydration ${MismatchTypeString[s]} mismatch on`,e,`
|
||
|
|
- rendered on server: ${o(a)}
|
||
|
|
- expected on client: ${o(l)}
|
||
|
|
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
|
||
|
|
You should fix the source of the mismatch.`),!0)}function toClassSet(e){return new Set(e.trim().split(/\s+/))}function isSetEqual(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function toStyleMap(e){const n=new Map;for(const r of e.split(";")){let[e,t]=r.split(":");e=e.trim(),t=t&&t.trim(),e&&t&&n.set(e,t)}return n}function isMapEqual(e,t){if(e.size!==t.size)return!1;for(var[n,r]of e)if(r!==t.get(n))return!1;return!0}function resolveCssVars(e,t,n){const r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===Fragment&&r.children.includes(t))){var o=e.getCssVars();for(const s in o)n.set("--"+getEscapedCssVarName(s),String(o[s]))}t===r&&e.parent&&resolveCssVars(e.parent,e.vnode,n)}const allowMismatchAttr="data-allow-mismatch",MismatchTypeString={[0]:"text",1:"children",2:"class",3:"style",4:"attribute"};function isMismatchAllowed(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(allowMismatchAttr);)e=e.parentElement;const n=e&&e.getAttribute(allowMismatchAttr);if(null==n)return!1;if(""===n)return!0;{const r=n.split(",");return 0===t&&r.includes("children")?!0:n.split(",").includes(MismatchTypeString[t])}}const requestIdleCallback=getGlobalThis().requestIdleCallback||(e=>setTimeout(e,1)),cancelIdleCallback=getGlobalThis().cancelIdleCallback||(e=>clearTimeout(e)),hydrateOnIdle=(n=1e4)=>e=>{const t=requestIdleCallback(e,{timeout:n});return()=>cancelIdleCallback(t)};function elementIsVisibleInViewport(e){var{top:e,left:t,bottom:n,right:r}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:s}=window;return(0<e&&e<o||0<n&&n<o)&&(0<t&&t<s||0<r&&r<s)}const hydrateOnVisible=t=>(n,e)=>{const r=new IntersectionObserver(e=>{for(const t of e)if(t.isIntersecting){r.disconnect(),n();break}},t);return e(e=>{if(e instanceof Element)return elementIsVisibleInViewport(e)?(n(),r.disconnect(),!1):void r.observe(e)}),()=>r.disconnect()},hydrateOnMediaQuery=n=>e=>{if(n){const t=matchMedia(n);if(!t.matches)return t.addEventListener("change",e,{once:!0}),()=>t.removeEventListener("change",e);e()}},hydrateOnInteraction=(s=[])=>(t,e)=>{isString(s)&&(s=[s]);let n=!1;const r=e=>{n||(n=!0,o(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},o=()=>{e(e=>{for(const t of s)e.removeEventListener(t,r)})};return e(e=>{for(const t of s)e.addEventListener(t,r,{once:!0})}),o};function forEachElement(n,r){if(isComment(n)&&"["===n.data){let e=1,t=n.nextSibling;for(;t;){if(1===t.nodeType){if(!1===r(t))break}else if(isComment(t))if("]"===t.data){if(0==--e)break}else"["===t.data&&e++;t=t.nextSibling}}else r(n)}const isAsyncWrapper=e=>!!e.type.__asyncLoader;function defineAsyncComponent(e){const{loader:n,loadingComponent:s,errorComponent:i,delay:a=200,hydrate:o,timeout:l,suspensible:c=!0,onError:r}=e=isFunction(e)?{loader:e}:e;let p=null,d,u=0;const h=()=>{let t;return p||(t=p=n().catch(n=>{if(n=n instanceof Error?n:new Error(String(n)),r)return new Promise((e,t)=>{r(n,()=>e((u++,p=null,h())),()=>t(n),u+1)});throw n}).then(e=>{if(t!==p&&p)return p;if(e||warn$1("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),!(e=e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?e.default:e)||isObject(e)||isFunction(e))return d=e;throw new Error("Invalid async component load result: "+e)}))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(t,n,r){const e=o?()=>{var e=o(r,e=>forEachElement(t,e));e&&(n.bum||(n.bum=[])).push(e)}:r;d?e():h().then(()=>!n.isUnmounted&&e())},get __asyncResolved(){return d},setup(){const t=currentInstance;if(markAsyncBoundary(t),d)return()=>createInnerComp(d,t);const n=e=>{p=null,handleError(e,t,13,!i)};if(c&&t.suspense||isInSSRComponentSetup)return h().then(e=>()=>createInnerComp(e,t)).catch(e=>(n(e),()=>i?createVNode(i,{error:e}):null));const r=ref(!1),o=ref(),e=ref(!!a);return a&&setTimeout(()=>{e.value=!1},a),null!=l&&setTimeout(()=>{var e;r.value||o.value||(e=new Error(`Async component timed out after ${l}ms.`),n(e),o.value=e)},l),h().then(()=>{r.value=!0,t.parent&&isKeepAlive(t.parent.vnode)&&t.parent.update()}).catch(e
|
||
|
|
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"",warn$1(`Failed to resolve ${e.slice(0,-1)}: `+t+o)),i)}warn$1(`resolve${capitalize(e.slice(0,-1))} can only be used in render() or setup().`)}function resolve(e,t){return e&&(e[t]||e[camelize(t)]||e[capitalize(camelize(t))])}function renderList(r,o,e,t){let s;const i=e&&e[t];var a=isArray(r);if(a||isString(r)){let n=!1;a&&isReactive(r)&&(n=!isShallow(r),r=shallowReadArray(r)),s=new Array(r.length);for(let e=0,t=r.length;e<t;e++)s[e]=o(n?toReactive(r[e]):r[e],e,void 0,i&&i[e])}else if("number"==typeof r){Number.isInteger(r)||warn$1(`The v-for range expect an integer value but got ${r}.`),s=new Array(r);for(let e=0;e<r;e++)s[e]=o(e+1,e,void 0,i&&i[e])}else if(isObject(r))if(r[Symbol.iterator])s=Array.from(r,(e,t)=>o(e,t,void 0,i&&i[t]));else{var n=Object.keys(r);s=new Array(n.length);for(let e=0,t=n.length;e<t;e++){var l=n[e];s[e]=o(r[l],l,e,i&&i[e])}}else s=[];return e&&(e[t]=s),s}function createSlots(t,n){for(let e=0;e<n.length;e++){const r=n[e];if(isArray(r))for(let e=0;e<r.length;e++)t[r[e].name]=r[e].fn;else r&&(t[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return t}function renderSlot(e,t,n={},r,o){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.ce)return"default"!==t&&(n.name=t),openBlock(),createBlock(Fragment,null,[createVNode("slot",n,r&&r())],64);let s=e[t];s&&1<s.length&&(warn$1("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),openBlock();var i=s&&ensureValidVNode(s(n)),n=n.key||i&&i.key;const a=createBlock(Fragment,{key:(n&&!isSymbol(n)?n:"_"+t)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&1===e._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ensureValidVNode(e){return e.some(e=>!isVNode(e)||e.type!==Comment&&!(e.type===Fragment&&!ensureValidVNode(e.children)))?e:null}function toHandlers(e,t){const n={};if(!isObject(e))return warn$1("v-on with no argument expects an object value."),n;for(const r in e)n[t&&/[A-Z]/.test(r)?"on:"+r:toHandlerKey(r)]=e[r];return n}const getPublicInstance=e=>e?isStatefulComponent(e)?getComponentPublicInstance(e):getPublicInstance(e.parent):null,publicPropertiesMap=extend(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>shallowReadonly(e.props),$attrs:e=>shallowReadonly(e.attrs),$slots:e=>shallowReadonly(e.slots),$refs:e=>shallowReadonly(e.refs),$parent:e=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||(e.f=()=>{queueJob(e.update)}),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>instanceWatch.bind(e)}),isReservedPrefix=e=>"_"===e||"$"===e,hasSetupBinding=(e,t)=>e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn(e,t),PublicInstanceProxyHandlers={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;if("__isVue"===t)return!0;if("$"!==t[0]){var c=i[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(hasSetupBinding(r,t))return i[t]=1,r[t];if(o!==EMPTY_OBJ&&hasOwn(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&hasOwn(c,t))return i[t]=3,s[t];if(n!==EMPTY_OBJ&&hasOwn(n,t))return i[t]=4,n[t];shouldCacheAccess&&(i[t]=0)}}const p=publicPropertiesMap[t];let d,u;return p?("$attrs"===t?(track(e.attrs,"get",""),markAttrsAccessed()):"$slots"===t&&track(e,"get",t),p(e)):(d=a.__cssModules)&&(d=d[t])?d:n!==EMPTY_OBJ&&hasOwn(n,t)?(i[t]=4,n[t]):(u=l.config.globalProperties,hasOwn(u,t)?u[t]:void(!currentRenderingInstance||isString(t)&&0===t.indexOf("__v")||(o!==EMPTY_OBJ&&isReservedPrefix(t[0])&&hasOwn(o,t)?warn$1(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is n
|
||
|
|
Component that was made reactive: `,e=toRaw(e)),createBaseVNode(e,n,t,r,o,i,s,!0)}function guardReactiveProps(e){return e?isProxy(e)||isInternalObject(e)?extend({},e):e:null}function cloneVNode(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e;var c=t?mergeProps(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&normalizeKey(c),ref:t&&t.ref?n&&s?isArray(s)?s.concat(normalizeRef(t)):[s,normalizeRef(t)]:normalizeRef(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:-1===i&&isArray(a)?a.map(deepCloneVNode):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&setTransitionHooks(c,l.clone(c)),c}function deepCloneVNode(e){const t=cloneVNode(e);return isArray(e.children)&&(t.children=e.children.map(deepCloneVNode)),t}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function createStaticVNode(e,t){const n=createVNode(Static,null,e);return n.staticCount=t,n}function createCommentVNode(e="",t=!1){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return null==e||"boolean"==typeof e?createVNode(Comment):isArray(e)?createVNode(Fragment,null,e.slice()):isVNode(e)?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let n=0;var r=e["shapeFlag"];if(null==t)t=null;else if(isArray(t))n=16;else if("object"==typeof t){if(65&r){const s=t.default;return void(s&&(s._c&&(s._d=!1),normalizeChildren(e,s()),s._c&&(s._d=!0)))}n=32;var o=t._;o||isInternalObject(t)?3===o&¤tRenderingInstance&&(1===currentRenderingInstance.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=currentRenderingInstance}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},n=32):(t=String(t),64&r?(n=16,t=[createTextVNode(t)]):n=8);e.children=t,e.shapeFlag|=n}function mergeProps(...t){const n={};for(let e=0;e<t.length;e++){var r=t[e];for(const s in r)if("class"===s)n.class!==r.class&&(n.class=normalizeClass([n.class,r.class]));else if("style"===s)n.style=normalizeStyle([n.style,r.style]);else if(isOn(s)){const i=n[s];var o=r[s];!o||i===o||isArray(i)&&i.includes(o)||(n[s]=i?[].concat(i,o):o)}else""!==s&&(n[s]=r[s])}return n}function invokeVNodeHook(e,t,n,r=null){callWithAsyncErrorHandling(e,t,7,[n,r])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(e,t,n){var r=e.type,o=(t||e).appContext||emptyAppContext;const s={uid:uid++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(r,o),emitsOptions:normalizeEmitsOptions(r,o),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:r.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx=createDevRenderContext(s),s.root=t?t.root:s,s.emit=emit.bind(null,s),e.ce&&e.ce(s),s}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const lK=getGlobalThis(),mK=(e,t)=>{let n;return(n=(n=lK[e])?n:lK[e]=[]).push(t),t=>{1
|
||
|
|
Expected function or array of functions, received type ${typeof e}.`),NOOP)}function patchStopImmediatePropagation(e,t){if(isArray(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(t=>e=>!e._stopped&&t&&t(e))}return t}const isNativeOn=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&96<e.charCodeAt(2)&&e.charCodeAt(2)<123,patchProp=(e,t,n,r,o,s)=>{o="svg"===o;"class"===t?patchClass(e,r,o):"style"===t?patchStyle(e,n,r):isOn(t)?isModelListener(t)||patchEvent(e,t,n,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):shouldSetAsProp(e,t,r,o))?(patchDOMProp(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||patchAttr(e,t,r,o,s,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&isString(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),patchAttr(e,t,r,o)):patchDOMProp(e,camelize(t),r,s,t)};function shouldSetAsProp(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&isNativeOn(t)&&isFunction(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){r=e.tagName;if("IMG"===r||"VIDEO"===r||"CANVAS"===r||"SOURCE"===r)return!1}return(!isNativeOn(t)||!isString(n))&&t in e}const REMOVAL={};function defineCustomElement(e,t,n){const r=defineComponent(e,t);isPlainObject(r)&&extend(r,t);class o extends VueElement{constructor(e){super(r,e,n)}}return o.def=r,o}const defineSSRCustomElement=(e,t)=>defineCustomElement(e,t,createSSRApp),BaseClass="undefined"!=typeof HTMLElement?HTMLElement:class{};class VueElement extends BaseClass{constructor(e,t={},n=createApp){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==createApp?this._root=this.shadowRoot:(this.shadowRoot&&warn("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),!1!==e.shadowRoot?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this),this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(this.isConnected){this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof VueElement){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(!this._pendingResolve){for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(e=>{for(const t of e)this._setAttr(t.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;var{props:n,styles:r}=e;let o;if(n&&!isArray(n))for(const i in n){var s=n[i];(s===Number||s&&s.type===Number)&&(i in this._props&&(this._props[i]=toNumber(this._props[i])),(o=o||Object.create(null))[camelize(i)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this.shadowRoot?this._applyStyles(r):r&&warn("Custom element style injection is not supported when using shadowRoot: false"),this._mount(e)},e=this._def.__asyncLoader;e?this._pendingResolve=e().then(e=>t(this._def=e,!0)):t(this._def)}}_mount(e){e.name||(e.name="VueElement"),this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.
|
||
|
|
Make sure to use the production build (*.prod.js) when deploying for production.`),initCustomFormatter()}const FRAGMENT=Symbol("Fragment"),TELEPORT=Symbol("Teleport"),SUSPENSE=Symbol("Suspense"),KEEP_ALIVE=Symbol("KeepAlive"),BASE_TRANSITION=Symbol("BaseTransition"),OPEN_BLOCK=Symbol("openBlock"),CREATE_BLOCK=Symbol("createBlock"),CREATE_ELEMENT_BLOCK=Symbol("createElementBlock"),CREATE_VNODE=Symbol("createVNode"),CREATE_ELEMENT_VNODE=Symbol("createElementVNode"),CREATE_COMMENT=Symbol("createCommentVNode"),CREATE_TEXT=Symbol("createTextVNode"),CREATE_STATIC=Symbol("createStaticVNode"),RESOLVE_COMPONENT=Symbol("resolveComponent"),RESOLVE_DYNAMIC_COMPONENT=Symbol("resolveDynamicComponent"),RESOLVE_DIRECTIVE=Symbol("resolveDirective"),RESOLVE_FILTER=Symbol("resolveFilter"),WITH_DIRECTIVES=Symbol("withDirectives"),RENDER_LIST=Symbol("renderList"),RENDER_SLOT=Symbol("renderSlot"),CREATE_SLOTS=Symbol("createSlots"),TO_DISPLAY_STRING=Symbol("toDisplayString"),MERGE_PROPS=Symbol("mergeProps"),NORMALIZE_CLASS=Symbol("normalizeClass"),NORMALIZE_STYLE=Symbol("normalizeStyle"),NORMALIZE_PROPS=Symbol("normalizeProps"),GUARD_REACTIVE_PROPS=Symbol("guardReactiveProps"),TO_HANDLERS=Symbol("toHandlers"),CAMELIZE=Symbol("camelize"),CAPITALIZE=Symbol("capitalize"),TO_HANDLER_KEY=Symbol("toHandlerKey"),SET_BLOCK_TRACKING=Symbol("setBlockTracking"),PUSH_SCOPE_ID=Symbol("pushScopeId"),POP_SCOPE_ID=Symbol("popScopeId"),WITH_CTX=Symbol("withCtx"),UNREF=Symbol("unref"),IS_REF=Symbol("isRef"),WITH_MEMO=Symbol("withMemo"),IS_MEMO_SAME=Symbol("isMemoSame"),helperNameMap={[FRAGMENT]:"Fragment",[TELEPORT]:"Teleport",[SUSPENSE]:"Suspense",[KEEP_ALIVE]:"KeepAlive",[BASE_TRANSITION]:"BaseTransition",[OPEN_BLOCK]:"openBlock",[CREATE_BLOCK]:"createBlock",[CREATE_ELEMENT_BLOCK]:"createElementBlock",[CREATE_VNODE]:"createVNode",[CREATE_ELEMENT_VNODE]:"createElementVNode",[CREATE_COMMENT]:"createCommentVNode",[CREATE_TEXT]:"createTextVNode",[CREATE_STATIC]:"createStaticVNode",[RESOLVE_COMPONENT]:"resolveComponent",[RESOLVE_DYNAMIC_COMPONENT]:"resolveDynamicComponent",[RESOLVE_DIRECTIVE]:"resolveDirective",[RESOLVE_FILTER]:"resolveFilter",[WITH_DIRECTIVES]:"withDirectives",[RENDER_LIST]:"renderList",[RENDER_SLOT]:"renderSlot",[CREATE_SLOTS]:"createSlots",[TO_DISPLAY_STRING]:"toDisplayString",[MERGE_PROPS]:"mergeProps",[NORMALIZE_CLASS]:"normalizeClass",[NORMALIZE_STYLE]:"normalizeStyle",[NORMALIZE_PROPS]:"normalizeProps",[GUARD_REACTIVE_PROPS]:"guardReactiveProps",[TO_HANDLERS]:"toHandlers",[CAMELIZE]:"camelize",[CAPITALIZE]:"capitalize",[TO_HANDLER_KEY]:"toHandlerKey",[SET_BLOCK_TRACKING]:"setBlockTracking",[PUSH_SCOPE_ID]:"pushScopeId",[POP_SCOPE_ID]:"popScopeId",[WITH_CTX]:"withCtx",[UNREF]:"unref",[IS_REF]:"isRef",[WITH_MEMO]:"withMemo",[IS_MEMO_SAME]:"isMemoSame"};function registerRuntimeHelpers(t){Object.getOwnPropertySymbols(t).forEach(e=>{helperNameMap[e]=t[e]})}const locStub={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function createRoot(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:locStub}}function createVNodeCall(e,t,n,r,o,s,i,a=!1,l=!1,c=!1,p=locStub){return e&&(a?(e.helper(OPEN_BLOCK),e.helper(getVNodeBlockHelper(e.inSSR,c))):e.helper(getVNodeHelper(e.inSSR,c)),i&&e.helper(WITH_DIRECTIVES)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:a,disableTracking:l,isComponent:c,loc:p}}function createArrayExpression(e,t=locStub){return{type:17,loc:t,elements:e}}function createObjectExpression(e,t=locStub){return{type:15,loc:t,properties:e}}function createObjectProperty(e,t){return{type:16,loc:locStub,key:isString(e)?createSimpleExpression(e,!0):e,value:t}}function createSimpleExpression(e,t=!1,n=locStub,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function createCompoundExpression(e,t=locStub){return{type:8,loc:t,children:e}}function createCallExpression(e,t=[],n=locStub){return{type:14,loc:n,callee:e,arguments:t}}function createFunctionExpression(e,t=void 0,n=!1,r=!1,o
|
||
|
|
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:""},isStaticExp=e=>4===e.type&&e.isStatic;function isCoreComponent(e){switch(e){case"Teleport":case"teleport":return TELEPORT;case"Suspense":case"suspense":return SUSPENSE;case"KeepAlive":case"keep-alive":return KEEP_ALIVE;case"BaseTransition":case"base-transition":return BASE_TRANSITION}}const nonIdentifierRE=/^\d|[^\$\w\xA0-\uFFFF]/,isSimpleIdentifier=e=>!nonIdentifierRE.test(e),validFirstIdentCharRE=/[A-Za-z_$\xA0-\uFFFF]/,validIdentCharRE=/[\.\?\w$\xA0-\uFFFF]/,whitespaceRE=/\s+[.[]\s*|\s*[.[]\s+/g,getExpSource=e=>4===e.type?e.content:e.loc.source,isMemberExpressionBrowser=e=>{const t=getExpSource(e).trim().replace(whitespaceRE,e=>e.trim());let n=0,r=[],o=0,s=0,i=null;for(let e=0;e<t.length;e++){var a=t.charAt(e);switch(n){case 0:if("["===a)r.push(n),n=1,o++;else if("("===a)r.push(n),n=2,s++;else if(!(0===e?validFirstIdentCharRE:validIdentCharRE).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(r.push(n),n=3,i=a):"["===a?o++:"]"!==a||--o||(n=r.pop());break;case 2:if("'"===a||'"'===a||"`"===a)r.push(n),n=3,i=a;else if("("===a)s++;else if(")"===a){if(e===t.length-1)return!1;--s||(n=r.pop())}break;case 3:a===i&&(n=r.pop(),i=null)}}return!o&&!s},isMemberExpression=isMemberExpressionBrowser,fnExpRE=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,isFnExpressionBrowser=e=>fnExpRE.test(getExpSource(e)),isFnExpression=isFnExpressionBrowser;function assert(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function findDir(t,n,r=!1){for(let e=0;e<t.props.length;e++){var o=t.props[e];if(7===o.type&&(r||o.exp)&&(isString(n)?o.name===n:n.test(o.name)))return o}}function findProp(t,n,r=!1,o=!1){for(let e=0;e<t.props.length;e++){var s=t.props[e];if(6===s.type){if(!r&&s.name===n&&(s.value||o))return s}else if("bind"===s.name&&(s.exp||o)&&isStaticArgOf(s.arg,n))return s}}function isStaticArgOf(e,t){return!(!e||!isStaticExp(e)||e.content!==t)}function hasDynamicKeyVBind(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))}function isText$1(e){return 5===e.type||2===e.type}function isVSlot(e){return 7===e.type&&"slot"===e.name}function isTemplateNode(e){return 1===e.type&&3===e.tagType}function isSlotOutlet(e){return 1===e.type&&2===e.tagType}const propsHelperSet=new Set([NORMALIZE_PROPS,GUARD_REACTIVE_PROPS]);function getUnnormalizedProps(e,t=[]){if(e&&!isString(e)&&14===e.type){var n=e.callee;if(!isString(n)&&propsHelperSet.has(n))return getUnnormalizedProps(e.arguments[0],t.concat(e))}return[e,t]}function injectProp(e,t,n){let r,o=13===e.type?e.props:e.arguments[2],s=[],i;var a;if(o&&!isString(o)&&14===o.type&&(a=getUnnormalizedProps(o),o=a[0],s=a[1],i=s[s.length-1]),null==o||isString(o))r=createObjectExpression([t]);else if(14===o.type){const l=o.arguments[0];isString(l)||15!==l.type?o.callee===TO_HANDLERS?r=createCallExpression(n.helper(MERGE_PROPS),[createObjectExpression([t]),o]):o.arguments.unshift(createObjectExpression([t])):hasProp(t,l)||l.properties.unshift(t),r=r||o}else 15===o.type?(hasProp(t,o)||o.properties.unshift(t),r=o):(r=createCallExpression(n.helper(MERGE_PROPS),[createObjectExpression([t]),o]),i&&i.callee===GUARD_REACTIVE_PROPS&&(i=s[s.length-2]));13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function hasProp(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some(e=>4===e.key.type&&e.key.con
|
||
|
|
`,-1),l())),t.components.length&&(genAssets(t.components,"component",n),(t.directives.length||0<t.temps)&&l()),t.directives.length&&(genAssets(t.directives,"directive",n),0<t.temps&&l()),0<t.temps){o("let ");for(let e=0;e<t.temps;e++)o(`${0<e?", ":""}_temp`+e)}return(t.components.length||t.directives.length||t.temps)&&(o(`
|
||
|
|
`,0),l()),c||o("return "),t.codegenNode?genNode(t.codegenNode,n):o("null"),d&&(a(),o("}")),a(),o("}"),{ast:t,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function genFunctionPreamble(e,t){const{push:n,newline:r,runtimeGlobalName:o}=t;var s=o;const i=Array.from(e.helpers);0<i.length&&(n(`const _Vue = ${s}
|
||
|
|
`,-1),e.hoists.length&&(s=[CREATE_VNODE,CREATE_ELEMENT_VNODE,CREATE_COMMENT,CREATE_TEXT,CREATE_STATIC].filter(e=>i.includes(e)).map(aliasHelper).join(", "),n(`const { ${s} } = _Vue
|
||
|
|
`,-1))),genHoists(e.hoists,t),r(),n("return ")}function genAssets(n,r,{helper:e,push:o,newline:s,isTS:i}){var a=e("component"===r?RESOLVE_COMPONENT:RESOLVE_DIRECTIVE);for(let t=0;t<n.length;t++){let e=n[t];var l=e.endsWith("__self");o(`const ${toValidAssetId(e=l?e.slice(0,-6):e,r)} = ${a}(${JSON.stringify(e)}${l?", true":""})`+(i?"!":"")),t<n.length-1&&s()}}function genHoists(t,n){if(t.length){n.pure=!0;const{push:o,newline:s}=n;s();for(let e=0;e<t.length;e++){var r=t[e];r&&(o(`const _hoisted_${e+1} = `),genNode(r,n),s())}n.pure=!1}}function isText(e){return isString(e)||4===e.type||2===e.type||5===e.type||8===e.type}function genNodeListAsArray(e,t){var n=3<e.length||e.some(e=>isArray(e)||!isText(e));t.push("["),n&&t.indent(),genNodeList(e,t,n),n&&t.deindent(),t.push("]")}function genNodeList(t,n,r=!1,o=!0){const{push:s,newline:i}=n;for(let e=0;e<t.length;e++){var a=t[e];isString(a)?s(a,-3):(isArray(a)?genNodeListAsArray:genNode)(a,n),e<t.length-1&&(r?(o&&s(","),i()):o&&s(", "))}}function genNode(e,t){if(isString(e))t.push(e,-3);else if(isSymbol(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:assert(null!=e.codegenNode,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),genNode(e.codegenNode,t);break;case 2:genText(e,t);break;case 4:genExpression(e,t);break;case 5:genInterpolation(e,t);break;case 12:genNode(e.codegenNode,t);break;case 8:genCompoundExpression(e,t);break;case 3:genComment(e,t);break;case 13:genVNodeCall(e,t);break;case 14:genCallExpression(e,t);break;case 15:genObjectExpression(e,t);break;case 17:genArrayExpression(e,t);break;case 18:genFunctionExpression(e,t);break;case 19:genConditionalExpression(e,t);break;case 20:genCacheExpression(e,t);break;case 21:genNodeList(e.body,t,!0,!1);break;case 22:case 23:case 24:case 25:case 26:case 10:break;default:return assert(!1,"unhandled codegen node type: "+e.type),e}}function genText(e,t){t.push(JSON.stringify(e.content),-3,e)}function genExpression(e,t){var{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function genInterpolation(e,t){const{push:n,helper:r,pure:o}=t;o&&n(PURE_ANNOTATION),n(r(TO_DISPLAY_STRING)+"("),genNode(e.content,t),n(")")}function genCompoundExpression(t,n){for(let e=0;e<t.children.length;e++){var r=t.children[e];isString(r)?n.push(r,-3):genNode(r,n)}}function genExpressionAsPropertyKey(e,t){const n=t["push"];8===e.type?(n("["),genCompoundExpression(e,t),n("]")):e.isStatic?(t=isSimpleIdentifier(e.content)?e.content:JSON.stringify(e.content),n(t,-2,e)):n(`[${e.content}]`,-3,e)}function genComment(e,t){const{push:n,helper:r,pure:o}=t;o&&n(PURE_ANNOTATION),n(`${r(CREATE_COMMENT)}(${JSON.stringify(e.content)})`,-3,e)}function genVNodeCall(e,t){const{push:n,helper:r,pure:o}=t,{tag:s,props:i,children:a,patchFlag:l,dynamicProps:c,directives:p,isBlock:d,disableTracking:u,isComponent:h}=e;let f;l&&(f=l<0?l+` /* ${PatchFlagNames[l]} */`:(m=Object.keys(PatchFlagNames).map(Number).filter(e=>0<e&&l&e).map(e=>PatchFlagNames[e]).join(", "),l+` /* ${m} */`)),p&&n(r(WITH_DIRECTIVES)+"("),d&&n(`(${r(OPEN_BLOCK)}(${u?"true":""}), `),o&&n(PURE_ANNOTATION);var m=(d?getVNodeBlockHelper:getVNodeHelper)(t.inSSR,h);n(r(m)+"(",-2,e),genNodeList(genNullableArgs([s,i,a,f,c]),t),n(")"),d&&n(")"),p&&(n(", "),genNode(p,t),n(")"))}function genNullableArgs(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}function genCallExpression(e,t){const{push:n,helper:r,pure:o}=t;var s=isString(e.callee)?e.callee:r(e.callee);o&&n(PURE_ANNOTATION),n(s+"(",-2,e),genNodeList(e.arguments,t),n(")")}function genObjectExpression(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,i=e["properties"];if(i.length){var a=1<i.length||i.some(e=>4!==e.value.type);n(a?"{":"{ "),a&&r();for(let e=0;e<i.length;e++){var{key:l,value:c}=i[e];genExpressionAsPropertyKey(l,t),n(": "),genNode(c,t),e<i.length-1&&(n(","),s())}a&&o(),n(a?"}":" }")}else n("{}",-2,e)}function genArrayExpression(e,t){genNodeListAsArray(e.elements,t)}function genFunctionExpression(e,t){const{push:n,indent:r,deindent:o}=t;var{params:s,returns:i,
|
||
|
|
`+e:t)}const i=new Function("Vue",r)(runtimeDom);return i._rc=!0,compileCache[t]=i}registerRuntimeCompiler(compileToFunction);export{BaseTransition,BaseTransitionPropsValidators,Comment,DeprecationTypes,EffectScope,ErrorCodes,ErrorTypeStrings,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text,TrackOpTypes,Transition,TransitionGroup,TriggerOpTypes,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize,cloneVNode,compatUtils,compileToFunction as compile,computed,createApp,createBlock,createCommentVNode,createElementBlock,createBaseVNode as createElementVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,devtools,effect,effectScope,getCurrentInstance,getCurrentScope,getCurrentWatcher,getTransitionRawChildren,guardReactiveProps,h,handleError,hasInjectionContext,hydrate,hydrateOnIdle,hydrateOnInteraction,hydrateOnMediaQuery,hydrateOnVisible,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick,normalizeClass,normalizeProps,normalizeStyle,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,onWatcherCleanup,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop,toDisplayString,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue,transformVNodeArgs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useHost,useId,useModel,useSSRContext,useShadowRoot,useSlots,useTemplateRef,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version,warn,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId};
|