inkblot 0.2.3 → 0.2.4
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.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/js-src/search.js +20 -0
- data/lib/assets/main.js +10 -10
- data/lib/inkblot/search.rb +4 -1
- data/lib/inkblot/version.rb +1 -1
- metadata +3 -3
- data/js-src/search.ts +0 -19
- /data/js-src/{main.ts → main.js} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1faf7f1aaf49c8428ba0bdaf8610a62bebbe922b6caa81446b82717ec134fa8b
|
|
4
|
+
data.tar.gz: 89cad054def98b92f090b17d0604889a6fcf482ee07715e4e74e276f4f8e6012
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f252daa89bc2e5041939c95c1cdd3db945cb4f222bd526195365b9e57435b35b7e17ff21677afbcbb94e2b28c3c95fd6db1beb0dfb0060c537255825fe7bd56
|
|
7
|
+
data.tar.gz: ffb8524b1853772c03ff99b0e8d48abfbbd5f500ce4aaa3b19f35b6e9948da5da0939b5d676c74f4ef09d9aba39e9a79dfbd613d78bb2d4f7033575b393a0553
|
data/Rakefile
CHANGED
|
@@ -14,7 +14,7 @@ task :css do
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
task :js do
|
|
17
|
-
system("esbuild --minify --bundle --splitting --format=esm --external:'*.json' --outdir=lib/assets ./js-src/main.
|
|
17
|
+
system("esbuild --minify --bundle --splitting --format=esm --external:'*.json' --outdir=lib/assets ./js-src/main.js")
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
require "inkblot/cli"
|
data/js-src/search.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "ninja-keys";
|
|
2
|
+
|
|
3
|
+
fetch(import.meta.resolve("./search.index.json")).then(async (resp) => {
|
|
4
|
+
const index = await resp.json();
|
|
5
|
+
document.querySelector("ninja-keys").data = index.sections
|
|
6
|
+
.flatMap(Object.entries)
|
|
7
|
+
.flatMap(([section, pages]) =>
|
|
8
|
+
pages.map((page) => {
|
|
9
|
+
const meta = index.pages[page];
|
|
10
|
+
return {
|
|
11
|
+
id: page,
|
|
12
|
+
title: "title" in meta.fm ? meta.fm.title : page,
|
|
13
|
+
handler: () => {
|
|
14
|
+
location.assign(meta.out);
|
|
15
|
+
},
|
|
16
|
+
section: section,
|
|
17
|
+
};
|
|
18
|
+
}),
|
|
19
|
+
);
|
|
20
|
+
});
|
data/lib/assets/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var ae=window,le=ae.ShadowRoot&&(ae.ShadyCSS===void 0||ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pe=Symbol(),We=new WeakMap,W=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Pe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(le&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=We.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&We.set(t,e))}return e}toString(){return this.cssText}},Qe=i=>new W(typeof i=="string"?i:i+"",void 0,Pe),O=(i,...e)=>{let t=i.length===1?i[0]:e.reduce(((r,n,o)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+i[o+1]),i[0]);return new W(t,i,Pe)},Ce=(i,e)=>{le?i.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((t=>{let r=document.createElement("style"),n=ae.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,i.appendChild(r)}))},ce=le?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Qe(t)})(i):i;var Oe,de=window,Ye=de.trustedTypes,Lt=Ye?Ye.emptyScript:"",Xe=de.reactiveElementPolyfillSupport,He={toAttribute(i,e){switch(e){case Boolean:i=i?Lt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Ze=(i,e)=>e!==i&&(e==e||i==i),Te={attribute:!0,type:String,converter:He,reflect:!1,hasChanged:Ze},Re="finalized",T=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach(((t,r)=>{let n=this._$Ep(r,t);n!==void 0&&(this._$Ev.set(n,r),e.push(n))})),e}static createProperty(e,t=Te){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let r=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,r,t);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){let o=this[e];this[t]=n,this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Te}static finalize(){if(this.hasOwnProperty(Re))return!1;this[Re]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let n of r)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let n of r)t.unshift(ce(n))}else e!==void 0&&t.push(ce(e));return t}static _$Ep(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach((t=>t(this)))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ce(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach((t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach((t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Te){var n;let o=this.constructor._$Ep(e,r);if(o!==void 0&&r.reflect===!0){let s=(((n=r.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?r.converter:He).toAttribute(t,r.type);this._$El=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(e,t){var r;let n=this.constructor,o=n._$Ev.get(e);if(o!==void 0&&this._$El!==o){let s=n.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?s.converter:He;this._$El=o,this[o]=a.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||Ze)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((n,o)=>this[o]=n)),this._$Ei=void 0);let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach((n=>{var o;return(o=n.hostUpdate)===null||o===void 0?void 0:o.call(n)})),this.update(r)):this._$Ek()}catch(n){throw t=!1,this._$Ek(),n}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach((r=>{var n;return(n=r.hostUpdated)===null||n===void 0?void 0:n.call(r)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach(((t,r)=>this._$EO(r,this[r],t))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};T[Re]=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},Xe?.({ReactiveElement:T}),((Oe=de.reactiveElementVersions)!==null&&Oe!==void 0?Oe:de.reactiveElementVersions=[]).push("1.6.3");var Me,he=window,q=he.trustedTypes,et=q?q.createPolicy("lit-html",{createHTML:i=>i}):void 0,ue="$lit$",H=`lit$${(Math.random()+"").slice(9)}$`,Ue="?"+H,Bt=`<${Ue}>`,I=document,Y=()=>I.createComment(""),X=i=>i===null||typeof i!="object"&&typeof i!="function",at=Array.isArray,lt=i=>at(i)||typeof i?.[Symbol.iterator]=="function",De=`[
|
|
2
2
|
\f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,it=/>/g,L=RegExp(`>|${De}(?:([^\\s"'>=/]+)(${De}*=${De}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),rt=/'/g,nt=/"/g,ct=/^(?:script|style|textarea|title)$/i,dt=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),_=dt(1),si=dt(2),w=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),ot=new WeakMap,B=I.createTreeWalker(I,129,null,!1);function ht(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(e):e}var ut=(i,e)=>{let t=i.length-1,r=[],n,o=e===2?"<svg>":"",s=Q;for(let a=0;a<t;a++){let l=i[a],c,d,u=-1,h=0;for(;h<l.length&&(s.lastIndex=h,d=s.exec(l),d!==null);)h=s.lastIndex,s===Q?d[1]==="!--"?s=tt:d[1]!==void 0?s=it:d[2]!==void 0?(ct.test(d[2])&&(n=RegExp("</"+d[2],"g")),s=L):d[3]!==void 0&&(s=L):s===L?d[0]===">"?(s=n??Q,u=-1):d[1]===void 0?u=-2:(u=s.lastIndex-d[2].length,c=d[1],s=d[3]===void 0?L:d[3]==='"'?nt:rt):s===nt||s===rt?s=L:s===tt||s===it?s=Q:(s=L,n=void 0);let p=s===L&&i[a+1].startsWith("/>")?" ":"";o+=s===Q?l+Bt:u>=0?(r.push(c),l.slice(0,u)+ue+l.slice(u)+H+p):l+H+(u===-2?(r.push(void 0),a):p)}return[ht(i,o+(i[t]||"<?>")+(e===2?"</svg>":"")),r]},Z=class i{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,d]=ut(e,t);if(this.el=i.createElement(c,r),B.currentNode=this.el.content,t===2){let u=this.el.content,h=u.firstChild;h.remove(),u.append(...h.childNodes)}for(;(n=B.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let u=[];for(let h of n.getAttributeNames())if(h.endsWith(ue)||h.startsWith(H)){let p=d[s++];if(u.push(h),p!==void 0){let f=n.getAttribute(p.toLowerCase()+ue).split(H),$=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:$[2],strings:f,ctor:$[1]==="."?fe:$[1]==="?"?ve:$[1]==="@"?me:z})}else l.push({type:6,index:o})}for(let h of u)n.removeAttribute(h)}if(ct.test(n.tagName)){let u=n.textContent.split(H),h=u.length-1;if(h>0){n.textContent=q?q.emptyScript:"";for(let p=0;p<h;p++)n.append(u[p],Y()),B.nextNode(),l.push({type:2,index:++o});n.append(u[h],Y())}}}else if(n.nodeType===8)if(n.data===Ue)l.push({type:2,index:o});else{let u=-1;for(;(u=n.data.indexOf(H,u+1))!==-1;)l.push({type:7,index:o}),u+=H.length-1}o++}}static createElement(e,t){let r=I.createElement("template");return r.innerHTML=e,r}};function N(i,e,t=i,r){var n,o,s,a;if(e===w)return e;let l=r!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[r]:t._$Cl,c=X(e)?void 0:e._$litDirective$;return l?.constructor!==c&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,t,r)),r!==void 0?((s=(a=t)._$Co)!==null&&s!==void 0?s:a._$Co=[])[r]=l:t._$Cl=l),l!==void 0&&(e=N(i,l._$AS(i,e.values),l,r)),e}var pe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:r},parts:n}=this._$AD,o=((t=e?.creationScope)!==null&&t!==void 0?t:I).importNode(r,!0);B.currentNode=o;let s=B.nextNode(),a=0,l=0,c=n[0];for(;c!==void 0;){if(a===c.index){let d;c.type===2?d=new G(s,s.nextSibling,this,e):c.type===1?d=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(d=new ye(s,this,e)),this._$AV.push(d),c=n[++l]}a!==c?.index&&(s=B.nextNode(),a++)}return B.currentNode=I,o}v(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},G=class i{constructor(e,t,r,n){var o;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cp=(o=n?.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=N(this,e,t),X(e)?e===v||e==null||e===""?(this._$AH!==v&&this._$AR(),this._$AH=v):e!==this._$AH&&e!==w&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):lt(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==v&&X(this._$AH)?this._$AA.nextSibling.data=e:this.$(I.createTextNode(e)),this._$AH=e}g(e){var t;let{values:r,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Z.createElement(ht(n.h,n.h[0]),this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(r);else{let s=new pe(o,this),a=s.u(this.options);s.v(r),this.$(a),this._$AH=s}}_$AC(e){let t=ot.get(e.strings);return t===void 0&&ot.set(e.strings,t=new Z(e)),t}T(e){at(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let o of e)n===t.length?t.push(r=new i(this.k(Y()),this.k(Y()),this,this.options)):r=t[n],r._$AI(o),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},z=class{constructor(e,t,r,n,o){this.type=1,this._$AH=v,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=v}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=N(this,e,t,0),s=!X(e)||e!==this._$AH&&e!==w,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=N(this,a[r+l],t,l),c===w&&(c=this._$AH[l]),s||(s=!X(c)||c!==this._$AH[l]),c===v?e=v:e!==v&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},fe=class extends z{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===v?void 0:e}},It=q?q.emptyScript:"",ve=class extends z{constructor(){super(...arguments),this.type=4}j(e){e&&e!==v?this.element.setAttribute(this.name,It):this.element.removeAttribute(this.name)}},me=class extends z{constructor(e,t,r,n,o){super(e,t,r,n,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=N(this,e,t,0))!==null&&r!==void 0?r:v)===w)return;let n=this._$AH,o=e===v&&n!==v||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==v&&(n===v||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}},ye=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){N(this,e)}},pt={O:ue,P:H,A:Ue,C:1,M:ut,L:pe,R:lt,D:N,I:G,V:z,H:ve,N:me,U:fe,F:ye},st=he.litHtmlPolyfillSupport;st?.(Z,G),((Me=he.litHtmlVersions)!==null&&Me!==void 0?Me:he.litHtmlVersions=[]).push("2.8.0");var ft=(i,e,t)=>{var r,n;let o=(r=t?.renderBefore)!==null&&r!==void 0?r:e,s=o._$litPart$;if(s===void 0){let a=(n=t?.renderBefore)!==null&&n!==void 0?n:null;o._$litPart$=s=new G(e.insertBefore(Y(),a),a,void 0,t??{})}return s._$AI(i),s};var Le,Be;var E=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ft(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return w}};E.finalized=!0,E._$litElement$=!0,(Le=globalThis.litElementHydrateSupport)===null||Le===void 0||Le.call(globalThis,{LitElement:E});var vt=globalThis.litElementPolyfillSupport;vt?.({LitElement:E});((Be=globalThis.litElementVersions)!==null&&Be!==void 0?Be:globalThis.litElementVersions=[]).push("3.3.3");var D=i=>e=>typeof e=="function"?((t,r)=>(customElements.define(t,r),r))(i,e):((t,r)=>{let{kind:n,elements:o}=r;return{kind:n,elements:o,finisher(s){customElements.define(t,s)}}})(i,e);var Nt=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},zt=(i,e,t)=>{e.constructor.createProperty(t,i)};function m(i){return(e,t)=>t!==void 0?zt(i,e,t):Nt(i,e)}function R(i){return m({...i,state:!0})}var Ie,Oi=((Ie=window.HTMLSlotElement)===null||Ie===void 0?void 0:Ie.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));var j={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},P=i=>(...e)=>({_$litDirective$:i,values:e}),S=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:Kt}=pt;var ge=i=>i.strings===void 0,mt=()=>document.createComment(""),F=(i,e,t)=>{var r;let n=i._$AA.parentNode,o=e===void 0?i._$AB:e._$AA;if(t===void 0){let s=n.insertBefore(mt(),o),a=n.insertBefore(mt(),o);t=new Kt(s,a,i,i.options)}else{let s=t._$AB.nextSibling,a=t._$AM,l=a!==i;if(l){let c;(r=t._$AQ)===null||r===void 0||r.call(t,i),t._$AM=i,t._$AP!==void 0&&(c=i._$AU)!==a._$AU&&t._$AP(c)}if(s!==o||l){let c=t._$AA;for(;c!==s;){let d=c.nextSibling;n.insertBefore(c,o),c=d}}}return t},U=(i,e,t=i)=>(i._$AI(e,t),i),Vt={},_e=(i,e=Vt)=>i._$AH=e,yt=i=>i._$AH,be=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA,r=i._$AB.nextSibling;for(;t!==r;){let n=t.nextSibling;t.remove(),t=n}};var gt=(i,e,t)=>{let r=new Map;for(let n=e;n<=t;n++)r.set(i[n],n);return r},_t=P(class extends S{constructor(i){if(super(i),i.type!==j.CHILD)throw Error("repeat() can only be used in text expressions")}ct(i,e,t){let r;t===void 0?t=e:e!==void 0&&(r=e);let n=[],o=[],s=0;for(let a of i)n[s]=r?r(a,s):s,o[s]=t(a,s),s++;return{values:o,keys:n}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,r]){var n;let o=yt(i),{values:s,keys:a}=this.ct(e,t,r);if(!Array.isArray(o))return this.ut=a,s;let l=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],c=[],d,u,h=0,p=o.length-1,f=0,$=s.length-1;for(;h<=p&&f<=$;)if(o[h]===null)h++;else if(o[p]===null)p--;else if(l[h]===a[f])c[f]=U(o[h],s[f]),h++,f++;else if(l[p]===a[$])c[$]=U(o[p],s[$]),p--,$--;else if(l[h]===a[$])c[$]=U(o[h],s[$]),F(i,c[$+1],o[h]),h++,$--;else if(l[p]===a[f])c[f]=U(o[p],s[f]),F(i,o[h],o[p]),p--,f++;else if(d===void 0&&(d=gt(a,f,$),u=gt(l,h,p)),d.has(l[h]))if(d.has(l[p])){let C=u.get(a[f]),Se=C!==void 0?o[C]:null;if(Se===null){let Je=F(i,o[h]);U(Je,s[f]),c[f]=Je}else c[f]=U(Se,s[f]),F(i,o[h],Se),o[C]=null;f++}else be(o[p]),p--;else be(o[h]),h++;for(;f<=$;){let C=F(i,c[$+1]);U(C,s[f]),c[f++]=C}for(;h<=p;){let C=o[h++];C!==null&&be(C)}return this.ut=a,_e(i,c),w}});var bt=P(class extends S{constructor(i){if(super(i),i.type!==j.PROPERTY&&i.type!==j.ATTRIBUTE&&i.type!==j.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ge(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===w||e===v)return e;let t=i.element,r=i.name;if(i.type===j.PROPERTY){if(e===t[r])return w}else if(i.type===j.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return w}else if(i.type===j.ATTRIBUTE&&t.getAttribute(r)===e+"")return w;return _e(i),e}});var te=(i,e)=>{var t,r;let n=i._$AN;if(n===void 0)return!1;for(let o of n)(r=(t=o)._$AO)===null||r===void 0||r.call(t,e,!1),te(o,e);return!0},$e=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},$t=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),Ft(e)}};function qt(i){this._$AN!==void 0?($e(this),this._$AM=i,$t(this)):this._$AM=i}function Gt(i,e=!1,t=0){let r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(r))for(let o=t;o<r.length;o++)te(r[o],!1),$e(r[o]);else r!=null&&(te(r,!1),$e(r));else te(this,i)}var Ft=i=>{var e,t,r,n;i.type==j.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=Gt),(t=(n=i)._$AQ)!==null&&t!==void 0||(n._$AQ=qt))},we=class extends S{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),$t(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,n;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(n=this.disconnected)===null||n===void 0||n.call(this)),t&&(te(this,e),$e(this))}setValue(e){if(ge(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var xe=()=>new ze,ze=class{},Ne=new WeakMap,Ae=P(class extends we{render(i){return v}update(i,[e]){var t;let r=e!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.dt=(t=i.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=i.element)),v}ot(i){var e;if(typeof this.G=="function"){let t=(e=this.dt)!==null&&e!==void 0?e:globalThis,r=Ne.get(t);r===void 0&&(r=new WeakMap,Ne.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.dt,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.dt,i)}else this.G.value=i}get rt(){var i,e,t;return typeof this.G=="function"?(e=Ne.get((i=this.dt)!==null&&i!==void 0?i:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var ie=P(class extends S{constructor(i){var e;if(super(i),i.type!==j.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter((e=>i[e])).join(" ")+" "}update(i,[e]){var t,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in e)e[o]&&!(!((t=this.nt)===null||t===void 0)&&t.has(o))&&this.it.add(o);return this.render(e)}let n=i.element.classList;this.it.forEach((o=>{o in e||(n.remove(o),this.it.delete(o))}));for(let o in e){let s=!!e[o];s===this.it.has(o)||!((r=this.nt)===null||r===void 0)&&r.has(o)||(s?(n.add(o),this.it.add(o)):(n.remove(o),this.it.delete(o)))}return w}});var Ke=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ve(i,e,t){i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent&&i.attachEvent("on".concat(e),function(){t(window.event)})}function Et(i,e){for(var t=e.slice(0,e.length-1),r=0;r<t.length;r++)t[r]=i[t[r].toLowerCase()];return t}function kt(i){typeof i!="string"&&(i=""),i=i.replace(/\s/g,"");for(var e=i.split(","),t=e.lastIndexOf("");t>=0;)e[t-1]+=",",e.splice(t,1),t=e.lastIndexOf("");return e}function Jt(i,e){for(var t=i.length>=e.length?i:e,r=i.length>=e.length?e:i,n=!0,o=0;o<t.length;o++)r.indexOf(t[o])===-1&&(n=!1);return n}var St={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21EA":20,",":188,".":190,"/":191,"`":192,"-":Ke?173:189,"=":Ke?61:187,";":Ke?59:186,"'":222,"[":219,"]":221,"\\":220},K={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},wt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},A={16:!1,18:!1,17:!1,91:!1},x={};for(re=1;re<20;re++)St["f".concat(re)]=111+re;var re,y=[],Pt="all",Ct=[],Ee=function(e){return St[e.toLowerCase()]||K[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Ot(i){Pt=i||"all"}function ne(){return Pt||"all"}function Wt(){return y.slice(0)}function Qt(i){var e=i.target||i.srcElement,t=e.tagName,r=!0;return(e.isContentEditable||(t==="INPUT"||t==="TEXTAREA"||t==="SELECT")&&!e.readOnly)&&(r=!1),r}function Yt(i){return typeof i=="string"&&(i=Ee(i)),y.indexOf(i)!==-1}function Xt(i,e){var t,r;i||(i=ne());for(var n in x)if(Object.prototype.hasOwnProperty.call(x,n))for(t=x[n],r=0;r<t.length;)t[r].scope===i?t.splice(r,1):r++;ne()===i&&Ot(e||"all")}function Zt(i){var e=i.keyCode||i.which||i.charCode,t=y.indexOf(e);if(t>=0&&y.splice(t,1),i.key&&i.key.toLowerCase()==="meta"&&y.splice(0,y.length),(e===93||e===224)&&(e=91),e in A){A[e]=!1;for(var r in K)K[r]===e&&(M[r]=!1)}}function ei(i){if(!i)Object.keys(x).forEach(function(s){return delete x[s]});else if(Array.isArray(i))i.forEach(function(s){s.key&&qe(s)});else if(typeof i=="object")i.key&&qe(i);else if(typeof i=="string"){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var n=t[0],o=t[1];typeof n=="function"&&(o=n,n=""),qe({key:i,scope:n,method:o,splitKey:"+"})}}var qe=function(e){var t=e.key,r=e.scope,n=e.method,o=e.splitKey,s=o===void 0?"+":o,a=kt(t);a.forEach(function(l){var c=l.split(s),d=c.length,u=c[d-1],h=u==="*"?"*":Ee(u);if(x[h]){r||(r=ne());var p=d>1?Et(K,c):[];x[h]=x[h].map(function(f){var $=n?f.method===n:!0;return $&&f.scope===r&&Jt(f.mods,p)?{}:f})}})};function xt(i,e,t){var r;if(e.scope===t||e.scope==="all"){r=e.mods.length>0;for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(!A[n]&&e.mods.indexOf(+n)>-1||A[n]&&e.mods.indexOf(+n)===-1)&&(r=!1);(e.mods.length===0&&!A[16]&&!A[18]&&!A[17]&&!A[91]||r||e.shortcut==="*")&&e.method(i,e)===!1&&(i.preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation&&i.stopPropagation(),i.cancelBubble&&(i.cancelBubble=!0))}}function At(i){var e=x["*"],t=i.keyCode||i.which||i.charCode;if(M.filter.call(this,i)){if((t===93||t===224)&&(t=91),y.indexOf(t)===-1&&t!==229&&y.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(p){var f=wt[p];i[p]&&y.indexOf(f)===-1?y.push(f):!i[p]&&y.indexOf(f)>-1?y.splice(y.indexOf(f),1):p==="metaKey"&&i[p]&&y.length===3&&(i.ctrlKey||i.shiftKey||i.altKey||(y=y.slice(y.indexOf(f))))}),t in A){A[t]=!0;for(var r in K)K[r]===t&&(M[r]=!0);if(!e)return}for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(A[n]=i[wt[n]]);i.getModifierState&&!(i.altKey&&!i.ctrlKey)&&i.getModifierState("AltGraph")&&(y.indexOf(17)===-1&&y.push(17),y.indexOf(18)===-1&&y.push(18),A[17]=!0,A[18]=!0);var o=ne();if(e)for(var s=0;s<e.length;s++)e[s].scope===o&&(i.type==="keydown"&&e[s].keydown||i.type==="keyup"&&e[s].keyup)&&xt(i,e[s],o);if(t in x){for(var a=0;a<x[t].length;a++)if((i.type==="keydown"&&x[t][a].keydown||i.type==="keyup"&&x[t][a].keyup)&&x[t][a].key){for(var l=x[t][a],c=l.splitKey,d=l.key.split(c),u=[],h=0;h<d.length;h++)u.push(Ee(d[h]));u.sort().join("")===y.sort().join("")&&xt(i,l,o)}}}}function ti(i){return Ct.indexOf(i)>-1}function M(i,e,t){y=[];var r=kt(i),n=[],o="all",s=document,a=0,l=!1,c=!0,d="+";for(t===void 0&&typeof e=="function"&&(t=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(o=e.scope),e.element&&(s=e.element),e.keyup&&(l=e.keyup),e.keydown!==void 0&&(c=e.keydown),typeof e.splitKey=="string"&&(d=e.splitKey)),typeof e=="string"&&(o=e);a<r.length;a++)i=r[a].split(d),n=[],i.length>1&&(n=Et(K,i)),i=i[i.length-1],i=i==="*"?"*":Ee(i),i in x||(x[i]=[]),x[i].push({keyup:l,keydown:c,scope:o,mods:n,shortcut:r[a],method:t,key:r[a],splitKey:d});typeof s<"u"&&!ti(s)&&window&&(Ct.push(s),Ve(s,"keydown",function(u){At(u)}),Ve(window,"focus",function(){y=[]}),Ve(s,"keyup",function(u){At(u),Zt(u)}))}var Ge={setScope:Ot,getScope:ne,deleteScope:Xt,getPressedKeyCodes:Wt,isPressed:Yt,filter:Qt,unbind:ei};for(je in Ge)Object.prototype.hasOwnProperty.call(Ge,je)&&(M[je]=Ge[je]);var je;typeof window<"u"&&(jt=window.hotkeys,M.noConflict=function(i){return i&&window.hotkeys===M&&(window.hotkeys=jt),M},window.hotkeys=M);var jt,k=M;var oe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},V=class extends E{constructor(){super(...arguments),this.placeholder="",this.hideBreadcrumbs=!1,this.breadcrumbHome="Home",this.breadcrumbs=[],this._inputRef=xe()}render(){let e="";if(!this.hideBreadcrumbs){let t=[];for(let r of this.breadcrumbs)t.push(_`<button
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),rt=/'/g,nt=/"/g,ct=/^(?:script|style|textarea|title)$/i,dt=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),g=dt(1),si=dt(2),w=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),ot=new WeakMap,B=I.createTreeWalker(I,129,null,!1);function ht(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(e):e}var ut=(i,e)=>{let t=i.length-1,r=[],n,o=e===2?"<svg>":"",s=Q;for(let a=0;a<t;a++){let l=i[a],c,d,u=-1,h=0;for(;h<l.length&&(s.lastIndex=h,d=s.exec(l),d!==null);)h=s.lastIndex,s===Q?d[1]==="!--"?s=tt:d[1]!==void 0?s=it:d[2]!==void 0?(ct.test(d[2])&&(n=RegExp("</"+d[2],"g")),s=L):d[3]!==void 0&&(s=L):s===L?d[0]===">"?(s=n??Q,u=-1):d[1]===void 0?u=-2:(u=s.lastIndex-d[2].length,c=d[1],s=d[3]===void 0?L:d[3]==='"'?nt:rt):s===nt||s===rt?s=L:s===tt||s===it?s=Q:(s=L,n=void 0);let p=s===L&&i[a+1].startsWith("/>")?" ":"";o+=s===Q?l+Bt:u>=0?(r.push(c),l.slice(0,u)+ue+l.slice(u)+H+p):l+H+(u===-2?(r.push(void 0),a):p)}return[ht(i,o+(i[t]||"<?>")+(e===2?"</svg>":"")),r]},Z=class i{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,d]=ut(e,t);if(this.el=i.createElement(c,r),B.currentNode=this.el.content,t===2){let u=this.el.content,h=u.firstChild;h.remove(),u.append(...h.childNodes)}for(;(n=B.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let u=[];for(let h of n.getAttributeNames())if(h.endsWith(ue)||h.startsWith(H)){let p=d[s++];if(u.push(h),p!==void 0){let f=n.getAttribute(p.toLowerCase()+ue).split(H),$=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:$[2],strings:f,ctor:$[1]==="."?fe:$[1]==="?"?ve:$[1]==="@"?me:z})}else l.push({type:6,index:o})}for(let h of u)n.removeAttribute(h)}if(ct.test(n.tagName)){let u=n.textContent.split(H),h=u.length-1;if(h>0){n.textContent=q?q.emptyScript:"";for(let p=0;p<h;p++)n.append(u[p],Y()),B.nextNode(),l.push({type:2,index:++o});n.append(u[h],Y())}}}else if(n.nodeType===8)if(n.data===Ue)l.push({type:2,index:o});else{let u=-1;for(;(u=n.data.indexOf(H,u+1))!==-1;)l.push({type:7,index:o}),u+=H.length-1}o++}}static createElement(e,t){let r=I.createElement("template");return r.innerHTML=e,r}};function N(i,e,t=i,r){var n,o,s,a;if(e===w)return e;let l=r!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[r]:t._$Cl,c=X(e)?void 0:e._$litDirective$;return l?.constructor!==c&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,t,r)),r!==void 0?((s=(a=t)._$Co)!==null&&s!==void 0?s:a._$Co=[])[r]=l:t._$Cl=l),l!==void 0&&(e=N(i,l._$AS(i,e.values),l,r)),e}var pe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:r},parts:n}=this._$AD,o=((t=e?.creationScope)!==null&&t!==void 0?t:I).importNode(r,!0);B.currentNode=o;let s=B.nextNode(),a=0,l=0,c=n[0];for(;c!==void 0;){if(a===c.index){let d;c.type===2?d=new G(s,s.nextSibling,this,e):c.type===1?d=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(d=new ye(s,this,e)),this._$AV.push(d),c=n[++l]}a!==c?.index&&(s=B.nextNode(),a++)}return B.currentNode=I,o}v(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},G=class i{constructor(e,t,r,n){var o;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cp=(o=n?.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=N(this,e,t),X(e)?e===v||e==null||e===""?(this._$AH!==v&&this._$AR(),this._$AH=v):e!==this._$AH&&e!==w&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):lt(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==v&&X(this._$AH)?this._$AA.nextSibling.data=e:this.$(I.createTextNode(e)),this._$AH=e}g(e){var t;let{values:r,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Z.createElement(ht(n.h,n.h[0]),this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(r);else{let s=new pe(o,this),a=s.u(this.options);s.v(r),this.$(a),this._$AH=s}}_$AC(e){let t=ot.get(e.strings);return t===void 0&&ot.set(e.strings,t=new Z(e)),t}T(e){at(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let o of e)n===t.length?t.push(r=new i(this.k(Y()),this.k(Y()),this,this.options)):r=t[n],r._$AI(o),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},z=class{constructor(e,t,r,n,o){this.type=1,this._$AH=v,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=v}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=N(this,e,t,0),s=!X(e)||e!==this._$AH&&e!==w,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=N(this,a[r+l],t,l),c===w&&(c=this._$AH[l]),s||(s=!X(c)||c!==this._$AH[l]),c===v?e=v:e!==v&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},fe=class extends z{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===v?void 0:e}},It=q?q.emptyScript:"",ve=class extends z{constructor(){super(...arguments),this.type=4}j(e){e&&e!==v?this.element.setAttribute(this.name,It):this.element.removeAttribute(this.name)}},me=class extends z{constructor(e,t,r,n,o){super(e,t,r,n,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=N(this,e,t,0))!==null&&r!==void 0?r:v)===w)return;let n=this._$AH,o=e===v&&n!==v||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==v&&(n===v||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}},ye=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){N(this,e)}},pt={O:ue,P:H,A:Ue,C:1,M:ut,L:pe,R:lt,D:N,I:G,V:z,H:ve,N:me,U:fe,F:ye},st=he.litHtmlPolyfillSupport;st?.(Z,G),((Me=he.litHtmlVersions)!==null&&Me!==void 0?Me:he.litHtmlVersions=[]).push("2.8.0");var ft=(i,e,t)=>{var r,n;let o=(r=t?.renderBefore)!==null&&r!==void 0?r:e,s=o._$litPart$;if(s===void 0){let a=(n=t?.renderBefore)!==null&&n!==void 0?n:null;o._$litPart$=s=new G(e.insertBefore(Y(),a),a,void 0,t??{})}return s._$AI(i),s};var Le,Be;var E=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ft(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return w}};E.finalized=!0,E._$litElement$=!0,(Le=globalThis.litElementHydrateSupport)===null||Le===void 0||Le.call(globalThis,{LitElement:E});var vt=globalThis.litElementPolyfillSupport;vt?.({LitElement:E});((Be=globalThis.litElementVersions)!==null&&Be!==void 0?Be:globalThis.litElementVersions=[]).push("3.3.3");var D=i=>e=>typeof e=="function"?((t,r)=>(customElements.define(t,r),r))(i,e):((t,r)=>{let{kind:n,elements:o}=r;return{kind:n,elements:o,finisher(s){customElements.define(t,s)}}})(i,e);var Nt=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},zt=(i,e,t)=>{e.constructor.createProperty(t,i)};function m(i){return(e,t)=>t!==void 0?zt(i,e,t):Nt(i,e)}function R(i){return m({...i,state:!0})}var Ie,Oi=((Ie=window.HTMLSlotElement)===null||Ie===void 0?void 0:Ie.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));var j={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},P=i=>(...e)=>({_$litDirective$:i,values:e}),S=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:Kt}=pt;var _e=i=>i.strings===void 0,mt=()=>document.createComment(""),F=(i,e,t)=>{var r;let n=i._$AA.parentNode,o=e===void 0?i._$AB:e._$AA;if(t===void 0){let s=n.insertBefore(mt(),o),a=n.insertBefore(mt(),o);t=new Kt(s,a,i,i.options)}else{let s=t._$AB.nextSibling,a=t._$AM,l=a!==i;if(l){let c;(r=t._$AQ)===null||r===void 0||r.call(t,i),t._$AM=i,t._$AP!==void 0&&(c=i._$AU)!==a._$AU&&t._$AP(c)}if(s!==o||l){let c=t._$AA;for(;c!==s;){let d=c.nextSibling;n.insertBefore(c,o),c=d}}}return t},U=(i,e,t=i)=>(i._$AI(e,t),i),Vt={},ge=(i,e=Vt)=>i._$AH=e,yt=i=>i._$AH,be=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA,r=i._$AB.nextSibling;for(;t!==r;){let n=t.nextSibling;t.remove(),t=n}};var _t=(i,e,t)=>{let r=new Map;for(let n=e;n<=t;n++)r.set(i[n],n);return r},gt=P(class extends S{constructor(i){if(super(i),i.type!==j.CHILD)throw Error("repeat() can only be used in text expressions")}ct(i,e,t){let r;t===void 0?t=e:e!==void 0&&(r=e);let n=[],o=[],s=0;for(let a of i)n[s]=r?r(a,s):s,o[s]=t(a,s),s++;return{values:o,keys:n}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,r]){var n;let o=yt(i),{values:s,keys:a}=this.ct(e,t,r);if(!Array.isArray(o))return this.ut=a,s;let l=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],c=[],d,u,h=0,p=o.length-1,f=0,$=s.length-1;for(;h<=p&&f<=$;)if(o[h]===null)h++;else if(o[p]===null)p--;else if(l[h]===a[f])c[f]=U(o[h],s[f]),h++,f++;else if(l[p]===a[$])c[$]=U(o[p],s[$]),p--,$--;else if(l[h]===a[$])c[$]=U(o[h],s[$]),F(i,c[$+1],o[h]),h++,$--;else if(l[p]===a[f])c[f]=U(o[p],s[f]),F(i,o[h],o[p]),p--,f++;else if(d===void 0&&(d=_t(a,f,$),u=_t(l,h,p)),d.has(l[h]))if(d.has(l[p])){let C=u.get(a[f]),Se=C!==void 0?o[C]:null;if(Se===null){let Je=F(i,o[h]);U(Je,s[f]),c[f]=Je}else c[f]=U(Se,s[f]),F(i,o[h],Se),o[C]=null;f++}else be(o[p]),p--;else be(o[h]),h++;for(;f<=$;){let C=F(i,c[$+1]);U(C,s[f]),c[f++]=C}for(;h<=p;){let C=o[h++];C!==null&&be(C)}return this.ut=a,ge(i,c),w}});var bt=P(class extends S{constructor(i){if(super(i),i.type!==j.PROPERTY&&i.type!==j.ATTRIBUTE&&i.type!==j.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_e(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===w||e===v)return e;let t=i.element,r=i.name;if(i.type===j.PROPERTY){if(e===t[r])return w}else if(i.type===j.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return w}else if(i.type===j.ATTRIBUTE&&t.getAttribute(r)===e+"")return w;return ge(i),e}});var te=(i,e)=>{var t,r;let n=i._$AN;if(n===void 0)return!1;for(let o of n)(r=(t=o)._$AO)===null||r===void 0||r.call(t,e,!1),te(o,e);return!0},$e=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},$t=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),Ft(e)}};function qt(i){this._$AN!==void 0?($e(this),this._$AM=i,$t(this)):this._$AM=i}function Gt(i,e=!1,t=0){let r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(r))for(let o=t;o<r.length;o++)te(r[o],!1),$e(r[o]);else r!=null&&(te(r,!1),$e(r));else te(this,i)}var Ft=i=>{var e,t,r,n;i.type==j.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=Gt),(t=(n=i)._$AQ)!==null&&t!==void 0||(n._$AQ=qt))},we=class extends S{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),$t(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,n;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(n=this.disconnected)===null||n===void 0||n.call(this)),t&&(te(this,e),$e(this))}setValue(e){if(_e(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var xe=()=>new ze,ze=class{},Ne=new WeakMap,Ae=P(class extends we{render(i){return v}update(i,[e]){var t;let r=e!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.dt=(t=i.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=i.element)),v}ot(i){var e;if(typeof this.G=="function"){let t=(e=this.dt)!==null&&e!==void 0?e:globalThis,r=Ne.get(t);r===void 0&&(r=new WeakMap,Ne.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.dt,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.dt,i)}else this.G.value=i}get rt(){var i,e,t;return typeof this.G=="function"?(e=Ne.get((i=this.dt)!==null&&i!==void 0?i:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var ie=P(class extends S{constructor(i){var e;if(super(i),i.type!==j.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter((e=>i[e])).join(" ")+" "}update(i,[e]){var t,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in e)e[o]&&!(!((t=this.nt)===null||t===void 0)&&t.has(o))&&this.it.add(o);return this.render(e)}let n=i.element.classList;this.it.forEach((o=>{o in e||(n.remove(o),this.it.delete(o))}));for(let o in e){let s=!!e[o];s===this.it.has(o)||!((r=this.nt)===null||r===void 0)&&r.has(o)||(s?(n.add(o),this.it.add(o)):(n.remove(o),this.it.delete(o)))}return w}});var Ke=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ve(i,e,t){i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent&&i.attachEvent("on".concat(e),function(){t(window.event)})}function Et(i,e){for(var t=e.slice(0,e.length-1),r=0;r<t.length;r++)t[r]=i[t[r].toLowerCase()];return t}function kt(i){typeof i!="string"&&(i=""),i=i.replace(/\s/g,"");for(var e=i.split(","),t=e.lastIndexOf("");t>=0;)e[t-1]+=",",e.splice(t,1),t=e.lastIndexOf("");return e}function Jt(i,e){for(var t=i.length>=e.length?i:e,r=i.length>=e.length?e:i,n=!0,o=0;o<t.length;o++)r.indexOf(t[o])===-1&&(n=!1);return n}var St={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21EA":20,",":188,".":190,"/":191,"`":192,"-":Ke?173:189,"=":Ke?61:187,";":Ke?59:186,"'":222,"[":219,"]":221,"\\":220},K={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},wt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},A={16:!1,18:!1,17:!1,91:!1},x={};for(re=1;re<20;re++)St["f".concat(re)]=111+re;var re,y=[],Pt="all",Ct=[],Ee=function(e){return St[e.toLowerCase()]||K[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Ot(i){Pt=i||"all"}function ne(){return Pt||"all"}function Wt(){return y.slice(0)}function Qt(i){var e=i.target||i.srcElement,t=e.tagName,r=!0;return(e.isContentEditable||(t==="INPUT"||t==="TEXTAREA"||t==="SELECT")&&!e.readOnly)&&(r=!1),r}function Yt(i){return typeof i=="string"&&(i=Ee(i)),y.indexOf(i)!==-1}function Xt(i,e){var t,r;i||(i=ne());for(var n in x)if(Object.prototype.hasOwnProperty.call(x,n))for(t=x[n],r=0;r<t.length;)t[r].scope===i?t.splice(r,1):r++;ne()===i&&Ot(e||"all")}function Zt(i){var e=i.keyCode||i.which||i.charCode,t=y.indexOf(e);if(t>=0&&y.splice(t,1),i.key&&i.key.toLowerCase()==="meta"&&y.splice(0,y.length),(e===93||e===224)&&(e=91),e in A){A[e]=!1;for(var r in K)K[r]===e&&(M[r]=!1)}}function ei(i){if(!i)Object.keys(x).forEach(function(s){return delete x[s]});else if(Array.isArray(i))i.forEach(function(s){s.key&&qe(s)});else if(typeof i=="object")i.key&&qe(i);else if(typeof i=="string"){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var n=t[0],o=t[1];typeof n=="function"&&(o=n,n=""),qe({key:i,scope:n,method:o,splitKey:"+"})}}var qe=function(e){var t=e.key,r=e.scope,n=e.method,o=e.splitKey,s=o===void 0?"+":o,a=kt(t);a.forEach(function(l){var c=l.split(s),d=c.length,u=c[d-1],h=u==="*"?"*":Ee(u);if(x[h]){r||(r=ne());var p=d>1?Et(K,c):[];x[h]=x[h].map(function(f){var $=n?f.method===n:!0;return $&&f.scope===r&&Jt(f.mods,p)?{}:f})}})};function xt(i,e,t){var r;if(e.scope===t||e.scope==="all"){r=e.mods.length>0;for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(!A[n]&&e.mods.indexOf(+n)>-1||A[n]&&e.mods.indexOf(+n)===-1)&&(r=!1);(e.mods.length===0&&!A[16]&&!A[18]&&!A[17]&&!A[91]||r||e.shortcut==="*")&&e.method(i,e)===!1&&(i.preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation&&i.stopPropagation(),i.cancelBubble&&(i.cancelBubble=!0))}}function At(i){var e=x["*"],t=i.keyCode||i.which||i.charCode;if(M.filter.call(this,i)){if((t===93||t===224)&&(t=91),y.indexOf(t)===-1&&t!==229&&y.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(p){var f=wt[p];i[p]&&y.indexOf(f)===-1?y.push(f):!i[p]&&y.indexOf(f)>-1?y.splice(y.indexOf(f),1):p==="metaKey"&&i[p]&&y.length===3&&(i.ctrlKey||i.shiftKey||i.altKey||(y=y.slice(y.indexOf(f))))}),t in A){A[t]=!0;for(var r in K)K[r]===t&&(M[r]=!0);if(!e)return}for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(A[n]=i[wt[n]]);i.getModifierState&&!(i.altKey&&!i.ctrlKey)&&i.getModifierState("AltGraph")&&(y.indexOf(17)===-1&&y.push(17),y.indexOf(18)===-1&&y.push(18),A[17]=!0,A[18]=!0);var o=ne();if(e)for(var s=0;s<e.length;s++)e[s].scope===o&&(i.type==="keydown"&&e[s].keydown||i.type==="keyup"&&e[s].keyup)&&xt(i,e[s],o);if(t in x){for(var a=0;a<x[t].length;a++)if((i.type==="keydown"&&x[t][a].keydown||i.type==="keyup"&&x[t][a].keyup)&&x[t][a].key){for(var l=x[t][a],c=l.splitKey,d=l.key.split(c),u=[],h=0;h<d.length;h++)u.push(Ee(d[h]));u.sort().join("")===y.sort().join("")&&xt(i,l,o)}}}}function ti(i){return Ct.indexOf(i)>-1}function M(i,e,t){y=[];var r=kt(i),n=[],o="all",s=document,a=0,l=!1,c=!0,d="+";for(t===void 0&&typeof e=="function"&&(t=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(o=e.scope),e.element&&(s=e.element),e.keyup&&(l=e.keyup),e.keydown!==void 0&&(c=e.keydown),typeof e.splitKey=="string"&&(d=e.splitKey)),typeof e=="string"&&(o=e);a<r.length;a++)i=r[a].split(d),n=[],i.length>1&&(n=Et(K,i)),i=i[i.length-1],i=i==="*"?"*":Ee(i),i in x||(x[i]=[]),x[i].push({keyup:l,keydown:c,scope:o,mods:n,shortcut:r[a],method:t,key:r[a],splitKey:d});typeof s<"u"&&!ti(s)&&window&&(Ct.push(s),Ve(s,"keydown",function(u){At(u)}),Ve(window,"focus",function(){y=[]}),Ve(s,"keyup",function(u){At(u),Zt(u)}))}var Ge={setScope:Ot,getScope:ne,deleteScope:Xt,getPressedKeyCodes:Wt,isPressed:Yt,filter:Qt,unbind:ei};for(je in Ge)Object.prototype.hasOwnProperty.call(Ge,je)&&(M[je]=Ge[je]);var je;typeof window<"u"&&(jt=window.hotkeys,M.noConflict=function(i){return i&&window.hotkeys===M&&(window.hotkeys=jt),M},window.hotkeys=M);var jt,k=M;var oe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},V=class extends E{constructor(){super(...arguments),this.placeholder="",this.hideBreadcrumbs=!1,this.breadcrumbHome="Home",this.breadcrumbs=[],this._inputRef=xe()}render(){let e="";if(!this.hideBreadcrumbs){let t=[];for(let r of this.breadcrumbs)t.push(g`<button
|
|
4
4
|
tabindex="-1"
|
|
5
5
|
@click=${()=>this.selectParent(r)}
|
|
6
6
|
class="breadcrumb"
|
|
7
7
|
>
|
|
8
8
|
${r}
|
|
9
|
-
</button>`);e=
|
|
9
|
+
</button>`);e=g`<div class="breadcrumb-list">
|
|
10
10
|
<button
|
|
11
11
|
tabindex="-1"
|
|
12
12
|
@click=${()=>this.selectParent()}
|
|
@@ -15,7 +15,7 @@ var ae=window,le=ae.ShadowRoot&&(ae.ShadyCSS===void 0||ae.ShadyCSS.nativeShadow)
|
|
|
15
15
|
${this.breadcrumbHome}
|
|
16
16
|
</button>
|
|
17
17
|
${t}
|
|
18
|
-
</div>`}return
|
|
18
|
+
</div>`}return g`
|
|
19
19
|
${e}
|
|
20
20
|
<div part="ninja-input-wrapper" class="search-wrapper">
|
|
21
21
|
<input
|
|
@@ -79,11 +79,11 @@ var ae=window,le=ae.ShadowRoot&&(ae.ShadyCSS===void 0||ae.ShadyCSS.nativeShadow)
|
|
|
79
79
|
display: flex;
|
|
80
80
|
border-bottom: var(--ninja-separate-border);
|
|
81
81
|
}
|
|
82
|
-
`;oe([m()],V.prototype,"placeholder",void 0);oe([m({type:Boolean})],V.prototype,"hideBreadcrumbs",void 0);oe([m()],V.prototype,"breadcrumbHome",void 0);oe([m({type:Array})],V.prototype,"breadcrumbs",void 0);V=oe([D("ninja-header")],V);var se=class extends S{constructor(e){if(super(e),this.et=v,e.type!==j.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===v||e==null)return this.ft=void 0,this.et=e;if(e===w)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;let t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}};se.directiveName="unsafeHTML",se.resultType=1;var Tt=P(se);function*Ht(i,e){let t=typeof e=="function";if(i!==void 0){let r=-1;for(let n of i)r>-1&&(yield t?e(r):e),r++,yield n}}function Rt(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o}var Mt=O`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;var Fe=class extends E{render(){return
|
|
82
|
+
`;oe([m()],V.prototype,"placeholder",void 0);oe([m({type:Boolean})],V.prototype,"hideBreadcrumbs",void 0);oe([m()],V.prototype,"breadcrumbHome",void 0);oe([m({type:Array})],V.prototype,"breadcrumbs",void 0);V=oe([D("ninja-header")],V);var se=class extends S{constructor(e){if(super(e),this.et=v,e.type!==j.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===v||e==null)return this.ft=void 0,this.et=e;if(e===w)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;let t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}};se.directiveName="unsafeHTML",se.resultType=1;var Tt=P(se);function*Ht(i,e){let t=typeof e=="function";if(i!==void 0){let r=-1;for(let n of i)r>-1&&(yield t?e(r):e),r++,yield n}}function Rt(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o}var Mt=O`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;var Fe=class extends E{render(){return g`<span><slot></slot></span>`}};Fe.styles=[Mt];Fe=Rt([D("mwc-icon")],Fe);var ke=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},J=class extends E{constructor(){super(),this.selected=!1,this.hotKeysJoinedView=!0,this.addEventListener("click",this.click)}ensureInView(){requestAnimationFrame(()=>this.scrollIntoView({block:"nearest"}))}click(){this.dispatchEvent(new CustomEvent("actionsSelected",{detail:this.action,bubbles:!0,composed:!0}))}updated(e){e.has("selected")&&this.selected&&this.ensureInView()}render(){let e;this.action.mdIcon?e=g`<mwc-icon part="ninja-icon" class="ninja-icon"
|
|
83
83
|
>${this.action.mdIcon}</mwc-icon
|
|
84
|
-
>`:this.action.icon&&(e=Tt(this.action.icon||""));let t;this.action.hotkey&&(this.hotKeysJoinedView?t=this.action.hotkey.split(",").map(n=>{let o=n.split("+"),s=
|
|
84
|
+
>`:this.action.icon&&(e=Tt(this.action.icon||""));let t;this.action.hotkey&&(this.hotKeysJoinedView?t=this.action.hotkey.split(",").map(n=>{let o=n.split("+"),s=g`${Ht(o.map(a=>g`<kbd>${a}</kbd>`),"+")}`;return g`<div class="ninja-hotkey ninja-hotkeys">
|
|
85
85
|
${s}
|
|
86
|
-
</div>`}):t=this.action.hotkey.split(",").map(n=>{let s=n.split("+").map(a=>
|
|
86
|
+
</div>`}):t=this.action.hotkey.split(",").map(n=>{let s=n.split("+").map(a=>g`<kbd class="ninja-hotkey">${a}</kbd>`);return g`<kbd class="ninja-hotkeys">${s}</kbd>`}));let r={selected:this.selected,"ninja-action":!0};return g`
|
|
87
87
|
<div
|
|
88
88
|
class="ninja-action"
|
|
89
89
|
part="ninja-action ${this.selected?"ninja-selected":""}"
|
|
@@ -162,7 +162,7 @@ var ae=window,le=ae.ShadowRoot&&(ae.ShadyCSS===void 0||ae.ShadyCSS.nativeShadow)
|
|
|
162
162
|
.ninja-hotkeys + .ninja-hotkeys {
|
|
163
163
|
margin-left: 1em;
|
|
164
164
|
}
|
|
165
|
-
`;ke([m({type:Object})],J.prototype,"action",void 0);ke([m({type:Boolean})],J.prototype,"selected",void 0);ke([m({type:Boolean})],J.prototype,"hotKeysJoinedView",void 0);J=ke([D("ninja-action")],J);var Dt=
|
|
165
|
+
`;ke([m({type:Object})],J.prototype,"action",void 0);ke([m({type:Boolean})],J.prototype,"selected",void 0);ke([m({type:Boolean})],J.prototype,"hotKeysJoinedView",void 0);J=ke([D("ninja-action")],J);var Dt=g` <div class="modal-footer" slot="footer">
|
|
166
166
|
<span class="help">
|
|
167
167
|
<svg
|
|
168
168
|
version="1.0"
|
|
@@ -398,14 +398,14 @@ var ae=window,le=ae.ShadowRoot&&(ae.ShadyCSS===void 0||ae.ShadyCSS.nativeShadow)
|
|
|
398
398
|
.ninja-examplekey.backspace {
|
|
399
399
|
opacity: 0.7;
|
|
400
400
|
}
|
|
401
|
-
`;var b=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},
|
|
401
|
+
`;var b=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_=class extends E{constructor(){super(...arguments),this.placeholder="Type a command or search...",this.disableHotkeys=!1,this.hideBreadcrumbs=!1,this.openHotkey="cmd+k,ctrl+k",this.navigationUpHotkey="up,shift+tab",this.navigationDownHotkey="down,tab",this.closeHotkey="esc",this.goBackHotkey="backspace",this.selectHotkey="enter",this.hotKeysJoinedView=!1,this.noAutoLoadMdIcons=!1,this.data=[],this.visible=!1,this._bump=!0,this._actionMatches=[],this._search="",this._flatData=[],this._headerRef=xe()}open(e={}){this._bump=!0,this.visible=!0,this._headerRef.value.focusSearch(),this._actionMatches.length>0&&(this._selected=this._actionMatches[0]),this.setParent(e.parent)}close(){this._bump=!1,this.visible=!1}setParent(e){e?this._currentRoot=e:this._currentRoot=void 0,this._selected=void 0,this._search="",this._headerRef.value.setSearch("")}get breadcrumbs(){var e;let t=[],r=(e=this._selected)===null||e===void 0?void 0:e.parent;if(r)for(t.push(r);r;){let n=this._flatData.find(o=>o.id===r);n?.parent&&t.push(n.parent),r=n?n.parent:void 0}return t.reverse()}connectedCallback(){super.connectedCallback(),this.noAutoLoadMdIcons||document.fonts.load("24px Material Icons","apps").then(()=>{}),this._registerInternalHotkeys()}disconnectedCallback(){super.disconnectedCallback(),this._unregisterInternalHotkeys()}_flattern(e,t){let r=[];return e||(e=[]),e.map(n=>{let o=n.children&&n.children.some(a=>typeof a=="string"),s={...n,parent:n.parent||t};return o||(s.children&&s.children.length&&(t=n.id,r=[...r,...s.children]),s.children=s.children?s.children.map(a=>a.id):[]),s}).concat(r.length?this._flattern(r,t):r)}update(e){e.has("data")&&!this.disableHotkeys&&(this._flatData=this._flattern(this.data),this._flatData.filter(t=>!!t.hotkey).forEach(t=>{k(t.hotkey,r=>{r.preventDefault(),t.handler&&t.handler(t)})})),super.update(e)}_registerInternalHotkeys(){this.openHotkey&&k(this.openHotkey,e=>{e.preventDefault(),this.visible?this.close():this.open()}),this.selectHotkey&&k(this.selectHotkey,e=>{this.visible&&(e.preventDefault(),this._actionSelected(this._actionMatches[this._selectedIndex]))}),this.goBackHotkey&&k(this.goBackHotkey,e=>{this.visible&&(this._search||(e.preventDefault(),this._goBack()))}),this.navigationDownHotkey&&k(this.navigationDownHotkey,e=>{this.visible&&(e.preventDefault(),this._selectedIndex>=this._actionMatches.length-1?this._selected=this._actionMatches[0]:this._selected=this._actionMatches[this._selectedIndex+1])}),this.navigationUpHotkey&&k(this.navigationUpHotkey,e=>{this.visible&&(e.preventDefault(),this._selectedIndex===0?this._selected=this._actionMatches[this._actionMatches.length-1]:this._selected=this._actionMatches[this._selectedIndex-1])}),this.closeHotkey&&k(this.closeHotkey,()=>{this.visible&&this.close()})}_unregisterInternalHotkeys(){this.openHotkey&&k.unbind(this.openHotkey),this.selectHotkey&&k.unbind(this.selectHotkey),this.goBackHotkey&&k.unbind(this.goBackHotkey),this.navigationDownHotkey&&k.unbind(this.navigationDownHotkey),this.navigationUpHotkey&&k.unbind(this.navigationUpHotkey),this.closeHotkey&&k.unbind(this.closeHotkey)}_actionFocused(e,t){this._selected=e,t.target.ensureInView()}_onTransitionEnd(){this._bump=!1}_goBack(){let e=this.breadcrumbs.length>1?this.breadcrumbs[this.breadcrumbs.length-2]:void 0;this.setParent(e)}render(){let e={bump:this._bump,"modal-content":!0},t={visible:this.visible,modal:!0},n=this._flatData.filter(a=>{var l;let c=new RegExp(this._search,"gi"),d=a.title.match(c)||((l=a.keywords)===null||l===void 0?void 0:l.match(c));return(!this._currentRoot&&this._search||a.parent===this._currentRoot)&&d}).reduce((a,l)=>a.set(l.section,[...a.get(l.section)||[],l]),new Map);this._actionMatches=[...n.values()].flat(),this._actionMatches.length>0&&this._selectedIndex===-1&&(this._selected=this._actionMatches[0]),this._actionMatches.length===0&&(this._selected=void 0);let o=a=>g` ${gt(a,l=>l.id,l=>{var c;return g`<ninja-action
|
|
402
402
|
exportparts="ninja-action,ninja-selected,ninja-icon"
|
|
403
403
|
.selected=${bt(l.id===((c=this._selected)===null||c===void 0?void 0:c.id))}
|
|
404
404
|
.hotKeysJoinedView=${this.hotKeysJoinedView}
|
|
405
405
|
@mouseover=${d=>this._actionFocused(l,d)}
|
|
406
406
|
@actionsSelected=${d=>this._actionSelected(d.detail)}
|
|
407
407
|
.action=${l}
|
|
408
|
-
></ninja-action>`})}`,s=[];return n.forEach((a,l)=>{let c=l?
|
|
408
|
+
></ninja-action>`})}`,s=[];return n.forEach((a,l)=>{let c=l?g`<div class="group-header">${l}</div>`:void 0;s.push(g`${c}${o(a)}`)}),g`
|
|
409
409
|
<div @click=${this._overlayClick} class=${ie(t)}>
|
|
410
410
|
<div class=${ie(e)} @animationend=${this._onTransitionEnd}>
|
|
411
411
|
<ninja-header
|
|
@@ -425,7 +425,7 @@ var ae=window,le=ae.ShadowRoot&&(ae.ShadyCSS===void 0||ae.ShadyCSS.nativeShadow)
|
|
|
425
425
|
<slot name="footer"> ${Dt} </slot>
|
|
426
426
|
</div>
|
|
427
427
|
</div>
|
|
428
|
-
`}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){let r=e.handler(e);r?.keepOpen||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;!((t=e.target)===null||t===void 0)&&t.classList.contains("modal")&&this.close()}};
|
|
428
|
+
`}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){let r=e.handler(e);r?.keepOpen||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;!((t=e.target)===null||t===void 0)&&t.classList.contains("modal")&&this.close()}};_.styles=[Ut];b([m({type:String})],_.prototype,"placeholder",void 0);b([m({type:Boolean})],_.prototype,"disableHotkeys",void 0);b([m({type:Boolean})],_.prototype,"hideBreadcrumbs",void 0);b([m()],_.prototype,"openHotkey",void 0);b([m()],_.prototype,"navigationUpHotkey",void 0);b([m()],_.prototype,"navigationDownHotkey",void 0);b([m()],_.prototype,"closeHotkey",void 0);b([m()],_.prototype,"goBackHotkey",void 0);b([m()],_.prototype,"selectHotkey",void 0);b([m({type:Boolean})],_.prototype,"hotKeysJoinedView",void 0);b([m({type:Boolean})],_.prototype,"noAutoLoadMdIcons",void 0);b([m({type:Array,hasChanged(){return!0}})],_.prototype,"data",void 0);b([R()],_.prototype,"visible",void 0);b([R()],_.prototype,"_bump",void 0);b([R()],_.prototype,"_actionMatches",void 0);b([R()],_.prototype,"_search",void 0);b([R()],_.prototype,"_currentRoot",void 0);b([R()],_.prototype,"_flatData",void 0);b([R()],_.prototype,"breadcrumbs",null);b([R()],_.prototype,"_selected",void 0);_=b([D("ninja-keys")],_);fetch(import.meta.resolve("./search.index.json")).then(async i=>{let e=await i.json();document.querySelector("ninja-keys").data=e.sections.flatMap(Object.entries).flatMap(([t,r])=>r.map(n=>{let o=e.pages[n];return{id:n,title:"title"in o.fm?o.fm.title:n,handler:()=>{location.assign(o.out)},section:t}}))});
|
|
429
429
|
/*! Bundled license information:
|
|
430
430
|
|
|
431
431
|
@lit/reactive-element/css-tag.js:
|
data/lib/inkblot/search.rb
CHANGED
data/lib/inkblot/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inkblot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aleks Rutins
|
|
@@ -127,8 +127,8 @@ files:
|
|
|
127
127
|
- docs/pages/docs/tailwind.md
|
|
128
128
|
- docs/pages/index.md
|
|
129
129
|
- exe/inkblot
|
|
130
|
-
- js-src/main.
|
|
131
|
-
- js-src/search.
|
|
130
|
+
- js-src/main.js
|
|
131
|
+
- js-src/search.js
|
|
132
132
|
- lib/assets/main.js
|
|
133
133
|
- lib/inkblot.min.css
|
|
134
134
|
- lib/inkblot.rb
|
data/js-src/search.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "ninja-keys";
|
|
2
|
-
|
|
3
|
-
type Page = {
|
|
4
|
-
out: string;
|
|
5
|
-
fm: Record<string, any>;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
fetch(import.meta.resolve("./search.index.json")).then(async (resp) => {
|
|
9
|
-
const index = await resp.json();
|
|
10
|
-
document.querySelector("ninja-keys")!.data = (
|
|
11
|
-
Object.entries(index) as [string, Page][]
|
|
12
|
-
).map(([id, { out, fm }]) => ({
|
|
13
|
-
id,
|
|
14
|
-
title: "title" in fm ? fm.title : id,
|
|
15
|
-
handler: () => {
|
|
16
|
-
location.assign(out);
|
|
17
|
-
},
|
|
18
|
-
}));
|
|
19
|
-
});
|
/data/js-src/{main.ts → main.js}
RENAMED
|
File without changes
|