From 0bdfd190439c87a5853ad0470e917bbb85c55d6d Mon Sep 17 00:00:00 2001 From: Jon Sterling Date: Thu, 11 Apr 2024 09:08:56 +0000 Subject: [PATCH] javascript upgades --- forester.js | 16 ++++++++-------- package-lock.json | 13 +++++++------ 2 file(s) changed, 15 insertion(s)(+), 14 deletion(s)(-) diff --git a/forester.js b/forester.js --- a/forester.js +++ b/forester.js @@ -1,6 +1,6 @@ (()=>{var ht=window,ct=ht.ShadowRoot&&(ht.ShadyCSS===void 0||ht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,or=Symbol(),ba=new WeakMap,qe=class{constructor(e,t,a){if(this._$cssResult$=!0,a!==or)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(ct&&e===void 0){let a=t!==void 0&&t.length===1;a&&(e=ba.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),a&&ba.set(t,e))}return e}toString(){return this.cssText}},xa=r=>new qe(typeof r=="string"?r:r+"",void 0,or),j0=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((a,n,i)=>a+(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)+r[i+1],r[0]);return new qe(t,r,or)},ur=(r,e)=>{ct?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let a=document.createElement("style"),n=ht.litNonce;n!==void 0&&a.setAttribute("nonce",n),a.textContent=t.cssText,r.appendChild(a)})},dt=ct?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let a of e.cssRules)t+=a.cssText;return xa(t)})(r):r;var hr,mt=window,wa=mt.trustedTypes,Ii=wa?wa.emptyScript:"",ka=mt.reactiveElementPolyfillSupport,dr={toAttribute(r,e){switch(e){case Boolean:r=r?Ii:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Sa=(r,e)=>e!==r&&(e==e||r==r),cr={attribute:!0,type:String,converter:dr,reflect:!1,hasChanged:Sa},mr="finalized",F0=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,a)=>{let n=this._$Ep(a,t);n!==void 0&&(this._$Ev.set(n,a),e.push(n))}),e}static createProperty(e,t=cr){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let a=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,a,t);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,a){return{get(){return this[t]},set(n){let i=this[e];this[t]=n,this.requestUpdate(e,i,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||cr}static finalize(){if(this.hasOwnProperty(mr))return!1;this[mr]=!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,a=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let n of a)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let a=new Set(e.flat(1/0).reverse());for(let n of a)t.unshift(dt(n))}else e!==void 0&&t.push(dt(e));return t}static _$Ep(e,t){let a=t.attribute;return a===!1?void 0:typeof a=="string"?a: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,a;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((a=e.hostConnected)===null||a===void 0||a.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 ur(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 a;return(a=t.hostConnected)===null||a===void 0?void 0:a.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var a;return(a=t.hostDisconnected)===null||a===void 0?void 0:a.call(t)})}attributeChangedCallback(e,t,a){this._$AK(e,a)}_$EO(e,t,a=cr){var n;let i=this.constructor._$Ep(e,a);if(i!==void 0&&a.reflect===!0){let l=(((n=a.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?a.converter:dr).toAttribute(t,a.type);this._$El=e,l==null?this.removeAttribute(i):this.setAttribute(i,l),this._$El=null}}_$AK(e,t){var a;let n=this.constructor,i=n._$Ev.get(e);if(i!==void 0&&this._$El!==i){let l=n.getPropertyOptions(i),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((a=l.converter)===null||a===void 0?void 0:a.fromAttribute)!==void 0?l.converter:dr;this._$El=i,this[i]=u.fromAttribute(t,l.type),this._$El=null}}requestUpdate(e,t,a){let n=!0;e!==void 0&&(((a=a||this.constructor.getPropertyOptions(e)).hasChanged||Sa)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),a.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,a))):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,i)=>this[i]=n),this._$Ei=void 0);let t=!1,a=this._$AL;try{t=this.shouldUpdate(a),t?(this.willUpdate(a),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var i;return(i=n.hostUpdate)===null||i===void 0?void 0:i.call(n)}),this.update(a)):this._$Ek()}catch(n){throw t=!1,this._$Ek(),n}t&&this._$AE(a)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(a=>{var n;return(n=a.hostUpdated)===null||n===void 0?void 0:n.call(a)}),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,a)=>this._$EO(a,this[a],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};F0[mr]=!0,F0.elementProperties=new Map,F0.elementStyles=[],F0.shadowRootOptions={mode:"open"},ka?.({ReactiveElement:F0}),((hr=mt.reactiveElementVersions)!==null&&hr!==void 0?hr:mt.reactiveElementVersions=[]).push("1.6.3");var fr,ft=window,Ce=ft.trustedTypes,Aa=Ce?Ce.createPolicy("lit-html",{createHTML:r=>r}):void 0,pt="$lit$",V0=`lit$${(Math.random()+"").slice(9)}$`,vr="?"+V0,Pi=`<${vr}>`,me=document,Pe=()=>me.createComment(""),Le=r=>r===null||typeof r!="object"&&typeof r!="function",Da=Array.isArray,$a=r=>Da(r)||typeof r?.[Symbol.iterator]=="function",pr=`[ \f\r]`,Ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ma=/-->/g,Ta=/>/g,ce=RegExp(`>|${pr}(?:([^\\s"'>=/]+)(${pr}*=${pr}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),za=/'/g,Ca=/"/g,Na=/^(?:script|style|textarea|title)$/i,Oa=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),r0=Oa(1),ol=Oa(2),o0=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Ea=new WeakMap,de=me.createTreeWalker(me,129,null,!1);function Ra(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Aa!==void 0?Aa.createHTML(e):e}var _a=(r,e)=>{let t=r.length-1,a=[],n,i=e===2?"":"",l=Ie;for(let u=0;u"?(l=n??Ie,g=-1):v[1]===void 0?g=-2:(g=l.lastIndex-v[2].length,m=v[1],l=v[3]===void 0?ce:v[3]==='"'?Ca:za):l===Ca||l===za?l=ce:l===Ma||l===Ta?l=Ie:(l=ce,n=void 0);let x=l===ce&&r[u+1].startsWith("/>")?" ":"";i+=l===Ie?h+Pi:g>=0?(a.push(m),h.slice(0,g)+pt+h.slice(g)+V0+x):h+V0+(g===-2?(a.push(void 0),u):x)}return[Ra(r,i+(r[t]||"")+(e===2?"":"")),a]},je=class r{constructor({strings:e,_$litType$:t},a){let n;this.parts=[];let i=0,l=0,u=e.length-1,h=this.parts,[m,v]=_a(e,t);if(this.el=r.createElement(m,a),de.currentNode=this.el.content,t===2){let g=this.el.content,b=g.firstChild;b.remove(),g.append(...b.childNodes)}for(;(n=de.nextNode())!==null&&h.length0){n.textContent=Ce?Ce.emptyScript:"";for(let x=0;x2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,a,n){let i=this.strings,l=!1;if(i===void 0)e=fe(this,e,t,0),l=!Le(e)||e!==this._$AH&&e!==o0,l&&(this._$AH=e);else{let u=e,h,m;for(e=i[0],h=0;h{var a,n;let i=(a=t?.renderBefore)!==null&&a!==void 0?a:e,l=i._$litPart$;if(l===void 0){let u=(n=t?.renderBefore)!==null&&n!==void 0?n:null;i._$litPart$=l=new Ee(e.insertBefore(Pe(),u),u,void 0,t??{})}return l._$AI(r),l};var gr,yr;var g0=class extends F0{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let a=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=a.firstChild),a}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qa(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 o0}};g0.finalized=!0,g0._$litElement$=!0,(gr=globalThis.litElementHydrateSupport)===null||gr===void 0||gr.call(globalThis,{LitElement:g0});var Ia=globalThis.litElementPolyfillSupport;Ia?.({LitElement:g0});((yr=globalThis.litElementVersions)!==null&&yr!==void 0?yr:globalThis.litElementVersions=[]).push("3.3.3");var ae=r=>e=>typeof e=="function"?((t,a)=>(customElements.define(t,a),a))(r,e):((t,a)=>{let{kind:n,elements:i}=a;return{kind:n,elements:i,finisher(l){customElements.define(t,l)}}})(r,e);var ji=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{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,r)}},Fi=(r,e,t)=>{e.constructor.createProperty(t,r)};function W(r){return(e,t)=>t!==void 0?Fi(r,e,t):ji(r,e)}function U0(r){return W({...r,state:!0})}var br,Nl=((br=window.HTMLSlotElement)===null||br===void 0?void 0:br.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);var c0={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},B0=r=>(...e)=>({_$litDirective$:r,values:e}),S0=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,a){this._$Ct=e,this._$AM=t,this._$Ci=a}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:Vi}=Ha;var wt=r=>r.strings===void 0,Pa=()=>document.createComment(""),Be=(r,e,t)=>{var a;let n=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let l=n.insertBefore(Pa(),i),u=n.insertBefore(Pa(),i);t=new Vi(l,u,r,r.options)}else{let l=t._$AB.nextSibling,u=t._$AM,h=u!==r;if(h){let m;(a=t._$AQ)===null||a===void 0||a.call(t,r),t._$AM=r,t._$AP!==void 0&&(m=r._$AU)!==u._$AU&&t._$AP(m)}if(l!==i||h){let m=t._$AA;for(;m!==l;){let v=m.nextSibling;n.insertBefore(m,i),m=v}}}return t},ne=(r,e,t=r)=>(r._$AI(e,t),r),Ui={},kt=(r,e=Ui)=>r._$AH=e,La=r=>r._$AH,St=r=>{var e;(e=r._$AP)===null||e===void 0||e.call(r,!1,!0);let t=r._$AA,a=r._$AB.nextSibling;for(;t!==a;){let n=t.nextSibling;t.remove(),t=n}};var ja=(r,e,t)=>{let a=new Map;for(let n=e;n<=t;n++)a.set(r[n],n);return a},Fa=B0(class extends S0{constructor(r){if(super(r),r.type!==c0.CHILD)throw Error("repeat() can only be used in text expressions")}ct(r,e,t){let a;t===void 0?t=e:e!==void 0&&(a=e);let n=[],i=[],l=0;for(let u of r)n[l]=a?a(u,l):l,i[l]=t(u,l),l++;return{values:i,keys:n}}render(r,e,t){return this.ct(r,e,t).values}update(r,[e,t,a]){var n;let i=La(r),{values:l,keys:u}=this.ct(e,t,a);if(!Array.isArray(i))return this.ut=u,l;let h=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],m=[],v,g,b=0,x=i.length-1,k=0,A=l.length-1;for(;b<=x&&k<=A;)if(i[b]===null)b++;else if(i[x]===null)x--;else if(h[b]===u[k])m[k]=ne(i[b],l[k]),b++,k++;else if(h[x]===u[A])m[A]=ne(i[x],l[A]),x--,A--;else if(h[b]===u[A])m[A]=ne(i[b],l[A]),Be(r,m[A+1],i[b]),b++,A--;else if(h[x]===u[k])m[k]=ne(i[x],l[k]),Be(r,i[b],i[x]),x--,k++;else if(v===void 0&&(v=ja(u,k,A),g=ja(h,b,x)),v.has(h[b]))if(v.has(h[x])){let C=g.get(u[k]),D=C!==void 0?i[C]:null;if(D===null){let O=Be(r,i[b]);ne(O,l[k]),m[k]=O}else m[k]=ne(D,l[k]),Be(r,i[b],D),i[C]=null;k++}else St(i[x]),x--;else St(i[b]),b++;for(;k<=A;){let C=Be(r,m[A+1]);ne(C,l[k]),m[k++]=C}for(;b<=x;){let C=i[b++];C!==null&&St(C)}return this.ut=u,kt(r,m),o0}});var Va=B0(class extends S0{constructor(r){if(super(r),r.type!==c0.PROPERTY&&r.type!==c0.ATTRIBUTE&&r.type!==c0.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!wt(r))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(r,[e]){if(e===o0||e===G)return e;let t=r.element,a=r.name;if(r.type===c0.PROPERTY){if(e===t[a])return o0}else if(r.type===c0.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(a))return o0}else if(r.type===c0.ATTRIBUTE&&t.getAttribute(a)===e+"")return o0;return kt(r),e}});var Ve=(r,e)=>{var t,a;let n=r._$AN;if(n===void 0)return!1;for(let i of n)(a=(t=i)._$AO)===null||a===void 0||a.call(t,e,!1),Ve(i,e);return!0},At=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},Ua=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),Wi(e)}};function Gi(r){this._$AN!==void 0?(At(this),this._$AM=r,Ua(this)):this._$AM=r}function Ki(r,e=!1,t=0){let a=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(a))for(let i=t;i{var e,t,a,n;r.type==c0.CHILD&&((e=(a=r)._$AP)!==null&&e!==void 0||(a._$AP=Ki),(t=(n=r)._$AQ)!==null&&t!==void 0||(n._$AQ=Gi))},Mt=class extends S0{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,a){super._$AT(e,t,a),Ua(this),this.isConnected=e._$AU}_$AO(e,t=!0){var a,n;e!==this.isConnected&&(this.isConnected=e,e?(a=this.reconnected)===null||a===void 0||a.call(this):(n=this.disconnected)===null||n===void 0||n.call(this)),t&&(Ve(this,e),At(this))}setValue(e){if(wt(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 Tt=()=>new wr,wr=class{},xr=new WeakMap,zt=B0(class extends Mt{render(r){return G}update(r,[e]){var t;let a=e!==this.G;return a&&this.G!==void 0&&this.ot(void 0),(a||this.rt!==this.lt)&&(this.G=e,this.dt=(t=r.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=r.element)),G}ot(r){var e;if(typeof this.G=="function"){let t=(e=this.dt)!==null&&e!==void 0?e:globalThis,a=xr.get(t);a===void 0&&(a=new WeakMap,xr.set(t,a)),a.get(this.G)!==void 0&&this.G.call(this.dt,void 0),a.set(this.G,r),r!==void 0&&this.G.call(this.dt,r)}else this.G.value=r}get rt(){var r,e,t;return typeof this.G=="function"?(e=xr.get((r=this.dt)!==null&&r!==void 0?r: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 Ue=B0(class extends S0{constructor(r){var e;if(super(r),r.type!==c0.ATTRIBUTE||r.name!=="class"||((e=r.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(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,a;if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((t=this.nt)===null||t===void 0)&&t.has(i))&&this.it.add(i);return this.render(e)}let n=r.element.classList;this.it.forEach(i=>{i in e||(n.remove(i),this.it.delete(i))});for(let i in e){let l=!!e[i];l===this.it.has(i)||!((a=this.nt)===null||a===void 0)&&a.has(i)||(l?(n.add(i),this.it.add(i)):(n.remove(i),this.it.delete(i)))}return o0}});var kr=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Sr(r,e,t){r.addEventListener?r.addEventListener(e,t,!1):r.attachEvent&&r.attachEvent("on".concat(e),function(){t(window.event)})}function Xa(r,e){for(var t=e.slice(0,e.length-1),a=0;a=0;)e[t-1]+=",",e.splice(t,1),t=e.lastIndexOf("");return e}function Yi(r,e){for(var t=r.length>=e.length?r:e,a=r.length>=e.length?e:r,n=!0,i=0;i=0&&Y.splice(t,1),r.key&&r.key.toLowerCase()==="meta"&&Y.splice(0,Y.length),(e===93||e===224)&&(e=91),e in h0){h0[e]=!1;for(var a in ve)ve[a]===e&&(G0[a]=!1)}}function ts(r){if(!r)Object.keys(u0).forEach(function(l){return delete u0[l]});else if(Array.isArray(r))r.forEach(function(l){l.key&&Ar(l)});else if(typeof r=="object")r.key&&Ar(r);else if(typeof r=="string"){for(var e=arguments.length,t=new Array(e>1?e-1:0),a=1;a1?Xa(ve,m):[];u0[b]=u0[b].map(function(k){var A=n?k.method===n:!0;return A&&k.scope===a&&Yi(k.mods,x)?{}:k})}})};function Ka(r,e,t){var a;if(e.scope===t||e.scope==="all"){a=e.mods.length>0;for(var n in h0)Object.prototype.hasOwnProperty.call(h0,n)&&(!h0[n]&&e.mods.indexOf(+n)>-1||h0[n]&&e.mods.indexOf(+n)===-1)&&(a=!1);(e.mods.length===0&&!h0[16]&&!h0[18]&&!h0[17]&&!h0[91]||a||e.shortcut==="*")&&e.method(r,e)===!1&&(r.preventDefault?r.preventDefault():r.returnValue=!1,r.stopPropagation&&r.stopPropagation(),r.cancelBubble&&(r.cancelBubble=!0))}}function Wa(r){var e=u0["*"],t=r.keyCode||r.which||r.charCode;if(G0.filter.call(this,r)){if((t===93||t===224)&&(t=91),Y.indexOf(t)===-1&&t!==229&&Y.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(x){var k=Ga[x];r[x]&&Y.indexOf(k)===-1?Y.push(k):!r[x]&&Y.indexOf(k)>-1?Y.splice(Y.indexOf(k),1):x==="metaKey"&&r[x]&&Y.length===3&&(r.ctrlKey||r.shiftKey||r.altKey||(Y=Y.slice(Y.indexOf(k))))}),t in h0){h0[t]=!0;for(var a in ve)ve[a]===t&&(G0[a]=!0);if(!e)return}for(var n in h0)Object.prototype.hasOwnProperty.call(h0,n)&&(h0[n]=r[Ga[n]]);r.getModifierState&&!(r.altKey&&!r.ctrlKey)&&r.getModifierState("AltGraph")&&(Y.indexOf(17)===-1&&Y.push(17),Y.indexOf(18)===-1&&Y.push(18),h0[17]=!0,h0[18]=!0);var i=Ke();if(e)for(var l=0;l-1}function G0(r,e,t){Y=[];var a=Za(r),n=[],i="all",l=document,u=0,h=!1,m=!0,v="+";for(t===void 0&&typeof e=="function"&&(t=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(i=e.scope),e.element&&(l=e.element),e.keyup&&(h=e.keyup),e.keydown!==void 0&&(m=e.keydown),typeof e.splitKey=="string"&&(v=e.splitKey)),typeof e=="string"&&(i=e);u1&&(n=Xa(ve,r)),r=r[r.length-1],r=r==="*"?"*":Et(r),r in u0||(u0[r]=[]),u0[r].push({keyup:h,keydown:m,scope:i,mods:n,shortcut:a[u],method:t,key:a[u],splitKey:v});typeof l<"u"&&!rs(l)&&window&&(en.push(l),Sr(l,"keydown",function(g){Wa(g)}),Sr(window,"focus",function(){Y=[]}),Sr(l,"keyup",function(g){Wa(g),es(g)}))}var Mr={setScope:tn,getScope:Ke,deleteScope:Qi,getPressedKeyCodes:Xi,isPressed:Ji,filter:Zi,unbind:ts};for(Ct in Mr)Object.prototype.hasOwnProperty.call(Mr,Ct)&&(G0[Ct]=Mr[Ct]);var Ct;typeof window<"u"&&(Ya=window.hotkeys,G0.noConflict=function(r){return r&&window.hotkeys===G0&&(window.hotkeys=Ya),G0},window.hotkeys=G0);var Ya,y0=G0;var We=function(r,e,t,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,t):a,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,a);else for(var u=r.length-1;u>=0;u--)(l=r[u])&&(i=(n<3?l(i):n>3?l(e,t,i):l(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i},ge=class extends g0{constructor(){super(...arguments),this.placeholder="",this.hideBreadcrumbs=!1,this.breadcrumbHome="Home",this.breadcrumbs=[],this._inputRef=Tt()}render(){let e="";if(!this.hideBreadcrumbs){let t=[];for(let a of this.breadcrumbs)t.push(r0`