@code-inspector/core 1.2.9 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(x,b){typeof exports=="object"&&typeof module!="undefined"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):b((x=typeof globalThis!="undefined"?globalThis:x||self).vueInspectorClient={})})(this,function(x){"use strict";var $e=Object.freeze,Ee=Object.defineProperty,so=Object.defineProperties;var lo=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var ao=Object.prototype.hasOwnProperty,co=Object.prototype.propertyIsEnumerable;var A=Math.pow,_e=(x,b,_)=>b in x?Ee(x,b,{enumerable:!0,configurable:!0,writable:!0,value:_}):x[b]=_,P=(x,b)=>{for(var _ in b||(b={}))ao.call(b,_)&&_e(x,_,b[_]);if(xe)for(var _ of xe(b))co.call(b,_)&&_e(x,_,b[_]);return x},j=(x,b)=>so(x,lo(b));var B=(x,b)=>$e(Ee(x,"raw",{value:$e(b||x.slice())})),H=(x,b,_)=>new Promise((J,Q)=>{var dt=T=>{try{L(_.next(T))}catch(K){Q(K)}},pt=T=>{try{L(_.throw(T))}catch(K){Q(K)}},L=T=>T.done?J(T.value):Promise.resolve(T.value).then(dt,pt);L((_=_.apply(x,b)).next())});var Ae,ke,Ce,Se,Me,Te;const b=window,_=b.ShadowRoot&&(b.ShadyCSS===void 0||b.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,J=Symbol(),Q=new WeakMap;let dt=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==J)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o;const t=this.t;if(_&&i===void 0){const e=t!==void 0&&t.length===1;e&&(i=Q.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Q.set(t,i))}return i}toString(){return this.cssText}};const pt=_?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(s=>new dt(typeof s=="string"?s:s+"",void 0,J))(e)})(i):i;var L;const T=window,K=T.trustedTypes,Pe=K?K.emptyScript:"",zt=T.reactiveElementPolyfillSupport,wt={toAttribute(i,t){switch(t){case Boolean:i=i?Pe:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch(s){e=null}}return e}},It=(i,t)=>t!==i&&(t==t||i==i),$t={attribute:!0,type:String,converter:wt,reflect:!1,hasChanged:It};let Y=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(i){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(i)}static get observedAttributes(){this.finalize();const i=[];return this.elementProperties.forEach((t,e)=>{const s=this._$Ep(e,t);s!==void 0&&(this._$Ev.set(s,e),i.push(s))}),i}static createProperty(i,t=$t){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(i,t),!t.noAccessor&&!this.prototype.hasOwnProperty(i)){const e=typeof i=="symbol"?Symbol():"__"+i,s=this.getPropertyDescriptor(i,e,t);s!==void 0&&Object.defineProperty(this.prototype,i,s)}}static getPropertyDescriptor(i,t,e){return{get(){return this[t]},set(s){const o=this[i];this[t]=s,this.requestUpdate(i,o,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)||$t}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const i=Object.getPrototypeOf(this);if(i.finalize(),i.h!==void 0&&(this.h=[...i.h]),this.elementProperties=new Map(i.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const t=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const s of e)t.unshift(pt(s))}else i!==void 0&&t.push(pt(i));return t}static _$Ep(i,t){const e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}u(){var i;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(i=this.constructor.h)===null||i===void 0||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)===null||e===void 0||e.call(i))}removeController(i){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(i)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((i,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var i;const t=(i=this.shadowRoot)!==null&&i!==void 0?i:this.attachShadow(this.constructor.shadowRootOptions);return((e,s)=>{_?e.adoptedStyleSheets=s.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):s.forEach(o=>{const n=document.createElement("style"),r=b.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=o.cssText,e.appendChild(n)})})(t,this.constructor.elementStyles),t}connectedCallback(){var i;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$ES)===null||i===void 0||i.forEach(t=>{var e;return(e=t.hostConnected)===null||e===void 0?void 0:e.call(t)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$ES)===null||i===void 0||i.forEach(t=>{var e;return(e=t.hostDisconnected)===null||e===void 0?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EO(i,t,e=$t){var s;const o=this.constructor._$Ep(i,e);if(o!==void 0&&e.reflect===!0){const n=(((s=e.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?e.converter:wt).toAttribute(t,e.type);this._$El=i,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(i,t){var e;const s=this.constructor,o=s._$Ev.get(i);if(o!==void 0&&this._$El!==o){const n=s.getPropertyOptions(o),r=typeof n.converter=="function"?{fromAttribute:n.converter}:((e=n.converter)===null||e===void 0?void 0:e.fromAttribute)!==void 0?n.converter:wt;this._$El=o,this[o]=r.fromAttribute(t,n.type),this._$El=null}}requestUpdate(i,t,e){let s=!0;i!==void 0&&(((e=e||this.constructor.getPropertyOptions(i)).hasChanged||It)(this[i],t)?(this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$El!==i&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(i,e))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}_$Ej(){return H(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(t){Promise.reject(t)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$ES)===null||i===void 0||i.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(e)):this._$Ek()}catch(s){throw t=!1,this._$Ek(),s}t&&this._$AE(e)}willUpdate(i){}_$AE(i){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostUpdated)===null||s===void 0?void 0:s.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(i){return!0}update(i){this._$EC!==void 0&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(i){}firstUpdated(i){}};var xt;Y.finalized=!0,Y.elementProperties=new Map,Y.elementStyles=[],Y.shadowRootOptions={mode:"open"},zt==null||zt({ReactiveElement:Y}),((L=T.reactiveElementVersions)!==null&&L!==void 0?L:T.reactiveElementVersions=[]).push("1.6.1");const ut=window,W=ut.trustedTypes,Vt=W?W.createPolicy("lit-html",{createHTML:i=>i}):void 0,D="lit$".concat((Math.random()+"").slice(9),"$"),Bt="?"+D,Ne="<".concat(Bt,">"),F=document,tt=(i="")=>F.createComment(i),et=i=>i===null||typeof i!="object"&&typeof i!="function",Ht=Array.isArray,ot=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kt=/-->/g,Yt=/>/g,z=RegExp(">|[ \n\f\r](?:([^\\s\"'>=/]+)([ \n\f\r]*=[ \n\f\r]*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),Wt=/'/g,Ft=/"/g,qt=/^(?:script|style|textarea|title)$/i,nt=(i=>(t,...e)=>({_$litType$:i,strings:t,values:e}))(1),I=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),Xt=new WeakMap,q=F.createTreeWalker(F,129,null,!1),Oe=(i,t)=>{const e=i.length-1,s=[];let o,n=t===2?"<svg>":"",r=ot;for(let a=0;a<e;a++){const c=i[a];let h,d,p=-1,u=0;for(;u<c.length&&(r.lastIndex=u,d=r.exec(c),d!==null);)u=r.lastIndex,r===ot?d[1]==="!--"?r=Kt:d[1]!==void 0?r=Yt:d[2]!==void 0?(qt.test(d[2])&&(o=RegExp("</"+d[2],"g")),r=z):d[3]!==void 0&&(r=z):r===z?d[0]===">"?(r=o!=null?o:ot,p=-1):d[1]===void 0?p=-2:(p=r.lastIndex-d[2].length,h=d[1],r=d[3]===void 0?z:d[3]==='"'?Ft:Wt):r===Ft||r===Wt?r=z:r===Kt||r===Yt?r=ot:(r=z,o=void 0);const g=r===z&&i[a+1].startsWith("/>")?" ":"";n+=r===ot?c+Ne:p>=0?(s.push(h),c.slice(0,p)+"$lit$"+c.slice(p)+D+g):c+D+(p===-2?(s.push(void 0),a):g)}const l=n+(i[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Vt!==void 0?Vt.createHTML(l):l,s]};class it{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,r=0;const l=t.length-1,a=this.parts,[c,h]=Oe(t,e);if(this.el=it.createElement(c,s),q.currentNode=this.el.content,e===2){const d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;(o=q.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const p of o.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(D)){const u=h[r++];if(d.push(p),u!==void 0){const g=o.getAttribute(u.toLowerCase()+"$lit$").split(D),f=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:f[2],strings:g,ctor:f[1]==="."?De:f[1]==="?"?Ue:f[1]==="@"?Le:gt})}else a.push({type:6,index:n})}for(const p of d)o.removeAttribute(p)}if(qt.test(o.tagName)){const d=o.textContent.split(D),p=d.length-1;if(p>0){o.textContent=W?W.emptyScript:"";for(let u=0;u<p;u++)o.append(d[u],tt()),q.nextNode(),a.push({type:2,index:++n});o.append(d[p],tt())}}}else if(o.nodeType===8)if(o.data===Bt)a.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf(D,d+1))!==-1;)a.push({type:7,index:n}),d+=D.length-1}n++}}static createElement(t,e){const s=F.createElement("template");return s.innerHTML=t,s}}function X(i,t,e=i,s){var o,n,r,l;if(t===I)return t;let a=s!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[s]:e._$Cl;const c=et(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((n=a==null?void 0:a._$AO)===null||n===void 0||n.call(a,!1),c===void 0?a=void 0:(a=new c(i),a._$AT(i,e,s)),s!==void 0?((r=(l=e)._$Co)!==null&&r!==void 0?r:l._$Co=[])[s]=a:e._$Cl=a),a!==void 0&&(t=X(i,a._$AS(i,t.values),a,s)),t}class je{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:s},parts:o}=this._$AD,n=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:F).importNode(s,!0);q.currentNode=n;let r=q.nextNode(),l=0,a=0,c=o[0];for(;c!==void 0;){if(l===c.index){let h;c.type===2?h=new rt(r,r.nextSibling,this,t):c.type===1?h=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(h=new ze(r,this,t)),this.u.push(h),c=o[++a]}l!==(c==null?void 0:c.index)&&(r=q.nextNode(),l++)}return n}p(t){let e=0;for(const s of this.u)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class rt{constructor(t,e,s,o){var n;this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cm=(n=o==null?void 0:o.isConnected)===null||n===void 0||n}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),et(t)?t===k||t==null||t===""?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==I&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):(s=>Ht(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function")(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==k&&et(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=it.createElement(o.h,this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.p(s);else{const r=new je(n,this),l=r.v(this.options);r.p(s),this.T(l),this._$AH=r}}_$AC(t){let e=Xt.get(t.strings);return e===void 0&&Xt.set(t.strings,e=new it(t)),e}k(t){Ht(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,o=0;for(const n of t)o===e.length?e.push(s=new rt(this.O(tt()),this.O(tt()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class gt{constructor(t,e,s,o,n){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=k}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,o){const n=this.strings;let r=!1;if(n===void 0)t=X(this,t,e,0),r=!et(t)||t!==this._$AH&&t!==I,r&&(this._$AH=t);else{const l=t;let a,c;for(t=n[0],a=0;a<n.length-1;a++)c=X(this,l[s+a],e,a),c===I&&(c=this._$AH[a]),r||(r=!et(c)||c!==this._$AH[a]),c===k?t=k:t!==k&&(t+=(c!=null?c:"")+n[a+1]),this._$AH[a]=c}r&&!o&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}let De=class extends gt{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===k?void 0:i}};const Re=W?W.emptyScript:"";class Ue extends gt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==k?this.element.setAttribute(this.name,Re):this.element.removeAttribute(this.name)}}class Le extends gt{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=X(this,t,e,0))!==null&&s!==void 0?s:k)===I)return;const o=this._$AH,n=t===k&&o!==k||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==k&&(o===k||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class ze{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const Gt=ut.litHtmlPolyfillSupport;Gt==null||Gt(it,rt),((xt=ut.litHtmlVersions)!==null&&xt!==void 0?xt:ut.litHtmlVersions=[]).push("2.6.1");var _t,Et;class st extends Y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((s,o,n)=>{var r,l;const a=(r=n==null?void 0:n.renderBefore)!==null&&r!==void 0?r:o;let c=a._$litPart$;if(c===void 0){const h=(l=n==null?void 0:n.renderBefore)!==null&&l!==void 0?l:null;a._$litPart$=c=new rt(o.insertBefore(tt(),h),h,void 0,n!=null?n:{})}return c._$AI(s),c})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return I}}st.finalized=!0,st._$litElement$=!0,(_t=globalThis.litElementHydrateSupport)===null||_t===void 0||_t.call(globalThis,{LitElement:st});const Zt=globalThis.litElementPolyfillSupport;Zt==null||Zt({LitElement:st}),((Et=globalThis.litElementVersions)!==null&&Et!==void 0?Et:globalThis.litElementVersions=[]).push("3.2.2");const Ie=(i,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?j(P({},t),{finisher(e){e.createProperty(t.key,i)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,i)}};function N(i){return(t,e)=>e!==void 0?((s,o,n)=>{o.constructor.createProperty(n,s)})(i,t,e):Ie(i,t)}function S(i){return N(j(P({},i),{state:!0}))}function G(i,t){return(({finisher:e,descriptor:s})=>(o,n)=>{var r;if(n===void 0){const l=(r=o.originalKey)!==null&&r!==void 0?r:o.key,a=s!=null?{kind:"method",placement:"prototype",key:l,descriptor:s(o.key)}:j(P({},o),{key:l});return e!=null&&(a.finisher=function(c){e(c,l)}),a}{const l=o.constructor;s!==void 0&&Object.defineProperty(o,n,s(n)),e==null||e(l,n)}})({descriptor:e=>{const s={get(){var o,n;return(n=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i))!==null&&n!==void 0?n:null},enumerable:!0,configurable:!0};if(t){const o=typeof e=="symbol"?Symbol():"__"+e;s.get=function(){var n,r;return this[o]===void 0&&(this[o]=(r=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(i))!==null&&r!==void 0?r:null),this[o]}}return s}})}var At;(At=window.HTMLSlotElement)===null||At===void 0||At.prototype.assignedElements;const Ve=1;let Be=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,e){this._$Ct=i,this._$AM=t,this._$Ci=e}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};const O=(i=>(...t)=>({_$litDirective$:i,values:t}))(class extends Be{constructor(i){var t;if(super(i),i.type!==Ve||i.name!=="style"||((t=i.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((t,e)=>{const s=i[e];return s==null?t:t+"".concat(e=e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(s,";")},"")}update(i,[t]){const{style:e}=i.element;if(this.vt===void 0){this.vt=new Set;for(const s in t)this.vt.add(s);return this.render(t)}this.vt.forEach(s=>{t[s]==null&&(this.vt.delete(s),s.includes("-")?e.removeProperty(s):e[s]="")});for(const s in t){const o=t[s];o!=null&&(this.vt.add(s),s.includes("-")?e.setProperty(s,o):e[s]=o)}return I}}),ft="data-insp-path",He=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}));function Ke(i){if(i.__esModule)return i;var t=i.default;if(typeof t=="function"){var e=function s(){if(this instanceof s){var o=[null];return o.push.apply(o,arguments),new(Function.bind.apply(t,o))}return t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var o=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:function(){return i[s]}})}),e}var Jt,Qt,kt,te,Ct,ee,oe,ne,ie={exports:{}};function re(){if(te)return kt;te=1;const i=Qt?Jt:(Qt=1,Jt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const o of Object.keys(i))t[i[o]]=o;const e={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};kt=e;for(const o of Object.keys(e)){if(!("channels"in e[o]))throw new Error("missing channels property: "+o);if(!("labels"in e[o]))throw new Error("missing channel labels property: "+o);if(e[o].labels.length!==e[o].channels)throw new Error("channel and label counts mismatch: "+o);const{channels:n,labels:r}=e[o];delete e[o].channels,delete e[o].labels,Object.defineProperty(e[o],"channels",{value:n}),Object.defineProperty(e[o],"labels",{value:r})}function s(o,n){return A(o[0]-n[0],2)+A(o[1]-n[1],2)+A(o[2]-n[2],2)}return e.rgb.hsl=function(o){const n=o[0]/255,r=o[1]/255,l=o[2]/255,a=Math.min(n,r,l),c=Math.max(n,r,l),h=c-a;let d,p;c===a?d=0:n===c?d=(r-l)/h:r===c?d=2+(l-n)/h:l===c&&(d=4+(n-r)/h),d=Math.min(60*d,360),d<0&&(d+=360);const u=(a+c)/2;return p=c===a?0:u<=.5?h/(c+a):h/(2-c-a),[d,100*p,100*u]},e.rgb.hsv=function(o){let n,r,l,a,c;const h=o[0]/255,d=o[1]/255,p=o[2]/255,u=Math.max(h,d,p),g=u-Math.min(h,d,p),f=function(v){return(u-v)/6/g+.5};return g===0?(a=0,c=0):(c=g/u,n=f(h),r=f(d),l=f(p),h===u?a=l-r:d===u?a=1/3+n-l:p===u&&(a=2/3+r-n),a<0?a+=1:a>1&&(a-=1)),[360*a,100*c,100*u]},e.rgb.hwb=function(o){const n=o[0],r=o[1];let l=o[2];const a=e.rgb.hsl(o)[0],c=1/255*Math.min(n,Math.min(r,l));return l=1-1/255*Math.max(n,Math.max(r,l)),[a,100*c,100*l]},e.rgb.cmyk=function(o){const n=o[0]/255,r=o[1]/255,l=o[2]/255,a=Math.min(1-n,1-r,1-l);return[100*((1-n-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-l-a)/(1-a)||0),100*a]},e.rgb.keyword=function(o){const n=t[o];if(n)return n;let r,l=1/0;for(const a of Object.keys(i)){const c=s(o,i[a]);c<l&&(l=c,r=a)}return r},e.keyword.rgb=function(o){return i[o]},e.rgb.xyz=function(o){let n=o[0]/255,r=o[1]/255,l=o[2]/255;return n=n>.04045?A((n+.055)/1.055,2.4):n/12.92,r=r>.04045?A((r+.055)/1.055,2.4):r/12.92,l=l>.04045?A((l+.055)/1.055,2.4):l/12.92,[100*(.4124*n+.3576*r+.1805*l),100*(.2126*n+.7152*r+.0722*l),100*(.0193*n+.1192*r+.9505*l)]},e.rgb.lab=function(o){const n=e.rgb.xyz(o);let r=n[0],l=n[1],a=n[2];return r/=95.047,l/=100,a/=108.883,r=r>.008856?A(r,1/3):7.787*r+16/116,l=l>.008856?A(l,1/3):7.787*l+16/116,a=a>.008856?A(a,1/3):7.787*a+16/116,[116*l-16,500*(r-l),200*(l-a)]},e.hsl.rgb=function(o){const n=o[0]/360,r=o[1]/100,l=o[2]/100;let a,c,h;if(r===0)return h=255*l,[h,h,h];a=l<.5?l*(1+r):l+r-l*r;const d=2*l-a,p=[0,0,0];for(let u=0;u<3;u++)c=n+1/3*-(u-1),c<0&&c++,c>1&&c--,h=6*c<1?d+6*(a-d)*c:2*c<1?a:3*c<2?d+(a-d)*(2/3-c)*6:d,p[u]=255*h;return p},e.hsl.hsv=function(o){const n=o[0];let r=o[1]/100,l=o[2]/100,a=r;const c=Math.max(l,.01);return l*=2,r*=l<=1?l:2-l,a*=c<=1?c:2-c,[n,100*(l===0?2*a/(c+a):2*r/(l+r)),100*((l+r)/2)]},e.hsv.rgb=function(o){const n=o[0]/60,r=o[1]/100;let l=o[2]/100;const a=Math.floor(n)%6,c=n-Math.floor(n),h=255*l*(1-r),d=255*l*(1-r*c),p=255*l*(1-r*(1-c));switch(l*=255,a){case 0:return[l,p,h];case 1:return[d,l,h];case 2:return[h,l,p];case 3:return[h,d,l];case 4:return[p,h,l];case 5:return[l,h,d]}},e.hsv.hsl=function(o){const n=o[0],r=o[1]/100,l=o[2]/100,a=Math.max(l,.01);let c,h;h=(2-r)*l;const d=(2-r)*a;return c=r*a,c/=d<=1?d:2-d,c=c||0,h/=2,[n,100*c,100*h]},e.hwb.rgb=function(o){const n=o[0]/360;let r=o[1]/100,l=o[2]/100;const a=r+l;let c;a>1&&(r/=a,l/=a);const h=Math.floor(6*n),d=1-l;c=6*n-h,1&h&&(c=1-c);const p=r+c*(d-r);let u,g,f;switch(h){default:case 6:case 0:u=d,g=p,f=r;break;case 1:u=p,g=d,f=r;break;case 2:u=r,g=d,f=p;break;case 3:u=r,g=p,f=d;break;case 4:u=p,g=r,f=d;break;case 5:u=d,g=r,f=p}return[255*u,255*g,255*f]},e.cmyk.rgb=function(o){const n=o[0]/100,r=o[1]/100,l=o[2]/100,a=o[3]/100;return[255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,l*(1-a)+a))]},e.xyz.rgb=function(o){const n=o[0]/100,r=o[1]/100,l=o[2]/100;let a,c,h;return a=3.2406*n+-1.5372*r+-.4986*l,c=-.9689*n+1.8758*r+.0415*l,h=.0557*n+-.204*r+1.057*l,a=a>.0031308?1.055*A(a,1/2.4)-.055:12.92*a,c=c>.0031308?1.055*A(c,1/2.4)-.055:12.92*c,h=h>.0031308?1.055*A(h,1/2.4)-.055:12.92*h,a=Math.min(Math.max(0,a),1),c=Math.min(Math.max(0,c),1),h=Math.min(Math.max(0,h),1),[255*a,255*c,255*h]},e.xyz.lab=function(o){let n=o[0],r=o[1],l=o[2];return n/=95.047,r/=100,l/=108.883,n=n>.008856?A(n,1/3):7.787*n+16/116,r=r>.008856?A(r,1/3):7.787*r+16/116,l=l>.008856?A(l,1/3):7.787*l+16/116,[116*r-16,500*(n-r),200*(r-l)]},e.lab.xyz=function(o){let n,r,l;r=(o[0]+16)/116,n=o[1]/500+r,l=r-o[2]/200;const a=A(r,3),c=A(n,3),h=A(l,3);return r=a>.008856?a:(r-16/116)/7.787,n=c>.008856?c:(n-16/116)/7.787,l=h>.008856?h:(l-16/116)/7.787,n*=95.047,r*=100,l*=108.883,[n,r,l]},e.lab.lch=function(o){const n=o[0],r=o[1],l=o[2];let a;return a=360*Math.atan2(l,r)/2/Math.PI,a<0&&(a+=360),[n,Math.sqrt(r*r+l*l),a]},e.lch.lab=function(o){const n=o[0],r=o[1],l=o[2]/360*2*Math.PI;return[n,r*Math.cos(l),r*Math.sin(l)]},e.rgb.ansi16=function(o,n=null){const[r,l,a]=o;let c=n===null?e.rgb.hsv(o)[2]:n;if(c=Math.round(c/50),c===0)return 30;let h=30+(Math.round(a/255)<<2|Math.round(l/255)<<1|Math.round(r/255));return c===2&&(h+=60),h},e.hsv.ansi16=function(o){return e.rgb.ansi16(e.hsv.rgb(o),o[2])},e.rgb.ansi256=function(o){const n=o[0],r=o[1],l=o[2];return n===r&&r===l?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(r/255*5)+Math.round(l/255*5)},e.ansi16.rgb=function(o){let n=o%10;if(n===0||n===7)return o>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const r=.5*(1+~~(o>50));return[(1&n)*r*255,(n>>1&1)*r*255,(n>>2&1)*r*255]},e.ansi256.rgb=function(o){if(o>=232){const r=10*(o-232)+8;return[r,r,r]}let n;return o-=16,[Math.floor(o/36)/5*255,Math.floor((n=o%36)/6)/5*255,n%6/5*255]},e.rgb.hex=function(o){const n=(((255&Math.round(o[0]))<<16)+((255&Math.round(o[1]))<<8)+(255&Math.round(o[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},e.hex.rgb=function(o){const n=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let r=n[0];n[0].length===3&&(r=r.split("").map(a=>a+a).join(""));const l=parseInt(r,16);return[l>>16&255,l>>8&255,255&l]},e.rgb.hcg=function(o){const n=o[0]/255,r=o[1]/255,l=o[2]/255,a=Math.max(Math.max(n,r),l),c=Math.min(Math.min(n,r),l),h=a-c;let d,p;return d=h<1?c/(1-h):0,p=h<=0?0:a===n?(r-l)/h%6:a===r?2+(l-n)/h:4+(n-r)/h,p/=6,p%=1,[360*p,100*h,100*d]},e.hsl.hcg=function(o){const n=o[1]/100,r=o[2]/100,l=r<.5?2*n*r:2*n*(1-r);let a=0;return l<1&&(a=(r-.5*l)/(1-l)),[o[0],100*l,100*a]},e.hsv.hcg=function(o){const n=o[1]/100,r=o[2]/100,l=n*r;let a=0;return l<1&&(a=(r-l)/(1-l)),[o[0],100*l,100*a]},e.hcg.rgb=function(o){const n=o[0]/360,r=o[1]/100,l=o[2]/100;if(r===0)return[255*l,255*l,255*l];const a=[0,0,0],c=n%1*6,h=c%1,d=1-h;let p=0;switch(Math.floor(c)){case 0:a[0]=1,a[1]=h,a[2]=0;break;case 1:a[0]=d,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=h;break;case 3:a[0]=0,a[1]=d,a[2]=1;break;case 4:a[0]=h,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=d}return p=(1-r)*l,[255*(r*a[0]+p),255*(r*a[1]+p),255*(r*a[2]+p)]},e.hcg.hsv=function(o){const n=o[1]/100,r=n+o[2]/100*(1-n);let l=0;return r>0&&(l=n/r),[o[0],100*l,100*r]},e.hcg.hsl=function(o){const n=o[1]/100,r=o[2]/100*(1-n)+.5*n;let l=0;return r>0&&r<.5?l=n/(2*r):r>=.5&&r<1&&(l=n/(2*(1-r))),[o[0],100*l,100*r]},e.hcg.hwb=function(o){const n=o[1]/100,r=n+o[2]/100*(1-n);return[o[0],100*(r-n),100*(1-r)]},e.hwb.hcg=function(o){const n=o[1]/100,r=1-o[2]/100,l=r-n;let a=0;return l<1&&(a=(r-l)/(1-l)),[o[0],100*l,100*a]},e.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]},e.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]},e.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]},e.gray.hsl=function(o){return[0,0,o[0]]},e.gray.hsv=e.gray.hsl,e.gray.hwb=function(o){return[0,100,o[0]]},e.gray.cmyk=function(o){return[0,0,0,o[0]]},e.gray.lab=function(o){return[o[0],0,0]},e.gray.hex=function(o){const n=255&Math.round(o[0]/100*255),r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(r.length)+r},e.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]},kt}function Ye(){if(ee)return Ct;ee=1;const i=re();function t(o){const n=function(){const l={},a=Object.keys(i);for(let c=a.length,h=0;h<c;h++)l[a[h]]={distance:-1,parent:null};return l}(),r=[o];for(n[o].distance=0;r.length;){const l=r.pop(),a=Object.keys(i[l]);for(let c=a.length,h=0;h<c;h++){const d=a[h],p=n[d];p.distance===-1&&(p.distance=n[l].distance+1,p.parent=l,r.unshift(d))}}return n}function e(o,n){return function(r){return n(o(r))}}function s(o,n){const r=[n[o].parent,o];let l=i[n[o].parent][o],a=n[o].parent;for(;n[a].parent;)r.unshift(n[a].parent),l=e(i[n[a].parent][a],l),a=n[a].parent;return l.conversion=r,l}return Ct=function(o){const n=t(o),r={},l=Object.keys(n);for(let a=l.length,c=0;c<a;c++){const h=l[c];n[h].parent!==null&&(r[h]=s(h,n))}return r},Ct}function We(){if(ne)return oe;ne=1;const i=re(),t=Ye(),e={};return Object.keys(i).forEach(s=>{e[s]={},Object.defineProperty(e[s],"channels",{value:i[s].channels}),Object.defineProperty(e[s],"labels",{value:i[s].labels});const o=t(s);Object.keys(o).forEach(n=>{const r=o[n];e[s][n]=function(l){const a=function(...c){const h=c[0];if(h==null)return h;h.length>1&&(c=h);const d=l(c);if(typeof d=="object")for(let p=d.length,u=0;u<p;u++)d[u]=Math.round(d[u]);return d};return"conversion"in l&&(a.conversion=l.conversion),a}(r),e[s][n].raw=function(l){const a=function(...c){const h=c[0];return h==null?h:(h.length>1&&(c=h),l(c))};return"conversion"in l&&(a.conversion=l.conversion),a}(r)})}),oe=e}(function(i){const t=(c,h)=>(...d)=>"\x1B[".concat(c(...d)+h,"m"),e=(c,h)=>(...d)=>{const p=c(...d);return"\x1B[".concat(38+h,";5;").concat(p,"m")},s=(c,h)=>(...d)=>{const p=c(...d);return"\x1B[".concat(38+h,";2;").concat(p[0],";").concat(p[1],";").concat(p[2],"m")},o=c=>c,n=(c,h,d)=>[c,h,d],r=(c,h,d)=>{Object.defineProperty(c,h,{get:()=>{const p=d();return Object.defineProperty(c,h,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})};let l;const a=(c,h,d,p)=>{l===void 0&&(l=We());const u=p?10:0,g={};for(const[f,v]of Object.entries(l)){const w=f==="ansi16"?"ansi":f;f===h?g[w]=c(d,u):typeof v=="object"&&(g[w]=c(v[h],u))}return g};Object.defineProperty(i,"exports",{enumerable:!0,get:function(){const c=new Map,h={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};h.color.gray=h.color.blackBright,h.bgColor.bgGray=h.bgColor.bgBlackBright,h.color.grey=h.color.blackBright,h.bgColor.bgGrey=h.bgColor.bgBlackBright;for(const[d,p]of Object.entries(h)){for(const[u,g]of Object.entries(p))h[u]={open:"\x1B[".concat(g[0],"m"),close:"\x1B[".concat(g[1],"m")},p[u]=h[u],c.set(g[0],g[1]);Object.defineProperty(h,d,{value:p,enumerable:!1})}return Object.defineProperty(h,"codes",{value:c,enumerable:!1}),h.color.close="\x1B[39m",h.bgColor.close="\x1B[49m",r(h.color,"ansi",()=>a(t,"ansi16",o,!1)),r(h.color,"ansi256",()=>a(e,"ansi256",o,!1)),r(h.color,"ansi16m",()=>a(s,"rgb",n,!1)),r(h.bgColor,"ansi",()=>a(t,"ansi16",o,!0)),r(h.bgColor,"ansi256",()=>a(e,"ansi256",o,!0)),r(h.bgColor,"ansi16m",()=>a(s,"rgb",n,!0)),h}})})(ie);var St,se,Fe={stringReplaceAll:(i,t,e)=>{let s=i.indexOf(t);if(s===-1)return i;const o=t.length;let n=0,r="";do r+=i.substr(n,s-n)+t+e,n=s+o,s=i.indexOf(t,n);while(s!==-1);return r+=i.substr(n),r},stringEncaseCRLFWithFirstIndex:(i,t,e,s)=>{let o=0,n="";do{const r=i[s-1]==="\r";n+=i.substr(o,(r?s-1:s)-o)+t+(r?"\r\n":"\n")+e,o=s+1,s=i.indexOf("\n",o)}while(s!==-1);return n+=i.substr(o),n}};const lt=ie.exports,{stdout:Mt,stderr:Tt}={stdout:!1,stderr:!1},{stringReplaceAll:qe,stringEncaseCRLFWithFirstIndex:Xe}=Fe,{isArray:mt}=Array,le=["ansi","ansi","ansi256","ansi16m"],Z=Object.create(null);class Ge{constructor(t){return ae(t)}}const ae=i=>{const t={};return((e,s={})=>{if(s.level&&!(Number.isInteger(s.level)&&s.level>=0&&s.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const o=Mt?Mt.level:0;e.level=s.level===void 0?o:s.level})(t,i),t.template=(...e)=>de(t.template,...e),Object.setPrototypeOf(t,vt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Ge,t.template};function vt(i){return ae(i)}for(const[i,t]of Object.entries(lt))Z[i]={get(){const e=yt(this,Pt(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,i,{value:e}),e}};Z.visible={get(){const i=yt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:i}),i}};const ce=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const i of ce)Z[i]={get(){const{level:t}=this;return function(...e){const s=Pt(lt.color[le[t]][i](...e),lt.color.close,this._styler);return yt(this,s,this._isEmpty)}}};for(const i of ce)Z["bg"+i[0].toUpperCase()+i.slice(1)]={get(){const{level:t}=this;return function(...e){const s=Pt(lt.bgColor[le[t]][i](...e),lt.bgColor.close,this._styler);return yt(this,s,this._isEmpty)}}};const Ze=Object.defineProperties(()=>{},j(P({},Z),{level:{enumerable:!0,get(){return this._generator.level},set(i){this._generator.level=i}}})),Pt=(i,t,e)=>{let s,o;return e===void 0?(s=i,o=t):(s=e.openAll+i,o=t+e.closeAll),{open:i,close:t,openAll:s,closeAll:o,parent:e}},yt=(i,t,e)=>{const s=(...o)=>mt(o[0])&&mt(o[0].raw)?he(s,de(s,...o)):he(s,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(s,Ze),s._generator=i,s._styler=t,s._isEmpty=e,s},he=(i,t)=>{if(i.level<=0||!t)return i._isEmpty?"":t;let e=i._styler;if(e===void 0)return t;const{openAll:s,closeAll:o}=e;if(t.indexOf("\x1B")!==-1)for(;e!==void 0;)t=qe(t,e.close,e.open),e=e.parent;const n=t.indexOf("\n");return n!==-1&&(t=Xe(t,o,s,n)),s+t+o};let Nt;const de=(i,...t)=>{const[e]=t;if(!mt(e)||!mt(e.raw))return t.join(" ");const s=t.slice(1),o=[e.raw[0]];for(let n=1;n<e.length;n++)o.push(String(s[n-1]).replace(/[{}\\]/g,"\\$&"),String(e.raw[n]));return Nt===void 0&&(Nt=function(){if(se)return St;se=1;const n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,l=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,c=new Map([["n","\n"],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function h(g){const f=g[0]==="u",v=g[1]==="{";return f&&!v&&g.length===5||g[0]==="x"&&g.length===3?String.fromCharCode(parseInt(g.slice(1),16)):f&&v?String.fromCodePoint(parseInt(g.slice(2,-1),16)):c.get(g)||g}function d(g,f){const v=[],w=f.trim().split(/\s*,\s*/g);let $;for(const M of w){const U=Number(M);if(Number.isNaN(U)){if(!($=M.match(l)))throw new Error("Invalid Chalk template style argument: ".concat(M," (in style '").concat(g,"')"));v.push($[2].replace(a,(ct,C,ht)=>C?h(C):ht))}else v.push(U)}return v}function p(g){r.lastIndex=0;const f=[];let v;for(;(v=r.exec(g))!==null;){const w=v[1];if(v[2]){const $=d(w,v[2]);f.push([w].concat($))}else f.push([w])}return f}function u(g,f){const v={};for(const $ of f)for(const M of $.styles)v[M[0]]=$.inverse?null:M.slice(1);let w=g;for(const[$,M]of Object.entries(v))if(Array.isArray(M)){if(!($ in w))throw new Error("Unknown Chalk style: ".concat($));w=M.length>0?w[$](...M):w[$]}return w}return St=(g,f)=>{const v=[],w=[];let $=[];if(f.replace(n,(M,U,ct,C,ht,V)=>{if(U)$.push(h(U));else if(C){const we=$.join("");$=[],w.push(v.length===0?we:u(g,v)(we)),v.push({inverse:ct,styles:p(C)})}else if(ht){if(v.length===0)throw new Error("Found extraneous } in Chalk template literal");w.push(u(g,v)($.join(""))),$=[],v.pop()}else $.push(V)}),w.push($.join("")),v.length>0){const M="Chalk template literal is missing ".concat(v.length," closing bracket").concat(v.length===1?"":"s"," (`}`)");throw new Error(M)}return w.join("")},St}()),Nt(i,o.join(""))};Object.defineProperties(vt.prototype,Z);const Ot=vt();Ot.supportsColor=Mt,Ot.stderr=vt({level:Tt?Tt.level:0}),Ot.stderr.supportsColor=Tt;var R={exports:{}};const bt=Ke(He),jt=bt,Dt=bt,Je=bt,Qe=bt,Rt="16.4.5",to=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function Ut(i){console.log("[dotenv@".concat(Rt,"][DEBUG] ").concat(i))}function pe(i){return i&&i.DOTENV_KEY&&i.DOTENV_KEY.length>0?i.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function eo(i,t){let e;try{e=new URL(t)}catch(l){if(l.code==="ERR_INVALID_URL"){const a=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw a.code="INVALID_DOTENV_KEY",a}throw l}const s=e.password;if(!s){const l=new Error("INVALID_DOTENV_KEY: Missing key part");throw l.code="INVALID_DOTENV_KEY",l}const o=e.searchParams.get("environment");if(!o){const l=new Error("INVALID_DOTENV_KEY: Missing environment part");throw l.code="INVALID_DOTENV_KEY",l}const n="DOTENV_VAULT_".concat(o.toUpperCase()),r=i.parsed[n];if(!r){const l=new Error("NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ".concat(n," in your .env.vault file."));throw l.code="NOT_FOUND_DOTENV_ENVIRONMENT",l}return{ciphertext:r,key:s}}function ue(i){let t=null;if(i&&i.path&&i.path.length>0)if(Array.isArray(i.path))for(const e of i.path)jt.existsSync(e)&&(t=e.endsWith(".vault")?e:"".concat(e,".vault"));else t=i.path.endsWith(".vault")?i.path:"".concat(i.path,".vault");else t=Dt.resolve(process.cwd(),".env.vault");return jt.existsSync(t)?t:null}function ge(i){return i[0]==="~"?Dt.join(Je.homedir(),i.slice(1)):i}const E={configDotenv:function(i){const t=Dt.resolve(process.cwd(),".env");let e="utf8";const s=!!(i&&i.debug);i&&i.encoding?e=i.encoding:s&&Ut("No encoding is specified. UTF-8 is used by default");let o,n=[t];if(i&&i.path)if(Array.isArray(i.path)){n=[];for(const a of i.path)n.push(ge(a))}else n=[ge(i.path)];const r={};for(const a of n)try{const c=E.parse(jt.readFileSync(a,{encoding:e}));E.populate(r,c,i)}catch(c){s&&Ut("Failed to load ".concat(a," ").concat(c.message)),o=c}let l=process.env;return i&&i.processEnv!=null&&(l=i.processEnv),E.populate(l,r,i),o?{parsed:r,error:o}:{parsed:r}},_configVault:function(i){var t;t="Loading env from encrypted .env.vault",console.log("[dotenv@".concat(Rt,"][INFO] ").concat(t));const e=E._parseVault(i);let s=process.env;return i&&i.processEnv!=null&&(s=i.processEnv),E.populate(s,e,i),{parsed:e}},_parseVault:function(i){const t=ue(i),e=E.configDotenv({path:t});if(!e.parsed){const r=new Error("MISSING_DATA: Cannot parse ".concat(t," for an unknown reason"));throw r.code="MISSING_DATA",r}const s=pe(i).split(","),o=s.length;let n;for(let r=0;r<o;r++)try{const l=eo(e,s[r].trim());n=E.decrypt(l.ciphertext,l.key);break}catch(l){if(r+1>=o)throw l}return E.parse(n)},config:function(i){if(pe(i).length===0)return E.configDotenv(i);const t=ue(i);return t?E._configVault(i):(e="You set DOTENV_KEY but you are missing a .env.vault file at ".concat(t,". Did you forget to build it?"),console.log("[dotenv@".concat(Rt,"][WARN] ").concat(e)),E.configDotenv(i));var e},decrypt:function(i,t){const e=Buffer.from(t.slice(-64),"hex");let s=Buffer.from(i,"base64");const o=s.subarray(0,12),n=s.subarray(-16);s=s.subarray(12,-16);try{const r=Qe.createDecipheriv("aes-256-gcm",e,o);return r.setAuthTag(n),"".concat(r.update(s)).concat(r.final())}catch(r){const l=r instanceof RangeError,a=r.message==="Invalid key length",c=r.message==="Unsupported state or unable to authenticate data";if(l||a){const h=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw h.code="INVALID_DOTENV_KEY",h}if(c){const h=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw h.code="DECRYPTION_FAILED",h}throw r}},parse:function(i){const t={};let e,s=i.toString();for(s=s.replace(/\r\n?/gm,"\n");(e=to.exec(s))!=null;){const o=e[1];let n=e[2]||"";n=n.trim();const r=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),r==='"'&&(n=n.replace(/\\n/g,"\n"),n=n.replace(/\\r/g,"\r")),t[o]=n}return t},populate:function(i,t,e={}){const s=!!(e&&e.debug),o=!!(e&&e.override);if(typeof t!="object"){const n=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw n.code="OBJECT_REQUIRED",n}for(const n of Object.keys(t))Object.prototype.hasOwnProperty.call(i,n)?(o===!0&&(i[n]=t[n]),s&&Ut(o===!0?'"'.concat(n,'" is already defined and WAS overwritten'):'"'.concat(n,'" is already defined and was NOT overwritten'))):i[n]=t[n]}};R.exports.configDotenv=E.configDotenv,R.exports._configVault=E._configVault,R.exports._parseVault=E._parseVault,R.exports.config=E.config,R.exports.decrypt=E.decrypt,R.exports.parse=E.parse,R.exports.populate=E.populate,R.exports=E;const fe="{file}",me="{line}",ve="{column}";var oo=Object.defineProperty,no=Object.getOwnPropertyDescriptor,y=(i,t,e,s)=>{for(var o,n=s>1?void 0:s?no(t,e):t,r=i.length-1;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&oo(t,e,n),n};const Lt="__code-inspector-unique-id",ye="data-astro-source-file",io={ctrlKey:"^control",altKey:"⌥option",metaKey:"⌘command",shiftKey:"shift"},ro={ctrlKey:"Ctrl",altKey:"Alt",metaKey:"⊞Windows",shiftKey:"Shift"},at=300;function be(){return new Promise(i=>{requestAnimationFrame(i)})}class m extends st{constructor(){super(...arguments),this.hotKeys="shiftKey,altKey",this.port=5678,this.showSwitch=!1,this.autoToggle=!1,this.hideConsole=!1,this.locate=!0,this.copy=!1,this.target="",this.ip="localhost",this.position={top:0,right:0,bottom:0,left:0,padding:{top:0,right:0,bottom:0,left:0},border:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0}},this.element={name:"",line:0,column:0,path:""},this.elementTipStyle={vertical:"",horizon:"",visibility:""},this.show=!1,this.showNodeTree=!1,this.nodeTreePosition={},this.nodeTree=null,this.dragging=!1,this.mousePosition={baseX:0,baseY:0,moveX:0,moveY:0},this.draggingTarget="switch",this.open=!1,this.moved=!1,this.hoverSwitch=!1,this.preUserSelect="",this.sendType="xhr",this.activeNode={},this.isTracking=t=>this.hotKeys&&this.hotKeys.split(",").every(e=>t[e.trim()]),this.getDomPropertyValue=(t,e)=>{const s=window.getComputedStyle(t);return Number(s.getPropertyValue(e).replace("px",""))},this.calculateElementInfoPosition=t=>H(this,null,function*(){var U,ct;const{top:e,right:s,bottom:o,left:n}=t.getBoundingClientRect(),r=document.documentElement.clientHeight,l=document.documentElement.clientWidth,a=this.getDomPropertyValue(t,"margin-top"),c=this.getDomPropertyValue(t,"margin-right"),h=this.getDomPropertyValue(t,"margin-bottom"),d=this.getDomPropertyValue(t,"margin-left");yield be();const{width:p,height:u}=this.elementInfoRef.getBoundingClientRect(),g=e-a,f=s+c,v=o+h,w=n-d,$=[{vertical:"element-info-bottom",horizon:"element-info-right",top:v,left:w,isExternal:!0},{vertical:"element-info-bottom",horizon:"element-info-left",top:v,left:f-p,isExternal:!0},{vertical:"element-info-top",horizon:"element-info-right",top:g-u,left:w,isExternal:!0},{vertical:"element-info-top",horizon:"element-info-left",top:g-u,left:f-p,isExternal:!0},{vertical:"element-info-bottom-inner",horizon:"element-info-right",top:v-u,left:w,isExternal:!1},{vertical:"element-info-bottom-inner",horizon:"element-info-left",top:v-u,left:f-p,isExternal:!1},{vertical:"element-info-top-inner",horizon:"element-info-right",top:g,left:w,isExternal:!1},{vertical:"element-info-top-inner",horizon:"element-info-left",top:g,left:f-p,isExternal:!1},{vertical:"element-info-top-inner",horizon:"element-info-left",top:Math.max(0,g),left:f-p,isExternal:!1,additionStyle:{transform:"translateY(".concat(Math.max(0,-g),"px)")}},{vertical:"element-info-top-inner",horizon:"element-info-right",top:Math.max(0,g),left:f-p,isExternal:!1,additionStyle:{transform:"translateY(".concat(Math.max(0,-g),"px)")}}],M=C=>C.left<0||C.left+p>l||C.top<0||C.top+u>r;for(const C of $){const ht=document.documentElement.clientWidth;if(C.horizon.endsWith("left")){const V=w+p-ht;V>0&&(C.additionStyle={transform:"translateX(-".concat(V,"px) ").concat(((U=C.additionStyle)==null?void 0:U.transform)||"")})}else{const V=p-f;V>0&&(C.additionStyle={transform:"translateX(".concat(V,"px) ").concat(((ct=C.additionStyle)==null?void 0:ct.transform)||"")})}if(!M(C))return C}return $[0]}),this.renderCover=t=>H(this,null,function*(){const{top:e,right:s,bottom:o,left:n}=t.getBoundingClientRect();if(this.position={top:e,right:s,bottom:o,left:n,border:{top:this.getDomPropertyValue(t,"border-top-width"),right:this.getDomPropertyValue(t,"border-right-width"),bottom:this.getDomPropertyValue(t,"border-bottom-width"),left:this.getDomPropertyValue(t,"border-left-width")},padding:{top:this.getDomPropertyValue(t,"padding-top"),right:this.getDomPropertyValue(t,"padding-right"),bottom:this.getDomPropertyValue(t,"padding-bottom"),left:this.getDomPropertyValue(t,"padding-left")},margin:{top:this.getDomPropertyValue(t,"margin-top"),right:this.getDomPropertyValue(t,"margin-right"),bottom:this.getDomPropertyValue(t,"margin-bottom"),left:this.getDomPropertyValue(t,"margin-left")}},this.elementTipStyle={vertical:"",horizon:"",visibility:"hidden"},this.addGlobalCursorStyle(),this.preUserSelect||(this.preUserSelect=getComputedStyle(document.body).userSelect),document.body.style.userSelect="none",this.element=this.getSourceInfo(t),this.show=!0,!this.showNodeTree){const{vertical:r,horizon:l,additionStyle:a}=yield this.calculateElementInfoPosition(t);this.elementTipStyle={vertical:r,horizon:l,visibility:"visible",additionStyle:a}}}),this.getAstroFilePath=t=>{var e;return(e=t.getAttribute)!=null&&e.call(t,ye)?"".concat(t.getAttribute(ye),":").concat(t.getAttribute("data-astro-source-loc"),":").concat(t.tagName.toLowerCase()):""},this.getSourceInfo=t=>{var l;let e=((l=t.getAttribute)==null?void 0:l.call(t,ft))||t[ft]||this.getAstroFilePath(t);if(!e)return null;const s=e.split(":"),o=s[s.length-1],n=Number(s[s.length-2]),r=Number(s[s.length-3]);return{name:o,path:s.slice(0,s.length-3).join(":"),line:r,column:n}},this.removeCover=t=>{t!==!0&&this.nodeTree||(this.show=!1,this.removeGlobalCursorStyle(),document.body.style.userSelect=this.preUserSelect,this.preUserSelect="")},this.renderLayerPanel=(t,{x:e,y:s})=>{const o=document.documentElement.clientWidth,n=document.documentElement.clientHeight,r=o-e,l=n-s;let a={};r<e?(a.right=r+"px",e<at&&(a.transform="translateX(".concat(at-e,"px)"))):(a.left=e+"px",r<at&&(a.transform="translateX(-".concat(at-r,"px)"))),l<s?(a.bottom=l+"px",a.maxHeight=s-10+"px"):(a.top=s+"px",a.maxHeight=n-s-10+"px"),this.nodeTreePosition=a,this.nodeTree=t,this.showNodeTree=!0},this.removeLayerPanel=()=>{this.showNodeTree=!1,this.nodeTree=null,this.activeNode={}},this.addGlobalCursorStyle=()=>{if(!document.getElementById(Lt)){const t=document.createElement("style");t.setAttribute("id",Lt),t.innerText="body * {\n cursor: pointer !important;\n }",document.body.appendChild(t)}},this.removeGlobalCursorStyle=()=>{const t=document.getElementById(Lt);t&&t.remove()},this.sendXHR=()=>{const t=encodeURIComponent(this.element.path),e="http://".concat(this.ip,":").concat(this.port,"/?file=").concat(t,"&line=").concat(this.element.line,"&column=").concat(this.element.column),s=new XMLHttpRequest;s.open("GET",e,!0),s.send(),s.addEventListener("error",()=>{this.sendType="img",this.sendImg()})},this.sendImg=()=>{const t=encodeURIComponent(this.element.path),e="http://".concat(this.ip,":").concat(this.port,"/?file=").concat(t,"&line=").concat(this.element.line,"&column=").concat(this.element.column);document.createElement("img").src=e},this.buildTargetUrl=()=>{let t=this.target;const{path:e,line:s,column:o}=this.element,n={"{file}":e,"{line}":s,"{column}":o};for(let r in n)t=t.replace(new RegExp(r,"g"),String(n[r]));return t},this.trackCode=()=>{if(this.locate&&(this.sendType==="xhr"?this.sendXHR():this.sendImg()),this.copy){const t=function(e,s,o,n){let r="".concat(e,":").concat(s,":").concat(o);if(typeof n=="string")r=n.replace(fe,e).replace(me,s.toString()).replace(ve,o.toString());else if(n instanceof Array)return n.map(l=>l.replace(fe,e).replace(me,s.toString()).replace(ve,o.toString()));return[r]}(this.element.path,String(this.element.line),String(this.element.column),this.copy);this.copyToClipboard(t[0])}this.target&&window.open(this.buildTargetUrl(),"_blank"),window.dispatchEvent(new CustomEvent("code-inspector:trackCode",{detail:this.element}))},this.handleDrag=t=>{if(t.composedPath().includes(this)?this.hoverSwitch=!0:this.hoverSwitch=!1,this.dragging){this.moved=!0;const e=this.draggingTarget==="switch"?this.inspectorSwitchRef:this.nodeTreeRef;return e.style.left=this.mousePosition.baseX+(this.getMousePosition(t).x-this.mousePosition.moveX)+"px",e.style.top=this.mousePosition.baseY+(this.getMousePosition(t).y-this.mousePosition.moveY)+"px",void(this.draggingTarget&&(this.nodeTreePosition.left=e.style.left,this.nodeTreePosition.top=e.style.top))}},this.isSamePositionNode=(t,e)=>{const s=t.getBoundingClientRect(),o=e.getBoundingClientRect();return s.top===o.top&&s.left===o.left&&s.right===o.right&&s.bottom===o.bottom},this.handleMouseMove=t=>H(this,null,function*(){if((this.isTracking(t)&&!this.dragging||this.open)&&!this.hoverSwitch){const e=t.composedPath();let s;for(let o=0;o<e.length;o++){const n=e[o];if((n.hasAttribute&&n.hasAttribute(ft)||n[ft])&&(s?this.isSamePositionNode(s,n)&&(s=n):s=n),n.hasAttribute&&n.hasAttribute("data-astro-source-file")){s=n;break}}s?this.renderCover(s):this.removeCover()}else this.removeCover()}),this.handleMouseClick=t=>{(this.isTracking(t)||this.open)&&this.show&&(t.stopPropagation(),t.preventDefault(),this.trackCode(),this.removeCover(),this.autoToggle&&(this.open=!1)),t.composedPath().includes(this.nodeTreeRef)||this.removeLayerPanel()},this.handleContextMenu=t=>{if((this.isTracking(t)&&!this.dragging||this.open)&&!this.hoverSwitch){t.preventDefault();const e=t.composedPath(),s=this.generateNodeTree(e);this.renderLayerPanel(s,{x:t.clientX,y:t.clientY})}},this.generateNodeTree=t=>{let e,s=1,o=null;for(const n of t.reverse()){const r=this.getSourceInfo(n);if(!r)continue;const l=j(P({},r),{children:[],depth:s++,element:n});o?o.children.push(l):e=l,o=l}return e},this.handlePointerDown=t=>{let e=!1,s=t.target;for(;s;){if(s.disabled){e=!0;break}s=s.parentElement}e&&(this.isTracking(t)||this.open)&&this.show&&(t.stopPropagation(),t.preventDefault(),this.trackCode(),this.removeCover(),this.autoToggle&&(this.open=!1))},this.handleKeyUp=t=>{this.isTracking(t)||this.open||this.removeCover()},this.printTip=()=>{const t=navigator.userAgent.toLowerCase(),e=["windows","win32","wow32","win64","wow64"].some(l=>t.toUpperCase().match(l.toUpperCase()))?ro:io,s=this.hotKeys.split(",").map(l=>"%c"+e[l.trim()]),o=2*s.length+1,n=Array(o).fill("").map((l,a)=>a%2==0?"color: #00B42A; font-family: PingFang SC; font-size: 12px;":"color: #006aff; font-weight: bold; font-family: PingFang SC; font-size: 12px;"),r="%c";console.log("".concat(r,"[code-inspector-plugin]").concat(r,"Press and hold ").concat(s.join(" ".concat(r,"+ "))).concat(r," to enable the feature. (click on page elements to locate the source code in the editor)"),"color: #006aff; font-weight: bolder; font-size: 12px;",...n)},this.getMousePosition=t=>{var e,s;return{x:t instanceof MouseEvent?t.pageX:(e=t.touches[0])==null?void 0:e.pageX,y:t instanceof MouseEvent?t.pageY:(s=t.touches[0])==null?void 0:s.pageY}},this.recordMousePosition=(t,e)=>{const s=e==="switch"?this.inspectorSwitchRef:this.nodeTreeRef;this.mousePosition={baseX:s.offsetLeft,baseY:s.offsetTop,moveX:this.getMousePosition(t).x,moveY:this.getMousePosition(t).y},this.dragging=!0,this.draggingTarget=e,t.preventDefault()},this.handleMouseUp=t=>{this.hoverSwitch=!1,this.dragging&&(this.dragging=!1,t instanceof TouchEvent&&this.draggingTarget==="switch"&&this.switch(t))},this.switch=t=>{this.moved||(this.open=!this.open,t.preventDefault(),t.stopPropagation()),this.moved=!1},this.handleClickTreeNode=t=>{this.element=t,this.trackCode(),this.removeLayerPanel()},this.handleMouseEnterNode=(t,e)=>H(this,null,function*(){const{x:s,y:o,width:n,height:r}=t.target.getBoundingClientRect();this.activeNode={width:n-16+"px",left:s+8+"px",visibility:"hidden",top:o-4+"px",bottom:"",content:"".concat(e.path,":").concat(e.line,":").concat(e.column),class:"tooltip-top"},this.renderCover(e.element),yield be();const{y:l}=this.nodeTreeTooltipRef.getBoundingClientRect();l<0&&(this.activeNode=j(P({},this.activeNode),{bottom:"",top:"".concat(o+r+4,"px"),class:"tooltip-bottom"})),this.activeNode=j(P({},this.activeNode),{visibility:"visible"})}),this.handleMouseLeaveNode=()=>{this.activeNode=j(P({},this.activeNode),{visibility:"hidden"}),this.removeCover(!0)},this.renderNodeTree=t=>nt(Ae||(Ae=B(['\n <div\n class="inspector-layer"\n style="padding-left: ','px;"\n @mouseenter="','"\n @mouseleave="','"\n @click="','"\n >\n &lt;',"&gt;\n </div>\n ","\n "])),8*t.depth,e=>H(this,null,function*(){return yield this.handleMouseEnterNode(e,t)}),this.handleMouseLeaveNode,()=>this.handleClickTreeNode(t),t.name,t.children.map(e=>this.renderNodeTree(e)))}copyToClipboard(t){var e;if(typeof((e=navigator==null?void 0:navigator.clipboard)==null?void 0:e.writeText)=="function")navigator.clipboard.writeText(t);else{const s=document.createElement("textarea");s.value=t,document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s)}}firstUpdated(){this.hideConsole||this.printTip(),window.addEventListener("mousemove",this.handleMouseMove,!0),window.addEventListener("touchmove",this.handleMouseMove,!0),window.addEventListener("mousemove",this.handleDrag,!0),window.addEventListener("touchmove",this.handleDrag,!0),window.addEventListener("click",this.handleMouseClick,!0),window.addEventListener("pointerdown",this.handlePointerDown,!0),window.addEventListener("keyup",this.handleKeyUp,!0),window.addEventListener("mouseleave",this.removeCover,!0),window.addEventListener("mouseup",this.handleMouseUp,!0),window.addEventListener("touchend",this.handleMouseUp,!0),window.addEventListener("contextmenu",this.handleContextMenu,!0)}disconnectedCallback(){window.removeEventListener("mousemove",this.handleMouseMove,!0),window.removeEventListener("touchmove",this.handleMouseMove,!0),window.removeEventListener("mousemove",this.handleDrag,!0),window.removeEventListener("touchmove",this.handleDrag,!0),window.removeEventListener("click",this.handleMouseClick,!0),window.removeEventListener("pointerdown",this.handlePointerDown,!0),window.removeEventListener("keyup",this.handleKeyUp,!0),window.removeEventListener("mouseleave",this.removeCover,!0),window.removeEventListener("mouseup",this.handleMouseUp,!0),window.removeEventListener("touchend",this.handleMouseUp,!0),window.removeEventListener("contextmenu",this.handleContextMenu,!0)}render(){const t={display:this.show?"block":"none",top:this.position.top-this.position.margin.top+"px",left:this.position.left-this.position.margin.left+"px",height:"".concat(this.position.bottom-this.position.top+this.position.margin.bottom+this.position.margin.top,"px"),width:"".concat(this.position.right-this.position.left+this.position.margin.right+this.position.margin.left,"px")},e={borderTopWidth:"".concat(this.position.margin.top,"px"),borderRightWidth:"".concat(this.position.margin.right,"px"),borderBottomWidth:"".concat(this.position.margin.bottom,"px"),borderLeftWidth:"".concat(this.position.margin.left,"px")},s={borderTopWidth:"".concat(this.position.border.top,"px"),borderRightWidth:"".concat(this.position.border.right,"px"),borderBottomWidth:"".concat(this.position.border.bottom,"px"),borderLeftWidth:"".concat(this.position.border.left,"px")},o={borderTopWidth:"".concat(this.position.padding.top,"px"),borderRightWidth:"".concat(this.position.padding.right,"px"),borderBottomWidth:"".concat(this.position.padding.bottom,"px"),borderLeftWidth:"".concat(this.position.padding.left,"px")},n=P({display:this.showNodeTree?"flex":"none"},this.nodeTreePosition),r={visibility:this.activeNode.visibility,maxWidth:this.activeNode.width,top:this.activeNode.top,left:this.activeNode.left,bottom:this.activeNode.bottom,display:this.showNodeTree?"":"none"};return nt(Me||(Me=B(['\n <div\n class="code-inspector-container"\n id="code-inspector-container"\n style=','\n >\n <div class="margin-overlay" style=','>\n <div class="border-overlay" style=','>\n <div class="padding-overlay" style=','>\n <div class="content-overlay"></div>\n </div>\n </div>\n </div>\n <div\n id="element-info"\n class="element-info '," "," ",'"\n style=','\n >\n <div class="element-info-content">\n <div class="name-line">\n <div class="element-name">\n <span class="element-title">&lt;','&gt;</span>\n <span class="element-tip">click to open editor</span>\n </div>\n </div>\n <div class="path-line">\n ',":",":",'\n </div>\n </div>\n </div>\n </div>\n <div\n id="inspector-switch"\n class="inspector-switch '," ",'"\n style=','\n @mousedown="','"\n @touchstart="','"\n @click="','"\n >\n ','\n </div>\n <div\n id="inspector-node-tree"\n class="element-info-content"\n style=','\n >\n <div\n class="inspector-layer-title"\n @mousedown="','"\n @touchstart="','"\n >\n <div>🔍️ click node to open editor</div>\n ','\n </div>\n\n <div\n class="node-tree-list"\n style="','"\n >\n ','\n <div style="height: 8px"></div>\n </div>\n </div>\n <div\n id="node-tree-tooltip"\n class="','"\n style=',"\n >\n ","\n </div>\n "])),O(t),O(e),O(s),O(o),this.elementTipStyle.vertical,this.elementTipStyle.horizon,this.elementTipStyle.visibility,O(P({width:at+"px",maxWidth:"100vw"},this.elementTipStyle.additionStyle)),this.element.name,this.element.path,this.element.line,this.element.column,this.open?"active-inspector-switch":"",this.moved?"move-inspector-switch":"",O({display:this.showSwitch?"flex":"none"}),l=>this.recordMousePosition(l,"switch"),l=>this.recordMousePosition(l,"switch"),this.switch,this.open?nt(ke||(ke=B(['\n <svg\n t="1677801709811"\n class="icon"\n viewBox="0 0 1024 1024"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n p-id="1110"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n width="1em"\n height="1em"\n >\n <path\n d="M546.56 704H128c-19.2 0-32-12.8-32-32V256h704v194.56c10.928 1.552 21.648 3.76 32 6.832V128c0-35.2-28.8-64-64-64H128C92.8 64 64 92.8 64 128v544c0 35.2 28.8 64 64 64h425.392a221.936 221.936 0 0 1-6.848-32zM96 128c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32v96H96V128z"\n fill="#34495E"\n p-id="1111"\n ></path>\n <path\n d="M416 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#00B42A"\n p-id="1112"\n ></path>\n <path\n d="M288 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#F7BA1E"\n p-id="1113"\n ></path>\n <path\n d="M160 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#F53F3F"\n p-id="1114"\n ></path>\n <path\n d="M382.848 658.928l99.376-370.88 30.912 8.272-99.36 370.88zM318.368 319.2L160 477.6l158.4 158.4 22.64-22.624-135.792-135.776 135.776-135.776zM768 480c-13.088 0-25.888 1.344-38.24 3.84l6.24-6.24-158.4-158.4-22.64 22.624 135.792 135.776-135.776 135.776 22.656 22.624 2.208-2.224a190.768 190.768 0 0 0 30.928 148.08l-116.672 116.656c-10.24 10.24-10.24 26.896 0 37.136l27.76 27.76c5.12 5.12 11.84 7.68 18.56 7.68s13.456-2.56 18.56-7.68l120.992-120.96A190.56 190.56 0 0 0 768 864c105.872 0 192-86.128 192-192s-86.128-192-192-192z m-159.12 193.136c0-88.224 71.776-160 160-160 10.656 0 21.04 1.152 31.12 3.152V672c0 19.2-12.8 32-32 32h-156a160.144 160.144 0 0 1-3.12-30.864z m-68.464 263.584l-19.632-19.632 110.336-110.336c6.464 6.656 13.392 12.848 20.752 18.528l-111.456 111.44z m228.464-103.584c-65.92 0-122.576-40.096-147.056-97.136H768c35.2 0 64-28.8 64-64v-145.776c56.896 24.544 96.88 81.12 96.88 146.912 0 88.224-71.776 160-160 160z"\n fill="#006AFF"\n p-id="1115"\n ></path>\n <path\n d="M864.576 672c0 52.928-43.072 96-96 96v32a128 128 0 0 0 128-128h-32z"\n fill="#34495E"\n p-id="1116"\n ></path>\n </svg>\n ']))):nt(Ce||(Ce=B(['<svg\n t="1677801709811"\n class="icon"\n viewBox="0 0 1024 1024"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n p-id="1110"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n width="1em"\n height="1em"\n >\n <path\n d="M546.56 704H128c-19.2 0-32-12.8-32-32V256h704v194.56c10.928 1.552 21.648 3.76 32 6.832V128c0-35.2-28.8-64-64-64H128C92.8 64 64 92.8 64 128v544c0 35.2 28.8 64 64 64h425.392a221.936 221.936 0 0 1-6.848-32zM96 128c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32v96H96V128z"\n fill="currentColor"\n p-id="1111"\n ></path>\n <path\n d="M416 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1112"\n ></path>\n <path\n d="M288 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1113"\n ></path>\n <path\n d="M160 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1114"\n ></path>\n <path\n d="M382.848 658.928l99.376-370.88 30.912 8.272-99.36 370.88zM318.368 319.2L160 477.6l158.4 158.4 22.64-22.624-135.792-135.776 135.776-135.776zM768 480c-13.088 0-25.888 1.344-38.24 3.84l6.24-6.24-158.4-158.4-22.64 22.624 135.792 135.776-135.776 135.776 22.656 22.624 2.208-2.224a190.768 190.768 0 0 0 30.928 148.08l-116.672 116.656c-10.24 10.24-10.24 26.896 0 37.136l27.76 27.76c5.12 5.12 11.84 7.68 18.56 7.68s13.456-2.56 18.56-7.68l120.992-120.96A190.56 190.56 0 0 0 768 864c105.872 0 192-86.128 192-192s-86.128-192-192-192z m-159.12 193.136c0-88.224 71.776-160 160-160 10.656 0 21.04 1.152 31.12 3.152V672c0 19.2-12.8 32-32 32h-156a160.144 160.144 0 0 1-3.12-30.864z m-68.464 263.584l-19.632-19.632 110.336-110.336c6.464 6.656 13.392 12.848 20.752 18.528l-111.456 111.44z m228.464-103.584c-65.92 0-122.576-40.096-147.056-97.136H768c35.2 0 64-28.8 64-64v-145.776c56.896 24.544 96.88 81.12 96.88 146.912 0 88.224-71.776 160-160 160z"\n fill="currentColor"\n p-id="1115"\n ></path>\n <path\n d="M864.576 672c0 52.928-43.072 96-96 96v32a128 128 0 0 0 128-128h-32z"\n fill="currentColor"\n p-id="1116"\n ></path>\n </svg>']))),O(n),l=>this.recordMousePosition(l,"nodeTree"),l=>this.recordMousePosition(l,"nodeTree"),nt(Se||(Se=B(['<svg\n xmlns="http://www.w3.org/2000/svg"\n width="16"\n height="16"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="close-icon"\n @click="','"\n >\n <path d="M18 6 6 18" />\n <path d="m6 6 12 12" />\n </svg>'])),this.removeLayerPanel),O({pointerEvents:this.dragging?"none":""}),this.nodeTree?this.renderNodeTree(this.nodeTree):"",this.activeNode.class,O(r),this.activeNode.content)}}m.styles=((i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,o,n)=>s+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[n+1],i[0]);return new dt(e,i,J)})(Te||(Te=B(["\n .code-inspector-container {\n position: fixed;\n pointer-events: none;\n z-index: 9999999999999;\n font-family: 'PingFang SC';\n .margin-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(255, 155, 0, 0.3);\n .border-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(255, 200, 50, 0.3);\n .padding-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(77, 200, 0, 0.3);\n .content-overlay {\n position: absolute;\n inset: 0;\n background: rgba(120, 170, 210, 0.7);\n }\n }\n }\n }\n }\n .element-info {\n position: absolute;\n }\n .element-info.hidden {\n visibility: hidden;\n }\n .element-info-content {\n max-width: 100%;\n font-size: 12px;\n color: #000;\n background-color: #fff;\n word-break: break-all;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);\n box-sizing: border-box;\n padding: 4px 8px;\n border-radius: 4px;\n }\n .element-info-top {\n top: -4px;\n transform: translateY(-100%);\n }\n .element-info-bottom {\n top: calc(100% + 4px);\n }\n .element-info-top-inner {\n top: 4px;\n }\n .element-info-bottom-inner {\n bottom: 4px;\n }\n .element-info-left {\n left: 0;\n display: flex;\n justify-content: flex-start;\n }\n .element-info-right {\n right: 0;\n display: flex;\n justify-content: flex-end;\n }\n .element-name .element-title {\n color: coral;\n font-weight: bold;\n }\n .element-name .element-tip {\n color: #006aff;\n }\n .path-line {\n color: #333;\n line-height: 12px;\n margin-top: 4px;\n }\n .inspector-switch {\n position: fixed;\n z-index: 9999999999999;\n top: 50%;\n right: 24px;\n font-size: 22px;\n transform: translateY(-100%);\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255, 255, 255, 0.8);\n color: #555;\n height: 32px;\n width: 32px;\n border-radius: 50%;\n box-shadow: 0px 1px 2px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 6px 0px rgba(0, 0, 0, 0.16),\n 0px 5px 12px 4px rgba(0, 0, 0, 0.12);\n cursor: pointer;\n }\n .active-inspector-switch {\n color: #006aff;\n }\n .move-inspector-switch {\n cursor: move;\n }\n #inspector-node-tree {\n position: fixed;\n user-select: none;\n z-index: 9999999999999999;\n min-width: 300px;\n max-width: min(max(30vw, 300px), 400px);\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,\n 'Liberation Mono', 'Courier New', monospace;\n display: flex;\n flex-direction: column;\n padding: 0;\n\n .inspector-layer-title {\n border-bottom: 1px solid #eee;\n padding: 8px 8px 4px;\n margin-bottom: 8px;\n flex-shrink: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: move;\n user-select: none;\n &:hover {\n background: rgba(0, 106, 255, 0.1);\n }\n }\n\n .node-tree-list {\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n }\n\n .inspector-layer {\n cursor: pointer;\n position: relative;\n padding-right: 8px;\n &:hover {\n background: #fdf4bf;\n }\n }\n\n .element-tip {\n font-size: 9px;\n opacity: 0.5;\n color: #999;\n margin-left: 6px;\n }\n\n .path-line {\n font-size: 9px;\n color: #777;\n margin-top: 1px;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n }\n }\n\n #node-tree-tooltip {\n position: fixed;\n box-sizing: border-box;\n z-index: 999999999999999999;\n background: rgba(0, 0, 0, 0.6);\n color: white;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 12px;\n white-space: wrap;\n pointer-events: none;\n word-break: break-all;\n }\n .tooltip-top {\n transform: translateY(-100%);\n }\n .close-icon {\n cursor: pointer;\n }\n "]))),y([N()],m.prototype,"hotKeys",2),y([N()],m.prototype,"port",2),y([N()],m.prototype,"showSwitch",2),y([N()],m.prototype,"autoToggle",2),y([N()],m.prototype,"hideConsole",2),y([N()],m.prototype,"locate",2),y([N()],m.prototype,"copy",2),y([N()],m.prototype,"target",2),y([N()],m.prototype,"ip",2),y([S()],m.prototype,"position",2),y([S()],m.prototype,"element",2),y([S()],m.prototype,"elementTipStyle",2),y([S()],m.prototype,"show",2),y([S()],m.prototype,"showNodeTree",2),y([S()],m.prototype,"nodeTreePosition",2),y([S()],m.prototype,"nodeTree",2),y([S()],m.prototype,"dragging",2),y([S()],m.prototype,"mousePosition",2),y([S()],m.prototype,"draggingTarget",2),y([S()],m.prototype,"open",2),y([S()],m.prototype,"moved",2),y([S()],m.prototype,"hoverSwitch",2),y([S()],m.prototype,"preUserSelect",2),y([S()],m.prototype,"sendType",2),y([S()],m.prototype,"activeNode",2),y([G("#inspector-switch")],m.prototype,"inspectorSwitchRef",2),y([G("#code-inspector-container")],m.prototype,"codeInspectorContainerRef",2),y([G("#element-info")],m.prototype,"elementInfoRef",2),y([G("#inspector-node-tree")],m.prototype,"nodeTreeRef",2),y([G(".inspector-layer-title")],m.prototype,"nodeTreeTitleRef",2),y([G("#node-tree-tooltip")],m.prototype,"nodeTreeTooltipRef",2),customElements.get("code-inspector-component")||customElements.define("code-inspector-component",m),x.CodeInspectorComponent=m,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
1
+ (function(x,b){typeof exports=="object"&&typeof module!="undefined"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):b((x=typeof globalThis!="undefined"?globalThis:x||self).vueInspectorClient={})})(this,function(x){"use strict";var $t=Object.freeze,Et=Object.defineProperty,ao=Object.defineProperties;var co=Object.getOwnPropertyDescriptors;var xt=Object.getOwnPropertySymbols;var ho=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable;var C=Math.pow,_t=(x,b,E)=>b in x?Et(x,b,{enumerable:!0,configurable:!0,writable:!0,value:E}):x[b]=E,N=(x,b)=>{for(var E in b||(b={}))ho.call(b,E)&&_t(x,E,b[E]);if(xt)for(var E of xt(b))po.call(b,E)&&_t(x,E,b[E]);return x},j=(x,b)=>ao(x,co(b));var D=(x,b)=>$t(Et(x,"raw",{value:$t(b||x.slice())})),K=(x,b,E)=>new Promise((Q,ee)=>{var de=T=>{try{R(E.next(T))}catch(Y){ee(Y)}},pe=T=>{try{R(E.throw(T))}catch(Y){ee(Y)}},R=T=>T.done?Q(T.value):Promise.resolve(T.value).then(de,pe);R((E=E.apply(x,b)).next())});var kt,Ct,At,St,Mt,Tt,Pt,Nt;const b=window,E=b.ShadowRoot&&(b.ShadyCSS===void 0||b.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Q=Symbol(),ee=new WeakMap;let de=class{constructor(s,e,t){if(this._$cssResult$=!0,t!==Q)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=s,this.t=e}get styleSheet(){let s=this.o;const e=this.t;if(E&&s===void 0){const t=e!==void 0&&e.length===1;t&&(s=ee.get(e)),s===void 0&&((this.o=s=new CSSStyleSheet).replaceSync(this.cssText),t&&ee.set(e,s))}return s}toString(){return this.cssText}};const pe=E?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(i=>new de(typeof i=="string"?i:i+"",void 0,Q))(t)})(s):s;var R;const T=window,Y=T.trustedTypes,Ot=Y?Y.emptyScript:"",Re=T.reactiveElementPolyfillSupport,we={toAttribute(s,e){switch(e){case Boolean:s=s?Ot:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch(i){t=null}}return t}},Ie=(s,e)=>e!==s&&(e==e||s==s),$e={attribute:!0,type:String,converter:we,reflect:!1,hasChanged:Ie};let W=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(s){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(s)}static get observedAttributes(){this.finalize();const s=[];return this.elementProperties.forEach((e,t)=>{const i=this._$Ep(t,e);i!==void 0&&(this._$Ev.set(i,t),s.push(i))}),s}static createProperty(s,e=$e){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(s,e),!e.noAccessor&&!this.prototype.hasOwnProperty(s)){const t=typeof s=="symbol"?Symbol():"__"+s,i=this.getPropertyDescriptor(s,t,e);i!==void 0&&Object.defineProperty(this.prototype,s,i)}}static getPropertyDescriptor(s,e,t){return{get(){return this[e]},set(i){const o=this[s];this[e]=i,this.requestUpdate(s,o,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(s){return this.elementProperties.get(s)||$e}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const s=Object.getPrototypeOf(this);if(s.finalize(),s.h!==void 0&&(this.h=[...s.h]),this.elementProperties=new Map(s.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(s){const e=[];if(Array.isArray(s)){const t=new Set(s.flat(1/0).reverse());for(const i of t)e.unshift(pe(i))}else s!==void 0&&e.push(pe(s));return e}static _$Ep(s,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof s=="string"?s.toLowerCase():void 0}u(){var s;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(s=this.constructor.h)===null||s===void 0||s.forEach(e=>e(this))}addController(s){var e,t;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(s),this.renderRoot!==void 0&&this.isConnected&&((t=s.hostConnected)===null||t===void 0||t.call(s))}removeController(s){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(s)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((s,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var s;const e=(s=this.shadowRoot)!==null&&s!==void 0?s:this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{E?t.adoptedStyleSheets=i.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):i.forEach(o=>{const n=document.createElement("style"),r=b.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=o.cssText,t.appendChild(n)})})(e,this.constructor.elementStyles),e}connectedCallback(){var s;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(s=this._$ES)===null||s===void 0||s.forEach(e=>{var t;return(t=e.hostConnected)===null||t===void 0?void 0:t.call(e)})}enableUpdating(s){}disconnectedCallback(){var s;(s=this._$ES)===null||s===void 0||s.forEach(e=>{var t;return(t=e.hostDisconnected)===null||t===void 0?void 0:t.call(e)})}attributeChangedCallback(s,e,t){this._$AK(s,t)}_$EO(s,e,t=$e){var i;const o=this.constructor._$Ep(s,t);if(o!==void 0&&t.reflect===!0){const n=(((i=t.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?t.converter:we).toAttribute(e,t.type);this._$El=s,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(s,e){var t;const i=this.constructor,o=i._$Ev.get(s);if(o!==void 0&&this._$El!==o){const n=i.getPropertyOptions(o),r=typeof n.converter=="function"?{fromAttribute:n.converter}:((t=n.converter)===null||t===void 0?void 0:t.fromAttribute)!==void 0?n.converter:we;this._$El=o,this[o]=r.fromAttribute(e,n.type),this._$El=null}}requestUpdate(s,e,t){let i=!0;s!==void 0&&(((t=t||this.constructor.getPropertyOptions(s)).hasChanged||Ie)(this[s],e)?(this._$AL.has(s)||this._$AL.set(s,e),t.reflect===!0&&this._$El!==s&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(s,t))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}_$Ej(){return K(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const s=this.scheduleUpdate();return s!=null&&(yield s),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(s=this._$ES)===null||s===void 0||s.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(t)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(t)}willUpdate(s){}_$AE(s){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostUpdated)===null||i===void 0?void 0:i.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(s)),this.updated(s)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(s){return!0}update(s){this._$EC!==void 0&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(s){}firstUpdated(s){}};var xe;W.finalized=!0,W.elementProperties=new Map,W.elementStyles=[],W.shadowRootOptions={mode:"open"},Re==null||Re({ReactiveElement:W}),((R=T.reactiveElementVersions)!==null&&R!==void 0?R:T.reactiveElementVersions=[]).push("1.6.1");const ue=window,F=ue.trustedTypes,Ve=F?F.createPolicy("lit-html",{createHTML:s=>s}):void 0,L="lit$".concat((Math.random()+"").slice(9),"$"),Be="?"+L,jt="<".concat(Be,">"),q=document,te=(s="")=>q.createComment(s),oe=s=>s===null||typeof s!="object"&&typeof s!="function",He=Array.isArray,ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ke=/-->/g,Ye=/>/g,I=RegExp(">|[ \n\f\r](?:([^\\s\"'>=/]+)([ \n\f\r]*=[ \n\f\r]*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),We=/'/g,Fe=/"/g,qe=/^(?:script|style|textarea|title)$/i,V=(s=>(e,...t)=>({_$litType$:s,strings:e,values:t}))(1),B=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),Xe=new WeakMap,X=q.createTreeWalker(q,129,null,!1),Dt=(s,e)=>{const t=s.length-1,i=[];let o,n=e===2?"<svg>":"",r=ne;for(let a=0;a<t;a++){const c=s[a];let h,d,p=-1,u=0;for(;u<c.length&&(r.lastIndex=u,d=r.exec(c),d!==null);)u=r.lastIndex,r===ne?d[1]==="!--"?r=Ke:d[1]!==void 0?r=Ye:d[2]!==void 0?(qe.test(d[2])&&(o=RegExp("</"+d[2],"g")),r=I):d[3]!==void 0&&(r=I):r===I?d[0]===">"?(r=o!=null?o:ne,p=-1):d[1]===void 0?p=-2:(p=r.lastIndex-d[2].length,h=d[1],r=d[3]===void 0?I:d[3]==='"'?Fe:We):r===Fe||r===We?r=I:r===Ke||r===Ye?r=ne:(r=I,o=void 0);const g=r===I&&s[a+1].startsWith("/>")?" ":"";n+=r===ne?c+jt:p>=0?(i.push(h),c.slice(0,p)+"$lit$"+c.slice(p)+L+g):c+L+(p===-2?(i.push(void 0),a):g)}const l=n+(s[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Ve!==void 0?Ve.createHTML(l):l,i]};class ie{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let n=0,r=0;const l=e.length-1,a=this.parts,[c,h]=Dt(e,t);if(this.el=ie.createElement(c,i),X.currentNode=this.el.content,t===2){const d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;(o=X.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const p of o.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(L)){const u=h[r++];if(d.push(p),u!==void 0){const g=o.getAttribute(u.toLowerCase()+"$lit$").split(L),f=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:f[2],strings:g,ctor:f[1]==="."?Ut:f[1]==="?"?Rt:f[1]==="@"?It:ge})}else a.push({type:6,index:n})}for(const p of d)o.removeAttribute(p)}if(qe.test(o.tagName)){const d=o.textContent.split(L),p=d.length-1;if(p>0){o.textContent=F?F.emptyScript:"";for(let u=0;u<p;u++)o.append(d[u],te()),X.nextNode(),a.push({type:2,index:++n});o.append(d[p],te())}}}else if(o.nodeType===8)if(o.data===Be)a.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf(L,d+1))!==-1;)a.push({type:7,index:n}),d+=L.length-1}n++}}static createElement(e,t){const i=q.createElement("template");return i.innerHTML=e,i}}function G(s,e,t=s,i){var o,n,r,l;if(e===B)return e;let a=i!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[i]:t._$Cl;const c=oe(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((n=a==null?void 0:a._$AO)===null||n===void 0||n.call(a,!1),c===void 0?a=void 0:(a=new c(s),a._$AT(s,t,i)),i!==void 0?((r=(l=t)._$Co)!==null&&r!==void 0?r:l._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=G(s,a._$AS(s,e.values),a,i)),e}class Lt{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:i},parts:o}=this._$AD,n=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:q).importNode(i,!0);X.currentNode=n;let r=X.nextNode(),l=0,a=0,c=o[0];for(;c!==void 0;){if(l===c.index){let h;c.type===2?h=new se(r,r.nextSibling,this,e):c.type===1?h=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(h=new Vt(r,this,e)),this.u.push(h),c=o[++a]}l!==(c==null?void 0:c.index)&&(r=X.nextNode(),l++)}return n}p(e){let t=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class se{constructor(e,t,i,o){var n;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cm=(n=o==null?void 0:o.isConnected)===null||n===void 0||n}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=G(this,e,t),oe(e)?e===A||e==null||e===""?(this._$AH!==A&&this._$AR(),this._$AH=A):e!==this._$AH&&e!==B&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):(i=>He(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function")(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==A&&oe(this._$AH)?this._$AA.nextSibling.data=e:this.T(q.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=ie.createElement(o.h,this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===n)this._$AH.p(i);else{const r=new Lt(n,this),l=r.v(this.options);r.p(i),this.T(l),this._$AH=r}}_$AC(e){let t=Xe.get(e.strings);return t===void 0&&Xe.set(e.strings,t=new ie(e)),t}k(e){He(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const n of e)o===t.length?t.push(i=new se(this.O(te()),this.O(te()),this,this.options)):i=t[o],i._$AI(n),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class ge{constructor(e,t,i,o,n){this.type=1,this._$AH=A,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const n=this.strings;let r=!1;if(n===void 0)e=G(this,e,t,0),r=!oe(e)||e!==this._$AH&&e!==B,r&&(this._$AH=e);else{const l=e;let a,c;for(e=n[0],a=0;a<n.length-1;a++)c=G(this,l[i+a],t,a),c===B&&(c=this._$AH[a]),r||(r=!oe(c)||c!==this._$AH[a]),c===A?e=A:e!==A&&(e+=(c!=null?c:"")+n[a+1]),this._$AH[a]=c}r&&!o&&this.j(e)}j(e){e===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}let Ut=class extends ge{constructor(){super(...arguments),this.type=3}j(s){this.element[this.name]=s===A?void 0:s}};const zt=F?F.emptyScript:"";class Rt extends ge{constructor(){super(...arguments),this.type=4}j(e){e&&e!==A?this.element.setAttribute(this.name,zt):this.element.removeAttribute(this.name)}}class It extends ge{constructor(e,t,i,o,n){super(e,t,i,o,n),this.type=5}_$AI(e,t=this){var i;if((e=(i=G(this,e,t,0))!==null&&i!==void 0?i:A)===B)return;const o=this._$AH,n=e===A&&o!==A||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==A&&(o===A||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}}class Vt{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){G(this,e)}}const Ge=ue.litHtmlPolyfillSupport;Ge==null||Ge(ie,se),((xe=ue.litHtmlVersions)!==null&&xe!==void 0?xe:ue.litHtmlVersions=[]).push("2.6.1");var _e,Ee;class re extends W{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((i,o,n)=>{var r,l;const a=(r=n==null?void 0:n.renderBefore)!==null&&r!==void 0?r:o;let c=a._$litPart$;if(c===void 0){const h=(l=n==null?void 0:n.renderBefore)!==null&&l!==void 0?l:null;a._$litPart$=c=new se(o.insertBefore(te(),h),h,void 0,n!=null?n:{})}return c._$AI(i),c})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return B}}re.finalized=!0,re._$litElement$=!0,(_e=globalThis.litElementHydrateSupport)===null||_e===void 0||_e.call(globalThis,{LitElement:re});const Ze=globalThis.litElementPolyfillSupport;Ze==null||Ze({LitElement:re}),((Ee=globalThis.litElementVersions)!==null&&Ee!==void 0?Ee:globalThis.litElementVersions=[]).push("3.2.2");const Bt=(s,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?j(N({},e),{finisher(t){t.createProperty(e.key,s)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,s)}};function P(s){return(e,t)=>t!==void 0?((i,o,n)=>{o.constructor.createProperty(n,i)})(s,e,t):Bt(s,e)}function _(s){return P(j(N({},s),{state:!0}))}function Z(s,e){return(({finisher:t,descriptor:i})=>(o,n)=>{var r;if(n===void 0){const l=(r=o.originalKey)!==null&&r!==void 0?r:o.key,a=i!=null?{kind:"method",placement:"prototype",key:l,descriptor:i(o.key)}:j(N({},o),{key:l});return t!=null&&(a.finisher=function(c){t(c,l)}),a}{const l=o.constructor;i!==void 0&&Object.defineProperty(o,n,i(n)),t==null||t(l,n)}})({descriptor:t=>{const i={get(){var o,n;return(n=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(s))!==null&&n!==void 0?n:null},enumerable:!0,configurable:!0};if(e){const o=typeof t=="symbol"?Symbol():"__"+t;i.get=function(){var n,r;return this[o]===void 0&&(this[o]=(r=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(s))!==null&&r!==void 0?r:null),this[o]}}return i}})}var ke;(ke=window.HTMLSlotElement)===null||ke===void 0||ke.prototype.assignedElements;const Ht=1;let Kt=class{constructor(s){}get _$AU(){return this._$AM._$AU}_$AT(s,e,t){this._$Ct=s,this._$AM=e,this._$Ci=t}_$AS(s,e){return this.update(s,e)}update(s,e){return this.render(...e)}};const O=(s=>(...e)=>({_$litDirective$:s,values:e}))(class extends Kt{constructor(s){var e;if(super(s),s.type!==Ht||s.name!=="style"||((e=s.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((e,t)=>{const i=s[t];return i==null?e:e+"".concat(t=t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(i,";")},"")}update(s,[e]){const{style:t}=s.element;if(this.vt===void 0){this.vt=new Set;for(const i in e)this.vt.add(i);return this.render(e)}this.vt.forEach(i=>{e[i]==null&&(this.vt.delete(i),i.includes("-")?t.removeProperty(i):t[i]="")});for(const i in e){const o=e[i];o!=null&&(this.vt.add(i),i.includes("-")?t.setProperty(i,o):t[i]=o)}return B}}),fe="data-insp-path",Yt=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}));function Wt(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function i(){if(this instanceof i){var o=[null];return o.push.apply(o,arguments),new(Function.bind.apply(e,o))}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(i){var o=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return s[i]}})}),t}var Je,Qe,Ce,et,Ae,tt,ot,nt,it={exports:{}};function st(){if(et)return Ce;et=1;const s=Qe?Je:(Qe=1,Je={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),e={};for(const o of Object.keys(s))e[s[o]]=o;const t={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Ce=t;for(const o of Object.keys(t)){if(!("channels"in t[o]))throw new Error("missing channels property: "+o);if(!("labels"in t[o]))throw new Error("missing channel labels property: "+o);if(t[o].labels.length!==t[o].channels)throw new Error("channel and label counts mismatch: "+o);const{channels:n,labels:r}=t[o];delete t[o].channels,delete t[o].labels,Object.defineProperty(t[o],"channels",{value:n}),Object.defineProperty(t[o],"labels",{value:r})}function i(o,n){return C(o[0]-n[0],2)+C(o[1]-n[1],2)+C(o[2]-n[2],2)}return t.rgb.hsl=function(o){const n=o[0]/255,r=o[1]/255,l=o[2]/255,a=Math.min(n,r,l),c=Math.max(n,r,l),h=c-a;let d,p;c===a?d=0:n===c?d=(r-l)/h:r===c?d=2+(l-n)/h:l===c&&(d=4+(n-r)/h),d=Math.min(60*d,360),d<0&&(d+=360);const u=(a+c)/2;return p=c===a?0:u<=.5?h/(c+a):h/(2-c-a),[d,100*p,100*u]},t.rgb.hsv=function(o){let n,r,l,a,c;const h=o[0]/255,d=o[1]/255,p=o[2]/255,u=Math.max(h,d,p),g=u-Math.min(h,d,p),f=function(y){return(u-y)/6/g+.5};return g===0?(a=0,c=0):(c=g/u,n=f(h),r=f(d),l=f(p),h===u?a=l-r:d===u?a=1/3+n-l:p===u&&(a=2/3+r-n),a<0?a+=1:a>1&&(a-=1)),[360*a,100*c,100*u]},t.rgb.hwb=function(o){const n=o[0],r=o[1];let l=o[2];const a=t.rgb.hsl(o)[0],c=1/255*Math.min(n,Math.min(r,l));return l=1-1/255*Math.max(n,Math.max(r,l)),[a,100*c,100*l]},t.rgb.cmyk=function(o){const n=o[0]/255,r=o[1]/255,l=o[2]/255,a=Math.min(1-n,1-r,1-l);return[100*((1-n-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-l-a)/(1-a)||0),100*a]},t.rgb.keyword=function(o){const n=e[o];if(n)return n;let r,l=1/0;for(const a of Object.keys(s)){const c=i(o,s[a]);c<l&&(l=c,r=a)}return r},t.keyword.rgb=function(o){return s[o]},t.rgb.xyz=function(o){let n=o[0]/255,r=o[1]/255,l=o[2]/255;return n=n>.04045?C((n+.055)/1.055,2.4):n/12.92,r=r>.04045?C((r+.055)/1.055,2.4):r/12.92,l=l>.04045?C((l+.055)/1.055,2.4):l/12.92,[100*(.4124*n+.3576*r+.1805*l),100*(.2126*n+.7152*r+.0722*l),100*(.0193*n+.1192*r+.9505*l)]},t.rgb.lab=function(o){const n=t.rgb.xyz(o);let r=n[0],l=n[1],a=n[2];return r/=95.047,l/=100,a/=108.883,r=r>.008856?C(r,1/3):7.787*r+16/116,l=l>.008856?C(l,1/3):7.787*l+16/116,a=a>.008856?C(a,1/3):7.787*a+16/116,[116*l-16,500*(r-l),200*(l-a)]},t.hsl.rgb=function(o){const n=o[0]/360,r=o[1]/100,l=o[2]/100;let a,c,h;if(r===0)return h=255*l,[h,h,h];a=l<.5?l*(1+r):l+r-l*r;const d=2*l-a,p=[0,0,0];for(let u=0;u<3;u++)c=n+1/3*-(u-1),c<0&&c++,c>1&&c--,h=6*c<1?d+6*(a-d)*c:2*c<1?a:3*c<2?d+(a-d)*(2/3-c)*6:d,p[u]=255*h;return p},t.hsl.hsv=function(o){const n=o[0];let r=o[1]/100,l=o[2]/100,a=r;const c=Math.max(l,.01);return l*=2,r*=l<=1?l:2-l,a*=c<=1?c:2-c,[n,100*(l===0?2*a/(c+a):2*r/(l+r)),100*((l+r)/2)]},t.hsv.rgb=function(o){const n=o[0]/60,r=o[1]/100;let l=o[2]/100;const a=Math.floor(n)%6,c=n-Math.floor(n),h=255*l*(1-r),d=255*l*(1-r*c),p=255*l*(1-r*(1-c));switch(l*=255,a){case 0:return[l,p,h];case 1:return[d,l,h];case 2:return[h,l,p];case 3:return[h,d,l];case 4:return[p,h,l];case 5:return[l,h,d]}},t.hsv.hsl=function(o){const n=o[0],r=o[1]/100,l=o[2]/100,a=Math.max(l,.01);let c,h;h=(2-r)*l;const d=(2-r)*a;return c=r*a,c/=d<=1?d:2-d,c=c||0,h/=2,[n,100*c,100*h]},t.hwb.rgb=function(o){const n=o[0]/360;let r=o[1]/100,l=o[2]/100;const a=r+l;let c;a>1&&(r/=a,l/=a);const h=Math.floor(6*n),d=1-l;c=6*n-h,1&h&&(c=1-c);const p=r+c*(d-r);let u,g,f;switch(h){default:case 6:case 0:u=d,g=p,f=r;break;case 1:u=p,g=d,f=r;break;case 2:u=r,g=d,f=p;break;case 3:u=r,g=p,f=d;break;case 4:u=p,g=r,f=d;break;case 5:u=d,g=r,f=p}return[255*u,255*g,255*f]},t.cmyk.rgb=function(o){const n=o[0]/100,r=o[1]/100,l=o[2]/100,a=o[3]/100;return[255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,l*(1-a)+a))]},t.xyz.rgb=function(o){const n=o[0]/100,r=o[1]/100,l=o[2]/100;let a,c,h;return a=3.2406*n+-1.5372*r+-.4986*l,c=-.9689*n+1.8758*r+.0415*l,h=.0557*n+-.204*r+1.057*l,a=a>.0031308?1.055*C(a,1/2.4)-.055:12.92*a,c=c>.0031308?1.055*C(c,1/2.4)-.055:12.92*c,h=h>.0031308?1.055*C(h,1/2.4)-.055:12.92*h,a=Math.min(Math.max(0,a),1),c=Math.min(Math.max(0,c),1),h=Math.min(Math.max(0,h),1),[255*a,255*c,255*h]},t.xyz.lab=function(o){let n=o[0],r=o[1],l=o[2];return n/=95.047,r/=100,l/=108.883,n=n>.008856?C(n,1/3):7.787*n+16/116,r=r>.008856?C(r,1/3):7.787*r+16/116,l=l>.008856?C(l,1/3):7.787*l+16/116,[116*r-16,500*(n-r),200*(r-l)]},t.lab.xyz=function(o){let n,r,l;r=(o[0]+16)/116,n=o[1]/500+r,l=r-o[2]/200;const a=C(r,3),c=C(n,3),h=C(l,3);return r=a>.008856?a:(r-16/116)/7.787,n=c>.008856?c:(n-16/116)/7.787,l=h>.008856?h:(l-16/116)/7.787,n*=95.047,r*=100,l*=108.883,[n,r,l]},t.lab.lch=function(o){const n=o[0],r=o[1],l=o[2];let a;return a=360*Math.atan2(l,r)/2/Math.PI,a<0&&(a+=360),[n,Math.sqrt(r*r+l*l),a]},t.lch.lab=function(o){const n=o[0],r=o[1],l=o[2]/360*2*Math.PI;return[n,r*Math.cos(l),r*Math.sin(l)]},t.rgb.ansi16=function(o,n=null){const[r,l,a]=o;let c=n===null?t.rgb.hsv(o)[2]:n;if(c=Math.round(c/50),c===0)return 30;let h=30+(Math.round(a/255)<<2|Math.round(l/255)<<1|Math.round(r/255));return c===2&&(h+=60),h},t.hsv.ansi16=function(o){return t.rgb.ansi16(t.hsv.rgb(o),o[2])},t.rgb.ansi256=function(o){const n=o[0],r=o[1],l=o[2];return n===r&&r===l?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(r/255*5)+Math.round(l/255*5)},t.ansi16.rgb=function(o){let n=o%10;if(n===0||n===7)return o>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const r=.5*(1+~~(o>50));return[(1&n)*r*255,(n>>1&1)*r*255,(n>>2&1)*r*255]},t.ansi256.rgb=function(o){if(o>=232){const r=10*(o-232)+8;return[r,r,r]}let n;return o-=16,[Math.floor(o/36)/5*255,Math.floor((n=o%36)/6)/5*255,n%6/5*255]},t.rgb.hex=function(o){const n=(((255&Math.round(o[0]))<<16)+((255&Math.round(o[1]))<<8)+(255&Math.round(o[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},t.hex.rgb=function(o){const n=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let r=n[0];n[0].length===3&&(r=r.split("").map(a=>a+a).join(""));const l=parseInt(r,16);return[l>>16&255,l>>8&255,255&l]},t.rgb.hcg=function(o){const n=o[0]/255,r=o[1]/255,l=o[2]/255,a=Math.max(Math.max(n,r),l),c=Math.min(Math.min(n,r),l),h=a-c;let d,p;return d=h<1?c/(1-h):0,p=h<=0?0:a===n?(r-l)/h%6:a===r?2+(l-n)/h:4+(n-r)/h,p/=6,p%=1,[360*p,100*h,100*d]},t.hsl.hcg=function(o){const n=o[1]/100,r=o[2]/100,l=r<.5?2*n*r:2*n*(1-r);let a=0;return l<1&&(a=(r-.5*l)/(1-l)),[o[0],100*l,100*a]},t.hsv.hcg=function(o){const n=o[1]/100,r=o[2]/100,l=n*r;let a=0;return l<1&&(a=(r-l)/(1-l)),[o[0],100*l,100*a]},t.hcg.rgb=function(o){const n=o[0]/360,r=o[1]/100,l=o[2]/100;if(r===0)return[255*l,255*l,255*l];const a=[0,0,0],c=n%1*6,h=c%1,d=1-h;let p=0;switch(Math.floor(c)){case 0:a[0]=1,a[1]=h,a[2]=0;break;case 1:a[0]=d,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=h;break;case 3:a[0]=0,a[1]=d,a[2]=1;break;case 4:a[0]=h,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=d}return p=(1-r)*l,[255*(r*a[0]+p),255*(r*a[1]+p),255*(r*a[2]+p)]},t.hcg.hsv=function(o){const n=o[1]/100,r=n+o[2]/100*(1-n);let l=0;return r>0&&(l=n/r),[o[0],100*l,100*r]},t.hcg.hsl=function(o){const n=o[1]/100,r=o[2]/100*(1-n)+.5*n;let l=0;return r>0&&r<.5?l=n/(2*r):r>=.5&&r<1&&(l=n/(2*(1-r))),[o[0],100*l,100*r]},t.hcg.hwb=function(o){const n=o[1]/100,r=n+o[2]/100*(1-n);return[o[0],100*(r-n),100*(1-r)]},t.hwb.hcg=function(o){const n=o[1]/100,r=1-o[2]/100,l=r-n;let a=0;return l<1&&(a=(r-l)/(1-l)),[o[0],100*l,100*a]},t.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]},t.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]},t.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]},t.gray.hsl=function(o){return[0,0,o[0]]},t.gray.hsv=t.gray.hsl,t.gray.hwb=function(o){return[0,100,o[0]]},t.gray.cmyk=function(o){return[0,0,0,o[0]]},t.gray.lab=function(o){return[o[0],0,0]},t.gray.hex=function(o){const n=255&Math.round(o[0]/100*255),r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(r.length)+r},t.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]},Ce}function Ft(){if(tt)return Ae;tt=1;const s=st();function e(o){const n=function(){const l={},a=Object.keys(s);for(let c=a.length,h=0;h<c;h++)l[a[h]]={distance:-1,parent:null};return l}(),r=[o];for(n[o].distance=0;r.length;){const l=r.pop(),a=Object.keys(s[l]);for(let c=a.length,h=0;h<c;h++){const d=a[h],p=n[d];p.distance===-1&&(p.distance=n[l].distance+1,p.parent=l,r.unshift(d))}}return n}function t(o,n){return function(r){return n(o(r))}}function i(o,n){const r=[n[o].parent,o];let l=s[n[o].parent][o],a=n[o].parent;for(;n[a].parent;)r.unshift(n[a].parent),l=t(s[n[a].parent][a],l),a=n[a].parent;return l.conversion=r,l}return Ae=function(o){const n=e(o),r={},l=Object.keys(n);for(let a=l.length,c=0;c<a;c++){const h=l[c];n[h].parent!==null&&(r[h]=i(h,n))}return r},Ae}function qt(){if(nt)return ot;nt=1;const s=st(),e=Ft(),t={};return Object.keys(s).forEach(i=>{t[i]={},Object.defineProperty(t[i],"channels",{value:s[i].channels}),Object.defineProperty(t[i],"labels",{value:s[i].labels});const o=e(i);Object.keys(o).forEach(n=>{const r=o[n];t[i][n]=function(l){const a=function(...c){const h=c[0];if(h==null)return h;h.length>1&&(c=h);const d=l(c);if(typeof d=="object")for(let p=d.length,u=0;u<p;u++)d[u]=Math.round(d[u]);return d};return"conversion"in l&&(a.conversion=l.conversion),a}(r),t[i][n].raw=function(l){const a=function(...c){const h=c[0];return h==null?h:(h.length>1&&(c=h),l(c))};return"conversion"in l&&(a.conversion=l.conversion),a}(r)})}),ot=t}(function(s){const e=(c,h)=>(...d)=>"\x1B[".concat(c(...d)+h,"m"),t=(c,h)=>(...d)=>{const p=c(...d);return"\x1B[".concat(38+h,";5;").concat(p,"m")},i=(c,h)=>(...d)=>{const p=c(...d);return"\x1B[".concat(38+h,";2;").concat(p[0],";").concat(p[1],";").concat(p[2],"m")},o=c=>c,n=(c,h,d)=>[c,h,d],r=(c,h,d)=>{Object.defineProperty(c,h,{get:()=>{const p=d();return Object.defineProperty(c,h,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})};let l;const a=(c,h,d,p)=>{l===void 0&&(l=qt());const u=p?10:0,g={};for(const[f,y]of Object.entries(l)){const w=f==="ansi16"?"ansi":f;f===h?g[w]=c(d,u):typeof y=="object"&&(g[w]=c(y[h],u))}return g};Object.defineProperty(s,"exports",{enumerable:!0,get:function(){const c=new Map,h={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};h.color.gray=h.color.blackBright,h.bgColor.bgGray=h.bgColor.bgBlackBright,h.color.grey=h.color.blackBright,h.bgColor.bgGrey=h.bgColor.bgBlackBright;for(const[d,p]of Object.entries(h)){for(const[u,g]of Object.entries(p))h[u]={open:"\x1B[".concat(g[0],"m"),close:"\x1B[".concat(g[1],"m")},p[u]=h[u],c.set(g[0],g[1]);Object.defineProperty(h,d,{value:p,enumerable:!1})}return Object.defineProperty(h,"codes",{value:c,enumerable:!1}),h.color.close="\x1B[39m",h.bgColor.close="\x1B[49m",r(h.color,"ansi",()=>a(e,"ansi16",o,!1)),r(h.color,"ansi256",()=>a(t,"ansi256",o,!1)),r(h.color,"ansi16m",()=>a(i,"rgb",n,!1)),r(h.bgColor,"ansi",()=>a(e,"ansi16",o,!0)),r(h.bgColor,"ansi256",()=>a(t,"ansi256",o,!0)),r(h.bgColor,"ansi16m",()=>a(i,"rgb",n,!0)),h}})})(it);var Se,rt,Xt={stringReplaceAll:(s,e,t)=>{let i=s.indexOf(e);if(i===-1)return s;const o=e.length;let n=0,r="";do r+=s.substr(n,i-n)+e+t,n=i+o,i=s.indexOf(e,n);while(i!==-1);return r+=s.substr(n),r},stringEncaseCRLFWithFirstIndex:(s,e,t,i)=>{let o=0,n="";do{const r=s[i-1]==="\r";n+=s.substr(o,(r?i-1:i)-o)+e+(r?"\r\n":"\n")+t,o=i+1,i=s.indexOf("\n",o)}while(i!==-1);return n+=s.substr(o),n}};const le=it.exports,{stdout:Me,stderr:Te}={stdout:!1,stderr:!1},{stringReplaceAll:Gt,stringEncaseCRLFWithFirstIndex:Zt}=Xt,{isArray:me}=Array,lt=["ansi","ansi","ansi256","ansi16m"],J=Object.create(null);class Jt{constructor(e){return at(e)}}const at=s=>{const e={};return((t,i={})=>{if(i.level&&!(Number.isInteger(i.level)&&i.level>=0&&i.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const o=Me?Me.level:0;t.level=i.level===void 0?o:i.level})(e,s),e.template=(...t)=>dt(e.template,...t),Object.setPrototypeOf(e,ve.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Jt,e.template};function ve(s){return at(s)}for(const[s,e]of Object.entries(le))J[s]={get(){const t=ye(this,Pe(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,s,{value:t}),t}};J.visible={get(){const s=ye(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:s}),s}};const ct=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const s of ct)J[s]={get(){const{level:e}=this;return function(...t){const i=Pe(le.color[lt[e]][s](...t),le.color.close,this._styler);return ye(this,i,this._isEmpty)}}};for(const s of ct)J["bg"+s[0].toUpperCase()+s.slice(1)]={get(){const{level:e}=this;return function(...t){const i=Pe(le.bgColor[lt[e]][s](...t),le.bgColor.close,this._styler);return ye(this,i,this._isEmpty)}}};const Qt=Object.defineProperties(()=>{},j(N({},J),{level:{enumerable:!0,get(){return this._generator.level},set(s){this._generator.level=s}}})),Pe=(s,e,t)=>{let i,o;return t===void 0?(i=s,o=e):(i=t.openAll+s,o=e+t.closeAll),{open:s,close:e,openAll:i,closeAll:o,parent:t}},ye=(s,e,t)=>{const i=(...o)=>me(o[0])&&me(o[0].raw)?ht(i,dt(i,...o)):ht(i,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(i,Qt),i._generator=s,i._styler=e,i._isEmpty=t,i},ht=(s,e)=>{if(s.level<=0||!e)return s._isEmpty?"":e;let t=s._styler;if(t===void 0)return e;const{openAll:i,closeAll:o}=t;if(e.indexOf("\x1B")!==-1)for(;t!==void 0;)e=Gt(e,t.close,t.open),t=t.parent;const n=e.indexOf("\n");return n!==-1&&(e=Zt(e,o,i,n)),i+e+o};let Ne;const dt=(s,...e)=>{const[t]=e;if(!me(t)||!me(t.raw))return e.join(" ");const i=e.slice(1),o=[t.raw[0]];for(let n=1;n<t.length;n++)o.push(String(i[n-1]).replace(/[{}\\]/g,"\\$&"),String(t.raw[n]));return Ne===void 0&&(Ne=function(){if(rt)return Se;rt=1;const n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,l=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,c=new Map([["n","\n"],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function h(g){const f=g[0]==="u",y=g[1]==="{";return f&&!y&&g.length===5||g[0]==="x"&&g.length===3?String.fromCharCode(parseInt(g.slice(1),16)):f&&y?String.fromCodePoint(parseInt(g.slice(2,-1),16)):c.get(g)||g}function d(g,f){const y=[],w=f.trim().split(/\s*,\s*/g);let $;for(const M of w){const z=Number(M);if(Number.isNaN(z)){if(!($=M.match(l)))throw new Error("Invalid Chalk template style argument: ".concat(M," (in style '").concat(g,"')"));y.push($[2].replace(a,(ce,S,he)=>S?h(S):he))}else y.push(z)}return y}function p(g){r.lastIndex=0;const f=[];let y;for(;(y=r.exec(g))!==null;){const w=y[1];if(y[2]){const $=d(w,y[2]);f.push([w].concat($))}else f.push([w])}return f}function u(g,f){const y={};for(const $ of f)for(const M of $.styles)y[M[0]]=$.inverse?null:M.slice(1);let w=g;for(const[$,M]of Object.entries(y))if(Array.isArray(M)){if(!($ in w))throw new Error("Unknown Chalk style: ".concat($));w=M.length>0?w[$](...M):w[$]}return w}return Se=(g,f)=>{const y=[],w=[];let $=[];if(f.replace(n,(M,z,ce,S,he,H)=>{if(z)$.push(h(z));else if(S){const wt=$.join("");$=[],w.push(y.length===0?wt:u(g,y)(wt)),y.push({inverse:ce,styles:p(S)})}else if(he){if(y.length===0)throw new Error("Found extraneous } in Chalk template literal");w.push(u(g,y)($.join(""))),$=[],y.pop()}else $.push(H)}),w.push($.join("")),y.length>0){const M="Chalk template literal is missing ".concat(y.length," closing bracket").concat(y.length===1?"":"s"," (`}`)");throw new Error(M)}return w.join("")},Se}()),Ne(s,o.join(""))};Object.defineProperties(ve.prototype,J);const Oe=ve();Oe.supportsColor=Me,Oe.stderr=ve({level:Te?Te.level:0}),Oe.stderr.supportsColor=Te;var U={exports:{}};const be=Wt(Yt),je=be,De=be,eo=be,to=be,Le="16.4.5",oo=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function Ue(s){console.log("[dotenv@".concat(Le,"][DEBUG] ").concat(s))}function pt(s){return s&&s.DOTENV_KEY&&s.DOTENV_KEY.length>0?s.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function no(s,e){let t;try{t=new URL(e)}catch(l){if(l.code==="ERR_INVALID_URL"){const a=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw a.code="INVALID_DOTENV_KEY",a}throw l}const i=t.password;if(!i){const l=new Error("INVALID_DOTENV_KEY: Missing key part");throw l.code="INVALID_DOTENV_KEY",l}const o=t.searchParams.get("environment");if(!o){const l=new Error("INVALID_DOTENV_KEY: Missing environment part");throw l.code="INVALID_DOTENV_KEY",l}const n="DOTENV_VAULT_".concat(o.toUpperCase()),r=s.parsed[n];if(!r){const l=new Error("NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ".concat(n," in your .env.vault file."));throw l.code="NOT_FOUND_DOTENV_ENVIRONMENT",l}return{ciphertext:r,key:i}}function ut(s){let e=null;if(s&&s.path&&s.path.length>0)if(Array.isArray(s.path))for(const t of s.path)je.existsSync(t)&&(e=t.endsWith(".vault")?t:"".concat(t,".vault"));else e=s.path.endsWith(".vault")?s.path:"".concat(s.path,".vault");else e=De.resolve(process.cwd(),".env.vault");return je.existsSync(e)?e:null}function gt(s){return s[0]==="~"?De.join(eo.homedir(),s.slice(1)):s}const k={configDotenv:function(s){const e=De.resolve(process.cwd(),".env");let t="utf8";const i=!!(s&&s.debug);s&&s.encoding?t=s.encoding:i&&Ue("No encoding is specified. UTF-8 is used by default");let o,n=[e];if(s&&s.path)if(Array.isArray(s.path)){n=[];for(const a of s.path)n.push(gt(a))}else n=[gt(s.path)];const r={};for(const a of n)try{const c=k.parse(je.readFileSync(a,{encoding:t}));k.populate(r,c,s)}catch(c){i&&Ue("Failed to load ".concat(a," ").concat(c.message)),o=c}let l=process.env;return s&&s.processEnv!=null&&(l=s.processEnv),k.populate(l,r,s),o?{parsed:r,error:o}:{parsed:r}},_configVault:function(s){var e;e="Loading env from encrypted .env.vault",console.log("[dotenv@".concat(Le,"][INFO] ").concat(e));const t=k._parseVault(s);let i=process.env;return s&&s.processEnv!=null&&(i=s.processEnv),k.populate(i,t,s),{parsed:t}},_parseVault:function(s){const e=ut(s),t=k.configDotenv({path:e});if(!t.parsed){const r=new Error("MISSING_DATA: Cannot parse ".concat(e," for an unknown reason"));throw r.code="MISSING_DATA",r}const i=pt(s).split(","),o=i.length;let n;for(let r=0;r<o;r++)try{const l=no(t,i[r].trim());n=k.decrypt(l.ciphertext,l.key);break}catch(l){if(r+1>=o)throw l}return k.parse(n)},config:function(s){if(pt(s).length===0)return k.configDotenv(s);const e=ut(s);return e?k._configVault(s):(t="You set DOTENV_KEY but you are missing a .env.vault file at ".concat(e,". Did you forget to build it?"),console.log("[dotenv@".concat(Le,"][WARN] ").concat(t)),k.configDotenv(s));var t},decrypt:function(s,e){const t=Buffer.from(e.slice(-64),"hex");let i=Buffer.from(s,"base64");const o=i.subarray(0,12),n=i.subarray(-16);i=i.subarray(12,-16);try{const r=to.createDecipheriv("aes-256-gcm",t,o);return r.setAuthTag(n),"".concat(r.update(i)).concat(r.final())}catch(r){const l=r instanceof RangeError,a=r.message==="Invalid key length",c=r.message==="Unsupported state or unable to authenticate data";if(l||a){const h=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw h.code="INVALID_DOTENV_KEY",h}if(c){const h=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw h.code="DECRYPTION_FAILED",h}throw r}},parse:function(s){const e={};let t,i=s.toString();for(i=i.replace(/\r\n?/gm,"\n");(t=oo.exec(i))!=null;){const o=t[1];let n=t[2]||"";n=n.trim();const r=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),r==='"'&&(n=n.replace(/\\n/g,"\n"),n=n.replace(/\\r/g,"\r")),e[o]=n}return e},populate:function(s,e,t={}){const i=!!(t&&t.debug),o=!!(t&&t.override);if(typeof e!="object"){const n=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw n.code="OBJECT_REQUIRED",n}for(const n of Object.keys(e))Object.prototype.hasOwnProperty.call(s,n)?(o===!0&&(s[n]=e[n]),i&&Ue(o===!0?'"'.concat(n,'" is already defined and WAS overwritten'):'"'.concat(n,'" is already defined and was NOT overwritten'))):s[n]=e[n]}};U.exports.configDotenv=k.configDotenv,U.exports._configVault=k._configVault,U.exports._parseVault=k._parseVault,U.exports.config=k.config,U.exports.decrypt=k.decrypt,U.exports.parse=k.parse,U.exports.populate=k.populate,U.exports=k;const ft="{file}",mt="{line}",vt="{column}";var io=Object.defineProperty,so=Object.getOwnPropertyDescriptor,v=(s,e,t,i)=>{for(var o,n=i>1?void 0:i?so(e,t):e,r=s.length-1;r>=0;r--)(o=s[r])&&(n=(i?o(e,t,n):o(n))||n);return i&&n&&io(e,t,n),n};const ze="__code-inspector-unique-id",yt="data-astro-source-file",ro={ctrlKey:"^control",altKey:"⌥option",metaKey:"⌘command",shiftKey:"shift"},lo={ctrlKey:"Ctrl",altKey:"Alt",metaKey:"⊞Windows",shiftKey:"Shift"},ae=300;function bt(){return new Promise(s=>{requestAnimationFrame(s)})}class m extends re{constructor(){super(...arguments),this.hotKeys="shiftKey,altKey",this.port=5678,this.showSwitch=!1,this.autoToggle=!1,this.hideConsole=!1,this.locate=!0,this.copy=!1,this.target="",this.ip="localhost",this.modeKey="z",this.position={top:0,right:0,bottom:0,left:0,padding:{top:0,right:0,bottom:0,left:0},border:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0}},this.element={name:"",line:0,column:0,path:""},this.elementTipStyle={vertical:"",horizon:"",visibility:""},this.show=!1,this.showNodeTree=!1,this.nodeTreePosition={},this.nodeTree=null,this.dragging=!1,this.mousePosition={baseX:0,baseY:0,moveX:0,moveY:0},this.draggingTarget="switch",this.open=!1,this.moved=!1,this.hoverSwitch=!1,this.preUserSelect="",this.sendType="xhr",this.activeNode={},this.showSettingsModal=!1,this.internalLocate=!0,this.internalCopy=!1,this.internalTarget=!1,this.features=[{label:"Locate Code",description:"Open the editor and locate code",checked:()=>!!this.internalLocate,onChange:()=>this.toggleLocate()},{label:"Copy Path",description:"Copy the code path to clipboard",checked:()=>!!this.internalCopy,onChange:()=>this.toggleCopy()},{label:"Open Target",description:"Open the target url",checked:()=>!!this.internalTarget,onChange:()=>this.toggleTarget()}],this.isTracking=e=>this.hotKeys&&this.hotKeys.split(",").every(t=>e[t.trim()]),this.getDomPropertyValue=(e,t)=>{const i=window.getComputedStyle(e);return Number(i.getPropertyValue(t).replace("px",""))},this.calculateElementInfoPosition=e=>K(this,null,function*(){var z,ce;const{top:t,right:i,bottom:o,left:n}=e.getBoundingClientRect(),r=document.documentElement.clientHeight,l=document.documentElement.clientWidth,a=this.getDomPropertyValue(e,"margin-top"),c=this.getDomPropertyValue(e,"margin-right"),h=this.getDomPropertyValue(e,"margin-bottom"),d=this.getDomPropertyValue(e,"margin-left");yield bt();const{width:p,height:u}=this.elementInfoRef.getBoundingClientRect(),g=t-a,f=i+c,y=o+h,w=n-d,$=[{vertical:"element-info-bottom",horizon:"element-info-right",top:y,left:w,isExternal:!0},{vertical:"element-info-bottom",horizon:"element-info-left",top:y,left:f-p,isExternal:!0},{vertical:"element-info-top",horizon:"element-info-right",top:g-u,left:w,isExternal:!0},{vertical:"element-info-top",horizon:"element-info-left",top:g-u,left:f-p,isExternal:!0},{vertical:"element-info-bottom-inner",horizon:"element-info-right",top:y-u,left:w,isExternal:!1},{vertical:"element-info-bottom-inner",horizon:"element-info-left",top:y-u,left:f-p,isExternal:!1},{vertical:"element-info-top-inner",horizon:"element-info-right",top:g,left:w,isExternal:!1},{vertical:"element-info-top-inner",horizon:"element-info-left",top:g,left:f-p,isExternal:!1},{vertical:"element-info-top-inner",horizon:"element-info-left",top:Math.max(0,g),left:f-p,isExternal:!1,additionStyle:{transform:"translateY(".concat(Math.max(0,-g),"px)")}},{vertical:"element-info-top-inner",horizon:"element-info-right",top:Math.max(0,g),left:f-p,isExternal:!1,additionStyle:{transform:"translateY(".concat(Math.max(0,-g),"px)")}}],M=S=>S.left<0||S.left+p>l||S.top<0||S.top+u>r;for(const S of $){const he=document.documentElement.clientWidth;if(S.horizon.endsWith("left")){const H=w+p-he;H>0&&(S.additionStyle={transform:"translateX(-".concat(H,"px) ").concat(((z=S.additionStyle)==null?void 0:z.transform)||"")})}else{const H=p-f;H>0&&(S.additionStyle={transform:"translateX(".concat(H,"px) ").concat(((ce=S.additionStyle)==null?void 0:ce.transform)||"")})}if(!M(S))return S}return $[0]}),this.renderCover=e=>K(this,null,function*(){const{top:t,right:i,bottom:o,left:n}=e.getBoundingClientRect();if(this.position={top:t,right:i,bottom:o,left:n,border:{top:this.getDomPropertyValue(e,"border-top-width"),right:this.getDomPropertyValue(e,"border-right-width"),bottom:this.getDomPropertyValue(e,"border-bottom-width"),left:this.getDomPropertyValue(e,"border-left-width")},padding:{top:this.getDomPropertyValue(e,"padding-top"),right:this.getDomPropertyValue(e,"padding-right"),bottom:this.getDomPropertyValue(e,"padding-bottom"),left:this.getDomPropertyValue(e,"padding-left")},margin:{top:this.getDomPropertyValue(e,"margin-top"),right:this.getDomPropertyValue(e,"margin-right"),bottom:this.getDomPropertyValue(e,"margin-bottom"),left:this.getDomPropertyValue(e,"margin-left")}},this.elementTipStyle={vertical:"",horizon:"",visibility:"hidden"},this.addGlobalCursorStyle(),this.preUserSelect||(this.preUserSelect=getComputedStyle(document.body).userSelect),document.body.style.userSelect="none",this.element=this.getSourceInfo(e),this.show=!0,!this.showNodeTree){const{vertical:r,horizon:l,additionStyle:a}=yield this.calculateElementInfoPosition(e);this.elementTipStyle={vertical:r,horizon:l,visibility:"visible",additionStyle:a}}}),this.getAstroFilePath=e=>{var t;return(t=e.getAttribute)!=null&&t.call(e,yt)?"".concat(e.getAttribute(yt),":").concat(e.getAttribute("data-astro-source-loc"),":").concat(e.tagName.toLowerCase()):""},this.getSourceInfo=e=>{var l;let t=((l=e.getAttribute)==null?void 0:l.call(e,fe))||e[fe]||this.getAstroFilePath(e);if(!t)return null;const i=t.split(":"),o=i[i.length-1],n=Number(i[i.length-2]),r=Number(i[i.length-3]);return{name:o,path:i.slice(0,i.length-3).join(":"),line:r,column:n}},this.removeCover=e=>{e!==!0&&this.nodeTree||(this.show=!1,this.removeGlobalCursorStyle(),document.body.style.userSelect=this.preUserSelect,this.preUserSelect="")},this.renderLayerPanel=(e,{x:t,y:i})=>{const o=document.documentElement.clientWidth,n=document.documentElement.clientHeight,r=o-t,l=n-i;let a={};r<t?(a.right=r+"px",t<ae&&(a.transform="translateX(".concat(ae-t,"px)"))):(a.left=t+"px",r<ae&&(a.transform="translateX(-".concat(ae-r,"px)"))),l<i?(a.bottom=l+"px",a.maxHeight=i-10+"px"):(a.top=i+"px",a.maxHeight=n-i-10+"px"),this.nodeTreePosition=a,this.nodeTree=e,this.showNodeTree=!0},this.removeLayerPanel=()=>{this.showNodeTree=!1,this.nodeTree=null,this.activeNode={}},this.addGlobalCursorStyle=()=>{if(!document.getElementById(ze)){const e=document.createElement("style");e.setAttribute("id",ze),e.innerText="body * {\n cursor: pointer !important;\n }",document.body.appendChild(e)}},this.removeGlobalCursorStyle=()=>{const e=document.getElementById(ze);e&&e.remove()},this.sendXHR=()=>{const e=encodeURIComponent(this.element.path),t="http://".concat(this.ip,":").concat(this.port,"/?file=").concat(e,"&line=").concat(this.element.line,"&column=").concat(this.element.column),i=new XMLHttpRequest;i.open("GET",t,!0),i.send(),i.addEventListener("error",()=>{this.sendType="img",this.sendImg()})},this.sendImg=()=>{const e=encodeURIComponent(this.element.path),t="http://".concat(this.ip,":").concat(this.port,"/?file=").concat(e,"&line=").concat(this.element.line,"&column=").concat(this.element.column);document.createElement("img").src=t},this.buildTargetUrl=()=>{let e=this.target;const{path:t,line:i,column:o}=this.element,n={"{file}":t,"{line}":i,"{column}":o};for(let r in n)e=e.replace(new RegExp(r,"g"),String(n[r]));return e},this.trackCode=()=>{if(this.internalLocate&&(this.sendType==="xhr"?this.sendXHR():this.sendImg()),this.internalCopy){const e=function(t,i,o,n){let r="".concat(t,":").concat(i,":").concat(o);if(typeof n=="string")r=n.replace(ft,t).replace(mt,i.toString()).replace(vt,o.toString());else if(n instanceof Array)return n.map(l=>l.replace(ft,t).replace(mt,i.toString()).replace(vt,o.toString()));return[r]}(this.element.path,String(this.element.line),String(this.element.column),this.copy);this.copyToClipboard(e[0])}this.internalTarget&&window.open(this.buildTargetUrl(),"_blank"),window.dispatchEvent(new CustomEvent("code-inspector:trackCode",{detail:this.element}))},this.handleModeShortcut=e=>{var t,i;this.isTracking(e)&&((((t=e.code)==null?void 0:t.toLowerCase())==="key".concat(this.modeKey)||((i=e.key)==null?void 0:i.toLowerCase())===this.modeKey)&&this.toggleSettingsModal(),e.preventDefault(),e.stopPropagation())},this.handleDrag=e=>{if(e.composedPath().includes(this)?this.hoverSwitch=!0:this.hoverSwitch=!1,this.dragging){this.moved=!0;const t=this.draggingTarget==="switch"?this.inspectorSwitchRef:this.nodeTreeRef;return t.style.left=this.mousePosition.baseX+(this.getMousePosition(e).x-this.mousePosition.moveX)+"px",t.style.top=this.mousePosition.baseY+(this.getMousePosition(e).y-this.mousePosition.moveY)+"px",void(this.draggingTarget&&(this.nodeTreePosition.left=t.style.left,this.nodeTreePosition.top=t.style.top))}},this.isSamePositionNode=(e,t)=>{const i=e.getBoundingClientRect(),o=t.getBoundingClientRect();return i.top===o.top&&i.left===o.left&&i.right===o.right&&i.bottom===o.bottom},this.handleMouseMove=e=>K(this,null,function*(){if((this.isTracking(e)&&!this.dragging||this.open)&&!this.hoverSwitch){const t=e.composedPath();let i;for(let o=0;o<t.length;o++){const n=t[o];if((n.hasAttribute&&n.hasAttribute(fe)||n[fe])&&(i?this.isSamePositionNode(i,n)&&(i=n):i=n),n.hasAttribute&&n.hasAttribute("data-astro-source-file")){i=n;break}}i?this.renderCover(i):this.removeCover()}else this.removeCover()}),this.handleMouseClick=e=>{(this.isTracking(e)||this.open)&&this.show&&(e.stopPropagation(),e.preventDefault(),this.trackCode(),this.removeCover(),this.autoToggle&&(this.open=!1)),e.composedPath().includes(this.nodeTreeRef)||this.removeLayerPanel()},this.handleContextMenu=e=>{if((this.isTracking(e)&&!this.dragging||this.open)&&!this.hoverSwitch){e.preventDefault();const t=e.composedPath(),i=this.generateNodeTree(t);this.renderLayerPanel(i,{x:e.clientX,y:e.clientY})}},this.generateNodeTree=e=>{let t,i=1,o=null;for(const n of e.reverse()){const r=this.getSourceInfo(n);if(!r)continue;const l=j(N({},r),{children:[],depth:i++,element:n});o?o.children.push(l):t=l,o=l}return t},this.handlePointerDown=e=>{let t=!1,i=e.target;for(;i;){if(i.disabled){t=!0;break}i=i.parentElement}t&&(this.isTracking(e)||this.open)&&this.show&&(e.stopPropagation(),e.preventDefault(),this.trackCode(),this.removeCover(),this.autoToggle&&(this.open=!1))},this.handleKeyUp=e=>{this.isTracking(e)||this.open||this.removeCover()},this.printTip=()=>{const e=navigator.userAgent.toLowerCase(),t=["windows","win32","wow32","win64","wow64"].some(d=>e.toUpperCase().match(d.toUpperCase()))?lo:ro,i="%c",o=this.hotKeys.split(",").map(d=>i+t[d.trim()]),n=[...o,i+this.modeKey.toUpperCase()],r=this.features.filter(d=>d.checked()).map(d=>"".concat(i).concat(d.label)),l=r.length>0?r.join("".concat(i,"、")):"".concat(i,"None"),a=2*o.length+2*n.length+l.match(/%c/g).length+1,c=Array(a).fill("").map((d,p)=>p%2==0?"color: #00B42A; font-family: PingFang SC; font-size: 12px;":"color: #006aff; font-weight: bold; font-family: PingFang SC; font-size: 12px;"),h=["".concat(i,"[code-inspector-plugin]"),"".concat(i,"• Press and hold ").concat(o.join(" ".concat(i,"+ "))," ").concat(i,"to use the feature."),"• Press ".concat(n.join(" ".concat(i,"+ "))," ").concat(i,"to see and change feature."),"• Current Feature: ".concat(l)].join("\n");console.log(h,"color: #006aff; font-weight: bolder; font-size: 12px;",...c)},this.getMousePosition=e=>{var t,i;return{x:e instanceof MouseEvent?e.pageX:(t=e.touches[0])==null?void 0:t.pageX,y:e instanceof MouseEvent?e.pageY:(i=e.touches[0])==null?void 0:i.pageY}},this.recordMousePosition=(e,t)=>{const i=t==="switch"?this.inspectorSwitchRef:this.nodeTreeRef;this.mousePosition={baseX:i.offsetLeft,baseY:i.offsetTop,moveX:this.getMousePosition(e).x,moveY:this.getMousePosition(e).y},this.dragging=!0,this.draggingTarget=t,e.preventDefault()},this.handleMouseUp=e=>{this.hoverSwitch=!1,this.dragging&&(this.dragging=!1,e instanceof TouchEvent&&this.draggingTarget==="switch"&&this.switch(e))},this.switch=e=>{this.moved||(this.open=!this.open,e.preventDefault(),e.stopPropagation()),this.moved=!1},this.handleClickTreeNode=e=>{this.element=e,this.trackCode(),this.removeLayerPanel()},this.handleMouseEnterNode=(e,t)=>K(this,null,function*(){const{x:i,y:o,width:n,height:r}=e.target.getBoundingClientRect();this.activeNode={width:n-16+"px",left:i+8+"px",visibility:"hidden",top:o-4+"px",bottom:"",content:"".concat(t.path,":").concat(t.line,":").concat(t.column),class:"tooltip-top"},this.renderCover(t.element),yield bt();const{y:l}=this.nodeTreeTooltipRef.getBoundingClientRect();l<0&&(this.activeNode=j(N({},this.activeNode),{bottom:"",top:"".concat(o+r+4,"px"),class:"tooltip-bottom"})),this.activeNode=j(N({},this.activeNode),{visibility:"visible"})}),this.handleMouseLeaveNode=()=>{this.activeNode=j(N({},this.activeNode),{visibility:"hidden"}),this.removeCover(!0)},this.toggleSettingsModal=()=>{this.showSettingsModal=!this.showSettingsModal},this.closeSettingsModal=()=>{this.showSettingsModal=!1},this.toggleLocate=()=>{this.internalLocate=!this.internalLocate},this.toggleCopy=()=>{this.internalCopy=!this.internalCopy},this.toggleTarget=()=>{this.internalTarget=!this.internalTarget},this.renderNodeTree=e=>V(kt||(kt=D(['\n <div\n class="inspector-layer"\n style="padding-left: ','px;"\n @mouseenter="','"\n @mouseleave="','"\n @click="','"\n >\n &lt;',"&gt;\n </div>\n ","\n "])),8*e.depth,t=>K(this,null,function*(){return yield this.handleMouseEnterNode(t,e)}),this.handleMouseLeaveNode,()=>this.handleClickTreeNode(e),e.name,e.children.map(t=>this.renderNodeTree(t)))}showNotification(e,t="success"){const i=document.createElement("div");i.className="code-inspector-notification code-inspector-notification-".concat(t),i.textContent=e,document.body.appendChild(i),requestAnimationFrame(()=>{i.classList.add("code-inspector-notification-show")}),setTimeout(()=>{i.classList.remove("code-inspector-notification-show"),setTimeout(()=>{document.body.removeChild(i)},300)},2e3)}copyToClipboard(e){var t;try{typeof((t=navigator==null?void 0:navigator.clipboard)==null?void 0:t.writeText)=="function"?navigator.clipboard.writeText(e).then(()=>{this.showNotification("✓ Copied to clipboard")}).catch(()=>{this.fallbackCopy(e)}):this.fallbackCopy(e)}catch(i){this.fallbackCopy(e)}}fallbackCopy(e){try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const i=document.execCommand("copy");document.body.removeChild(t),i?this.showNotification("✓ Copied to clipboard"):this.showNotification("✗ Copy failed","error")}catch(t){this.showNotification("✗ Copy failed","error")}}firstUpdated(){this.internalLocate=this.locate,this.internalCopy=!!this.copy,this.internalTarget=!!this.target,this.hideConsole||this.printTip(),window.addEventListener("mousemove",this.handleMouseMove,!0),window.addEventListener("touchmove",this.handleMouseMove,!0),window.addEventListener("mousemove",this.handleDrag,!0),window.addEventListener("touchmove",this.handleDrag,!0),window.addEventListener("click",this.handleMouseClick,!0),window.addEventListener("pointerdown",this.handlePointerDown,!0),window.addEventListener("keyup",this.handleKeyUp,!0),window.addEventListener("keydown",this.handleModeShortcut,!0),window.addEventListener("mouseleave",this.removeCover,!0),window.addEventListener("mouseup",this.handleMouseUp,!0),window.addEventListener("touchend",this.handleMouseUp,!0),window.addEventListener("contextmenu",this.handleContextMenu,!0)}disconnectedCallback(){window.removeEventListener("mousemove",this.handleMouseMove,!0),window.removeEventListener("touchmove",this.handleMouseMove,!0),window.removeEventListener("mousemove",this.handleDrag,!0),window.removeEventListener("touchmove",this.handleDrag,!0),window.removeEventListener("click",this.handleMouseClick,!0),window.removeEventListener("pointerdown",this.handlePointerDown,!0),window.removeEventListener("keyup",this.handleKeyUp,!0),window.removeEventListener("keydown",this.handleModeShortcut,!0),window.removeEventListener("mouseleave",this.removeCover,!0),window.removeEventListener("mouseup",this.handleMouseUp,!0),window.removeEventListener("touchend",this.handleMouseUp,!0),window.removeEventListener("contextmenu",this.handleContextMenu,!0)}render(){const e={display:this.show?"block":"none",top:this.position.top-this.position.margin.top+"px",left:this.position.left-this.position.margin.left+"px",height:"".concat(this.position.bottom-this.position.top+this.position.margin.bottom+this.position.margin.top,"px"),width:"".concat(this.position.right-this.position.left+this.position.margin.right+this.position.margin.left,"px")},t={borderTopWidth:"".concat(this.position.margin.top,"px"),borderRightWidth:"".concat(this.position.margin.right,"px"),borderBottomWidth:"".concat(this.position.margin.bottom,"px"),borderLeftWidth:"".concat(this.position.margin.left,"px")},i={borderTopWidth:"".concat(this.position.border.top,"px"),borderRightWidth:"".concat(this.position.border.right,"px"),borderBottomWidth:"".concat(this.position.border.bottom,"px"),borderLeftWidth:"".concat(this.position.border.left,"px")},o={borderTopWidth:"".concat(this.position.padding.top,"px"),borderRightWidth:"".concat(this.position.padding.right,"px"),borderBottomWidth:"".concat(this.position.padding.bottom,"px"),borderLeftWidth:"".concat(this.position.padding.left,"px")},n=N({display:this.showNodeTree?"flex":"none"},this.nodeTreePosition),r={visibility:this.activeNode.visibility,maxWidth:this.activeNode.width,top:this.activeNode.top,left:this.activeNode.left,bottom:this.activeNode.bottom,display:this.showNodeTree?"":"none"};return V(Pt||(Pt=D(['\n <div\n class="code-inspector-container"\n id="code-inspector-container"\n style=','\n >\n <div class="margin-overlay" style=','>\n <div class="border-overlay" style=','>\n <div class="padding-overlay" style=','>\n <div class="content-overlay"></div>\n </div>\n </div>\n </div>\n <div\n id="element-info"\n class="element-info '," "," ",'"\n style=','\n >\n <div class="element-info-content">\n <div class="name-line">\n <div class="element-name">\n <span class="element-title">&lt;','&gt;</span>\n </div>\n </div>\n <div class="path-line">\n ',":",":",'\n </div>\n </div>\n </div>\n </div>\n <div\n id="inspector-switch"\n class="inspector-switch '," ",'"\n style=','\n @mousedown="','"\n @touchstart="','"\n @click="','"\n >\n ','\n </div>\n <div\n id="inspector-node-tree"\n class="element-info-content"\n style=','\n >\n <div\n class="inspector-layer-title"\n @mousedown="','"\n @touchstart="','"\n >\n <div>🔍️ Click node to locate</div>\n ','\n </div>\n\n <div\n class="node-tree-list"\n style="','"\n >\n ','\n <div style="height: 8px"></div>\n </div>\n </div>\n\n <!-- 设置弹窗 -->\n ','\n\n <div\n id="node-tree-tooltip"\n class="','"\n style=',"\n >\n ","\n </div>\n "])),O(e),O(t),O(i),O(o),this.elementTipStyle.vertical,this.elementTipStyle.horizon,this.elementTipStyle.visibility,O(N({width:ae+"px",maxWidth:"100vw"},this.elementTipStyle.additionStyle)),this.element.name,this.element.path,this.element.line,this.element.column,this.open?"active-inspector-switch":"",this.moved?"move-inspector-switch":"",O({display:this.showSwitch?"flex":"none"}),l=>this.recordMousePosition(l,"switch"),l=>this.recordMousePosition(l,"switch"),this.switch,this.open?V(Ct||(Ct=D(['\n <svg\n t="1677801709811"\n class="icon"\n viewBox="0 0 1024 1024"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n p-id="1110"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n width="1em"\n height="1em"\n >\n <path\n d="M546.56 704H128c-19.2 0-32-12.8-32-32V256h704v194.56c10.928 1.552 21.648 3.76 32 6.832V128c0-35.2-28.8-64-64-64H128C92.8 64 64 92.8 64 128v544c0 35.2 28.8 64 64 64h425.392a221.936 221.936 0 0 1-6.848-32zM96 128c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32v96H96V128z"\n fill="#34495E"\n p-id="1111"\n ></path>\n <path\n d="M416 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#00B42A"\n p-id="1112"\n ></path>\n <path\n d="M288 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#F7BA1E"\n p-id="1113"\n ></path>\n <path\n d="M160 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#F53F3F"\n p-id="1114"\n ></path>\n <path\n d="M382.848 658.928l99.376-370.88 30.912 8.272-99.36 370.88zM318.368 319.2L160 477.6l158.4 158.4 22.64-22.624-135.792-135.776 135.776-135.776zM768 480c-13.088 0-25.888 1.344-38.24 3.84l6.24-6.24-158.4-158.4-22.64 22.624 135.792 135.776-135.776 135.776 22.656 22.624 2.208-2.224a190.768 190.768 0 0 0 30.928 148.08l-116.672 116.656c-10.24 10.24-10.24 26.896 0 37.136l27.76 27.76c5.12 5.12 11.84 7.68 18.56 7.68s13.456-2.56 18.56-7.68l120.992-120.96A190.56 190.56 0 0 0 768 864c105.872 0 192-86.128 192-192s-86.128-192-192-192z m-159.12 193.136c0-88.224 71.776-160 160-160 10.656 0 21.04 1.152 31.12 3.152V672c0 19.2-12.8 32-32 32h-156a160.144 160.144 0 0 1-3.12-30.864z m-68.464 263.584l-19.632-19.632 110.336-110.336c6.464 6.656 13.392 12.848 20.752 18.528l-111.456 111.44z m228.464-103.584c-65.92 0-122.576-40.096-147.056-97.136H768c35.2 0 64-28.8 64-64v-145.776c56.896 24.544 96.88 81.12 96.88 146.912 0 88.224-71.776 160-160 160z"\n fill="#006AFF"\n p-id="1115"\n ></path>\n <path\n d="M864.576 672c0 52.928-43.072 96-96 96v32a128 128 0 0 0 128-128h-32z"\n fill="#34495E"\n p-id="1116"\n ></path>\n </svg>\n ']))):V(At||(At=D(['<svg\n t="1677801709811"\n class="icon"\n viewBox="0 0 1024 1024"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n p-id="1110"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n width="1em"\n height="1em"\n >\n <path\n d="M546.56 704H128c-19.2 0-32-12.8-32-32V256h704v194.56c10.928 1.552 21.648 3.76 32 6.832V128c0-35.2-28.8-64-64-64H128C92.8 64 64 92.8 64 128v544c0 35.2 28.8 64 64 64h425.392a221.936 221.936 0 0 1-6.848-32zM96 128c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32v96H96V128z"\n fill="currentColor"\n p-id="1111"\n ></path>\n <path\n d="M416 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1112"\n ></path>\n <path\n d="M288 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1113"\n ></path>\n <path\n d="M160 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1114"\n ></path>\n <path\n d="M382.848 658.928l99.376-370.88 30.912 8.272-99.36 370.88zM318.368 319.2L160 477.6l158.4 158.4 22.64-22.624-135.792-135.776 135.776-135.776zM768 480c-13.088 0-25.888 1.344-38.24 3.84l6.24-6.24-158.4-158.4-22.64 22.624 135.792 135.776-135.776 135.776 22.656 22.624 2.208-2.224a190.768 190.768 0 0 0 30.928 148.08l-116.672 116.656c-10.24 10.24-10.24 26.896 0 37.136l27.76 27.76c5.12 5.12 11.84 7.68 18.56 7.68s13.456-2.56 18.56-7.68l120.992-120.96A190.56 190.56 0 0 0 768 864c105.872 0 192-86.128 192-192s-86.128-192-192-192z m-159.12 193.136c0-88.224 71.776-160 160-160 10.656 0 21.04 1.152 31.12 3.152V672c0 19.2-12.8 32-32 32h-156a160.144 160.144 0 0 1-3.12-30.864z m-68.464 263.584l-19.632-19.632 110.336-110.336c6.464 6.656 13.392 12.848 20.752 18.528l-111.456 111.44z m228.464-103.584c-65.92 0-122.576-40.096-147.056-97.136H768c35.2 0 64-28.8 64-64v-145.776c56.896 24.544 96.88 81.12 96.88 146.912 0 88.224-71.776 160-160 160z"\n fill="currentColor"\n p-id="1115"\n ></path>\n <path\n d="M864.576 672c0 52.928-43.072 96-96 96v32a128 128 0 0 0 128-128h-32z"\n fill="currentColor"\n p-id="1116"\n ></path>\n </svg>']))),O(n),l=>this.recordMousePosition(l,"nodeTree"),l=>this.recordMousePosition(l,"nodeTree"),V(St||(St=D(['<svg\n xmlns="http://www.w3.org/2000/svg"\n width="16"\n height="16"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="close-icon"\n @click="','"\n >\n <path d="M18 6 6 18" />\n <path d="m6 6 12 12" />\n </svg>'])),this.removeLayerPanel),O({pointerEvents:this.dragging?"none":""}),this.nodeTree?this.renderNodeTree(this.nodeTree):"",this.showSettingsModal?V(Tt||(Tt=D(['\n <div\n class="settings-modal-overlay"\n @click="','"\n >\n <div\n class="settings-modal"\n @click="','"\n >\n <div class="settings-modal-header">\n <h3 class="settings-modal-title">Mode Settings</h3>\n <button\n class="settings-modal-close"\n @click="','"\n >\n ×\n </button>\n </div>\n <div class="settings-modal-content">\n ',"\n </div>\n </div>\n </div>\n "])),this.closeSettingsModal,l=>l.stopPropagation(),this.closeSettingsModal,this.features.map(l=>V(Mt||(Mt=D(['\n <div class="settings-item">\n <label class="settings-label">\n <span class="settings-label-text"\n >','</span\n >\n <span class="settings-label-desc"\n >','</span\n >\n </label>\n <label class="settings-switch">\n <input\n type="checkbox"\n .checked="','"\n @change="','"\n />\n <span class="settings-slider"></span>\n </label>\n </div>\n '])),l.label,l.description,l.checked(),l.onChange))):"",this.activeNode.class,O(r),this.activeNode.content)}}if(m.styles=((s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,o,n)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[n+1],s[0]);return new de(t,s,Q)})(Nt||(Nt=D(["\n .code-inspector-container {\n position: fixed;\n pointer-events: none;\n z-index: 9999999999999;\n font-family: 'PingFang SC';\n .margin-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(255, 155, 0, 0.3);\n .border-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(255, 200, 50, 0.3);\n .padding-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(77, 200, 0, 0.3);\n .content-overlay {\n position: absolute;\n inset: 0;\n background: rgba(120, 170, 210, 0.7);\n }\n }\n }\n }\n }\n .element-info {\n position: absolute;\n }\n .element-info.hidden {\n visibility: hidden;\n }\n .element-info-content {\n max-width: 100%;\n font-size: 12px;\n color: #000;\n background-color: #fff;\n word-break: break-all;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);\n box-sizing: border-box;\n padding: 4px 8px;\n border-radius: 4px;\n }\n .element-info-top {\n top: -4px;\n transform: translateY(-100%);\n }\n .element-info-bottom {\n top: calc(100% + 4px);\n }\n .element-info-top-inner {\n top: 4px;\n }\n .element-info-bottom-inner {\n bottom: 4px;\n }\n .element-info-left {\n left: 0;\n display: flex;\n justify-content: flex-start;\n }\n .element-info-right {\n right: 0;\n display: flex;\n justify-content: flex-end;\n }\n .element-name .element-title {\n color: coral;\n font-weight: bold;\n }\n .path-line {\n color: #333;\n line-height: 12px;\n margin-top: 4px;\n }\n .inspector-switch {\n position: fixed;\n z-index: 9999999999999;\n top: 50%;\n right: 24px;\n font-size: 22px;\n transform: translateY(-100%);\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255, 255, 255, 0.8);\n color: #555;\n height: 32px;\n width: 32px;\n border-radius: 50%;\n box-shadow: 0px 1px 2px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 6px 0px rgba(0, 0, 0, 0.16),\n 0px 5px 12px 4px rgba(0, 0, 0, 0.12);\n cursor: pointer;\n }\n .active-inspector-switch {\n color: #006aff;\n }\n .move-inspector-switch {\n cursor: move;\n }\n #inspector-node-tree {\n position: fixed;\n user-select: none;\n z-index: 9999999999999999;\n min-width: 300px;\n max-width: min(max(30vw, 300px), 400px);\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,\n 'Liberation Mono', 'Courier New', monospace;\n display: flex;\n flex-direction: column;\n padding: 0;\n\n .inspector-layer-title {\n border-bottom: 1px solid #eee;\n padding: 8px 8px 4px;\n margin-bottom: 8px;\n flex-shrink: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: move;\n user-select: none;\n &:hover {\n background: rgba(0, 106, 255, 0.1);\n }\n }\n\n .node-tree-list {\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n }\n\n .inspector-layer {\n cursor: pointer;\n position: relative;\n padding-right: 8px;\n &:hover {\n background: #fdf4bf;\n }\n }\n\n .path-line {\n font-size: 9px;\n color: #777;\n margin-top: 1px;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n }\n }\n\n #node-tree-tooltip {\n position: fixed;\n box-sizing: border-box;\n z-index: 999999999999999999;\n background: rgba(0, 0, 0, 0.6);\n color: white;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 12px;\n white-space: wrap;\n pointer-events: none;\n word-break: break-all;\n }\n .tooltip-top {\n transform: translateY(-100%);\n }\n .close-icon {\n cursor: pointer;\n }\n\n /* 设置弹窗样式 */\n .settings-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 99999999999999999;\n animation: fadeIn 0.2s ease-out;\n }\n\n .settings-modal {\n background: #fff;\n border-radius: 12px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);\n width: 90%;\n max-width: 480px;\n max-height: 90vh;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n animation: slideUp 0.3s ease-out;\n }\n\n .settings-modal-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid #eee;\n }\n\n .settings-modal-title {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #333;\n }\n\n .settings-modal-close {\n background: none;\n border: none;\n font-size: 28px;\n color: #999;\n cursor: pointer;\n padding: 0;\n width: 32px;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n transition: all 0.2s;\n }\n\n .settings-modal-close:hover {\n background: #f5f5f5;\n color: #333;\n }\n\n .settings-modal-content {\n padding: 16px 24px;\n overflow-y: auto;\n flex: 1;\n }\n\n .settings-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 0;\n border-bottom: 1px solid #f5f5f5;\n }\n\n .settings-item:last-child {\n border-bottom: none;\n }\n\n .settings-label {\n display: flex;\n flex-direction: column;\n flex: 1;\n margin-right: 16px;\n cursor: pointer;\n }\n\n .settings-label-text {\n font-size: 15px;\n font-weight: 500;\n color: #333;\n margin-bottom: 4px;\n }\n\n .settings-label-desc {\n font-size: 13px;\n color: #999;\n }\n\n .settings-switch {\n position: relative;\n display: inline-block;\n width: 44px;\n height: 24px;\n flex-shrink: 0;\n }\n\n .settings-switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n .settings-slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n transition: 0.3s;\n border-radius: 24px;\n }\n\n .settings-slider:before {\n position: absolute;\n content: '';\n height: 18px;\n width: 18px;\n left: 3px;\n bottom: 3px;\n background-color: white;\n transition: 0.3s;\n border-radius: 50%;\n }\n\n .settings-switch input:checked + .settings-slider {\n background-color: #006aff;\n }\n\n .settings-switch input:checked + .settings-slider:before {\n transform: translateX(20px);\n }\n\n .settings-switch input:focus + .settings-slider {\n box-shadow: 0 0 1px #006aff;\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n @keyframes slideUp {\n from {\n transform: translateY(20px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n }\n "]))),v([P()],m.prototype,"hotKeys",2),v([P()],m.prototype,"port",2),v([P()],m.prototype,"showSwitch",2),v([P()],m.prototype,"autoToggle",2),v([P()],m.prototype,"hideConsole",2),v([P()],m.prototype,"locate",2),v([P()],m.prototype,"copy",2),v([P()],m.prototype,"target",2),v([P()],m.prototype,"ip",2),v([P()],m.prototype,"modeKey",2),v([_()],m.prototype,"position",2),v([_()],m.prototype,"element",2),v([_()],m.prototype,"elementTipStyle",2),v([_()],m.prototype,"show",2),v([_()],m.prototype,"showNodeTree",2),v([_()],m.prototype,"nodeTreePosition",2),v([_()],m.prototype,"nodeTree",2),v([_()],m.prototype,"dragging",2),v([_()],m.prototype,"mousePosition",2),v([_()],m.prototype,"draggingTarget",2),v([_()],m.prototype,"open",2),v([_()],m.prototype,"moved",2),v([_()],m.prototype,"hoverSwitch",2),v([_()],m.prototype,"preUserSelect",2),v([_()],m.prototype,"sendType",2),v([_()],m.prototype,"activeNode",2),v([_()],m.prototype,"showSettingsModal",2),v([_()],m.prototype,"internalLocate",2),v([_()],m.prototype,"internalCopy",2),v([_()],m.prototype,"internalTarget",2),v([Z("#inspector-switch")],m.prototype,"inspectorSwitchRef",2),v([Z("#code-inspector-container")],m.prototype,"codeInspectorContainerRef",2),v([Z("#element-info")],m.prototype,"elementInfoRef",2),v([Z("#inspector-node-tree")],m.prototype,"nodeTreeRef",2),v([Z(".inspector-layer-title")],m.prototype,"nodeTreeTitleRef",2),v([Z("#node-tree-tooltip")],m.prototype,"nodeTreeTooltipRef",2),!document.getElementById("code-inspector-notification-styles")){const s=document.createElement("style");s.id="code-inspector-notification-styles",s.textContent="\n .code-inspector-notification {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 99999999999999999;\n padding: 12px 16px;\n border-radius: 8px;\n font-size: 14px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n font-weight: 500;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n opacity: 0;\n transform: translateY(-10px);\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n pointer-events: none;\n }\n .code-inspector-notification-success {\n background: hsl(143, 85%, 96%);\n color: hsl(140, 100%, 27%);\n border: 1px solid hsl(145, 92%, 91%);\n }\n .code-inspector-notification-error {\n background: hsl(0, 93%, 94%);\n color: hsl(0, 84%, 40%);\n border: 1px solid hsl(0, 93%, 94%);\n }\n .code-inspector-notification-show {\n opacity: 1;\n transform: translateY(0);\n }\n ",document.head.appendChild(s)}customElements.get("code-inspector-component")||customElements.define("code-inspector-component",m),x.CodeInspectorComponent=m,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});