@e280/shiny 0.1.0-20 → 0.1.0-21
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.
- package/package.json +9 -9
- package/s/demo/globals.d.ts +3 -0
- package/s/index.ts +2 -0
- package/x/demo/main.bundle.min.js +90 -79
- package/x/demo/main.bundle.min.js.map +4 -4
- package/x/index.d.ts +2 -0
- package/x/index.html +4 -4
- package/x/index.js +2 -0
- package/x/index.js.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var _s=Object.create;var Ze=Object.defineProperty;var Es=Object.getOwnPropertyDescriptor;var Cs=Object.getOwnPropertyNames;var Ts=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty;var Os=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Ms=(r,t)=>{for(var e in t)Ze(r,e,{get:t[e],enumerable:!0})},Rs=(r,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Cs(t))!Fs.call(r,o)&&o!==e&&Ze(r,o,{get:()=>t[o],enumerable:!(s=Es(t,o))||s.enumerable});return r};var zs=(r,t,e)=>(e=r!=null?_s(Ts(r)):{},Rs(t||!r||!r.__esModule?Ze(e,"default",{value:r,enumerable:!0}):e,r));var is=Os((jp,qe)=>{var fo=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var f=(function(r){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,e=0,s={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function a(i){return i instanceof n?new n(i.type,a(i.content),i.alias):Array.isArray(i)?i.map(a):i.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(a){return Object.prototype.toString.call(a).slice(8,-1)},objId:function(a){return a.__id||Object.defineProperty(a,"__id",{value:++e}),a.__id},clone:function a(i,c){c=c||{};var p,u;switch(o.util.type(i)){case"Object":if(u=o.util.objId(i),c[u])return c[u];p={},c[u]=p;for(var g in i)i.hasOwnProperty(g)&&(p[g]=a(i[g],c));return p;case"Array":return u=o.util.objId(i),c[u]?c[u]:(p=[],c[u]=p,i.forEach(function($,d){p[d]=a($,c)}),p);default:return i}},getLanguage:function(a){for(;a;){var i=t.exec(a.className);if(i)return i[1].toLowerCase();a=a.parentElement}return"none"},setLanguage:function(a,i){a.className=a.className.replace(RegExp(t,"gi"),""),a.classList.add("language-"+i)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(p){var a=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.stack)||[])[1];if(a){var i=document.getElementsByTagName("script");for(var c in i)if(i[c].src==a)return i[c]}return null}},isActive:function(a,i,c){for(var p="no-"+i;a;){var u=a.classList;if(u.contains(i))return!0;if(u.contains(p))return!1;a=a.parentElement}return!!c}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(a,i){var c=o.util.clone(o.languages[a]);for(var p in i)c[p]=i[p];return c},insertBefore:function(a,i,c,p){p=p||o.languages;var u=p[a],g={};for(var $ in u)if(u.hasOwnProperty($)){if($==i)for(var d in c)c.hasOwnProperty(d)&&(g[d]=c[d]);c.hasOwnProperty($)||(g[$]=u[$])}var k=p[a];return p[a]=g,o.languages.DFS(o.languages,function(E,M){M===k&&E!=a&&(this[E]=g)}),g},DFS:function a(i,c,p,u){u=u||{};var g=o.util.objId;for(var $ in i)if(i.hasOwnProperty($)){c.call(i,$,i[$],p||$);var d=i[$],k=o.util.type(d);k==="Object"&&!u[g(d)]?(u[g(d)]=!0,a(d,c,null,u)):k==="Array"&&!u[g(d)]&&(u[g(d)]=!0,a(d,c,$,u))}}},plugins:{},highlightAll:function(a,i){o.highlightAllUnder(document,a,i)},highlightAllUnder:function(a,i,c){var p={callback:c,container:a,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),o.hooks.run("before-all-elements-highlight",p);for(var u=0,g;g=p.elements[u++];)o.highlightElement(g,i===!0,p.callback)},highlightElement:function(a,i,c){var p=o.util.getLanguage(a),u=o.languages[p];o.util.setLanguage(a,p);var g=a.parentElement;g&&g.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(g,p);var $=a.textContent,d={element:a,language:p,grammar:u,code:$};function k(M){d.highlightedCode=M,o.hooks.run("before-insert",d),d.element.innerHTML=d.highlightedCode,o.hooks.run("after-highlight",d),o.hooks.run("complete",d),c&&c.call(d.element)}if(o.hooks.run("before-sanity-check",d),g=d.element.parentElement,g&&g.nodeName.toLowerCase()==="pre"&&!g.hasAttribute("tabindex")&&g.setAttribute("tabindex","0"),!d.code){o.hooks.run("complete",d),c&&c.call(d.element);return}if(o.hooks.run("before-highlight",d),!d.grammar){k(o.util.encode(d.code));return}if(i&&r.Worker){var E=new Worker(o.filename);E.onmessage=function(M){k(M.data)},E.postMessage(JSON.stringify({language:d.language,code:d.code,immediateClose:!0}))}else k(o.highlight(d.code,d.grammar,d.language))},highlight:function(a,i,c){var p={code:a,grammar:i,language:c};if(o.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=o.tokenize(p.code,p.grammar),o.hooks.run("after-tokenize",p),n.stringify(o.util.encode(p.tokens),p.language)},tokenize:function(a,i){var c=i.rest;if(c){for(var p in c)i[p]=c[p];delete i.rest}var u=new h;return b(u,u.head,a),m(a,u,i,u.head,0),x(u)},hooks:{all:{},add:function(a,i){var c=o.hooks.all;c[a]=c[a]||[],c[a].push(i)},run:function(a,i){var c=o.hooks.all[a];if(!(!c||!c.length))for(var p=0,u;u=c[p++];)u(i)}},Token:n};r.Prism=o;function n(a,i,c,p){this.type=a,this.content=i,this.alias=c,this.length=(p||"").length|0}n.stringify=function a(i,c){if(typeof i=="string")return i;if(Array.isArray(i)){var p="";return i.forEach(function(k){p+=a(k,c)}),p}var u={type:i.type,content:a(i.content,c),tag:"span",classes:["token",i.type],attributes:{},language:c},g=i.alias;g&&(Array.isArray(g)?Array.prototype.push.apply(u.classes,g):u.classes.push(g)),o.hooks.run("wrap",u);var $="";for(var d in u.attributes)$+=" "+d+'="'+(u.attributes[d]||"").replace(/"/g,""")+'"';return"<"+u.tag+' class="'+u.classes.join(" ")+'"'+$+">"+u.content+"</"+u.tag+">"};function l(a,i,c,p){a.lastIndex=i;var u=a.exec(c);if(u&&p&&u[1]){var g=u[1].length;u.index+=g,u[0]=u[0].slice(g)}return u}function m(a,i,c,p,u,g){for(var $ in c)if(!(!c.hasOwnProperty($)||!c[$])){var d=c[$];d=Array.isArray(d)?d:[d];for(var k=0;k<d.length;++k){if(g&&g.cause==$+","+k)return;var E=d[k],M=E.inside,At=!!E.lookbehind,St=!!E.greedy,Nt=E.alias;if(St&&!E.pattern.global){var se=E.pattern.toString().match(/[imsuy]*$/)[0];E.pattern=RegExp(E.pattern.source,se+"g")}for(var oe=E.pattern||E,P=p.next,L=u;P!==i.tail&&!(g&&L>=g.reach);L+=P.value.length,P=P.next){var Q=P.value;if(i.length>a.length)return;if(!(Q instanceof n)){var nt=1,W;if(St){if(W=l(oe,L,a,At),!W||W.index>=a.length)break;var ne=W.index,Ss=W.index+W[0].length,it=L;for(it+=P.value.length;ne>=it;)P=P.next,it+=P.value.length;if(it-=P.value.length,L=it,P.value instanceof n)continue;for(var qt=P;qt!==i.tail&&(it<Ss||typeof qt.value=="string");qt=qt.next)nt++,it+=qt.value.length;nt--,Q=a.slice(L,it),W.index-=L}else if(W=l(oe,0,Q,At),!W)continue;var ne=W.index,ie=W[0],We=Q.slice(0,ne),fr=Q.slice(ne+ie.length),Ge=L+Q.length;g&&Ge>g.reach&&(g.reach=Ge);var ae=P.prev;We&&(ae=b(i,ae,We),L+=We.length),A(i,ae,nt);var ks=new n($,M?o.tokenize(ie,M):ie,Nt,ie);if(P=b(i,ae,ks),fr&&b(i,P,fr),nt>1){var Ve={cause:$+","+k,reach:Ge};m(a,i,c,P.prev,L,Ve),g&&Ve.reach>g.reach&&(g.reach=Ve.reach)}}}}}}function h(){var a={value:null,prev:null,next:null},i={value:null,prev:a,next:null};a.next=i,this.head=a,this.tail=i,this.length=0}function b(a,i,c){var p=i.next,u={value:c,prev:i,next:p};return i.next=u,p.prev=u,a.length++,u}function A(a,i,c){for(var p=i.next,u=0;u<c&&p!==a.tail;u++)p=p.next;i.next=p,p.prev=i,a.length-=u}function x(a){for(var i=[],c=a.head.next;c!==a.tail;)i.push(c.value),c=c.next;return i}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(a){var i=JSON.parse(a.data),c=i.language,p=i.code,u=i.immediateClose;r.postMessage(o.highlight(p,o.languages[c],c)),u&&r.close()},!1)),o;var v=o.util.currentScript();v&&(o.filename=v.src,v.hasAttribute("data-manual")&&(o.manual=!0));function y(){o.manual||o.highlightAll()}if(!o.manual){var w=document.readyState;w==="loading"||w==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return o})(fo);typeof qe<"u"&&qe.exports&&(qe.exports=f);typeof global<"u"&&(global.Prism=f);f.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};f.languages.markup.tag.inside["attr-value"].inside.entity=f.languages.markup.entity;f.languages.markup.doctype.inside["internal-subset"].inside=f.languages.markup;f.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))});Object.defineProperty(f.languages.markup.tag,"addInlined",{value:function(t,e){var s={};s["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:f.languages[e]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};o["language-"+e]={pattern:/[\s\S]+/,inside:f.languages[e]};var n={};n[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o},f.languages.insertBefore("markup","cdata",n)}});Object.defineProperty(f.languages.markup.tag,"addAttribute",{value:function(r,t){f.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:f.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});f.languages.html=f.languages.markup;f.languages.mathml=f.languages.markup;f.languages.svg=f.languages.markup;f.languages.xml=f.languages.extend("markup",{});f.languages.ssml=f.languages.xml;f.languages.atom=f.languages.xml;f.languages.rss=f.languages.xml;(function(r){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var e=r.languages.markup;e&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css"))})(f);f.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};f.languages.javascript=f.languages.extend("clike",{"class-name":[f.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});f.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;f.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:f.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:f.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:f.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:f.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:f.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});f.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:f.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});f.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});f.languages.markup&&(f.languages.markup.tag.addInlined("script","javascript"),f.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));f.languages.js=f.languages.javascript;(function(){if(typeof f>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",t=function(v,y){return"\u2716 Error "+v+" while fetching file: "+y},e="\u2716 Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",n="loading",l="loaded",m="failed",h="pre[data-src]:not(["+o+'="'+l+'"]):not(['+o+'="'+n+'"])';function b(v,y,w){var a=new XMLHttpRequest;a.open("GET",v,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?y(a.responseText):a.status>=400?w(t(a.status,a.statusText)):w(e))},a.send(null)}function A(v){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(y){var w=Number(y[1]),a=y[2],i=y[3];return a?i?[w,Number(i)]:[w,void 0]:[w,w]}}f.hooks.add("before-highlightall",function(v){v.selector+=", "+h}),f.hooks.add("before-sanity-check",function(v){var y=v.element;if(y.matches(h)){v.code="",y.setAttribute(o,n);var w=y.appendChild(document.createElement("CODE"));w.textContent=r;var a=y.getAttribute("data-src"),i=v.language;if(i==="none"){var c=(/\.(\w+)$/.exec(a)||[,"none"])[1];i=s[c]||c}f.util.setLanguage(w,i),f.util.setLanguage(y,i);var p=f.plugins.autoloader;p&&p.loadLanguages(i),b(a,function(u){y.setAttribute(o,l);var g=A(y.getAttribute("data-range"));if(g){var $=u.split(/\r\n?|\n/g),d=g[0],k=g[1]==null?$.length:g[1];d<0&&(d+=$.length),d=Math.max(0,Math.min(d-1,$.length)),k<0&&(k+=$.length),k=Math.max(0,Math.min(k,$.length)),u=$.slice(d,k).join(`
|
|
2
|
-
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(d+1))}
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ar=/'/g,Sr=/"/g,Er=/^(?:script|style|textarea|title)$/i,rr=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),C=rr(1),Z=rr(2),xo=rr(3),rt=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),kr=new WeakMap,ft=mt.createTreeWalker(mt,129);function Cr(r,t){if(!er(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return xr!==void 0?xr.createHTML(t):t}var Tr=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",l=Wt;for(let m=0;m<e;m++){let h=r[m],b,A,x=-1,v=0;for(;v<h.length&&(l.lastIndex=v,A=l.exec(h),A!==null);)v=l.lastIndex,l===Wt?A[1]==="!--"?l=wr:A[1]!==void 0?l=$r:A[2]!==void 0?(Er.test(A[2])&&(o=RegExp("</"+A[2],"g")),l=dt):A[3]!==void 0&&(l=dt):l===dt?A[0]===">"?(l=o??Wt,x=-1):A[1]===void 0?x=-2:(x=l.lastIndex-A[2].length,b=A[1],l=A[3]===void 0?dt:A[3]==='"'?Sr:Ar):l===Sr||l===Ar?l=dt:l===wr||l===$r?l=Wt:(l=dt,o=void 0);let y=l===dt&&r[m+1].startsWith("/>")?" ":"";n+=l===Wt?h+Bs:x>=0?(s.push(b),h.slice(0,x)+Qe+h.slice(x)+et+y):h+et+(x===-2?m:y)}return[Cr(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Zt=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,l=0,m=t.length-1,h=this.parts,[b,A]=Tr(t,e);if(this.el=r.createElement(b,s),ft.currentNode=this.el.content,e===2||e===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(o=ft.nextNode())!==null&&h.length<m;){if(o.nodeType===1){if(o.hasAttributes())for(let x of o.getAttributeNames())if(x.endsWith(Qe)){let v=A[l++],y=o.getAttribute(x).split(et),w=/([.?@])?(.*)/.exec(v);h.push({type:1,index:n,name:w[2],strings:y,ctor:w[1]==="."?fe:w[1]==="?"?me:w[1]==="@"?ge:bt}),o.removeAttribute(x)}else x.startsWith(et)&&(h.push({type:6,index:n}),o.removeAttribute(x));if(Er.test(o.tagName)){let x=o.textContent.split(et),v=x.length-1;if(v>0){o.textContent=he?he.emptyScript:"";for(let y=0;y<v;y++)o.append(x[y],Gt()),ft.nextNode(),h.push({type:2,index:++n});o.append(x[v],Gt())}}}else if(o.nodeType===8)if(o.data===tr)h.push({type:2,index:n});else{let x=-1;for(;(x=o.data.indexOf(et,x+1))!==-1;)h.push({type:7,index:n}),x+=et.length-1}n++}}static createElement(t,e){let s=mt.createElement("template");return s.innerHTML=t,s}};function gt(r,t,e=r,s){if(t===rt)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=Vt(t)?void 0:t._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(r),o._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=gt(r,o._$AS(r,t.values),o,s)),t}var de=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??mt).importNode(e,!0);ft.currentNode=o;let n=ft.nextNode(),l=0,m=0,h=s[0];for(;h!==void 0;){if(l===h.index){let b;h.type===2?b=new _t(n,n.nextSibling,this,t):h.type===1?b=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(b=new be(n,this,t)),this._$AV.push(b),h=s[++m]}l!==h?.index&&(n=ft.nextNode(),l++)}return ft.currentNode=mt,o}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},_t=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,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=gt(this,t,e),Vt(t)?t===R||t==null||t===""?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==rt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_r(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==R&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(mt.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Zt.createElement(Cr(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new de(o,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=kr.get(t.strings);return e===void 0&&kr.set(t.strings,e=new Zt(t)),e}k(t){er(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let n of t)o===e.length?e.push(s=new r(this.O(Gt()),this.O(Gt()),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){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=vr(t).nextSibling;vr(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,n){this.type=1,this._$AH=R,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=R}_$AI(t,e=this,s,o){let n=this.strings,l=!1;if(n===void 0)t=gt(this,t,e,0),l=!Vt(t)||t!==this._$AH&&t!==rt,l&&(this._$AH=t);else{let m=t,h,b;for(t=n[0],h=0;h<n.length-1;h++)b=gt(this,m[s+h],e,h),b===rt&&(b=this._$AH[h]),l||=!Vt(b)||b!==this._$AH[h],b===R?t=R:t!==R&&(t+=(b??"")+n[h+1]),this._$AH[h]=b}l&&!o&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fe=class extends bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}},me=class extends bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==R)}},ge=class extends bt{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=gt(this,t,e,0)??R)===rt)return;let s=this._$AH,o=t===R&&s!==R||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==R&&(s===R||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},be=class{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){gt(this,t)}},Fr={M:Qe,P:et,A:tr,C:1,L:Tr,R:de,D:_r,V:gt,I:_t,H:bt,N:me,U:ge,B:fe,F:be},Is=Ye.litHtmlPolyfillSupport;Is?.(Zt,_t),(Ye.litHtmlVersions??=[]).push("3.3.2");var q=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new _t(t.insertBefore(Gt(),n),n,void 0,e??{})}return o._$AI(r),o};var sr=globalThis,Et=class extends tt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=q(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return rt}};Et._$litElement$=!0,Et.finalized=!0,sr.litElementHydrateSupport?.({LitElement:Et});var Ws=sr.litElementPolyfillSupport;Ws?.({LitElement:Et});(sr.litElementVersions??=[]).push("4.2.2");var X={string:(r,t)=>r.getAttribute(t)??void 0,number:(r,t)=>{let e=r.getAttribute(t);return e===null||!e?void 0:Number(e)},boolean:(r,t)=>r.getAttribute(t)!==null},H={string:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e),!0),number:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e.toString()),!0),boolean:(r,t,e)=>(e?r.setAttribute(t,""):r.removeAttribute(t),!0),any:(r,t,e)=>{e==null?r.removeAttribute(t):typeof e=="string"?r.setAttribute(t,e):typeof e=="number"?r.setAttribute(t,e.toString()):typeof e=="boolean"?e===!0?r.setAttribute(t,""):r.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof e}"`)},entries:(r,t)=>{for(let[e,s]of t)H.any(r,e,s)},record:(r,t)=>H.entries(r,Object.entries(t))};function Or(r,t={}){let e=document.createElement(r);return H.record(e,t),e}function Mr(r){let t=document.createDocumentFragment();return q(r,t),t.firstElementChild}function ye(r,t){let e=[];for(let[s,o]of Object.entries(t))if(typeof o=="function")r.addEventListener(s,o),e.push(()=>r.removeEventListener(s,o));else{let[n,l]=o;r.addEventListener(s,l,n),e.push(()=>r.removeEventListener(s,l))}return()=>e.forEach(s=>s())}function Rr(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var ve=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>X.string(this.element,e),set:(t,e,s)=>H.string(this.element,e,s)});numbers=new Proxy({},{get:(t,e)=>X.number(this.element,e),set:(t,e,s)=>H.number(this.element,e,s)});booleans=new Proxy({},{get:(t,e)=>X.boolean(this.element,e),set:(t,e,s)=>H.boolean(this.element,e,s)})};var zr=(r,t,e={})=>new Proxy(t,{get:(s,o)=>{switch(t[o]){case String:return X.string(r,o);case Number:return X.number(r,o);case Boolean:return X.boolean(r,o);default:throw new Error(`invalid attribute type for "${o}"`)}},set:(s,o,n)=>{try{switch(e.beforeSet?.(o),t[o]){case String:return H.string(r,o,n);case Number:return H.number(r,o,n);case Boolean:return H.boolean(r,o,n);default:throw new Error(`invalid attribute type for "${o}"`)}}finally{e.afterSet?.(o)}}});function Ct(r){let t=new ve(r);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>Rr(r,e),spec:(e,s={})=>zr(r,e,s)}}Ct.get=X;Ct.set=H;function Pr(r){return new or(r)}var or=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,e=!0){return this.#t.set(t,e),this}attrs(t){for(let[e,s]of Object.entries(t))this.attr(e,s);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return H.entries(t,this.#t),t.append(...this.#e),t}};function Tt(r,t=document){let e=t.querySelector(r);if(!e)throw new Error(`element not found (${r})`);return e}function xe(r,t=document){return t.querySelector(r)}function we(r,t=document){return Array.from(t.querySelectorAll(r))}var $e=class r{element;#t;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?Tt(t,this.element):t)}require(t){return Tt(t,this.element)}maybe(t){return xe(t,this.element)}all(t){return we(t,this.element)}render(...t){return q(t,this.element)}get attrs(){return this.#t??=Ct(this.element)}events(t){return ye(this.element,t)}};function jr(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function Lr(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,n]of Object.entries(r)){let l=jr(o),m=customElements.get(l);e&&m||(customElements.define(l,n),s&&document.querySelectorAll(l).forEach(h=>{h.constructor===HTMLElement&&customElements.upgrade(h)}))}}function T(r,t=document){return Tt(r,t)}T.in=(r,t=document)=>new $e(t).in(r);T.require=Tt;T.maybe=xe;T.all=we;T.el=Or;T.elmer=Pr;T.mk=Mr;T.events=ye;T.attrs=Ct;T.register=Lr;T.render=(r,...t)=>q(t,r);function Hr(r,t){let e,s,o=[];function n(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return n(),((...l)=>{e=l,s&&clearTimeout(s);let m=new Promise((h,b)=>{o.push({resolve:h,reject:b})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(h=>{for(let{resolve:b}of o)b(h);n()}).catch(h=>{for(let{reject:b}of o)b(h);n()})},r),m})}function yt(){let r,t,e=new Promise((o,n)=>{r=o,t=n});function s(o){return o.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:s}}function Ft(r){let t=null;return((...e)=>(t?t.params=e:(t={params:e,deferred:yt()},queueMicrotask(()=>{let{params:s,deferred:o}=t;t=null,Promise.resolve(r(...s)).then(o.resolve).catch(o.reject)})),t.deferred.promise))}var st={};Ms(st,{clone:()=>Xt,equal:()=>Gs,freeze:()=>Vs});function Xt(r,t=new Set){if(t.has(r))throw new Error("cannot clone circular reference");let e;return typeof r=="function"||r!==null&&typeof r=="object"?(t.add(r),Array.isArray(r)?e=r.map(s=>Xt(s,new Set(t))):r.constructor===Object?e=Object.fromEntries(Object.entries(r).map(([s,o])=>[s,Xt(o,new Set(t))])):r instanceof Map?e=new Map(Array.from(r,([s,o])=>[s,Xt(o,new Set(t))])):r instanceof Set?e=new Set(Array.from(r,s=>Xt(s,new Set(t)))):r instanceof Date?e=new Date(r.getTime()):e=r,t.delete(r)):e=r,e}var Jt=Object.freeze({happy:r=>r!=null,sad:r=>r==null,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});var Gs=(r,t)=>{function e(s,o,n){if(!Jt.object(s)||!Jt.object(o))return s===o;if(n.includes(s))throw new Error("forbidden circularity detected in deep equal comparison");let l=[...n,s];if(s instanceof Map&&o instanceof Map){if(s.size!==o.size)return!1;for(let[m,h]of s)if(!o.has(m)||!e(h,o.get(m),l))return!1}else if(s instanceof Set&&o instanceof Set){if(s.size!==o.size)return!1;for(let m of s)if(!Array.from(o).some(h=>e(m,h,l)))return!1}else{let m=Object.keys(s),h=Object.keys(o);if(m.length!==h.length)return!1;for(let b of m)if(!h.includes(b)||!e(s[b],o[b],l))return!1}return!0}return e(r,t,[])};function Vs(r){function t(e,s){if(!Jt.object(e)||s.includes(e))return e;let o=[...s,e];if(e instanceof Map)for(let n of e.entries())for(let l of n)t(l,o);else if(e instanceof Set)for(let n of e)t(n,o);else if(Array.isArray(e))for(let n of e)t(n,o);else for(let n of Object.values(e))t(n,o);return Object.freeze(e)}return t(r,[])}var Ae=class r extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,s){if(t.has(e))return t.get(e);{let o=s();return t.set(e,o),o}}array(){return[...this]}require(t){return r.require(this,t)}guarantee(t,e){return r.guarantee(this,t,e)}};function Dr(r){let t,e=!1,s=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await r(s),!e&&(t=setTimeout(o,0)))};return o(),s}var Se=class{getRefill;#t=[];constructor(t){this.getRefill=t,this.#e()}get currentStock(){return[...this.#t]}#e(){if(this.#t.length===0&&(this.#t=[...this.getRefill()]),this.#t.length===0)throw new Error("dispenser's getRefill returned an empty array")}takeAll(){let t=this.#t;return this.#t=[...this.getRefill()],t}takeRandom(){this.#e();let t=Math.floor(Math.random()*this.#t.length),[e]=this.#t.splice(t,1);return e}takeFirst(){return this.#e(),this.#t.shift()}takeLast(){return this.#e(),this.#t.pop()}shift=this.takeFirst.bind(this);pop=this.takeLast.bind(this)};var Nr=(r=0)=>new Promise(t=>setTimeout(t,r));function Zs(){let r=new Set;async function t(...h){await Promise.all([...r].map(b=>b(...h)))}function e(h){return r.add(h),()=>{r.delete(h)}}async function s(...h){return t(...h)}function o(h){return e(h)}async function n(h){let{promise:b,resolve:A}=yt(),x=o(async(...v)=>{h&&await h(...v),A(v),x()});return b}function l(){r.clear()}let m={pub:s,sub:o,publish:t,subscribe:e,on:e,next:n,clear:l};return Object.assign(o,m),Object.assign(s,m),m}function at(r){let t=Zs();return r&&t.sub(r),t.sub}function lt(r,...t){let e=r.length-1;return r.slice(0,e).reduce((s,o,n)=>s+o+t[n],"")+r[e]}function qr(r){let t=r.split(/\r|\n/),e;for(let o of t)if(!/^\s+$/.test(o)){let l=o.match(/^(\t+).+/);if(l){let m=l[1].length;if(e=e===void 0||m<e?m:e,e===0)break}}let s=new RegExp(`^\\t{${e}}`);return t.map(o=>/^\s+$/.test(o)?"":o).map(o=>o.replace(s,"")).join(`
|
|
5
|
-
`)}var
|
|
1
|
+
var Lo=Object.create;var tr=Object.defineProperty;var Do=Object.getOwnPropertyDescriptor;var Ho=Object.getOwnPropertyNames;var No=Object.getPrototypeOf,qo=Object.prototype.hasOwnProperty;var Uo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bo=(e,t)=>{for(var r in t)tr(e,r,{get:t[r],enumerable:!0})},Io=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ho(t))!qo.call(e,s)&&s!==r&&tr(e,s,{get:()=>t[s],enumerable:!(o=Do(t,s))||o.enumerable});return e};var Wo=(e,t,r)=>(r=e!=null?Lo(No(e)):{},Io(t||!e||!e.__esModule?tr(r,"default",{value:e,enumerable:!0}):r,e));var bo=Uo((Bd,Ve)=>{var Fs=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var f=(function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,o={},s={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function a(i){return i instanceof n?new n(i.type,a(i.content),i.alias):Array.isArray(i)?i.map(a):i.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(a){return Object.prototype.toString.call(a).slice(8,-1)},objId:function(a){return a.__id||Object.defineProperty(a,"__id",{value:++r}),a.__id},clone:function a(i,c){c=c||{};var p,u;switch(s.util.type(i)){case"Object":if(u=s.util.objId(i),c[u])return c[u];p={},c[u]=p;for(var g in i)i.hasOwnProperty(g)&&(p[g]=a(i[g],c));return p;case"Array":return u=s.util.objId(i),c[u]?c[u]:(p=[],c[u]=p,i.forEach(function(A,d){p[d]=a(A,c)}),p);default:return i}},getLanguage:function(a){for(;a;){var i=t.exec(a.className);if(i)return i[1].toLowerCase();a=a.parentElement}return"none"},setLanguage:function(a,i){a.className=a.className.replace(RegExp(t,"gi"),""),a.classList.add("language-"+i)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(p){var a=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.stack)||[])[1];if(a){var i=document.getElementsByTagName("script");for(var c in i)if(i[c].src==a)return i[c]}return null}},isActive:function(a,i,c){for(var p="no-"+i;a;){var u=a.classList;if(u.contains(i))return!0;if(u.contains(p))return!1;a=a.parentElement}return!!c}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(a,i){var c=s.util.clone(s.languages[a]);for(var p in i)c[p]=i[p];return c},insertBefore:function(a,i,c,p){p=p||s.languages;var u=p[a],g={};for(var A in u)if(u.hasOwnProperty(A)){if(A==i)for(var d in c)c.hasOwnProperty(d)&&(g[d]=c[d]);c.hasOwnProperty(A)||(g[A]=u[A])}var k=p[a];return p[a]=g,s.languages.DFS(s.languages,function(C,z){z===k&&C!=a&&(this[C]=g)}),g},DFS:function a(i,c,p,u){u=u||{};var g=s.util.objId;for(var A in i)if(i.hasOwnProperty(A)){c.call(i,A,i[A],p||A);var d=i[A],k=s.util.type(d);k==="Object"&&!u[g(d)]?(u[g(d)]=!0,a(d,c,null,u)):k==="Array"&&!u[g(d)]&&(u[g(d)]=!0,a(d,c,A,u))}}},plugins:{},highlightAll:function(a,i){s.highlightAllUnder(document,a,i)},highlightAllUnder:function(a,i,c){var p={callback:c,container:a,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),s.hooks.run("before-all-elements-highlight",p);for(var u=0,g;g=p.elements[u++];)s.highlightElement(g,i===!0,p.callback)},highlightElement:function(a,i,c){var p=s.util.getLanguage(a),u=s.languages[p];s.util.setLanguage(a,p);var g=a.parentElement;g&&g.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(g,p);var A=a.textContent,d={element:a,language:p,grammar:u,code:A};function k(z){d.highlightedCode=z,s.hooks.run("before-insert",d),d.element.innerHTML=d.highlightedCode,s.hooks.run("after-highlight",d),s.hooks.run("complete",d),c&&c.call(d.element)}if(s.hooks.run("before-sanity-check",d),g=d.element.parentElement,g&&g.nodeName.toLowerCase()==="pre"&&!g.hasAttribute("tabindex")&&g.setAttribute("tabindex","0"),!d.code){s.hooks.run("complete",d),c&&c.call(d.element);return}if(s.hooks.run("before-highlight",d),!d.grammar){k(s.util.encode(d.code));return}if(i&&e.Worker){var C=new Worker(s.filename);C.onmessage=function(z){k(z.data)},C.postMessage(JSON.stringify({language:d.language,code:d.code,immediateClose:!0}))}else k(s.highlight(d.code,d.grammar,d.language))},highlight:function(a,i,c){var p={code:a,grammar:i,language:c};if(s.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=s.tokenize(p.code,p.grammar),s.hooks.run("after-tokenize",p),n.stringify(s.util.encode(p.tokens),p.language)},tokenize:function(a,i){var c=i.rest;if(c){for(var p in c)i[p]=c[p];delete i.rest}var u=new h;return b(u,u.head,a),m(a,u,i,u.head,0),x(u)},hooks:{all:{},add:function(a,i){var c=s.hooks.all;c[a]=c[a]||[],c[a].push(i)},run:function(a,i){var c=s.hooks.all[a];if(!(!c||!c.length))for(var p=0,u;u=c[p++];)u(i)}},Token:n};e.Prism=s;function n(a,i,c,p){this.type=a,this.content=i,this.alias=c,this.length=(p||"").length|0}n.stringify=function a(i,c){if(typeof i=="string")return i;if(Array.isArray(i)){var p="";return i.forEach(function(k){p+=a(k,c)}),p}var u={type:i.type,content:a(i.content,c),tag:"span",classes:["token",i.type],attributes:{},language:c},g=i.alias;g&&(Array.isArray(g)?Array.prototype.push.apply(u.classes,g):u.classes.push(g)),s.hooks.run("wrap",u);var A="";for(var d in u.attributes)A+=" "+d+'="'+(u.attributes[d]||"").replace(/"/g,""")+'"';return"<"+u.tag+' class="'+u.classes.join(" ")+'"'+A+">"+u.content+"</"+u.tag+">"};function l(a,i,c,p){a.lastIndex=i;var u=a.exec(c);if(u&&p&&u[1]){var g=u[1].length;u.index+=g,u[0]=u[0].slice(g)}return u}function m(a,i,c,p,u,g){for(var A in c)if(!(!c.hasOwnProperty(A)||!c[A])){var d=c[A];d=Array.isArray(d)?d:[d];for(var k=0;k<d.length;++k){if(g&&g.cause==A+","+k)return;var C=d[k],z=C.inside,Ct=!!C.lookbehind,Tt=!!C.greedy,Wt=C.alias;if(Tt&&!C.pattern.global){var ce=C.pattern.toString().match(/[imsuy]*$/)[0];C.pattern=RegExp(C.pattern.source,ce+"g")}for(var ue=C.pattern||C,L=p.next,D=u;L!==i.tail&&!(g&&D>=g.reach);D+=L.value.length,L=L.next){var st=L.value;if(i.length>a.length)return;if(!(st instanceof n)){var ht=1,W;if(Tt){if(W=l(ue,D,a,Ct),!W||W.index>=a.length)break;var pe=W.index,Po=W.index+W[0].length,dt=D;for(dt+=L.value.length;pe>=dt;)L=L.next,dt+=L.value.length;if(dt-=L.value.length,D=dt,L.value instanceof n)continue;for(var Gt=L;Gt!==i.tail&&(dt<Po||typeof Gt.value=="string");Gt=Gt.next)ht++,dt+=Gt.value.length;ht--,st=a.slice(D,dt),W.index-=D}else if(W=l(ue,0,st,Ct),!W)continue;var pe=W.index,he=W[0],Ke=st.slice(0,pe),vr=st.slice(pe+he.length),Ye=D+st.length;g&&Ye>g.reach&&(g.reach=Ye);var de=L.prev;Ke&&(de=b(i,de,Ke),D+=Ke.length),S(i,de,ht);var jo=new n(A,z?s.tokenize(he,z):he,Wt,he);if(L=b(i,de,jo),vr&&b(i,L,vr),ht>1){var Qe={cause:A+","+k,reach:Ye};m(a,i,c,L.prev,D,Qe),g&&Qe.reach>g.reach&&(g.reach=Qe.reach)}}}}}}function h(){var a={value:null,prev:null,next:null},i={value:null,prev:a,next:null};a.next=i,this.head=a,this.tail=i,this.length=0}function b(a,i,c){var p=i.next,u={value:c,prev:i,next:p};return i.next=u,p.prev=u,a.length++,u}function S(a,i,c){for(var p=i.next,u=0;u<c&&p!==a.tail;u++)p=p.next;i.next=p,p.prev=i,a.length-=u}function x(a){for(var i=[],c=a.head.next;c!==a.tail;)i.push(c.value),c=c.next;return i}if(!e.document)return e.addEventListener&&(s.disableWorkerMessageHandler||e.addEventListener("message",function(a){var i=JSON.parse(a.data),c=i.language,p=i.code,u=i.immediateClose;e.postMessage(s.highlight(p,s.languages[c],c)),u&&e.close()},!1)),s;var v=s.util.currentScript();v&&(s.filename=v.src,v.hasAttribute("data-manual")&&(s.manual=!0));function y(){s.manual||s.highlightAll()}if(!s.manual){var $=document.readyState;$==="loading"||$==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return s})(Fs);typeof Ve<"u"&&Ve.exports&&(Ve.exports=f);typeof global<"u"&&(global.Prism=f);f.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};f.languages.markup.tag.inside["attr-value"].inside.entity=f.languages.markup.entity;f.languages.markup.doctype.inside["internal-subset"].inside=f.languages.markup;f.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))});Object.defineProperty(f.languages.markup.tag,"addInlined",{value:function(t,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:f.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};s["language-"+r]={pattern:/[\s\S]+/,inside:f.languages[r]};var n={};n[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:s},f.languages.insertBefore("markup","cdata",n)}});Object.defineProperty(f.languages.markup.tag,"addAttribute",{value:function(e,t){f.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:f.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});f.languages.html=f.languages.markup;f.languages.mathml=f.languages.markup;f.languages.svg=f.languages.markup;f.languages.xml=f.languages.extend("markup",{});f.languages.ssml=f.languages.xml;f.languages.atom=f.languages.xml;f.languages.rss=f.languages.xml;(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(f);f.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};f.languages.javascript=f.languages.extend("clike",{"class-name":[f.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});f.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;f.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:f.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:f.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:f.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:f.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:f.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});f.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:f.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});f.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});f.languages.markup&&(f.languages.markup.tag.addInlined("script","javascript"),f.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));f.languages.js=f.languages.javascript;(function(){if(typeof f>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e="Loading\u2026",t=function(v,y){return"\u2716 Error "+v+" while fetching file: "+y},r="\u2716 Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",n="loading",l="loaded",m="failed",h="pre[data-src]:not(["+s+'="'+l+'"]):not(['+s+'="'+n+'"])';function b(v,y,$){var a=new XMLHttpRequest;a.open("GET",v,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?y(a.responseText):a.status>=400?$(t(a.status,a.statusText)):$(r))},a.send(null)}function S(v){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(y){var $=Number(y[1]),a=y[2],i=y[3];return a?i?[$,Number(i)]:[$,void 0]:[$,$]}}f.hooks.add("before-highlightall",function(v){v.selector+=", "+h}),f.hooks.add("before-sanity-check",function(v){var y=v.element;if(y.matches(h)){v.code="",y.setAttribute(s,n);var $=y.appendChild(document.createElement("CODE"));$.textContent=e;var a=y.getAttribute("data-src"),i=v.language;if(i==="none"){var c=(/\.(\w+)$/.exec(a)||[,"none"])[1];i=o[c]||c}f.util.setLanguage($,i),f.util.setLanguage(y,i);var p=f.plugins.autoloader;p&&p.loadLanguages(i),b(a,function(u){y.setAttribute(s,l);var g=S(y.getAttribute("data-range"));if(g){var A=u.split(/\r\n?|\n/g),d=g[0],k=g[1]==null?A.length:g[1];d<0&&(d+=A.length),d=Math.max(0,Math.min(d-1,A.length)),k<0&&(k+=A.length),k=Math.max(0,Math.min(k,A.length)),u=A.slice(d,k).join(`
|
|
2
|
+
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(d+1))}$.textContent=u,f.highlightElement($)},function(u){y.setAttribute(s,m),$.textContent=u})}}),f.plugins.fileHighlight={highlight:function(y){for(var $=(y||document).querySelectorAll(h),a=0,i;i=$[a++];)f.highlightElement(i)}};var x=!1;f.fileHighlight=function(){x||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),x=!0),f.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var fe=globalThis,me=fe.ShadowRoot&&(fe.ShadyCSS===void 0||fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,er=Symbol(),xr=new WeakMap,Vt=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==er)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(me&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=xr.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&xr.set(r,t))}return t}toString(){return this.cssText}},Zt=e=>new Vt(typeof e=="string"?e:e+"",void 0,er),w=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((o,s,n)=>o+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[n+1],e[0]);return new Vt(r,e,er)},ge=(e,t)=>{if(me)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let o=document.createElement("style"),s=fe.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=r.cssText,e.appendChild(o)}},Ft=me?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return Zt(r)})(e):e;var{is:Go,defineProperty:Vo,getOwnPropertyDescriptor:Zo,getOwnPropertyNames:Xo,getOwnPropertySymbols:Jo,getPrototypeOf:Ko}=Object,be=globalThis,wr=be.trustedTypes,Yo=wr?wr.emptyScript:"",Qo=be.reactiveElementPolyfillSupport,Xt=(e,t)=>e,rr={toAttribute(e,t){switch(t){case Boolean:e=e?Yo:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ar=(e,t)=>!Go(e,t),$r={attribute:!0,type:String,converter:rr,reflect:!1,useDefault:!1,hasChanged:Ar};Symbol.metadata??=Symbol("metadata"),be.litPropertyMetadata??=new WeakMap;var nt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=$r){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let o=Symbol(),s=this.getPropertyDescriptor(t,o,r);s!==void 0&&Vo(this.prototype,t,s)}}static getPropertyDescriptor(t,r,o){let{get:s,set:n}=Zo(this.prototype,t)??{get(){return this[r]},set(l){this[r]=l}};return{get:s,set(l){let m=s?.call(this);n?.call(this,l),this.requestUpdate(t,m,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$r}static _$Ei(){if(this.hasOwnProperty(Xt("elementProperties")))return;let t=Ko(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Xt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Xt("properties"))){let r=this.properties,o=[...Xo(r),...Jo(r)];for(let s of o)this.createProperty(s,r[s])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[o,s]of r)this.elementProperties.set(o,s)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let s=this._$Eu(r,o);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let s of o)r.unshift(Ft(s))}else t!==void 0&&r.push(Ft(t));return r}static _$Eu(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ge(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,o){this._$AK(t,o)}_$ET(t,r){let o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(s!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:rr).toAttribute(r,o.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,r){let o=this.constructor,s=o._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let n=o.getPropertyOptions(s),l=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:rr;this._$Em=s;let m=l.fromAttribute(r,n.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(t,r,o,s=!1,n){if(t!==void 0){let l=this.constructor;if(s===!1&&(n=this[t]),o??=l.getPropertyOptions(t),!((o.hasChanged??Ar)(n,r)||o.useDefault&&o.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(l._$Eu(t,o))))return;this.C(t,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:o,reflect:s,wrapped:n},l){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,l??r??this[t]),n!==!0||l!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(r=void 0),this._$AL.set(t,r)),s===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[s,n]of o){let{wrapped:l}=n,m=this[s];l!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,n,m)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};nt.elementStyles=[],nt.shadowRootOptions={mode:"open"},nt[Xt("elementProperties")]=new Map,nt[Xt("finalized")]=new Map,Qo?.({ReactiveElement:nt}),(be.reactiveElementVersions??=[]).push("2.1.2");var sr=globalThis,Sr=e=>e,ye=sr.trustedTypes,kr=ye?ye.createPolicy("lit-html",{createHTML:e=>e}):void 0,nr="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,ir="?"+it,ts=`<${ir}>`,$t=document,Kt=()=>$t.createComment(""),Yt=e=>e===null||typeof e!="object"&&typeof e!="function",ar=Array.isArray,Or=e=>ar(e)||typeof e?.[Symbol.iterator]=="function",or=`[
|
|
3
|
+
\f\r]`,Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_r=/-->/g,Er=/>/g,xt=RegExp(`>|${or}(?:([^\\s"'>=/]+)(${or}*=${or}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Cr=/'/g,Tr=/"/g,Rr=/^(?:script|style|textarea|title)$/i,lr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),E=lr(1),Z=lr(2),js=lr(3),at=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),Fr=new WeakMap,wt=$t.createTreeWalker($t,129);function zr(e,t){if(!ar(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return kr!==void 0?kr.createHTML(t):t}var Mr=(e,t)=>{let r=e.length-1,o=[],s,n=t===2?"<svg>":t===3?"<math>":"",l=Jt;for(let m=0;m<r;m++){let h=e[m],b,S,x=-1,v=0;for(;v<h.length&&(l.lastIndex=v,S=l.exec(h),S!==null);)v=l.lastIndex,l===Jt?S[1]==="!--"?l=_r:S[1]!==void 0?l=Er:S[2]!==void 0?(Rr.test(S[2])&&(s=RegExp("</"+S[2],"g")),l=xt):S[3]!==void 0&&(l=xt):l===xt?S[0]===">"?(l=s??Jt,x=-1):S[1]===void 0?x=-2:(x=l.lastIndex-S[2].length,b=S[1],l=S[3]===void 0?xt:S[3]==='"'?Tr:Cr):l===Tr||l===Cr?l=xt:l===_r||l===Er?l=Jt:(l=xt,s=void 0);let y=l===xt&&e[m+1].startsWith("/>")?" ":"";n+=l===Jt?h+ts:x>=0?(o.push(b),h.slice(0,x)+nr+h.slice(x)+it+y):h+it+(x===-2?m:y)}return[zr(e,n+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},Qt=class e{constructor({strings:t,_$litType$:r},o){let s;this.parts=[];let n=0,l=0,m=t.length-1,h=this.parts,[b,S]=Mr(t,r);if(this.el=e.createElement(b,o),wt.currentNode=this.el.content,r===2||r===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(s=wt.nextNode())!==null&&h.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let x of s.getAttributeNames())if(x.endsWith(nr)){let v=S[l++],y=s.getAttribute(x).split(it),$=/([.?@])?(.*)/.exec(v);h.push({type:1,index:n,name:$[2],strings:y,ctor:$[1]==="."?xe:$[1]==="?"?we:$[1]==="@"?$e:St}),s.removeAttribute(x)}else x.startsWith(it)&&(h.push({type:6,index:n}),s.removeAttribute(x));if(Rr.test(s.tagName)){let x=s.textContent.split(it),v=x.length-1;if(v>0){s.textContent=ye?ye.emptyScript:"";for(let y=0;y<v;y++)s.append(x[y],Kt()),wt.nextNode(),h.push({type:2,index:++n});s.append(x[v],Kt())}}}else if(s.nodeType===8)if(s.data===ir)h.push({type:2,index:n});else{let x=-1;for(;(x=s.data.indexOf(it,x+1))!==-1;)h.push({type:7,index:n}),x+=it.length-1}n++}}static createElement(t,r){let o=$t.createElement("template");return o.innerHTML=t,o}};function At(e,t,r=e,o){if(t===at)return t;let s=o!==void 0?r._$Co?.[o]:r._$Cl,n=Yt(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,o)),o!==void 0?(r._$Co??=[])[o]=s:r._$Cl=s),s!==void 0&&(t=At(e,s._$AS(e,t.values),s,o)),t}var ve=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:o}=this._$AD,s=(t?.creationScope??$t).importNode(r,!0);wt.currentNode=s;let n=wt.nextNode(),l=0,m=0,h=o[0];for(;h!==void 0;){if(l===h.index){let b;h.type===2?b=new Ot(n,n.nextSibling,this,t):h.type===1?b=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(b=new Ae(n,this,t)),this._$AV.push(b),h=o[++m]}l!==h?.index&&(n=wt.nextNode(),l++)}return wt.currentNode=$t,s}p(t){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,r),r+=o.strings.length-2):o._$AI(t[r])),r++}},Ot=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,o,s){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=At(this,t,r),Yt(t)?t===M||t==null||t===""?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==at&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Or(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==M&&Yt(this._$AH)?this._$AA.nextSibling.data=t:this.T($t.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:o}=t,s=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Qt.createElement(zr(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new ve(s,this),l=n.u(this.options);n.p(r),this.T(l),this._$AH=n}}_$AC(t){let r=Fr.get(t.strings);return r===void 0&&Fr.set(t.strings,r=new Qt(t)),r}k(t){ar(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,s=0;for(let n of t)s===r.length?r.push(o=new e(this.O(Kt()),this.O(Kt()),this,this.options)):o=r[s],o._$AI(n),s++;s<r.length&&(this._$AR(o&&o._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let o=Sr(t).nextSibling;Sr(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},St=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,o,s,n){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=M}_$AI(t,r=this,o,s){let n=this.strings,l=!1;if(n===void 0)t=At(this,t,r,0),l=!Yt(t)||t!==this._$AH&&t!==at,l&&(this._$AH=t);else{let m=t,h,b;for(t=n[0],h=0;h<n.length-1;h++)b=At(this,m[o+h],r,h),b===at&&(b=this._$AH[h]),l||=!Yt(b)||b!==this._$AH[h],b===M?t=M:t!==M&&(t+=(b??"")+n[h+1]),this._$AH[h]=b}l&&!s&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},xe=class extends St{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}},we=class extends St{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==M)}},$e=class extends St{constructor(t,r,o,s,n){super(t,r,o,s,n),this.type=5}_$AI(t,r=this){if((t=At(this,t,r,0)??M)===at)return;let o=this._$AH,s=t===M&&o!==M||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==M&&(o===M||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ae=class{constructor(t,r,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){At(this,t)}},Pr={M:nr,P:it,A:ir,C:1,L:Mr,R:ve,D:Or,V:At,I:Ot,H:St,N:we,U:$e,B:xe,F:Ae},es=sr.litHtmlPolyfillSupport;es?.(Qt,Ot),(sr.litHtmlVersions??=[]).push("3.3.2");var N=(e,t,r)=>{let o=r?.renderBefore??t,s=o._$litPart$;if(s===void 0){let n=r?.renderBefore??null;o._$litPart$=s=new Ot(t.insertBefore(Kt(),n),n,void 0,r??{})}return s._$AI(e),s};var cr=globalThis,Rt=class extends nt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=N(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return at}};Rt._$litElement$=!0,Rt.finalized=!0,cr.litElementHydrateSupport?.({LitElement:Rt});var rs=cr.litElementPolyfillSupport;rs?.({LitElement:Rt});(cr.litElementVersions??=[]).push("4.2.2");var X={string:(e,t)=>e.getAttribute(t)??void 0,number:(e,t)=>{let r=e.getAttribute(t);return r===null||!r?void 0:Number(r)},boolean:(e,t)=>e.getAttribute(t)!==null},q={string:(e,t,r)=>(r===void 0?e.removeAttribute(t):e.setAttribute(t,r),!0),number:(e,t,r)=>(r===void 0?e.removeAttribute(t):e.setAttribute(t,r.toString()),!0),boolean:(e,t,r)=>(r?e.setAttribute(t,""):e.removeAttribute(t),!0),any:(e,t,r)=>{r==null?e.removeAttribute(t):typeof r=="string"?e.setAttribute(t,r):typeof r=="number"?e.setAttribute(t,r.toString()):typeof r=="boolean"?r===!0?e.setAttribute(t,""):e.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof r}"`)},entries:(e,t)=>{for(let[r,o]of t)q.any(e,r,o)},record:(e,t)=>q.entries(e,Object.entries(t))};function jr(e,t={}){let r=document.createElement(e);return q.record(r,t),r}function Lr(e){let t=document.createDocumentFragment();return N(e,t),t.firstElementChild}function Se(e,t){let r=[];for(let[o,s]of Object.entries(t))if(typeof s=="function")e.addEventListener(o,s),r.push(()=>e.removeEventListener(o,s));else{let[n,l]=s;e.addEventListener(o,l,n),r.push(()=>e.removeEventListener(o,l))}return()=>r.forEach(o=>o())}function Dr(e,t){let r=new MutationObserver(t);return r.observe(e,{attributes:!0}),()=>r.disconnect()}var ke=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,r)=>X.string(this.element,r),set:(t,r,o)=>q.string(this.element,r,o)});numbers=new Proxy({},{get:(t,r)=>X.number(this.element,r),set:(t,r,o)=>q.number(this.element,r,o)});booleans=new Proxy({},{get:(t,r)=>X.boolean(this.element,r),set:(t,r,o)=>q.boolean(this.element,r,o)})};var Hr=(e,t,r={})=>new Proxy(t,{get:(o,s)=>{switch(t[s]){case String:return X.string(e,s);case Number:return X.number(e,s);case Boolean:return X.boolean(e,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(o,s,n)=>{try{switch(r.beforeSet?.(s),t[s]){case String:return q.string(e,s,n);case Number:return q.number(e,s,n);case Boolean:return q.boolean(e,s,n);default:throw new Error(`invalid attribute type for "${s}"`)}}finally{r.afterSet?.(s)}}});function zt(e){let t=new ke(e);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:r=>Dr(e,r),spec:(r,o={})=>Hr(e,r,o)}}zt.get=X;zt.set=q;function Nr(e){return new ur(e)}var ur=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,r=!0){return this.#t.set(t,r),this}attrs(t){for(let[r,o]of Object.entries(t))this.attr(r,o);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return q.entries(t,this.#t),t.append(...this.#e),t}};function Mt(e,t=document){let r=t.querySelector(e);if(!r)throw new Error(`element not found (${e})`);return r}function _e(e,t=document){return t.querySelector(e)}function Ee(e,t=document){return Array.from(t.querySelectorAll(e))}var Ce=class e{element;#t;constructor(t){this.element=t}in(t){return new e(typeof t=="string"?Mt(t,this.element):t)}require(t){return Mt(t,this.element)}maybe(t){return _e(t,this.element)}all(t){return Ee(t,this.element)}render(...t){return N(t,this.element)}get attrs(){return this.#t??=zt(this.element)}events(t){return Se(this.element,t)}};function qr(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function Ur(e,t={}){let{soft:r=!1,upgrade:o=!0}=t;for(let[s,n]of Object.entries(e)){let l=qr(s),m=customElements.get(l);r&&m||(customElements.define(l,n),o&&document.querySelectorAll(l).forEach(h=>{h.constructor===HTMLElement&&customElements.upgrade(h)}))}}function F(e,t=document){return Mt(e,t)}F.in=(e,t=document)=>new Ce(t).in(e);F.require=Mt;F.maybe=_e;F.all=Ee;F.el=jr;F.elmer=Nr;F.mk=Lr;F.events=Se;F.attrs=zt;F.register=Ur;F.render=(e,...t)=>N(t,e);function Br(e,t){let r,o,s=[];function n(){r=[],o&&clearTimeout(o),o=void 0,s=[]}return n(),((...l)=>{r=l,o&&clearTimeout(o);let m=new Promise((h,b)=>{s.push({resolve:h,reject:b})});return o=setTimeout(()=>{Promise.resolve().then(()=>t(...r)).then(h=>{for(let{resolve:b}of s)b(h);n()}).catch(h=>{for(let{reject:b}of s)b(h);n()})},e),m})}function kt(){let e,t,r=new Promise((s,n)=>{e=s,t=n});function o(s){return s.then(e).catch(t),r}return{promise:r,resolve:e,reject:t,entangle:o}}function Pt(e){let t=null;return((...r)=>(t?t.params=r:(t={params:r,deferred:kt()},queueMicrotask(()=>{let{params:o,deferred:s}=t;t=null,Promise.resolve(e(...o)).then(s.resolve).catch(s.reject)})),t.deferred.promise))}var J={};Bo(J,{clone:()=>te,equal:()=>os,freeze:()=>ss});function te(e,t=new Set){if(t.has(e))throw new Error("cannot clone circular reference");let r;return typeof e=="function"||e!==null&&typeof e=="object"?(t.add(e),Array.isArray(e)?r=e.map(o=>te(o,new Set(t))):e.constructor===Object?r=Object.fromEntries(Object.entries(e).map(([o,s])=>[o,te(s,new Set(t))])):e instanceof Map?r=new Map(Array.from(e,([o,s])=>[o,te(s,new Set(t))])):e instanceof Set?r=new Set(Array.from(e,o=>te(o,new Set(t)))):e instanceof Date?r=new Date(e.getTime()):r=e,t.delete(e)):r=e,r}var ee=Object.freeze({happy:e=>e!=null,sad:e=>e==null,boolean:e=>typeof e=="boolean",number:e=>typeof e=="number",string:e=>typeof e=="string",bigint:e=>typeof e=="bigint",object:e=>typeof e=="object"&&e!==null,array:e=>Array.isArray(e),fn:e=>typeof e=="function",symbol:e=>typeof e=="symbol"});var os=(e,t)=>{function r(o,s,n){if(!ee.object(o)||!ee.object(s))return o===s;if(n.includes(o))throw new Error("forbidden circularity detected in deep equal comparison");let l=[...n,o];if(o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(let[m,h]of o)if(!s.has(m)||!r(h,s.get(m),l))return!1}else if(o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(let m of o)if(!Array.from(s).some(h=>r(m,h,l)))return!1}else{let m=Object.keys(o),h=Object.keys(s);if(m.length!==h.length)return!1;for(let b of m)if(!h.includes(b)||!r(o[b],s[b],l))return!1}return!0}return r(e,t,[])};function ss(e){function t(r,o){if(!ee.object(r)||o.includes(r))return r;let s=[...o,r];if(r instanceof Map)for(let n of r.entries())for(let l of n)t(l,s);else if(r instanceof Set)for(let n of r)t(n,s);else if(Array.isArray(r))for(let n of r)t(n,s);else for(let n of Object.values(r))t(n,s);return Object.freeze(r)}return t(e,[])}function Ir(e){if(e.ok)return e.value;let{error:t}=e;throw t instanceof Error?t:typeof t=="string"?new Error(t):new Error("unknown")}function Wr(e){if(e.ok)throw new Error("didn't get needed error");return e.error}var Te=class e extends Map{static require(t,r){if(t.has(r))return t.get(r);throw new Error(`required key not found: "${r}"`)}static guarantee(t,r,o){if(t.has(r))return t.get(r);{let s=o();return t.set(r,s),s}}array(){return[...this]}require(t){return e.require(this,t)}guarantee(t,r){return e.guarantee(this,t,r)}};function Fe(e){let t,r=!1,o=()=>{r=!0,clearTimeout(t)},s=async()=>{r||(await e(o),!r&&(t=setTimeout(s,0)))};return s(),o}var Oe=class{getRefill;#t=[];constructor(t){this.getRefill=t,this.#e()}get currentStock(){return[...this.#t]}#e(){if(this.#t.length===0&&(this.#t=[...this.getRefill()]),this.#t.length===0)throw new Error("dispenser's getRefill returned an empty array")}takeAll(){let t=this.#t;return this.#t=[...this.getRefill()],t}takeRandom(){this.#e();let t=Math.floor(Math.random()*this.#t.length),[r]=this.#t.splice(t,1);return r}takeFirst(){return this.#e(),this.#t.shift()}takeLast(){return this.#e(),this.#t.pop()}shift=this.takeFirst.bind(this);pop=this.takeLast.bind(this)};var Re=(e=0)=>new Promise(t=>setTimeout(t,e));function ns(){let e=new Set;async function t(...h){await Promise.all([...e].map(b=>b(...h)))}function r(h){return e.add(h),()=>{e.delete(h)}}async function o(...h){return t(...h)}function s(h){return r(h)}async function n(h){let{promise:b,resolve:S}=kt(),x=s(async(...v)=>{h&&await h(...v),S(v),x()});return b}function l(){e.clear()}let m={pub:o,sub:s,publish:t,subscribe:r,on:r,next:n,clear:l};return Object.assign(s,m),Object.assign(o,m),m}function lt(e){let t=ns();return e&&t.sub(e),t.sub}function ft(e,...t){let r=e.length-1;return e.slice(0,r).reduce((o,s,n)=>o+s+t[n],"")+e[r]}function Gr(e){let t=e.split(/\r|\n/),r;for(let s of t)if(!/^\s+$/.test(s)){let l=s.match(/^(\t+).+/);if(l){let m=l[1].length;if(r=r===void 0||m<r?m:r,r===0)break}}let o=new RegExp(`^\\t{${r}}`);return t.map(s=>/^\s+$/.test(s)?"":s).map(s=>s.replace(o,"")).join(`
|
|
5
|
+
`)}function Vr(e){return J.freeze(J.clone(e))}var pr=class{#t=[];#e=new WeakMap;#r=[];#o=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#o.has(t))throw new Error("circularity forbidden");let r=this.#s(t).pub();return this.#r.at(-1)?.add(r),r}observe(t){this.#t.push(new Set);let r=t();return{seen:this.#t.pop(),result:r}}subscribe(t,r){return this.#s(t)(async()=>{let o=new Set;this.#r.push(o),this.#o.add(t),o.add(r()),this.#o.delete(t),await Promise.all(o),this.#r.pop()})}#s(t){let r=this.#e.get(t);return r||(r=lt(),this.#e.set(t,r)),r}},O=globalThis[Symbol.for("e280.tracker")]??=new pr;var K=Symbol("optic");var re=class{calculate;#t=!1;#e;constructor(t){this.calculate=t,this.#e=t()}get(){return this.#t&&(this.#t=!1,this.#e=this.calculate()),this.#e}invalidate(){this.#t=!0}};var ze=class e{on=lt();onFrozen=lt();[K];#t;#e;#r;#o=Pt(()=>{this.on.publish(this.state),this.onFrozen.publish(this.frozen)});constructor(t){this[K]=t,this.#t=J.clone(t.getState()),this.#e=new re(()=>J.clone(t.getState())),this.#r=new re(()=>Vr(t.getState()))}async update(){let t=this[K].getState();!J.equal(t,this.#t)&&(this.#e.invalidate(),this.#r.invalidate(),this.#t=J.clone(t),this.#o(),await O.notifyWrite(this))}get state(){return O.notifyRead(this),this.#e.get()}get frozen(){return O.notifyRead(this),this.#r.get()}async mutate(t){return this[K].mutate(t)}lens(t){let r=new e({getState:()=>t(this[K].getState()),mutate:o=>this[K].mutate(s=>o(t(s))),registerLens:this[K].registerLens});return this[K].registerLens(r),r}};var Me=class e{sneak;on;dispose;constructor(t,r){if(new.target!==e)throw new Error("Derived cannot be subclassed");return jt(t,r)}get value(){return this.get()}get(){return O.notifyRead(this),this.sneak}toString(){return`(derived "${String(this.get())}")`}};function Pe(e,t){let r=[],o=()=>{for(let l of r)l();r=[]},s=()=>{let{seen:l,result:m}=O.observe(e);for(let h of l)r.push(O.subscribe(h,n));return m},n=Pt(()=>{o(),t?t(s()):s()});return{result:s(),dispose:o}}function Lt(e,t){return Object.is(e,t)}function jt(e,t){function r(){return r.get()}let o=t?.compare??Lt;Object.setPrototypeOf(r,Me.prototype),r.on=lt();let{result:s,dispose:n}=Pe(e,async l=>{!o(r.sneak,l)&&(r.sneak=l,await Promise.all([O.notifyWrite(r),r.on.pub(l)]))});return r.sneak=s,r.dispose=n,r}var _t=Symbol(),mt=Symbol(),gt=Symbol(),je=Symbol(),Y=Symbol(),oe=Symbol(),ct=Symbol();var Le=class e{sneak;[oe];[mt];[ct];[gt];[Y];constructor(t,r){if(new.target!==e)throw new Error("Lazy cannot be subclassed");return De(t,r)}get value(){return this.get()}[je](){for(let s of this[ct])s();this[ct]=[];let{seen:t,result:r}=O.observe(this[oe]),o=async()=>{this[mt]=!0};for(let s of t)this[ct].push(O.subscribe(s,o));return this[gt]=()=>{for(let s of this[ct])s();this[ct]=[]},r}get(){if(!this[gt])this.sneak=this[je](),this[mt]=!1;else if(this[mt]){this[mt]=!1;let t=this[je]();!this[Y](this.sneak,t)&&(this.sneak=t,O.notifyWrite(this))}return O.notifyRead(this),this.sneak}dispose(){this[gt]&&this[gt]()}toString(){return`($lazy "${String(this.get())}")`}};function De(e,t){function r(){return r.get()}return Object.setPrototypeOf(r,Le.prototype),r.sneak=void 0,r[oe]=e,r[mt]=!1,r[gt]=void 0,r[ct]=[],r[Y]=t?.compare??Lt,r}var He=class e{sneak;on;[_t];[Y];constructor(t,r){if(new.target!==e)throw new Error("Signal cannot be subclassed");return H(t,r)}get value(){return this.get()}set value(t){this.set(t)}get(){return O.notifyRead(this),this.sneak}async set(t,r=!1){let o=this.sneak;return this.sneak=t,(r||!this[Y](o,t))&&await this.publish(),t}async publish(){if(this[_t])throw new Error("forbid circularity");let t=this.sneak,r=Promise.resolve();try{this[_t]=!0,r=Promise.all([O.notifyWrite(this),this.on.pub(t)])}finally{this[_t]=!1}return await r,t}toString(){return`($signal "${String(this.get())}")`}};function H(e,t){function r(o){let s=r;return arguments.length===0?s.get():s.set(arguments[0])}return Object.setPrototypeOf(r,He.prototype),r.sneak=e,r.on=lt(),r[_t]=!1,r[Y]=t?.compare??Lt,r}H.derived=jt;H.lazy=De;function Zr(e){if(!e.done)throw new Error("wait not done");return Ir(e)}function Xr(e){if(!e.done)throw new Error("wait not done");return Wr(e)}var Jr=e=>!e.done;var Kr=e=>e.done&&e.ok;function Yr(e,t){return Jr(e)?t.pending():Kr(e)?t.ok(Zr(e)):t.err(Xr(e))}var bt=w`
|
|
6
6
|
* {
|
|
7
7
|
margin: 0;
|
|
8
8
|
padding: 0;
|
|
@@ -16,18 +16,29 @@ var _s=Object.create;var Ze=Object.defineProperty;var Es=Object.getOwnPropertyDe
|
|
|
16
16
|
::-webkit-scrollbar-track { background: transparent; }
|
|
17
17
|
::-webkit-scrollbar-thumb { background: #888; border-radius: 1em; }
|
|
18
18
|
::-webkit-scrollbar-thumb:hover { background: #999; }
|
|
19
|
-
`;var
|
|
19
|
+
`;var Ne=class e extends HTMLElement{static register(){F.register({SlyShadow:e},{soft:!0})}connectedCallback(){this.hasAttribute("view")||this.setAttribute("view","")}};var qe=class{render;count=0;rendered=kt();constructor(t){this.render=t}doneRender(){this.count++,this.rendered.resolve(),this.rendered=kt()}},Et=class extends qe{host;shadow;constructor(t,r,o){super(t),this.host=r,this.shadow=o}};var hr=class{#t=[];get scope(){let t=this.#t.at(-1);if(!t)throw new Error("hooks must be called within a render fn");return t}increment(){let t=this.scope,r=t.position++;return{scope:t,position:r}}wrap(t,r){t.position=0,this.#t.push(t);try{return r()}finally{this.#t.pop()}}},Q=globalThis[Symbol.for("e280.hooks")]??=new hr;var Dt=class{#t=[];clear(){this.#t.forEach(t=>t()),this.#t=[]}observe(t,r){let{seen:o,result:s}=O.observe(t);this.clear();for(let n of o){let l=O.subscribe(n,r);this.#t.push(l)}return s}};function T(e){let{scope:t,position:r}=Q.increment();return t.values.guarantee(r,e)}function ut(e){let{scope:t}=Q.increment();return T(()=>t.mounts.mount(e))}var Ue=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};var Ht=class{cx;position=0;values=new Te;mounts=new Ue;constructor(t){this.cx=t}};var{I:cc}=Pr;var Qr=e=>e.strings===void 0;var Be={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},qt=e=>(...t)=>({_$litDirective$:e,values:t}),Nt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,o){this._$Ct=t,this._$AM=r,this._$Ci=o}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var se=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(t,!1),se(o,t);return!0},Ie=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},to=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),hs(t)}};function us(e){this._$AN!==void 0?(Ie(this),this._$AM=e,to(this)):this._$AM=e}function ps(e,t=!1,r=0){let o=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(o))for(let n=r;n<o.length;n++)se(o[n],!1),Ie(o[n]);else o!=null&&(se(o,!1),Ie(o));else se(this,e)}var hs=e=>{e.type==Be.CHILD&&(e._$AP??=ps,e._$AQ??=us)},ne=class extends Nt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,o){super._$AT(t,r,o),to(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(se(this,t),Ie(this))}setValue(t){if(Qr(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};function We(e){return T(()=>new dr(e))}var dr=class{current;constructor(t){this.current=t}};function fr(){let{scope:e}=Q.increment();return e.cx}function eo(){let e=fr();if(!(e instanceof Et))throw new Error("this hook only works on shadow views (but was called in a light view)");return e}function mr(){return fr().render}function ro(){return fr().rendered.promise}function yt(){return eo().host}function oo(){return eo().shadow}function Ge(e){let t=yt(),r=mr(),o=We(new Set);return ut(()=>F.attrs(t).on(s=>{for(let n of s)if(!o.current.has(n.attributeName)){r();break}})),ro().then(()=>o.current.clear()),T(()=>F.attrs(t).spec(e,{beforeSet:s=>o.current.add(s)}))}function so(e,t){ge(e,ds(t))}function ds(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(Ft(o))}else e!==void 0&&t.push(Ft(e));return t}function I(...e){let t=oo();T(()=>so(t,e))}var tt=I;function j(e=""){let t=yt();T(()=>t.setAttribute("view",e))}function pt(e){return T(()=>H(e))}function no(e,t){for(let[r,o]of Object.entries(t))ms(e,r,o)}function ms(e,t,r){let o=e.getAttribute(t),s=gs(r);s!==o&&(s===null?e.removeAttribute(t):e.setAttribute(t,s))}function gs(e){return typeof e=="string"?e:typeof e=="number"?e.toString():e?"":null}function bs(){Ne.register();let e=document.createElement("sly-shadow"),t=e.attachShadow({mode:"open"});return{host:e,shadow:t}}function R(e){return io(bs,e)}R.setup=e=>(t=>io(e,t));function io(e,t){let r=qt(class extends ne{#t;#e;#r;#o=new Dt;constructor(s){super(s);let{host:n,shadow:l}=e(),m=Pt(()=>{if(!this.#r)throw new Error("cannot render before props");if(!this.isConnected)return;let h=this.#s(this.#r);N(h,this.#t.shadow),this.#t.doneRender()});this.#t=new Et(m,n,l),this.#e=new Ht(this.#t)}#s(s){return this.#r=s,this.#o.observe(()=>Q.wrap(this.#e,()=>t(...this.#r)),this.#t.render)}render({props:s,children:n,attrs:l}){let{host:m}=this.#t;return this.isConnected&&(l&&no(m,l),N(n,this.#t.host),N(this.#s(s),this.#t.shadow),this.#t.doneRender()),m}disconnected(){N(null,this.#t.shadow),N(null,this.#t.host),this.#e.mounts.unmountAll(),this.#o.clear()}reconnected(){this.#e.mounts.remountAll(),this.#t.render()}});function o(...s){return r({props:s})}return o.with=r,o}function et(e,t){return()=>ys({hz:e,frames:t})}var ys=R(({hz:e,frames:t})=>{j("loading"),tt(bt,vs);let r=pt(0);return ut(()=>Fe(async()=>{await Re(1e3/e);let o=r.get()+1;r.set(o>=t.length?0:o)})),t.at(r.get())}),vs=w`
|
|
20
20
|
:host {
|
|
21
21
|
font-family: monospace;
|
|
22
22
|
white-space: pre;
|
|
23
23
|
user-select: none;
|
|
24
24
|
}
|
|
25
|
-
`;var
|
|
25
|
+
`;var rt=R(e=>(j("error"),tt(bt,xs),typeof e=="string"?e:e instanceof Error?E`<strong>${e.name}:</strong> <span>${e.message}</span>`:"error")),xs=w`
|
|
26
26
|
:host {
|
|
27
27
|
font-family: monospace;
|
|
28
28
|
color: red;
|
|
29
29
|
}
|
|
30
|
-
`;var
|
|
30
|
+
`;function ot(e,t){return(r,o)=>Yr(r,{pending:e,err:t,ok:o})}var yp=ot(et(10,[" "," ",". ",".. ","..."," .."," ."]),rt);var Ap=ot(et(3,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),rt);var Cp=ot(et(10,["\u{1F312}","\u{1F313}","\u{1F314}","\u{1F315}","\u{1F316}","\u{1F317}","\u{1F318}","\u{1F311}","\u{1F311}","\u{1F311}"]),rt);var zp=ot(et(16,["|","/","-","\\"]),rt);var Dp=ot(et(20,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),rt);function _(e,t){return()=>ws({hz:e,frames:t})}var ws=R(({hz:e,frames:t})=>{j("loading"),tt(bt,$s);let r=pt(0);return ut(()=>Fe(async()=>{await Re(1e3/e);let o=r.get()+1;r.set(o>=t.length?0:o)})),t.at(r.get())}),$s=w`
|
|
31
|
+
:host {
|
|
32
|
+
font-family: monospace;
|
|
33
|
+
white-space: pre;
|
|
34
|
+
user-select: none;
|
|
35
|
+
}
|
|
36
|
+
`;var P=20,Ut=10,Bt=4,eh=_(P,["|","/","-","\\"]),rh=_(P,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),oh=_(P,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),sh=_(P,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),nh=_(P,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),ih=_(P,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),ah=_(P,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),lh=_(P,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),ch=_(P,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),uh=_(Bt,["\u{1F6B6}","\u{1F3C3}"]),ph=_(Ut,["\u25F7","\u25F6","\u25F5","\u25F4"]),hh=_(P,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),dh=_(P,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),fh=_(Ut,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),mh=_(Ut,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),gh=_(Ut,[" "," ",". ",".. ","..."," .."," ."]),bh=_(P,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),yh=_(P,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),vh=_(P,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),xh=_(P,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),wh=_(P,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),$h=_(P,["000","100","110","111","011","001"]),Ah=_(P,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),Sh=_(P,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),kh=_(Bt,["\u{1F539}","\u{1F535}"]),_h=_(Ut,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),Eh=_(P,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),Ch=_(P,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),As=_(Bt,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),Th=_(Bt,["\u{1F513}","\u{1F512}"]),Fh=_(Bt,["\u{1F505}","\u{1F506}"]),Oh=_(Bt,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),Rh=_(Ut,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var ks=R(e=>(j("error"),tt(bt,_s),typeof e=="string"?e:e instanceof Error?E`<strong>${e.name}:</strong> <span>${e.message}</span>`:"error")),_s=w`
|
|
37
|
+
:host {
|
|
38
|
+
font-family: monospace;
|
|
39
|
+
color: red;
|
|
40
|
+
}
|
|
41
|
+
`;var ao=w`@layer view {
|
|
31
42
|
|
|
32
43
|
button {
|
|
33
44
|
background: transparent;
|
|
@@ -74,7 +85,7 @@ svg {
|
|
|
74
85
|
height: 1em;
|
|
75
86
|
}
|
|
76
87
|
|
|
77
|
-
}`;var
|
|
88
|
+
}`;var gr=Z`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-clipboard"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /></svg>`;var lo=Z`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-clipboard-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17.997 4.17a3 3 0 0 1 2.003 2.83v12a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 2.003 -2.83a4 4 0 0 0 3.997 3.83h4a4 4 0 0 0 3.98 -3.597zm-7.29 7.123a1 1 0 0 0 -1.414 0l-.083 .094a1 1 0 0 0 .083 1.32l1.292 1.293l-1.292 1.293a1 1 0 0 0 0 1.414l.094 .083a1 1 0 0 0 1.32 -.083l1.293 -1.293l1.293 1.293a1 1 0 0 0 1.414 0l.083 -.094a1 1 0 0 0 -.083 -1.32l-1.293 -1.293l1.293 -1.293a1 1 0 0 0 0 -1.414l-.094 -.083a1 1 0 0 0 -1.32 .083l-1.293 1.292zm3.293 -9.293a2 2 0 1 1 0 4h-4a2 2 0 1 1 0 -4z" /></svg>`;var co=Z`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-clipboard-check"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17.997 4.17a3 3 0 0 1 2.003 2.83v12a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 2.003 -2.83a4 4 0 0 0 3.997 3.83h4a4 4 0 0 0 3.98 -3.597zm-3.704 7.123l-3.293 3.292l-1.293 -1.292a1 1 0 1 0 -1.414 1.414l2 2a1 1 0 0 0 1.414 0l4 -4a1 1 0 0 0 -1.414 -1.414m-.293 -9.293a2 2 0 1 1 0 4h-4a2 2 0 1 1 0 -4z" /></svg>`;function br(e){return e===void 0?"invalid":"neutral"}function uo(e,t){let r=pt(br(e)),o=T(()=>Br(t,()=>r.set(br(e)))),s=T(()=>async n=>{await r.set(n),await o()});return{reset:o,flash:s,status:r()}}var po=ft`@layer core {
|
|
78
89
|
|
|
79
90
|
::selection {
|
|
80
91
|
color: var(--selection);
|
|
@@ -104,14 +115,14 @@ a {
|
|
|
104
115
|
}
|
|
105
116
|
}
|
|
106
117
|
|
|
107
|
-
}`;var
|
|
118
|
+
}`;var ho=ft`@layer vars {
|
|
108
119
|
|
|
109
120
|
:is(:root, :host) {
|
|
110
|
-
${
|
|
121
|
+
${Ts({bg:"#111",alpha:"#def",rounded:"0.5em",padding:"0.5em",prime:"#d068ff",code:"#3f1",link:"cyan",selection:"white","selection-bg":"#f70",lame:"#8888",angry:"#f50",zesty:"#cf0",happy:"#0fa",calm:"#0af",sad:"#74f",quirky:"#f49","inactive-opacity":"0.5","anim-duration":"150ms"})}
|
|
111
122
|
}
|
|
112
123
|
|
|
113
|
-
}`;function
|
|
114
|
-
`)}var
|
|
124
|
+
}`;function Cs([e,t]){return`--${e}: var(--shiny-${e}, ${t});`}function Ts(e){return Object.entries(e).map(Cs).join(`
|
|
125
|
+
`)}var fo=ft`@layer reset {
|
|
115
126
|
|
|
116
127
|
* {
|
|
117
128
|
margin: 0;
|
|
@@ -127,22 +138,22 @@ a {
|
|
|
127
138
|
::-webkit-scrollbar-thumb { background: #888; border-radius: 1em; }
|
|
128
139
|
::-webkit-scrollbar-thumb:hover { background: #999; }
|
|
129
140
|
|
|
130
|
-
}`;var
|
|
141
|
+
}`;var mo=ft`
|
|
131
142
|
|
|
132
143
|
@layer vars, reset, core, underlay, view, overlay;
|
|
133
144
|
|
|
134
|
-
${
|
|
135
|
-
${
|
|
136
|
-
${
|
|
145
|
+
${ho}
|
|
146
|
+
${fo}
|
|
147
|
+
${po}
|
|
137
148
|
|
|
138
|
-
`;var
|
|
139
|
-
<button data-status="${
|
|
149
|
+
`;var U=new CSSStyleSheet;U.replaceSync(mo);var ie=R((e,t={})=>{j("shiny-copy"),I(U,ao);let r=uo(e,t.ms??1e3);async function o(){if(e!==void 0)try{if(t.fail)throw new Error("copy failed on purpose for testing purposes");await navigator.clipboard.writeText(e),await r.flash("good")}catch(s){console.error(s),await r.flash("bad")}}return E`
|
|
150
|
+
<button data-status="${r.status}" @click="${o}" part=button>
|
|
140
151
|
<span part=icon>
|
|
141
|
-
${(()=>{switch(
|
|
152
|
+
${(()=>{switch(r.status){case"neutral":return gr;case"invalid":return gr;case"good":return co;case"bad":return lo;default:throw new Error("unknown copy status")}})()}
|
|
142
153
|
</span>
|
|
143
154
|
<slot></slot>
|
|
144
155
|
</button>
|
|
145
|
-
`});var G=
|
|
156
|
+
`});var G=e=>e;var go=w`@layer view {
|
|
146
157
|
|
|
147
158
|
section.showcase {
|
|
148
159
|
position: relative;
|
|
@@ -218,7 +229,7 @@ header {
|
|
|
218
229
|
border-radius: var(--rounded);
|
|
219
230
|
}
|
|
220
231
|
|
|
221
|
-
}`;var
|
|
232
|
+
}`;var Ze=Wo(bo(),1);(function(e){var t=e.languages.javascript["template-string"],r=t.pattern.source,o=t.inside.interpolation,s=o.inside["interpolation-punctuation"],n=o.pattern.source;function l(y,$){if(e.languages[y])return{pattern:RegExp("((?:"+$+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:y}}}}e.languages.javascript["template-string"]=[l("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),l("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),l("svg",/\bsvg/.source),l("markdown",/\b(?:markdown|md)/.source),l("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),l("sql",/\bsql/.source),t].filter(Boolean);function m(y,$){return"___"+$.toUpperCase()+"_"+y+"___"}function h(y,$,a){var i={code:y,grammar:$,language:a};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(i.code,i.grammar),e.hooks.run("after-tokenize",i),i.tokens}function b(y){var $={};$["interpolation-punctuation"]=s;var a=e.tokenize(y,$);if(a.length===3){var i=[1,1];i.push.apply(i,h(a[1],e.languages.javascript,"javascript")),a.splice.apply(a,i)}return new e.Token("interpolation",a,o.alias,y)}function S(y,$,a){var i=e.tokenize(y,{interpolation:{pattern:RegExp(n),lookbehind:!0}}),c=0,p={},u=i.map(function(k){if(typeof k=="string")return k;for(var C=k.content,z;y.indexOf(z=m(c++,a))!==-1;);return p[z]=C,z}).join(""),g=h(u,$,a),A=Object.keys(p);c=0;function d(k){for(var C=0;C<k.length;C++){if(c>=A.length)return;var z=k[C];if(typeof z=="string"||typeof z.content=="string"){var Ct=A[c],Tt=typeof z=="string"?z:z.content,Wt=Tt.indexOf(Ct);if(Wt!==-1){++c;var ce=Tt.substring(0,Wt),ue=b(p[Ct]),L=Tt.substring(Wt+Ct.length),D=[];if(ce&&D.push(ce),D.push(ue),L){var st=[L];d(st),D.push.apply(D,st)}typeof z=="string"?(k.splice.apply(k,[C,1].concat(D)),C+=D.length-1):z.content=D}}else{var ht=z.content;Array.isArray(ht)?d(ht):d([ht])}}}return d(g),new e.Token(a,g,"language-"+a,y)}var x={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};e.hooks.add("after-tokenize",function(y){if(!(y.language in x))return;function $(a){for(var i=0,c=a.length;i<c;i++){var p=a[i];if(typeof p!="string"){var u=p.content;if(!Array.isArray(u)){typeof u!="string"&&$([u]);continue}if(p.type==="template-string"){var g=u[1];if(u.length===3&&typeof g!="string"&&g.type==="embedded-code"){var A=v(g),d=g.alias,k=Array.isArray(d)?d[0]:d,C=e.languages[k];if(!C)continue;u[1]=S(A,C,k)}}else $(u)}}}$(y.tokens)});function v(y){return typeof y=="string"?y:Array.isArray(y)?y.map(v).join(""):v(y.content)}})(Prism);var yo=w`@layer view {
|
|
222
233
|
|
|
223
234
|
:host {
|
|
224
235
|
display: flex;
|
|
@@ -259,20 +270,20 @@ code {
|
|
|
259
270
|
overflow-x: auto;
|
|
260
271
|
}
|
|
261
272
|
|
|
262
|
-
}`;function
|
|
273
|
+
}`;function vo(){return T(()=>{let e=document.head.querySelector("[data-prism]");if(!e)throw new Error("failed to find [data-prism] stylesheet");let t=new CSSStyleSheet;return t.replaceSync(e.textContent),t})}var ae=class extends Nt{constructor(t){if(super(t),this.it=M,t.type!==Be.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===M||t==null)return this._t=void 0,this.it=t;if(t===at)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};ae.directiveName="unsafeHTML",ae.resultType=1;var xo=qt(ae);var yr=R((e,t,r)=>{let o=vo();I(U,o,yo),r=Gr(r).trim();let s=Ze.default.highlight(r,t==="js"?Ze.default.languages.javascript:Ze.default.languages.css,t);return E`
|
|
263
274
|
<div class=box>
|
|
264
275
|
<header>
|
|
265
|
-
<h3 class=title>${
|
|
266
|
-
<div class=buttons>${
|
|
276
|
+
<h3 class=title>${e}</h3>
|
|
277
|
+
<div class=buttons>${ie(r)}</div>
|
|
267
278
|
</header>
|
|
268
279
|
|
|
269
|
-
<code>${
|
|
280
|
+
<code>${xo(s)}</code>
|
|
270
281
|
</div>
|
|
271
|
-
`});var
|
|
272
|
-
<style>${
|
|
273
|
-
<style>${
|
|
274
|
-
${
|
|
275
|
-
`));var
|
|
282
|
+
`});var wo=R((e,t,r)=>(j("stylebox"),I(U,e,t),E`
|
|
283
|
+
<style>${Zt(e)}</style>
|
|
284
|
+
<style>${Zt(t)}</style>
|
|
285
|
+
${r}
|
|
286
|
+
`));var $o=w`@layer view {
|
|
276
287
|
|
|
277
288
|
:host {
|
|
278
289
|
display: inline-flex;
|
|
@@ -314,10 +325,10 @@ slot[part="tabs"][data-snug] {
|
|
|
314
325
|
}
|
|
315
326
|
}
|
|
316
327
|
|
|
317
|
-
} `;var
|
|
318
|
-
<slot part=tabs ?data-snug="${
|
|
328
|
+
} `;var It=class{length=1;$index=H(0);constructor(t=0){this.$index.value=t}clamp(t){return t=Math.min(t,this.length-1),t=Math.max(t,0),t}get index(){return this.clamp(this.$index())}async setIndex(t){return this.$index(t)}async shimmy(t){let r=this.clamp(this.index+t);return this.setIndex(r)}};var le=R((e={})=>{j("shiny-tabs"),tt(U,$o);let t=yt(),r=T(()=>F.attrs(t).spec({index:Number})),o=T(()=>e.control??new It(r.index??0)),s=pt([]),n=pt([]);async function l(b){let S=b.currentTarget;await s.set(S.assignedElements())}async function m(b){let S=b.currentTarget;await n.set(S.assignedElements())}r.index=o.$index(),o.length=s().length;function h(b,S){let x=o.clamp(b+S);return x===b?!1:x===o.index}for(let[b,S]of s().entries()){let x=b===o.index,v=F.attrs(S);v.booleans.disabled=x,v.booleans["data-snug"]=e.snug,v.booleans["data-tabbed"]=x,v.booleans["data-first"]=b===0,v.booleans["data-last"]=b===o.length-1,v.booleans["data-next-is-tabbed"]=h(b,1),v.booleans["data-previous-is-tabbed"]=h(b,-1),S.onclick=()=>o.setIndex(b)}for(let[b,S]of n().entries()){let x=b===o.index;F.attrs(S).booleans["data-tabbed"]=x,F.attrs(S).booleans.hidden=!x}return E`
|
|
329
|
+
<slot part=tabs ?data-snug="${e.snug}" @slotchange="${l}"></slot>
|
|
319
330
|
<slot part=panels name=panel @slotchange="${m}"></slot>
|
|
320
|
-
`});var
|
|
331
|
+
`});var Ao=w`@layer view {
|
|
321
332
|
|
|
322
333
|
:host {
|
|
323
334
|
display: inline-flex;
|
|
@@ -423,75 +434,75 @@ button {
|
|
|
423
434
|
border-bottom-left-radius: 0;
|
|
424
435
|
}
|
|
425
436
|
|
|
426
|
-
}`;var
|
|
437
|
+
}`;var B=R((e,t={})=>{j("shiny-button"),I(U,Ao);let r=Ge({hidden:Boolean,disabled:Boolean});return E`
|
|
427
438
|
<button
|
|
428
439
|
part=button
|
|
429
440
|
data-vibe="${t.vibe??"calm"}"
|
|
430
|
-
?disabled="${
|
|
431
|
-
?hidden="${
|
|
441
|
+
?disabled="${r.disabled}"
|
|
442
|
+
?hidden="${r.hidden}"
|
|
432
443
|
@click="${t.onClick}">
|
|
433
|
-
<slot>${
|
|
444
|
+
<slot>${e}</slot>
|
|
434
445
|
</button>
|
|
435
|
-
`});var
|
|
446
|
+
`});var vt=R((e,t)=>{j("showcase"),I(U,go);let r=T(()=>new It),o=t.at(r.index);return E`
|
|
436
447
|
<section class=showcase>
|
|
437
448
|
<header>
|
|
438
|
-
<h2>✨${
|
|
449
|
+
<h2>✨${e}✨</h2>
|
|
439
450
|
<nav>
|
|
440
|
-
${
|
|
451
|
+
${le.with({props:[{control:r,snug:!0}],children:t.map(s=>B(s.name))})}
|
|
441
452
|
</nav>
|
|
442
453
|
</header>
|
|
443
454
|
|
|
444
|
-
${
|
|
445
|
-
<div class=explain>${
|
|
455
|
+
${o&&E`
|
|
456
|
+
<div class=explain>${o.explain}</div>
|
|
446
457
|
|
|
447
458
|
<div class=sides>
|
|
448
459
|
<div class=codezone>
|
|
449
|
-
${
|
|
450
|
-
${
|
|
460
|
+
${yr("lit-html","js",o.js)}
|
|
461
|
+
${o.css&&yr("css","css",o.css.toString())}
|
|
451
462
|
</div>
|
|
452
463
|
|
|
453
464
|
<div class=stage>
|
|
454
|
-
${
|
|
465
|
+
${wo(o.styleboxCss,o.css??w``,o.render())}
|
|
455
466
|
</div>
|
|
456
467
|
</div>
|
|
457
468
|
`}
|
|
458
469
|
</section>
|
|
459
|
-
`});var
|
|
470
|
+
`});var So=()=>vt("ShinyCopy",[G({name:"normal",explain:"click-to-copy button.",render:()=>ie("hello world"),styleboxCss:w`
|
|
460
471
|
:host {
|
|
461
472
|
font-size: 5em;
|
|
462
473
|
}
|
|
463
474
|
`,js:`
|
|
464
475
|
ShinyCopy("hello world")
|
|
465
|
-
`,css:
|
|
476
|
+
`,css:w`
|
|
466
477
|
[view="shiny-copy"] {
|
|
467
478
|
--shiny-happy: #0fa;
|
|
468
479
|
--shiny-angry: #f50;
|
|
469
480
|
--shiny-lame: #8888;
|
|
470
481
|
--shiny-inactive-opacity: 0.5;
|
|
471
482
|
}
|
|
472
|
-
`}),G({name:"fail",explain:
|
|
483
|
+
`}),G({name:"fail",explain:E`
|
|
473
484
|
<p>click-to-copy button. <em>deliberately fails so you can see.</em></p>
|
|
474
|
-
`,render:()=>
|
|
485
|
+
`,render:()=>ie("hello world",{fail:!0}),styleboxCss:w`
|
|
475
486
|
:host {
|
|
476
487
|
font-size: 4em;
|
|
477
488
|
}
|
|
478
489
|
`,js:`
|
|
479
490
|
ShinyCopy("hello world", {fail: true})
|
|
480
|
-
`,css:
|
|
491
|
+
`,css:w`
|
|
481
492
|
[view="shiny-copy"] {
|
|
482
493
|
--shiny-happy: #0fa;
|
|
483
494
|
--shiny-angry: #f50;
|
|
484
495
|
--shiny-lame: #8888;
|
|
485
496
|
--shiny-inactive-opacity: 0.5;
|
|
486
497
|
}
|
|
487
|
-
`})]);var V=new
|
|
488
|
-
${
|
|
489
|
-
${
|
|
490
|
-
${
|
|
498
|
+
`})]);var V=new Oe(()=>["lorem kettlebell dolor sit amet, mountain squats consectetur trail-running. adipiscing deadlift elit, sed do 45lb turkish get-up eiusmod tempor incididunt ut hike magna aliqua. ut enim ad minim clean & press, quis nostrud exercitation lunges ullamco kettlebell snatch trailhead nisi ut aliquip ex dolore summit irure dolor.","lorem protein dolor sit amet, creatine scoop elit shaker bottle tempor. grilled steak magna keto-fasting culpa, carb-loading perspiciatis cheat day. whey isolate dolor sit macros elit, intermittent fasting tempor electrolyte magna; barefoot shoes culpa, liver perspiciatis ancestral squat rack gospel. lorem bulking dolor sit cut elit, tdee tracker tempor calorie deficit magna; chicken breast culpa gatorade perspiciatis meal prep.","lorem caffeine dolor sit amet, double espresso elit cold brew tempor jitter. adderall magna focus culpa, lion\u2019s mane perspiciatis nootropic. nicotine gum dolor sit vape elit, dopamine hit tempor buzz magna; lsd microdosing culpa, productivity perspiciatis agile sprint. lorem latte dolor sit drip elit, french press tempor aeropress magna; insomnia culpa, circadian rhythm perspiciatis blue light filter.","lorem arch dolor sit amet, pacman -Syu elit rolling release tempor breakage. i3-gaps commodo tiling, bspwm magna culpa xinitrc. alias neovim configs in .dotfiles forest, r/unixporn veniam rice showcase perspiciatis.","lorem authlocal dolor sit amet, user-sovereign identity elit, cryptographic tempor signatures. ed25519 magna keypair culpa, elliptic perspiciatis handshake ut zero-knowledge proof. decentralized login elit mnemonic seed tempor recovery phrase. did magna alias culpa federation, lorem oauth2 perspiciatis antiquated.","lorem webgpu dolor sit amet, fragment shader elit vertex buffer tempor pipeline; bindgroup magna sampler culpa, wgsl perspiciatis alignment bug. compute pass workgroup barrier magna, mipmap cascade culpa drawcall instancing overflow. spir-v dolor sit wasm elit, canvas context lost magna; fallback webgl2 perspiciatis, polyfill slowpath dolore, glsl antique culpa extension hell 144hz tearing. command encoder perspiciatis out-of-memory, chromium nightly.","lorem sedentary dolor sit amet, infinite scroll elit chair-bound tempor. commit marathon magna carpal tunnel culpa, caffeine perspiciatis heartbeat irregular. lorem backlog dolor sit ticket elit, jira sprint tempor sedentary slump magna; gym membership culpa expired, standing desk perspiciatis unused. lorem procrastination dolor sit youtube elit, keyboard crumbs tempor pizza box magna; cardio avoidant culpa, hike someday perspiciatis maybe."]);var ko=()=>vt("ShinyTabs",[G({name:"shiny",explain:"a button-bar of mutually-exclusive tabs. panels are optional.",render:()=>le.with({props:[{snug:!0}],children:E`
|
|
499
|
+
${B("alpha")}
|
|
500
|
+
${B("bravo")}
|
|
501
|
+
${B("charlie")}
|
|
491
502
|
<p slot=panel>${V.takeFirst()}</p>
|
|
492
503
|
<p slot=panel>${V.takeFirst()}</p>
|
|
493
504
|
<p slot=panel>${V.takeFirst()}</p>
|
|
494
|
-
`}),styleboxCss:
|
|
505
|
+
`}),styleboxCss:w`
|
|
495
506
|
[view="shiny-button"] { font-size: 1.2em; }
|
|
496
507
|
p { margin-top: var(--padding); }
|
|
497
508
|
`,js:`
|
|
@@ -506,18 +517,18 @@ button {
|
|
|
506
517
|
<p slot=panel>lorem caffeine..</p>
|
|
507
518
|
\`,
|
|
508
519
|
})
|
|
509
|
-
`,css:
|
|
520
|
+
`,css:w`
|
|
510
521
|
[view="shiny-tabs"] {
|
|
511
522
|
--shiny-rounded: 0.5em;
|
|
512
523
|
}
|
|
513
|
-
`}),G({name:"plain",explain:"a button-bar of mutually-exclusive tabs. panels are optional.",render:()=>
|
|
524
|
+
`}),G({name:"plain",explain:"a button-bar of mutually-exclusive tabs. panels are optional.",render:()=>le.with({props:[{snug:!0}],children:E`
|
|
514
525
|
<button>alpha</button>
|
|
515
526
|
<button>bravo</button>
|
|
516
527
|
<button>charlie</button>
|
|
517
528
|
<p slot=panel>${V.takeFirst()}</p>
|
|
518
529
|
<p slot=panel>${V.takeFirst()}</p>
|
|
519
530
|
<p slot=panel>${V.takeFirst()}</p>
|
|
520
|
-
`}),styleboxCss:
|
|
531
|
+
`}),styleboxCss:w`
|
|
521
532
|
p { margin-top: var(--padding); }
|
|
522
533
|
button {
|
|
523
534
|
font-size: 1.5em;
|
|
@@ -535,11 +546,11 @@ button {
|
|
|
535
546
|
<p slot=panel>lorem caffeine..</p>
|
|
536
547
|
\`,
|
|
537
548
|
})
|
|
538
|
-
`,css:
|
|
549
|
+
`,css:w`
|
|
539
550
|
[view="shiny-tabs"] {
|
|
540
551
|
--shiny-rounded: 0.5em;
|
|
541
552
|
}
|
|
542
|
-
`})]);var
|
|
553
|
+
`})]);var _o=()=>vt("ShinyButton",[G({name:"catalog",explain:"click-to-copy button.",render:()=>[B("e280"),B("e280",{vibe:"happy"}),B("e280",{vibe:"sad"}),B("e280",{vibe:"angry"}),B("e280",{vibe:"zesty"}),B("e280",{vibe:"quirky"}),B("e280",{vibe:"lame"})],styleboxCss:w`
|
|
543
554
|
:host {
|
|
544
555
|
font-size: 1.5em;
|
|
545
556
|
display: flex;
|
|
@@ -557,7 +568,7 @@ button {
|
|
|
557
568
|
ShinyButton("e280", {vibe: "quirky"}),
|
|
558
569
|
ShinyButton("e280", {vibe: "lame"}),
|
|
559
570
|
]
|
|
560
|
-
`,css:void 0})]);var
|
|
571
|
+
`,css:void 0})]);var Eo=w`@layer view {
|
|
561
572
|
|
|
562
573
|
:host {
|
|
563
574
|
display: block;
|
|
@@ -681,32 +692,32 @@ button {
|
|
|
681
692
|
}
|
|
682
693
|
}
|
|
683
694
|
|
|
684
|
-
}`;var
|
|
685
|
-
<button part=button @click="${
|
|
686
|
-
${
|
|
695
|
+
}`;var Xe=class{$open=H(!1);constructor(t=!1){t&&this.$open.set(!0)}get isOpen(){return this.$open.get()}async setOpen(t){return this.$open.set(t)}open=async()=>{await this.setOpen(!0)};close=async()=>{await this.setOpen(!1)};toggle=async()=>this.setOpen(!this.isOpen)};var Je=class{#t;constructor(t){this.#t=t.attachInternals().states}assign(...t){this.#t.forEach(r=>this.#t.delete(r));for(let r of t)this.#t.add(r);return this}};var Co=Z`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>`;var To=Z`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-menu-2"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6l16 0" /><path d="M4 12l16 0" /><path d="M4 18l16 0" /></svg>`;var Fo=R((e={})=>{j("shiny-drawer"),I(U,Eo);let t=yt(),r=T(()=>new Je(t)),o=T(()=>e.control??new Xe),s=Ge({side:String,button:Boolean,open:Boolean});s.open=o.isOpen;let n=e.button??s.button,l=e.side??(s.side==="right"?"right":"left");r.assign(l,o.isOpen?"opened":"closed"),ut(()=>F.events(window,{keydown:h=>{h.code==="Escape"&&o.close()}}));function m(){return E`
|
|
696
|
+
<button part=button @click="${o.toggle}">
|
|
697
|
+
${o.isOpen?E`
|
|
687
698
|
<slot name=button-x>
|
|
688
|
-
${
|
|
699
|
+
${Co}
|
|
689
700
|
</slot>
|
|
690
|
-
`:
|
|
701
|
+
`:E`
|
|
691
702
|
<slot name=button>
|
|
692
|
-
${
|
|
703
|
+
${To}
|
|
693
704
|
</slot>
|
|
694
705
|
`}
|
|
695
706
|
</button>
|
|
696
|
-
`}return
|
|
697
|
-
<div class=shell ?data-open="${
|
|
698
|
-
<slot name=plate ?inert="${
|
|
707
|
+
`}return E`
|
|
708
|
+
<div class=shell ?data-open="${o.isOpen}" data-side="${l}">
|
|
709
|
+
<slot name=plate ?inert="${o.isOpen}"></slot>
|
|
699
710
|
|
|
700
711
|
<div class=clipper>
|
|
701
|
-
<div part=blanket @click="${
|
|
712
|
+
<div part=blanket @click="${o.close}" ?inert="${!o.isOpen}"></div>
|
|
702
713
|
|
|
703
714
|
<div part=tray>
|
|
704
|
-
<slot part=slate ?inert="${!
|
|
715
|
+
<slot part=slate ?inert="${!o.isOpen}"></slot>
|
|
705
716
|
${n?m():null}
|
|
706
717
|
</div>
|
|
707
718
|
</div>
|
|
708
719
|
</div>
|
|
709
|
-
`});var
|
|
720
|
+
`});var Oo=w`
|
|
710
721
|
:host {
|
|
711
722
|
font-size: 1em;
|
|
712
723
|
width: 100%;
|
|
@@ -715,7 +726,7 @@ button {
|
|
|
715
726
|
p + p {
|
|
716
727
|
margin-top: var(--padding);
|
|
717
728
|
}
|
|
718
|
-
`,
|
|
729
|
+
`,Ro=w`
|
|
719
730
|
[slot=plate] { padding-top: 2em; }
|
|
720
731
|
[view="shiny-drawer"] {
|
|
721
732
|
--slate-bg: color-mix(in oklch, var(--calm), #444);
|
|
@@ -723,13 +734,13 @@ button {
|
|
|
723
734
|
&:state(left)::part(slate) { border-bottom-right-radius: 0.5em; }
|
|
724
735
|
&:state(right)::part(slate) { border-bottom-left-radius: 0.5em; }
|
|
725
736
|
}
|
|
726
|
-
|
|
737
|
+
`,zo=e=>Fo.with({props:[{button:!0,side:e}],children:E`
|
|
727
738
|
<header>${V.takeFirst()}</header>
|
|
728
739
|
<section slot=plate>
|
|
729
740
|
<p>${V.takeFirst()}</p>
|
|
730
741
|
<p>${V.takeFirst()}</p>
|
|
731
742
|
</section>
|
|
732
|
-
`}),
|
|
743
|
+
`}),Mo=()=>vt("ShinyDrawer",[G({name:"left",explain:"slide-out panel. button optional.",styleboxCss:Oo,css:Ro,render:()=>zo("left"),js:`
|
|
733
744
|
ShinyDrawer.with({
|
|
734
745
|
props: [{button: true, side: "left"}],
|
|
735
746
|
children: html\`
|
|
@@ -740,7 +751,7 @@ button {
|
|
|
740
751
|
</section>
|
|
741
752
|
\`,
|
|
742
753
|
})
|
|
743
|
-
`}),G({name:"right",explain:"slide-out panel. button optional.",styleboxCss:
|
|
754
|
+
`}),G({name:"right",explain:"slide-out panel. button optional.",styleboxCss:Oo,css:Ro,render:()=>zo("right"),js:`
|
|
744
755
|
ShinyDrawer.with({
|
|
745
756
|
props: [{button: true, side: "right"}],
|
|
746
757
|
children: html\`
|
|
@@ -751,7 +762,7 @@ button {
|
|
|
751
762
|
</section>
|
|
752
763
|
\`,
|
|
753
764
|
})
|
|
754
|
-
`})]);
|
|
765
|
+
`})]);F.render(F(".gallery"),[_o(),So(),ko(),Mo()]);console.log("\u2728shiny\u2728");
|
|
755
766
|
/*! Bundled license information:
|
|
756
767
|
|
|
757
768
|
prismjs/prism.js:
|