1var e='*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}',t=globalThis,n=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap,a=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(n&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=i.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&i.set(t,e))}return e}toString(){return this.cssText}},o=e=>new a("string"==typeof e?e:e+"",void 0,r),s=(e,...t)=>new a(1===e.length?e[0]:t.reduce((t,i,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[r+1],e[0]),e,r),c=(e,i)=>{if(n)e.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of i){let i=document.createElement("style"),n=t.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}},l=n?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return o(t)})(e):e,{is:u,defineProperty:d,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne,getPrototypeOf:re}=Object,f=globalThis,p=f.trustedTypes,ie=p?p.emptyScript:"",ae=f.reactiveElementPolyfillSupport,m=(e,t)=>e,h={toAttribute(e,t){switch(t){case Boolean:e=e?ie:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},g=(e,t)=>!u(e,t),_={attribute:!0,type:String,converter:h,reflect:!1,useDefault:!1,hasChanged:g};Symbol.metadata??=Symbol("metadata"),f.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=_){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),r=this.getPropertyDescriptor(e,i,t);void 0!==r&&d(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){let{get:r,set:n}=ee(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let o=r?.call(this);n?.call(this,t),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;let e=re(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){let e=this.properties,t=[...te(e),...ne(e)];for(let i of t)this.createProperty(i,e[i])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let e of i)t.unshift(l(e))}else void 0!==e&&t.push(l(e));return t}static _$Eu(e,t){let i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e
1=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(void 0!==r&&!0===i.reflect){let n=(void 0===i.converter?.toAttribute?h:i.converter).toAttribute(t,i.type);this._$Em=e,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(e,t){let i=this.constructor,r=i._$Eh.get(e);if(void 0!==r&&this._$Em!==r){let e=i.getPropertyOptions(r),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0===e.converter?.fromAttribute?h:e.converter;this._$Em=r;let o=n.fromAttribute(t,e.type);this[r]=o??this._$Ej?.get(r)??o,this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){let r=this.constructor,n=this[e];if(i??=r.getPropertyOptions(e),!((i.hasChanged??g)(n,t)||i.useDefault&&i.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(r._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:n},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==n||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,i]of e){let{wrapped:e}=i,r=this[t];!0!==e||this._$AL.has(t)||void 0===r||this.C(t,void 0,i,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[m("elementProperties")]=new Map,v[m("finalized")]=new Map,ae?.({ReactiveElement:v}),(f.reactiveElementVersions??=[]).push("2.1.1");var y=globalThis,b=y.trustedTypes,x=b?b.createPolicy("lit-html",{createHTML:e=>e}):void 0,oe="$lit$",S=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+S,se=`<${C}>`,w=document,T=()=>w.createComment(""),E=e=>null===e||"object"!=typeof e&&"function"!=typeof e,D=Array.isArray,ce=e=>D(e)||"function"==typeof e?.[Symbol.iterator],O="[ \t\n\f\r]",k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,j=/>/g,M=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),le=/'/g,ue=/"/g,N=/^(?:script|style|textarea|title)$/i,P=(e,...t)=>({_$litType$:1,strings:e,values:t}),F=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),L=new WeakMap,R=w.createTreeWalker(w,129);function z(e,t){if(!D(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0===x?t:x.createHTML(t)}var de=(e,t)=>{let i,r=e.length-1,n=[],o=2===t?"<svg>":3===t?"<math>":"",s=k;for(let t=0;t<r;t++){let r,a,l=e[t],h=-1,u=0;for(;u<l.length&&(s.lastIndex=u,a=s.exec(l),null!==a);)u=s.lastIndex,s===k?"!--"===a[1]?s=A:void 0===a[1]?void 0===a[2]?void 0!==a[3]&&(s=M):(N.test(a[2])&&(i=RegExp("</"+a[2],"g")),s=M):s=j:s===M?">"===a[0]?(s=i??k,h=-1):void 0===a[1]?h=-2:(h=s.lastIndex-a[2].length,r=a[1],s=void 0===a[3]?M:'"'===a[3]?ue:le):s===ue||s===le?s=M:s===A||s===j?s=k:(s=M,i=void 0);
1let c=s===M&&e[t+1].startsWith("/>")?" ":"";o+=s===k?l+se:h>=0?(n.push(r),l.slice(0,h)+oe+l.slice(h)+S+c):l+S+(-2===h?t:c)}return[z(e,o+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]},B=class e{constructor({strings:t,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[h,u]=de(t,i);if(this.el=e.createElement(h,r),R.currentNode=this.el.content,2===i||3===i){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=R.nextNode())&&l.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(let e of n.getAttributeNames())if(e.endsWith(oe)){let t=u[s++],i=n.getAttribute(e).split(S),r=/([.?@])?(.*)/.exec(t);l.push({type:1,index:o,name:r[2],strings:i,ctor:"."===r[1]?pe:"?"===r[1]?me:"@"===r[1]?he:U}),n.removeAttribute(e)}else e.startsWith(S)&&(l.push({type:6,index:o}),n.removeAttribute(e));if(N.test(n.tagName)){let e=n.textContent.split(S),t=e.length-1;if(t>0){n.textContent=b?b.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],T()),R.nextNode(),l.push({type:2,index:++o});n.append(e[t],T())}}}else if(8===n.nodeType)if(n.data===C)l.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(S,e+1));)l.push({type:7,index:o}),e+=S.length-1}o++}}static createElement(e,t){let i=w.createElement("template");return i.innerHTML=e,i}};function V(e,t,i=e,r){if(t===F)return t;let n=void 0===r?i._$Cl:i._$Co?.[r],o=E(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(e),n._$AT(e,i,r)),void 0===r?i._$Cl=n:(i._$Co??=[])[r]=n),void 0!==n&&(t=V(e,n._$AS(e,t.values),n,r)),t}var fe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,r=(e?.creationScope??w).importNode(t,!0);R.currentNode=r;let n=R.nextNode(),o=0,s=0,a=i[0];for(;void 0!==a;){if(o===a.index){let t;2===a.type?t=new H(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ge(n,this,e)),this._$AV.push(t),a=i[++s]}o!==a?.index&&(n=R.nextNode(),o++)}return R.currentNode=w,r}p(e){let t=0;for(let i of this._$AV)void 0!==i&&(void 0===i.strings?i._$AI(e[t]):(i._$AI(e,i,t),t+=i.strings.length-2)),t++}},H=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=V(this,e,t),E(e)?e===I||null==e||""===e?(this._$AH!==I&&this._$AR(),this._$AH=I):e!==this._$AH&&e!==F&&this._(e):void 0===e._$litType$?void 0===e.nodeType?ce(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==I&&E(this._$AH)?this._$AA.nextSibling.data=e:this.T(w.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=B.createElement(z(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new fe(r,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=L.get(e.strings);return void 0===t&&L.set(e.strings,t=new B(e)),t}k(t){D(this._$AH)||(this._$AH=[],this._$AR());let i,r=this._$AH,n=0;for(let o of t)n===r.length?r.push(i=new e(this.O(T()),this.O(T()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,n){this.type=1,this._$AH=I,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}_$AI(e,t=this,i,r){let n=this.strings,o=!1;if(void 0===n)e=V(this,e,t,0),o=!E(e)||e!==this._$AH&&e!==F,o&&(this._$AH=e);else{let r,s,a=e;for(e=n[0],r=0;r<n.length-1;r++)s=V(this,a[i+r],t,r),s===F&&(s=this._$AH[r]),o||=!E(s)||s!==this._$AH[r],s===I?e=I:e!==I&&(e+=(s??"")+n[r+1]),this._$AH[r]=s}o&&!r&&this.j(e)}j(e){e===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},pe=class extends U{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===I?void 0:e}},me=class extends U{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==I)}}
1,he=class extends U{constructor(e,t,i,r,n){super(e,t,i,r,n),this.type=5}_$AI(e,t=this){if((e=V(this,e,t,0)??I)===F)return;let i=this._$AH,r=e===I&&i!==I||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==I&&(i===I||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ge=class{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){V(this,e)}},_e=y.litHtmlPolyfillSupport;_e?.(B,H),(y.litHtmlVersions??=[]).push("3.3.1");var ve=(e,t,i)=>{let r=i?.renderBefore??t,n=r._$litPart$;if(void 0===n){let e=i?.renderBefore??null;r._$litPart$=n=new H(t.insertBefore(T(),e),e,void 0,i??{})}return n._$AI(e),n},W=globalThis,G=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ve(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return F}};G._$litElement$=!0,G.finalized=!0,W.litElementHydrateSupport?.({LitElement:G});var ye=W.litElementPolyfillSupport;ye?.({LitElement:G}),(W.litElementVersions??=[]).push("4.2.1");var be={attribute:!0,type:String,converter:h,reflect:!1,hasChanged:g},xe=(e=be,t,i)=>{let{kind:r,metadata:n}=i,o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===r&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),"accessor"===r){let{name:r}=i;return{set(i){let n=t.get.call(this);t.set.call(this,i),this.requestUpdate(r,n,e)},init(t){return void 0!==t&&this.C(r,void 0,e,t),t}}}if("setter"===r){let{name:r}=i;return function(i){let n=this[r];t.call(this,i),this.requestUpdate(r,n,e)}}throw Error("Unsupported decorator location: "+r)};function K(e){return(t,i)=>"object"==typeof i?xe(e,t,i):((e,t,i)=>{let r=t.hasOwnProperty(i);return t.constructor.createProperty(i,e),r?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}function q(e){return K({...e,state:!0,attribute:!1})}var Se={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ce=e=>(...t)=>({_$litDirective$:e,values:t}),we=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},J=class extends we{constructor(e){if(super(e),this.it=I,e.type!==Se.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===I||null==e)return this._t=void 0,this.it=e;if(e===F)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};J.directiveName="unsafeHTML",J.resultType=1;var Y=Ce(J);function X(e,t,i){return e?t(e):i?.(e)}var Te='.shiki{color-scheme:var(--shiki-theme-type,light);padding:.875em;overflow-x:auto}code{z-index:0;width:max-content;min-width:100%;font-size:var(--font-size,.875em);counter-reset:step;counter-increment:step 0;display:block;position:relative}code .line:before{content:counter(step);counter-increment:step;text-align:right;color:#738a9480;width:1rem;margin-right:1.5rem;display:inline-block}code .line:last-child:empty{display:none}code .line:last-child:has(>span:empty:only-child){display:none}.has-diff .diff,.has-highlighted .highlighted{width:100%;display:inline-block;position:relative}.has-diff .diff.remove:before{content:"-"}.has-diff .diff.add:before{content:"+"}.has-diff .diff.remove:after{content:"";z-index:-1;background:#ef444426;border-left:1px solid #ef4444cc;position:absolute;inset:0 -.875em}.has-diff .diff.add:after{content:"";z-index:-1;background:#22c55e26;border-left:1px solid #22c55ecc;position:absolute;inset:0 -.875em}.has-focused .line:not(.focused){opacity:.7;filter:blur(.095rem);transition:filter .35s,opacity .35s}.has-focused:hover .line:not(.focused){opacity:1;filter:blur()}.has-highlighted .highlighted:after{content:"";z-index:-1;background:#65758529;border-left:1px solid #22c55ecc;position:absolute;inset:0 -.875em}.has-highlighted .highlighted.error:after{background:#f43f5e29!important;border-left:1px solid #f43f5ecc!important}.has-highlighted .highlighted.warning:after{background:#eab30829!important;border-left:1px solid #eab308cc!important}.has-highlighted .highlighted.info:after{background:#65758529!important;border-left:1px solid #657585cc!important}:host([color-scheme=dark]) .shiki,:host([color-scheme=dark]) .shiki span{color:var(--shiki-dark)!important}:host([color-scheme=dark]) .shiki{background-color:var(--shiki-dark-bg)!important}';function Ee(e,t){if(navigator.clipboard)navigator.clipboard.writeText(e).then(()=>{t()});else{let i=document.createElement("textarea");i.value=e,i.style.position="fixed",i.style.opacity="0",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")&&t()}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(i)}}function Z(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}var Q=class extends G{constructor(...e){super(...e),this.options={html:"",languageName:"Unknown",colorScheme:"light",theme:null,fontSize:"0.875em"},this.copied=!1}updated(e){e.has("options")&&(this.setAttribute("color-scheme",this.options.colorScheme),this.style.setProperty("--shiki-theme-type",this.options.theme?.type||"light"),this.style.setProperty("--font-size",this.options.fontSize||"0.875em"))}handleCopyCode(){let e=this.shadowRoot?.querySelector("pre");Ee(e?.innerText||e?.textContent||"",()=>{this.copied=!0,setTimeout(()=>{this.copied=!1},2e3)})}};Z([K({type:Object})],Q.prototype,"options",void 0),Z([q()],Q.prototype,"copied",void 0);var De=class extends Q{render(){return P` 2 <div class="shadow rounded-lg relative group"> 3 ${Y(this.options.html)} 4 <div 5 class="absolute select-none top-1 text-xs right-2 group-hover:opacity-0 transition-opacity" 6 style="color: ${this.options.theme?.fg}" 7 > 8 ${this.options.languageName} 9 </div> 10 <button 11 class="opacity-0 z-2 select-none group-hover:opacity-100 transition-opacity absolute top-2 rounded right-2 size-8 inline-flex items-center justify-center" 12 style="background-color: ${this.options.theme?.bg};" 13 @click=${this.handleCopyCode} 14 tabindex="-1" 15 > 16 ${X(this.copied,()=>P`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`,()=>P`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`)} 17 </button> 18 </div> 19 `}static{this.styles=[o(e),o(Te),s` 20 .shiki { 21 border-radius: inherit; 22 } 23 /* layer: preflights */ 24*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);
24--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;} 25/* layer: icons */ 26.i-tabler-check{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 12l5 5L20 7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;} 27.i-tabler-copy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M7 9.667A2.667 2.667 0 0 1 9.667 7h8.666A2.667 2.667 0 0 1 21 9.667v8.666A2.667 2.667 0 0 1 18.333 21H9.667A2.667 2.667 0 0 1 7 18.333z'/%3E%3Cpath d='M4.012 16.737A2 2 0 0 1 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;} 28/* layer: default */ 29.absolute{position:absolute;} 30.relative{position:relative;} 31.static{position:static;} 32.right-2{right:0.5rem;} 33.top-1{top:0.25rem;} 34.top-2{top:0.5rem;} 35.z-2{z-index:2;} 36.block{display:block;} 37.size-8{width:2rem;height:2rem;} 38.inline-flex{display:inline-flex;} 39.select-none{-webkit-user-select:none;user-select:none;} 40.items-center{align-items:center;} 41.justify-center{justify-content:center;} 42.rounded{border-radius:0.25rem;} 43.rounded-lg{border-radius:0.5rem;} 44.text-xs{font-size:0.75rem;line-height:1rem;} 45.opacity-0, 46.group:hover .group-hover\\:opacity-0{opacity:0;} 47.group:hover .group-hover\\:opacity-100{opacity:1;} 48.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / 0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);} 49.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}; 50 `]}};customElements.get("shiki-code-simple-variant")||customElements.define("shiki-code-simple-variant",De);var Oe=class extends Q{constructor(...e){super(...e),this.fold=!1}render(){return P` 51 <div class="shadow rounded-lg overflow-hidden relative group"> 52 <header 53 class="flex items-center h-10 justify-between px-4.5 opacity-95" 54 style="background-color: ${this.options.theme?.bg};" 55 > 56 <div class="flex gap-2"> 57 <div class="bg-[#FF5C60] size-3 rounded-full"></div> 58 <div class="bg-[#FAC800] size-3 rounded-full"></div> 59 <div class="bg-[#35C759] size-3 rounded-full"></div> 60 </div> 61 <div class="select-none font-semibold" style="color: ${this.options.theme?.fg}"> 62 ${this.options.languageName} 63 </div> 64 <div class="inline-flex items-center gap-2"> 65 <button 66 class="select-none" 67 tabindex="-1" 68 @click=${()=>{this.fold=!this.fold}} 69 > 70 ${X(this.fold,()=>P`<i 71 class="i-mingcute-left-line block" 72 style="color: ${this.options.theme?.fg}" 73 ></i>`,()=>P`<i 74 class="i-mingcute-down-line block" 75 style="color: ${this.options.theme?.fg}" 76 ></i>`)} 77 </button> 78 <button class="select-none" tabindex="-1" @click=${this.handleCopyCode}> 79 ${X(this.copied,()=>P`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`,()=>P`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`)} 80 </button> 81 </div> 82 </header> 83 ${X(this.fold,()=>P``,()=>P`${Y(this.options.html)}`)} 84 </div> 85 `}static{this.styles=[o(e),o(Te),s` 86 /* layer: preflights */ 87*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);
87--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;} 88/* layer: icons */ 89.i-mingcute-down-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='currentColor' d='M12.707 15.707a1 1 0 0 1-1.414 0L5.636 10.05A1 1 0 1 1 7.05 8.636l4.95 4.95l4.95-4.95a1 1 0 0 1 1.414 1.414z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;} 90.i-mingcute-left-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='currentColor' d='M8.293 12.707a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 1 1 1.414 1.414L10.414 12l4.95 4.95a1 1 0 0 1-1.414 1.414z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;} 91.i-tabler-check{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 12l5 5L20 7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;} 92.i-tabler-copy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M7 9.667A2.667 2.667 0 0 1 9.667 7h8.666A2.667 2.667 0 0 1 21 9.667v8.666A2.667 2.667 0 0 1 18.333 21H9.667A2.667 2.667 0 0 1 7 18.333z'/%3E%3Cpath d='M4.012 16.737A2 2 0 0 1 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;} 93/* layer: default */ 94.relative{position:relative;} 95.static{position:static;} 96.block{display:block;} 97.size-3{width:0.75rem;height:0.75rem;} 98.h-10{height:2.5rem;}
99.flex{display:flex;} 100.inline-flex{display:inline-flex;} 101.select-none{-webkit-user-select:none;user-select:none;} 102.items-center{align-items:center;} 103.justify-between{justify-content:space-between;} 104.gap-2{gap:0.5rem;} 105.overflow-hidden{overflow:hidden;} 106.rounded-full{border-radius:9999px;} 107.rounded-lg{border-radius:0.5rem;} 108.bg-\\[\\#35C759\\]{--un-bg-opacity:1;background-color:rgb(53 199 89 / var(--un-bg-opacity)) /* #35C759 */;} 109.bg-\\[\\#FAC800\\]{--un-bg-opacity:1;background-color:rgb(250 200 0 / var(--un-bg-opacity)) /* #FAC800 */;} 110.bg-\\[\\#FF5C60\\]{--un-bg-opacity:1;background-color:rgb(255 92 96 / var(--un-bg-opacity)) /* #FF5C60 */;} 111.px-4\\.5{padding-left:1.125rem;padding-right:1.125rem;} 112.font-semibold{font-weight:600;} 113.opacity-95{opacity:0.95;} 114.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / 0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}; 115 `]}};Z([q()],Oe.prototype,"fold",void 0),customElements.get("shiki-code-mac-variant")||customElements.define("shiki-code-mac-variant",Oe);var $=class extends G{constructor(...e){super(...e),this.lightTheme="github-light",this.darkTheme="github-dark",this.variant="simple",this.fontSize="0.875em",this.loading=!0,this.html="",this.languageCode="",this.languageName="",this.lightThemeRegistration=null,this.darkThemeRegistration=null,this.co
115de="",this.copied=!1,this.error="",this._observer=null,this._media=null,this._colorScheme="light"}get _themeRegistration(){return"dark"===this._colorScheme?this.darkThemeRegistration:this.lightThemeRegistration}connectedCallback(){this._media=window.matchMedia("(prefers-color-scheme: dark)"),this.updateTheme(),this._observer=new MutationObserver(()=>this.updateTheme()),this._observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-color-scheme"]}),this._observer.observe(document.body,{attributes:!0,attributeFilter:["class","data-color-scheme"]}),this._media.addEventListener("change",()=>this.updateTheme()),super.connectedCallback()}disconnectedCallback(){this._observer?.disconnect(),this._media?.removeEventListener("change",()=>this.updateTheme()),super.disconnectedCallback()}isDarkMode(){let e=document.documentElement,t=document.body,i=(e,t)=>e?.classList.contains(t),r=(e,t,i)=>e?.getAttribute(t)===i;return i(e,"color-scheme-auto")||i(t,"color-scheme-auto")||r(e,"data-color-scheme","auto")||r(t,"data-color-scheme","auto")?this._media?.matches:!!(i(e,"color-scheme-dark")||i(e,"dark")||r(e,"data-color-scheme","dark")||i(t,"color-scheme-dark")||i(t,"dark")||r(t,"data-color-scheme","dark"))}updateTheme(){this._colorScheme=this.isDarkMode()?"dark":"light"}render(){return P`<slot @slotchange=${this.handleSlotchange}></slot> ${this.renderCodeBlockBody()}`}renderCodeBlockBody(){if(this.loading)return P``;if(this.error)return P`<div class="text-sm text-red-500">é误: ${this.error}</div>`;let e={html:this.html,languageName:this.languageName,colorScheme:this._colorScheme,theme:this._themeRegistration,fontSize:this.fontSize};return"mac"===this.variant?P`<shiki-code-mac-variant .options=${e}></shiki-code-mac-variant>`:"simple"===this.variant?P`<shiki-code-simple-variant .options=${e}></shiki-code-simple-variant>`:void 0}handleSlotchange(e){let t=e.target.assignedElements({flatten:!0});if(!t.length)return;let i=t[0];if("PRE"===i.tagName){let e=i.querySelector("code");e&&this.process(e)}}async process(e){try{this.languageCode=this.extractLanguageCode(e.classList)||"plaintext","auto"===this.languageCode&&(this.languageCode="plaintext"),"text"===this.languageCode&&(this.languageCode="plaintext"),this.code=e.textContent||"";let t=await this.renderCodeAsHtml(this.code||"",this.languageCode);this.html=t;let{getSingletonHighlighter:i}=await import("./dist-DMz-gh7V.js"),r=await i();if("plaintext"!==this.languageCode){let e=r.getLanguage(this.languageCode);this.languageName=e.name}else this.languageName="plaintext";this.lightThemeRegistration=r.getTheme(this.lightTheme),this.darkThemeRegistration=r.getTheme(this.darkTheme||this.lightTheme)}catch(e){e instanceof Error&&(this.error=e.message)}finally{this.shadowRoot?.querySelector("slot")?.assignedElements().forEach(e=>{e instanceof HTMLElement&&e.setAttribute("style","display: none !important;")}),this.loading=!1}}extractLanguageCode(e){let t=["language-","lang-"];for(let i=0;i<e.length;i++){let r=e[i];for(let e=0;e<t.length;e++){let i=t[e];if(r.startsWith(i))return r.substring(i.length).toLowerCase()}}return null}async renderCodeAsHtml(e,t){let{codeToHtml:i}=await import("./dist-DMz-gh7V.js"),{transformerNotationDiff:r,transformerNotationHighlight:n,transformerNotationFocus:o,transformerNotationErrorLevel:s}=await import("./dist-CirF2-vW.js");return await i(e,{lang:t,themes:{light:this.lightTheme,dark:this.darkTheme||this.lightTheme},transformers:[r(),n(),o(),s()]})}static{this.styles=[o(e),s` 116 :host { 117 display: block; 118 margin: 1rem 0 !important; 119 } 120 121 /* layer: preflights */ 122*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);
122--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;} 123/* layer: default */ 124.static{position:static;} 125.block{display:block;} 126.color-scheme-auto{color-scheme:auto;} 127.color-scheme-dark{color-scheme:dark;} 128.text-sm{font-size:0.875rem;line-height:1.25rem;} 129.text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity)) /* #ef4444 */;}; 130 `]}};function ke(e){let t=["language-","lang-"];for(let i of e.classList)for(let e of t)if(i.startsWith(e))return i.substring(e.length).toLowerCase();return null}function Ae(e,t){if(!t||0===t.length)return!1;let i=ke(e);return!!i&&t.some(e=>e.toLowerCase()===i)}function je(e){document.querySelectorAll("pre > code").forEach(t=>{if(Ae(t,e.excludedLanguages))return;let i=t.parentElement,r=document.createElement("shiki-code");r.setAttribute("light-theme",e.lightTheme),r.setAttribute("dark-theme",e.darkTheme),r.setAttribute("variant",e.variant),r.setAttribute("font-size",e.fontSize);let n=i?.parentElement;n&&(n.insertBefore(r,i),r.appendChild(i))})}Z([K({type:String,attribute:"light-theme"})],$.prototype,"lightTheme",void 0),Z([K({type:String,attribute:"dark-theme"})],$.prototype,"darkTheme",void 0),Z([K({type:String})],$.prototype,"variant",void 0),Z([K({type:String,attribute:"font-size"})],$.prototype,"fontSize",void 0),Z([q()],$.prototype,"loading",void 0),Z([q()],$.prototype,"html",void 0),Z([q()],$.prototype,"languageCode",void 0),Z([q()],$.prototype,"languageName",void 0),Z([q()],$.prototype,"lightThemeRegistration",void 0),Z([q()],$.prototype,"darkThemeRegistration",void 0),Z([q()],$.prototype,"code",void 0),Z([q()],$.prototype,"copied",void 0),Z([q()],$.prototype,"error",void 0),Z([q()],$.prototype,"_colorScheme",void 0),customElements.get("shiki-code")||customElements.define("shiki-code",$);export{je as renderCodeBlock};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.