o.minY;if(N&&!T)return void(d.style.display="none");if(d.style.top=E+"px",d.style.left=S+"px",C)return;var M=(0,c.createChild)(d,"div","tooltip-arrow");M.style.clipPath=O?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",M.style.top=(O?v-1:-m)+"px",M.style.left=h-S+"px"}(this.tooltip,e.elementInfo,e.colorFormat,t,this.canvasWidth,this.canvasHeight)),this.context.restore(),{bounds:t}},t.prototype.drawAxis=function(e,t,n){e.save();var o=this.pageZoomFactor*this.pageScaleFactor*this.emulationScaleFactor,r=this.scrollX*this.pageScaleFactor,i=this.scrollY*this.pageScaleFactor;function a(e){return Math.round(e*o)}function s(e){return Math.round(e/o)}var c=this.canvasWidth/o,l=this.canvasHeight/o,u=50;e.save(),e.fillStyle=h,n?e.fillRect(0,a(l)-15,a(c),a(l)):e.fillRect(0,0,a(c),15),e.globalCompositeOperation="destination-out",e.fillStyle="red",t?e.fillRect(a(c)-15,0,a(c),a(l)):e.fillRect(0,0,15,a(l)),e.restore(),e.fillStyle=h,t?e.fillRect(a(c)-15,0,a(c),a(l)):e.fillRect(0,0,15,a(l)),e.lineWidth=1,e.strokeStyle=f,e.fillStyle=f,e.save(),e.translate(-r,.5-i);for(var p=l+s(i),v=100;v]*>/g.test(e))try{var t=s.default.parse(e);return h(t,(function(e){e.attrs&&e.attrs.class&&(e.attrs.class=n(e.attrs.class))})),s.default.stringify(t)}catch(t){return n(e)}return n(e)}};var p,v="ontouchstart"in a.default,m={start:"touchstart",move:"touchmove",end:"touchend"},g={start:"mousedown",move:"mousemove",end:"mouseup"};t.drag=function(e){return v?m[e]:g[e]},t.eventClient=function(e,t){var n="x"===e?"clientX":"clientY";return t[n]?t[n]:t.changedTouches?t.changedTouches[0][n]:0},t.eventPage=function(e,t){var n="x"===e?"pageX":"pageY";return t[n]?t[n]:t.changedTouches?t.changedTouches[0][n]:0},t.measuredScrollbarWidth=function(){if((0,c.default)(p))return p;if(!document)return 16;var e=document.createElement("div"),t=document.createElement("div");return e.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),t.setAttribute("style","height: 200px"),e.appendChild(t),document.body.appendChild(e),p=e.offsetWidth-e.clientWidth,document.body.removeChild(e),p},t.hasVerticalScrollbar=function(e){return e.scrollHeight>e.offsetHeight},t.executeAfterTransition=function(e,t){if((0,f.default)(e))return t();var n=function(o){o.target===e&&(e.removeEventListener("transitionend",n),t())};e.addEventListener("transitionend",n)},t.pxToNum=function(e){return(0,u.default)(e.replace("px",""))},t.getPlatform=function(){var e=(0,d.default)();return"os x"===e?"mac":e},t.resetCanvasSize=function(e){e.width=Math.round(e.offsetWidth*window.devicePixelRatio),e.height=Math.round(e.offsetHeight*window.devicePixelRatio)}},6093:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(1512)),s=i(n(5229)),c=i(n(2244)),l=i(n(8613)),u=function(e){function t(t,n){void 0===n&&(n={});var o=e.call(this,t,{compName:"notification"},n)||this;return o.notifications=[],o.initOptions(n,{position:{x:"right",y:"bottom"},duration:2e3}),o.initTpl(),o}return r(t,e),t.prototype.notify=function(e,t){var n=this;void 0===t&&(t={duration:this.options.duration});var o=new d(this,e);this.notifications.push(o),this.add(o),setTimeout((function(){return n.remove(o.id)}),t.duration)},t.prototype.dismissAll=function(){for(var e=this.notifications,t=e[0];t;)this.remove(t.id),t=e[0]},t.prototype.add=function(e){this.container.appendChild(e.container)},t.prototype.remove=function(e){var t=this.notifications,n=(0,c.default)(t,(function(t){return t.id===e}));if(n){n.destroy();var o=t.indexOf(n);t.splice(o,1)}},t.prototype.initTpl=function(){var e=this.$container,t=this.options.position,n=t.x,o=t.y,r="flex-end",i="flex-end";switch(n){case"center":i="center";break;case"left":i="flex-start"}"top"===o&&(r="flex-start"),e.attr("style","justify-content: ".concat(r,"; align-items: ").concat(i))},t}(i(n(5404)).default);t.default=u;var d=function(){function e(e,t){this.container=(0,l.default)("div"),this.$container=(0,a.default)(this.container),this.notification=e,this.content=t,this.id=(0,s.default)("luna-notification-"),this.$container.attr({id:this.id,class:e.c("item ".concat("bottom"===e.getOption("position").y?"lower":"upper"))}),this.initTpl()}return e.prototype.destroy=function(){this.$container.remove()},e.prototype.initTpl=function(){this.$container.html(this.notification.c('
'.concat(this.content,"
")))},e}();e.exports=u,e.exports.default=u},5404:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(1443)),s=i(n(1512)),c=n(164),l=i(n(3783)),u=i(n(6329)),d=i(n(4193)),f=i(n(5852)),h=function(e){function t(t,n,o){var r=n.compName,i=(void 0===o?{}:o).theme,a=void 0===i?"light":i,u=e.call(this)||this;return u.subComponents=[],u.compName=r,u.c=(0,c.classPrefix)(r),u.options={},u.container=t,u.$container=(0,s.default)(t),u.$container.addClass(["luna-".concat(r),u.c("platform-".concat((0,c.getPlatform)()))]),u.on("optionChange",(function(e,t,n){var o=u.c;"theme"===e&&(u.$container.rmClass(o("theme-".concat(n))).addClass(o("theme-".concat(t))),(0,l.default)(u.subComponents,(function(e){return e.setOption("theme",t)})))})),u.setOption("theme",a),u}return r(t,e),t.prototype.destroy=function(){this.destroySubComponents();var e=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(e("platform-".concat((0,c.getPlatform)()))).rmClass(e("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()},t.prototype.setOption=function(e,t){var n=this,o=this.options,r={};"string"==typeof e?r[e]=t:r=e,(0,l.default)(r,(function(e,t){var r=o[t];o[t]=e,n.emit("optionChange",t,e,r)}))},t.prototype.getOption=function(e){return this.options[e]},t.prototype.addSubComponent=function(e){e.setOption("theme",this.options.theme),this.subComponents.push(e)},t.prototype.removeSubComponent=function(e){(0,f.default)(this.subComponents,(function(t){return t===e}))},t.prototype.destroySubComponents=function(){(0,l.default)(this.subComponents,(function(e){return e.destroy()})),this.subComponents=[]},t.prototype.initOptions=function(e,t){void 0===t&&(t={}),(0,d.default)(e,t),(0,u.default)(this.options,e)},t.prototype.find=function(e){return this.$container.find(this.c(e))},t}(a.default);t.default=h},164:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resetCanvasSize=t.getPlatform=t.pxToNum=t.executeAfterTransition=t.hasVerticalScrollbar=t.measuredScrollbarWidth=t.eventClient=t.drag=t.classPrefix=void 0;var r=o(n(2461)),i=o(n(4331)),a=o(n(5610)),s=o(n(7483)),c=o(n(3990)),l=o(n(6341)),u=o(n(3875)),d=o(n(6954)),f=o(n(9585));function h(e,t){for(var n=0,o=e.length;n]*>/g.test(e))try{var t=s.default.parse(e);return h(t,(function(e){e.attrs&&e.attrs.class&&(e.attrs.class=n(e.attrs.class))})),s.default.stringify(t)}catch(t){return n(e)}return n(e)}};var p,v="ontouchstart"in a.default,m={start:"touchstart",move:"touchmove",end:"touchend"},g={start:"mousedown",move:"mousemove",end:"mouseup"};t.drag=function(e){return v?m[e]:g[e]},t.eventClient=function(e,t){var n="x"===e?"clientX":"clientY";return t[n]?t[n]:t.changedTouches?t.changedTouches[0][n]:0},t.measuredScrollbarWidth=function(){if((0,c.default)(p))return p;if(!document)return 16;var e=document.createElement("div"),t=document.createElement("div");return e.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),t.setAttribute("style","height: 200px"),e.appendChild(t),document.body.appendChild(e),p=e.offsetWidth-e.clientWidth,document.body.removeChild(e),p},t.hasVerticalScrollbar=function(e){return e.scrollHeight>e.offsetHeight},t.executeAfterTransition=function(e,t){if((0,f.default)(e))return t();var n=function(o){o.target===e&&(e.removeEventListener("transitionend",n),t())};e.addEventListener("transitionend",n)},t.pxToNum=function(e){return(0,u.default)(e.replace("px",""))},t.getPlatform=function(){var e=(0,d.default)();return"os x"===e?"mac":e},t.resetCanvasSize=function(e){e.width=Math.round(e.offsetWidth*window.devicePixelRatio),e.height=Math.round(e.offsetHeight*window.devicePixelRatio)}},8169:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var o={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi,i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;var a=function(e){var t=[],n=String(e).trim();return"M"!==n[0]&&"m"!==n[0]||n.replace(r,(function(e,n,r){var a=n.toLowerCase(),s=function(e){var t=e.match(i);return t?t.map(Number):[]}(r),c=n;if("m"===a&&s.length>2&&(t.push([c].concat(s.splice(0,2))),a="l",c="m"===c?"l":"L"),s.length=o[a]&&s.length&&o[a];)t.push([c].concat(s.splice(0,o[a])));return""})),t};function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&(y*=l=Math.sqrt(l),w*=l),u=y*y*w*w,h=y*y*s.y*s.y+w*w*s.x*s.x,f(k={x:y*s.y/w,y:-w*s.x/y},i!==r?Math.sqrt((u-h)/h)||0:-Math.sqrt((u-h)/h)||0),o=Math.atan2((s.y-k.y)/w,(s.x-k.x)/y),n=Math.atan2(-(s.y+k.y)/w,-(s.x+k.x)/y),d(k,c),N=k,M=(a.x+Z.x)/2,j=(a.y+Z.y)/2,N.x+=M,N.y+=j,e.save(),e.translate(k.x,k.y),e.rotate(c),e.scale(y,w),e.arc(0,0,1,o,n,!i),e.restore();break;case"C":C=I[3],S=I[4],p=I[5],m=I[6],e.bezierCurveTo(I[1],I[2],C,S,p,m);break;case"c":e.bezierCurveTo(I[1]+p,I[2]+m,I[3]+p,I[4]+m,I[5]+p,I[6]+m),C=I[3]+p,S=I[4]+m,p+=I[5],m+=I[6];break;case"S":null!==C&&null!==S||(C=p,S=m),e.bezierCurveTo(2*p-C,2*m-S,I[1],I[2],I[3],I[4]),C=I[1],S=I[2],p=I[3],m=I[4];break;case"s":null!==C&&null!==S||(C=p,S=m),e.bezierCurveTo(2*p-C,2*m-S,I[1]+p,I[2]+m,I[3]+p,I[4]+m),C=I[1]+p,S=I[2]+m,p+=I[3],m+=I[4];break;case"Q":E=I[1],O=I[2],p=I[3],m=I[4],e.quadraticCurveTo(E,O,p,m);break;case"q":E=I[1]+p,O=I[2]+m,p+=I[3],m+=I[4],e.quadraticCurveTo(E,O,p,m);break;case"T":null!==E&&null!==O||(E=p,O=m),E=2*p-E,O=2*m-O,p=I[1],m=I[2],e.quadraticCurveTo(E,O,p,m);break;case"t":null!==E&&null!==O||(E=p,O=m),E=2*p-E,O=2*m-O,p+=I[1],m+=I[2],e.quadraticCurveTo(E,O,p,m);break;case"z":case"Z":p=R.x,m=R.y,R=void 0,e.closePath();break;case"AC":p=I[1],m=I[2],b=I[3],o=I[4],n=I[5],T=I[6],e.arc(p,m,b,o,n,T);break;case"AT":v=I[1],g=I[2],p=I[3],m=I[4],b=I[5],e.arcTo(v,g,p,m,b);break;case"E":p=I[1],m=I[2],y=I[3],w=I[4],c=I[5],o=I[6],n=I[7],T=I[8],e.save(),e.translate(p,m),e.rotate(c),e.scale(y,w),e.arc(0,0,1,o,n,T),e.restore();break;case"R":p=I[1],m=I[2],_=I[3],x=I[4],R={x:p,y:m},e.rect(p,m,_,x)}Z.x=p,Z.y=m}}},p=a,v=h;"undefined"!=typeof window&&v(window);var m={path2dPolyfill:v,parsePath:p}},2777:function(e){e.exports='.luna-dom-highlighter{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000;pointer-events:none;font-size:13px}.luna-dom-highlighter-fill{position:absolute;top:0;right:0;bottom:0;left:0}.luna-dom-highlighter-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-highlighter-platform-mac{color:#303942;font-family:\'.SFNSDisplay-Regular\',\'Helvetica Neue\',\'Lucida Grande\',sans-serif}.luna-dom-highlighter-platform-windows{font-family:\'Segoe UI\',Tahoma,sans-serif}.luna-dom-highlighter-px{color:gray}#luna-dom-highlighter-element-title{position:absolute;z-index:10}.luna-dom-highlighter-tooltip-content{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;padding:5px 8px;border:1px solid #fff;border-radius:3px;box-sizing:border-box;min-width:100px;max-width:min(300px,100% - 4px);z-index:2;background-clip:padding-box;will-change:transform;text-rendering:optimizeLegibility;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}.luna-dom-highlighter-tooltip-content .luna-dom-highlighter-tooltip-arrow{background:#fff;width:15px;height:8px;position:absolute}.luna-dom-highlighter-element-info-section{margin-top:12px;margin-bottom:6px}.luna-dom-highlighter-section-name{color:#333;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;line-height:12px}.luna-dom-highlighter-element-info{display:flex;flex-direction:column}.luna-dom-highlighter-element-info-header{display:flex;align-items:center}.luna-dom-highlighter-element-info-body{display:flex;flex-direction:column;padding-top:2px;margin-top:2px}.luna-dom-highlighter-element-info-row{display:flex;line-height:19px}.luna-dom-highlighter-separator-container{display:flex;align-items:center;flex:auto;margin-left:7px}.luna-dom-highlighter-separator{border-top:1px solid #ddd;width:100%}.luna-dom-highlighter-element-info-name{flex-shrink:0;color:#666}.luna-dom-highlighter-element-info-gap{flex:auto}.luna-dom-highlighter-element-info-value-color{display:flex;color:#303942;margin-left:10px;align-items:baseline}.luna-dom-highlighter-a11y-icon{width:16px;height:16px;background-repeat:no-repeat;display:inline-block}.luna-dom-highlighter-element-info-value-contrast{display:flex;align-items:center;text-align:right;color:#303942;margin-left:10px}.luna-dom-highlighter-element-info-value-contrast .luna-dom-highlighter-a11y-icon{margin-left:8px}.luna-dom-highlighter-element-info-value-icon{display:flex;align-items:center}.luna-dom-highlighter-element-info-value-text{text-align:right;color:#303942;margin-left:10px;align-items:baseline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-dom-highlighter-color-swatch{display:flex;margin-right:2px;width:10px;height:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);line-height:10px}.luna-dom-highlighter-color-swatch-inner{flex:auto;border:1px solid #808002}.luna-dom-highlighter-element-layout-type{margin-right:10px;width:16px;height:16px}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-grid{background-image:url(\'data:image/svg+xml, \')}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-flex{background-image:url(\'data:image/svg+xml, \')}.luna-dom-highlighter-element-description{flex:1 1;font-weight:700;word-wrap:break-word;word-break:break-all}.luna-dom-highlighter-dimensions{color:#737373;text-align:right;margin-left:10px}.luna-dom-highlighter-material-node-width{margin-right:2px}.luna-dom-highlighter-material-node-height{margin-left:2px}.luna-dom-highlighter-material-tag-name{color:#881280}.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id{color:#1a1aa6}.luna-dom-highlighter-contrast-text{width:16px;height:16px;text-align:center;line-height:16px;margin-right:8px;border:1px solid #000;padding:0 1px}.luna-dom-highlighter-a11y-icon-not-ok{background-image:url(\'data:image/svg+xml, \')}.luna-dom-highlighter-a11y-icon-warning{background-image:url(\'data:image/svg+xml, \')}.luna-dom-highlighter-a11y-icon-ok{background-image:url(\'data:image/svg+xml, \')}@media (forced-colors:active){:root,body{background-color:transparent;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content{border-color:Highlight;background-color:canvas;color:text;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content::after{background-color:Highlight}.luna-dom-highlighter-color-swatch-inner,.luna-dom-highlighter-contrast-text,.luna-dom-highlighter-separator{border-color:Highlight}.luna-dom-highlighter-section-name{color:Highlight}.luna-dom-highlighter-dimensions,.luna-dom-highlighter-element-info-name,.luna-dom-highlighter-element-info-value-color,.luna-dom-highlighter-element-info-value-contrast,.luna-dom-highlighter-element-info-value-icon,.luna-dom-highlighter-element-info-value-text,.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id,.luna-dom-highlighter-material-tag-name{color:canvastext}}\n\n/*# sourceMappingURL=luna-dom-highlighter.css.map*/'},907:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n
+
diff --git a/src/assets/vue.svg b/src/assets/vue.svg
index 770e9d3..5448475 100644
--- a/src/assets/vue.svg
+++ b/src/assets/vue.svg
@@ -1 +1,26 @@
+
+
\ No newline at end of file
diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue
index 7abadbd..06d0cea 100644
--- a/src/components/HelloWorld.vue
+++ b/src/components/HelloWorld.vue
@@ -1,3 +1,28 @@
+
+
`,
},
},
}),
@@ -44,6 +54,14 @@ export default defineConfig({
base: "",
+ // https://github.com/vitejs/vite/issues/1930
+ // https://vitejs.dev/guide/env-and-mode.html#env-files
+ // https://github.com/vitejs/vite/discussions/3058#discussioncomment-2115319
+ // 在这里自定义变量
+ define: {
+ "process.env.DEV_MODE": `"${isWatch}"`,
+ },
+
build: {
// 输出路径
outDir: distDir,