@e280/shiny 0.1.0-20 → 0.1.0-22
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 +14 -11
- package/s/demo/globals.d.ts +3 -0
- package/s/index.ts +2 -0
- package/s/views/copy/parts/use-copier.ts +2 -2
- package/s/views/drawer/control.ts +3 -3
- package/s/views/tabs/control.ts +1 -1
- package/s/views/tabs/view.ts +4 -4
- package/x/demo/main.bundle.min.js +90 -90
- 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
- package/x/views/copy/parts/use-copier.d.ts +1 -1
- package/x/views/copy/parts/use-copier.js +2 -2
- package/x/views/copy/parts/use-copier.js.map +1 -1
- package/x/views/drawer/control.js +3 -3
- package/x/views/drawer/control.js.map +1 -1
- package/x/views/tabs/control.js +1 -1
- package/x/views/tabs/control.js.map +1 -1
- package/x/views/tabs/view.js +4 -4
- package/x/views/tabs/view.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
|
-
`),
|
|
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 vo=Object.create;var ze=Object.defineProperty;var xo=Object.getOwnPropertyDescriptor;var wo=Object.getOwnPropertyNames;var $o=Object.getPrototypeOf,Ao=Object.prototype.hasOwnProperty;var So=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},ko=(e,t)=>{for(var r in t)ze(e,r,{get:t[r],enumerable:!0})},_o=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wo(t))!Ao.call(e,n)&&n!==r&&ze(e,n,{get:()=>t[n],enumerable:!(o=xo(t,n))||o.enumerable});return e};var Eo=(e,t,r)=>(r=e!=null?vo($o(e)):{},_o(t||!e||!e.__esModule?ze(r,"default",{value:e,enumerable:!0}):r,e));var Yr=So((Np,_e)=>{var sn=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={},n={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function a(i){return i instanceof s?new s(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(n.util.type(i)){case"Object":if(u=n.util.objId(i),c[u])return c[u];p={},c[u]=p;for(var m in i)i.hasOwnProperty(m)&&(p[m]=a(i[m],c));return p;case"Array":return u=n.util.objId(i),c[u]?c[u]:(p=[],c[u]=p,i.forEach(function($,h){p[h]=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=n.util.clone(n.languages[a]);for(var p in i)c[p]=i[p];return c},insertBefore:function(a,i,c,p){p=p||n.languages;var u=p[a],m={};for(var $ in u)if(u.hasOwnProperty($)){if($==i)for(var h in c)c.hasOwnProperty(h)&&(m[h]=c[h]);c.hasOwnProperty($)||(m[$]=u[$])}var k=p[a];return p[a]=m,n.languages.DFS(n.languages,function(_,F){F===k&&_!=a&&(this[_]=m)}),m},DFS:function a(i,c,p,u){u=u||{};var m=n.util.objId;for(var $ in i)if(i.hasOwnProperty($)){c.call(i,$,i[$],p||$);var h=i[$],k=n.util.type(h);k==="Object"&&!u[m(h)]?(u[m(h)]=!0,a(h,c,null,u)):k==="Array"&&!u[m(h)]&&(u[m(h)]=!0,a(h,c,$,u))}}},plugins:{},highlightAll:function(a,i){n.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'};n.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),n.hooks.run("before-all-elements-highlight",p);for(var u=0,m;m=p.elements[u++];)n.highlightElement(m,i===!0,p.callback)},highlightElement:function(a,i,c){var p=n.util.getLanguage(a),u=n.languages[p];n.util.setLanguage(a,p);var m=a.parentElement;m&&m.nodeName.toLowerCase()==="pre"&&n.util.setLanguage(m,p);var $=a.textContent,h={element:a,language:p,grammar:u,code:$};function k(F){h.highlightedCode=F,n.hooks.run("before-insert",h),h.element.innerHTML=h.highlightedCode,n.hooks.run("after-highlight",h),n.hooks.run("complete",h),c&&c.call(h.element)}if(n.hooks.run("before-sanity-check",h),m=h.element.parentElement,m&&m.nodeName.toLowerCase()==="pre"&&!m.hasAttribute("tabindex")&&m.setAttribute("tabindex","0"),!h.code){n.hooks.run("complete",h),c&&c.call(h.element);return}if(n.hooks.run("before-highlight",h),!h.grammar){k(n.util.encode(h.code));return}if(i&&e.Worker){var _=new Worker(n.filename);_.onmessage=function(F){k(F.data)},_.postMessage(JSON.stringify({language:h.language,code:h.code,immediateClose:!0}))}else k(n.highlight(h.code,h.grammar,h.language))},highlight:function(a,i,c){var p={code:a,grammar:i,language:c};if(n.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=n.tokenize(p.code,p.grammar),n.hooks.run("after-tokenize",p),s.stringify(n.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 d;return b(u,u.head,a),y(a,u,i,u.head,0),v(u)},hooks:{all:{},add:function(a,i){var c=n.hooks.all;c[a]=c[a]||[],c[a].push(i)},run:function(a,i){var c=n.hooks.all[a];if(!(!c||!c.length))for(var p=0,u;u=c[p++];)u(i)}},Token:s};e.Prism=n;function s(a,i,c,p){this.type=a,this.content=i,this.alias=c,this.length=(p||"").length|0}s.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},m=i.alias;m&&(Array.isArray(m)?Array.prototype.push.apply(u.classes,m):u.classes.push(m)),n.hooks.run("wrap",u);var $="";for(var h in u.attributes)$+=" "+h+'="'+(u.attributes[h]||"").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 m=u[1].length;u.index+=m,u[0]=u[0].slice(m)}return u}function y(a,i,c,p,u,m){for(var $ in c)if(!(!c.hasOwnProperty($)||!c[$])){var h=c[$];h=Array.isArray(h)?h:[h];for(var k=0;k<h.length;++k){if(m&&m.cause==$+","+k)return;var _=h[k],F=_.inside,bt=!!_.lookbehind,yt=!!_.greedy,Ft=_.alias;if(yt&&!_.pattern.global){var Zt=_.pattern.toString().match(/[imsuy]*$/)[0];_.pattern=RegExp(_.pattern.source,Zt+"g")}for(var Xt=_.pattern||_,M=p.next,P=u;M!==i.tail&&!(m&&P>=m.reach);P+=M.value.length,M=M.next){var tt=M.value;if(i.length>a.length)return;if(!(tt instanceof s)){var nt=1,q;if(yt){if(q=l(Xt,P,a,bt),!q||q.index>=a.length)break;var Jt=q.index,bo=q.index+q[0].length,st=P;for(st+=M.value.length;Jt>=st;)M=M.next,st+=M.value.length;if(st-=M.value.length,P=st,M.value instanceof s)continue;for(var Ot=M;Ot!==i.tail&&(st<bo||typeof Ot.value=="string");Ot=Ot.next)nt++,st+=Ot.value.length;nt--,tt=a.slice(P,st),q.index-=P}else if(q=l(Xt,0,tt,bt),!q)continue;var Jt=q.index,Kt=q[0],Fe=tt.slice(0,Jt),Ke=tt.slice(Jt+Kt.length),Oe=P+tt.length;m&&Oe>m.reach&&(m.reach=Oe);var Yt=M.prev;Fe&&(Yt=b(i,Yt,Fe),P+=Fe.length),S(i,Yt,nt);var yo=new s($,F?n.tokenize(Kt,F):Kt,Ft,Kt);if(M=b(i,Yt,yo),Ke&&b(i,M,Ke),nt>1){var Me={cause:$+","+k,reach:Oe};y(a,i,c,M.prev,P,Me),m&&Me.reach>m.reach&&(m.reach=Me.reach)}}}}}}function d(){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 v(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&&(n.disableWorkerMessageHandler||e.addEventListener("message",function(a){var i=JSON.parse(a.data),c=i.language,p=i.code,u=i.immediateClose;e.postMessage(n.highlight(p,n.languages[c],c)),u&&e.close()},!1)),n;var x=n.util.currentScript();x&&(n.filename=x.src,x.hasAttribute("data-manual")&&(n.manual=!0));function g(){n.manual||n.highlightAll()}if(!n.manual){var w=document.readyState;w==="loading"||w==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",g):window.requestAnimationFrame?window.requestAnimationFrame(g):window.setTimeout(g,16)}return n})(sn);typeof _e<"u"&&_e.exports&&(_e.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 n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};n["language-"+r]={pattern:/[\s\S]+/,inside:f.languages[r]};var s={};s[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},f.languages.insertBefore("markup","cdata",s)}});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(x,g){return"\u2716 Error "+x+" while fetching file: "+g},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"},n="data-src-status",s="loading",l="loaded",y="failed",d="pre[data-src]:not(["+n+'="'+l+'"]):not(['+n+'="'+s+'"])';function b(x,g,w){var a=new XMLHttpRequest;a.open("GET",x,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?g(a.responseText):a.status>=400?w(t(a.status,a.statusText)):w(r))},a.send(null)}function S(x){var g=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(g){var w=Number(g[1]),a=g[2],i=g[3];return a?i?[w,Number(i)]:[w,void 0]:[w,w]}}f.hooks.add("before-highlightall",function(x){x.selector+=", "+d}),f.hooks.add("before-sanity-check",function(x){var g=x.element;if(g.matches(d)){x.code="",g.setAttribute(n,s);var w=g.appendChild(document.createElement("CODE"));w.textContent=e;var a=g.getAttribute("data-src"),i=x.language;if(i==="none"){var c=(/\.(\w+)$/.exec(a)||[,"none"])[1];i=o[c]||c}f.util.setLanguage(w,i),f.util.setLanguage(g,i);var p=f.plugins.autoloader;p&&p.loadLanguages(i),b(a,function(u){g.setAttribute(n,l);var m=S(g.getAttribute("data-range"));if(m){var $=u.split(/\r\n?|\n/g),h=m[0],k=m[1]==null?$.length:m[1];h<0&&(h+=$.length),h=Math.max(0,Math.min(h-1,$.length)),k<0&&(k+=$.length),k=Math.max(0,Math.min(k,$.length)),u=$.slice(h,k).join(`
|
|
2
|
+
`),g.hasAttribute("data-start")||g.setAttribute("data-start",String(h+1))}w.textContent=u,f.highlightElement(w)},function(u){g.setAttribute(n,y),w.textContent=u})}}),f.plugins.fileHighlight={highlight:function(g){for(var w=(g||document).querySelectorAll(d),a=0,i;i=w[a++];)f.highlightElement(i)}};var v=!1;f.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),f.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var Qt=globalThis,te=Qt.ShadowRoot&&(Qt.ShadyCSS===void 0||Qt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pe=Symbol(),Ye=new WeakMap,Mt=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==Pe)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(te&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=Ye.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Ye.set(r,t))}return t}toString(){return this.cssText}},zt=e=>new Mt(typeof e=="string"?e:e+"",void 0,Pe),A=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((o,n,s)=>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.")})(n)+e[s+1],e[0]);return new Mt(r,e,Pe)},ee=(e,t)=>{if(te)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let o=document.createElement("style"),n=Qt.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)}},vt=te?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:Co,defineProperty:To,getOwnPropertyDescriptor:Fo,getOwnPropertyNames:Oo,getOwnPropertySymbols:Mo,getPrototypeOf:zo}=Object,re=globalThis,Qe=re.trustedTypes,Po=Qe?Qe.emptyScript:"",jo=re.reactiveElementPolyfillSupport,Pt=(e,t)=>e,je={toAttribute(e,t){switch(t){case Boolean:e=e?Po: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}},er=(e,t)=>!Co(e,t),tr={attribute:!0,type:String,converter:je,reflect:!1,useDefault:!1,hasChanged:er};Symbol.metadata??=Symbol("metadata"),re.litPropertyMetadata??=new WeakMap;var et=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=tr){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(),n=this.getPropertyDescriptor(t,o,r);n!==void 0&&To(this.prototype,t,n)}}static getPropertyDescriptor(t,r,o){let{get:n,set:s}=Fo(this.prototype,t)??{get(){return this[r]},set(l){this[r]=l}};return{get:n,set(l){let y=n?.call(this);s?.call(this,l),this.requestUpdate(t,y,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??tr}static _$Ei(){if(this.hasOwnProperty(Pt("elementProperties")))return;let t=zo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pt("properties"))){let r=this.properties,o=[...Oo(r),...Mo(r)];for(let n of o)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,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 n of o)r.unshift(vt(n))}else t!==void 0&&r.push(vt(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 ee(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),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let s=(o.converter?.toAttribute!==void 0?o.converter:je).toAttribute(r,o.type);this._$Em=t,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(t,r){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let s=o.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:je;this._$Em=n;let y=l.fromAttribute(r,s.type);this[n]=y??this._$Ej?.get(n)??y,this._$Em=null}}requestUpdate(t,r,o,n=!1,s){if(t!==void 0){let l=this.constructor;if(n===!1&&(s=this[t]),o??=l.getPropertyOptions(t),!((o.hasChanged??er)(s,r)||o.useDefault&&o.reflect&&s===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:n,wrapped:s},l){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,l??r??this[t]),s!==!0||l!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(r=void 0),this._$AL.set(t,r)),n===!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[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,s]of o){let{wrapped:l}=s,y=this[n];l!==!0||this._$AL.has(n)||y===void 0||this.C(n,void 0,s,y)}}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){}};et.elementStyles=[],et.shadowRootOptions={mode:"open"},et[Pt("elementProperties")]=new Map,et[Pt("finalized")]=new Map,jo?.({ReactiveElement:et}),(re.reactiveElementVersions??=[]).push("2.1.2");var Le=globalThis,rr=e=>e,oe=Le.trustedTypes,or=oe?oe.createPolicy("lit-html",{createHTML:e=>e}):void 0,He="$lit$",rt=`lit$${Math.random().toFixed(9).slice(2)}$`,De="?"+rt,Ro=`<${De}>`,dt=document,Rt=()=>dt.createComment(""),Lt=e=>e===null||typeof e!="object"&&typeof e!="function",Ne=Array.isArray,cr=e=>Ne(e)||typeof e?.[Symbol.iterator]=="function",Re=`[
|
|
3
|
+
\f\r]`,jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nr=/-->/g,sr=/>/g,ut=RegExp(`>|${Re}(?:([^\\s"'>=/]+)(${Re}*=${Re}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ir=/'/g,ar=/"/g,ur=/^(?:script|style|textarea|title)$/i,Be=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),E=Be(1),G=Be(2),dn=Be(3),ot=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),lr=new WeakMap,pt=dt.createTreeWalker(dt,129);function pr(e,t){if(!Ne(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return or!==void 0?or.createHTML(t):t}var dr=(e,t)=>{let r=e.length-1,o=[],n,s=t===2?"<svg>":t===3?"<math>":"",l=jt;for(let y=0;y<r;y++){let d=e[y],b,S,v=-1,x=0;for(;x<d.length&&(l.lastIndex=x,S=l.exec(d),S!==null);)x=l.lastIndex,l===jt?S[1]==="!--"?l=nr:S[1]!==void 0?l=sr:S[2]!==void 0?(ur.test(S[2])&&(n=RegExp("</"+S[2],"g")),l=ut):S[3]!==void 0&&(l=ut):l===ut?S[0]===">"?(l=n??jt,v=-1):S[1]===void 0?v=-2:(v=l.lastIndex-S[2].length,b=S[1],l=S[3]===void 0?ut:S[3]==='"'?ar:ir):l===ar||l===ir?l=ut:l===nr||l===sr?l=jt:(l=ut,n=void 0);let g=l===ut&&e[y+1].startsWith("/>")?" ":"";s+=l===jt?d+Ro:v>=0?(o.push(b),d.slice(0,v)+He+d.slice(v)+rt+g):d+rt+(v===-2?y:g)}return[pr(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},Ht=class e{constructor({strings:t,_$litType$:r},o){let n;this.parts=[];let s=0,l=0,y=t.length-1,d=this.parts,[b,S]=dr(t,r);if(this.el=e.createElement(b,o),pt.currentNode=this.el.content,r===2||r===3){let v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(n=pt.nextNode())!==null&&d.length<y;){if(n.nodeType===1){if(n.hasAttributes())for(let v of n.getAttributeNames())if(v.endsWith(He)){let x=S[l++],g=n.getAttribute(v).split(rt),w=/([.?@])?(.*)/.exec(x);d.push({type:1,index:s,name:w[2],strings:g,ctor:w[1]==="."?se:w[1]==="?"?ie:w[1]==="@"?ae:ft}),n.removeAttribute(v)}else v.startsWith(rt)&&(d.push({type:6,index:s}),n.removeAttribute(v));if(ur.test(n.tagName)){let v=n.textContent.split(rt),x=v.length-1;if(x>0){n.textContent=oe?oe.emptyScript:"";for(let g=0;g<x;g++)n.append(v[g],Rt()),pt.nextNode(),d.push({type:2,index:++s});n.append(v[x],Rt())}}}else if(n.nodeType===8)if(n.data===De)d.push({type:2,index:s});else{let v=-1;for(;(v=n.data.indexOf(rt,v+1))!==-1;)d.push({type:7,index:s}),v+=rt.length-1}s++}}static createElement(t,r){let o=dt.createElement("template");return o.innerHTML=t,o}};function ht(e,t,r=e,o){if(t===ot)return t;let n=o!==void 0?r._$Co?.[o]:r._$Cl,s=Lt(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(t=ht(e,n._$AS(e,t.values),n,o)),t}var ne=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,n=(t?.creationScope??dt).importNode(r,!0);pt.currentNode=n;let s=pt.nextNode(),l=0,y=0,d=o[0];for(;d!==void 0;){if(l===d.index){let b;d.type===2?b=new xt(s,s.nextSibling,this,t):d.type===1?b=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(b=new le(s,this,t)),this._$AV.push(b),d=o[++y]}l!==d?.index&&(s=pt.nextNode(),l++)}return pt.currentNode=dt,n}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++}},xt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,o,n){this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.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=ht(this,t,r),Lt(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==ot&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):cr(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!==O&&Lt(this._$AH)?this._$AA.nextSibling.data=t:this.T(dt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Ht.createElement(pr(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new ne(n,this),l=s.u(this.options);s.p(r),this.T(l),this._$AH=s}}_$AC(t){let r=lr.get(t.strings);return r===void 0&&lr.set(t.strings,r=new Ht(t)),r}k(t){Ne(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let s of t)n===r.length?r.push(o=new e(this.O(Rt()),this.O(Rt()),this,this.options)):o=r[n],o._$AI(s),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let o=rr(t).nextSibling;rr(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ft=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,o,n,s){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=O}_$AI(t,r=this,o,n){let s=this.strings,l=!1;if(s===void 0)t=ht(this,t,r,0),l=!Lt(t)||t!==this._$AH&&t!==ot,l&&(this._$AH=t);else{let y=t,d,b;for(t=s[0],d=0;d<s.length-1;d++)b=ht(this,y[o+d],r,d),b===ot&&(b=this._$AH[d]),l||=!Lt(b)||b!==this._$AH[d],b===O?t=O:t!==O&&(t+=(b??"")+s[d+1]),this._$AH[d]=b}l&&!n&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},se=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}},ie=class extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}},ae=class extends ft{constructor(t,r,o,n,s){super(t,r,o,n,s),this.type=5}_$AI(t,r=this){if((t=ht(this,t,r,0)??O)===ot)return;let o=this._$AH,n=t===O&&o!==O||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==O&&(o===O||n);n&&this.element.removeEventListener(this.name,this,o),s&&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)}},le=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){ht(this,t)}},hr={M:He,P:rt,A:De,C:1,L:dr,R:ne,D:cr,V:ht,I:xt,H:ft,N:ie,U:ae,B:se,F:le},Lo=Le.litHtmlPolyfillSupport;Lo?.(Ht,xt),(Le.litHtmlVersions??=[]).push("3.3.3");var R=(e,t,r)=>{let o=r?.renderBefore??t,n=o._$litPart$;if(n===void 0){let s=r?.renderBefore??null;o._$litPart$=n=new xt(t.insertBefore(Rt(),s),s,void 0,r??{})}return n._$AI(e),n};var Ue=globalThis,wt=class extends et{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=R(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ot}};wt._$litElement$=!0,wt.finalized=!0,Ue.litElementHydrateSupport?.({LitElement:wt});var Ho=Ue.litElementPolyfillSupport;Ho?.({LitElement:wt});(Ue.litElementVersions??=[]).push("4.2.2");var V={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},L={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)L.any(e,r,o)},record:(e,t)=>L.entries(e,Object.entries(t))};function fr(e,t={}){let r=document.createElement(e);return L.record(r,t),r}function mr(e){let t=document.createDocumentFragment();return R(e,t),t.firstElementChild}function ce(e,t){let r=[];for(let[o,n]of Object.entries(t))if(typeof n=="function")e.addEventListener(o,n),r.push(()=>e.removeEventListener(o,n));else{let[s,l]=n;e.addEventListener(o,l,s),r.push(()=>e.removeEventListener(o,l))}return()=>r.forEach(o=>o())}function gr(e,t){let r=new MutationObserver(t);return r.observe(e,{attributes:!0}),()=>r.disconnect()}var ue=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,r)=>V.string(this.element,r),set:(t,r,o)=>L.string(this.element,r,o)});numbers=new Proxy({},{get:(t,r)=>V.number(this.element,r),set:(t,r,o)=>L.number(this.element,r,o)});booleans=new Proxy({},{get:(t,r)=>V.boolean(this.element,r),set:(t,r,o)=>L.boolean(this.element,r,o)})};var br=(e,t,r={})=>new Proxy(t,{get:(o,n)=>{switch(t[n]){case String:return V.string(e,n);case Number:return V.number(e,n);case Boolean:return V.boolean(e,n);default:throw new Error(`invalid attribute type for "${n}"`)}},set:(o,n,s)=>{try{switch(r.beforeSet?.(n),t[n]){case String:return L.string(e,n,s);case Number:return L.number(e,n,s);case Boolean:return L.boolean(e,n,s);default:throw new Error(`invalid attribute type for "${n}"`)}}finally{r.afterSet?.(n)}}});function $t(e){let t=new ue(e);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:r=>gr(e,r),spec:(r,o={})=>br(e,r,o)}}$t.get=V;$t.set=L;function yr(e){return new qe(e)}var qe=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 L.entries(t,this.#t),t.append(...this.#e),t}};function At(e,t=document){let r=t.querySelector(e);if(!r)throw new Error(`element not found (${e})`);return r}function pe(e,t=document){return t.querySelector(e)}function de(e,t=document){return Array.from(t.querySelectorAll(e))}var he=class e{element;#t;constructor(t){this.element=t}in(t){return new e(typeof t=="string"?At(t,this.element):t)}require(t){return At(t,this.element)}maybe(t){return pe(t,this.element)}all(t){return de(t,this.element)}render(...t){return R(t,this.element)}get attrs(){return this.#t??=$t(this.element)}events(t){return ce(this.element,t)}};function vr(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function xr(e,t={}){let{soft:r=!1,upgrade:o=!0}=t;for(let[n,s]of Object.entries(e)){let l=vr(n),y=customElements.get(l);r&&y||(customElements.define(l,s),o&&document.querySelectorAll(l).forEach(d=>{d.constructor===HTMLElement&&customElements.upgrade(d)}))}}function C(e,t=document){return At(e,t)}C.in=(e,t=document)=>new he(t).in(e);C.need=At;C.maybe=pe;C.all=de;C.el=fr;C.elmer=yr;C.mk=mr;C.events=ce;C.attrs=$t;C.register=xr;C.render=(e,...t)=>R(t,e);function wr(e,t){let r,o,n=[];function s(){r=[],o&&clearTimeout(o),o=void 0,n=[]}return s(),((...l)=>{r=l,o&&clearTimeout(o);let y=new Promise((d,b)=>{n.push({resolve:d,reject:b})});return o=setTimeout(()=>{Promise.resolve().then(()=>t(...r)).then(d=>{for(let{resolve:b}of n)b(d);s()}).catch(d=>{for(let{reject:b}of n)b(d);s()})},e),y})}function Dt(){let e,t,r=new Promise((n,s)=>{e=n,t=s});function o(n){return n.then(e).catch(t),r}return{promise:r,resolve:e,reject:t,entangle:o}}function $r(e){let t=null;return((...r)=>(t?t.params=r:(t={params:r,deferred:Dt()},queueMicrotask(()=>{let{params:o,deferred:n}=t;t=null,Promise.resolve(e(...o)).then(n.resolve).catch(n.reject)})),t.deferred.promise))}var Z={};ko(Z,{clone:()=>Nt,equal:()=>Do,freeze:()=>No});function Nt(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=>Nt(o,new Set(t))):e.constructor===Object?r=Object.fromEntries(Object.entries(e).map(([o,n])=>[o,Nt(n,new Set(t))])):e instanceof Map?r=new Map(Array.from(e,([o,n])=>[o,Nt(n,new Set(t))])):e instanceof Set?r=new Set(Array.from(e,o=>Nt(o,new Set(t)))):e instanceof Date?r=new Date(e.getTime()):r=e,t.delete(e)):r=e,r}var Bt=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 Do=(e,t)=>{function r(o,n,s){if(!Bt.object(o)||!Bt.object(n))return o===n;if(s.includes(o))throw new Error("forbidden circularity detected in deep equal comparison");let l=[...s,o];if(o instanceof Map&&n instanceof Map){if(o.size!==n.size)return!1;for(let[y,d]of o)if(!n.has(y)||!r(d,n.get(y),l))return!1}else if(o instanceof Set&&n instanceof Set){if(o.size!==n.size)return!1;for(let y of o)if(!Array.from(n).some(d=>r(y,d,l)))return!1}else{let y=Object.keys(o),d=Object.keys(n);if(y.length!==d.length)return!1;for(let b of y)if(!d.includes(b)||!r(o[b],n[b],l))return!1}return!0}return r(e,t,[])};function No(e){function t(r,o){if(!Bt.object(r)||o.includes(r))return r;let n=[...o,r];if(r instanceof Map)for(let s of r.entries())for(let l of s)t(l,n);else if(r instanceof Set)for(let s of r)t(s,n);else if(Array.isArray(r))for(let s of r)t(s,n);else for(let s of Object.values(r))t(s,n);return Object.freeze(r)}return t(e,[])}function Ar(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 Sr(e){if(e.ok)throw new Error("didn't get needed error");return e.error}function fe(e,t,r){if(e.has(t))return e.get(t);{let o=r();return e.set(t,o),o}}function kr(e){let t,r=!1,o=()=>{r=!0,clearTimeout(t)},n=async()=>{r||(await e(o),!r&&(t=setTimeout(n,0)))};return n(),o}var me=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 _r=(e=0)=>new Promise(t=>setTimeout(t,e));function it(e,...t){let r=e.length-1;return e.slice(0,r).reduce((o,n,s)=>o+n+t[s],"")+e[r]}function Er(e){let t=e.split(/\r|\n/),r;for(let n of t)if(!/^\s+$/.test(n)){let l=n.match(/^(\t+).+/);if(l){let y=l[1].length;if(r=r===void 0||y<r?y:r,r===0)break}}let o=new RegExp(`^\\t{${r}}`);return t.map(n=>/^\s+$/.test(n)?"":n).map(n=>n.replace(o,"")).join(`
|
|
5
|
+
`)}var ge=class{#t=new Set;#e=[];#r=new WeakMap;#o=0;#n=new Set;read(t){this.#e.at(-1)?.add(t)}write(t){let r=this.#r.get(t);if(r){for(let o of r)this.#n.add(o);this.#o===0&&this.#s()}}observe(t){let r=new Set;this.#e.push(r);try{let o=t();return{seen:r,value:o}}finally{this.#e.pop()}}subscribe(t,r){let o=fe(this.#r,t,()=>new Set);return o.add(r),()=>{o.delete(r),o.size===0&&this.#r.delete(t)}}batch=t=>{this.#o++;try{return t()}finally{this.#o--,this.#o===0&&this.#s()}};#i(t){if(this.#t.has(t))throw new Error("circularity forbidden");this.#t.add(t);try{t()}finally{this.#t.delete(t)}}#s(){for(;this.#n.size>0;){let t=[...this.#n];this.#n.clear();for(let r of t)this.#i(r)}}};var j=globalThis[Symbol.for("e280.tracker.2")]??=new ge;function U(e){return function t(){return arguments.length===0?(j.read(t),e):(e=arguments[0],j.write(t),e)}}var ni=j.batch;function Tr(e){return Z.freeze(Z.clone(e))}var X=Symbol("optic");var Ut=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 be=class e{[X];#t;#e;#r;constructor(t){this[X]=t,this.#t=Z.clone(t.getState()),this.#e=new Ut(()=>Z.clone(t.getState())),this.#r=new Ut(()=>Tr(t.getState()))}update(){let t=this[X].getState();!Z.equal(t,this.#t)&&(this.#e.invalidate(),this.#r.invalidate(),this.#t=Z.clone(t),j.write(this))}get state(){return j.read(this),this.#e.get()}get frozen(){return j.read(this),this.#r.get()}mutate(t){return this[X].mutate(t)}lens(t){let r=new e({getState:()=>t(this[X].getState()),mutate:o=>this[X].mutate(n=>o(t(n))),registerLens:this[X].registerLens});return this[X].registerLens(r),r}};function Fr(e){if(!e.done)throw new Error("wait not done");return Ar(e)}function Or(e){if(!e.done)throw new Error("wait not done");return Sr(e)}var Mr=e=>!e.done;var zr=e=>e.done&&e.ok;function Pr(e,t){let{pending:r=()=>{},ok:o=()=>{},err:n=()=>{}}=t;return Mr(e)?r():zr(e)?o(Fr(e)):n(Or(e))}var ye=A`
|
|
6
6
|
* {
|
|
7
7
|
margin: 0;
|
|
8
8
|
padding: 0;
|
|
@@ -16,18 +16,18 @@ 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 ve=class e extends HTMLElement{static register(){C.register({SlyShadow:e},{soft:!0})}connectedCallback(){this.hasAttribute("view")||this.setAttribute("view","")}};var xe=class{render;count=0;rendered=Dt();constructor(t){this.render=t}doneRender(){this.count++,this.rendered.resolve(),this.rendered=Dt()}},mt=class extends xe{host;shadow;constructor(t,r,o){super(t),this.host=r,this.shadow=o}};var Ie=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()}}},J=globalThis[Symbol.for("e280.hooks")]??=new Ie;var St=class{#t=[];clear(){this.#t.forEach(t=>t()),this.#t=[]}observe(t,r){let{seen:o,value:n}=j.observe(t);this.clear();for(let s of o){let l=j.subscribe(s,r);this.#t.push(l)}return n}};function T(e){let{scope:t,position:r}=J.increment();return fe(t.values,r,e)}function at(e){let{scope:t}=J.increment();return T(()=>t.mounts.mount(e))}var we=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 kt=class{cx;position=0;values=new Map;mounts=new we;constructor(t){this.cx=t}};var{I:yl}=hr;var jr=e=>e.strings===void 0;var $e={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Et=e=>(...t)=>({_$litDirective$:e,values:t}),_t=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 qt=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(t,!1),qt(o,t);return!0},Ae=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},Rr=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),Xo(t)}};function Vo(e){this._$AN!==void 0?(Ae(this),this._$AM=e,Rr(this)):this._$AM=e}function Zo(e,t=!1,r=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(o))for(let s=r;s<o.length;s++)qt(o[s],!1),Ae(o[s]);else o!=null&&(qt(o,!1),Ae(o));else qt(this,e)}var Xo=e=>{e.type==$e.CHILD&&(e._$AP??=Zo,e._$AQ??=Vo)},It=class extends _t{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,o){super._$AT(t,r,o),Rr(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(qt(this,t),Ae(this))}setValue(t){if(jr(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 Se(e){return T(()=>new We(e))}var We=class{current;constructor(t){this.current=t}};function Ge(){let{scope:e}=J.increment();return e.cx}function Lr(){let e=Ge();if(!(e instanceof mt))throw new Error("this hook only works on shadow views (but was called in a light view)");return e}function Ve(){return Ge().render}function Hr(){return Ge().rendered.promise}function lt(){return Lr().host}function Dr(){return Lr().shadow}function ke(e){let t=lt(),r=Ve(),o=Se(new Set);return at(()=>C.attrs(t).on(n=>{for(let s of n)if(!o.current.has(s.attributeName)){r();break}})),Hr().then(()=>o.current.clear()),T(()=>C.attrs(t).spec(e,{beforeSet:n=>o.current.add(n)}))}function Nr(e,t){ee(e,Jo(t))}function Jo(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(vt(o))}else e!==void 0&&t.push(vt(e));return t}function B(...e){let t=Dr();T(()=>Nr(t,e))}var Ct=B;function H(e=""){let t=lt();T(()=>t.setAttribute("view",e))}function gt(e){return T(()=>U(e))}function Br(e,t){for(let[r,o]of Object.entries(t))Ko(e,r,o)}function Ko(e,t,r){let o=e.getAttribute(t),n=Yo(r);n!==o&&(n===null?e.removeAttribute(t):e.setAttribute(t,n))}function Yo(e){return typeof e=="string"?e:typeof e=="number"?e.toString():e?"":null}function Qo(){ve.register();let e=document.createElement("sly-shadow"),t=e.attachShadow({mode:"open"});return{host:e,shadow:t}}function z(e){return Ur(Qo,e)}z.setup=e=>(t=>Ur(e,t));function Ur(e,t){let r=Et(class extends It{#t;#e;#r;#o=new St;constructor(n){super(n);let{host:s,shadow:l}=e(),y=$r(()=>{if(!this.#r)throw new Error("cannot render before props");if(!this.isConnected)return;let d=this.#n(this.#r);R(d,this.#t.shadow),this.#t.doneRender()});this.#t=new mt(y,s,l),this.#e=new kt(this.#t)}#n(n){return this.#r=n,this.#o.observe(()=>J.wrap(this.#e,()=>t(...this.#r)),this.#t.render)}render({props:n,children:s,attrs:l}){let{host:y}=this.#t;return this.isConnected&&(l&&Br(y,l),R(s,this.#t.host),R(this.#n(n),this.#t.shadow),this.#t.doneRender()),y}disconnected(){R(null,this.#t.shadow),R(null,this.#t.host),this.#e.mounts.unmountAll(),this.#o.clear()}reconnected(){this.#e.mounts.remountAll(),this.#t.render()}});function o(...n){return r({props:n})}return o.with=r,o}function K(e,t){return()=>tn({hz:e,frames:t})}var tn=z(({hz:e,frames:t})=>{H("loading"),Ct(ye,en);let r=gt(0);return at(()=>kr(async()=>{await _r(1e3/e);let o=r()+1;r(o>=t.length?0:o)})),t.at(r())}),en=A`
|
|
20
20
|
:host {
|
|
21
21
|
font-family: monospace;
|
|
22
22
|
white-space: pre;
|
|
23
23
|
user-select: none;
|
|
24
24
|
}
|
|
25
|
-
`;var
|
|
25
|
+
`;var Y=z(e=>(H("error"),Ct(ye,rn),typeof e=="string"?e:e instanceof Error?E`<strong>${e.name}:</strong> <span>${e.message}</span>`:"error")),rn=A`
|
|
26
26
|
:host {
|
|
27
27
|
font-family: monospace;
|
|
28
28
|
color: red;
|
|
29
29
|
}
|
|
30
|
-
`;var
|
|
30
|
+
`;function Q(e,t){return(r,o)=>Pr(r,{pending:e,err:t,ok:o})}var yu=Q(K(10,[" "," ",". ",".. ","..."," .."," ."]),Y);var Au=Q(K(3,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),Y);var Cu=Q(K(10,["\u{1F312}","\u{1F313}","\u{1F314}","\u{1F315}","\u{1F316}","\u{1F317}","\u{1F318}","\u{1F311}","\u{1F311}","\u{1F311}"]),Y);var zu=Q(K(16,["|","/","-","\\"]),Y);var Hu=Q(K(20,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),Y);var qr=A`@layer view {
|
|
31
31
|
|
|
32
32
|
button {
|
|
33
33
|
background: transparent;
|
|
@@ -74,7 +74,7 @@ svg {
|
|
|
74
74
|
height: 1em;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
}`;var
|
|
77
|
+
}`;var Ze=G`<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 Ir=G`<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 Wr=G`<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 Xe(e){return e===void 0?"invalid":"neutral"}function Gr(e,t){let r=gt(Xe(e)),o=T(()=>wr(t,()=>r(Xe(e)))),n=T(()=>async s=>{r(s),await o()});return{reset:o,flash:n,status:r()}}var Vr=it`@layer core {
|
|
78
78
|
|
|
79
79
|
::selection {
|
|
80
80
|
color: var(--selection);
|
|
@@ -104,14 +104,14 @@ a {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
}`;var
|
|
107
|
+
}`;var Zr=it`@layer vars {
|
|
108
108
|
|
|
109
109
|
:is(:root, :host) {
|
|
110
|
-
${
|
|
110
|
+
${nn({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
111
|
}
|
|
112
112
|
|
|
113
|
-
}`;function
|
|
114
|
-
`)}var
|
|
113
|
+
}`;function on([e,t]){return`--${e}: var(--shiny-${e}, ${t});`}function nn(e){return Object.entries(e).map(on).join(`
|
|
114
|
+
`)}var Xr=it`@layer reset {
|
|
115
115
|
|
|
116
116
|
* {
|
|
117
117
|
margin: 0;
|
|
@@ -127,22 +127,22 @@ a {
|
|
|
127
127
|
::-webkit-scrollbar-thumb { background: #888; border-radius: 1em; }
|
|
128
128
|
::-webkit-scrollbar-thumb:hover { background: #999; }
|
|
129
129
|
|
|
130
|
-
}`;var
|
|
130
|
+
}`;var Jr=it`
|
|
131
131
|
|
|
132
132
|
@layer vars, reset, core, underlay, view, overlay;
|
|
133
133
|
|
|
134
|
-
${
|
|
135
|
-
${
|
|
136
|
-
${
|
|
134
|
+
${Zr}
|
|
135
|
+
${Xr}
|
|
136
|
+
${Vr}
|
|
137
137
|
|
|
138
|
-
`;var
|
|
139
|
-
<button data-status="${
|
|
138
|
+
`;var D=new CSSStyleSheet;D.replaceSync(Jr);var Wt=z((e,t={})=>{H("shiny-copy"),B(D,qr);let r=Gr(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(n){console.error(n),await r.flash("bad")}}return E`
|
|
139
|
+
<button data-status="${r.status}" @click="${o}" part=button>
|
|
140
140
|
<span part=icon>
|
|
141
|
-
${(()=>{switch(
|
|
141
|
+
${(()=>{switch(r.status){case"neutral":return Ze;case"invalid":return Ze;case"good":return Wr;case"bad":return Ir;default:throw new Error("unknown copy status")}})()}
|
|
142
142
|
</span>
|
|
143
143
|
<slot></slot>
|
|
144
144
|
</button>
|
|
145
|
-
`});var
|
|
145
|
+
`});var I=e=>e;var Kr=A`@layer view {
|
|
146
146
|
|
|
147
147
|
section.showcase {
|
|
148
148
|
position: relative;
|
|
@@ -218,7 +218,7 @@ header {
|
|
|
218
218
|
border-radius: var(--rounded);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
}`;var
|
|
221
|
+
}`;var Ee=Eo(Yr(),1);(function(e){var t=e.languages.javascript["template-string"],r=t.pattern.source,o=t.inside.interpolation,n=o.inside["interpolation-punctuation"],s=o.pattern.source;function l(g,w){if(e.languages[g])return{pattern:RegExp("((?:"+w+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}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 y(g,w){return"___"+w.toUpperCase()+"_"+g+"___"}function d(g,w,a){var i={code:g,grammar:w,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(g){var w={};w["interpolation-punctuation"]=n;var a=e.tokenize(g,w);if(a.length===3){var i=[1,1];i.push.apply(i,d(a[1],e.languages.javascript,"javascript")),a.splice.apply(a,i)}return new e.Token("interpolation",a,o.alias,g)}function S(g,w,a){var i=e.tokenize(g,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),c=0,p={},u=i.map(function(k){if(typeof k=="string")return k;for(var _=k.content,F;g.indexOf(F=y(c++,a))!==-1;);return p[F]=_,F}).join(""),m=d(u,w,a),$=Object.keys(p);c=0;function h(k){for(var _=0;_<k.length;_++){if(c>=$.length)return;var F=k[_];if(typeof F=="string"||typeof F.content=="string"){var bt=$[c],yt=typeof F=="string"?F:F.content,Ft=yt.indexOf(bt);if(Ft!==-1){++c;var Zt=yt.substring(0,Ft),Xt=b(p[bt]),M=yt.substring(Ft+bt.length),P=[];if(Zt&&P.push(Zt),P.push(Xt),M){var tt=[M];h(tt),P.push.apply(P,tt)}typeof F=="string"?(k.splice.apply(k,[_,1].concat(P)),_+=P.length-1):F.content=P}}else{var nt=F.content;Array.isArray(nt)?h(nt):h([nt])}}}return h(m),new e.Token(a,m,"language-"+a,g)}var v={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};e.hooks.add("after-tokenize",function(g){if(!(g.language in v))return;function w(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"&&w([u]);continue}if(p.type==="template-string"){var m=u[1];if(u.length===3&&typeof m!="string"&&m.type==="embedded-code"){var $=x(m),h=m.alias,k=Array.isArray(h)?h[0]:h,_=e.languages[k];if(!_)continue;u[1]=S($,_,k)}}else w(u)}}}w(g.tokens)});function x(g){return typeof g=="string"?g:Array.isArray(g)?g.map(x).join(""):x(g.content)}})(Prism);var Qr=A`@layer view {
|
|
222
222
|
|
|
223
223
|
:host {
|
|
224
224
|
display: flex;
|
|
@@ -259,20 +259,20 @@ code {
|
|
|
259
259
|
overflow-x: auto;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
}`;function
|
|
262
|
+
}`;function to(){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 Gt=class extends _t{constructor(t){if(super(t),this.it=O,t.type!==$e.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===O||t==null)return this._t=void 0,this.it=t;if(t===ot)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:[]}}};Gt.directiveName="unsafeHTML",Gt.resultType=1;var eo=Et(Gt);var Je=z((e,t,r)=>{let o=to();B(D,o,Qr),r=Er(r).trim();let n=Ee.default.highlight(r,t==="js"?Ee.default.languages.javascript:Ee.default.languages.css,t);return E`
|
|
263
263
|
<div class=box>
|
|
264
264
|
<header>
|
|
265
|
-
<h3 class=title>${
|
|
266
|
-
<div class=buttons>${
|
|
265
|
+
<h3 class=title>${e}</h3>
|
|
266
|
+
<div class=buttons>${Wt(r)}</div>
|
|
267
267
|
</header>
|
|
268
268
|
|
|
269
|
-
<code>${
|
|
269
|
+
<code>${eo(n)}</code>
|
|
270
270
|
</div>
|
|
271
|
-
`});var
|
|
272
|
-
<style>${
|
|
273
|
-
<style>${
|
|
274
|
-
${
|
|
275
|
-
`));var
|
|
271
|
+
`});var ro=z((e,t,r)=>(H("stylebox"),B(D,e,t),E`
|
|
272
|
+
<style>${zt(e)}</style>
|
|
273
|
+
<style>${zt(t)}</style>
|
|
274
|
+
${r}
|
|
275
|
+
`));var oo=A`@layer view {
|
|
276
276
|
|
|
277
277
|
:host {
|
|
278
278
|
display: inline-flex;
|
|
@@ -314,10 +314,10 @@ slot[part="tabs"][data-snug] {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
} `;var
|
|
318
|
-
<slot part=tabs ?data-snug="${
|
|
319
|
-
<slot part=panels name=panel @slotchange="${
|
|
320
|
-
`});var
|
|
317
|
+
} `;var Tt=class{length=1;$index=U(0);constructor(t=0){this.$index(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 Vt=z((e={})=>{H("shiny-tabs"),Ct(D,oo);let t=lt(),r=T(()=>C.attrs(t).spec({index:Number})),o=T(()=>e.control??new Tt(r.index??0)),n=gt([]),s=gt([]);function l(b){let S=b.currentTarget;n(S.assignedElements())}function y(b){let S=b.currentTarget;s(S.assignedElements())}r.index=o.$index(),o.length=n().length;function d(b,S){let v=o.clamp(b+S);return v===b?!1:v===o.index}for(let[b,S]of n().entries()){let v=b===o.index,x=C.attrs(S);x.booleans.disabled=v,x.booleans["data-snug"]=e.snug,x.booleans["data-tabbed"]=v,x.booleans["data-first"]=b===0,x.booleans["data-last"]=b===o.length-1,x.booleans["data-next-is-tabbed"]=d(b,1),x.booleans["data-previous-is-tabbed"]=d(b,-1),S.onclick=()=>o.setIndex(b)}for(let[b,S]of s().entries()){let v=b===o.index;C.attrs(S).booleans["data-tabbed"]=v,C.attrs(S).booleans.hidden=!v}return E`
|
|
318
|
+
<slot part=tabs ?data-snug="${e.snug}" @slotchange="${l}"></slot>
|
|
319
|
+
<slot part=panels name=panel @slotchange="${y}"></slot>
|
|
320
|
+
`});var no=A`@layer view {
|
|
321
321
|
|
|
322
322
|
:host {
|
|
323
323
|
display: inline-flex;
|
|
@@ -423,75 +423,75 @@ button {
|
|
|
423
423
|
border-bottom-left-radius: 0;
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
}`;var
|
|
426
|
+
}`;var N=z((e,t={})=>{H("shiny-button"),B(D,no);let r=ke({hidden:Boolean,disabled:Boolean});return E`
|
|
427
427
|
<button
|
|
428
428
|
part=button
|
|
429
429
|
data-vibe="${t.vibe??"calm"}"
|
|
430
|
-
?disabled="${
|
|
431
|
-
?hidden="${
|
|
430
|
+
?disabled="${r.disabled}"
|
|
431
|
+
?hidden="${r.hidden}"
|
|
432
432
|
@click="${t.onClick}">
|
|
433
|
-
<slot>${
|
|
433
|
+
<slot>${e}</slot>
|
|
434
434
|
</button>
|
|
435
|
-
`});var
|
|
435
|
+
`});var ct=z((e,t)=>{H("showcase"),B(D,Kr);let r=T(()=>new Tt),o=t.at(r.index);return E`
|
|
436
436
|
<section class=showcase>
|
|
437
437
|
<header>
|
|
438
|
-
<h2>✨${
|
|
438
|
+
<h2>✨${e}✨</h2>
|
|
439
439
|
<nav>
|
|
440
|
-
${
|
|
440
|
+
${Vt.with({props:[{control:r,snug:!0}],children:t.map(n=>N(n.name))})}
|
|
441
441
|
</nav>
|
|
442
442
|
</header>
|
|
443
443
|
|
|
444
|
-
${
|
|
445
|
-
<div class=explain>${
|
|
444
|
+
${o&&E`
|
|
445
|
+
<div class=explain>${o.explain}</div>
|
|
446
446
|
|
|
447
447
|
<div class=sides>
|
|
448
448
|
<div class=codezone>
|
|
449
|
-
${
|
|
450
|
-
${
|
|
449
|
+
${Je("lit-html","js",o.js)}
|
|
450
|
+
${o.css&&Je("css","css",o.css.toString())}
|
|
451
451
|
</div>
|
|
452
452
|
|
|
453
453
|
<div class=stage>
|
|
454
|
-
${
|
|
454
|
+
${ro(o.styleboxCss,o.css??A``,o.render())}
|
|
455
455
|
</div>
|
|
456
456
|
</div>
|
|
457
457
|
`}
|
|
458
458
|
</section>
|
|
459
|
-
`});var
|
|
459
|
+
`});var so=()=>ct("ShinyCopy",[I({name:"normal",explain:"click-to-copy button.",render:()=>Wt("hello world"),styleboxCss:A`
|
|
460
460
|
:host {
|
|
461
461
|
font-size: 5em;
|
|
462
462
|
}
|
|
463
463
|
`,js:`
|
|
464
464
|
ShinyCopy("hello world")
|
|
465
|
-
`,css:
|
|
465
|
+
`,css:A`
|
|
466
466
|
[view="shiny-copy"] {
|
|
467
467
|
--shiny-happy: #0fa;
|
|
468
468
|
--shiny-angry: #f50;
|
|
469
469
|
--shiny-lame: #8888;
|
|
470
470
|
--shiny-inactive-opacity: 0.5;
|
|
471
471
|
}
|
|
472
|
-
`}),
|
|
472
|
+
`}),I({name:"fail",explain:E`
|
|
473
473
|
<p>click-to-copy button. <em>deliberately fails so you can see.</em></p>
|
|
474
|
-
`,render:()=>
|
|
474
|
+
`,render:()=>Wt("hello world",{fail:!0}),styleboxCss:A`
|
|
475
475
|
:host {
|
|
476
476
|
font-size: 4em;
|
|
477
477
|
}
|
|
478
478
|
`,js:`
|
|
479
479
|
ShinyCopy("hello world", {fail: true})
|
|
480
|
-
`,css:
|
|
480
|
+
`,css:A`
|
|
481
481
|
[view="shiny-copy"] {
|
|
482
482
|
--shiny-happy: #0fa;
|
|
483
483
|
--shiny-angry: #f50;
|
|
484
484
|
--shiny-lame: #8888;
|
|
485
485
|
--shiny-inactive-opacity: 0.5;
|
|
486
486
|
}
|
|
487
|
-
`})]);var
|
|
488
|
-
${
|
|
489
|
-
${
|
|
490
|
-
${
|
|
491
|
-
<p slot=panel>${
|
|
492
|
-
<p slot=panel>${
|
|
493
|
-
<p slot=panel>${
|
|
494
|
-
`}),styleboxCss:
|
|
487
|
+
`})]);var W=new me(()=>["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 io=()=>ct("ShinyTabs",[I({name:"shiny",explain:"a button-bar of mutually-exclusive tabs. panels are optional.",render:()=>Vt.with({props:[{snug:!0}],children:E`
|
|
488
|
+
${N("alpha")}
|
|
489
|
+
${N("bravo")}
|
|
490
|
+
${N("charlie")}
|
|
491
|
+
<p slot=panel>${W.takeFirst()}</p>
|
|
492
|
+
<p slot=panel>${W.takeFirst()}</p>
|
|
493
|
+
<p slot=panel>${W.takeFirst()}</p>
|
|
494
|
+
`}),styleboxCss:A`
|
|
495
495
|
[view="shiny-button"] { font-size: 1.2em; }
|
|
496
496
|
p { margin-top: var(--padding); }
|
|
497
497
|
`,js:`
|
|
@@ -506,18 +506,18 @@ button {
|
|
|
506
506
|
<p slot=panel>lorem caffeine..</p>
|
|
507
507
|
\`,
|
|
508
508
|
})
|
|
509
|
-
`,css:
|
|
509
|
+
`,css:A`
|
|
510
510
|
[view="shiny-tabs"] {
|
|
511
511
|
--shiny-rounded: 0.5em;
|
|
512
512
|
}
|
|
513
|
-
`}),
|
|
513
|
+
`}),I({name:"plain",explain:"a button-bar of mutually-exclusive tabs. panels are optional.",render:()=>Vt.with({props:[{snug:!0}],children:E`
|
|
514
514
|
<button>alpha</button>
|
|
515
515
|
<button>bravo</button>
|
|
516
516
|
<button>charlie</button>
|
|
517
|
-
<p slot=panel>${
|
|
518
|
-
<p slot=panel>${
|
|
519
|
-
<p slot=panel>${
|
|
520
|
-
`}),styleboxCss:
|
|
517
|
+
<p slot=panel>${W.takeFirst()}</p>
|
|
518
|
+
<p slot=panel>${W.takeFirst()}</p>
|
|
519
|
+
<p slot=panel>${W.takeFirst()}</p>
|
|
520
|
+
`}),styleboxCss:A`
|
|
521
521
|
p { margin-top: var(--padding); }
|
|
522
522
|
button {
|
|
523
523
|
font-size: 1.5em;
|
|
@@ -535,11 +535,11 @@ button {
|
|
|
535
535
|
<p slot=panel>lorem caffeine..</p>
|
|
536
536
|
\`,
|
|
537
537
|
})
|
|
538
|
-
`,css:
|
|
538
|
+
`,css:A`
|
|
539
539
|
[view="shiny-tabs"] {
|
|
540
540
|
--shiny-rounded: 0.5em;
|
|
541
541
|
}
|
|
542
|
-
`})]);var
|
|
542
|
+
`})]);var ao=()=>ct("ShinyButton",[I({name:"catalog",explain:"click-to-copy button.",render:()=>[N("e280"),N("e280",{vibe:"happy"}),N("e280",{vibe:"sad"}),N("e280",{vibe:"angry"}),N("e280",{vibe:"zesty"}),N("e280",{vibe:"quirky"}),N("e280",{vibe:"lame"})],styleboxCss:A`
|
|
543
543
|
:host {
|
|
544
544
|
font-size: 1.5em;
|
|
545
545
|
display: flex;
|
|
@@ -557,7 +557,7 @@ button {
|
|
|
557
557
|
ShinyButton("e280", {vibe: "quirky"}),
|
|
558
558
|
ShinyButton("e280", {vibe: "lame"}),
|
|
559
559
|
]
|
|
560
|
-
`,css:void 0})]);var
|
|
560
|
+
`,css:void 0})]);var lo=A`@layer view {
|
|
561
561
|
|
|
562
562
|
:host {
|
|
563
563
|
display: block;
|
|
@@ -681,32 +681,32 @@ button {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
|
|
684
|
-
}`;var
|
|
685
|
-
<button part=button @click="${
|
|
686
|
-
${
|
|
684
|
+
}`;var Ce=class{$open=U(!1);constructor(t=!1){t&&this.$open(!0)}get isOpen(){return this.$open()}async setOpen(t){return this.$open(t)}open=async()=>{await this.setOpen(!0)};close=async()=>{await this.setOpen(!1)};toggle=async()=>this.setOpen(!this.isOpen)};var Te=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=G`<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 uo=G`<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 po=z((e={})=>{H("shiny-drawer"),B(D,lo);let t=lt(),r=T(()=>new Te(t)),o=T(()=>e.control??new Ce),n=ke({side:String,button:Boolean,open:Boolean});n.open=o.isOpen;let s=e.button??n.button,l=e.side??(n.side==="right"?"right":"left");r.assign(l,o.isOpen?"opened":"closed"),at(()=>C.events(window,{keydown:d=>{d.code==="Escape"&&o.close()}}));function y(){return E`
|
|
685
|
+
<button part=button @click="${o.toggle}">
|
|
686
|
+
${o.isOpen?E`
|
|
687
687
|
<slot name=button-x>
|
|
688
|
-
${
|
|
688
|
+
${co}
|
|
689
689
|
</slot>
|
|
690
|
-
`:
|
|
690
|
+
`:E`
|
|
691
691
|
<slot name=button>
|
|
692
|
-
${
|
|
692
|
+
${uo}
|
|
693
693
|
</slot>
|
|
694
694
|
`}
|
|
695
695
|
</button>
|
|
696
|
-
`}return
|
|
697
|
-
<div class=shell ?data-open="${
|
|
698
|
-
<slot name=plate ?inert="${
|
|
696
|
+
`}return E`
|
|
697
|
+
<div class=shell ?data-open="${o.isOpen}" data-side="${l}">
|
|
698
|
+
<slot name=plate ?inert="${o.isOpen}"></slot>
|
|
699
699
|
|
|
700
700
|
<div class=clipper>
|
|
701
|
-
<div part=blanket @click="${
|
|
701
|
+
<div part=blanket @click="${o.close}" ?inert="${!o.isOpen}"></div>
|
|
702
702
|
|
|
703
703
|
<div part=tray>
|
|
704
|
-
<slot part=slate ?inert="${!
|
|
705
|
-
${
|
|
704
|
+
<slot part=slate ?inert="${!o.isOpen}"></slot>
|
|
705
|
+
${s?y():null}
|
|
706
706
|
</div>
|
|
707
707
|
</div>
|
|
708
708
|
</div>
|
|
709
|
-
`});var
|
|
709
|
+
`});var ho=A`
|
|
710
710
|
:host {
|
|
711
711
|
font-size: 1em;
|
|
712
712
|
width: 100%;
|
|
@@ -715,7 +715,7 @@ button {
|
|
|
715
715
|
p + p {
|
|
716
716
|
margin-top: var(--padding);
|
|
717
717
|
}
|
|
718
|
-
`,
|
|
718
|
+
`,fo=A`
|
|
719
719
|
[slot=plate] { padding-top: 2em; }
|
|
720
720
|
[view="shiny-drawer"] {
|
|
721
721
|
--slate-bg: color-mix(in oklch, var(--calm), #444);
|
|
@@ -723,13 +723,13 @@ button {
|
|
|
723
723
|
&:state(left)::part(slate) { border-bottom-right-radius: 0.5em; }
|
|
724
724
|
&:state(right)::part(slate) { border-bottom-left-radius: 0.5em; }
|
|
725
725
|
}
|
|
726
|
-
|
|
727
|
-
<header>${
|
|
726
|
+
`,mo=e=>po.with({props:[{button:!0,side:e}],children:E`
|
|
727
|
+
<header>${W.takeFirst()}</header>
|
|
728
728
|
<section slot=plate>
|
|
729
|
-
<p>${
|
|
730
|
-
<p>${
|
|
729
|
+
<p>${W.takeFirst()}</p>
|
|
730
|
+
<p>${W.takeFirst()}</p>
|
|
731
731
|
</section>
|
|
732
|
-
`}),
|
|
732
|
+
`}),go=()=>ct("ShinyDrawer",[I({name:"left",explain:"slide-out panel. button optional.",styleboxCss:ho,css:fo,render:()=>mo("left"),js:`
|
|
733
733
|
ShinyDrawer.with({
|
|
734
734
|
props: [{button: true, side: "left"}],
|
|
735
735
|
children: html\`
|
|
@@ -740,7 +740,7 @@ button {
|
|
|
740
740
|
</section>
|
|
741
741
|
\`,
|
|
742
742
|
})
|
|
743
|
-
`}),
|
|
743
|
+
`}),I({name:"right",explain:"slide-out panel. button optional.",styleboxCss:ho,css:fo,render:()=>mo("right"),js:`
|
|
744
744
|
ShinyDrawer.with({
|
|
745
745
|
props: [{button: true, side: "right"}],
|
|
746
746
|
children: html\`
|
|
@@ -751,7 +751,7 @@ button {
|
|
|
751
751
|
</section>
|
|
752
752
|
\`,
|
|
753
753
|
})
|
|
754
|
-
`})]);
|
|
754
|
+
`})]);C.render(C(".gallery"),[ao(),so(),io(),go()]);console.log("\u2728shiny\u2728");
|
|
755
755
|
/*! Bundled license information:
|
|
756
756
|
|
|
757
757
|
prismjs/prism.js:
|