@skedulo/breeze-ui 1.24.5 → 1.24.6

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.
@@ -2,35 +2,35 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Hs=window,jc=Hs.ShadowRoot&&(Hs.ShadyCSS===void 0||Hs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hf=Symbol(),Rd=new WeakMap;let K3=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Hf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(jc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Rd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Rd.set(i,e))}return e}toString(){return this.cssText}};const Y3=n=>new K3(typeof n=="string"?n:n+"",void 0,Hf),X3=(n,e)=>{jc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Hs.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Fd=jc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return Y3(i)})(n):n;/**
5
+ */const Hs=window,Uc=Hs.ShadowRoot&&(Hs.ShadyCSS===void 0||Hs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Df=Symbol(),Hd=new WeakMap;let q3=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Df)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Uc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Hd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Hd.set(i,e))}return e}toString(){return this.cssText}};const K3=n=>new q3(typeof n=="string"?n:n+"",void 0,Df),Y3=(n,e)=>{Uc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Hs.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Rd=Uc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return K3(i)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var U1;const Vs=window,Bd=Vs.trustedTypes,J3=Bd?Bd.emptyScript:"",Vd=Vs.reactiveElementPolyfillSupport,Cc={toAttribute(n,e){switch(e){case Boolean:n=n?J3:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Rf=(n,e)=>e!==n&&(e==e||n==n),j1={attribute:!0,type:String,converter:Cc,reflect:!1,hasChanged:Rf},wc="finalized";let sa=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=j1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||j1}static finalize(){if(this.hasOwnProperty(wc))return!1;this[wc]=!0;const 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")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Fd(l))}else e!==void 0&&i.push(Fd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return X3(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=j1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:Cc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:Cc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Rf)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const 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((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),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((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};sa[wc]=!0,sa.elementProperties=new Map,sa.elementStyles=[],sa.shadowRootOptions={mode:"open"},Vd==null||Vd({ReactiveElement:sa}),((U1=Vs.reactiveElementVersions)!==null&&U1!==void 0?U1:Vs.reactiveElementVersions=[]).push("1.6.2");/**
9
+ */var U1;const Vs=window,Fd=Vs.trustedTypes,X3=Fd?Fd.emptyScript:"",Bd=Vs.reactiveElementPolyfillSupport,yc={toAttribute(n,e){switch(e){case Boolean:n=n?X3:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Nf=(n,e)=>e!==n&&(e==e||n==n),j1={attribute:!0,type:String,converter:yc,reflect:!1,hasChanged:Nf},Cc="finalized";let sa=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=j1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||j1}static finalize(){if(this.hasOwnProperty(Cc))return!1;this[Cc]=!0;const 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")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Rd(l))}else e!==void 0&&i.push(Rd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Y3(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=j1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:yc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:yc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Nf)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const 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((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),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((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};sa[Cc]=!0,sa.elementProperties=new Map,sa.elementStyles=[],sa.shadowRootOptions={mode:"open"},Bd==null||Bd({ReactiveElement:sa}),((U1=Vs.reactiveElementVersions)!==null&&U1!==void 0?U1:Vs.reactiveElementVersions=[]).push("1.6.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var G1;const Zs=window,oo=Zs.trustedTypes,Zd=oo?oo.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ws="$lit$",ci=`lit$${(Math.random()+"").slice(9)}$`,Gc="?"+ci,Q3=`<${Gc}>`,vn=document,Us=()=>vn.createComment(""),xa=n=>n===null||typeof n!="object"&&typeof n!="function",Ff=Array.isArray,Bf=n=>Ff(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",q1=`[
14
- \f\r]`,la=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wd=/-->/g,Ud=/>/g,nn=RegExp(`>|${q1}(?:([^\\s"'>=/]+)(${q1}*=${q1}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),jd=/'/g,Gd=/"/g,Vf=/^(?:script|style|textarea|title)$/i,di=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),qd=new WeakMap,fn=vn.createTreeWalker(vn,129,null,!1),Zf=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=la;for(let m=0;m<i;m++){const b=n[m];let M,L,T=-1,$=0;for(;$<b.length&&(u.lastIndex=$,L=u.exec(b),L!==null);)$=u.lastIndex,u===la?L[1]==="!--"?u=Wd:L[1]!==void 0?u=Ud:L[2]!==void 0?(Vf.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=nn):L[3]!==void 0&&(u=nn):u===nn?L[0]===">"?(u=l!=null?l:la,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?nn:L[3]==='"'?Gd:jd):u===Gd||u===jd?u=nn:u===Wd||u===Ud?u=la:(u=nn,l=void 0);const N=u===nn&&n[m+1].startsWith("/>")?" ":"";d+=u===la?b+Q3:T>=0?(o.push(M),b.slice(0,T)+Ws+b.slice(T)+ci+N):b+ci+(T===-2?(o.push(void 0),m):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Zd!==void 0?Zd.createHTML(v):v,o]};let xc=class Wf{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,m=this.parts,[b,M]=Zf(e,i);if(this.el=Wf.createElement(b,o),fn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=fn.nextNode())!==null&&m.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Ws)||T.startsWith(ci)){const $=M[u++];if(L.push(T),$!==void 0){const N=l.getAttribute($.toLowerCase()+Ws).split(ci),Y=/([.?@])?(.*)/.exec($);m.push({type:1,index:d,name:Y[2],strings:N,ctor:Y[1]==="."?Gf:Y[1]==="?"?qf:Y[1]==="@"?Kf:ka})}else m.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Vf.test(l.tagName)){const L=l.textContent.split(ci),T=L.length-1;if(T>0){l.textContent=oo?oo.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],Us()),fn.nextNode(),m.push({type:2,index:++d});l.append(L[T],Us())}}}else if(l.nodeType===8)if(l.data===Gc)m.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(ci,L+1))!==-1;)m.push({type:7,index:d}),L+=ci.length-1}d++}}static createElement(e,i){const o=vn.createElement("template");return o.innerHTML=e,o}};function bn(n,e,i=n,o){var l,d,u,v;if(e===di)return e;let m=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const b=xa(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==b&&((d=m==null?void 0:m._$AO)===null||d===void 0||d.call(m,!1),b===void 0?m=void 0:(m=new b(n),m._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=m:i._$Cl=m),m!==void 0&&(e=bn(n,m._$AS(n,e.values),m,o)),e}let Uf=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:vn).importNode(o,!0);fn.currentNode=d;let u=fn.nextNode(),v=0,m=0,b=l[0];for(;b!==void 0;){if(v===b.index){let M;b.type===2?M=new qc(u,u.nextSibling,this,e):b.type===1?M=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(M=new Yf(u,this,e)),this._$AV.push(M),b=l[++m]}v!==(b==null?void 0:b.index)&&(u=fn.nextNode(),v++)}return fn.currentNode=vn,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}},qc=class jf{constructor(e,i,o,l){var d;this.type=2,this._$AH=vt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=bn(this,e,i),xa(e)?e===vt||e==null||e===""?(this._$AH!==vt&&this._$AR(),this._$AH=vt):e!==this._$AH&&e!==di&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Bf(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!==vt&&xa(this._$AH)?this._$AA.nextSibling.data=e:this.$(vn.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=xc.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new Uf(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=qd.get(e.strings);return i===void 0&&qd.set(e.strings,i=new xc(e)),i}T(e){Ff(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new jf(this.k(Us()),this.k(Us()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}},ka=class{constructor(e,i,o,l,d){this.type=1,this._$AH=vt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=vt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=bn(this,e,i,0),u=!xa(e)||e!==this._$AH&&e!==di,u&&(this._$AH=e);else{const v=e;let m,b;for(e=d[0],m=0;m<d.length-1;m++)b=bn(this,v[o+m],i,m),b===di&&(b=this._$AH[m]),u||(u=!xa(b)||b!==this._$AH[m]),b===vt?e=vt:e!==vt&&(e+=(b!=null?b:"")+d[m+1]),this._$AH[m]=b}u&&!l&&this.j(e)}j(e){e===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Gf=class extends ka{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===vt?void 0:e}};const e7=oo?oo.emptyScript:"";let qf=class extends ka{constructor(){super(...arguments),this.type=4}j(e){e&&e!==vt?this.element.setAttribute(this.name,e7):this.element.removeAttribute(this.name)}},Kf=class extends ka{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=bn(this,e,i,0))!==null&&o!==void 0?o:vt)===di)return;const l=this._$AH,d=e===vt&&l!==vt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==vt&&(l===vt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},Yf=class{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){bn(this,e)}};const t7={O:Ws,P:ci,A:Gc,C:1,M:Zf,L:Uf,D:Bf,R:bn,I:qc,V:ka,H:qf,N:Kf,U:Gf,F:Yf},Kd=Zs.litHtmlPolyfillSupport;Kd==null||Kd(xc,qc),((G1=Zs.litHtmlVersions)!==null&&G1!==void 0?G1:Zs.litHtmlVersions=[]).push("2.7.4");/**
13
+ */var G1;const Zs=window,oo=Zs.trustedTypes,Vd=oo?oo.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ws="$lit$",ci=`lit$${(Math.random()+"").slice(9)}$`,jc="?"+ci,J3=`<${jc}>`,vn=document,Us=()=>vn.createComment(""),xa=n=>n===null||typeof n!="object"&&typeof n!="function",Hf=Array.isArray,Rf=n=>Hf(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",q1=`[
14
+ \f\r]`,la=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zd=/-->/g,Wd=/>/g,nn=RegExp(`>|${q1}(?:([^\\s"'>=/]+)(${q1}*=${q1}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ud=/'/g,jd=/"/g,Ff=/^(?:script|style|textarea|title)$/i,di=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),Gd=new WeakMap,fn=vn.createTreeWalker(vn,129,null,!1),Bf=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=la;for(let m=0;m<i;m++){const b=n[m];let M,L,T=-1,$=0;for(;$<b.length&&(u.lastIndex=$,L=u.exec(b),L!==null);)$=u.lastIndex,u===la?L[1]==="!--"?u=Zd:L[1]!==void 0?u=Wd:L[2]!==void 0?(Ff.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=nn):L[3]!==void 0&&(u=nn):u===nn?L[0]===">"?(u=l!=null?l:la,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?nn:L[3]==='"'?jd:Ud):u===jd||u===Ud?u=nn:u===Zd||u===Wd?u=la:(u=nn,l=void 0);const N=u===nn&&n[m+1].startsWith("/>")?" ":"";d+=u===la?b+J3:T>=0?(o.push(M),b.slice(0,T)+Ws+b.slice(T)+ci+N):b+ci+(T===-2?(o.push(void 0),m):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Vd!==void 0?Vd.createHTML(v):v,o]};let wc=class Vf{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,m=this.parts,[b,M]=Bf(e,i);if(this.el=Vf.createElement(b,o),fn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=fn.nextNode())!==null&&m.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Ws)||T.startsWith(ci)){const $=M[u++];if(L.push(T),$!==void 0){const N=l.getAttribute($.toLowerCase()+Ws).split(ci),Y=/([.?@])?(.*)/.exec($);m.push({type:1,index:d,name:Y[2],strings:N,ctor:Y[1]==="."?Uf:Y[1]==="?"?jf:Y[1]==="@"?Gf:ka})}else m.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Ff.test(l.tagName)){const L=l.textContent.split(ci),T=L.length-1;if(T>0){l.textContent=oo?oo.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],Us()),fn.nextNode(),m.push({type:2,index:++d});l.append(L[T],Us())}}}else if(l.nodeType===8)if(l.data===jc)m.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(ci,L+1))!==-1;)m.push({type:7,index:d}),L+=ci.length-1}d++}}static createElement(e,i){const o=vn.createElement("template");return o.innerHTML=e,o}};function bn(n,e,i=n,o){var l,d,u,v;if(e===di)return e;let m=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const b=xa(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==b&&((d=m==null?void 0:m._$AO)===null||d===void 0||d.call(m,!1),b===void 0?m=void 0:(m=new b(n),m._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=m:i._$Cl=m),m!==void 0&&(e=bn(n,m._$AS(n,e.values),m,o)),e}let Zf=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:vn).importNode(o,!0);fn.currentNode=d;let u=fn.nextNode(),v=0,m=0,b=l[0];for(;b!==void 0;){if(v===b.index){let M;b.type===2?M=new Gc(u,u.nextSibling,this,e):b.type===1?M=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(M=new qf(u,this,e)),this._$AV.push(M),b=l[++m]}v!==(b==null?void 0:b.index)&&(u=fn.nextNode(),v++)}return fn.currentNode=vn,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}},Gc=class Wf{constructor(e,i,o,l){var d;this.type=2,this._$AH=vt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=bn(this,e,i),xa(e)?e===vt||e==null||e===""?(this._$AH!==vt&&this._$AR(),this._$AH=vt):e!==this._$AH&&e!==di&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Rf(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!==vt&&xa(this._$AH)?this._$AA.nextSibling.data=e:this.$(vn.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=wc.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new Zf(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=Gd.get(e.strings);return i===void 0&&Gd.set(e.strings,i=new wc(e)),i}T(e){Hf(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new Wf(this.k(Us()),this.k(Us()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}},ka=class{constructor(e,i,o,l,d){this.type=1,this._$AH=vt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=vt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=bn(this,e,i,0),u=!xa(e)||e!==this._$AH&&e!==di,u&&(this._$AH=e);else{const v=e;let m,b;for(e=d[0],m=0;m<d.length-1;m++)b=bn(this,v[o+m],i,m),b===di&&(b=this._$AH[m]),u||(u=!xa(b)||b!==this._$AH[m]),b===vt?e=vt:e!==vt&&(e+=(b!=null?b:"")+d[m+1]),this._$AH[m]=b}u&&!l&&this.j(e)}j(e){e===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Uf=class extends ka{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===vt?void 0:e}};const Q3=oo?oo.emptyScript:"";let jf=class extends ka{constructor(){super(...arguments),this.type=4}j(e){e&&e!==vt?this.element.setAttribute(this.name,Q3):this.element.removeAttribute(this.name)}},Gf=class extends ka{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=bn(this,e,i,0))!==null&&o!==void 0?o:vt)===di)return;const l=this._$AH,d=e===vt&&l!==vt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==vt&&(l===vt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},qf=class{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){bn(this,e)}};const e7={O:Ws,P:ci,A:jc,C:1,M:Bf,L:Zf,D:Rf,R:bn,I:Gc,V:ka,H:jf,N:Gf,U:Uf,F:qf},qd=Zs.litHtmlPolyfillSupport;qd==null||qd(wc,Gc),((G1=Zs.litHtmlVersions)!==null&&G1!==void 0?G1:Zs.litHtmlVersions=[]).push("2.7.4");/**
16
16
  * @license
17
17
  * Copyright 2019 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const Rs=window,Kc=Rs.ShadowRoot&&(Rs.ShadyCSS===void 0||Rs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yc=Symbol(),Yd=new WeakMap;let Xf=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Yc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Kc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Yd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Yd.set(i,e))}return e}toString(){return this.cssText}};const qr=n=>new Xf(typeof n=="string"?n:n+"",void 0,Yc),Q=(n,...e)=>{const i=n.length===1?n[0]:e.reduce((o,l,d)=>o+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+n[d+1],n[0]);return new Xf(i,n,Yc)},r7=(n,e)=>{Kc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Rs.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Xd=Kc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return qr(i)})(n):n;/**
19
+ */const Rs=window,qc=Rs.ShadowRoot&&(Rs.ShadyCSS===void 0||Rs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kc=Symbol(),Kd=new WeakMap;let Kf=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Kc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(qc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Kd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Kd.set(i,e))}return e}toString(){return this.cssText}};const qr=n=>new Kf(typeof n=="string"?n:n+"",void 0,Kc),Q=(n,...e)=>{const i=n.length===1?n[0]:e.reduce((o,l,d)=>o+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+n[d+1],n[0]);return new Kf(i,n,Kc)},t7=(n,e)=>{qc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Rs.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Yd=qc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return qr(i)})(n):n;/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */var K1;const js=window,Jd=js.trustedTypes,i7=Jd?Jd.emptyScript:"",Qd=js.reactiveElementPolyfillSupport,zc={toAttribute(n,e){switch(e){case Boolean:n=n?i7:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Jf=(n,e)=>e!==n&&(e==e||n==n),Y1={attribute:!0,type:String,converter:zc,reflect:!1,hasChanged:Jf};let to=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=Y1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Y1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const 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")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Xd(l))}else e!==void 0&&i.push(Xd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return r7(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=Y1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:zc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:zc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Jf)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const 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((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),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((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};to.finalized=!0,to.elementProperties=new Map,to.elementStyles=[],to.shadowRootOptions={mode:"open"},Qd==null||Qd({ReactiveElement:to}),((K1=js.reactiveElementVersions)!==null&&K1!==void 0?K1:js.reactiveElementVersions=[]).push("1.4.2");/**
23
+ */var K1;const js=window,Xd=js.trustedTypes,r7=Xd?Xd.emptyScript:"",Jd=js.reactiveElementPolyfillSupport,xc={toAttribute(n,e){switch(e){case Boolean:n=n?r7:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Yf=(n,e)=>e!==n&&(e==e||n==n),Y1={attribute:!0,type:String,converter:xc,reflect:!1,hasChanged:Yf};let to=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=Y1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Y1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const 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")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Yd(l))}else e!==void 0&&i.push(Yd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return t7(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=Y1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:xc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:xc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Yf)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const 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((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),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((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};to.finalized=!0,to.elementProperties=new Map,to.elementStyles=[],to.shadowRootOptions={mode:"open"},Jd==null||Jd({ReactiveElement:to}),((K1=js.reactiveElementVersions)!==null&&K1!==void 0?K1:js.reactiveElementVersions=[]).push("1.4.2");/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */var X1;const Gs=window,ao=Gs.trustedTypes,eh=ao?ao.createPolicy("lit-html",{createHTML:n=>n}):void 0,Lc="$lit$",Ai=`lit$${(Math.random()+"").slice(9)}$`,Qf="?"+Ai,n7=`<${Qf}>`,mn=document,za=()=>mn.createComment(""),La=n=>n===null||typeof n!="object"&&typeof n!="function",e2=Array.isArray,o7=n=>e2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",J1=`[
28
- \f\r]`,ca=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,th=/-->/g,rh=/>/g,on=RegExp(`>|${J1}(?:([^\\s"'>=/]+)(${J1}*=${J1}*(?:[^
29
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ih=/'/g,nh=/"/g,t2=/^(?:script|style|textarea|title)$/i,r2=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),F=r2(1),R=r2(2),so=Symbol.for("lit-noChange"),Mt=Symbol.for("lit-nothing"),oh=new WeakMap,pn=mn.createTreeWalker(mn,129,null,!1),a7=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=ca;for(let m=0;m<i;m++){const b=n[m];let M,L,T=-1,$=0;for(;$<b.length&&(u.lastIndex=$,L=u.exec(b),L!==null);)$=u.lastIndex,u===ca?L[1]==="!--"?u=th:L[1]!==void 0?u=rh:L[2]!==void 0?(t2.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=on):L[3]!==void 0&&(u=on):u===on?L[0]===">"?(u=l!=null?l:ca,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?on:L[3]==='"'?nh:ih):u===nh||u===ih?u=on:u===th||u===rh?u=ca:(u=on,l=void 0);const N=u===on&&n[m+1].startsWith("/>")?" ":"";d+=u===ca?b+n7:T>=0?(o.push(M),b.slice(0,T)+Lc+b.slice(T)+Ai+N):b+Ai+(T===-2?(o.push(void 0),m):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[eh!==void 0?eh.createHTML(v):v,o]};class Sa{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,m=this.parts,[b,M]=a7(e,i);if(this.el=Sa.createElement(b,o),pn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=pn.nextNode())!==null&&m.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Lc)||T.startsWith(Ai)){const $=M[u++];if(L.push(T),$!==void 0){const N=l.getAttribute($.toLowerCase()+Lc).split(Ai),Y=/([.?@])?(.*)/.exec($);m.push({type:1,index:d,name:Y[2],strings:N,ctor:Y[1]==="."?l7:Y[1]==="?"?u7:Y[1]==="@"?d7:ml})}else m.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(t2.test(l.tagName)){const L=l.textContent.split(Ai),T=L.length-1;if(T>0){l.textContent=ao?ao.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],za()),pn.nextNode(),m.push({type:2,index:++d});l.append(L[T],za())}}}else if(l.nodeType===8)if(l.data===Qf)m.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(Ai,L+1))!==-1;)m.push({type:7,index:d}),L+=Ai.length-1}d++}}static createElement(e,i){const o=mn.createElement("template");return o.innerHTML=e,o}}function lo(n,e,i=n,o){var l,d,u,v;if(e===so)return e;let m=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const b=La(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==b&&((d=m==null?void 0:m._$AO)===null||d===void 0||d.call(m,!1),b===void 0?m=void 0:(m=new b(n),m._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=m:i._$Cl=m),m!==void 0&&(e=lo(n,m._$AS(n,e.values),m,o)),e}class s7{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:mn).importNode(o,!0);pn.currentNode=d;let u=pn.nextNode(),v=0,m=0,b=l[0];for(;b!==void 0;){if(v===b.index){let M;b.type===2?M=new Oa(u,u.nextSibling,this,e):b.type===1?M=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(M=new h7(u,this,e)),this._$AV.push(M),b=l[++m]}v!==(b==null?void 0:b.index)&&(u=pn.nextNode(),v++)}return pn.currentNode=mn,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}}class Oa{constructor(e,i,o,l){var d;this.type=2,this._$AH=Mt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=lo(this,e,i),La(e)?e===Mt||e==null||e===""?(this._$AH!==Mt&&this._$AR(),this._$AH=Mt):e!==this._$AH&&e!==so&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):o7(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!==Mt&&La(this._$AH)?this._$AA.nextSibling.data=e:this.$(mn.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=Sa.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new s7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=oh.get(e.strings);return i===void 0&&oh.set(e.strings,i=new Sa(e)),i}T(e){e2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new Oa(this.k(za()),this.k(za()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}class ml{constructor(e,i,o,l,d){this.type=1,this._$AH=Mt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Mt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=lo(this,e,i,0),u=!La(e)||e!==this._$AH&&e!==so,u&&(this._$AH=e);else{const v=e;let m,b;for(e=d[0],m=0;m<d.length-1;m++)b=lo(this,v[o+m],i,m),b===so&&(b=this._$AH[m]),u||(u=!La(b)||b!==this._$AH[m]),b===Mt?e=Mt:e!==Mt&&(e+=(b!=null?b:"")+d[m+1]),this._$AH[m]=b}u&&!l&&this.j(e)}j(e){e===Mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class l7 extends ml{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Mt?void 0:e}}const c7=ao?ao.emptyScript:"";class u7 extends ml{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Mt?this.element.setAttribute(this.name,c7):this.element.removeAttribute(this.name)}}class d7 extends ml{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=lo(this,e,i,0))!==null&&o!==void 0?o:Mt)===so)return;const l=this._$AH,d=e===Mt&&l!==Mt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Mt&&(l===Mt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class h7{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){lo(this,e)}}const ah=Gs.litHtmlPolyfillSupport;ah==null||ah(Sa,Oa),((X1=Gs.litHtmlVersions)!==null&&X1!==void 0?X1:Gs.litHtmlVersions=[]).push("2.7.4");const i2=(n,e,i)=>{var o,l;const d=(o=i==null?void 0:i.renderBefore)!==null&&o!==void 0?o:e;let u=d._$litPart$;if(u===void 0){const v=(l=i==null?void 0:i.renderBefore)!==null&&l!==void 0?l:null;d._$litPart$=u=new Oa(e.insertBefore(za(),v),v,void 0,i!=null?i:{})}return u._$AI(n),u};/**
27
+ */var X1;const Gs=window,ao=Gs.trustedTypes,Qd=ao?ao.createPolicy("lit-html",{createHTML:n=>n}):void 0,zc="$lit$",Ai=`lit$${(Math.random()+"").slice(9)}$`,Xf="?"+Ai,i7=`<${Xf}>`,mn=document,za=()=>mn.createComment(""),La=n=>n===null||typeof n!="object"&&typeof n!="function",Jf=Array.isArray,n7=n=>Jf(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",J1=`[
28
+ \f\r]`,ca=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,eh=/-->/g,th=/>/g,on=RegExp(`>|${J1}(?:([^\\s"'>=/]+)(${J1}*=${J1}*(?:[^
29
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),rh=/'/g,ih=/"/g,Qf=/^(?:script|style|textarea|title)$/i,e2=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),F=e2(1),R=e2(2),so=Symbol.for("lit-noChange"),Mt=Symbol.for("lit-nothing"),nh=new WeakMap,pn=mn.createTreeWalker(mn,129,null,!1),o7=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=ca;for(let m=0;m<i;m++){const b=n[m];let M,L,T=-1,$=0;for(;$<b.length&&(u.lastIndex=$,L=u.exec(b),L!==null);)$=u.lastIndex,u===ca?L[1]==="!--"?u=eh:L[1]!==void 0?u=th:L[2]!==void 0?(Qf.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=on):L[3]!==void 0&&(u=on):u===on?L[0]===">"?(u=l!=null?l:ca,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?on:L[3]==='"'?ih:rh):u===ih||u===rh?u=on:u===eh||u===th?u=ca:(u=on,l=void 0);const N=u===on&&n[m+1].startsWith("/>")?" ":"";d+=u===ca?b+i7:T>=0?(o.push(M),b.slice(0,T)+zc+b.slice(T)+Ai+N):b+Ai+(T===-2?(o.push(void 0),m):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Qd!==void 0?Qd.createHTML(v):v,o]};class Sa{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,m=this.parts,[b,M]=o7(e,i);if(this.el=Sa.createElement(b,o),pn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=pn.nextNode())!==null&&m.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(zc)||T.startsWith(Ai)){const $=M[u++];if(L.push(T),$!==void 0){const N=l.getAttribute($.toLowerCase()+zc).split(Ai),Y=/([.?@])?(.*)/.exec($);m.push({type:1,index:d,name:Y[2],strings:N,ctor:Y[1]==="."?s7:Y[1]==="?"?c7:Y[1]==="@"?u7:ml})}else m.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Qf.test(l.tagName)){const L=l.textContent.split(Ai),T=L.length-1;if(T>0){l.textContent=ao?ao.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],za()),pn.nextNode(),m.push({type:2,index:++d});l.append(L[T],za())}}}else if(l.nodeType===8)if(l.data===Xf)m.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(Ai,L+1))!==-1;)m.push({type:7,index:d}),L+=Ai.length-1}d++}}static createElement(e,i){const o=mn.createElement("template");return o.innerHTML=e,o}}function lo(n,e,i=n,o){var l,d,u,v;if(e===so)return e;let m=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const b=La(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==b&&((d=m==null?void 0:m._$AO)===null||d===void 0||d.call(m,!1),b===void 0?m=void 0:(m=new b(n),m._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=m:i._$Cl=m),m!==void 0&&(e=lo(n,m._$AS(n,e.values),m,o)),e}class a7{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:mn).importNode(o,!0);pn.currentNode=d;let u=pn.nextNode(),v=0,m=0,b=l[0];for(;b!==void 0;){if(v===b.index){let M;b.type===2?M=new Oa(u,u.nextSibling,this,e):b.type===1?M=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(M=new d7(u,this,e)),this._$AV.push(M),b=l[++m]}v!==(b==null?void 0:b.index)&&(u=pn.nextNode(),v++)}return pn.currentNode=mn,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}}class Oa{constructor(e,i,o,l){var d;this.type=2,this._$AH=Mt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=lo(this,e,i),La(e)?e===Mt||e==null||e===""?(this._$AH!==Mt&&this._$AR(),this._$AH=Mt):e!==this._$AH&&e!==so&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):n7(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!==Mt&&La(this._$AH)?this._$AA.nextSibling.data=e:this.$(mn.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=Sa.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new a7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=nh.get(e.strings);return i===void 0&&nh.set(e.strings,i=new Sa(e)),i}T(e){Jf(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new Oa(this.k(za()),this.k(za()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}class ml{constructor(e,i,o,l,d){this.type=1,this._$AH=Mt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Mt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=lo(this,e,i,0),u=!La(e)||e!==this._$AH&&e!==so,u&&(this._$AH=e);else{const v=e;let m,b;for(e=d[0],m=0;m<d.length-1;m++)b=lo(this,v[o+m],i,m),b===so&&(b=this._$AH[m]),u||(u=!La(b)||b!==this._$AH[m]),b===Mt?e=Mt:e!==Mt&&(e+=(b!=null?b:"")+d[m+1]),this._$AH[m]=b}u&&!l&&this.j(e)}j(e){e===Mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class s7 extends ml{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Mt?void 0:e}}const l7=ao?ao.emptyScript:"";class c7 extends ml{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Mt?this.element.setAttribute(this.name,l7):this.element.removeAttribute(this.name)}}class u7 extends ml{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=lo(this,e,i,0))!==null&&o!==void 0?o:Mt)===so)return;const l=this._$AH,d=e===Mt&&l!==Mt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Mt&&(l===Mt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class d7{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){lo(this,e)}}const oh=Gs.litHtmlPolyfillSupport;oh==null||oh(Sa,Oa),((X1=Gs.litHtmlVersions)!==null&&X1!==void 0?X1:Gs.litHtmlVersions=[]).push("2.7.4");const t2=(n,e,i)=>{var o,l;const d=(o=i==null?void 0:i.renderBefore)!==null&&o!==void 0?o:e;let u=d._$litPart$;if(u===void 0){const v=(l=i==null?void 0:i.renderBefore)!==null&&l!==void 0?l:null;d._$litPart$=u=new Oa(e.insertBefore(za(),v),v,void 0,i!=null?i:{})}return u._$AI(n),u};/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */var Q1,ec;let ze=class extends to{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=i2(i,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 so}};ze.finalized=!0,ze._$litElement$=!0,(Q1=globalThis.litElementHydrateSupport)===null||Q1===void 0||Q1.call(globalThis,{LitElement:ze});const sh=globalThis.litElementPolyfillSupport;sh==null||sh({LitElement:ze});((ec=globalThis.litElementVersions)!==null&&ec!==void 0?ec:globalThis.litElementVersions=[]).push("3.3.2");/**
33
+ */var Q1,ec;let ze=class extends to{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=t2(i,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 so}};ze.finalized=!0,ze._$litElement$=!0,(Q1=globalThis.litElementHydrateSupport)===null||Q1===void 0||Q1.call(globalThis,{LitElement:ze});const ah=globalThis.litElementPolyfillSupport;ah==null||ah({LitElement:ze});((ec=globalThis.litElementVersions)!==null&&ec!==void 0?ec:globalThis.litElementVersions=[]).push("3.3.2");/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
@@ -38,7 +38,7 @@
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const f7=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,n)}},p7=(n,e,i)=>{e.constructor.createProperty(i,n)};function E(n){return(e,i)=>i!==void 0?p7(n,e,i):f7(n,e)}/**
41
+ */const h7=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,n)}},f7=(n,e,i)=>{e.constructor.createProperty(i,n)};function E(n){return(e,i)=>i!==void 0?f7(n,e,i):h7(n,e)}/**
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
@@ -54,15 +54,15 @@
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */function g7(n){return yl({descriptor:e=>({async get(){var i;return await this.updateComplete,(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(n)},enumerable:!0,configurable:!0})})}/**
57
+ */function p7(n){return yl({descriptor:e=>({async get(){var i;return await this.updateComplete,(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(n)},enumerable:!0,configurable:!0})})}/**
58
58
  * @license
59
59
  * Copyright 2021 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */var tc;const v7=((tc=window.HTMLSlotElement)===null||tc===void 0?void 0:tc.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function fi(n){const{slot:e,selector:i}=n!=null?n:{};return yl({descriptor:o=>({get(){var l;const d="slot"+(e?`[name=${e}]`:":not([name])"),u=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(d),v=u!=null?v7(u,n):[];return i?v.filter(m=>m.matches(i)):v},enumerable:!0,configurable:!0})})}/**
61
+ */var tc;const g7=((tc=window.HTMLSlotElement)===null||tc===void 0?void 0:tc.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function fi(n){const{slot:e,selector:i}=n!=null?n:{};return yl({descriptor:o=>({get(){var l;const d="slot"+(e?`[name=${e}]`:":not([name])"),u=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(d),v=u!=null?g7(u,n):[];return i?v.filter(m=>m.matches(i)):v},enumerable:!0,configurable:!0})})}/**
62
62
  * @license
63
63
  * Copyright 2017 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */function Xc(n,e,i){let o,l=n;return typeof n=="object"?(l=n.slot,o=n):o={flatten:e},i?fi({slot:l,flatten:e,selector:i}):yl({descriptor:d=>({get(){var u,v;const m="slot"+(l?`[name=${l}]`:":not([name])"),b=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(m);return(v=b==null?void 0:b.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function Sc(n,e){if(n){if(n instanceof e)return n;if(n instanceof ShadowRoot)return Sc(n.host,e);if("parentNode"in n)return Sc(n.parentElement||n.parentNode,e)}return null}const ce=n=>`brz-${n.toLowerCase()}`,W=n=>customElements.get(n)?(console.warn(`Breeze UI 💨 :: ${n} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...e)=>{}):$a(n),Mc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var b7=Object.defineProperty,m7=Object.getOwnPropertyDescriptor,Jc=(n,e,i,o)=>{for(var l=o>1?void 0:o?m7(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&b7(e,i,l),l};const n2=ce("fade-in-out");exports.FadeInOut=class extends ze{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(e){e.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?F``:F`<slot></slot>`}};exports.FadeInOut.styles=Q`
65
+ */function Yc(n,e,i){let o,l=n;return typeof n=="object"?(l=n.slot,o=n):o={flatten:e},i?fi({slot:l,flatten:e,selector:i}):yl({descriptor:d=>({get(){var u,v;const m="slot"+(l?`[name=${l}]`:":not([name])"),b=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(m);return(v=b==null?void 0:b.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function Lc(n,e){if(n){if(n instanceof e)return n;if(n instanceof ShadowRoot)return Lc(n.host,e);if("parentNode"in n)return Lc(n.parentElement||n.parentNode,e)}return null}const ce=n=>`brz-${n.toLowerCase()}`,W=n=>customElements.get(n)?(console.warn(`Breeze UI 💨 :: ${n} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...e)=>{}):$a(n),Sc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var v7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,Xc=(n,e,i,o)=>{for(var l=o>1?void 0:o?b7(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&v7(e,i,l),l};const r2=ce("fade-in-out");exports.FadeInOut=class extends ze{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(e){e.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?F``:F`<slot></slot>`}};exports.FadeInOut.styles=Q`
66
66
  :host {
67
67
  opacity: 0;
68
68
  animation: fade-in 0.3s ease;
@@ -79,7 +79,7 @@
79
79
  opacity: 1;
80
80
  }
81
81
  }
82
- `;Jc([E({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);Jc([Ce()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Jc([W(n2)],exports.FadeInOut);/**
82
+ `;Xc([E({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);Xc([Ce()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Xc([W(r2)],exports.FadeInOut);/**
83
83
  * @license
84
84
  * Copyright 2017 Google LLC
85
85
  * SPDX-License-Identifier: BSD-3-Clause
@@ -111,7 +111,7 @@
111
111
  ${i};
112
112
  }
113
113
  }
114
- `},o2=Q`
114
+ `},i2=Q`
115
115
  background: none;
116
116
  border: 0;
117
117
  border-radius: var(--brz-border-radius-default);
@@ -121,9 +121,9 @@
121
121
  font: inherit;
122
122
  margin: 0;
123
123
  padding: 0;
124
- `,a2=(n,e=Q``)=>Q`
124
+ `,n2=(n,e=Q``)=>Q`
125
125
  :host ${qr(n)} {
126
- ${o2};
126
+ ${i2};
127
127
  ${e};
128
128
  }
129
129
 
@@ -132,7 +132,7 @@
132
132
  }
133
133
 
134
134
  ${yn(n)}
135
- `,y7=Math.min,C7=Math.max,w7={left:"right",right:"left",bottom:"top",top:"bottom"},x7={start:"end",end:"start"};function lh(n,e,i){return C7(n,y7(e,i))}function zl(n,e){return typeof n=="function"?n(e):n}function Cn(n){return n.split("-")[0]}function Ll(n){return n.split("-")[1]}function s2(n){return n==="x"?"y":"x"}function l2(n){return n==="y"?"height":"width"}function co(n){return["top","bottom"].includes(Cn(n))?"y":"x"}function c2(n){return s2(co(n))}function z7(n,e,i){i===void 0&&(i=!1);const o=Ll(n),l=c2(n),d=l2(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=qs(u)),[u,qs(u)]}function L7(n){const e=qs(n);return[Tc(n),e,Tc(e)]}function Tc(n){return n.replace(/start|end/g,e=>x7[e])}function S7(n,e,i){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return i?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function M7(n,e,i,o){const l=Ll(n);let d=S7(Cn(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(Tc)))),d}function qs(n){return n.replace(/left|right|bottom|top/g,e=>w7[e])}function T7(n){return{top:0,right:0,bottom:0,left:0,...n}}function k7(n){return typeof n!="number"?T7(n):{top:n,right:n,bottom:n,left:n}}function Ks(n){const{x:e,y:i,width:o,height:l}=n;return{width:o,height:l,top:i,left:e,right:e+o,bottom:i+l,x:e,y:i}}function ch(n,e,i){let{reference:o,floating:l}=n;const d=co(e),u=c2(e),v=l2(u),m=Cn(e),b=d==="y",M=o.x+o.width/2-l.width/2,L=o.y+o.height/2-l.height/2,T=o[v]/2-l[v]/2;let $;switch(m){case"top":$={x:M,y:o.y-l.height};break;case"bottom":$={x:M,y:o.y+o.height};break;case"right":$={x:o.x+o.width,y:L};break;case"left":$={x:o.x-l.width,y:L};break;default:$={x:o.x,y:o.y}}switch(Ll(e)){case"start":$[u]-=T*(i&&b?-1:1);break;case"end":$[u]+=T*(i&&b?-1:1);break}return $}const O7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),m=await(u.isRTL==null?void 0:u.isRTL(e));let b=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:M,y:L}=ch(b,o,m),T=o,$={},N=0;for(let Y=0;Y<v.length;Y++){const{name:oe,fn:_}=v[Y],{x:D,y:A,data:B,reset:K}=await _({x:M,y:L,initialPlacement:o,placement:T,strategy:l,middlewareData:$,rects:b,platform:u,elements:{reference:n,floating:e}});M=D!=null?D:M,L=A!=null?A:L,$={...$,[oe]:{...$[oe],...B}},K&&N<=50&&(N++,typeof K=="object"&&(K.placement&&(T=K.placement),K.rects&&(b=K.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):K.rects),{x:M,y:L}=ch(b,T,m)),Y=-1)}return{x:M,y:L,placement:T,strategy:l,middlewareData:$}};async function u2(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:m}=n,{boundary:b="clippingAncestors",rootBoundary:M="viewport",elementContext:L="floating",altBoundary:T=!1,padding:$=0}=zl(e,n),N=k7($),oe=v[T?L==="floating"?"reference":"floating":L],_=Ks(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(oe)))==null||i?oe:oe.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:b,rootBoundary:M,strategy:m})),D=L==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,A=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),B=await(d.isElement==null?void 0:d.isElement(A))?await(d.getScale==null?void 0:d.getScale(A))||{x:1,y:1}:{x:1,y:1},K=Ks(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:D,offsetParent:A,strategy:m}):D);return{top:(_.top-K.top+N.top)/B.y,bottom:(K.bottom-_.bottom+N.bottom)/B.y,left:(_.left-K.left+N.left)/B.x,right:(K.right-_.right+N.right)/B.x}}const $7=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var i,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:m,elements:b}=e,{mainAxis:M=!0,crossAxis:L=!0,fallbackPlacements:T,fallbackStrategy:$="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:Y=!0,...oe}=zl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const _=Cn(l),D=co(v),A=Cn(v)===v,B=await(m.isRTL==null?void 0:m.isRTL(b.floating)),K=T||(A||!Y?[qs(v)]:L7(v)),ue=N!=="none";!T&&ue&&K.push(...M7(v,Y,N,B));const le=[v,...K],me=await u2(e,oe),Me=[];let ie=((o=d.flip)==null?void 0:o.overflows)||[];if(M&&Me.push(me[_]),L){const x=z7(l,u,B);Me.push(me[x[0]],me[x[1]])}if(ie=[...ie,{placement:l,overflows:Me}],!Me.every(x=>x<=0)){var X,V;const x=(((X=d.flip)==null?void 0:X.index)||0)+1,w=le[x];if(w)return{data:{index:x,overflows:ie},reset:{placement:w}};let U=(V=ie.filter(ne=>ne.overflows[0]<=0).sort((ne,ye)=>ne.overflows[1]-ye.overflows[1])[0])==null?void 0:V.placement;if(!U)switch($){case"bestFit":{var O;const ne=(O=ie.filter(ye=>{if(ue){const ke=co(ye.placement);return ke===D||ke==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(ke=>ke>0).reduce((ke,Re)=>ke+Re,0)]).sort((ye,ke)=>ye[1]-ke[1])[0])==null?void 0:O[0];ne&&(U=ne);break}case"initialPlacement":U=v;break}if(l!==U)return{reset:{placement:U}}}return{}}}};async function E7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=Cn(i),v=Ll(i),m=co(i)==="y",b=["left","top"].includes(u)?-1:1,M=d&&m?-1:1,L=zl(e,n);let{mainAxis:T,crossAxis:$,alignmentAxis:N}=typeof L=="number"?{mainAxis:L,crossAxis:0,alignmentAxis:null}:{mainAxis:L.mainAxis||0,crossAxis:L.crossAxis||0,alignmentAxis:L.alignmentAxis};return v&&typeof N=="number"&&($=v==="end"?N*-1:N),m?{x:$*M,y:T*b}:{x:T*b,y:$*M}}const _7=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var i,o;const{x:l,y:d,placement:u,middlewareData:v}=e,m=await E7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+m.x,y:d+m.y,data:{...m,placement:u}}}}},I7=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:i,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:oe=>{let{x:_,y:D}=oe;return{x:_,y:D}}},...m}=zl(n,e),b={x:i,y:o},M=await u2(e,m),L=co(Cn(l)),T=s2(L);let $=b[T],N=b[L];if(d){const oe=T==="y"?"top":"left",_=T==="y"?"bottom":"right",D=$+M[oe],A=$-M[_];$=lh(D,$,A)}if(u){const oe=L==="y"?"top":"left",_=L==="y"?"bottom":"right",D=N+M[oe],A=N-M[_];N=lh(D,N,A)}const Y=v.fn({...e,[T]:$,[L]:N});return{...Y,data:{x:Y.x-i,y:Y.y-o,enabled:{[T]:d,[L]:u}}}}}},kc=Math.min,ro=Math.max,Ys=Math.round,ks=Math.floor,Kr=n=>({x:n,y:n});function Sl(){return typeof window!="undefined"}function fo(n){return d2(n)?(n.nodeName||"").toLowerCase():"#document"}function dr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Xr(n){var e;return(e=(d2(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function d2(n){return Sl()?n instanceof Node||n instanceof dr(n).Node:!1}function $r(n){return Sl()?n instanceof Element||n instanceof dr(n).Element:!1}function Yr(n){return Sl()?n instanceof HTMLElement||n instanceof dr(n).HTMLElement:!1}function uh(n){return!Sl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof dr(n).ShadowRoot}function Ea(n){const{overflow:e,overflowX:i,overflowY:o,display:l}=Er(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(l)}function A7(n){return["table","td","th"].includes(fo(n))}function Ml(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Qc(n){const e=e0(),i=$r(n)?Er(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function P7(n){let e=Ni(n);for(;Yr(e)&&!uo(e);){if(Qc(e))return e;if(Ml(e))return null;e=Ni(e)}return null}function e0(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(n){return["html","body","#document"].includes(fo(n))}function Er(n){return dr(n).getComputedStyle(n)}function Tl(n){return $r(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ni(n){if(fo(n)==="html")return n;const e=n.assignedSlot||n.parentNode||uh(n)&&n.host||Xr(n);return uh(e)?e.host:e}function h2(n){const e=Ni(n);return uo(e)?n.ownerDocument?n.ownerDocument.body:n.body:Yr(e)&&Ea(e)?e:h2(e)}function Ma(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=h2(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=dr(l);if(d){const v=Oc(u);return e.concat(u,u.visualViewport||[],Ea(l)?l:[],v&&i?Ma(v):[])}return e.concat(l,Ma(l,[],i))}function Oc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function f2(n){const e=Er(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Yr(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=Ys(i)!==d||Ys(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function t0(n){return $r(n)?n:n.contextElement}function io(n){const e=t0(n);if(!Yr(e))return Kr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=f2(e);let u=(d?Ys(i.width):i.width)/o,v=(d?Ys(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const D7=Kr(0);function p2(n){const e=dr(n);return!e0()||!e.visualViewport?D7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function N7(n,e,i){return e===void 0&&(e=!1),!i||e&&i!==dr(n)?!1:e}function wn(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=t0(n);let u=Kr(1);e&&(o?$r(o)&&(u=io(o)):u=io(n));const v=N7(d,i,o)?p2(d):Kr(0);let m=(l.left+v.x)/u.x,b=(l.top+v.y)/u.y,M=l.width/u.x,L=l.height/u.y;if(d){const T=dr(d),$=o&&$r(o)?dr(o):o;let N=T,Y=Oc(N);for(;Y&&o&&$!==N;){const oe=io(Y),_=Y.getBoundingClientRect(),D=Er(Y),A=_.left+(Y.clientLeft+parseFloat(D.paddingLeft))*oe.x,B=_.top+(Y.clientTop+parseFloat(D.paddingTop))*oe.y;m*=oe.x,b*=oe.y,M*=oe.x,L*=oe.y,m+=A,b+=B,N=dr(Y),Y=Oc(N)}}return Ks({width:M,height:L,x:m,y:b})}function r0(n,e){const i=Tl(n).scrollLeft;return e?e.left+i:wn(Xr(n)).left+i}function g2(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:r0(n,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function H7(n){let{elements:e,rect:i,offsetParent:o,strategy:l}=n;const d=l==="fixed",u=Xr(o),v=e?Ml(e.floating):!1;if(o===u||v&&d)return i;let m={scrollLeft:0,scrollTop:0},b=Kr(1);const M=Kr(0),L=Yr(o);if((L||!L&&!d)&&((fo(o)!=="body"||Ea(u))&&(m=Tl(o)),Yr(o))){const $=wn(o);b=io(o),M.x=$.x+o.clientLeft,M.y=$.y+o.clientTop}const T=u&&!L&&!d?g2(u,m,!0):Kr(0);return{width:i.width*b.x,height:i.height*b.y,x:i.x*b.x-m.scrollLeft*b.x+M.x+T.x,y:i.y*b.y-m.scrollTop*b.y+M.y+T.y}}function R7(n){return Array.from(n.getClientRects())}function F7(n){const e=Xr(n),i=Tl(n),o=n.ownerDocument.body,l=ro(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=ro(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+r0(n);const v=-i.scrollTop;return Er(o).direction==="rtl"&&(u+=ro(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function B7(n,e){const i=dr(n),o=Xr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,m=0;if(l){d=l.width,u=l.height;const b=e0();(!b||b&&e==="fixed")&&(v=l.offsetLeft,m=l.offsetTop)}return{width:d,height:u,x:v,y:m}}function V7(n,e){const i=wn(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Yr(n)?io(n):Kr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,m=l*d.x,b=o*d.y;return{width:u,height:v,x:m,y:b}}function dh(n,e,i){let o;if(e==="viewport")o=B7(n,i);else if(e==="document")o=F7(Xr(n));else if($r(e))o=V7(e,i);else{const l=p2(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Ks(o)}function v2(n,e){const i=Ni(n);return i===e||!$r(i)||uo(i)?!1:Er(i).position==="fixed"||v2(i,e)}function Z7(n,e){const i=e.get(n);if(i)return i;let o=Ma(n,[],!1).filter(v=>$r(v)&&fo(v)!=="body"),l=null;const d=Er(n).position==="fixed";let u=d?Ni(n):n;for(;$r(u)&&!uo(u);){const v=Er(u),m=Qc(u);!m&&v.position==="fixed"&&(l=null),(d?!m&&!l:!m&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Ea(u)&&!m&&v2(n,u))?o=o.filter(M=>M!==u):l=v,u=Ni(u)}return e.set(n,o),o}function W7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?Ml(e)?[]:Z7(e,this._c):[].concat(i),o],v=u[0],m=u.reduce((b,M)=>{const L=dh(e,M,l);return b.top=ro(L.top,b.top),b.right=kc(L.right,b.right),b.bottom=kc(L.bottom,b.bottom),b.left=ro(L.left,b.left),b},dh(e,v,l));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function U7(n){const{width:e,height:i}=f2(n);return{width:e,height:i}}function j7(n,e,i){const o=Yr(e),l=Xr(e),d=i==="fixed",u=wn(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const m=Kr(0);if(o||!o&&!d)if((fo(e)!=="body"||Ea(l))&&(v=Tl(e)),o){const T=wn(e,!0,d,e);m.x=T.x+e.clientLeft,m.y=T.y+e.clientTop}else l&&(m.x=r0(l));const b=l&&!o&&!d?g2(l,v):Kr(0),M=u.left+v.scrollLeft-m.x-b.x,L=u.top+v.scrollTop-m.y-b.y;return{x:M,y:L,width:u.width,height:u.height}}function rc(n){return Er(n).position==="static"}function hh(n,e){if(!Yr(n)||Er(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return Xr(n)===i&&(i=i.ownerDocument.body),i}function b2(n,e){const i=dr(n);if(Ml(n))return i;if(!Yr(n)){let l=Ni(n);for(;l&&!uo(l);){if($r(l)&&!rc(l))return l;l=Ni(l)}return i}let o=hh(n,e);for(;o&&A7(o)&&rc(o);)o=hh(o,e);return o&&uo(o)&&rc(o)&&!Qc(o)?i:o||P7(n)||i}const G7=async function(n){const e=this.getOffsetParent||b2,i=this.getDimensions,o=await i(n.floating);return{reference:j7(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function q7(n){return Er(n).direction==="rtl"}const K7={convertOffsetParentRelativeRectToViewportRelativeRect:H7,getDocumentElement:Xr,getClippingRect:W7,getOffsetParent:b2,getElementRects:G7,getClientRects:R7,getDimensions:U7,getScale:io,isElement:$r,isRTL:q7};function Y7(n,e){let i=null,o;const l=Xr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,m){v===void 0&&(v=!1),m===void 0&&(m=1),d();const{left:b,top:M,width:L,height:T}=n.getBoundingClientRect();if(v||e(),!L||!T)return;const $=ks(M),N=ks(l.clientWidth-(b+L)),Y=ks(l.clientHeight-(M+T)),oe=ks(b),D={rootMargin:-$+"px "+-N+"px "+-Y+"px "+-oe+"px",threshold:ro(0,kc(1,m))||1};let A=!0;function B(K){const ue=K[0].intersectionRatio;if(ue!==m){if(!A)return u();ue?u(!1,ue):o=setTimeout(()=>{u(!1,1e-7)},1e3)}A=!1}try{i=new IntersectionObserver(B,{...D,root:l.ownerDocument})}catch{i=new IntersectionObserver(B,D)}i.observe(n)}return u(!0),d}function X7(n,e,i,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:m=!1}=o,b=t0(n),M=l||d?[...b?Ma(b):[],...Ma(e)]:[];M.forEach(_=>{l&&_.addEventListener("scroll",i,{passive:!0}),d&&_.addEventListener("resize",i)});const L=b&&v?Y7(b,i):null;let T=-1,$=null;u&&($=new ResizeObserver(_=>{let[D]=_;D&&D.target===b&&$&&($.unobserve(e),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var A;(A=$)==null||A.observe(e)})),i()}),b&&!m&&$.observe(b),$.observe(e));let N,Y=m?wn(n):null;m&&oe();function oe(){const _=wn(n);Y&&(_.x!==Y.x||_.y!==Y.y||_.width!==Y.width||_.height!==Y.height)&&i(),Y=_,N=requestAnimationFrame(oe)}return i(),()=>{var _;M.forEach(D=>{l&&D.removeEventListener("scroll",i),d&&D.removeEventListener("resize",i)}),L==null||L(),(_=$)==null||_.disconnect(),$=null,m&&cancelAnimationFrame(N)}}const J7=_7,Q7=I7,e9=$7,t9=(n,e,i)=>{const o=new Map,l={platform:K7,...i},d={...l.platform,_c:o};return O7(n,e,{...l,platform:d})};var r9=Object.defineProperty,i9=Object.getOwnPropertyDescriptor,Ot=(n,e,i,o)=>{for(var l=o>1?void 0:o?i9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&r9(e,i,l),l};let n9=0;const i0=ce("popover"),m2=ce("pure-popover"),y2=["click","hover","focus"],[Xs,$c,dn]=y2,n0=["dialog","tooltip","menu"],[o9]=n0;class C2 extends CustomEvent{constructor(e){super(`${i0}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends ze{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=o9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++n9}`,this.delayTimeout=0}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.cleanupFunction)==null||e.call(this)}updatePosition(){}async updated(e){super.updated(e),e.has("isOpen")&&this.isOpen&&!this.cleanupFunction&&this.createPopover()}get floatingUIOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",middleware:[J7({mainAxis:this.distance,crossAxis:this.skidding}),e9(),Q7()]}}createPopover(){this.cleanupFunction||(this.cleanupFunction=X7(this.referenceElement,this.popoverElement,()=>{const e=this.floatingUIOptions;if(!this.isOpen){this.destroyPopover();return}t9(this.referenceElement,this.popoverElement,e).then(({x:i,y:o})=>{Object.assign(this.popoverElement.style,{left:`${i}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return e==null?void 0:e.assignedNodes({flatten:!0})[0]}get popoverElement(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector(".popover-container")}emit(e){this.dispatchEvent(new C2(e))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.createPopover(),this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,this.destroyPopover(),await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return this.enablePositionTracking||this.isOpen?F`
135
+ `,m7=Math.min,y7=Math.max,C7={left:"right",right:"left",bottom:"top",top:"bottom"},w7={start:"end",end:"start"};function sh(n,e,i){return y7(n,m7(e,i))}function zl(n,e){return typeof n=="function"?n(e):n}function Cn(n){return n.split("-")[0]}function Ll(n){return n.split("-")[1]}function o2(n){return n==="x"?"y":"x"}function a2(n){return n==="y"?"height":"width"}function co(n){return["top","bottom"].includes(Cn(n))?"y":"x"}function s2(n){return o2(co(n))}function x7(n,e,i){i===void 0&&(i=!1);const o=Ll(n),l=s2(n),d=a2(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=qs(u)),[u,qs(u)]}function z7(n){const e=qs(n);return[Mc(n),e,Mc(e)]}function Mc(n){return n.replace(/start|end/g,e=>w7[e])}function L7(n,e,i){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return i?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function S7(n,e,i,o){const l=Ll(n);let d=L7(Cn(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(Mc)))),d}function qs(n){return n.replace(/left|right|bottom|top/g,e=>C7[e])}function M7(n){return{top:0,right:0,bottom:0,left:0,...n}}function T7(n){return typeof n!="number"?M7(n):{top:n,right:n,bottom:n,left:n}}function Ks(n){const{x:e,y:i,width:o,height:l}=n;return{width:o,height:l,top:i,left:e,right:e+o,bottom:i+l,x:e,y:i}}function lh(n,e,i){let{reference:o,floating:l}=n;const d=co(e),u=s2(e),v=a2(u),m=Cn(e),b=d==="y",M=o.x+o.width/2-l.width/2,L=o.y+o.height/2-l.height/2,T=o[v]/2-l[v]/2;let $;switch(m){case"top":$={x:M,y:o.y-l.height};break;case"bottom":$={x:M,y:o.y+o.height};break;case"right":$={x:o.x+o.width,y:L};break;case"left":$={x:o.x-l.width,y:L};break;default:$={x:o.x,y:o.y}}switch(Ll(e)){case"start":$[u]-=T*(i&&b?-1:1);break;case"end":$[u]+=T*(i&&b?-1:1);break}return $}const k7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),m=await(u.isRTL==null?void 0:u.isRTL(e));let b=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:M,y:L}=lh(b,o,m),T=o,$={},N=0;for(let Y=0;Y<v.length;Y++){const{name:oe,fn:_}=v[Y],{x:D,y:A,data:B,reset:K}=await _({x:M,y:L,initialPlacement:o,placement:T,strategy:l,middlewareData:$,rects:b,platform:u,elements:{reference:n,floating:e}});M=D!=null?D:M,L=A!=null?A:L,$={...$,[oe]:{...$[oe],...B}},K&&N<=50&&(N++,typeof K=="object"&&(K.placement&&(T=K.placement),K.rects&&(b=K.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):K.rects),{x:M,y:L}=lh(b,T,m)),Y=-1)}return{x:M,y:L,placement:T,strategy:l,middlewareData:$}};async function l2(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:m}=n,{boundary:b="clippingAncestors",rootBoundary:M="viewport",elementContext:L="floating",altBoundary:T=!1,padding:$=0}=zl(e,n),N=T7($),oe=v[T?L==="floating"?"reference":"floating":L],_=Ks(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(oe)))==null||i?oe:oe.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:b,rootBoundary:M,strategy:m})),D=L==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,A=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),B=await(d.isElement==null?void 0:d.isElement(A))?await(d.getScale==null?void 0:d.getScale(A))||{x:1,y:1}:{x:1,y:1},K=Ks(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:D,offsetParent:A,strategy:m}):D);return{top:(_.top-K.top+N.top)/B.y,bottom:(K.bottom-_.bottom+N.bottom)/B.y,left:(_.left-K.left+N.left)/B.x,right:(K.right-_.right+N.right)/B.x}}const O7=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var i,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:m,elements:b}=e,{mainAxis:M=!0,crossAxis:L=!0,fallbackPlacements:T,fallbackStrategy:$="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:Y=!0,...oe}=zl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const _=Cn(l),D=co(v),A=Cn(v)===v,B=await(m.isRTL==null?void 0:m.isRTL(b.floating)),K=T||(A||!Y?[qs(v)]:z7(v)),ue=N!=="none";!T&&ue&&K.push(...S7(v,Y,N,B));const le=[v,...K],me=await l2(e,oe),Me=[];let ie=((o=d.flip)==null?void 0:o.overflows)||[];if(M&&Me.push(me[_]),L){const x=x7(l,u,B);Me.push(me[x[0]],me[x[1]])}if(ie=[...ie,{placement:l,overflows:Me}],!Me.every(x=>x<=0)){var X,V;const x=(((X=d.flip)==null?void 0:X.index)||0)+1,w=le[x];if(w)return{data:{index:x,overflows:ie},reset:{placement:w}};let U=(V=ie.filter(ne=>ne.overflows[0]<=0).sort((ne,ye)=>ne.overflows[1]-ye.overflows[1])[0])==null?void 0:V.placement;if(!U)switch($){case"bestFit":{var O;const ne=(O=ie.filter(ye=>{if(ue){const ke=co(ye.placement);return ke===D||ke==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(ke=>ke>0).reduce((ke,Re)=>ke+Re,0)]).sort((ye,ke)=>ye[1]-ke[1])[0])==null?void 0:O[0];ne&&(U=ne);break}case"initialPlacement":U=v;break}if(l!==U)return{reset:{placement:U}}}return{}}}};async function $7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=Cn(i),v=Ll(i),m=co(i)==="y",b=["left","top"].includes(u)?-1:1,M=d&&m?-1:1,L=zl(e,n);let{mainAxis:T,crossAxis:$,alignmentAxis:N}=typeof L=="number"?{mainAxis:L,crossAxis:0,alignmentAxis:null}:{mainAxis:L.mainAxis||0,crossAxis:L.crossAxis||0,alignmentAxis:L.alignmentAxis};return v&&typeof N=="number"&&($=v==="end"?N*-1:N),m?{x:$*M,y:T*b}:{x:T*b,y:$*M}}const E7=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var i,o;const{x:l,y:d,placement:u,middlewareData:v}=e,m=await $7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+m.x,y:d+m.y,data:{...m,placement:u}}}}},_7=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:i,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:oe=>{let{x:_,y:D}=oe;return{x:_,y:D}}},...m}=zl(n,e),b={x:i,y:o},M=await l2(e,m),L=co(Cn(l)),T=o2(L);let $=b[T],N=b[L];if(d){const oe=T==="y"?"top":"left",_=T==="y"?"bottom":"right",D=$+M[oe],A=$-M[_];$=sh(D,$,A)}if(u){const oe=L==="y"?"top":"left",_=L==="y"?"bottom":"right",D=N+M[oe],A=N-M[_];N=sh(D,N,A)}const Y=v.fn({...e,[T]:$,[L]:N});return{...Y,data:{x:Y.x-i,y:Y.y-o,enabled:{[T]:d,[L]:u}}}}}},Tc=Math.min,ro=Math.max,Ys=Math.round,ks=Math.floor,Kr=n=>({x:n,y:n});function Sl(){return typeof window!="undefined"}function fo(n){return c2(n)?(n.nodeName||"").toLowerCase():"#document"}function dr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Xr(n){var e;return(e=(c2(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function c2(n){return Sl()?n instanceof Node||n instanceof dr(n).Node:!1}function $r(n){return Sl()?n instanceof Element||n instanceof dr(n).Element:!1}function Yr(n){return Sl()?n instanceof HTMLElement||n instanceof dr(n).HTMLElement:!1}function ch(n){return!Sl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof dr(n).ShadowRoot}function Ea(n){const{overflow:e,overflowX:i,overflowY:o,display:l}=Er(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(l)}function I7(n){return["table","td","th"].includes(fo(n))}function Ml(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Jc(n){const e=Qc(),i=$r(n)?Er(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function A7(n){let e=Ni(n);for(;Yr(e)&&!uo(e);){if(Jc(e))return e;if(Ml(e))return null;e=Ni(e)}return null}function Qc(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(n){return["html","body","#document"].includes(fo(n))}function Er(n){return dr(n).getComputedStyle(n)}function Tl(n){return $r(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ni(n){if(fo(n)==="html")return n;const e=n.assignedSlot||n.parentNode||ch(n)&&n.host||Xr(n);return ch(e)?e.host:e}function u2(n){const e=Ni(n);return uo(e)?n.ownerDocument?n.ownerDocument.body:n.body:Yr(e)&&Ea(e)?e:u2(e)}function Ma(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=u2(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=dr(l);if(d){const v=kc(u);return e.concat(u,u.visualViewport||[],Ea(l)?l:[],v&&i?Ma(v):[])}return e.concat(l,Ma(l,[],i))}function kc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function d2(n){const e=Er(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Yr(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=Ys(i)!==d||Ys(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function e0(n){return $r(n)?n:n.contextElement}function io(n){const e=e0(n);if(!Yr(e))return Kr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=d2(e);let u=(d?Ys(i.width):i.width)/o,v=(d?Ys(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const P7=Kr(0);function h2(n){const e=dr(n);return!Qc()||!e.visualViewport?P7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function D7(n,e,i){return e===void 0&&(e=!1),!i||e&&i!==dr(n)?!1:e}function wn(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=e0(n);let u=Kr(1);e&&(o?$r(o)&&(u=io(o)):u=io(n));const v=D7(d,i,o)?h2(d):Kr(0);let m=(l.left+v.x)/u.x,b=(l.top+v.y)/u.y,M=l.width/u.x,L=l.height/u.y;if(d){const T=dr(d),$=o&&$r(o)?dr(o):o;let N=T,Y=kc(N);for(;Y&&o&&$!==N;){const oe=io(Y),_=Y.getBoundingClientRect(),D=Er(Y),A=_.left+(Y.clientLeft+parseFloat(D.paddingLeft))*oe.x,B=_.top+(Y.clientTop+parseFloat(D.paddingTop))*oe.y;m*=oe.x,b*=oe.y,M*=oe.x,L*=oe.y,m+=A,b+=B,N=dr(Y),Y=kc(N)}}return Ks({width:M,height:L,x:m,y:b})}function t0(n,e){const i=Tl(n).scrollLeft;return e?e.left+i:wn(Xr(n)).left+i}function f2(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:t0(n,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function N7(n){let{elements:e,rect:i,offsetParent:o,strategy:l}=n;const d=l==="fixed",u=Xr(o),v=e?Ml(e.floating):!1;if(o===u||v&&d)return i;let m={scrollLeft:0,scrollTop:0},b=Kr(1);const M=Kr(0),L=Yr(o);if((L||!L&&!d)&&((fo(o)!=="body"||Ea(u))&&(m=Tl(o)),Yr(o))){const $=wn(o);b=io(o),M.x=$.x+o.clientLeft,M.y=$.y+o.clientTop}const T=u&&!L&&!d?f2(u,m,!0):Kr(0);return{width:i.width*b.x,height:i.height*b.y,x:i.x*b.x-m.scrollLeft*b.x+M.x+T.x,y:i.y*b.y-m.scrollTop*b.y+M.y+T.y}}function H7(n){return Array.from(n.getClientRects())}function R7(n){const e=Xr(n),i=Tl(n),o=n.ownerDocument.body,l=ro(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=ro(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+t0(n);const v=-i.scrollTop;return Er(o).direction==="rtl"&&(u+=ro(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function F7(n,e){const i=dr(n),o=Xr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,m=0;if(l){d=l.width,u=l.height;const b=Qc();(!b||b&&e==="fixed")&&(v=l.offsetLeft,m=l.offsetTop)}return{width:d,height:u,x:v,y:m}}function B7(n,e){const i=wn(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Yr(n)?io(n):Kr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,m=l*d.x,b=o*d.y;return{width:u,height:v,x:m,y:b}}function uh(n,e,i){let o;if(e==="viewport")o=F7(n,i);else if(e==="document")o=R7(Xr(n));else if($r(e))o=B7(e,i);else{const l=h2(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Ks(o)}function p2(n,e){const i=Ni(n);return i===e||!$r(i)||uo(i)?!1:Er(i).position==="fixed"||p2(i,e)}function V7(n,e){const i=e.get(n);if(i)return i;let o=Ma(n,[],!1).filter(v=>$r(v)&&fo(v)!=="body"),l=null;const d=Er(n).position==="fixed";let u=d?Ni(n):n;for(;$r(u)&&!uo(u);){const v=Er(u),m=Jc(u);!m&&v.position==="fixed"&&(l=null),(d?!m&&!l:!m&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Ea(u)&&!m&&p2(n,u))?o=o.filter(M=>M!==u):l=v,u=Ni(u)}return e.set(n,o),o}function Z7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?Ml(e)?[]:V7(e,this._c):[].concat(i),o],v=u[0],m=u.reduce((b,M)=>{const L=uh(e,M,l);return b.top=ro(L.top,b.top),b.right=Tc(L.right,b.right),b.bottom=Tc(L.bottom,b.bottom),b.left=ro(L.left,b.left),b},uh(e,v,l));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function W7(n){const{width:e,height:i}=d2(n);return{width:e,height:i}}function U7(n,e,i){const o=Yr(e),l=Xr(e),d=i==="fixed",u=wn(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const m=Kr(0);if(o||!o&&!d)if((fo(e)!=="body"||Ea(l))&&(v=Tl(e)),o){const T=wn(e,!0,d,e);m.x=T.x+e.clientLeft,m.y=T.y+e.clientTop}else l&&(m.x=t0(l));const b=l&&!o&&!d?f2(l,v):Kr(0),M=u.left+v.scrollLeft-m.x-b.x,L=u.top+v.scrollTop-m.y-b.y;return{x:M,y:L,width:u.width,height:u.height}}function rc(n){return Er(n).position==="static"}function dh(n,e){if(!Yr(n)||Er(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return Xr(n)===i&&(i=i.ownerDocument.body),i}function g2(n,e){const i=dr(n);if(Ml(n))return i;if(!Yr(n)){let l=Ni(n);for(;l&&!uo(l);){if($r(l)&&!rc(l))return l;l=Ni(l)}return i}let o=dh(n,e);for(;o&&I7(o)&&rc(o);)o=dh(o,e);return o&&uo(o)&&rc(o)&&!Jc(o)?i:o||A7(n)||i}const j7=async function(n){const e=this.getOffsetParent||g2,i=this.getDimensions,o=await i(n.floating);return{reference:U7(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function G7(n){return Er(n).direction==="rtl"}const q7={convertOffsetParentRelativeRectToViewportRelativeRect:N7,getDocumentElement:Xr,getClippingRect:Z7,getOffsetParent:g2,getElementRects:j7,getClientRects:H7,getDimensions:W7,getScale:io,isElement:$r,isRTL:G7};function K7(n,e){let i=null,o;const l=Xr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,m){v===void 0&&(v=!1),m===void 0&&(m=1),d();const{left:b,top:M,width:L,height:T}=n.getBoundingClientRect();if(v||e(),!L||!T)return;const $=ks(M),N=ks(l.clientWidth-(b+L)),Y=ks(l.clientHeight-(M+T)),oe=ks(b),D={rootMargin:-$+"px "+-N+"px "+-Y+"px "+-oe+"px",threshold:ro(0,Tc(1,m))||1};let A=!0;function B(K){const ue=K[0].intersectionRatio;if(ue!==m){if(!A)return u();ue?u(!1,ue):o=setTimeout(()=>{u(!1,1e-7)},1e3)}A=!1}try{i=new IntersectionObserver(B,{...D,root:l.ownerDocument})}catch{i=new IntersectionObserver(B,D)}i.observe(n)}return u(!0),d}function Y7(n,e,i,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:m=!1}=o,b=e0(n),M=l||d?[...b?Ma(b):[],...Ma(e)]:[];M.forEach(_=>{l&&_.addEventListener("scroll",i,{passive:!0}),d&&_.addEventListener("resize",i)});const L=b&&v?K7(b,i):null;let T=-1,$=null;u&&($=new ResizeObserver(_=>{let[D]=_;D&&D.target===b&&$&&($.unobserve(e),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var A;(A=$)==null||A.observe(e)})),i()}),b&&!m&&$.observe(b),$.observe(e));let N,Y=m?wn(n):null;m&&oe();function oe(){const _=wn(n);Y&&(_.x!==Y.x||_.y!==Y.y||_.width!==Y.width||_.height!==Y.height)&&i(),Y=_,N=requestAnimationFrame(oe)}return i(),()=>{var _;M.forEach(D=>{l&&D.removeEventListener("scroll",i),d&&D.removeEventListener("resize",i)}),L==null||L(),(_=$)==null||_.disconnect(),$=null,m&&cancelAnimationFrame(N)}}const X7=E7,J7=_7,Q7=O7,e9=(n,e,i)=>{const o=new Map,l={platform:q7,...i},d={...l.platform,_c:o};return k7(n,e,{...l,platform:d})};var t9=Object.defineProperty,r9=Object.getOwnPropertyDescriptor,Ot=(n,e,i,o)=>{for(var l=o>1?void 0:o?r9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&t9(e,i,l),l};let i9=0;const r0=ce("popover"),v2=ce("pure-popover"),b2=["click","hover","focus"],[Xs,Oc,dn]=b2,i0=["dialog","tooltip","menu"],[n9]=i0;class m2 extends CustomEvent{constructor(e){super(`${r0}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends ze{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=n9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++i9}`,this.delayTimeout=0}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.cleanupFunction)==null||e.call(this)}updatePosition(){}async updated(e){super.updated(e),e.has("isOpen")&&this.isOpen&&!this.cleanupFunction&&this.createPopover()}get floatingUIOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",middleware:[X7({mainAxis:this.distance,crossAxis:this.skidding}),Q7(),J7()]}}createPopover(){this.cleanupFunction||(this.cleanupFunction=Y7(this.referenceElement,this.popoverElement,()=>{const e=this.floatingUIOptions;if(!this.isOpen){this.destroyPopover();return}e9(this.referenceElement,this.popoverElement,e).then(({x:i,y:o})=>{Object.assign(this.popoverElement.style,{left:`${i}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return e==null?void 0:e.assignedNodes({flatten:!0})[0]}get popoverElement(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector(".popover-container")}emit(e){this.dispatchEvent(new m2(e))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.createPopover(),this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,this.destroyPopover(),await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return this.enablePositionTracking||this.isOpen?F`
136
136
  <slot></slot>
137
137
 
138
138
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -156,9 +156,9 @@
156
156
  position: absolute';
157
157
  width: max-content;
158
158
  }
159
- `;Ot([E({type:Number})],exports.PurePopover.prototype,"distance",2);Ot([E({type:Number})],exports.PurePopover.prototype,"skidding",2);Ot([E({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Ot([E({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Ot([E({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Ot([E({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Ot([E({type:String})],exports.PurePopover.prototype,"placement",2);Ot([E({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Ot([E({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Ot([E({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Ot([Ce()],exports.PurePopover.prototype,"popoverId",2);Ot([Ce()],exports.PurePopover.prototype,"cleanupFunction",2);Ot([Ce()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Ot([W(m2)],exports.PurePopover);const Js=["blur","mouseenter","mouseleave","keydown",Xs,dn],[ic,a9,s9,l9]=Js;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Xs]:this.handleClick,[dn]:this.handleFocus,[ic]:this.handleBlur,[a9]:this.handleMouseEnter,[s9]:this.handleMouseLeave,[l9]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){Js.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[dn,ic].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Js.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[dn,ic].includes(e)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(e){return this.triggers.includes(e)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(e){!this.isOpen||this.contains(e.target)||this.hasPointer||await this.close()}async handleClick(e){var i;if(!(this.isOpen&&((i=this.contentElement)!=null&&i.contains(e.target)))){if(!this.hasTrigger(Xs))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(dn)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(dn)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger($c)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger($c)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Ot([E({type:String})],exports.Popover.prototype,"trigger",2);Ot([Ce()],exports.Popover.prototype,"hasFocus",2);Ot([Ce()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Ot([W(i0)],exports.Popover);var c9=Object.defineProperty,u9=Object.getOwnPropertyDescriptor,pi=(n,e,i,o)=>{for(var l=o>1?void 0:o?u9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&c9(e,i,l),l};const w2=ce("tooltip"),[,d9]=n0;var x2=(n=>(n[n.dark=0]="dark",n[n.light=1]="light",n))(x2||{});exports.Tooltip=class extends ze{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return F`
159
+ `;Ot([E({type:Number})],exports.PurePopover.prototype,"distance",2);Ot([E({type:Number})],exports.PurePopover.prototype,"skidding",2);Ot([E({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Ot([E({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Ot([E({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Ot([E({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Ot([E({type:String})],exports.PurePopover.prototype,"placement",2);Ot([E({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Ot([E({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Ot([E({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Ot([Ce()],exports.PurePopover.prototype,"popoverId",2);Ot([Ce()],exports.PurePopover.prototype,"cleanupFunction",2);Ot([Ce()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Ot([W(v2)],exports.PurePopover);const Js=["blur","mouseenter","mouseleave","keydown",Xs,dn],[ic,o9,a9,s9]=Js;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Xs]:this.handleClick,[dn]:this.handleFocus,[ic]:this.handleBlur,[o9]:this.handleMouseEnter,[a9]:this.handleMouseLeave,[s9]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){Js.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[dn,ic].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Js.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[dn,ic].includes(e)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(e){return this.triggers.includes(e)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(e){!this.isOpen||this.contains(e.target)||this.hasPointer||await this.close()}async handleClick(e){var i;if(!(this.isOpen&&((i=this.contentElement)!=null&&i.contains(e.target)))){if(!this.hasTrigger(Xs))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(dn)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(dn)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(Oc)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(Oc)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Ot([E({type:String})],exports.Popover.prototype,"trigger",2);Ot([Ce()],exports.Popover.prototype,"hasFocus",2);Ot([Ce()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Ot([W(r0)],exports.Popover);var l9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,pi=(n,e,i,o)=>{for(var l=o>1?void 0:o?c9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&l9(e,i,l),l};const y2=ce("tooltip"),[,u9]=i0;var C2=(n=>(n[n.dark=0]="dark",n[n.light=1]="light",n))(C2||{});exports.Tooltip=class extends ze{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return F`
160
160
  <brz-popover
161
- .popoverRole=${d9}
161
+ .popoverRole=${u9}
162
162
  .distance=${8}
163
163
  .delayOnClose=${this.delayOnClose}
164
164
  .delayOnOpen=${this.delayOnOpen}
@@ -191,7 +191,7 @@
191
191
  background-color: var(--brz-color-white);
192
192
  color: var(--brz-color-text);
193
193
  }
194
- `;pi([E({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);pi([E({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);pi([E({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);pi([E({type:String})],exports.Tooltip.prototype,"placement",2);pi([E({type:String})],exports.Tooltip.prototype,"trigger",2);pi([E({type:Boolean})],exports.Tooltip.prototype,"disabled",2);pi([E({type:String})],exports.Tooltip.prototype,"content",2);pi([E({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=pi([W(w2)],exports.Tooltip);var h9=Object.defineProperty,f9=Object.getOwnPropertyDescriptor,mr=(n,e,i,o)=>{for(var l=o>1?void 0:o?f9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&h9(e,i,l),l};const z2=ce("avatar"),L2=ce("avatar-group");var Qs=(n=>(n[n.tiny=0]="tiny",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(Qs||{}),S2=(n=>(n[n.solid=0]="solid",n[n.subtle=1]="subtle",n[n.border=2]="border",n))(S2||{});exports.Avatar=class extends ze{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:e}){const i=e==null?void 0:e.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=Qs[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=Qs[this.size],i=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return F`
194
+ `;pi([E({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);pi([E({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);pi([E({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);pi([E({type:String})],exports.Tooltip.prototype,"placement",2);pi([E({type:String})],exports.Tooltip.prototype,"trigger",2);pi([E({type:Boolean})],exports.Tooltip.prototype,"disabled",2);pi([E({type:String})],exports.Tooltip.prototype,"content",2);pi([E({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=pi([W(y2)],exports.Tooltip);var d9=Object.defineProperty,h9=Object.getOwnPropertyDescriptor,mr=(n,e,i,o)=>{for(var l=o>1?void 0:o?h9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&d9(e,i,l),l};const w2=ce("avatar"),x2=ce("avatar-group");var Qs=(n=>(n[n.tiny=0]="tiny",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(Qs||{}),z2=(n=>(n[n.solid=0]="solid",n[n.subtle=1]="subtle",n[n.border=2]="border",n))(z2||{});exports.Avatar=class extends ze{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:e}){const i=e==null?void 0:e.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=Qs[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=Qs[this.size],i=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return F`
195
195
  <span class="icon" aria-label=${this.label}>
196
196
  <brz-icon size=${i()} icon=${He(this.icon)}></brz-icon>
197
197
  </span>
@@ -368,7 +368,7 @@
368
368
  :host brz-link .container {
369
369
  cursor: pointer;
370
370
  }
371
- `;mr([E({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);mr([E({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);mr([E({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);mr([E({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);mr([E({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);mr([E({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);mr([E({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);mr([E({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);mr([E({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);mr([Ce()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=mr([W(z2)],exports.Avatar);exports.AvatarGroup=class extends ze{render(){return F` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=Q`
371
+ `;mr([E({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);mr([E({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);mr([E({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);mr([E({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);mr([E({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);mr([E({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);mr([E({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);mr([E({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);mr([E({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);mr([Ce()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=mr([W(w2)],exports.Avatar);exports.AvatarGroup=class extends ze{render(){return F` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=Q`
372
372
  :host .container {
373
373
  align-items: center;
374
374
  display: inline-flex;
@@ -379,16 +379,16 @@
379
379
  ::slotted(sp-avatar:not(:first-child)) {
380
380
  margin-left: -0.6em;
381
381
  }
382
- `;exports.AvatarGroup=mr([W(L2)],exports.AvatarGroup);const o0=.25,_a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],p9=_a.map(n=>Q`
383
- --brz-spacing-${n}: ${n*o0}rem;
384
- `),M2=Q`
382
+ `;exports.AvatarGroup=mr([W(x2)],exports.AvatarGroup);const n0=.25,_a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],f9=_a.map(n=>Q`
383
+ --brz-spacing-${n}: ${n*n0}rem;
384
+ `),L2=Q`
385
385
  :host {
386
386
  --brz-spacing-px: 1px;
387
- --brz-spacing-half: ${.5*o0}rem;
387
+ --brz-spacing-half: ${.5*n0}rem;
388
388
 
389
- ${qr(p9.join(""))};
389
+ ${qr(f9.join(""))};
390
390
  }
391
- `,g9=["m","p"],v9=["x","y"],b9=["t","r","b","l"],m9=g9.flatMap(n=>[n,...v9.map(e=>`${n}${e}`),...b9.map(e=>`${n}${e}`)]),y9=m9.reduce((n,e)=>({...n,[e]:{type:Number,reflect:!0}}),{}),C9=n=>Q`
391
+ `,p9=["m","p"],g9=["x","y"],v9=["t","r","b","l"],b9=p9.flatMap(n=>[n,...g9.map(e=>`${n}${e}`),...v9.map(e=>`${n}${e}`)]),m9=b9.reduce((n,e)=>({...n,[e]:{type:Number,reflect:!0}}),{}),y9=n=>Q`
392
392
  :host([m='${n}']),
393
393
  :host([my='${n}']),
394
394
  :host([mt='${n}']) {
@@ -436,7 +436,7 @@
436
436
  :host([pr='${n}']) {
437
437
  padding-right: var(--brz-spacing-${n});
438
438
  }
439
- `,w9=_a.map(C9),x9=n=>{var i,o;class e extends n{}return e.styles=[(i=n.styles)!=null?i:[],...w9],e.properties={...(o=n.properties)!=null?o:{},...y9},e},po=x9(ze),z9=n=>n.viewBox!==void 0,L9={arrowDown:{svg:R`
439
+ `,C9=_a.map(y9),w9=n=>{var i,o;class e extends n{}return e.styles=[(i=n.styles)!=null?i:[],...C9],e.properties={...(o=n.properties)!=null?o:{},...m9},e},po=w9(ze),x9=n=>n.viewBox!==void 0,z9={arrowDown:{svg:R`
440
440
  <title>Asset 36</title>
441
441
  <g data-name="Layer 2">
442
442
  <g data-name="Layer 1">
@@ -749,7 +749,7 @@
749
749
  C7,14.1,7,14.1,7,14.1z"/>
750
750
  <path d="M10,20c-1.5,0-3-0.3-4.4-1c-2.4-1.2-4.2-3.2-5.1-5.7C-1.2,8,1.5,2.3,6.7,0.5c5.2-1.8,10.9,1,12.7,6.2
751
751
  c1.8,5.2-1,10.9-6.2,12.7l0,0C12.2,19.8,11.1,20,10,20z M12.9,18.5L12.9,18.5L12.9,18.5z M10,2C9.1,2,8.3,2.1,7.4,2.4
752
- c-4.2,1.4-6.4,6-5,10.2c0.7,2,2.1,3.6,4.1,4.6c1.9,0.9,4.1,1.1,6.1,0.4c4.2-1.4,6.4-6,5-10.2C16.4,4.1,13.3,2,10,2z"/>`},upDown:{viewBox:"0 0 10 18",svg:R`<path d="M8.74818914,5.57757178 C9.10122662,5.22949983 9.09992902,4.66388436 8.74089535,4.30990056 L5.65231403,1.26476075 C5.29524829,0.912717214 4.71829829,0.910776954 4.35926462,1.26476075 L1.2706833,4.30990056 C0.913617563,4.6619441 0.908617118,5.22778933 1.26338951,5.57757178 L1.32624321,5.63954142 C1.67928069,5.98761337 2.24605009,5.99315182 2.61024678,5.63407763 L5.00578932,3.27222886 L7.40133187,5.63407763 C7.75742997,5.98516714 8.33056305,5.98932387 8.68533544,5.63954142 L8.74818914,5.57757178 Z M1.26338951,12.4302063 C0.910352023,12.7782783 0.911649623,13.3438938 1.2706833,13.6978776 L4.35926462,16.7430174 C4.71633035,17.0950609 5.29328035,17.0970012 5.65231403,16.7430174 L8.74089535,13.6978776 C9.09796108,13.345834 9.10296153,12.7799888 8.74818914,12.4302063 L8.68533544,12.3682367 C8.33229795,12.0201647 7.76552856,12.0146263 7.40133187,12.3737005 L5.00578932,14.7355492 L2.61024678,12.3737005 C2.25414867,12.022611 1.6810156,12.0184542 1.32624321,12.3682367 L1.26338951,12.4302063 Z"></path>`},warningFill:{viewBox:"0 0 19 17",svg:R`<path class="cls-1" d="M18.84,15.8,11.36,1.67a2.17,2.17,0,0,0-.84-.85A2,2,0,0,0,9.47.5a2.22,2.22,0,0,0-1.9,1.17L.09,15.8A1.21,1.21,0,0,0,1,17.5H17.89a.94.94,0,0,0,.53-.11A1.18,1.18,0,0,0,18.84,15.8Zm-9.35-.72a1,1,0,1,1,1-1A1,1,0,0,1,9.49,15.08Zm1-4a1,1,0,0,1-2,0v-5a1,1,0,1,1,2,0Z" transform="translate(0.01 -0.5)"/>`}},S9="0 0 18 18",T2=n=>z9(n)?n:{svg:n,viewBox:S9},a0={actions:R`
752
+ c-4.2,1.4-6.4,6-5,10.2c0.7,2,2.1,3.6,4.1,4.6c1.9,0.9,4.1,1.1,6.1,0.4c4.2-1.4,6.4-6,5-10.2C16.4,4.1,13.3,2,10,2z"/>`},upDown:{viewBox:"0 0 10 18",svg:R`<path d="M8.74818914,5.57757178 C9.10122662,5.22949983 9.09992902,4.66388436 8.74089535,4.30990056 L5.65231403,1.26476075 C5.29524829,0.912717214 4.71829829,0.910776954 4.35926462,1.26476075 L1.2706833,4.30990056 C0.913617563,4.6619441 0.908617118,5.22778933 1.26338951,5.57757178 L1.32624321,5.63954142 C1.67928069,5.98761337 2.24605009,5.99315182 2.61024678,5.63407763 L5.00578932,3.27222886 L7.40133187,5.63407763 C7.75742997,5.98516714 8.33056305,5.98932387 8.68533544,5.63954142 L8.74818914,5.57757178 Z M1.26338951,12.4302063 C0.910352023,12.7782783 0.911649623,13.3438938 1.2706833,13.6978776 L4.35926462,16.7430174 C4.71633035,17.0950609 5.29328035,17.0970012 5.65231403,16.7430174 L8.74089535,13.6978776 C9.09796108,13.345834 9.10296153,12.7799888 8.74818914,12.4302063 L8.68533544,12.3682367 C8.33229795,12.0201647 7.76552856,12.0146263 7.40133187,12.3737005 L5.00578932,14.7355492 L2.61024678,12.3737005 C2.25414867,12.022611 1.6810156,12.0184542 1.32624321,12.3682367 L1.26338951,12.4302063 Z"></path>`},warningFill:{viewBox:"0 0 19 17",svg:R`<path class="cls-1" d="M18.84,15.8,11.36,1.67a2.17,2.17,0,0,0-.84-.85A2,2,0,0,0,9.47.5a2.22,2.22,0,0,0-1.9,1.17L.09,15.8A1.21,1.21,0,0,0,1,17.5H17.89a.94.94,0,0,0,.53-.11A1.18,1.18,0,0,0,18.84,15.8Zm-9.35-.72a1,1,0,1,1,1-1A1,1,0,0,1,9.49,15.08Zm1-4a1,1,0,0,1-2,0v-5a1,1,0,1,1,2,0Z" transform="translate(0.01 -0.5)"/>`}},L9="0 0 18 18",S2=n=>x9(n)?n:{svg:n,viewBox:L9},o0={actions:R`
753
753
  <g stroke="none" stroke-width="1" fill-rule="evenodd">
754
754
  <g transform="translate(-0.002970, 0.000000)">
755
755
  <path d="M8,0.100006104 L8,0.0549287778 C3.50004954,0.552373066 0,4.36744635 0,9 C0,13.6325537 3.50004954,17.4476269 8,17.9450712 L8,17.8999939 C8.55228475,17.8999939 9,17.4522786 9,16.8999939 C9,16.3477091 8.55228475,15.8999939 8,15.8999939 C7.95488652,15.8999939 7.91047077,15.9029813 7.86693979,15.908769 C4.53975459,15.3672534 2,12.4802225 2,9 C2,5.51977755 4.53975459,2.63274657 7.86693979,2.09123103 C7.91047077,2.09701874 7.95488652,2.1000061 8,2.1000061 C8.55228475,2.1000061 9,1.65229085 9,1.1000061 C9,0.547721354 8.55228475,0.100006104 8,0.100006104 Z"></path>
@@ -1226,7 +1226,7 @@
1226
1226
  <circle class="st0" cx="9" cy="13" r="1"/>
1227
1227
  <path class="st0" d="M9,6.2c-0.6,0-1,0.4-1,1v3c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1v-3C10,6.6,9.6,6.2,9,6.2z"/>
1228
1228
  </g>
1229
- <path d="M9,3.1l6.4,12H2.6L9,3.1 M9,1C8.3,1,7.6,1.4,7.2,2.1L0.1,15.4C0,15.6,0,15.8,0,15.9C0,16.5,0.5,17,1,17h16 c0.2,0,0.3,0,0.5-0.1c0.5-0.3,0.7-0.9,0.4-1.5L10.8,2.1c-0.2-0.3-0.4-0.6-0.8-0.8C9.7,1.1,9.3,1,9,1L9,1z"/>`,zoomIn:R`<path d="M10,8V4.8c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1V8L4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1H8v3.3c0,0.6,0.4,1,1,1 c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7V10h3.3c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H10z"/>`,zoomOut:R`<path d="M4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1h8.5c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H4.8z"/>`,...L9},M9=Object.keys(a0);var T9=Object.defineProperty,k9=Object.getOwnPropertyDescriptor,s0=(n,e,i,o)=>{for(var l=o>1?void 0:o?k9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&T9(e,i,l),l};const k2=ce("icon");exports.Icon=class extends ze{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:i}=T2(a0[this.icon]);return F`
1229
+ <path d="M9,3.1l6.4,12H2.6L9,3.1 M9,1C8.3,1,7.6,1.4,7.2,2.1L0.1,15.4C0,15.6,0,15.8,0,15.9C0,16.5,0.5,17,1,17h16 c0.2,0,0.3,0,0.5-0.1c0.5-0.3,0.7-0.9,0.4-1.5L10.8,2.1c-0.2-0.3-0.4-0.6-0.8-0.8C9.7,1.1,9.3,1,9,1L9,1z"/>`,zoomIn:R`<path d="M10,8V4.8c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1V8L4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1H8v3.3c0,0.6,0.4,1,1,1 c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7V10h3.3c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H10z"/>`,zoomOut:R`<path d="M4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1h8.5c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H4.8z"/>`,...z9},S9=Object.keys(o0);var M9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,a0=(n,e,i,o)=>{for(var l=o>1?void 0:o?T9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&M9(e,i,l),l};const M2=ce("icon");exports.Icon=class extends ze{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:i}=S2(o0[this.icon]);return F`
1230
1230
  <svg
1231
1231
  role="presentation"
1232
1232
  width=${this.size}
@@ -1244,7 +1244,7 @@
1244
1244
  svg {
1245
1245
  fill: currentColor;
1246
1246
  }
1247
- `;s0([E({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);s0([E({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=s0([W(k2)],exports.Icon);var O9=Object.defineProperty,$9=Object.getOwnPropertyDescriptor,gi=(n,e,i,o)=>{for(var l=o>1?void 0:o?$9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&O9(e,i,l),l};const O2=ce("link"),$2=ce("link-button"),E9=["a","button"],_9=Q`
1247
+ `;a0([E({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);a0([E({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=a0([W(M2)],exports.Icon);var k9=Object.defineProperty,O9=Object.getOwnPropertyDescriptor,gi=(n,e,i,o)=>{for(var l=o>1?void 0:o?O9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&k9(e,i,l),l};const T2=ce("link"),k2=ce("link-button"),$9=["a","button"],E9=Q`
1248
1248
  :host {
1249
1249
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
1250
1250
  align-items: center;
@@ -1278,12 +1278,12 @@
1278
1278
  :host([link-type='secondary']:hover) {
1279
1279
  text-decoration: none;
1280
1280
  }
1281
- `,l0=Q`
1281
+ `,s0=Q`
1282
1282
  a {
1283
1283
  color: inherit;
1284
1284
  text-decoration: inherit;
1285
1285
  }
1286
- `,I9=Q`
1286
+ `,_9=Q`
1287
1287
  button {
1288
1288
  font-family: inherit;
1289
1289
  font-size: inherit;
@@ -1295,7 +1295,7 @@
1295
1295
  color: inherit;
1296
1296
  cursor: pointer;
1297
1297
  }
1298
- `,A9=["primary","secondary"];exports.Link=class extends ze{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(e){this.virtual&&e.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?F`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return F`
1298
+ `,I9=["primary","secondary"];exports.Link=class extends ze{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(e){this.virtual&&e.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?F`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return F`
1299
1299
  <a
1300
1300
  href=${He(this.href)}
1301
1301
  target=${He(this.target)}
@@ -1312,7 +1312,7 @@
1312
1312
  </button>
1313
1313
 
1314
1314
  ${this.externalIcon}
1315
- `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[l0,I9,_9];gi([E()],exports.Link.prototype,"element",2);gi([E({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"href",2);gi([E({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"target",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"rel",2);gi([E({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=gi([W(O2)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=gi([W($2)],exports.LinkButton);var P9=Object.defineProperty,D9=Object.getOwnPropertyDescriptor,kl=(n,e,i,o)=>{for(var l=o>1?void 0:o?D9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&P9(e,i,l),l};const E2=ce("row"),_2=ce("column");exports.Row=class extends ze{render(){return F`<slot></slot>`}};exports.Row.styles=Q`
1315
+ `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[s0,_9,E9];gi([E()],exports.Link.prototype,"element",2);gi([E({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"href",2);gi([E({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"target",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"rel",2);gi([E({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=gi([W(T2)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=gi([W(k2)],exports.LinkButton);var A9=Object.defineProperty,P9=Object.getOwnPropertyDescriptor,kl=(n,e,i,o)=>{for(var l=o>1?void 0:o?P9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&A9(e,i,l),l};const O2=ce("row"),$2=ce("column");exports.Row=class extends ze{render(){return F`<slot></slot>`}};exports.Row.styles=Q`
1316
1316
  :host {
1317
1317
  display: flex;
1318
1318
  flex-direction: row;
@@ -1331,7 +1331,7 @@
1331
1331
  :host([vertical-align='bottom']) {
1332
1332
  align-items: flex-end;
1333
1333
  }
1334
- `;kl([E({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=kl([W(E2)],exports.Row);exports.Column=class extends ze{render(){return F`<slot></slot>`}};exports.Column.styles=Q`
1334
+ `;kl([E({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=kl([W(O2)],exports.Row);exports.Column=class extends ze{render(){return F`<slot></slot>`}};exports.Column.styles=Q`
1335
1335
  :host {
1336
1336
  display: flex;
1337
1337
  flex-direction: column;
@@ -1350,7 +1350,7 @@
1350
1350
  :host([align='right']) {
1351
1351
  align-items: flex-end;
1352
1352
  }
1353
- `;kl([E({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=kl([W(_2)],exports.Column);var N9=Object.defineProperty,H9=Object.getOwnPropertyDescriptor,I2=(n,e,i,o)=>{for(var l=o>1?void 0:o?H9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&N9(e,i,l),l};const A2=ce("loading-spinner");exports.LoadingSpinner=class extends ze{constructor(){super(...arguments),this.size=24}render(){return F`
1353
+ `;kl([E({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=kl([W($2)],exports.Column);var D9=Object.defineProperty,N9=Object.getOwnPropertyDescriptor,E2=(n,e,i,o)=>{for(var l=o>1?void 0:o?N9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&D9(e,i,l),l};const _2=ce("loading-spinner");exports.LoadingSpinner=class extends ze{constructor(){super(...arguments),this.size=24}render(){return F`
1354
1354
  <div class="loading-spinner">
1355
1355
  <svg
1356
1356
  class="loading-spinner--circular"
@@ -1405,8 +1405,8 @@
1405
1405
  stroke-dashoffset: -124px;
1406
1406
  }
1407
1407
  }
1408
- `;I2([E({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=I2([W(A2)],exports.LoadingSpinner);var R9=Object.defineProperty,F9=Object.getOwnPropertyDescriptor,$t=(n,e,i,o)=>{for(var l=o>1?void 0:o?F9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&R9(e,i,l),l};const c0=ce("button"),P2=ce("button-group");class D2 extends CustomEvent{constructor(e){super(`${c0}-${e}`,{bubbles:!0,composed:!0})}}const B9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends po{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.tooltipText="",this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var o;return!!((o=i.textContent)!=null&&o.replace(`
1409
- `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new D2(e))}get classes(){return Qt({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return F`
1408
+ `;E2([E({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=E2([W(_2)],exports.LoadingSpinner);var H9=Object.defineProperty,R9=Object.getOwnPropertyDescriptor,$t=(n,e,i,o)=>{for(var l=o>1?void 0:o?R9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&H9(e,i,l),l};const l0=ce("button"),I2=ce("button-group");class A2 extends CustomEvent{constructor(e){super(`${l0}-${e}`,{bubbles:!0,composed:!0})}}const F9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends po{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.tooltipText="",this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var o;return!!((o=i.textContent)!=null&&o.replace(`
1409
+ `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new A2(e))}get classes(){return Qt({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return F`
1410
1410
  <a
1411
1411
  part="button"
1412
1412
  role="button"
@@ -1449,7 +1449,7 @@
1449
1449
  </div>
1450
1450
 
1451
1451
  ${this.loading?F`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
1452
- `}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return He(this.tooltipText)?this.buttonTemplateWithTooltip:this.buttonTemplate}}};var Pf;exports.Button.styles=[(Pf=po.styles)!=null?Pf:[],l0,Q`
1452
+ `}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return He(this.tooltipText)?this.buttonTemplateWithTooltip:this.buttonTemplate}}};var If;exports.Button.styles=[(If=po.styles)!=null?If:[],s0,Q`
1453
1453
  :host {
1454
1454
  --brz-button-background-color: transparent;
1455
1455
  --brz-button-border-width: var(--brz-spacing-px);
@@ -1649,7 +1649,7 @@
1649
1649
  brz-tooltip {
1650
1650
  display: flex;
1651
1651
  }
1652
- `];$t([E()],exports.Button.prototype,"element",2);$t([E({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);$t([E({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);$t([E({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);$t([E({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);$t([E()],exports.Button.prototype,"href",2);$t([E()],exports.Button.prototype,"target",2);$t([E()],exports.Button.prototype,"rel",2);$t([E({type:String,attribute:"tooltip-text"})],exports.Button.prototype,"tooltipText",2);$t([E({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);$t([Ir("button")],exports.Button.prototype,"buttonElement",2);$t([Xc()],exports.Button.prototype,"defaultSlot",2);exports.Button=$t([W(c0)],exports.Button);exports.ButtonGroup=class extends ze{constructor(){super(...arguments),this.compact=!1}render(){return F`<brz-row class=${Qt({compact:this.compact})}
1652
+ `];$t([E()],exports.Button.prototype,"element",2);$t([E({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);$t([E({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);$t([E({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);$t([E({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);$t([E()],exports.Button.prototype,"href",2);$t([E()],exports.Button.prototype,"target",2);$t([E()],exports.Button.prototype,"rel",2);$t([E({type:String,attribute:"tooltip-text"})],exports.Button.prototype,"tooltipText",2);$t([E({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);$t([Ir("button")],exports.Button.prototype,"buttonElement",2);$t([Yc()],exports.Button.prototype,"defaultSlot",2);exports.Button=$t([W(l0)],exports.Button);exports.ButtonGroup=class extends ze{constructor(){super(...arguments),this.compact=!1}render(){return F`<brz-row class=${Qt({compact:this.compact})}
1653
1653
  ><slot></slot
1654
1654
  ></brz-row>`}};exports.ButtonGroup.styles=Q`
1655
1655
  brz-row {
@@ -1668,7 +1668,7 @@
1668
1668
  --brz-button-r-radius: 0;
1669
1669
  --brz-border-r-width: 0;
1670
1670
  }
1671
- `;$t([E({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=$t([W(P2)],exports.ButtonGroup);const V9=["small","medium","large"];var Z9=Object.defineProperty,W9=Object.getOwnPropertyDescriptor,Jr=(n,e,i,o)=>{for(var l=o>1?void 0:o?W9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Z9(e,i,l),l};const N2=ce("dropdown-menu"),U9=[...V9,"fluid"];exports.DropdownMenu=class extends ze{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(e){super.updated(e),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:e,offsetWidth:i}=this.referenceElement,o=window.getComputedStyle(this.referenceElement);this.fluidWidth=o.boxSizing==="border-box"&&o.width!==void 0?e:i}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var e;(e=this.popover)==null||e.updatePosition()}render(){return F`
1671
+ `;$t([E({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=$t([W(I2)],exports.ButtonGroup);const B9=["small","medium","large"];var V9=Object.defineProperty,Z9=Object.getOwnPropertyDescriptor,Jr=(n,e,i,o)=>{for(var l=o>1?void 0:o?Z9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&V9(e,i,l),l};const P2=ce("dropdown-menu"),W9=[...B9,"fluid"];exports.DropdownMenu=class extends ze{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(e){super.updated(e),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:e,offsetWidth:i}=this.referenceElement,o=window.getComputedStyle(this.referenceElement);this.fluidWidth=o.boxSizing==="border-box"&&o.width!==void 0?e:i}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var e;(e=this.popover)==null||e.updatePosition()}render(){return F`
1672
1672
  <brz-popover
1673
1673
  trigger="click"
1674
1674
  placement="bottom-start"
@@ -1716,33 +1716,33 @@
1716
1716
  brz-menu::-webkit-scrollbar-track {
1717
1717
  background-clip: padding-box;
1718
1718
  }
1719
- `;Jr([E({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Jr([E({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Jr([E({type:Array})],exports.DropdownMenu.prototype,"selected",2);Jr([E()],exports.DropdownMenu.prototype,"size",2);Jr([Ce()],exports.DropdownMenu.prototype,"fluidWidth",2);Jr([Ce()],exports.DropdownMenu.prototype,"disabled",2);Jr([Ir("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Jr([Ir("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Jr([fi()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Jr([W(N2)],exports.DropdownMenu);var va=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function u0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function j9(n,e,i,o){for(var l=n.length,d=i+(o?1:-1);o?d--:++d<l;)if(e(n[d],d,n))return d;return-1}var G9=j9;function q9(){this.__data__=[],this.size=0}var K9=q9;function Y9(n,e){return n===e||n!==n&&e!==e}var d0=Y9,X9=d0;function J9(n,e){for(var i=n.length;i--;)if(X9(n[i][0],e))return i;return-1}var Ol=J9,Q9=Ol,e8=Array.prototype,t8=e8.splice;function r8(n){var e=this.__data__,i=Q9(e,n);if(i<0)return!1;var o=e.length-1;return i==o?e.pop():t8.call(e,i,1),--this.size,!0}var i8=r8,n8=Ol;function o8(n){var e=this.__data__,i=n8(e,n);return i<0?void 0:e[i][1]}var a8=o8,s8=Ol;function l8(n){return s8(this.__data__,n)>-1}var c8=l8,u8=Ol;function d8(n,e){var i=this.__data__,o=u8(i,n);return o<0?(++this.size,i.push([n,e])):i[o][1]=e,this}var h8=d8,f8=K9,p8=i8,g8=a8,v8=c8,b8=h8;function go(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}go.prototype.clear=f8;go.prototype.delete=p8;go.prototype.get=g8;go.prototype.has=v8;go.prototype.set=b8;var $l=go,m8=$l;function y8(){this.__data__=new m8,this.size=0}var C8=y8;function w8(n){var e=this.__data__,i=e.delete(n);return this.size=e.size,i}var x8=w8;function z8(n){return this.__data__.get(n)}var L8=z8;function S8(n){return this.__data__.has(n)}var M8=S8,T8=typeof va=="object"&&va&&va.Object===Object&&va,H2=T8,k8=H2,O8=typeof self=="object"&&self&&self.Object===Object&&self,$8=k8||O8||Function("return this")(),vi=$8,E8=vi,_8=E8.Symbol,El=_8,fh=El,R2=Object.prototype,I8=R2.hasOwnProperty,A8=R2.toString,ua=fh?fh.toStringTag:void 0;function P8(n){var e=I8.call(n,ua),i=n[ua];try{n[ua]=void 0;var o=!0}catch{}var l=A8.call(n);return o&&(e?n[ua]=i:delete n[ua]),l}var D8=P8,N8=Object.prototype,H8=N8.toString;function R8(n){return H8.call(n)}var F8=R8,ph=El,B8=D8,V8=F8,Z8="[object Null]",W8="[object Undefined]",gh=ph?ph.toStringTag:void 0;function U8(n){return n==null?n===void 0?W8:Z8:gh&&gh in Object(n)?B8(n):V8(n)}var Ia=U8;function j8(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Aa=j8,G8=Ia,q8=Aa,K8="[object AsyncFunction]",Y8="[object Function]",X8="[object GeneratorFunction]",J8="[object Proxy]";function Q8(n){if(!q8(n))return!1;var e=G8(n);return e==Y8||e==X8||e==K8||e==J8}var F2=Q8,eg=vi,tg=eg["__core-js_shared__"],rg=tg,nc=rg,vh=function(){var n=/[^.]+$/.exec(nc&&nc.keys&&nc.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function ig(n){return!!vh&&vh in n}var ng=ig,og=Function.prototype,ag=og.toString;function sg(n){if(n!=null){try{return ag.call(n)}catch{}try{return n+""}catch{}}return""}var B2=sg,lg=F2,cg=ng,ug=Aa,dg=B2,hg=/[\\^$.*+?()[\]{}|]/g,fg=/^\[object .+?Constructor\]$/,pg=Function.prototype,gg=Object.prototype,vg=pg.toString,bg=gg.hasOwnProperty,mg=RegExp("^"+vg.call(bg).replace(hg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yg(n){if(!ug(n)||cg(n))return!1;var e=lg(n)?mg:fg;return e.test(dg(n))}var Cg=yg;function wg(n,e){return n==null?void 0:n[e]}var xg=wg,zg=Cg,Lg=xg;function Sg(n,e){var i=Lg(n,e);return zg(i)?i:void 0}var vo=Sg,Mg=vo,Tg=vi,kg=Mg(Tg,"Map"),h0=kg,Og=vo,$g=Og(Object,"create"),_l=$g,bh=_l;function Eg(){this.__data__=bh?bh(null):{},this.size=0}var _g=Eg;function Ig(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Ag=Ig,Pg=_l,Dg="__lodash_hash_undefined__",Ng=Object.prototype,Hg=Ng.hasOwnProperty;function Rg(n){var e=this.__data__;if(Pg){var i=e[n];return i===Dg?void 0:i}return Hg.call(e,n)?e[n]:void 0}var Fg=Rg,Bg=_l,Vg=Object.prototype,Zg=Vg.hasOwnProperty;function Wg(n){var e=this.__data__;return Bg?e[n]!==void 0:Zg.call(e,n)}var Ug=Wg,jg=_l,Gg="__lodash_hash_undefined__";function qg(n,e){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=jg&&e===void 0?Gg:e,this}var Kg=qg,Yg=_g,Xg=Ag,Jg=Fg,Qg=Ug,ev=Kg;function bo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}bo.prototype.clear=Yg;bo.prototype.delete=Xg;bo.prototype.get=Jg;bo.prototype.has=Qg;bo.prototype.set=ev;var tv=bo,mh=tv,rv=$l,iv=h0;function nv(){this.size=0,this.__data__={hash:new mh,map:new(iv||rv),string:new mh}}var ov=nv;function av(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var sv=av,lv=sv;function cv(n,e){var i=n.__data__;return lv(e)?i[typeof e=="string"?"string":"hash"]:i.map}var Il=cv,uv=Il;function dv(n){var e=uv(this,n).delete(n);return this.size-=e?1:0,e}var hv=dv,fv=Il;function pv(n){return fv(this,n).get(n)}var gv=pv,vv=Il;function bv(n){return vv(this,n).has(n)}var mv=bv,yv=Il;function Cv(n,e){var i=yv(this,n),o=i.size;return i.set(n,e),this.size+=i.size==o?0:1,this}var wv=Cv,xv=ov,zv=hv,Lv=gv,Sv=mv,Mv=wv;function mo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}mo.prototype.clear=xv;mo.prototype.delete=zv;mo.prototype.get=Lv;mo.prototype.has=Sv;mo.prototype.set=Mv;var f0=mo,Tv=$l,kv=h0,Ov=f0,$v=200;function Ev(n,e){var i=this.__data__;if(i instanceof Tv){var o=i.__data__;if(!kv||o.length<$v-1)return o.push([n,e]),this.size=++i.size,this;i=this.__data__=new Ov(o)}return i.set(n,e),this.size=i.size,this}var _v=Ev,Iv=$l,Av=C8,Pv=x8,Dv=L8,Nv=M8,Hv=_v;function yo(n){var e=this.__data__=new Iv(n);this.size=e.size}yo.prototype.clear=Av;yo.prototype.delete=Pv;yo.prototype.get=Dv;yo.prototype.has=Nv;yo.prototype.set=Hv;var V2=yo,Rv="__lodash_hash_undefined__";function Fv(n){return this.__data__.set(n,Rv),this}var Bv=Fv;function Vv(n){return this.__data__.has(n)}var Zv=Vv,Wv=f0,Uv=Bv,jv=Zv;function el(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new Wv;++e<i;)this.add(n[e])}el.prototype.add=el.prototype.push=Uv;el.prototype.has=jv;var Gv=el;function qv(n,e){for(var i=-1,o=n==null?0:n.length;++i<o;)if(e(n[i],i,n))return!0;return!1}var Kv=qv;function Yv(n,e){return n.has(e)}var Xv=Yv,Jv=Gv,Qv=Kv,eb=Xv,tb=1,rb=2;function ib(n,e,i,o,l,d){var u=i&tb,v=n.length,m=e.length;if(v!=m&&!(u&&m>v))return!1;var b=d.get(n),M=d.get(e);if(b&&M)return b==e&&M==n;var L=-1,T=!0,$=i&rb?new Jv:void 0;for(d.set(n,e),d.set(e,n);++L<v;){var N=n[L],Y=e[L];if(o)var oe=u?o(Y,N,L,e,n,d):o(N,Y,L,n,e,d);if(oe!==void 0){if(oe)continue;T=!1;break}if($){if(!Qv(e,function(_,D){if(!eb($,D)&&(N===_||l(N,_,i,o,d)))return $.push(D)})){T=!1;break}}else if(!(N===Y||l(N,Y,i,o,d))){T=!1;break}}return d.delete(n),d.delete(e),T}var Z2=ib,nb=vi,ob=nb.Uint8Array,ab=ob;function sb(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var lb=sb;function cb(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var ub=cb,yh=El,Ch=ab,db=d0,hb=Z2,fb=lb,pb=ub,gb=1,vb=2,bb="[object Boolean]",mb="[object Date]",yb="[object Error]",Cb="[object Map]",wb="[object Number]",xb="[object RegExp]",zb="[object Set]",Lb="[object String]",Sb="[object Symbol]",Mb="[object ArrayBuffer]",Tb="[object DataView]",wh=yh?yh.prototype:void 0,oc=wh?wh.valueOf:void 0;function kb(n,e,i,o,l,d,u){switch(i){case Tb:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Mb:return!(n.byteLength!=e.byteLength||!d(new Ch(n),new Ch(e)));case bb:case mb:case wb:return db(+n,+e);case yb:return n.name==e.name&&n.message==e.message;case xb:case Lb:return n==e+"";case Cb:var v=fb;case zb:var m=o&gb;if(v||(v=pb),n.size!=e.size&&!m)return!1;var b=u.get(n);if(b)return b==e;o|=vb,u.set(n,e);var M=hb(v(n),v(e),o,l,d,u);return u.delete(n),M;case Sb:if(oc)return oc.call(n)==oc.call(e)}return!1}var Ob=kb;function $b(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var Eb=$b,_b=Array.isArray,Hi=_b,Ib=Eb,Ab=Hi;function Pb(n,e,i){var o=e(n);return Ab(n)?o:Ib(o,i(n))}var Db=Pb;function Nb(n,e){for(var i=-1,o=n==null?0:n.length,l=0,d=[];++i<o;){var u=n[i];e(u,i,n)&&(d[l++]=u)}return d}var Hb=Nb;function Rb(){return[]}var Fb=Rb,Bb=Hb,Vb=Fb,Zb=Object.prototype,Wb=Zb.propertyIsEnumerable,xh=Object.getOwnPropertySymbols,Ub=xh?function(n){return n==null?[]:(n=Object(n),Bb(xh(n),function(e){return Wb.call(n,e)}))}:Vb,jb=Ub;function Gb(n,e){for(var i=-1,o=Array(n);++i<n;)o[i]=e(i);return o}var qb=Gb;function Kb(n){return n!=null&&typeof n=="object"}var Pa=Kb,Yb=Ia,Xb=Pa,Jb="[object Arguments]";function Qb(n){return Xb(n)&&Yb(n)==Jb}var em=Qb,zh=em,tm=Pa,W2=Object.prototype,rm=W2.hasOwnProperty,im=W2.propertyIsEnumerable,nm=zh(function(){return arguments}())?zh:function(n){return tm(n)&&rm.call(n,"callee")&&!im.call(n,"callee")},U2=nm,tl={exports:{}};function om(){return!1}var am=om;tl.exports;(function(n,e){var i=vi,o=am,l=e&&!e.nodeType&&e,d=l&&!0&&n&&!n.nodeType&&n,u=d&&d.exports===l,v=u?i.Buffer:void 0,m=v?v.isBuffer:void 0,b=m||o;n.exports=b})(tl,tl.exports);var j2=tl.exports,sm=9007199254740991,lm=/^(?:0|[1-9]\d*)$/;function cm(n,e){var i=typeof n;return e=e==null?sm:e,!!e&&(i=="number"||i!="symbol"&&lm.test(n))&&n>-1&&n%1==0&&n<e}var p0=cm,um=9007199254740991;function dm(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=um}var g0=dm,hm=Ia,fm=g0,pm=Pa,gm="[object Arguments]",vm="[object Array]",bm="[object Boolean]",mm="[object Date]",ym="[object Error]",Cm="[object Function]",wm="[object Map]",xm="[object Number]",zm="[object Object]",Lm="[object RegExp]",Sm="[object Set]",Mm="[object String]",Tm="[object WeakMap]",km="[object ArrayBuffer]",Om="[object DataView]",$m="[object Float32Array]",Em="[object Float64Array]",_m="[object Int8Array]",Im="[object Int16Array]",Am="[object Int32Array]",Pm="[object Uint8Array]",Dm="[object Uint8ClampedArray]",Nm="[object Uint16Array]",Hm="[object Uint32Array]",rt={};rt[$m]=rt[Em]=rt[_m]=rt[Im]=rt[Am]=rt[Pm]=rt[Dm]=rt[Nm]=rt[Hm]=!0;rt[gm]=rt[vm]=rt[km]=rt[bm]=rt[Om]=rt[mm]=rt[ym]=rt[Cm]=rt[wm]=rt[xm]=rt[zm]=rt[Lm]=rt[Sm]=rt[Mm]=rt[Tm]=!1;function Rm(n){return pm(n)&&fm(n.length)&&!!rt[hm(n)]}var Fm=Rm;function Bm(n){return function(e){return n(e)}}var Vm=Bm,rl={exports:{}};rl.exports;(function(n,e){var i=H2,o=e&&!e.nodeType&&e,l=o&&!0&&n&&!n.nodeType&&n,d=l&&l.exports===o,u=d&&i.process,v=function(){try{var m=l&&l.require&&l.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(rl,rl.exports);var Zm=rl.exports,Wm=Fm,Um=Vm,Lh=Zm,Sh=Lh&&Lh.isTypedArray,jm=Sh?Um(Sh):Wm,G2=jm,Gm=qb,qm=U2,Km=Hi,Ym=j2,Xm=p0,Jm=G2,Qm=Object.prototype,ey=Qm.hasOwnProperty;function ty(n,e){var i=Km(n),o=!i&&qm(n),l=!i&&!o&&Ym(n),d=!i&&!o&&!l&&Jm(n),u=i||o||l||d,v=u?Gm(n.length,String):[],m=v.length;for(var b in n)(e||ey.call(n,b))&&!(u&&(b=="length"||l&&(b=="offset"||b=="parent")||d&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Xm(b,m)))&&v.push(b);return v}var ry=ty,iy=Object.prototype;function ny(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||iy;return n===i}var oy=ny;function ay(n,e){return function(i){return n(e(i))}}var sy=ay,ly=sy,cy=ly(Object.keys,Object),uy=cy,dy=oy,hy=uy,fy=Object.prototype,py=fy.hasOwnProperty;function gy(n){if(!dy(n))return hy(n);var e=[];for(var i in Object(n))py.call(n,i)&&i!="constructor"&&e.push(i);return e}var vy=gy,by=F2,my=g0;function yy(n){return n!=null&&my(n.length)&&!by(n)}var q2=yy,Cy=ry,wy=vy,xy=q2;function zy(n){return xy(n)?Cy(n):wy(n)}var K2=zy,Ly=Db,Sy=jb,My=K2;function Ty(n){return Ly(n,My,Sy)}var ky=Ty,Mh=ky,Oy=1,$y=Object.prototype,Ey=$y.hasOwnProperty;function _y(n,e,i,o,l,d){var u=i&Oy,v=Mh(n),m=v.length,b=Mh(e),M=b.length;if(m!=M&&!u)return!1;for(var L=m;L--;){var T=v[L];if(!(u?T in e:Ey.call(e,T)))return!1}var $=d.get(n),N=d.get(e);if($&&N)return $==e&&N==n;var Y=!0;d.set(n,e),d.set(e,n);for(var oe=u;++L<m;){T=v[L];var _=n[T],D=e[T];if(o)var A=u?o(D,_,T,e,n,d):o(_,D,T,n,e,d);if(!(A===void 0?_===D||l(_,D,i,o,d):A)){Y=!1;break}oe||(oe=T=="constructor")}if(Y&&!oe){var B=n.constructor,K=e.constructor;B!=K&&"constructor"in n&&"constructor"in e&&!(typeof B=="function"&&B instanceof B&&typeof K=="function"&&K instanceof K)&&(Y=!1)}return d.delete(n),d.delete(e),Y}var Iy=_y,Ay=vo,Py=vi,Dy=Ay(Py,"DataView"),Ny=Dy,Hy=vo,Ry=vi,Fy=Hy(Ry,"Promise"),By=Fy,Vy=vo,Zy=vi,Wy=Vy(Zy,"Set"),Uy=Wy,jy=vo,Gy=vi,qy=jy(Gy,"WeakMap"),Ky=qy,Ec=Ny,_c=h0,Ic=By,Ac=Uy,Pc=Ky,Y2=Ia,Co=B2,Th="[object Map]",Yy="[object Object]",kh="[object Promise]",Oh="[object Set]",$h="[object WeakMap]",Eh="[object DataView]",Xy=Co(Ec),Jy=Co(_c),Qy=Co(Ic),eC=Co(Ac),tC=Co(Pc),cn=Y2;(Ec&&cn(new Ec(new ArrayBuffer(1)))!=Eh||_c&&cn(new _c)!=Th||Ic&&cn(Ic.resolve())!=kh||Ac&&cn(new Ac)!=Oh||Pc&&cn(new Pc)!=$h)&&(cn=function(n){var e=Y2(n),i=e==Yy?n.constructor:void 0,o=i?Co(i):"";if(o)switch(o){case Xy:return Eh;case Jy:return Th;case Qy:return kh;case eC:return Oh;case tC:return $h}return e});var rC=cn,ac=V2,iC=Z2,nC=Ob,oC=Iy,_h=rC,Ih=Hi,Ah=j2,aC=G2,sC=1,Ph="[object Arguments]",Dh="[object Array]",Os="[object Object]",lC=Object.prototype,Nh=lC.hasOwnProperty;function cC(n,e,i,o,l,d){var u=Ih(n),v=Ih(e),m=u?Dh:_h(n),b=v?Dh:_h(e);m=m==Ph?Os:m,b=b==Ph?Os:b;var M=m==Os,L=b==Os,T=m==b;if(T&&Ah(n)){if(!Ah(e))return!1;u=!0,M=!1}if(T&&!M)return d||(d=new ac),u||aC(n)?iC(n,e,i,o,l,d):nC(n,e,m,i,o,l,d);if(!(i&sC)){var $=M&&Nh.call(n,"__wrapped__"),N=L&&Nh.call(e,"__wrapped__");if($||N){var Y=$?n.value():n,oe=N?e.value():e;return d||(d=new ac),l(Y,oe,i,o,d)}}return T?(d||(d=new ac),oC(n,e,i,o,l,d)):!1}var uC=cC,dC=uC,Hh=Pa;function X2(n,e,i,o,l){return n===e?!0:n==null||e==null||!Hh(n)&&!Hh(e)?n!==n&&e!==e:dC(n,e,i,o,X2,l)}var J2=X2,hC=V2,fC=J2,pC=1,gC=2;function vC(n,e,i,o){var l=i.length,d=l,u=!o;if(n==null)return!d;for(n=Object(n);l--;){var v=i[l];if(u&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++l<d;){v=i[l];var m=v[0],b=n[m],M=v[1];if(u&&v[2]){if(b===void 0&&!(m in n))return!1}else{var L=new hC;if(o)var T=o(b,M,m,n,e,L);if(!(T===void 0?fC(M,b,pC|gC,o,L):T))return!1}}return!0}var bC=vC,mC=Aa;function yC(n){return n===n&&!mC(n)}var Q2=yC,CC=Q2,wC=K2;function xC(n){for(var e=wC(n),i=e.length;i--;){var o=e[i],l=n[o];e[i]=[o,l,CC(l)]}return e}var zC=xC;function LC(n,e){return function(i){return i==null?!1:i[n]===e&&(e!==void 0||n in Object(i))}}var ep=LC,SC=bC,MC=zC,TC=ep;function kC(n){var e=MC(n);return e.length==1&&e[0][2]?TC(e[0][0],e[0][1]):function(i){return i===n||SC(i,n,e)}}var OC=kC,$C=Ia,EC=Pa,_C="[object Symbol]";function IC(n){return typeof n=="symbol"||EC(n)&&$C(n)==_C}var Al=IC,AC=Hi,PC=Al,DC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,NC=/^\w*$/;function HC(n,e){if(AC(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||PC(n)?!0:NC.test(n)||!DC.test(n)||e!=null&&n in Object(e)}var v0=HC,tp=f0,RC="Expected a function";function b0(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(RC);var i=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(b0.Cache||tp),i}b0.Cache=tp;var FC=b0,BC=FC,VC=500;function ZC(n){var e=BC(n,function(o){return i.size===VC&&i.clear(),o}),i=e.cache;return e}var WC=ZC,UC=WC,jC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GC=/\\(\\)?/g,qC=UC(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(jC,function(i,o,l,d){e.push(l?d.replace(GC,"$1"):o||i)}),e}),KC=qC;function YC(n,e){for(var i=-1,o=n==null?0:n.length,l=Array(o);++i<o;)l[i]=e(n[i],i,n);return l}var XC=YC,Rh=El,JC=XC,QC=Hi,ew=Al,tw=1/0,Fh=Rh?Rh.prototype:void 0,Bh=Fh?Fh.toString:void 0;function rp(n){if(typeof n=="string")return n;if(QC(n))return JC(n,rp)+"";if(ew(n))return Bh?Bh.call(n):"";var e=n+"";return e=="0"&&1/n==-tw?"-0":e}var rw=rp,iw=rw;function nw(n){return n==null?"":iw(n)}var ow=nw,aw=Hi,sw=v0,lw=KC,cw=ow;function uw(n,e){return aw(n)?n:sw(n,e)?[n]:lw(cw(n))}var ip=uw,dw=Al,hw=1/0;function fw(n){if(typeof n=="string"||dw(n))return n;var e=n+"";return e=="0"&&1/n==-hw?"-0":e}var Pl=fw,pw=ip,gw=Pl;function vw(n,e){e=pw(e,n);for(var i=0,o=e.length;n!=null&&i<o;)n=n[gw(e[i++])];return i&&i==o?n:void 0}var np=vw,bw=np;function mw(n,e,i){var o=n==null?void 0:bw(n,e);return o===void 0?i:o}var yw=mw;function Cw(n,e){return n!=null&&e in Object(n)}var ww=Cw,xw=ip,zw=U2,Lw=Hi,Sw=p0,Mw=g0,Tw=Pl;function kw(n,e,i){e=xw(e,n);for(var o=-1,l=e.length,d=!1;++o<l;){var u=Tw(e[o]);if(!(d=n!=null&&i(n,u)))break;n=n[u]}return d||++o!=l?d:(l=n==null?0:n.length,!!l&&Mw(l)&&Sw(u,l)&&(Lw(n)||zw(n)))}var Ow=kw,$w=ww,Ew=Ow;function _w(n,e){return n!=null&&Ew(n,e,$w)}var Iw=_w,Aw=J2,Pw=yw,Dw=Iw,Nw=v0,Hw=Q2,Rw=ep,Fw=Pl,Bw=1,Vw=2;function Zw(n,e){return Nw(n)&&Hw(e)?Rw(Fw(n),e):function(i){var o=Pw(i,n);return o===void 0&&o===e?Dw(i,n):Aw(e,o,Bw|Vw)}}var Ww=Zw;function Uw(n){return n}var jw=Uw;function Gw(n){return function(e){return e==null?void 0:e[n]}}var qw=Gw,Kw=np;function Yw(n){return function(e){return Kw(e,n)}}var Xw=Yw,Jw=qw,Qw=Xw,ex=v0,tx=Pl;function rx(n){return ex(n)?Jw(tx(n)):Qw(n)}var ix=rx,nx=OC,ox=Ww,ax=jw,sx=Hi,lx=ix;function cx(n){return typeof n=="function"?n:n==null?ax:typeof n=="object"?sx(n)?ox(n[0],n[1]):nx(n):lx(n)}var ux=cx,dx=/\s/;function hx(n){for(var e=n.length;e--&&dx.test(n.charAt(e)););return e}var fx=hx,px=fx,gx=/^\s+/;function vx(n){return n&&n.slice(0,px(n)+1).replace(gx,"")}var bx=vx,mx=bx,Vh=Aa,yx=Al,Zh=0/0,Cx=/^[-+]0x[0-9a-f]+$/i,wx=/^0b[01]+$/i,xx=/^0o[0-7]+$/i,zx=parseInt;function Lx(n){if(typeof n=="number")return n;if(yx(n))return Zh;if(Vh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Vh(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=mx(n);var i=wx.test(n);return i||xx.test(n)?zx(n.slice(2),i?2:8):Cx.test(n)?Zh:+n}var Sx=Lx,Mx=Sx,Wh=1/0,Tx=17976931348623157e292;function kx(n){if(!n)return n===0?n:0;if(n=Mx(n),n===Wh||n===-Wh){var e=n<0?-1:1;return e*Tx}return n===n?n:0}var op=kx,Ox=op;function $x(n){var e=Ox(n),i=e%1;return e===e?i?e-i:e:0}var Ex=$x,_x=G9,Ix=ux,Ax=Ex,Px=Math.max,Dx=Math.min;function Nx(n,e,i){var o=n==null?0:n.length;if(!o)return-1;var l=o-1;return i!==void 0&&(l=Ax(i),l=i<0?Px(o+l,0):Dx(l,o-1)),_x(n,Ix(e),l,!0)}var Hx=Nx;const Rx=u0(Hx);/**
1719
+ `;Jr([E({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Jr([E({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Jr([E({type:Array})],exports.DropdownMenu.prototype,"selected",2);Jr([E()],exports.DropdownMenu.prototype,"size",2);Jr([Ce()],exports.DropdownMenu.prototype,"fluidWidth",2);Jr([Ce()],exports.DropdownMenu.prototype,"disabled",2);Jr([Ir("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Jr([Ir("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Jr([fi()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Jr([W(P2)],exports.DropdownMenu);var va=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function c0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function U9(n,e,i,o){for(var l=n.length,d=i+(o?1:-1);o?d--:++d<l;)if(e(n[d],d,n))return d;return-1}var j9=U9;function G9(){this.__data__=[],this.size=0}var q9=G9;function K9(n,e){return n===e||n!==n&&e!==e}var u0=K9,Y9=u0;function X9(n,e){for(var i=n.length;i--;)if(Y9(n[i][0],e))return i;return-1}var Ol=X9,J9=Ol,Q9=Array.prototype,e8=Q9.splice;function t8(n){var e=this.__data__,i=J9(e,n);if(i<0)return!1;var o=e.length-1;return i==o?e.pop():e8.call(e,i,1),--this.size,!0}var r8=t8,i8=Ol;function n8(n){var e=this.__data__,i=i8(e,n);return i<0?void 0:e[i][1]}var o8=n8,a8=Ol;function s8(n){return a8(this.__data__,n)>-1}var l8=s8,c8=Ol;function u8(n,e){var i=this.__data__,o=c8(i,n);return o<0?(++this.size,i.push([n,e])):i[o][1]=e,this}var d8=u8,h8=q9,f8=r8,p8=o8,g8=l8,v8=d8;function go(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}go.prototype.clear=h8;go.prototype.delete=f8;go.prototype.get=p8;go.prototype.has=g8;go.prototype.set=v8;var $l=go,b8=$l;function m8(){this.__data__=new b8,this.size=0}var y8=m8;function C8(n){var e=this.__data__,i=e.delete(n);return this.size=e.size,i}var w8=C8;function x8(n){return this.__data__.get(n)}var z8=x8;function L8(n){return this.__data__.has(n)}var S8=L8,M8=typeof va=="object"&&va&&va.Object===Object&&va,D2=M8,T8=D2,k8=typeof self=="object"&&self&&self.Object===Object&&self,O8=T8||k8||Function("return this")(),vi=O8,$8=vi,E8=$8.Symbol,El=E8,hh=El,N2=Object.prototype,_8=N2.hasOwnProperty,I8=N2.toString,ua=hh?hh.toStringTag:void 0;function A8(n){var e=_8.call(n,ua),i=n[ua];try{n[ua]=void 0;var o=!0}catch{}var l=I8.call(n);return o&&(e?n[ua]=i:delete n[ua]),l}var P8=A8,D8=Object.prototype,N8=D8.toString;function H8(n){return N8.call(n)}var R8=H8,fh=El,F8=P8,B8=R8,V8="[object Null]",Z8="[object Undefined]",ph=fh?fh.toStringTag:void 0;function W8(n){return n==null?n===void 0?Z8:V8:ph&&ph in Object(n)?F8(n):B8(n)}var Ia=W8;function U8(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Aa=U8,j8=Ia,G8=Aa,q8="[object AsyncFunction]",K8="[object Function]",Y8="[object GeneratorFunction]",X8="[object Proxy]";function J8(n){if(!G8(n))return!1;var e=j8(n);return e==K8||e==Y8||e==q8||e==X8}var H2=J8,Q8=vi,eg=Q8["__core-js_shared__"],tg=eg,nc=tg,gh=function(){var n=/[^.]+$/.exec(nc&&nc.keys&&nc.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function rg(n){return!!gh&&gh in n}var ig=rg,ng=Function.prototype,og=ng.toString;function ag(n){if(n!=null){try{return og.call(n)}catch{}try{return n+""}catch{}}return""}var R2=ag,sg=H2,lg=ig,cg=Aa,ug=R2,dg=/[\\^$.*+?()[\]{}|]/g,hg=/^\[object .+?Constructor\]$/,fg=Function.prototype,pg=Object.prototype,gg=fg.toString,vg=pg.hasOwnProperty,bg=RegExp("^"+gg.call(vg).replace(dg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mg(n){if(!cg(n)||lg(n))return!1;var e=sg(n)?bg:hg;return e.test(ug(n))}var yg=mg;function Cg(n,e){return n==null?void 0:n[e]}var wg=Cg,xg=yg,zg=wg;function Lg(n,e){var i=zg(n,e);return xg(i)?i:void 0}var vo=Lg,Sg=vo,Mg=vi,Tg=Sg(Mg,"Map"),d0=Tg,kg=vo,Og=kg(Object,"create"),_l=Og,vh=_l;function $g(){this.__data__=vh?vh(null):{},this.size=0}var Eg=$g;function _g(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Ig=_g,Ag=_l,Pg="__lodash_hash_undefined__",Dg=Object.prototype,Ng=Dg.hasOwnProperty;function Hg(n){var e=this.__data__;if(Ag){var i=e[n];return i===Pg?void 0:i}return Ng.call(e,n)?e[n]:void 0}var Rg=Hg,Fg=_l,Bg=Object.prototype,Vg=Bg.hasOwnProperty;function Zg(n){var e=this.__data__;return Fg?e[n]!==void 0:Vg.call(e,n)}var Wg=Zg,Ug=_l,jg="__lodash_hash_undefined__";function Gg(n,e){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=Ug&&e===void 0?jg:e,this}var qg=Gg,Kg=Eg,Yg=Ig,Xg=Rg,Jg=Wg,Qg=qg;function bo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}bo.prototype.clear=Kg;bo.prototype.delete=Yg;bo.prototype.get=Xg;bo.prototype.has=Jg;bo.prototype.set=Qg;var ev=bo,bh=ev,tv=$l,rv=d0;function iv(){this.size=0,this.__data__={hash:new bh,map:new(rv||tv),string:new bh}}var nv=iv;function ov(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var av=ov,sv=av;function lv(n,e){var i=n.__data__;return sv(e)?i[typeof e=="string"?"string":"hash"]:i.map}var Il=lv,cv=Il;function uv(n){var e=cv(this,n).delete(n);return this.size-=e?1:0,e}var dv=uv,hv=Il;function fv(n){return hv(this,n).get(n)}var pv=fv,gv=Il;function vv(n){return gv(this,n).has(n)}var bv=vv,mv=Il;function yv(n,e){var i=mv(this,n),o=i.size;return i.set(n,e),this.size+=i.size==o?0:1,this}var Cv=yv,wv=nv,xv=dv,zv=pv,Lv=bv,Sv=Cv;function mo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}mo.prototype.clear=wv;mo.prototype.delete=xv;mo.prototype.get=zv;mo.prototype.has=Lv;mo.prototype.set=Sv;var h0=mo,Mv=$l,Tv=d0,kv=h0,Ov=200;function $v(n,e){var i=this.__data__;if(i instanceof Mv){var o=i.__data__;if(!Tv||o.length<Ov-1)return o.push([n,e]),this.size=++i.size,this;i=this.__data__=new kv(o)}return i.set(n,e),this.size=i.size,this}var Ev=$v,_v=$l,Iv=y8,Av=w8,Pv=z8,Dv=S8,Nv=Ev;function yo(n){var e=this.__data__=new _v(n);this.size=e.size}yo.prototype.clear=Iv;yo.prototype.delete=Av;yo.prototype.get=Pv;yo.prototype.has=Dv;yo.prototype.set=Nv;var F2=yo,Hv="__lodash_hash_undefined__";function Rv(n){return this.__data__.set(n,Hv),this}var Fv=Rv;function Bv(n){return this.__data__.has(n)}var Vv=Bv,Zv=h0,Wv=Fv,Uv=Vv;function el(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new Zv;++e<i;)this.add(n[e])}el.prototype.add=el.prototype.push=Wv;el.prototype.has=Uv;var jv=el;function Gv(n,e){for(var i=-1,o=n==null?0:n.length;++i<o;)if(e(n[i],i,n))return!0;return!1}var qv=Gv;function Kv(n,e){return n.has(e)}var Yv=Kv,Xv=jv,Jv=qv,Qv=Yv,eb=1,tb=2;function rb(n,e,i,o,l,d){var u=i&eb,v=n.length,m=e.length;if(v!=m&&!(u&&m>v))return!1;var b=d.get(n),M=d.get(e);if(b&&M)return b==e&&M==n;var L=-1,T=!0,$=i&tb?new Xv:void 0;for(d.set(n,e),d.set(e,n);++L<v;){var N=n[L],Y=e[L];if(o)var oe=u?o(Y,N,L,e,n,d):o(N,Y,L,n,e,d);if(oe!==void 0){if(oe)continue;T=!1;break}if($){if(!Jv(e,function(_,D){if(!Qv($,D)&&(N===_||l(N,_,i,o,d)))return $.push(D)})){T=!1;break}}else if(!(N===Y||l(N,Y,i,o,d))){T=!1;break}}return d.delete(n),d.delete(e),T}var B2=rb,ib=vi,nb=ib.Uint8Array,ob=nb;function ab(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var sb=ab;function lb(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var cb=lb,mh=El,yh=ob,ub=u0,db=B2,hb=sb,fb=cb,pb=1,gb=2,vb="[object Boolean]",bb="[object Date]",mb="[object Error]",yb="[object Map]",Cb="[object Number]",wb="[object RegExp]",xb="[object Set]",zb="[object String]",Lb="[object Symbol]",Sb="[object ArrayBuffer]",Mb="[object DataView]",Ch=mh?mh.prototype:void 0,oc=Ch?Ch.valueOf:void 0;function Tb(n,e,i,o,l,d,u){switch(i){case Mb:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Sb:return!(n.byteLength!=e.byteLength||!d(new yh(n),new yh(e)));case vb:case bb:case Cb:return ub(+n,+e);case mb:return n.name==e.name&&n.message==e.message;case wb:case zb:return n==e+"";case yb:var v=hb;case xb:var m=o&pb;if(v||(v=fb),n.size!=e.size&&!m)return!1;var b=u.get(n);if(b)return b==e;o|=gb,u.set(n,e);var M=db(v(n),v(e),o,l,d,u);return u.delete(n),M;case Lb:if(oc)return oc.call(n)==oc.call(e)}return!1}var kb=Tb;function Ob(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var $b=Ob,Eb=Array.isArray,Hi=Eb,_b=$b,Ib=Hi;function Ab(n,e,i){var o=e(n);return Ib(n)?o:_b(o,i(n))}var Pb=Ab;function Db(n,e){for(var i=-1,o=n==null?0:n.length,l=0,d=[];++i<o;){var u=n[i];e(u,i,n)&&(d[l++]=u)}return d}var Nb=Db;function Hb(){return[]}var Rb=Hb,Fb=Nb,Bb=Rb,Vb=Object.prototype,Zb=Vb.propertyIsEnumerable,wh=Object.getOwnPropertySymbols,Wb=wh?function(n){return n==null?[]:(n=Object(n),Fb(wh(n),function(e){return Zb.call(n,e)}))}:Bb,Ub=Wb;function jb(n,e){for(var i=-1,o=Array(n);++i<n;)o[i]=e(i);return o}var Gb=jb;function qb(n){return n!=null&&typeof n=="object"}var Pa=qb,Kb=Ia,Yb=Pa,Xb="[object Arguments]";function Jb(n){return Yb(n)&&Kb(n)==Xb}var Qb=Jb,xh=Qb,em=Pa,V2=Object.prototype,tm=V2.hasOwnProperty,rm=V2.propertyIsEnumerable,im=xh(function(){return arguments}())?xh:function(n){return em(n)&&tm.call(n,"callee")&&!rm.call(n,"callee")},Z2=im,tl={exports:{}};function nm(){return!1}var om=nm;tl.exports;(function(n,e){var i=vi,o=om,l=e&&!e.nodeType&&e,d=l&&!0&&n&&!n.nodeType&&n,u=d&&d.exports===l,v=u?i.Buffer:void 0,m=v?v.isBuffer:void 0,b=m||o;n.exports=b})(tl,tl.exports);var W2=tl.exports,am=9007199254740991,sm=/^(?:0|[1-9]\d*)$/;function lm(n,e){var i=typeof n;return e=e==null?am:e,!!e&&(i=="number"||i!="symbol"&&sm.test(n))&&n>-1&&n%1==0&&n<e}var f0=lm,cm=9007199254740991;function um(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=cm}var p0=um,dm=Ia,hm=p0,fm=Pa,pm="[object Arguments]",gm="[object Array]",vm="[object Boolean]",bm="[object Date]",mm="[object Error]",ym="[object Function]",Cm="[object Map]",wm="[object Number]",xm="[object Object]",zm="[object RegExp]",Lm="[object Set]",Sm="[object String]",Mm="[object WeakMap]",Tm="[object ArrayBuffer]",km="[object DataView]",Om="[object Float32Array]",$m="[object Float64Array]",Em="[object Int8Array]",_m="[object Int16Array]",Im="[object Int32Array]",Am="[object Uint8Array]",Pm="[object Uint8ClampedArray]",Dm="[object Uint16Array]",Nm="[object Uint32Array]",rt={};rt[Om]=rt[$m]=rt[Em]=rt[_m]=rt[Im]=rt[Am]=rt[Pm]=rt[Dm]=rt[Nm]=!0;rt[pm]=rt[gm]=rt[Tm]=rt[vm]=rt[km]=rt[bm]=rt[mm]=rt[ym]=rt[Cm]=rt[wm]=rt[xm]=rt[zm]=rt[Lm]=rt[Sm]=rt[Mm]=!1;function Hm(n){return fm(n)&&hm(n.length)&&!!rt[dm(n)]}var Rm=Hm;function Fm(n){return function(e){return n(e)}}var Bm=Fm,rl={exports:{}};rl.exports;(function(n,e){var i=D2,o=e&&!e.nodeType&&e,l=o&&!0&&n&&!n.nodeType&&n,d=l&&l.exports===o,u=d&&i.process,v=function(){try{var m=l&&l.require&&l.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(rl,rl.exports);var Vm=rl.exports,Zm=Rm,Wm=Bm,zh=Vm,Lh=zh&&zh.isTypedArray,Um=Lh?Wm(Lh):Zm,U2=Um,jm=Gb,Gm=Z2,qm=Hi,Km=W2,Ym=f0,Xm=U2,Jm=Object.prototype,Qm=Jm.hasOwnProperty;function ey(n,e){var i=qm(n),o=!i&&Gm(n),l=!i&&!o&&Km(n),d=!i&&!o&&!l&&Xm(n),u=i||o||l||d,v=u?jm(n.length,String):[],m=v.length;for(var b in n)(e||Qm.call(n,b))&&!(u&&(b=="length"||l&&(b=="offset"||b=="parent")||d&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Ym(b,m)))&&v.push(b);return v}var ty=ey,ry=Object.prototype;function iy(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||ry;return n===i}var ny=iy;function oy(n,e){return function(i){return n(e(i))}}var ay=oy,sy=ay,ly=sy(Object.keys,Object),cy=ly,uy=ny,dy=cy,hy=Object.prototype,fy=hy.hasOwnProperty;function py(n){if(!uy(n))return dy(n);var e=[];for(var i in Object(n))fy.call(n,i)&&i!="constructor"&&e.push(i);return e}var gy=py,vy=H2,by=p0;function my(n){return n!=null&&by(n.length)&&!vy(n)}var j2=my,yy=ty,Cy=gy,wy=j2;function xy(n){return wy(n)?yy(n):Cy(n)}var G2=xy,zy=Pb,Ly=Ub,Sy=G2;function My(n){return zy(n,Sy,Ly)}var Ty=My,Sh=Ty,ky=1,Oy=Object.prototype,$y=Oy.hasOwnProperty;function Ey(n,e,i,o,l,d){var u=i&ky,v=Sh(n),m=v.length,b=Sh(e),M=b.length;if(m!=M&&!u)return!1;for(var L=m;L--;){var T=v[L];if(!(u?T in e:$y.call(e,T)))return!1}var $=d.get(n),N=d.get(e);if($&&N)return $==e&&N==n;var Y=!0;d.set(n,e),d.set(e,n);for(var oe=u;++L<m;){T=v[L];var _=n[T],D=e[T];if(o)var A=u?o(D,_,T,e,n,d):o(_,D,T,n,e,d);if(!(A===void 0?_===D||l(_,D,i,o,d):A)){Y=!1;break}oe||(oe=T=="constructor")}if(Y&&!oe){var B=n.constructor,K=e.constructor;B!=K&&"constructor"in n&&"constructor"in e&&!(typeof B=="function"&&B instanceof B&&typeof K=="function"&&K instanceof K)&&(Y=!1)}return d.delete(n),d.delete(e),Y}var _y=Ey,Iy=vo,Ay=vi,Py=Iy(Ay,"DataView"),Dy=Py,Ny=vo,Hy=vi,Ry=Ny(Hy,"Promise"),Fy=Ry,By=vo,Vy=vi,Zy=By(Vy,"Set"),Wy=Zy,Uy=vo,jy=vi,Gy=Uy(jy,"WeakMap"),qy=Gy,$c=Dy,Ec=d0,_c=Fy,Ic=Wy,Ac=qy,q2=Ia,Co=R2,Mh="[object Map]",Ky="[object Object]",Th="[object Promise]",kh="[object Set]",Oh="[object WeakMap]",$h="[object DataView]",Yy=Co($c),Xy=Co(Ec),Jy=Co(_c),Qy=Co(Ic),eC=Co(Ac),cn=q2;($c&&cn(new $c(new ArrayBuffer(1)))!=$h||Ec&&cn(new Ec)!=Mh||_c&&cn(_c.resolve())!=Th||Ic&&cn(new Ic)!=kh||Ac&&cn(new Ac)!=Oh)&&(cn=function(n){var e=q2(n),i=e==Ky?n.constructor:void 0,o=i?Co(i):"";if(o)switch(o){case Yy:return $h;case Xy:return Mh;case Jy:return Th;case Qy:return kh;case eC:return Oh}return e});var tC=cn,ac=F2,rC=B2,iC=kb,nC=_y,Eh=tC,_h=Hi,Ih=W2,oC=U2,aC=1,Ah="[object Arguments]",Ph="[object Array]",Os="[object Object]",sC=Object.prototype,Dh=sC.hasOwnProperty;function lC(n,e,i,o,l,d){var u=_h(n),v=_h(e),m=u?Ph:Eh(n),b=v?Ph:Eh(e);m=m==Ah?Os:m,b=b==Ah?Os:b;var M=m==Os,L=b==Os,T=m==b;if(T&&Ih(n)){if(!Ih(e))return!1;u=!0,M=!1}if(T&&!M)return d||(d=new ac),u||oC(n)?rC(n,e,i,o,l,d):iC(n,e,m,i,o,l,d);if(!(i&aC)){var $=M&&Dh.call(n,"__wrapped__"),N=L&&Dh.call(e,"__wrapped__");if($||N){var Y=$?n.value():n,oe=N?e.value():e;return d||(d=new ac),l(Y,oe,i,o,d)}}return T?(d||(d=new ac),nC(n,e,i,o,l,d)):!1}var cC=lC,uC=cC,Nh=Pa;function K2(n,e,i,o,l){return n===e?!0:n==null||e==null||!Nh(n)&&!Nh(e)?n!==n&&e!==e:uC(n,e,i,o,K2,l)}var Y2=K2,dC=F2,hC=Y2,fC=1,pC=2;function gC(n,e,i,o){var l=i.length,d=l,u=!o;if(n==null)return!d;for(n=Object(n);l--;){var v=i[l];if(u&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++l<d;){v=i[l];var m=v[0],b=n[m],M=v[1];if(u&&v[2]){if(b===void 0&&!(m in n))return!1}else{var L=new dC;if(o)var T=o(b,M,m,n,e,L);if(!(T===void 0?hC(M,b,fC|pC,o,L):T))return!1}}return!0}var vC=gC,bC=Aa;function mC(n){return n===n&&!bC(n)}var X2=mC,yC=X2,CC=G2;function wC(n){for(var e=CC(n),i=e.length;i--;){var o=e[i],l=n[o];e[i]=[o,l,yC(l)]}return e}var xC=wC;function zC(n,e){return function(i){return i==null?!1:i[n]===e&&(e!==void 0||n in Object(i))}}var J2=zC,LC=vC,SC=xC,MC=J2;function TC(n){var e=SC(n);return e.length==1&&e[0][2]?MC(e[0][0],e[0][1]):function(i){return i===n||LC(i,n,e)}}var kC=TC,OC=Ia,$C=Pa,EC="[object Symbol]";function _C(n){return typeof n=="symbol"||$C(n)&&OC(n)==EC}var Al=_C,IC=Hi,AC=Al,PC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DC=/^\w*$/;function NC(n,e){if(IC(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||AC(n)?!0:DC.test(n)||!PC.test(n)||e!=null&&n in Object(e)}var g0=NC,Q2=h0,HC="Expected a function";function v0(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(HC);var i=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(v0.Cache||Q2),i}v0.Cache=Q2;var RC=v0,FC=RC,BC=500;function VC(n){var e=FC(n,function(o){return i.size===BC&&i.clear(),o}),i=e.cache;return e}var ZC=VC,WC=ZC,UC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jC=/\\(\\)?/g,GC=WC(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(UC,function(i,o,l,d){e.push(l?d.replace(jC,"$1"):o||i)}),e}),qC=GC;function KC(n,e){for(var i=-1,o=n==null?0:n.length,l=Array(o);++i<o;)l[i]=e(n[i],i,n);return l}var YC=KC,Hh=El,XC=YC,JC=Hi,QC=Al,ew=1/0,Rh=Hh?Hh.prototype:void 0,Fh=Rh?Rh.toString:void 0;function ep(n){if(typeof n=="string")return n;if(JC(n))return XC(n,ep)+"";if(QC(n))return Fh?Fh.call(n):"";var e=n+"";return e=="0"&&1/n==-ew?"-0":e}var tw=ep,rw=tw;function iw(n){return n==null?"":rw(n)}var nw=iw,ow=Hi,aw=g0,sw=qC,lw=nw;function cw(n,e){return ow(n)?n:aw(n,e)?[n]:sw(lw(n))}var tp=cw,uw=Al,dw=1/0;function hw(n){if(typeof n=="string"||uw(n))return n;var e=n+"";return e=="0"&&1/n==-dw?"-0":e}var Pl=hw,fw=tp,pw=Pl;function gw(n,e){e=fw(e,n);for(var i=0,o=e.length;n!=null&&i<o;)n=n[pw(e[i++])];return i&&i==o?n:void 0}var rp=gw,vw=rp;function bw(n,e,i){var o=n==null?void 0:vw(n,e);return o===void 0?i:o}var mw=bw;function yw(n,e){return n!=null&&e in Object(n)}var Cw=yw,ww=tp,xw=Z2,zw=Hi,Lw=f0,Sw=p0,Mw=Pl;function Tw(n,e,i){e=ww(e,n);for(var o=-1,l=e.length,d=!1;++o<l;){var u=Mw(e[o]);if(!(d=n!=null&&i(n,u)))break;n=n[u]}return d||++o!=l?d:(l=n==null?0:n.length,!!l&&Sw(l)&&Lw(u,l)&&(zw(n)||xw(n)))}var kw=Tw,Ow=Cw,$w=kw;function Ew(n,e){return n!=null&&$w(n,e,Ow)}var _w=Ew,Iw=Y2,Aw=mw,Pw=_w,Dw=g0,Nw=X2,Hw=J2,Rw=Pl,Fw=1,Bw=2;function Vw(n,e){return Dw(n)&&Nw(e)?Hw(Rw(n),e):function(i){var o=Aw(i,n);return o===void 0&&o===e?Pw(i,n):Iw(e,o,Fw|Bw)}}var Zw=Vw;function Ww(n){return n}var Uw=Ww;function jw(n){return function(e){return e==null?void 0:e[n]}}var Gw=jw,qw=rp;function Kw(n){return function(e){return qw(e,n)}}var Yw=Kw,Xw=Gw,Jw=Yw,Qw=g0,ex=Pl;function tx(n){return Qw(n)?Xw(ex(n)):Jw(n)}var rx=tx,ix=kC,nx=Zw,ox=Uw,ax=Hi,sx=rx;function lx(n){return typeof n=="function"?n:n==null?ox:typeof n=="object"?ax(n)?nx(n[0],n[1]):ix(n):sx(n)}var cx=lx,ux=/\s/;function dx(n){for(var e=n.length;e--&&ux.test(n.charAt(e)););return e}var hx=dx,fx=hx,px=/^\s+/;function gx(n){return n&&n.slice(0,fx(n)+1).replace(px,"")}var vx=gx,bx=vx,Bh=Aa,mx=Al,Vh=0/0,yx=/^[-+]0x[0-9a-f]+$/i,Cx=/^0b[01]+$/i,wx=/^0o[0-7]+$/i,xx=parseInt;function zx(n){if(typeof n=="number")return n;if(mx(n))return Vh;if(Bh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Bh(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=bx(n);var i=Cx.test(n);return i||wx.test(n)?xx(n.slice(2),i?2:8):yx.test(n)?Vh:+n}var Lx=zx,Sx=Lx,Zh=1/0,Mx=17976931348623157e292;function Tx(n){if(!n)return n===0?n:0;if(n=Sx(n),n===Zh||n===-Zh){var e=n<0?-1:1;return e*Mx}return n===n?n:0}var ip=Tx,kx=ip;function Ox(n){var e=kx(n),i=e%1;return e===e?i?e-i:e:0}var $x=Ox,Ex=j9,_x=cx,Ix=$x,Ax=Math.max,Px=Math.min;function Dx(n,e,i){var o=n==null?0:n.length;if(!o)return-1;var l=o-1;return i!==void 0&&(l=Ix(i),l=i<0?Ax(o+l,0):Px(l,o-1)),Ex(n,_x(e),l,!0)}var Nx=Dx;const Hx=c0(Nx);/**
1720
1720
  * @license
1721
1721
  * Copyright 2020 Google LLC
1722
1722
  * SPDX-License-Identifier: BSD-3-Clause
1723
- */const{I:Fx}=t7,Uh=()=>document.createComment(""),da=(n,e,i)=>{var o;const l=n._$AA.parentNode,d=e===void 0?n._$AB:e._$AA;if(i===void 0){const u=l.insertBefore(Uh(),d),v=l.insertBefore(Uh(),d);i=new Fx(u,v,n,n.options)}else{const u=i._$AB.nextSibling,v=i._$AM,m=v!==n;if(m){let b;(o=i._$AQ)===null||o===void 0||o.call(i,n),i._$AM=n,i._$AP!==void 0&&(b=n._$AU)!==v._$AU&&i._$AP(b)}if(u!==d||m){let b=i._$AA;for(;b!==u;){const M=b.nextSibling;l.insertBefore(b,d),b=M}}}return i},an=(n,e,i=n)=>(n._$AI(e,i),n),Bx={},Vx=(n,e=Bx)=>n._$AH=e,Zx=n=>n._$AH,sc=n=>{var e;(e=n._$AP)===null||e===void 0||e.call(n,!1,!0);let i=n._$AA;const o=n._$AB.nextSibling;for(;i!==o;){const l=i.nextSibling;i.remove(),i=l}};/**
1723
+ */const{I:Rx}=e7,Wh=()=>document.createComment(""),da=(n,e,i)=>{var o;const l=n._$AA.parentNode,d=e===void 0?n._$AB:e._$AA;if(i===void 0){const u=l.insertBefore(Wh(),d),v=l.insertBefore(Wh(),d);i=new Rx(u,v,n,n.options)}else{const u=i._$AB.nextSibling,v=i._$AM,m=v!==n;if(m){let b;(o=i._$AQ)===null||o===void 0||o.call(i,n),i._$AM=n,i._$AP!==void 0&&(b=n._$AU)!==v._$AU&&i._$AP(b)}if(u!==d||m){let b=i._$AA;for(;b!==u;){const M=b.nextSibling;l.insertBefore(b,d),b=M}}}return i},an=(n,e,i=n)=>(n._$AI(e,i),n),Fx={},Bx=(n,e=Fx)=>n._$AH=e,Vx=n=>n._$AH,sc=n=>{var e;(e=n._$AP)===null||e===void 0||e.call(n,!1,!0);let i=n._$AA;const o=n._$AB.nextSibling;for(;i!==o;){const l=i.nextSibling;i.remove(),i=l}};/**
1724
1724
  * @license
1725
1725
  * Copyright 2017 Google LLC
1726
1726
  * SPDX-License-Identifier: BSD-3-Clause
1727
- */const jh=(n,e,i)=>{const o=new Map;for(let l=e;l<=i;l++)o.set(n[l],l);return o},Wx=wl(class extends xl{constructor(n){if(super(n),n.type!==Cl.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,e,i){let o;i===void 0?i=e:e!==void 0&&(o=e);const l=[],d=[];let u=0;for(const v of n)l[u]=o?o(v,u):u,d[u]=i(v,u),u++;return{values:d,keys:l}}render(n,e,i){return this.dt(n,e,i).values}update(n,[e,i,o]){var l;const d=Zx(n),{values:u,keys:v}=this.dt(e,i,o);if(!Array.isArray(d))return this.ht=v,u;const m=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],b=[];let M,L,T=0,$=d.length-1,N=0,Y=u.length-1;for(;T<=$&&N<=Y;)if(d[T]===null)T++;else if(d[$]===null)$--;else if(m[T]===v[N])b[N]=an(d[T],u[N]),T++,N++;else if(m[$]===v[Y])b[Y]=an(d[$],u[Y]),$--,Y--;else if(m[T]===v[Y])b[Y]=an(d[T],u[Y]),da(n,b[Y+1],d[T]),T++,Y--;else if(m[$]===v[N])b[N]=an(d[$],u[N]),da(n,d[T],d[$]),$--,N++;else if(M===void 0&&(M=jh(v,N,Y),L=jh(m,T,$)),M.has(m[T]))if(M.has(m[$])){const oe=L.get(v[N]),_=oe!==void 0?d[oe]:null;if(_===null){const D=da(n,d[T]);an(D,u[N]),b[N]=D}else b[N]=an(_,u[N]),da(n,d[T],_),d[oe]=null;N++}else sc(d[$]),$--;else sc(d[T]),T++;for(;N<=Y;){const oe=da(n,b[Y+1]);an(oe,u[N]),b[N++]=oe}for(;T<=$;){const oe=d[T++];oe!==null&&sc(oe)}return this.ht=v,Vx(n,b),di}});/**
1727
+ */const Uh=(n,e,i)=>{const o=new Map;for(let l=e;l<=i;l++)o.set(n[l],l);return o},Zx=wl(class extends xl{constructor(n){if(super(n),n.type!==Cl.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,e,i){let o;i===void 0?i=e:e!==void 0&&(o=e);const l=[],d=[];let u=0;for(const v of n)l[u]=o?o(v,u):u,d[u]=i(v,u),u++;return{values:d,keys:l}}render(n,e,i){return this.dt(n,e,i).values}update(n,[e,i,o]){var l;const d=Vx(n),{values:u,keys:v}=this.dt(e,i,o);if(!Array.isArray(d))return this.ht=v,u;const m=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],b=[];let M,L,T=0,$=d.length-1,N=0,Y=u.length-1;for(;T<=$&&N<=Y;)if(d[T]===null)T++;else if(d[$]===null)$--;else if(m[T]===v[N])b[N]=an(d[T],u[N]),T++,N++;else if(m[$]===v[Y])b[Y]=an(d[$],u[Y]),$--,Y--;else if(m[T]===v[Y])b[Y]=an(d[T],u[Y]),da(n,b[Y+1],d[T]),T++,Y--;else if(m[$]===v[N])b[N]=an(d[$],u[N]),da(n,d[T],d[$]),$--,N++;else if(M===void 0&&(M=Uh(v,N,Y),L=Uh(m,T,$)),M.has(m[T]))if(M.has(m[$])){const oe=L.get(v[N]),_=oe!==void 0?d[oe]:null;if(_===null){const D=da(n,d[T]);an(D,u[N]),b[N]=D}else b[N]=an(_,u[N]),da(n,d[T],_),d[oe]=null;N++}else sc(d[$]),$--;else sc(d[T]),T++;for(;N<=Y;){const oe=da(n,b[Y+1]);an(oe,u[N]),b[N++]=oe}for(;T<=$;){const oe=d[T++];oe!==null&&sc(oe)}return this.ht=v,Bx(n,b),di}});/**
1728
1728
  * @license
1729
1729
  * Copyright 2018 Google LLC
1730
1730
  * SPDX-License-Identifier: BSD-3-Clause
1731
- */const ap="important",Ux=" !"+ap,jx=wl(class extends xl{constructor(n){var e;if(super(n),n.type!==Cl.ATTRIBUTE||n.name!=="style"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,i)=>{const o=n[i];return o==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(n,[e]){const{style:i}=n.element;if(this.ut===void 0){this.ut=new Set;for(const o in e)this.ut.add(o);return this.render(e)}this.ut.forEach(o=>{e[o]==null&&(this.ut.delete(o),o.includes("-")?i.removeProperty(o):i[o]="")});for(const o in e){const l=e[o];if(l!=null){this.ut.add(o);const d=typeof l=="string"&&l.endsWith(Ux);o.includes("-")||d?i.setProperty(o,d?l.slice(0,-11):l,d?ap:""):i[o]=l}}return di}});var Gx=Object.defineProperty,qx=Object.getOwnPropertyDescriptor,er=(n,e,i,o)=>{for(var l=o>1?void 0:o?qx(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Gx(e,i,l),l};const m0=ce("virtual-list");exports.VirtualList=class extends ze{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,i)=>F`
1731
+ */const np="important",Wx=" !"+np,Ux=wl(class extends xl{constructor(n){var e;if(super(n),n.type!==Cl.ATTRIBUTE||n.name!=="style"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,i)=>{const o=n[i];return o==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(n,[e]){const{style:i}=n.element;if(this.ut===void 0){this.ut=new Set;for(const o in e)this.ut.add(o);return this.render(e)}this.ut.forEach(o=>{e[o]==null&&(this.ut.delete(o),o.includes("-")?i.removeProperty(o):i[o]="")});for(const o in e){const l=e[o];if(l!=null){this.ut.add(o);const d=typeof l=="string"&&l.endsWith(Wx);o.includes("-")||d?i.setProperty(o,d?l.slice(0,-11):l,d?np:""):i[o]=l}}return di}});var jx=Object.defineProperty,Gx=Object.getOwnPropertyDescriptor,er=(n,e,i,o)=>{for(var l=o>1?void 0:o?Gx(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&jx(e,i,l),l};const b0=ce("virtual-list");exports.VirtualList=class extends ze{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,i)=>F`
1732
1732
  <div
1733
1733
  class="default-render-item"
1734
1734
  style="min-height: ${this.itemMinHeight}px"
1735
1735
  >
1736
1736
  Item ${i}: ${JSON.stringify(e)}
1737
1737
  </div>
1738
- `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(e){super.updated(e),this.canSync(e)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((e,i)=>e+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let i=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(i=l,o=e[l])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((i,o)=>i||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((i,o)=>(i+=o,i),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=i2(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),m=u==null?void 0:u.className;this.itemIdentifier=`${v}${m?`.${m}`:""}`}const l=F`
1739
- <div class="item-wrapper" style=${jx(i)}>
1738
+ `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(e){super.updated(e),this.canSync(e)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((e,i)=>e+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let i=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(i=l,o=e[l])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((i,o)=>i||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((i,o)=>(i+=o,i),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=t2(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),m=u==null?void 0:u.className;this.itemIdentifier=`${v}${m?`.${m}`:""}`}const l=F`
1739
+ <div class="item-wrapper" style=${Ux(i)}>
1740
1740
  ${o}
1741
1741
  </div>
1742
- `;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new sp({detail:{itemElements:e}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:e},i)=>{var o,l;this.itemHeights[e]=((l=(o=this.visibleItemElements)==null?void 0:o[i])==null?void 0:l.getBoundingClientRect().height)||this.itemHeights[e]})}get visibleItemElements(){var e;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(e=this.shadowRoot)==null?void 0:e.querySelectorAll(this.itemIdentifier)}handleScroll(e){var i;this.currentScrollTop=(i=e.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const e=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,e);return e-i}get rollingEndIndex(){const e=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-e);return e+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),F`
1742
+ `;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new op({detail:{itemElements:e}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:e},i)=>{var o,l;this.itemHeights[e]=((l=(o=this.visibleItemElements)==null?void 0:o[i])==null?void 0:l.getBoundingClientRect().height)||this.itemHeights[e]})}get visibleItemElements(){var e;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(e=this.shadowRoot)==null?void 0:e.querySelectorAll(this.itemIdentifier)}handleScroll(e){var i;this.currentScrollTop=(i=e.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const e=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,e);return e-i}get rollingEndIndex(){const e=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-e);return e+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),F`
1743
1743
  <div class="container" @scroll=${this.handleScroll}>
1744
1744
  <div class="list" style="height: ${this.innerHeight}px">
1745
- ${Wx(this.visibleItems,({index:e})=>e,({item:e})=>e)}
1745
+ ${Zx(this.visibleItems,({index:e})=>e,({item:e})=>e)}
1746
1746
  </div>
1747
1747
  </div>
1748
1748
  `}};exports.VirtualList.styles=[Q`
@@ -1759,7 +1759,7 @@
1759
1759
  .list {
1760
1760
  position: relative;
1761
1761
  }
1762
- `];er([E({type:Array})],exports.VirtualList.prototype,"items",2);er([E({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);er([E({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);er([E({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);er([Ce()],exports.VirtualList.prototype,"currentScrollTop",2);er([Ce()],exports.VirtualList.prototype,"endIndex",2);er([Ce()],exports.VirtualList.prototype,"innerHeight",2);er([Ce()],exports.VirtualList.prototype,"itemHeights",2);er([Ce()],exports.VirtualList.prototype,"itemIdentifier",2);er([Ce()],exports.VirtualList.prototype,"originalItemsCount",2);er([Ce()],exports.VirtualList.prototype,"currentItemsCount",2);er([Ce()],exports.VirtualList.prototype,"visibleItems",2);er([Ir(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=er([W(m0)],exports.VirtualList);class sp extends CustomEvent{constructor(e={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...e})}}const lp=ce("record-field"),cp=ce("record-field-label"),Kx=["x-small","small","medium","large","x-large","auto","full"],Yx=["side","top"],Xx=["x-small","small","medium","large","x-large"],Jx=Q`
1762
+ `];er([E({type:Array})],exports.VirtualList.prototype,"items",2);er([E({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);er([E({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);er([E({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);er([Ce()],exports.VirtualList.prototype,"currentScrollTop",2);er([Ce()],exports.VirtualList.prototype,"endIndex",2);er([Ce()],exports.VirtualList.prototype,"innerHeight",2);er([Ce()],exports.VirtualList.prototype,"itemHeights",2);er([Ce()],exports.VirtualList.prototype,"itemIdentifier",2);er([Ce()],exports.VirtualList.prototype,"originalItemsCount",2);er([Ce()],exports.VirtualList.prototype,"currentItemsCount",2);er([Ce()],exports.VirtualList.prototype,"visibleItems",2);er([Ir(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=er([W(b0)],exports.VirtualList);class op extends CustomEvent{constructor(e={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...e})}}const ap=ce("record-field"),sp=ce("record-field-label"),qx=["x-small","small","medium","large","x-large","auto","full"],Kx=["side","top"],Yx=["x-small","small","medium","large","x-large"],Xx=Q`
1763
1763
  .size-x-small {
1764
1764
  width: 80px;
1765
1765
  }
@@ -1783,7 +1783,7 @@
1783
1783
  .size-full {
1784
1784
  width: 100%;
1785
1785
  }
1786
- `,Qx=Q`
1786
+ `,Jx=Q`
1787
1787
  :host {
1788
1788
  display: block;
1789
1789
  }
@@ -1857,7 +1857,7 @@
1857
1857
  :host([label-position='side']) .value.size-auto {
1858
1858
  flex-grow: 1;
1859
1859
  }
1860
- `,ez=Q`
1860
+ `,Qx=Q`
1861
1861
  :host {
1862
1862
  display: inline-flex;
1863
1863
  color: var(--brz-color-neutral-850);
@@ -1865,7 +1865,7 @@
1865
1865
  line-height: var(--brz-line-height);
1866
1866
  gap: var(--brz-spacing-1);
1867
1867
  }
1868
- `;var tz=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,Qr=(n,e,i,o)=>{for(var l=o>1?void 0:o?rz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tz(e,i,l),l};exports.RecordField=class extends ze{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(e){super.updated(e),e.has("labelPosition")&&this.setLabelState(),e.has("labelSize")&&this.setLabelState(),e.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelSizeClass(){return this.labelSize?`size-${this.labelSize}`:""}get labelRightRowTemplate(){return F`
1868
+ `;var ez=Object.defineProperty,tz=Object.getOwnPropertyDescriptor,Qr=(n,e,i,o)=>{for(var l=o>1?void 0:o?tz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ez(e,i,l),l};exports.RecordField=class extends ze{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(e){super.updated(e),e.has("labelPosition")&&this.setLabelState(),e.has("labelSize")&&this.setLabelState(),e.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelSizeClass(){return this.labelSize?`size-${this.labelSize}`:""}get labelRightRowTemplate(){return F`
1869
1869
  <brz-split-row
1870
1870
  class=${Qt({[this.labelSizeClass]:!!this.labelSizeClass,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
1871
1871
  >
@@ -1888,16 +1888,16 @@
1888
1888
  ${this.valueTemplate}
1889
1889
  </div>
1890
1890
  </div>
1891
- `}};exports.RecordField.styles=[Qx,Jx];Qr([E({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);Qr([E({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);Qr([E({type:String,attribute:"label-size",reflect:!0})],exports.RecordField.prototype,"labelSize",2);Qr([Ce()],exports.RecordField.prototype,"hasLabel",2);Qr([Ce()],exports.RecordField.prototype,"hasLabelRight",2);Qr([Ce()],exports.RecordField.prototype,"isValueMultiline",2);Qr([Ir(".value")],exports.RecordField.prototype,"value",2);Qr([fi({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);Qr([fi({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=Qr([W(lp)],exports.RecordField);var iz=Object.defineProperty,nz=Object.getOwnPropertyDescriptor,y0=(n,e,i,o)=>{for(var l=o>1?void 0:o?nz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&iz(e,i,l),l};exports.RecordFieldLabel=class extends ze{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(e){super.updated(e),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return F` <slot></slot> `}};exports.RecordFieldLabel.styles=[ez];y0([Ce()],exports.RecordFieldLabel.prototype,"hasContent",2);y0([fi()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=y0([W(cp)],exports.RecordFieldLabel);var oz=Object.defineProperty,az=Object.getOwnPropertyDescriptor,Ri=(n,e,i,o)=>{for(var l=o>1?void 0:o?az(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&oz(e,i,l),l};class tr extends ze{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(e){this.value=e.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(e){super.updated(e),this.useProxy&&this.updateProxyInput()}}tr.shadowRootOptions={mode:"open",delegatesFocus:!0};Ri([E({type:Boolean,reflect:!0})],tr.prototype,"disabled",2);Ri([E({type:Boolean,reflect:!0})],tr.prototype,"required",2);Ri([E({type:Boolean,reflect:!0})],tr.prototype,"invalid",2);Ri([E({type:String})],tr.prototype,"name",2);Ri([E({type:String})],tr.prototype,"id",2);Ri([E({type:String})],tr.prototype,"value",2);Ri([Ce()],tr.prototype,"proxyInput",2);Ri([Ce()],tr.prototype,"useProxy",2);var sz=Object.defineProperty,lz=Object.getOwnPropertyDescriptor,cz=(n,e,i,o)=>{for(var l=o>1?void 0:o?lz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sz(e,i,l),l};const uz=ce("input-guide");let il=class extends ze{render(){return F` <slot></slot> `}};il.styles=Q`
1891
+ `}};exports.RecordField.styles=[Jx,Xx];Qr([E({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);Qr([E({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);Qr([E({type:String,attribute:"label-size",reflect:!0})],exports.RecordField.prototype,"labelSize",2);Qr([Ce()],exports.RecordField.prototype,"hasLabel",2);Qr([Ce()],exports.RecordField.prototype,"hasLabelRight",2);Qr([Ce()],exports.RecordField.prototype,"isValueMultiline",2);Qr([Ir(".value")],exports.RecordField.prototype,"value",2);Qr([fi({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);Qr([fi({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=Qr([W(ap)],exports.RecordField);var rz=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,m0=(n,e,i,o)=>{for(var l=o>1?void 0:o?iz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&rz(e,i,l),l};exports.RecordFieldLabel=class extends ze{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(e){super.updated(e),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return F` <slot></slot> `}};exports.RecordFieldLabel.styles=[Qx];m0([Ce()],exports.RecordFieldLabel.prototype,"hasContent",2);m0([fi()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=m0([W(sp)],exports.RecordFieldLabel);var nz=Object.defineProperty,oz=Object.getOwnPropertyDescriptor,Ri=(n,e,i,o)=>{for(var l=o>1?void 0:o?oz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nz(e,i,l),l};class tr extends ze{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(e){this.value=e.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(e){super.updated(e),this.useProxy&&this.updateProxyInput()}}tr.shadowRootOptions={mode:"open",delegatesFocus:!0};Ri([E({type:Boolean,reflect:!0})],tr.prototype,"disabled",2);Ri([E({type:Boolean,reflect:!0})],tr.prototype,"required",2);Ri([E({type:Boolean,reflect:!0})],tr.prototype,"invalid",2);Ri([E({type:String})],tr.prototype,"name",2);Ri([E({type:String})],tr.prototype,"id",2);Ri([E({type:String})],tr.prototype,"value",2);Ri([Ce()],tr.prototype,"proxyInput",2);Ri([Ce()],tr.prototype,"useProxy",2);var az=Object.defineProperty,sz=Object.getOwnPropertyDescriptor,lz=(n,e,i,o)=>{for(var l=o>1?void 0:o?sz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&az(e,i,l),l};const cz=ce("input-guide");let il=class extends ze{render(){return F` <slot></slot> `}};il.styles=Q`
1892
1892
  :host {
1893
1893
  font-size: var(--brz-font-size-xs);
1894
1894
  }
1895
- `;il=cz([W(uz)],il);var dz=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,fz=(n,e,i,o)=>{for(var l=o>1?void 0:o?hz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dz(e,i,l),l};const up=ce("input-error");exports.InputError=class extends ze{render(){return F` <slot></slot> `}};exports.InputError.styles=Q`
1895
+ `;il=lz([W(cz)],il);var uz=Object.defineProperty,dz=Object.getOwnPropertyDescriptor,hz=(n,e,i,o)=>{for(var l=o>1?void 0:o?dz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uz(e,i,l),l};const lp=ce("input-error");exports.InputError=class extends ze{render(){return F` <slot></slot> `}};exports.InputError.styles=Q`
1896
1896
  :host {
1897
1897
  font-size: var(--brz-font-size);
1898
1898
  color: var(--brz-color-error);
1899
1899
  }
1900
- `;exports.InputError=fz([W(up)],exports.InputError);var pz=Object.defineProperty,gz=Object.getOwnPropertyDescriptor,Ar=(n,e,i,o)=>{for(var l=o>1?void 0:o?gz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pz(e,i,l),l};const dp=ce("labeled-input"),hp=ce("input-label"),vz=Q`
1900
+ `;exports.InputError=hz([W(lp)],exports.InputError);var fz=Object.defineProperty,pz=Object.getOwnPropertyDescriptor,Ar=(n,e,i,o)=>{for(var l=o>1?void 0:o?pz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fz(e,i,l),l};const cp=ce("labeled-input"),up=ce("input-label"),gz=Q`
1901
1901
  .guide {
1902
1902
  display: flex;
1903
1903
  }
@@ -1960,7 +1960,7 @@
1960
1960
  :host([optional]:not([required])) .label-flag {
1961
1961
  color: var(--brz-color-text-placeholder);
1962
1962
  }
1963
- `,vz];Ar([E({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Ar([E({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Ar([E({type:String,attribute:"label-size",reflect:!0})],exports.LabeledInput.prototype,"labelSize",2);Ar([E({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);Ar([Ce()],exports.LabeledInput.prototype,"hasPrompt",2);Ar([Ce()],exports.LabeledInput.prototype,"hasError",2);Ar([Ce()],exports.LabeledInput.prototype,"hasLabel",2);Ar([fi({slot:"label"})],exports.LabeledInput.prototype,"label",2);Ar([fi({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=Ar([W(dp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=Ar([W(hp)],exports.InputLabel);var bz=Object.defineProperty,mz=Object.getOwnPropertyDescriptor,Dl=(n,e,i,o)=>{for(var l=o>1?void 0:o?mz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&bz(e,i,l),l};const yz=Q`
1963
+ `,gz];Ar([E({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Ar([E({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Ar([E({type:String,attribute:"label-size",reflect:!0})],exports.LabeledInput.prototype,"labelSize",2);Ar([E({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);Ar([Ce()],exports.LabeledInput.prototype,"hasPrompt",2);Ar([Ce()],exports.LabeledInput.prototype,"hasError",2);Ar([Ce()],exports.LabeledInput.prototype,"hasLabel",2);Ar([fi({slot:"label"})],exports.LabeledInput.prototype,"label",2);Ar([fi({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=Ar([W(cp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=Ar([W(up)],exports.InputLabel);var vz=Object.defineProperty,bz=Object.getOwnPropertyDescriptor,Dl=(n,e,i,o)=>{for(var l=o>1?void 0:o?bz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vz(e,i,l),l};const mz=Q`
1964
1964
  :host {
1965
1965
  --input-text-color: var(--brz-color-neutral-850);
1966
1966
  --input-font: var(--brz-font-family);
@@ -2065,7 +2065,7 @@
2065
2065
  class="trailing"
2066
2066
  ></brz-icon>`:null}
2067
2067
  </div>
2068
- `}}rr.styles=[...exports.LabeledInput.styles,yz];Dl([E({type:Boolean,reflect:!0})],rr.prototype,"readonly",2);Dl([E({type:String,reflect:!0})],rr.prototype,"placeholder",2);Dl([E({type:String,reflect:!0,attribute:"leading-icon"})],rr.prototype,"leadingIcon",2);Dl([E({type:String,reflect:!0,attribute:"trailing-icon"})],rr.prototype,"trailingIcon",2);var Cz=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,fr=(n,e,i,o)=>{for(var l=o>1?void 0:o?wz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Cz(e,i,l),l};const Ta="searchMessage",Gh="";class bt extends rr{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.autocomplete="off",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(e=>({...e,id:`option-${Mc()}`}))]:[]}updated(e){super.updated(e),e.has("options")&&this.setInnerOptions(),e.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(e){var i,o;return!e||(e==null?void 0:e.value)===""?"":e instanceof exports.MenuItem?(o=(i=e.textContent)==null?void 0:i.trim())!=null?o:"":e.label}handleKeyDown(e){["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.dropdown.open())}handleKeyUp(e){e.key===" "&&this.canSearch&&(e.preventDefault(),this.dropdown.open())}get defaultSlot(){var e,i;return(i=(e=this.renderRoot)==null?void 0:e.querySelector("slot:not([name])"))==null?void 0:i.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var e;return this.isDataDriven?(e=this.virtualListElement)==null?void 0:e.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(m0)}get optionElements(){var i,o,l;const e=(i=this.optionElementsRenderRoot)!=null&&i.querySelectorAll(nl).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(nl):(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll("sp-menu-item");return Array.from(e!=null?e:[])}setValue(e){this.value=e,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(e){this.isMenuOpen&&e.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var e;(e=this.dropdown)==null||e.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():F`
2068
+ `}}rr.styles=[...exports.LabeledInput.styles,mz];Dl([E({type:Boolean,reflect:!0})],rr.prototype,"readonly",2);Dl([E({type:String,reflect:!0})],rr.prototype,"placeholder",2);Dl([E({type:String,reflect:!0,attribute:"leading-icon"})],rr.prototype,"leadingIcon",2);Dl([E({type:String,reflect:!0,attribute:"trailing-icon"})],rr.prototype,"trailingIcon",2);var yz=Object.defineProperty,Cz=Object.getOwnPropertyDescriptor,fr=(n,e,i,o)=>{for(var l=o>1?void 0:o?Cz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&yz(e,i,l),l};const Ta="searchMessage",jh="";class bt extends rr{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.autocomplete="off",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(e=>({...e,id:`option-${Sc()}`}))]:[]}updated(e){super.updated(e),e.has("options")&&this.setInnerOptions(),e.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(e){var i,o;return!e||(e==null?void 0:e.value)===""?"":e instanceof exports.MenuItem?(o=(i=e.textContent)==null?void 0:i.trim())!=null?o:"":e.label}handleKeyDown(e){["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.dropdown.open())}handleKeyUp(e){e.key===" "&&this.canSearch&&(e.preventDefault(),this.dropdown.open())}get defaultSlot(){var e,i;return(i=(e=this.renderRoot)==null?void 0:e.querySelector("slot:not([name])"))==null?void 0:i.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var e;return this.isDataDriven?(e=this.virtualListElement)==null?void 0:e.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(b0)}get optionElements(){var i,o,l;const e=(i=this.optionElementsRenderRoot)!=null&&i.querySelectorAll(nl).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(nl):(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll("sp-menu-item");return Array.from(e!=null?e:[])}setValue(e){this.value=e,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(e){this.isMenuOpen&&e.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var e;(e=this.dropdown)==null||e.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():F`
2069
2069
  <brz-dropdown-menu
2070
2070
  @brz-menu-select=${this.handleSelect}
2071
2071
  @brz-menu-item-select=${this.handleItemSelect}
@@ -2096,7 +2096,7 @@
2096
2096
  </brz-menu-item>
2097
2097
  `}
2098
2098
  ></brz-virtual-list>
2099
- `:null}isQueryMatch(e){return this.query?this.getItemLabel(e).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(e):!1}isCustomQueryMatch(e){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(e){}handleItemSelect(e){}handleValueChange(){}handleQueryInput(e){const i=e.target;this.query=i==null?void 0:i.value,this.dispatchEvent(new C0({detail:{query:this.query}})),this.hasClearableOption()&&i.value===Gh&&this.setValue("")}hasClearableOption(){let e=!1;return this.getItems().forEach(i=>{i.value===Gh&&(e=!0)}),e}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var e;return!!((e=this.options)!=null&&e.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}bt.styles=[...rr.styles,Q`
2099
+ `:null}isQueryMatch(e){return this.query?this.getItemLabel(e).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(e):!1}isCustomQueryMatch(e){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(e){}handleItemSelect(e){}handleValueChange(){}handleQueryInput(e){const i=e.target;this.query=i==null?void 0:i.value,this.dispatchEvent(new y0({detail:{query:this.query}})),this.hasClearableOption()&&i.value===jh&&this.setValue("")}hasClearableOption(){let e=!1;return this.getItems().forEach(i=>{i.value===jh&&(e=!0)}),e}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var e;return!!((e=this.options)!=null&&e.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}bt.styles=[...rr.styles,Q`
2100
2100
  :host {
2101
2101
  /** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
2102
2102
  --dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
@@ -2141,7 +2141,7 @@
2141
2141
  }
2142
2142
 
2143
2143
  button.wrapper {
2144
- ${o2};
2144
+ ${i2};
2145
2145
  align-items: center;
2146
2146
  background-color: var(--brz-color-white);
2147
2147
  border: var(--input-border);
@@ -2179,7 +2179,7 @@
2179
2179
  border-color: var(--input-focus-border-color);
2180
2180
  outline: none;
2181
2181
  }
2182
- `];fr([E({type:Boolean})],bt.prototype,"controlled",2);fr([E({attribute:"can-search",type:Boolean,reflect:!0})],bt.prototype,"canSearch",2);fr([E({type:Boolean,reflect:!0})],bt.prototype,"loading",2);fr([E({type:String,reflect:!0,attribute:"trailing-icon"})],bt.prototype,"trailingIcon",2);fr([E({type:Array})],bt.prototype,"options",2);fr([E({attribute:"search-message"})],bt.prototype,"searchMessage",2);fr([E({type:String,reflect:!0})],bt.prototype,"autocomplete",2);fr([Ce()],bt.prototype,"isMenuOpen",2);fr([Ce()],bt.prototype,"hasResults",2);fr([Ce()],bt.prototype,"query",2);fr([Ce()],bt.prototype,"innerOptions",2);fr([Ir("brz-dropdown-menu")],bt.prototype,"dropdown",2);fr([Ir("#selectSearch")],bt.prototype,"queryInput",2);class C0 extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var xz=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,zn=(n,e,i,o)=>{for(var l=o>1?void 0:o?zz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xz(e,i,l),l};const nl=ce("menu-item");exports.MenuItem=class extends ze{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new fp({detail:{item:this}}))}handleClick(e){e.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&e.stopPropagation()}handleKeyDown(){}get labelTemplate(){return F` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?F`
2182
+ `];fr([E({type:Boolean})],bt.prototype,"controlled",2);fr([E({attribute:"can-search",type:Boolean,reflect:!0})],bt.prototype,"canSearch",2);fr([E({type:Boolean,reflect:!0})],bt.prototype,"loading",2);fr([E({type:String,reflect:!0,attribute:"trailing-icon"})],bt.prototype,"trailingIcon",2);fr([E({type:Array})],bt.prototype,"options",2);fr([E({attribute:"search-message"})],bt.prototype,"searchMessage",2);fr([E({type:String,reflect:!0})],bt.prototype,"autocomplete",2);fr([Ce()],bt.prototype,"isMenuOpen",2);fr([Ce()],bt.prototype,"hasResults",2);fr([Ce()],bt.prototype,"query",2);fr([Ce()],bt.prototype,"innerOptions",2);fr([Ir("brz-dropdown-menu")],bt.prototype,"dropdown",2);fr([Ir("#selectSearch")],bt.prototype,"queryInput",2);class y0 extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var wz=Object.defineProperty,xz=Object.getOwnPropertyDescriptor,zn=(n,e,i,o)=>{for(var l=o>1?void 0:o?xz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wz(e,i,l),l};const nl=ce("menu-item");exports.MenuItem=class extends ze{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new dp({detail:{item:this}}))}handleClick(e){e.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&e.stopPropagation()}handleKeyDown(){}get labelTemplate(){return F` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?F`
2183
2183
  <brz-input-checkbox
2184
2184
  ?disabled=${this.disabled}
2185
2185
  ?checked=${this.selected}
@@ -2256,7 +2256,7 @@
2256
2256
  padding-left: var(--menu-item-label-gutter);
2257
2257
  position: relative;
2258
2258
  }
2259
- `;zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);zn([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);zn([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);zn([E({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=zn([W(nl)],exports.MenuItem);class fp extends CustomEvent{constructor(e={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...e})}}var Lz=Object.defineProperty,Sz=Object.getOwnPropertyDescriptor,bi=(n,e,i,o)=>{for(var l=o>1?void 0:o?Sz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Lz(e,i,l),l};const pp=ce("menu"),kr="selectAll";exports.Menu=class extends ze{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(e){var i;super.updated(e),e.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(e){e.preventDefault();const{key:i}=e,o=({before:d,after:u})=>(v,m)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&m<d||u!==void 0&&m>u;this.clearHighlightedItem();const l=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,l[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Rx(l,o({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=l.length-1)),i==="ArrowDown"&&(this.highlightedIndex=l.findIndex(o({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),l[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(e){if(e.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(e=>e.selected)}getActiveMenuItem(e){return e?e.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(e){if(!this.selectable)return this.bypassSelectedState();if(e.value===void 0)throw new Error("No value found for MenuItem");if(!e.disabled){if(this.multiselect)e.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),e.select()}this.updateSelected(e.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(e){const i=this.selected.some(l=>e===l);if(this.multiselect&&i){this.selected=this.selected.filter(l=>e!==l);return}i||(this.selected=this.multiselect?[...this.selected,e]:[e])}handleMenuItemSelect(e){e.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(e))}emitSelection(){this.dispatchEvent(new vp({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(e){var i,o;(o=(i=this.keyBindings)[e.key])==null||o.call(i,e)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new gp),this.reset()}handleTabKey(e){e.preventDefault(),this.emitBlur()}applyPropsToChildren(e){Mz(e)&&e.forEach(i=>{var o;i.selectable=this.selectable&&i.id!==Ta,i.toggleable=this.multiselect&&i.id!==Ta,i.id!==kr&&(i.selected=i.value!==void 0?(o=this.selected)==null?void 0:o.includes(i.value):!1)})}handleSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.slottedElements=i,this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){var o;const e=this.getMenuItems(),i=e&&(e==null?void 0:e.length)>0||this.slottedElements&&((o=this.slottedElements)==null?void 0:o.length)>0?"menu-container":"";return F`
2259
+ `;zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);zn([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);zn([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);zn([E({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=zn([W(nl)],exports.MenuItem);class dp extends CustomEvent{constructor(e={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...e})}}var zz=Object.defineProperty,Lz=Object.getOwnPropertyDescriptor,bi=(n,e,i,o)=>{for(var l=o>1?void 0:o?Lz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zz(e,i,l),l};const hp=ce("menu"),kr="selectAll";exports.Menu=class extends ze{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(e){var i;super.updated(e),e.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(e){e.preventDefault();const{key:i}=e,o=({before:d,after:u})=>(v,m)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&m<d||u!==void 0&&m>u;this.clearHighlightedItem();const l=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,l[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Hx(l,o({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=l.length-1)),i==="ArrowDown"&&(this.highlightedIndex=l.findIndex(o({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),l[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(e){if(e.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(e=>e.selected)}getActiveMenuItem(e){return e?e.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(e){if(!this.selectable)return this.bypassSelectedState();if(e.value===void 0)throw new Error("No value found for MenuItem");if(!e.disabled){if(this.multiselect)e.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),e.select()}this.updateSelected(e.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(e){const i=this.selected.some(l=>e===l);if(this.multiselect&&i){this.selected=this.selected.filter(l=>e!==l);return}i||(this.selected=this.multiselect?[...this.selected,e]:[e])}handleMenuItemSelect(e){e.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(e))}emitSelection(){this.dispatchEvent(new pp({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(e){var i,o;(o=(i=this.keyBindings)[e.key])==null||o.call(i,e)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new fp),this.reset()}handleTabKey(e){e.preventDefault(),this.emitBlur()}applyPropsToChildren(e){Sz(e)&&e.forEach(i=>{var o;i.selectable=this.selectable&&i.id!==Ta,i.toggleable=this.multiselect&&i.id!==Ta,i.id!==kr&&(i.selected=i.value!==void 0?(o=this.selected)==null?void 0:o.includes(i.value):!1)})}handleSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.slottedElements=i,this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){var o;const e=this.getMenuItems(),i=e&&(e==null?void 0:e.length)>0||this.slottedElements&&((o=this.slottedElements)==null?void 0:o.length)>0?"menu-container":"";return F`
2260
2260
  <div class=${i}>
2261
2261
  <ul
2262
2262
  class="menu"
@@ -2304,13 +2304,13 @@
2304
2304
  width: var(--brz-menu-width, 10rem);
2305
2305
  padding: 0;
2306
2306
  }
2307
- `;bi([E({type:Boolean})],exports.Menu.prototype,"multiselect",2);bi([E({type:Boolean})],exports.Menu.prototype,"selectable",2);bi([E({type:Array})],exports.Menu.prototype,"selected",2);bi([E({reflect:!0})],exports.Menu.prototype,"size",2);bi([Ce()],exports.Menu.prototype,"highlightedIndex",2);bi([Ce()],exports.Menu.prototype,"virtualListMenuItems",2);bi([Ce()],exports.Menu.prototype,"slottedElements",2);bi([fi({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=bi([W(pp)],exports.Menu);const Mz=n=>n[0]instanceof exports.MenuItem;class gp extends CustomEvent{constructor(e={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...e})}}class vp extends CustomEvent{constructor(e={}){super("brz-menu-select",{bubbles:!0,composed:!0,...e})}}var Tz=Object.defineProperty,kz=Object.getOwnPropertyDescriptor,bp=(n,e,i,o)=>{for(var l=o>1?void 0:o?kz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Tz(e,i,l),l};const mp=ce("combo-box"),yp=ce("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=bp([W(mp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=bp([W(yp)],exports.ComboBoxOption);/*!
2307
+ `;bi([E({type:Boolean})],exports.Menu.prototype,"multiselect",2);bi([E({type:Boolean})],exports.Menu.prototype,"selectable",2);bi([E({type:Array})],exports.Menu.prototype,"selected",2);bi([E({reflect:!0})],exports.Menu.prototype,"size",2);bi([Ce()],exports.Menu.prototype,"highlightedIndex",2);bi([Ce()],exports.Menu.prototype,"virtualListMenuItems",2);bi([Ce()],exports.Menu.prototype,"slottedElements",2);bi([fi({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=bi([W(hp)],exports.Menu);const Sz=n=>n[0]instanceof exports.MenuItem;class fp extends CustomEvent{constructor(e={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...e})}}class pp extends CustomEvent{constructor(e={}){super("brz-menu-select",{bubbles:!0,composed:!0,...e})}}var Mz=Object.defineProperty,Tz=Object.getOwnPropertyDescriptor,gp=(n,e,i,o)=>{for(var l=o>1?void 0:o?Tz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Mz(e,i,l),l};const vp=ce("combo-box"),bp=ce("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=gp([W(vp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=gp([W(bp)],exports.ComboBoxOption);/*!
2308
2308
  * tabbable 6.2.0
2309
2309
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2310
- */var Cp=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ol=Cp.join(","),wp=typeof Element=="undefined",xn=wp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,al=!wp&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},sl=function n(e,i){var o;i===void 0&&(i=!0);var l=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),d=l===""||l==="true",u=d||i&&e&&n(e.parentNode);return u},Oz=function(e){var i,o=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"contenteditable");return o===""||o==="true"},xp=function(e,i,o){if(sl(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(ol));return i&&xn.call(e,ol)&&l.unshift(e),l=l.filter(o),l},zp=function n(e,i,o){for(var l=[],d=Array.from(e);d.length;){var u=d.shift();if(!sl(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),m=v.length?v:u.children,b=n(m,!0,o);o.flatten?l.push.apply(l,b):l.push({scopeParent:u,candidates:b})}else{var M=xn.call(u,ol);M&&o.filter(u)&&(i||!e.includes(u))&&l.push(u);var L=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),T=!sl(L,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(L&&T){var $=n(L===!0?u.children:L.children,!0,o);o.flatten?l.push.apply(l,$):l.push({scopeParent:u,candidates:$})}else d.unshift.apply(d,u.children)}}return l},Lp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},hn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Oz(e))&&!Lp(e)?0:e.tabIndex},$z=function(e,i){var o=hn(e);return o<0&&i&&!Lp(e)?0:o},Ez=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},Sp=function(e){return e.tagName==="INPUT"},_z=function(e){return Sp(e)&&e.type==="hidden"},Iz=function(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return i},Az=function(e,i){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===i)return e[o]},Pz=function(e){if(!e.name)return!0;var i=e.form||al(e),o=function(v){return i.querySelectorAll('input[type="radio"][name="'+v+'"]')},l;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(e.name));else try{l=o(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var d=Az(l,e.form);return!d||d===e},Dz=function(e){return Sp(e)&&e.type==="radio"},Nz=function(e){return Dz(e)&&!Pz(e)},Hz=function(e){var i,o=e&&al(e),l=(i=o)===null||i===void 0?void 0:i.host,d=!1;if(o&&o!==e){var u,v,m;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(m=e.ownerDocument)!==null&&m!==void 0&&m.contains(e));!d&&l;){var b,M,L;o=al(l),l=(b=o)===null||b===void 0?void 0:b.host,d=!!((M=l)!==null&&M!==void 0&&(L=M.ownerDocument)!==null&&L!==void 0&&L.contains(l))}}return d},qh=function(e){var i=e.getBoundingClientRect(),o=i.width,l=i.height;return o===0&&l===0},Rz=function(e,i){var o=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var d=xn.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(xn.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var m=e.parentElement,b=al(e);if(m&&!m.shadowRoot&&l(m)===!0)return qh(e);e.assignedSlot?e=e.assignedSlot:!m&&b!==e.ownerDocument?e=b.host:e=m}e=v}if(Hz(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return qh(e);return!1},Fz=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var i=e.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var o=0;o<i.children.length;o++){var l=i.children.item(o);if(l.tagName==="LEGEND")return xn.call(i,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}i=i.parentElement}return!1},ll=function(e,i){return!(i.disabled||sl(i)||_z(i)||Rz(i,e)||Iz(i)||Fz(i))},Dc=function(e,i){return!(Nz(i)||hn(i)<0||!ll(e,i))},Bz=function(e){var i=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(i)||i>=0)},Vz=function n(e){var i=[],o=[];return e.forEach(function(l,d){var u=!!l.scopeParent,v=u?l.scopeParent:l,m=$z(v,u),b=u?n(l.candidates):v;m===0?u?i.push.apply(i,b):i.push(v):o.push({documentOrder:d,tabIndex:m,item:l,isScope:u,content:b})}),o.sort(Ez).reduce(function(l,d){return d.isScope?l.push.apply(l,d.content):l.push(d.content),l},[]).concat(i)},Zz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=zp([e],i.includeContainer,{filter:Dc.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Bz}):o=xp(e,i.includeContainer,Dc.bind(null,i)),Vz(o)},Wz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=zp([e],i.includeContainer,{filter:ll.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):o=xp(e,i.includeContainer,ll.bind(null,i)),o},Jn=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return xn.call(e,ol)===!1?!1:Dc(i,e)},Uz=Cp.concat("iframe").join(","),lc=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return xn.call(e,Uz)===!1?!1:ll(i,e)};/*!
2310
+ */var mp=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ol=mp.join(","),yp=typeof Element=="undefined",xn=yp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,al=!yp&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},sl=function n(e,i){var o;i===void 0&&(i=!0);var l=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),d=l===""||l==="true",u=d||i&&e&&n(e.parentNode);return u},kz=function(e){var i,o=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"contenteditable");return o===""||o==="true"},Cp=function(e,i,o){if(sl(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(ol));return i&&xn.call(e,ol)&&l.unshift(e),l=l.filter(o),l},wp=function n(e,i,o){for(var l=[],d=Array.from(e);d.length;){var u=d.shift();if(!sl(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),m=v.length?v:u.children,b=n(m,!0,o);o.flatten?l.push.apply(l,b):l.push({scopeParent:u,candidates:b})}else{var M=xn.call(u,ol);M&&o.filter(u)&&(i||!e.includes(u))&&l.push(u);var L=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),T=!sl(L,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(L&&T){var $=n(L===!0?u.children:L.children,!0,o);o.flatten?l.push.apply(l,$):l.push({scopeParent:u,candidates:$})}else d.unshift.apply(d,u.children)}}return l},xp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},hn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||kz(e))&&!xp(e)?0:e.tabIndex},Oz=function(e,i){var o=hn(e);return o<0&&i&&!xp(e)?0:o},$z=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},zp=function(e){return e.tagName==="INPUT"},Ez=function(e){return zp(e)&&e.type==="hidden"},_z=function(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return i},Iz=function(e,i){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===i)return e[o]},Az=function(e){if(!e.name)return!0;var i=e.form||al(e),o=function(v){return i.querySelectorAll('input[type="radio"][name="'+v+'"]')},l;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(e.name));else try{l=o(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var d=Iz(l,e.form);return!d||d===e},Pz=function(e){return zp(e)&&e.type==="radio"},Dz=function(e){return Pz(e)&&!Az(e)},Nz=function(e){var i,o=e&&al(e),l=(i=o)===null||i===void 0?void 0:i.host,d=!1;if(o&&o!==e){var u,v,m;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(m=e.ownerDocument)!==null&&m!==void 0&&m.contains(e));!d&&l;){var b,M,L;o=al(l),l=(b=o)===null||b===void 0?void 0:b.host,d=!!((M=l)!==null&&M!==void 0&&(L=M.ownerDocument)!==null&&L!==void 0&&L.contains(l))}}return d},Gh=function(e){var i=e.getBoundingClientRect(),o=i.width,l=i.height;return o===0&&l===0},Hz=function(e,i){var o=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var d=xn.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(xn.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var m=e.parentElement,b=al(e);if(m&&!m.shadowRoot&&l(m)===!0)return Gh(e);e.assignedSlot?e=e.assignedSlot:!m&&b!==e.ownerDocument?e=b.host:e=m}e=v}if(Nz(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Gh(e);return!1},Rz=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var i=e.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var o=0;o<i.children.length;o++){var l=i.children.item(o);if(l.tagName==="LEGEND")return xn.call(i,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}i=i.parentElement}return!1},ll=function(e,i){return!(i.disabled||sl(i)||Ez(i)||Hz(i,e)||_z(i)||Rz(i))},Pc=function(e,i){return!(Dz(i)||hn(i)<0||!ll(e,i))},Fz=function(e){var i=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(i)||i>=0)},Bz=function n(e){var i=[],o=[];return e.forEach(function(l,d){var u=!!l.scopeParent,v=u?l.scopeParent:l,m=Oz(v,u),b=u?n(l.candidates):v;m===0?u?i.push.apply(i,b):i.push(v):o.push({documentOrder:d,tabIndex:m,item:l,isScope:u,content:b})}),o.sort($z).reduce(function(l,d){return d.isScope?l.push.apply(l,d.content):l.push(d.content),l},[]).concat(i)},Vz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=wp([e],i.includeContainer,{filter:Pc.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Fz}):o=Cp(e,i.includeContainer,Pc.bind(null,i)),Bz(o)},Zz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=wp([e],i.includeContainer,{filter:ll.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):o=Cp(e,i.includeContainer,ll.bind(null,i)),o},Jn=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return xn.call(e,ol)===!1?!1:Pc(i,e)},Wz=mp.concat("iframe").join(","),lc=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return xn.call(e,Wz)===!1?!1:ll(i,e)};/*!
2311
2311
  * focus-trap 7.5.4
2312
2312
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2313
- */function Kh(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,o)}return i}function Yh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Kh(Object(i),!0).forEach(function(o){jz(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Kh(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function jz(n,e,i){return e=qz(e),e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function Gz(n,e){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function qz(n){var e=Gz(n,"string");return typeof e=="symbol"?e:String(e)}var Xh={activateTrap:function(e,i){if(e.length>0){var o=e[e.length-1];o!==i&&o.pause()}var l=e.indexOf(i);l===-1||e.splice(l,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},Kz=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Yz=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ya=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Xz=function(e){return ya(e)&&!e.shiftKey},Jz=function(e){return ya(e)&&e.shiftKey},Jh=function(e){return setTimeout(e,0)},Qh=function(e,i){var o=-1;return e.every(function(l,d){return i(l)?(o=d,!1):!0}),o},ha=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},$s=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Qz=[],eL=function(e,i){var o=(i==null?void 0:i.document)||document,l=(i==null?void 0:i.trapStack)||Qz,d=Yh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Xz,isKeyBackward:Jz},i),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,m=function(V,O,x){return V&&V[O]!==void 0?V[O]:d[x||O]},b=function(V,O){var x=typeof(O==null?void 0:O.composedPath)=="function"?O.composedPath():void 0;return u.containerGroups.findIndex(function(w){var U=w.container,ne=w.tabbableNodes;return U.contains(V)||(x==null?void 0:x.includes(U))||ne.find(function(ye){return ye===V})})},M=function(V){var O=d[V];if(typeof O=="function"){for(var x=arguments.length,w=new Array(x>1?x-1:0),U=1;U<x;U++)w[U-1]=arguments[U];O=O.apply(void 0,w)}if(O===!0&&(O=void 0),!O){if(O===void 0||O===!1)return O;throw new Error("`".concat(V,"` was specified but was not a node, or did not return a node"))}var ne=O;if(typeof O=="string"&&(ne=o.querySelector(O),!ne))throw new Error("`".concat(V,"` as selector refers to no known node"));return ne},L=function(){var V=M("initialFocus");if(V===!1)return!1;if(V===void 0||!lc(V,d.tabbableOptions))if(b(o.activeElement)>=0)V=o.activeElement;else{var O=u.tabbableGroups[0],x=O&&O.firstTabbableNode;V=x||M("fallbackFocus")}if(!V)throw new Error("Your focus-trap needs to have at least one focusable element");return V},T=function(){if(u.containerGroups=u.containers.map(function(V){var O=Zz(V,d.tabbableOptions),x=Wz(V,d.tabbableOptions),w=O.length>0?O[0]:void 0,U=O.length>0?O[O.length-1]:void 0,ne=x.find(function(Re){return Jn(Re)}),ye=x.slice().reverse().find(function(Re){return Jn(Re)}),ke=!!O.find(function(Re){return hn(Re)>0});return{container:V,tabbableNodes:O,focusableNodes:x,posTabIndexesFound:ke,firstTabbableNode:w,lastTabbableNode:U,firstDomTabbableNode:ne,lastDomTabbableNode:ye,nextTabbableNode:function(ot){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ye=O.indexOf(ot);return Ye<0?Et?x.slice(x.indexOf(ot)+1).find(function(Xe){return Jn(Xe)}):x.slice(0,x.indexOf(ot)).reverse().find(function(Xe){return Jn(Xe)}):O[Ye+(Et?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(V){return V.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!M("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(V){return V.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},$=function X(V){var O=V.activeElement;if(O)return O.shadowRoot&&O.shadowRoot.activeElement!==null?X(O.shadowRoot):O},N=function X(V){if(V!==!1&&V!==$(document)){if(!V||!V.focus){X(L());return}V.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=V,Kz(V)&&V.select()}},Y=function(V){var O=M("setReturnFocus",V);return O||(O===!1?!1:V)},oe=function(V){var O=V.target,x=V.event,w=V.isBackward,U=w===void 0?!1:w;O=O||$s(x),T();var ne=null;if(u.tabbableGroups.length>0){var ye=b(O,x),ke=ye>=0?u.containerGroups[ye]:void 0;if(ye<0)U?ne=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:ne=u.tabbableGroups[0].firstTabbableNode;else if(U){var Re=Qh(u.tabbableGroups,function(ge){var ve=ge.firstTabbableNode;return O===ve});if(Re<0&&(ke.container===O||lc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O,!1))&&(Re=ye),Re>=0){var ot=Re===0?u.tabbableGroups.length-1:Re-1,Et=u.tabbableGroups[ot];ne=hn(O)>=0?Et.lastTabbableNode:Et.lastDomTabbableNode}else ya(x)||(ne=ke.nextTabbableNode(O,!1))}else{var Ye=Qh(u.tabbableGroups,function(ge){var ve=ge.lastTabbableNode;return O===ve});if(Ye<0&&(ke.container===O||lc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O))&&(Ye=ye),Ye>=0){var Xe=Ye===u.tabbableGroups.length-1?0:Ye+1,Be=u.tabbableGroups[Xe];ne=hn(O)>=0?Be.firstTabbableNode:Be.firstDomTabbableNode}else ya(x)||(ne=ke.nextTabbableNode(O))}}else ne=M("fallbackFocus");return ne},_=function(V){var O=$s(V);if(!(b(O,V)>=0)){if(ha(d.clickOutsideDeactivates,V)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ha(d.allowOutsideClick,V)||V.preventDefault()}},D=function(V){var O=$s(V),x=b(O,V)>=0;if(x||O instanceof Document)x&&(u.mostRecentlyFocusedNode=O);else{V.stopImmediatePropagation();var w,U=!0;if(u.mostRecentlyFocusedNode)if(hn(u.mostRecentlyFocusedNode)>0){var ne=b(u.mostRecentlyFocusedNode),ye=u.containerGroups[ne].tabbableNodes;if(ye.length>0){var ke=ye.findIndex(function(Re){return Re===u.mostRecentlyFocusedNode});ke>=0&&(d.isKeyForward(u.recentNavEvent)?ke+1<ye.length&&(w=ye[ke+1],U=!1):ke-1>=0&&(w=ye[ke-1],U=!1))}}else u.containerGroups.some(function(Re){return Re.tabbableNodes.some(function(ot){return hn(ot)>0})})||(U=!1);else U=!1;U&&(w=oe({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),N(w||u.mostRecentlyFocusedNode||L())}u.recentNavEvent=void 0},A=function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=V;var x=oe({event:V,isBackward:O});x&&(ya(V)&&V.preventDefault(),N(x))},B=function(V){if(Yz(V)&&ha(d.escapeDeactivates,V)!==!1){V.preventDefault(),v.deactivate();return}(d.isKeyForward(V)||d.isKeyBackward(V))&&A(V,d.isKeyBackward(V))},K=function(V){var O=$s(V);b(O,V)>=0||ha(d.clickOutsideDeactivates,V)||ha(d.allowOutsideClick,V)||(V.preventDefault(),V.stopImmediatePropagation())},ue=function(){if(u.active)return Xh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?Jh(function(){N(L())}):N(L()),o.addEventListener("focusin",D,!0),o.addEventListener("mousedown",_,{capture:!0,passive:!1}),o.addEventListener("touchstart",_,{capture:!0,passive:!1}),o.addEventListener("click",K,{capture:!0,passive:!1}),o.addEventListener("keydown",B,{capture:!0,passive:!1}),v},le=function(){if(u.active)return o.removeEventListener("focusin",D,!0),o.removeEventListener("mousedown",_,!0),o.removeEventListener("touchstart",_,!0),o.removeEventListener("click",K,!0),o.removeEventListener("keydown",B,!0),v},me=function(V){var O=V.some(function(x){var w=Array.from(x.removedNodes);return w.some(function(U){return U===u.mostRecentlyFocusedNode})});O&&N(L())},Me=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(me):void 0,ie=function(){Me&&(Me.disconnect(),u.active&&!u.paused&&u.containers.map(function(V){Me.observe(V,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(V){if(u.active)return this;var O=m(V,"onActivate"),x=m(V,"onPostActivate"),w=m(V,"checkCanFocusTrap");w||T(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,O==null||O();var U=function(){w&&T(),ue(),ie(),x==null||x()};return w?(w(u.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(V){if(!u.active)return this;var O=Yh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},V);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,le(),u.active=!1,u.paused=!1,ie(),Xh.deactivateTrap(l,v);var x=m(O,"onDeactivate"),w=m(O,"onPostDeactivate"),U=m(O,"checkCanReturnFocus"),ne=m(O,"returnFocus","returnFocusOnDeactivate");x==null||x();var ye=function(){Jh(function(){ne&&N(Y(u.nodeFocusedBeforeActivation)),w==null||w()})};return ne&&U?(U(Y(u.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(V){if(u.paused||!u.active)return this;var O=m(V,"onPause"),x=m(V,"onPostPause");return u.paused=!0,O==null||O(),le(),ie(),x==null||x(),this},unpause:function(V){if(!u.paused||!u.active)return this;var O=m(V,"onUnpause"),x=m(V,"onPostUnpause");return u.paused=!1,O==null||O(),T(),ue(),ie(),x==null||x(),this},updateContainerElements:function(V){var O=[].concat(V).filter(Boolean);return u.containers=O.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&T(),ie(),this}},v.updateContainerElements(e),v},tL=Object.defineProperty,rL=Object.getOwnPropertyDescriptor,Ln=(n,e,i,o)=>{for(var l=o>1?void 0:o?rL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tL(e,i,l),l};const Mp=ce("modal"),iL=["small","medium","large","x-large","full-page"];class w0 extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends ze{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=e=>{if(e.key==="Escape")return this.handleClose(e)},this.handleClose=e=>{!this.open||e instanceof MouseEvent&&this.noClose||e instanceof MouseEvent&&e.target!==this.overlay||(e.stopPropagation(),this.dispatchEvent(new w0))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=eL(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(e){super.updated(e),this.updateComplete.then(()=>{this.focusTrap&&e.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(e=this.focusTrap)==null||e.deactivate()}handleTransitionEnd(e){e.target===this.overlay&&(this.open=!1)}render(){return F`
2313
+ */function qh(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,o)}return i}function Kh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?qh(Object(i),!0).forEach(function(o){Uz(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):qh(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function Uz(n,e,i){return e=Gz(e),e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function jz(n,e){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Gz(n){var e=jz(n,"string");return typeof e=="symbol"?e:String(e)}var Yh={activateTrap:function(e,i){if(e.length>0){var o=e[e.length-1];o!==i&&o.pause()}var l=e.indexOf(i);l===-1||e.splice(l,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},qz=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Kz=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ya=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Yz=function(e){return ya(e)&&!e.shiftKey},Xz=function(e){return ya(e)&&e.shiftKey},Xh=function(e){return setTimeout(e,0)},Jh=function(e,i){var o=-1;return e.every(function(l,d){return i(l)?(o=d,!1):!0}),o},ha=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},$s=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Jz=[],Qz=function(e,i){var o=(i==null?void 0:i.document)||document,l=(i==null?void 0:i.trapStack)||Jz,d=Kh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Yz,isKeyBackward:Xz},i),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,m=function(V,O,x){return V&&V[O]!==void 0?V[O]:d[x||O]},b=function(V,O){var x=typeof(O==null?void 0:O.composedPath)=="function"?O.composedPath():void 0;return u.containerGroups.findIndex(function(w){var U=w.container,ne=w.tabbableNodes;return U.contains(V)||(x==null?void 0:x.includes(U))||ne.find(function(ye){return ye===V})})},M=function(V){var O=d[V];if(typeof O=="function"){for(var x=arguments.length,w=new Array(x>1?x-1:0),U=1;U<x;U++)w[U-1]=arguments[U];O=O.apply(void 0,w)}if(O===!0&&(O=void 0),!O){if(O===void 0||O===!1)return O;throw new Error("`".concat(V,"` was specified but was not a node, or did not return a node"))}var ne=O;if(typeof O=="string"&&(ne=o.querySelector(O),!ne))throw new Error("`".concat(V,"` as selector refers to no known node"));return ne},L=function(){var V=M("initialFocus");if(V===!1)return!1;if(V===void 0||!lc(V,d.tabbableOptions))if(b(o.activeElement)>=0)V=o.activeElement;else{var O=u.tabbableGroups[0],x=O&&O.firstTabbableNode;V=x||M("fallbackFocus")}if(!V)throw new Error("Your focus-trap needs to have at least one focusable element");return V},T=function(){if(u.containerGroups=u.containers.map(function(V){var O=Vz(V,d.tabbableOptions),x=Zz(V,d.tabbableOptions),w=O.length>0?O[0]:void 0,U=O.length>0?O[O.length-1]:void 0,ne=x.find(function(Re){return Jn(Re)}),ye=x.slice().reverse().find(function(Re){return Jn(Re)}),ke=!!O.find(function(Re){return hn(Re)>0});return{container:V,tabbableNodes:O,focusableNodes:x,posTabIndexesFound:ke,firstTabbableNode:w,lastTabbableNode:U,firstDomTabbableNode:ne,lastDomTabbableNode:ye,nextTabbableNode:function(ot){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ye=O.indexOf(ot);return Ye<0?Et?x.slice(x.indexOf(ot)+1).find(function(Xe){return Jn(Xe)}):x.slice(0,x.indexOf(ot)).reverse().find(function(Xe){return Jn(Xe)}):O[Ye+(Et?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(V){return V.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!M("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(V){return V.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},$=function X(V){var O=V.activeElement;if(O)return O.shadowRoot&&O.shadowRoot.activeElement!==null?X(O.shadowRoot):O},N=function X(V){if(V!==!1&&V!==$(document)){if(!V||!V.focus){X(L());return}V.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=V,qz(V)&&V.select()}},Y=function(V){var O=M("setReturnFocus",V);return O||(O===!1?!1:V)},oe=function(V){var O=V.target,x=V.event,w=V.isBackward,U=w===void 0?!1:w;O=O||$s(x),T();var ne=null;if(u.tabbableGroups.length>0){var ye=b(O,x),ke=ye>=0?u.containerGroups[ye]:void 0;if(ye<0)U?ne=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:ne=u.tabbableGroups[0].firstTabbableNode;else if(U){var Re=Jh(u.tabbableGroups,function(ge){var ve=ge.firstTabbableNode;return O===ve});if(Re<0&&(ke.container===O||lc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O,!1))&&(Re=ye),Re>=0){var ot=Re===0?u.tabbableGroups.length-1:Re-1,Et=u.tabbableGroups[ot];ne=hn(O)>=0?Et.lastTabbableNode:Et.lastDomTabbableNode}else ya(x)||(ne=ke.nextTabbableNode(O,!1))}else{var Ye=Jh(u.tabbableGroups,function(ge){var ve=ge.lastTabbableNode;return O===ve});if(Ye<0&&(ke.container===O||lc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O))&&(Ye=ye),Ye>=0){var Xe=Ye===u.tabbableGroups.length-1?0:Ye+1,Be=u.tabbableGroups[Xe];ne=hn(O)>=0?Be.firstTabbableNode:Be.firstDomTabbableNode}else ya(x)||(ne=ke.nextTabbableNode(O))}}else ne=M("fallbackFocus");return ne},_=function(V){var O=$s(V);if(!(b(O,V)>=0)){if(ha(d.clickOutsideDeactivates,V)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ha(d.allowOutsideClick,V)||V.preventDefault()}},D=function(V){var O=$s(V),x=b(O,V)>=0;if(x||O instanceof Document)x&&(u.mostRecentlyFocusedNode=O);else{V.stopImmediatePropagation();var w,U=!0;if(u.mostRecentlyFocusedNode)if(hn(u.mostRecentlyFocusedNode)>0){var ne=b(u.mostRecentlyFocusedNode),ye=u.containerGroups[ne].tabbableNodes;if(ye.length>0){var ke=ye.findIndex(function(Re){return Re===u.mostRecentlyFocusedNode});ke>=0&&(d.isKeyForward(u.recentNavEvent)?ke+1<ye.length&&(w=ye[ke+1],U=!1):ke-1>=0&&(w=ye[ke-1],U=!1))}}else u.containerGroups.some(function(Re){return Re.tabbableNodes.some(function(ot){return hn(ot)>0})})||(U=!1);else U=!1;U&&(w=oe({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),N(w||u.mostRecentlyFocusedNode||L())}u.recentNavEvent=void 0},A=function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=V;var x=oe({event:V,isBackward:O});x&&(ya(V)&&V.preventDefault(),N(x))},B=function(V){if(Kz(V)&&ha(d.escapeDeactivates,V)!==!1){V.preventDefault(),v.deactivate();return}(d.isKeyForward(V)||d.isKeyBackward(V))&&A(V,d.isKeyBackward(V))},K=function(V){var O=$s(V);b(O,V)>=0||ha(d.clickOutsideDeactivates,V)||ha(d.allowOutsideClick,V)||(V.preventDefault(),V.stopImmediatePropagation())},ue=function(){if(u.active)return Yh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?Xh(function(){N(L())}):N(L()),o.addEventListener("focusin",D,!0),o.addEventListener("mousedown",_,{capture:!0,passive:!1}),o.addEventListener("touchstart",_,{capture:!0,passive:!1}),o.addEventListener("click",K,{capture:!0,passive:!1}),o.addEventListener("keydown",B,{capture:!0,passive:!1}),v},le=function(){if(u.active)return o.removeEventListener("focusin",D,!0),o.removeEventListener("mousedown",_,!0),o.removeEventListener("touchstart",_,!0),o.removeEventListener("click",K,!0),o.removeEventListener("keydown",B,!0),v},me=function(V){var O=V.some(function(x){var w=Array.from(x.removedNodes);return w.some(function(U){return U===u.mostRecentlyFocusedNode})});O&&N(L())},Me=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(me):void 0,ie=function(){Me&&(Me.disconnect(),u.active&&!u.paused&&u.containers.map(function(V){Me.observe(V,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(V){if(u.active)return this;var O=m(V,"onActivate"),x=m(V,"onPostActivate"),w=m(V,"checkCanFocusTrap");w||T(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,O==null||O();var U=function(){w&&T(),ue(),ie(),x==null||x()};return w?(w(u.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(V){if(!u.active)return this;var O=Kh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},V);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,le(),u.active=!1,u.paused=!1,ie(),Yh.deactivateTrap(l,v);var x=m(O,"onDeactivate"),w=m(O,"onPostDeactivate"),U=m(O,"checkCanReturnFocus"),ne=m(O,"returnFocus","returnFocusOnDeactivate");x==null||x();var ye=function(){Xh(function(){ne&&N(Y(u.nodeFocusedBeforeActivation)),w==null||w()})};return ne&&U?(U(Y(u.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(V){if(u.paused||!u.active)return this;var O=m(V,"onPause"),x=m(V,"onPostPause");return u.paused=!0,O==null||O(),le(),ie(),x==null||x(),this},unpause:function(V){if(!u.paused||!u.active)return this;var O=m(V,"onUnpause"),x=m(V,"onPostUnpause");return u.paused=!1,O==null||O(),T(),ue(),ie(),x==null||x(),this},updateContainerElements:function(V){var O=[].concat(V).filter(Boolean);return u.containers=O.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&T(),ie(),this}},v.updateContainerElements(e),v},eL=Object.defineProperty,tL=Object.getOwnPropertyDescriptor,Ln=(n,e,i,o)=>{for(var l=o>1?void 0:o?tL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&eL(e,i,l),l};const Lp=ce("modal"),rL=["small","medium","large","x-large","full-page"];class C0 extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends ze{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=e=>{if(e.key==="Escape")return this.handleClose(e)},this.handleClose=e=>{!this.open||e instanceof MouseEvent&&this.noClose||e instanceof MouseEvent&&e.target!==this.overlay||(e.stopPropagation(),this.dispatchEvent(new C0))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=Qz(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(e){super.updated(e),this.updateComplete.then(()=>{this.focusTrap&&e.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(e=this.focusTrap)==null||e.deactivate()}handleTransitionEnd(e){e.target===this.overlay&&(this.open=!1)}render(){return F`
2314
2314
  <brz-fade-in-out ?shown=${this.open}>
2315
2315
  <div
2316
2316
  id="overlay"
@@ -2412,7 +2412,7 @@
2412
2412
  ::slotted(sp-modal-body:first-child) {
2413
2413
  padding-top: var(--brz-spacing-10);
2414
2414
  }
2415
- `;Ln([E({type:String})],exports.Modal.prototype,"size",2);Ln([E({type:Boolean})],exports.Modal.prototype,"open",2);Ln([E({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Ln([Ce()],exports.Modal.prototype,"focusTrap",2);Ln([Ir("#overlay")],exports.Modal.prototype,"overlay",2);Ln([Ir(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=Ln([W(Mp)],exports.Modal);var nL=Object.defineProperty,oL=Object.getOwnPropertyDescriptor,ei=(n,e,i,o)=>{for(var l=o>1?void 0:o?oL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nL(e,i,l),l};const Tp=ce("split-row"),kp=ce("action-bar");exports.SplitRow=class extends ze{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return F`
2415
+ `;Ln([E({type:String})],exports.Modal.prototype,"size",2);Ln([E({type:Boolean})],exports.Modal.prototype,"open",2);Ln([E({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Ln([Ce()],exports.Modal.prototype,"focusTrap",2);Ln([Ir("#overlay")],exports.Modal.prototype,"overlay",2);Ln([Ir(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=Ln([W(Lp)],exports.Modal);var iL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,ei=(n,e,i,o)=>{for(var l=o>1?void 0:o?nL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&iL(e,i,l),l};const Sp=ce("split-row"),Mp=ce("action-bar");exports.SplitRow=class extends ze{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return F`
2416
2416
  <brz-row vertical-align=${this.verticalAlign}>
2417
2417
  <div class="left">
2418
2418
  <slot name="left"></slot>
@@ -2451,7 +2451,7 @@
2451
2451
  :host([right-expand]) .right {
2452
2452
  flex: 1;
2453
2453
  }
2454
- `;ei([E({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);ei([E({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);ei([E({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);ei([E({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);ei([E({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=ei([W(Tp)],exports.SplitRow);exports.ActionBar=class extends ze{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return F`
2454
+ `;ei([E({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);ei([E({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);ei([E({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);ei([E({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);ei([E({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=ei([W(Sp)],exports.SplitRow);exports.ActionBar=class extends ze{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return F`
2455
2455
  <brz-split-row
2456
2456
  vertical-align="middle"
2457
2457
  ?left-expand=${this.leftExpand}
@@ -2470,7 +2470,7 @@
2470
2470
  :host([no-border]) brz-split-row {
2471
2471
  box-shadow: none;
2472
2472
  }
2473
- `;ei([E({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);ei([E({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);ei([E({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=ei([W(kp)],exports.ActionBar);var aL=Object.defineProperty,sL=Object.getOwnPropertyDescriptor,Nl=(n,e,i,o)=>{for(var l=o>1?void 0:o?sL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&aL(e,i,l),l};const Op=ce("modal-header"),$p=ce("modal-body"),Ep=ce("modal-footer");exports.ModalHeader=class extends ze{get _noClose(){var e;return(e=Sc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new w0)}render(){return F`
2473
+ `;ei([E({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);ei([E({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);ei([E({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=ei([W(Mp)],exports.ActionBar);var oL=Object.defineProperty,aL=Object.getOwnPropertyDescriptor,Nl=(n,e,i,o)=>{for(var l=o>1?void 0:o?aL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&oL(e,i,l),l};const Tp=ce("modal-header"),kp=ce("modal-body"),Op=ce("modal-footer");exports.ModalHeader=class extends ze{get _noClose(){var e;return(e=Lc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new C0)}render(){return F`
2474
2474
  <brz-heading size="xl"><slot></slot></brz-heading>
2475
2475
  ${this._noClose?void 0:F`
2476
2476
  <brz-button
@@ -2499,7 +2499,7 @@
2499
2499
  brz-button.close {
2500
2500
  margin-right: calc(0px - var(--brz-spacing-2));
2501
2501
  }
2502
- `;exports.ModalHeader=Nl([W(Op)],exports.ModalHeader);exports.ModalBody=class extends ze{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return F`<slot></slot>`}};exports.ModalBody.styles=Q`
2502
+ `;exports.ModalHeader=Nl([W(Tp)],exports.ModalHeader);exports.ModalBody=class extends ze{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return F`<slot></slot>`}};exports.ModalBody.styles=Q`
2503
2503
  :host {
2504
2504
  display: block;
2505
2505
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
@@ -2509,7 +2509,7 @@
2509
2509
  :host([scrollable]) {
2510
2510
  border-bottom: 1px solid var(--brz-color-neutral-300);
2511
2511
  }
2512
- `;Nl([E({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Nl([W($p)],exports.ModalBody);exports.ModalFooter=class extends ze{render(){return F`
2512
+ `;Nl([E({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Nl([W(kp)],exports.ModalBody);exports.ModalFooter=class extends ze{render(){return F`
2513
2513
  <brz-split-row vertical-align="middle">
2514
2514
  <slot slot="left" name="left"></slot>
2515
2515
  <slot slot="right" name="right"></slot>
@@ -2519,7 +2519,7 @@
2519
2519
  display: block;
2520
2520
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
2521
2521
  }
2522
- `;exports.ModalFooter=Nl([W(Ep)],exports.ModalFooter);var lL=Object.defineProperty,cL=Object.getOwnPropertyDescriptor,_p=(n,e,i,o)=>{for(var l=o>1?void 0:o?cL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lL(e,i,l),l};const Ip=ce("confirmation-dialog");class Ap extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class Pp extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends ze{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Ap)}handleConfirm(){this.dispatchEvent(new Pp)}render(){return F`<brz-modal size="small" ?open=${this.open} noClose>
2522
+ `;exports.ModalFooter=Nl([W(Op)],exports.ModalFooter);var sL=Object.defineProperty,lL=Object.getOwnPropertyDescriptor,$p=(n,e,i,o)=>{for(var l=o>1?void 0:o?lL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sL(e,i,l),l};const Ep=ce("confirmation-dialog");class _p extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class Ip extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends ze{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new _p)}handleConfirm(){this.dispatchEvent(new Ip)}render(){return F`<brz-modal size="small" ?open=${this.open} noClose>
2523
2523
  <brz-modal-body>
2524
2524
  <slot name="body"></slot>
2525
2525
  </brz-modal-body>
@@ -2533,12 +2533,12 @@
2533
2533
  </brz-button>
2534
2534
  </brz-button-group>
2535
2535
  </brz-modal-footer>
2536
- </brz-modal>`}};_p([E({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=_p([W(Ip)],exports.ConfirmationDialog);var uL=Object.defineProperty,dL=Object.getOwnPropertyDescriptor,x0=(n,e,i,o)=>{for(var l=o>1?void 0:o?dL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uL(e,i,l),l};const Dp=ce("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.tooltipText=""}updated(e){if(super.updated(e),e.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;e.has("trailingIcon")&&e.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return F`
2536
+ </brz-modal>`}};$p([E({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=$p([W(Ep)],exports.ConfirmationDialog);var cL=Object.defineProperty,uL=Object.getOwnPropertyDescriptor,w0=(n,e,i,o)=>{for(var l=o>1?void 0:o?uL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cL(e,i,l),l};const Ap=ce("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.tooltipText=""}updated(e){if(super.updated(e),e.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;e.has("trailingIcon")&&e.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return F`
2537
2537
  <brz-dropdown-menu .size=${this.menuSize}>
2538
2538
  ${super.render()}
2539
2539
  <slot name="options" slot="options"></slot>
2540
2540
  </brz-dropdown-menu>
2541
- `}};x0([E({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);x0([E({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=x0([W(Dp)],exports.DropdownButton);var hL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,Fi=(n,e,i,o)=>{for(var l=o>1?void 0:o?fL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hL(e,i,l),l};const Np=ce("input-checkbox"),Sr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Sr.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case Sr.Checked:this.checked=!1;break;case Sr.Empty:this.checked=!0;break;case Sr.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case Sr.Checked:return F`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Sr.Indeterminate:return F`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Sr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?Sr.Checked:this.indeterminate?Sr.Indeterminate:Sr.Empty;const e=F`
2541
+ `}};w0([E({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);w0([E({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=w0([W(Ap)],exports.DropdownButton);var dL=Object.defineProperty,hL=Object.getOwnPropertyDescriptor,Fi=(n,e,i,o)=>{for(var l=o>1?void 0:o?hL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dL(e,i,l),l};const Pp=ce("input-checkbox"),Sr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Sr.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case Sr.Checked:this.checked=!1;break;case Sr.Empty:this.checked=!0;break;case Sr.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case Sr.Checked:return F`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Sr.Indeterminate:return F`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Sr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?Sr.Checked:this.indeterminate?Sr.Indeterminate:Sr.Empty;const e=F`
2542
2542
  <div class="checkbox-left">
2543
2543
  <div
2544
2544
  class="checkbox"
@@ -2644,7 +2644,7 @@
2644
2644
  position: absolute;
2645
2645
  left: 0;
2646
2646
  }
2647
- `];Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Fi([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Fi([E()],exports.InputCheckbox.prototype,"value",2);Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Fi([Ce()],exports.InputCheckbox.prototype,"checkboxState",2);Fi([Ce()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Fi([W(Np)],exports.InputCheckbox);var pL=Object.defineProperty,gL=Object.getOwnPropertyDescriptor,Da=(n,e,i,o)=>{for(var l=o>1?void 0:o?gL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pL(e,i,l),l};const Hp=ce("input-text");exports.InputText=class extends rr{constructor(){super(...arguments),this.size="medium",this.autocomplete="on"}renderInput(){return F`
2647
+ `];Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Fi([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Fi([E()],exports.InputCheckbox.prototype,"value",2);Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Fi([Ce()],exports.InputCheckbox.prototype,"checkboxState",2);Fi([Ce()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Fi([W(Pp)],exports.InputCheckbox);var fL=Object.defineProperty,pL=Object.getOwnPropertyDescriptor,Da=(n,e,i,o)=>{for(var l=o>1?void 0:o?pL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fL(e,i,l),l};const Dp=ce("input-text");exports.InputText=class extends rr{constructor(){super(...arguments),this.size="medium",this.autocomplete="on"}renderInput(){return F`
2648
2648
  <input
2649
2649
  @input=${this.onInput}
2650
2650
  autocomplete=${this.autocomplete}
@@ -2662,7 +2662,7 @@
2662
2662
  input {
2663
2663
  height: 36px;
2664
2664
  }
2665
- `];Da([E({type:String})],exports.InputText.prototype,"value",2);Da([E({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Da([E({type:String,reflect:!0})],exports.InputText.prototype,"autocomplete",2);Da([E({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Da([W(Hp)],exports.InputText);var vL=Object.defineProperty,bL=Object.getOwnPropertyDescriptor,Na=(n,e,i,o)=>{for(var l=o>1?void 0:o?bL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vL(e,i,l),l};const Rp=ce("input-textarea");exports.InputTextarea=class extends rr{constructor(){super(...arguments),this.size="x-large",this.autocomplete="off"}renderGuide(){var o;if(!this.maxlength)return null;const e=((o=this.value)==null?void 0:o.length)||0,i=F`${e} of ${this.maxlength}`;return e>=this.maxlength?F`<brz-input-error>${i}</brz-input-error>`:F`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var e;return F`
2665
+ `];Da([E({type:String})],exports.InputText.prototype,"value",2);Da([E({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Da([E({type:String,reflect:!0})],exports.InputText.prototype,"autocomplete",2);Da([E({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Da([W(Dp)],exports.InputText);var gL=Object.defineProperty,vL=Object.getOwnPropertyDescriptor,Na=(n,e,i,o)=>{for(var l=o>1?void 0:o?vL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gL(e,i,l),l};const Np=ce("input-textarea");exports.InputTextarea=class extends rr{constructor(){super(...arguments),this.size="x-large",this.autocomplete="off"}renderGuide(){var o;if(!this.maxlength)return null;const e=((o=this.value)==null?void 0:o.length)||0,i=F`${e} of ${this.maxlength}`;return e>=this.maxlength?F`<brz-input-error>${i}</brz-input-error>`:F`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var e;return F`
2666
2666
  <textarea
2667
2667
  @input=${this.onInput}
2668
2668
  autocomplete=${this.autocomplete}
@@ -2679,7 +2679,7 @@
2679
2679
  height: 100px;
2680
2680
  resize: none;
2681
2681
  }
2682
- `];Na([E({type:String})],exports.InputTextarea.prototype,"value",2);Na([E({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Na([E({type:String,reflect:!0})],exports.InputTextarea.prototype,"autocomplete",2);Na([E({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Na([W(Rp)],exports.InputTextarea);var mL=Object.defineProperty,yL=Object.getOwnPropertyDescriptor,mi=(n,e,i,o)=>{for(var l=o>1?void 0:o?yL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mL(e,i,l),l};const Fp=ce("input-number"),CL=Q`
2682
+ `];Na([E({type:String})],exports.InputTextarea.prototype,"value",2);Na([E({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Na([E({type:String,reflect:!0})],exports.InputTextarea.prototype,"autocomplete",2);Na([E({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Na([W(Np)],exports.InputTextarea);var bL=Object.defineProperty,mL=Object.getOwnPropertyDescriptor,mi=(n,e,i,o)=>{for(var l=o>1?void 0:o?mL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&bL(e,i,l),l};const Hp=ce("input-number"),yL=Q`
2683
2683
  /* Chrome, Safari, Edge, Opera */
2684
2684
  input::-webkit-outer-spin-button,
2685
2685
  input::-webkit-inner-spin-button {
@@ -2691,7 +2691,7 @@
2691
2691
  input[type='number'] {
2692
2692
  -moz-appearance: textfield;
2693
2693
  }
2694
- `,Bp=["e","+"],Nc=(n,e,i=!1)=>{const o=i?"-?":"",l=e?"([0-9]{0,"+e+"})":"([0-9]+)?",d=n===0?"":"(.([0-9]{0,"+n+"}))?";return new RegExp("^"+o+l+d+"$")},Vp=n=>Bp.includes(n.toLowerCase()),wL=n=>!!Bp.find(e=>n.toLowerCase().includes(e)),xL=n=>{var i,o;Vp(n.key)&&n.preventDefault();const e=n.target;((i=e==null?void 0:e.value)==null?void 0:i.length)===0&&n.key==="-"&&(e.value=""),((o=e==null?void 0:e.value)==null?void 0:o.length)>0&&n.key==="-"&&n.preventDefault()},zL=(n,e)=>{var u;const i=Nc(e,void 0,!0),{clipboardData:o}=n,l=(u=o==null?void 0:o.getData("text"))==null?void 0:u.toLowerCase();if(!l)return;const d=n.target;(!(d!=null&&d.value)||!i.test(d.value+l)&&i.test(l))&&(d.value=""),(Vp(l)||wL(l)||!i.test(l))&&(n.stopPropagation(),n.preventDefault())};exports.InputNumber=class extends rr{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var e;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleDecrease(){var e;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleSteppedChange(e){this.value=e,this.dispatchChange()}onInput(e){var o;const i=typeof e.target.value=="string"?parseFloat(e.target.value):e.target.value;if(e.target.value===""||e.target.value==="-"){super.onInput({target:{value:i}});return}if(this.allowValueUpdate(i)){const l=this.decimalPlaces?parseFloat(Number(i).toFixed(this.decimalPlaces)):i;super.onInput({target:{value:l}})}else e.target.value=(o=this.value)!=null?o:"0"}allowValueUpdate(e){const i=this.max?parseInt(this.max.toString()).toString().length:void 0,o=this.min?parseInt(this.min.toString()).toString().length:void 0,l=e<0,d=l?!0:Nc(this.decimalPlaces,i).test(e.toString()),u=l?Nc(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,m=this.max?e<=this.max:!0;return!!(d&&u&&v&&m)}handleKeyDown(e){xL(e)}handlePaste(e){zL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:F`
2694
+ `,Rp=["e","+"],Dc=(n,e,i=!1)=>{const o=i?"-?":"",l=e?"([0-9]{0,"+e+"})":"([0-9]+)?",d=n===0?"":"(.([0-9]{0,"+n+"}))?";return new RegExp("^"+o+l+d+"$")},Fp=n=>Rp.includes(n.toLowerCase()),CL=n=>!!Rp.find(e=>n.toLowerCase().includes(e)),wL=n=>{var i,o;Fp(n.key)&&n.preventDefault();const e=n.target;((i=e==null?void 0:e.value)==null?void 0:i.length)===0&&n.key==="-"&&(e.value=""),((o=e==null?void 0:e.value)==null?void 0:o.length)>0&&n.key==="-"&&n.preventDefault()},xL=(n,e)=>{var u;const i=Dc(e,void 0,!0),{clipboardData:o}=n,l=(u=o==null?void 0:o.getData("text"))==null?void 0:u.toLowerCase();if(!l)return;const d=n.target;(!(d!=null&&d.value)||!i.test(d.value+l)&&i.test(l))&&(d.value=""),(Fp(l)||CL(l)||!i.test(l))&&(n.stopPropagation(),n.preventDefault())};exports.InputNumber=class extends rr{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var e;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleDecrease(){var e;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleSteppedChange(e){this.value=e,this.dispatchChange()}onInput(e){var o;const i=typeof e.target.value=="string"?parseFloat(e.target.value):e.target.value;if(e.target.value===""||e.target.value==="-"){super.onInput({target:{value:i}});return}if(this.allowValueUpdate(i)){const l=this.decimalPlaces?parseFloat(Number(i).toFixed(this.decimalPlaces)):i;super.onInput({target:{value:l}})}else e.target.value=(o=this.value)!=null?o:"0"}allowValueUpdate(e){const i=this.max?parseInt(this.max.toString()).toString().length:void 0,o=this.min?parseInt(this.min.toString()).toString().length:void 0,l=e<0,d=l?!0:Dc(this.decimalPlaces,i).test(e.toString()),u=l?Dc(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,m=this.max?e<=this.max:!0;return!!(d&&u&&v&&m)}handleKeyDown(e){wL(e)}handlePaste(e){xL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:F`
2695
2695
  <div class="stepper-container">
2696
2696
  <button
2697
2697
  @click=${this.handleDecrease}
@@ -2737,7 +2737,7 @@
2737
2737
  max=${He(this.max)}
2738
2738
  decimal-places=${He(this.decimalPlaces)}
2739
2739
  />
2740
- </div>`}};exports.InputNumber.styles=[...rr.styles,CL,Q`
2740
+ </div>`}};exports.InputNumber.styles=[...rr.styles,yL,Q`
2741
2741
  input {
2742
2742
  white-space: nowrap;
2743
2743
  overflow: hidden;
@@ -2807,11 +2807,11 @@
2807
2807
  background-color: var(--input-readonly-background-color);
2808
2808
  border-color: var(--input-readonly-border-color);
2809
2809
  }
2810
- `];mi([E({type:Number})],exports.InputNumber.prototype,"value",2);mi([E({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);mi([E({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);mi([E({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);mi([Ir('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=mi([W(Fp)],exports.InputNumber);/**
2810
+ `];mi([E({type:Number})],exports.InputNumber.prototype,"value",2);mi([E({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);mi([E({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);mi([E({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);mi([Ir('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=mi([W(Hp)],exports.InputNumber);/**
2811
2811
  * @license
2812
2812
  * Copyright 2017 Google LLC
2813
2813
  * SPDX-License-Identifier: BSD-3-Clause
2814
- */class Hc extends xl{constructor(e){if(super(e),this.et=vt,e.type!==Cl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===vt||e==null)return this.ft=void 0,this.et=e;if(e===di)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;const i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Hc.directiveName="unsafeHTML",Hc.resultType=1;const LL=wl(Hc);var SL=Object.defineProperty,ML=Object.getOwnPropertyDescriptor,Sn=(n,e,i,o)=>{for(var l=o>1?void 0:o?ML(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&SL(e,i,l),l};const Zp=ce("input-radio-group"),Wp=ce("input-radio-option"),TL=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(e.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(e){const i=e.target;this.value=i.value,this.dispatchChange()}renderInput(){return F`
2814
+ */class Nc extends xl{constructor(e){if(super(e),this.et=vt,e.type!==Cl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===vt||e==null)return this.ft=void 0,this.et=e;if(e===di)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;const i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Nc.directiveName="unsafeHTML",Nc.resultType=1;const zL=wl(Nc);var LL=Object.defineProperty,SL=Object.getOwnPropertyDescriptor,Sn=(n,e,i,o)=>{for(var l=o>1?void 0:o?SL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&LL(e,i,l),l};const Bp=ce("input-radio-group"),Vp=ce("input-radio-option"),ML=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(e.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(e){const i=e.target;this.value=i.value,this.dispatchChange()}renderInput(){return F`
2815
2815
  <slot
2816
2816
  id="options"
2817
2817
  style="display: none;"
@@ -2830,7 +2830,7 @@
2830
2830
  ?checked=${i}
2831
2831
  ?disabled=${e.disabled||this.disabled}
2832
2832
  />
2833
- <label for=${e.value}>${LL(e.innerHTML)}</label>
2833
+ <label for=${e.value}>${zL(e.innerHTML)}</label>
2834
2834
  </div>
2835
2835
  `})}
2836
2836
  </fieldset>
@@ -2986,31 +2986,31 @@
2986
2986
  input[type='radio'][aria-invalid='true'] + label {
2987
2987
  color: var(--brz-input-radio-invalid-color);
2988
2988
  }
2989
- `];Sn([E({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Sn([E({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Sn([Ce()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Sn([W(Zp)],exports.InputRadio);exports.InputRadioOption=class extends ze{render(){}};Sn([E({type:String})],exports.InputRadioOption.prototype,"value",2);Sn([E({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Sn([W(Wp)],exports.InputRadioOption);var cc={exports:{}},ef;function Pr(){return ef||(ef=1,function(n,e){(function(i,o){n.exports=o()})(va,function(){var i=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(i),d=/MSIE \d/.test(i),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),v=/Edge\/(\d+)/.exec(i),m=d||u||v,b=m&&(d?document.documentMode||6:+(v||u)[1]),M=!v&&/WebKit\//.test(i),L=M&&/Qt\/\d+\.\d+/.test(i),T=!v&&/Chrome\//.test(i),$=/Opera\//.test(i),N=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),oe=/PhantomJS/.test(i),_=N&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),D=/Android/.test(i),A=_||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),B=_||/Mac/.test(o),K=/\bCrOS\b/.test(i),ue=/win/i.test(o),le=$&&i.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&($=!1,M=!0);var me=B&&(L||$&&(le==null||le<12.11)),Me=l||m&&b>=9;function ie(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var X=function(t,r){var s=t.className,a=ie(r).exec(s);if(a){var c=s.slice(a.index+a[0].length);t.className=s.slice(0,a.index)+(c?a[1]+c:"")}};function V(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function O(t,r){return V(t).appendChild(r)}function x(t,r,s,a){var c=document.createElement(t);if(s&&(c.className=s),a&&(c.style.cssText=a),typeof r=="string")c.appendChild(document.createTextNode(r));else if(r)for(var h=0;h<r.length;++h)c.appendChild(r[h]);return c}function w(t,r,s,a){var c=x(t,r,s,a);return c.setAttribute("role","presentation"),c}var U;document.createRange?U=function(t,r,s,a){var c=document.createRange();return c.setEnd(a||t,s),c.setStart(t,r),c}:U=function(t,r,s){var a=document.body.createTextRange();try{a.moveToElementText(t.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function ne(t,r){if(r.nodeType==3&&(r=r.parentNode),t.contains)return t.contains(r);do if(r.nodeType==11&&(r=r.host),r==t)return!0;while(r=r.parentNode)}function ye(){var t;try{t=document.activeElement}catch{t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function ke(t,r){var s=t.className;ie(r).test(s)||(t.className+=(s?" ":"")+r)}function Re(t,r){for(var s=t.split(" "),a=0;a<s.length;a++)s[a]&&!ie(s[a]).test(r)&&(r+=" "+s[a]);return r}var ot=function(t){t.select()};_?ot=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:m&&(ot=function(t){try{t.select()}catch{}});function Et(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Ye(t,r,s){r||(r={});for(var a in t)t.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=t[a]);return r}function Xe(t,r,s,a,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=a||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=s-f%s,h=p+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};Be.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Be.prototype.set=function(t,r){this.f=r;var s=+new Date+t;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=s)};function ge(t,r){for(var s=0;s<t.length;++s)if(t[s]==r)return s;return-1}var ve=50,Ie={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},Ae={origin:"*mouse"},Te={origin:"+move"};function ht(t,r,s){for(var a=0,c=0;;){var h=t.indexOf(" ",a);h==-1&&(h=t.length);var f=h-a;if(h==t.length||c+f>=r)return a+Math.min(f,r-c);if(c+=h-a,c+=s-c%s,a=h+1,c>=r)return a}}var qt=[""];function ir(t){for(;qt.length<=t;)qt.push(_e(qt)+" ");return qt[t]}function _e(t){return t[t.length-1]}function Ve(t,r){for(var s=[],a=0;a<t.length;a++)s[a]=r(t[a],a);return s}function ct(t,r,s){for(var a=0,c=s(r);a<t.length&&s(t[a])<=c;)a++;t.splice(a,0,r)}function Qe(){}function et(t,r){var s;return Object.create?s=Object.create(t):(Qe.prototype=t,s=new Qe),r&&Ye(r,s),s}var Nr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Nr.test(t))}function H(t,r){return r?r.source.indexOf("\\w")>-1&&Ue(t)?!0:r.test(t):Ue(t)}function re(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var j=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ne(t){return t.charCodeAt(0)>=768&&j.test(t)}function Dt(t,r,s){for(;(s<0?r>0:r<t.length)&&Ne(t.charAt(r));)r+=s;return r}function Hr(t,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var c=(r+s)/2,h=a<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:s;t(h)?s=h:r=h+a}}function Ql(t,r,s,a){if(!t)return a(r,s,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<s&&f.to>r||r==s&&f.to==r)&&(a(Math.max(f.from,r),Math.min(f.to,s),f.level==1?"rtl":"ltr",h),c=!0)}c||a(r,s,"ltr")}var nr=null;function at(t,r,s){var a;nr=null;for(var c=0;c<t.length;++c){var h=t[c];if(h.from<r&&h.to>r)return c;h.to==r&&(h.from!=h.to&&s=="before"?a=c:nr=c),h.from==r&&(h.from!=h.to&&s!="before"?a=c:nr=c)}return a!=null?a:nr}var Wi=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(y){return y<=247?t.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?r.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(y,z,S){this.level=y,this.from=z,this.to=S}return function(y,z){var S=z=="ltr"?"L":"R";if(y.length==0||z=="ltr"&&!a.test(y))return!1;for(var P=y.length,I=[],Z=0;Z<P;++Z)I.push(s(y.charCodeAt(Z)));for(var q=0,te=S;q<P;++q){var ae=I[q];ae=="m"?I[q]=te:te=ae}for(var he=0,se=S;he<P;++he){var pe=I[he];pe=="1"&&se=="r"?I[he]="n":h.test(pe)&&(se=pe,pe=="r"&&(I[he]="R"))}for(var Le=1,xe=I[0];Le<P-1;++Le){var Pe=I[Le];Pe=="+"&&xe=="1"&&I[Le+1]=="1"?I[Le]="1":Pe==","&&xe==I[Le+1]&&(xe=="1"||xe=="n")&&(I[Le]=xe),xe=Pe}for(var Je=0;Je<P;++Je){var Lt=I[Je];if(Lt==",")I[Je]="N";else if(Lt=="%"){var nt=void 0;for(nt=Je+1;nt<P&&I[nt]=="%";++nt);for(var Jt=Je&&I[Je-1]=="!"||nt<P&&I[nt]=="1"?"1":"N",Wt=Je;Wt<nt;++Wt)I[Wt]=Jt;Je=nt-1}}for(var pt=0,Ut=S;pt<P;++pt){var kt=I[pt];Ut=="L"&&kt=="1"?I[pt]="L":h.test(kt)&&(Ut=kt)}for(var mt=0;mt<P;++mt)if(c.test(I[mt])){var gt=void 0;for(gt=mt+1;gt<P&&c.test(I[gt]);++gt);for(var lt=(mt?I[mt-1]:S)=="L",jt=(gt<P?I[gt]:S)=="L",Yn=lt==jt?lt?"L":"R":S,$i=mt;$i<gt;++$i)I[$i]=Yn;mt=gt-1}for(var Pt=[],Gr,St=0;St<P;)if(f.test(I[St])){var Z1=St;for(++St;St<P&&f.test(I[St]);++St);Pt.push(new g(0,Z1,St))}else{var li=St,tn=Pt.length,rn=z=="rtl"?1:0;for(++St;St<P&&I[St]!="L";++St);for(var Ht=li;Ht<St;)if(p.test(I[Ht])){li<Ht&&(Pt.splice(tn,0,new g(1,li,Ht)),tn+=rn);var Xn=Ht;for(++Ht;Ht<St&&p.test(I[Ht]);++Ht);Pt.splice(tn,0,new g(2,Xn,Ht)),tn+=rn,li=Ht}else++Ht;li<St&&Pt.splice(tn,0,new g(1,li,St))}return z=="ltr"&&(Pt[0].level==1&&(Gr=y.match(/^\s+/))&&(Pt[0].from=Gr[0].length,Pt.unshift(new g(0,0,Gr[0].length))),_e(Pt).level==1&&(Gr=y.match(/\s+$/))&&(_e(Pt).to-=Gr[0].length,Pt.push(new g(0,P-Gr[0].length,P)))),z=="rtl"?Pt.reverse():Pt}}();function Kt(t,r){var s=t.order;return s==null&&(s=t.order=Wi(t.text,r)),s}var ri=[],Se=function(t,r,s){if(t.addEventListener)t.addEventListener(r,s,!1);else if(t.attachEvent)t.attachEvent("on"+r,s);else{var a=t._handlers||(t._handlers={});a[r]=(a[r]||ri).concat(s)}};function Tn(t,r){return t._handlers&&t._handlers[r]||ri}function Ft(t,r,s){if(t.removeEventListener)t.removeEventListener(r,s,!1);else if(t.detachEvent)t.detachEvent("on"+r,s);else{var a=t._handlers,c=a&&a[r];if(c){var h=ge(c,s);h>-1&&(a[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function Oe(t,r){var s=Tn(t,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c<s.length;++c)s[c].apply(null,a)}function ft(t,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),Oe(t,s||r.type,t,r),or(r)||r.codemirrorIgnore}function kn(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var s=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)ge(s,r[a])==-1&&s.push(r[a])}function Tt(t,r){return Tn(t,r).length>0}function Rr(t){t.prototype.on=function(r,s){Se(this,r,s)},t.prototype.off=function(r,s){Ft(this,r,s)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function On(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function or(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ui(t){_t(t),On(t)}function Ci(t){return t.target||t.srcElement}function qa(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),B&&t.ctrlKey&&r==1&&(r=3),r}var Mo=function(){if(m&&b<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Bt;function Ka(t){if(Bt==null){var r=x("span","​");O(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Bt=r.offsetWidth<=1&&r.offsetHeight>2&&!(m&&b<8))}var s=Bt?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var To;function Fr(t){if(To!=null)return To;var r=O(t,document.createTextNode("AخA")),s=U(r,0,1).getBoundingClientRect(),a=U(r,1,2).getBoundingClientRect();return V(t),!s||s.left==s.right?!1:To=a.right-s.right<3}var ko=`
2989
+ `];Sn([E({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Sn([E({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Sn([Ce()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Sn([W(Bp)],exports.InputRadio);exports.InputRadioOption=class extends ze{render(){}};Sn([E({type:String})],exports.InputRadioOption.prototype,"value",2);Sn([E({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Sn([W(Vp)],exports.InputRadioOption);var Zp={exports:{}};(function(n,e){(function(i,o){n.exports=o()})(va,function(){var i=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(i),d=/MSIE \d/.test(i),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),v=/Edge\/(\d+)/.exec(i),m=d||u||v,b=m&&(d?document.documentMode||6:+(v||u)[1]),M=!v&&/WebKit\//.test(i),L=M&&/Qt\/\d+\.\d+/.test(i),T=!v&&/Chrome\//.test(i),$=/Opera\//.test(i),N=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),oe=/PhantomJS/.test(i),_=N&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),D=/Android/.test(i),A=_||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),B=_||/Mac/.test(o),K=/\bCrOS\b/.test(i),ue=/win/i.test(o),le=$&&i.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&($=!1,M=!0);var me=B&&(L||$&&(le==null||le<12.11)),Me=l||m&&b>=9;function ie(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var X=function(t,r){var s=t.className,a=ie(r).exec(s);if(a){var c=s.slice(a.index+a[0].length);t.className=s.slice(0,a.index)+(c?a[1]+c:"")}};function V(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function O(t,r){return V(t).appendChild(r)}function x(t,r,s,a){var c=document.createElement(t);if(s&&(c.className=s),a&&(c.style.cssText=a),typeof r=="string")c.appendChild(document.createTextNode(r));else if(r)for(var h=0;h<r.length;++h)c.appendChild(r[h]);return c}function w(t,r,s,a){var c=x(t,r,s,a);return c.setAttribute("role","presentation"),c}var U;document.createRange?U=function(t,r,s,a){var c=document.createRange();return c.setEnd(a||t,s),c.setStart(t,r),c}:U=function(t,r,s){var a=document.body.createTextRange();try{a.moveToElementText(t.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function ne(t,r){if(r.nodeType==3&&(r=r.parentNode),t.contains)return t.contains(r);do if(r.nodeType==11&&(r=r.host),r==t)return!0;while(r=r.parentNode)}function ye(){var t;try{t=document.activeElement}catch{t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function ke(t,r){var s=t.className;ie(r).test(s)||(t.className+=(s?" ":"")+r)}function Re(t,r){for(var s=t.split(" "),a=0;a<s.length;a++)s[a]&&!ie(s[a]).test(r)&&(r+=" "+s[a]);return r}var ot=function(t){t.select()};_?ot=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:m&&(ot=function(t){try{t.select()}catch{}});function Et(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Ye(t,r,s){r||(r={});for(var a in t)t.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=t[a]);return r}function Xe(t,r,s,a,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=a||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=s-f%s,h=p+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};Be.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Be.prototype.set=function(t,r){this.f=r;var s=+new Date+t;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=s)};function ge(t,r){for(var s=0;s<t.length;++s)if(t[s]==r)return s;return-1}var ve=50,Ie={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},Ae={origin:"*mouse"},Te={origin:"+move"};function ht(t,r,s){for(var a=0,c=0;;){var h=t.indexOf(" ",a);h==-1&&(h=t.length);var f=h-a;if(h==t.length||c+f>=r)return a+Math.min(f,r-c);if(c+=h-a,c+=s-c%s,a=h+1,c>=r)return a}}var qt=[""];function ir(t){for(;qt.length<=t;)qt.push(_e(qt)+" ");return qt[t]}function _e(t){return t[t.length-1]}function Ve(t,r){for(var s=[],a=0;a<t.length;a++)s[a]=r(t[a],a);return s}function ct(t,r,s){for(var a=0,c=s(r);a<t.length&&s(t[a])<=c;)a++;t.splice(a,0,r)}function Qe(){}function et(t,r){var s;return Object.create?s=Object.create(t):(Qe.prototype=t,s=new Qe),r&&Ye(r,s),s}var Nr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Nr.test(t))}function H(t,r){return r?r.source.indexOf("\\w")>-1&&Ue(t)?!0:r.test(t):Ue(t)}function re(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var j=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ne(t){return t.charCodeAt(0)>=768&&j.test(t)}function Dt(t,r,s){for(;(s<0?r>0:r<t.length)&&Ne(t.charAt(r));)r+=s;return r}function Hr(t,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var c=(r+s)/2,h=a<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:s;t(h)?s=h:r=h+a}}function Ql(t,r,s,a){if(!t)return a(r,s,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<s&&f.to>r||r==s&&f.to==r)&&(a(Math.max(f.from,r),Math.min(f.to,s),f.level==1?"rtl":"ltr",h),c=!0)}c||a(r,s,"ltr")}var nr=null;function at(t,r,s){var a;nr=null;for(var c=0;c<t.length;++c){var h=t[c];if(h.from<r&&h.to>r)return c;h.to==r&&(h.from!=h.to&&s=="before"?a=c:nr=c),h.from==r&&(h.from!=h.to&&s!="before"?a=c:nr=c)}return a!=null?a:nr}var Wi=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(y){return y<=247?t.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?r.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(y,z,S){this.level=y,this.from=z,this.to=S}return function(y,z){var S=z=="ltr"?"L":"R";if(y.length==0||z=="ltr"&&!a.test(y))return!1;for(var P=y.length,I=[],Z=0;Z<P;++Z)I.push(s(y.charCodeAt(Z)));for(var q=0,te=S;q<P;++q){var ae=I[q];ae=="m"?I[q]=te:te=ae}for(var he=0,se=S;he<P;++he){var pe=I[he];pe=="1"&&se=="r"?I[he]="n":h.test(pe)&&(se=pe,pe=="r"&&(I[he]="R"))}for(var Le=1,xe=I[0];Le<P-1;++Le){var Pe=I[Le];Pe=="+"&&xe=="1"&&I[Le+1]=="1"?I[Le]="1":Pe==","&&xe==I[Le+1]&&(xe=="1"||xe=="n")&&(I[Le]=xe),xe=Pe}for(var Je=0;Je<P;++Je){var Lt=I[Je];if(Lt==",")I[Je]="N";else if(Lt=="%"){var nt=void 0;for(nt=Je+1;nt<P&&I[nt]=="%";++nt);for(var Jt=Je&&I[Je-1]=="!"||nt<P&&I[nt]=="1"?"1":"N",Wt=Je;Wt<nt;++Wt)I[Wt]=Jt;Je=nt-1}}for(var pt=0,Ut=S;pt<P;++pt){var kt=I[pt];Ut=="L"&&kt=="1"?I[pt]="L":h.test(kt)&&(Ut=kt)}for(var mt=0;mt<P;++mt)if(c.test(I[mt])){var gt=void 0;for(gt=mt+1;gt<P&&c.test(I[gt]);++gt);for(var lt=(mt?I[mt-1]:S)=="L",jt=(gt<P?I[gt]:S)=="L",Yn=lt==jt?lt?"L":"R":S,$i=mt;$i<gt;++$i)I[$i]=Yn;mt=gt-1}for(var Pt=[],Gr,St=0;St<P;)if(f.test(I[St])){var Z1=St;for(++St;St<P&&f.test(I[St]);++St);Pt.push(new g(0,Z1,St))}else{var li=St,tn=Pt.length,rn=z=="rtl"?1:0;for(++St;St<P&&I[St]!="L";++St);for(var Ht=li;Ht<St;)if(p.test(I[Ht])){li<Ht&&(Pt.splice(tn,0,new g(1,li,Ht)),tn+=rn);var Xn=Ht;for(++Ht;Ht<St&&p.test(I[Ht]);++Ht);Pt.splice(tn,0,new g(2,Xn,Ht)),tn+=rn,li=Ht}else++Ht;li<St&&Pt.splice(tn,0,new g(1,li,St))}return z=="ltr"&&(Pt[0].level==1&&(Gr=y.match(/^\s+/))&&(Pt[0].from=Gr[0].length,Pt.unshift(new g(0,0,Gr[0].length))),_e(Pt).level==1&&(Gr=y.match(/\s+$/))&&(_e(Pt).to-=Gr[0].length,Pt.push(new g(0,P-Gr[0].length,P)))),z=="rtl"?Pt.reverse():Pt}}();function Kt(t,r){var s=t.order;return s==null&&(s=t.order=Wi(t.text,r)),s}var ri=[],Se=function(t,r,s){if(t.addEventListener)t.addEventListener(r,s,!1);else if(t.attachEvent)t.attachEvent("on"+r,s);else{var a=t._handlers||(t._handlers={});a[r]=(a[r]||ri).concat(s)}};function Tn(t,r){return t._handlers&&t._handlers[r]||ri}function Ft(t,r,s){if(t.removeEventListener)t.removeEventListener(r,s,!1);else if(t.detachEvent)t.detachEvent("on"+r,s);else{var a=t._handlers,c=a&&a[r];if(c){var h=ge(c,s);h>-1&&(a[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function Oe(t,r){var s=Tn(t,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c<s.length;++c)s[c].apply(null,a)}function ft(t,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),Oe(t,s||r.type,t,r),or(r)||r.codemirrorIgnore}function kn(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var s=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)ge(s,r[a])==-1&&s.push(r[a])}function Tt(t,r){return Tn(t,r).length>0}function Rr(t){t.prototype.on=function(r,s){Se(this,r,s)},t.prototype.off=function(r,s){Ft(this,r,s)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function On(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function or(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ui(t){_t(t),On(t)}function Ci(t){return t.target||t.srcElement}function qa(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),B&&t.ctrlKey&&r==1&&(r=3),r}var Mo=function(){if(m&&b<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Bt;function Ka(t){if(Bt==null){var r=x("span","​");O(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Bt=r.offsetWidth<=1&&r.offsetHeight>2&&!(m&&b<8))}var s=Bt?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var To;function Fr(t){if(To!=null)return To;var r=O(t,document.createTextNode("AخA")),s=U(r,0,1).getBoundingClientRect(),a=U(r,1,2).getBoundingClientRect();return V(t),!s||s.left==s.right?!1:To=a.right-s.right<3}var ko=`
2990
2990
 
2991
2991
  b`.split(/\n/).length!=3?function(t){for(var r=0,s=[],a=t.length;r<=a;){var c=t.indexOf(`
2992
- `,r);c==-1&&(c=t.length);var h=t.slice(r,t.charAt(c-1)=="\r"?c-1:c),f=h.indexOf("\r");f!=-1?(s.push(h.slice(0,f)),r+=f+1):(s.push(h),r=c+1)}return s}:function(t){return t.split(/\r\n?|\n/)},Ya=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=t?!1:r.compareEndPoints("StartToEnd",r)!=0},Xa=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Oo=null;function wi(t){if(Oo!=null)return Oo;var r=O(t,x("span","x")),s=r.getBoundingClientRect(),a=U(r,0,1).getBoundingClientRect();return Oo=Math.abs(s.left-a.left)>1}var pr={},ar={};function Ja(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),pr[t]=r}function ii(t,r){ar[t]=r}function $n(t){if(typeof t=="string"&&ar.hasOwnProperty(t))t=ar[t];else if(t&&typeof t.name=="string"&&ar.hasOwnProperty(t.name)){var r=ar[t.name];typeof r=="string"&&(r={name:r}),t=et(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $n("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $n("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function En(t,r){r=$n(r);var s=pr[r.name];if(!s)return En(t,"text/plain");var a=s(t,r);if(Cr.hasOwnProperty(r.name)){var c=Cr[r.name];for(var h in c)c.hasOwnProperty(h)&&(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=c[h])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)a[f]=r.modeProps[f];return a}var Cr={};function wr(t,r){var s=Cr.hasOwnProperty(t)?Cr[t]:Cr[t]={};Ye(r,s)}function sr(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var s={};for(var a in r){var c=r[a];c instanceof Array&&(c=c.concat([])),s[a]=c}return s}function $o(t,r){for(var s;t.innerMode&&(s=t.innerMode(r),!(!s||s.mode==t));)r=s.state,t=s.mode;return s||{mode:t,state:r}}function Eo(t,r,s){return t.startState?t.startState(r,s):!0}var st=function(t,r,s){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};st.prototype.eol=function(){return this.pos>=this.string.length},st.prototype.sol=function(){return this.pos==this.lineStart},st.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},st.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},st.prototype.eat=function(t){var r=this.string.charAt(this.pos),s;if(typeof t=="string"?s=r==t:s=r&&(t.test?t.test(r):t(r)),s)return++this.pos,r},st.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},st.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},st.prototype.skipToEnd=function(){this.pos=this.string.length},st.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},st.prototype.backUp=function(t){this.pos-=t},st.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},st.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},st.prototype.match=function(t,r,s){if(typeof t=="string"){var a=function(f){return s?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(a(c)==a(t))return r!==!1&&(this.pos+=t.length),!0}else{var h=this.string.slice(this.pos).match(t);return h&&h.index>0?null:(h&&r!==!1&&(this.pos+=h[0].length),h)}},st.prototype.current=function(){return this.string.slice(this.start,this.pos)},st.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},st.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},st.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function be(t,r){if(r-=t.first,r<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var s=t;!s.lines;)for(var a=0;;++a){var c=s.children[a],h=c.chunkSize();if(r<h){s=c;break}r-=h}return s.lines[r]}function Br(t,r,s){var a=[],c=r.line;return t.iter(r.line,s.line+1,function(h){var f=h.text;c==s.line&&(f=f.slice(0,s.ch)),c==r.line&&(f=f.slice(r.ch)),a.push(f),++c}),a}function _o(t,r,s){var a=[];return t.iter(r,s,function(c){a.push(c.text)}),a}function Yt(t,r){var s=r-t.height;if(s)for(var a=t;a;a=a.parent)a.height+=s}function je(t){if(t.parent==null)return null;for(var r=t.parent,s=ge(r.lines,t),a=r.parent;a;r=a,a=a.parent)for(var c=0;a.children[c]!=r;++c)s+=a.children[c].chunkSize();return s+r.first}function Vr(t,r){var s=t.first;e:do{for(var a=0;a<t.children.length;++a){var c=t.children[a],h=c.height;if(r<h){t=c;continue e}r-=h,s+=c.chunkSize()}return s}while(!t.lines);for(var f=0;f<t.lines.length;++f){var p=t.lines[f],g=p.height;if(r<g)break;r-=g}return s+f}function ji(t,r){return r>=t.first&&r<t.first+t.size}function Io(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function J(t,r,s){if(s===void 0&&(s=null),!(this instanceof J))return new J(t,r,s);this.line=t,this.ch=r,this.sticky=s}function C(t,r){return t.line-r.line||t.ch-r.ch}function k(t,r){return t.sticky==r.sticky&&C(t,r)==0}function G(t){return J(t.line,t.ch)}function ee(t,r){return C(t,r)<0?r:t}function $e(t,r){return C(t,r)<0?t:r}function Fe(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function de(t,r){if(r.line<t.first)return J(t.first,0);var s=t.first+t.size-1;return r.line>s?J(s,be(t,s).text.length):It(r,be(t,r.line).text.length)}function It(t,r){var s=t.ch;return s==null||s>r?J(t.line,r):s<0?J(t.line,0):t}function lr(t,r){for(var s=[],a=0;a<r.length;a++)s[a]=de(t,r[a]);return s}var _n=function(t,r){this.state=t,this.lookAhead=r},Zr=function(t,r,s,a){this.state=r,this.doc=t,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Zr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Zr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Zr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zr.fromSaved=function(t,r,s){return r instanceof _n?new Zr(t,sr(t.mode,r.state),s,r.lookAhead):new Zr(t,sr(t.mode,r),s)},Zr.prototype.save=function(t){var r=t!==!1?sr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _n(r,this.maxLookAhead):r};function F0(t,r,s,a){var c=[t.state.modeGen],h={};j0(t,r.text,t.doc.mode,s,function(y,z){return c.push(y,z)},h,a);for(var f=s.state,p=function(y){s.baseTokens=c;var z=t.state.overlays[y],S=1,P=0;s.state=!0,j0(t,r.text,z.mode,s,function(I,Z){for(var q=S;P<I;){var te=c[S];te>I&&c.splice(S,1,I,c[S+1],te),S+=2,P=Math.min(I,te)}if(Z)if(z.opaque)c.splice(q,S-q,I,"overlay "+Z),S=q+2;else for(;q<S;q+=2){var ae=c[q+1];c[q+1]=(ae?ae+" ":"")+"overlay "+Z}},h),s.state=f,s.baseTokens=null,s.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function B0(t,r,s){if(!r.styles||r.styles[0]!=t.state.modeGen){var a=Ao(t,je(r)),c=r.text.length>t.options.maxHighlightLength&&sr(t.doc.mode,a.state),h=F0(t,r,a);c&&(a.state=c),r.stateAfter=a.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),s===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function Ao(t,r,s){var a=t.doc,c=t.display;if(!a.mode.startState)return new Zr(a,!0,r);var h=X6(t,r,s),f=h>a.first&&be(a,h-1).stateAfter,p=f?Zr.fromSaved(a,f,h):new Zr(a,Eo(a.mode),h);return a.iter(h,r,function(g){e1(t,g.text,p);var y=p.line;g.stateAfter=y==r-1||y%5==0||y>=c.viewFrom&&y<c.viewTo?p.save():null,p.nextLine()}),s&&(a.modeFrontier=p.line),p}function e1(t,r,s,a){var c=t.doc.mode,h=new st(r,t.options.tabSize,s);for(h.start=h.pos=a||0,r==""&&V0(c,s.state);!h.eol();)t1(c,h,s.state),h.start=h.pos}function V0(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var s=$o(t,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function t1(t,r,s,a){for(var c=0;c<10;c++){a&&(a[0]=$o(t,s).mode);var h=t.token(r,s);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var Z0=function(t,r,s){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=s};function W0(t,r,s,a){var c=t.doc,h=c.mode,f;r=de(c,r);var p=be(c,r.line),g=Ao(t,r.line,s),y=new st(p.text,t.options.tabSize,g),z;for(a&&(z=[]);(a||y.pos<r.ch)&&!y.eol();)y.start=y.pos,f=t1(h,y,g.state),a&&z.push(new Z0(y,f,sr(c.mode,g.state)));return a?z:new Z0(y,f,g.state)}function U0(t,r){if(t)for(;;){var s=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;t=t.slice(0,s.index)+t.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return t}function j0(t,r,s,a,c,h,f){var p=s.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,y=null,z=new st(r,t.options.tabSize,a),S,P=t.options.addModeClass&&[null];for(r==""&&U0(V0(s,a.state),h);!z.eol();){if(z.pos>t.options.maxHighlightLength?(p=!1,f&&e1(t,r,a,z.pos),z.pos=r.length,S=null):S=U0(t1(s,z,a.state,P),h),P){var I=P[0].name;I&&(S="m-"+(S?I+" "+S:I))}if(!p||y!=S){for(;g<z.start;)g=Math.min(z.start,g+5e3),c(g,y);y=S}z.start=z.pos}for(;g<z.pos;){var Z=Math.min(z.pos,g+5e3);c(Z,y),g=Z}}function X6(t,r,s){for(var a,c,h=t.doc,f=s?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=be(h,p-1),y=g.stateAfter;if(y&&(!s||p+(y instanceof _n?y.lookAhead:0)<=h.modeFrontier))return p;var z=Xe(g.text,null,t.options.tabSize);(c==null||a>z)&&(c=p-1,a=z)}return c}function J6(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var s=t.first,a=r-1;a>s;a--){var c=be(t,a).stateAfter;if(c&&(!(c instanceof _n)||a+c.lookAhead<r)){s=a+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,s)}}var G0=!1,ni=!1;function Q6(){G0=!0}function e4(){ni=!0}function Qa(t,r,s){this.marker=t,this.from=r,this.to=s}function Po(t,r){if(t)for(var s=0;s<t.length;++s){var a=t[s];if(a.marker==r)return a}}function t4(t,r){for(var s,a=0;a<t.length;++a)t[a]!=r&&(s||(s=[])).push(t[a]);return s}function r4(t,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],a&&a.add(t.markedSpans)),r.marker.attachLine(t)}function i4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);if(p||h.from==r&&f.type=="bookmark"&&(!s||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(a||(a=[])).push(new Qa(f,h.from,g?null:h.to))}}return a}function n4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);if(p||h.from==r&&f.type=="bookmark"&&(!s||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(a||(a=[])).push(new Qa(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return a}function r1(t,r){if(r.full)return null;var s=ji(t,r.from.line)&&be(t,r.from.line).markedSpans,a=ji(t,r.to.line)&&be(t,r.to.line).markedSpans;if(!s&&!a)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=i4(s,c,f),g=n4(a,h,f),y=r.text.length==1,z=_e(r.text).length+(y?c:0);if(p)for(var S=0;S<p.length;++S){var P=p[S];if(P.to==null){var I=Po(g,P.marker);I?y&&(P.to=I.to==null?null:I.to+z):P.to=c}}if(g)for(var Z=0;Z<g.length;++Z){var q=g[Z];if(q.to!=null&&(q.to+=z),q.from==null){var te=Po(p,q.marker);te||(q.from=z,y&&(p||(p=[])).push(q))}else q.from+=z,y&&(p||(p=[])).push(q)}p&&(p=q0(p)),g&&g!=p&&(g=q0(g));var ae=[p];if(!y){var he=r.text.length-2,se;if(he>0&&p)for(var pe=0;pe<p.length;++pe)p[pe].to==null&&(se||(se=[])).push(new Qa(p[pe].marker,null,null));for(var Le=0;Le<he;++Le)ae.push(se);ae.push(g)}return ae}function q0(t){for(var r=0;r<t.length;++r){var s=t[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function o4(t,r,s){var a=null;if(t.iter(r.line,s.line+1,function(I){if(I.markedSpans)for(var Z=0;Z<I.markedSpans.length;++Z){var q=I.markedSpans[Z].marker;q.readOnly&&(!a||ge(a,q)==-1)&&(a||(a=[])).push(q)}}),!a)return null;for(var c=[{from:r,to:s}],h=0;h<a.length;++h)for(var f=a[h],p=f.find(0),g=0;g<c.length;++g){var y=c[g];if(!(C(y.to,p.from)<0||C(y.from,p.to)>0)){var z=[g,1],S=C(y.from,p.from),P=C(y.to,p.to);(S<0||!f.inclusiveLeft&&!S)&&z.push({from:y.from,to:p.from}),(P>0||!f.inclusiveRight&&!P)&&z.push({from:p.to,to:y.to}),c.splice.apply(c,z),g+=z.length-3}}return c}function K0(t){var r=t.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(t);t.markedSpans=null}}function Y0(t,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(t);t.markedSpans=r}}function es(t){return t.inclusiveLeft?-1:0}function ts(t){return t.inclusiveRight?1:0}function i1(t,r){var s=t.lines.length-r.lines.length;if(s!=0)return s;var a=t.find(),c=r.find(),h=C(a.from,c.from)||es(t)-es(r);if(h)return-h;var f=C(a.to,c.to)||ts(t)-ts(r);return f||r.id-t.id}function X0(t,r){var s=ni&&t.markedSpans,a;if(s)for(var c=void 0,h=0;h<s.length;++h)c=s[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!a||i1(a,c.marker)<0)&&(a=c.marker);return a}function J0(t){return X0(t,!0)}function rs(t){return X0(t,!1)}function a4(t,r){var s=ni&&t.markedSpans,a;if(s)for(var c=0;c<s.length;++c){var h=s[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!a||i1(a,h.marker)<0)&&(a=h.marker)}return a}function Q0(t,r,s,a,c){var h=be(t,r),f=ni&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var y=g.marker.find(0),z=C(y.from,s)||es(g.marker)-es(c),S=C(y.to,a)||ts(g.marker)-ts(c);if(!(z>=0&&S<=0||z<=0&&S>=0)&&(z<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(y.to,s)>=0:C(y.to,s)>0)||z>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(y.from,a)<=0:C(y.from,a)<0)))return!0}}}function Wr(t){for(var r;r=J0(t);)t=r.find(-1,!0).line;return t}function s4(t){for(var r;r=rs(t);)t=r.find(1,!0).line;return t}function l4(t){for(var r,s;r=rs(t);)t=r.find(1,!0).line,(s||(s=[])).push(t);return s}function n1(t,r){var s=be(t,r),a=Wr(s);return s==a?r:je(a)}function eu(t,r){if(r>t.lastLine())return r;var s=be(t,r),a;if(!xi(t,s))return r;for(;a=rs(s);)s=a.find(1,!0).line;return je(s)+1}function xi(t,r){var s=ni&&r.markedSpans;if(s){for(var a=void 0,c=0;c<s.length;++c)if(a=s[c],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&o1(t,r,a))return!0}}}function o1(t,r,s){if(s.to==null){var a=s.marker.find(1,!0);return o1(t,a.line,Po(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var c=void 0,h=0;h<r.markedSpans.length;++h)if(c=r.markedSpans[h],c.marker.collapsed&&!c.marker.widgetNode&&c.from==s.to&&(c.to==null||c.to!=s.from)&&(c.marker.inclusiveLeft||s.marker.inclusiveRight)&&o1(t,r,c))return!0}function oi(t){t=Wr(t);for(var r=0,s=t.parent,a=0;a<s.lines.length;++a){var c=s.lines[a];if(c==t)break;r+=c.height}for(var h=s.parent;h;s=h,h=s.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==s)break;r+=p.height}return r}function is(t){if(t.height==0)return 0;for(var r=t.text.length,s,a=t;s=J0(a);){var c=s.find(0,!0);a=c.from.line,r+=c.from.ch-c.to.ch}for(a=t;s=rs(a);){var h=s.find(0,!0);r-=a.text.length-h.from.ch,a=h.to.line,r+=a.text.length-h.to.ch}return r}function a1(t){var r=t.display,s=t.doc;r.maxLine=be(s,s.first),r.maxLineLength=is(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var c=is(a);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=a)})}var In=function(t,r,s){this.text=t,Y0(this,r),this.height=s?s(this):1};In.prototype.lineNo=function(){return je(this)},Rr(In);function c4(t,r,s,a){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),K0(t),Y0(t,s);var c=a?a(t):1;c!=t.height&&Yt(t,c)}function u4(t){t.parent=null,K0(t)}var d4={},h4={};function tu(t,r){if(!t||/^\s*$/.test(t))return null;var s=r.addModeClass?h4:d4;return s[t]||(s[t]=t.replace(/\S+/g,"cm-$&"))}function ru(t,r){var s=w("span",null,null,M?"padding-right: .1px":null),a={pre:w("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var c=0;c<=(r.rest?r.rest.length:0);c++){var h=c?r.rest[c-1]:r.line,f=void 0;a.pos=0,a.addToken=p4,Fr(t.display.measure)&&(f=Kt(h,t.doc.direction))&&(a.addToken=v4(a.addToken,f)),a.map=[];var p=r!=t.display.externalMeasured&&je(h);b4(h,a,B0(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=Re(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=Re(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Ka(t.display.measure))),c==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(M){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Oe(t,"renderLine",t,r.line,a.pre),a.pre.className&&(a.textClass=Re(a.pre.className,a.textClass||"")),a}function f4(t){var r=x("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function p4(t,r,s,a,c,h,f){if(r){var p=t.splitSpaces?g4(r,t.trailingSpace):r,g=t.cm.state.specialChars,y=!1,z;if(!g.test(r))t.col+=r.length,z=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,z),m&&b<9&&(y=!0),t.pos+=r.length;else{z=document.createDocumentFragment();for(var S=0;;){g.lastIndex=S;var P=g.exec(r),I=P?P.index-S:r.length-S;if(I){var Z=document.createTextNode(p.slice(S,S+I));m&&b<9?z.appendChild(x("span",[Z])):z.appendChild(Z),t.map.push(t.pos,t.pos+I,Z),t.col+=I,t.pos+=I}if(!P)break;S+=I+1;var q=void 0;if(P[0]==" "){var te=t.cm.options.tabSize,ae=te-t.col%te;q=z.appendChild(x("span",ir(ae),"cm-tab")),q.setAttribute("role","presentation"),q.setAttribute("cm-text"," "),t.col+=ae}else P[0]=="\r"||P[0]==`
2993
- `?(q=z.appendChild(x("span",P[0]=="\r"?"␍":"␤","cm-invalidchar")),q.setAttribute("cm-text",P[0]),t.col+=1):(q=t.cm.options.specialCharPlaceholder(P[0]),q.setAttribute("cm-text",P[0]),m&&b<9?z.appendChild(x("span",[q])):z.appendChild(q),t.col+=1);t.map.push(t.pos,t.pos+1,q),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,s||a||c||y||h||f){var he=s||"";a&&(he+=a),c&&(he+=c);var se=x("span",[z],he,h);if(f)for(var pe in f)f.hasOwnProperty(pe)&&pe!="style"&&pe!="class"&&se.setAttribute(pe,f[pe]);return t.content.appendChild(se)}t.content.appendChild(z)}}function g4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var s=r,a="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&s&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),a+=h,s=h==" "}return a}function v4(t,r){return function(s,a,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var y=s.pos,z=y+a.length;;){for(var S=void 0,P=0;P<r.length&&(S=r[P],!(S.to>y&&S.from<=y));P++);if(S.to>=z)return t(s,a,c,h,f,p,g);t(s,a.slice(0,S.to-y),c,h,null,p,g),h=null,a=a.slice(S.to-y),y=S.to}}}function iu(t,r,s,a){var c=!a&&s.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!a&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",s.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function b4(t,r,s){var a=t.markedSpans,c=t.text,h=0;if(!a){for(var f=1;f<s.length;f+=2)r.addToken(r,c.slice(h,h=s[f]),tu(s[f+1],r.cm.options));return}for(var p=c.length,g=0,y=1,z="",S,P,I=0,Z,q,te,ae,he;;){if(I==g){Z=q=te=P="",he=null,ae=null,I=1/0;for(var se=[],pe=void 0,Le=0;Le<a.length;++Le){var xe=a[Le],Pe=xe.marker;if(Pe.type=="bookmark"&&xe.from==g&&Pe.widgetNode)se.push(Pe);else if(xe.from<=g&&(xe.to==null||xe.to>g||Pe.collapsed&&xe.to==g&&xe.from==g)){if(xe.to!=null&&xe.to!=g&&I>xe.to&&(I=xe.to,q=""),Pe.className&&(Z+=" "+Pe.className),Pe.css&&(P=(P?P+";":"")+Pe.css),Pe.startStyle&&xe.from==g&&(te+=" "+Pe.startStyle),Pe.endStyle&&xe.to==I&&(pe||(pe=[])).push(Pe.endStyle,xe.to),Pe.title&&((he||(he={})).title=Pe.title),Pe.attributes)for(var Je in Pe.attributes)(he||(he={}))[Je]=Pe.attributes[Je];Pe.collapsed&&(!ae||i1(ae.marker,Pe)<0)&&(ae=xe)}else xe.from>g&&I>xe.from&&(I=xe.from)}if(pe)for(var Lt=0;Lt<pe.length;Lt+=2)pe[Lt+1]==I&&(q+=" "+pe[Lt]);if(!ae||ae.from==g)for(var nt=0;nt<se.length;++nt)iu(r,0,se[nt]);if(ae&&(ae.from||0)==g){if(iu(r,(ae.to==null?p+1:ae.to)-g,ae.marker,ae.from==null),ae.to==null)return;ae.to==g&&(ae=!1)}}if(g>=p)break;for(var Jt=Math.min(p,I);;){if(z){var Wt=g+z.length;if(!ae){var pt=Wt>Jt?z.slice(0,Jt-g):z;r.addToken(r,pt,S?S+Z:Z,te,g+pt.length==I?q:"",P,he)}if(Wt>=Jt){z=z.slice(Jt-g),g=Jt;break}g=Wt,te=""}z=c.slice(h,h=s[y++]),S=tu(s[y++],r.cm.options)}}}function nu(t,r,s){this.line=r,this.rest=l4(r),this.size=this.rest?je(_e(this.rest))-s+1:1,this.node=this.text=null,this.hidden=xi(t,r)}function ns(t,r,s){for(var a=[],c,h=r;h<s;h=c){var f=new nu(t.doc,be(t.doc,h),h);c=h+f.size,a.push(f)}return a}var An=null;function m4(t){An?An.ops.push(t):t.ownsGroup=An={ops:[t],delayedCallbacks:[]}}function y4(t){var r=t.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<t.ops.length;a++){var c=t.ops[a];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(s<r.length)}function C4(t,r){var s=t.ownsGroup;if(s)try{y4(s)}finally{An=null,r(s)}}var Do=null;function wt(t,r){var s=Tn(t,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),c;An?c=An.delayedCallbacks:Do?c=Do:(c=Do=[],setTimeout(w4,0));for(var h=function(p){c.push(function(){return s[p].apply(null,a)})},f=0;f<s.length;++f)h(f)}}function w4(){var t=Do;Do=null;for(var r=0;r<t.length;++r)t[r]()}function ou(t,r,s,a){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?z4(t,r):h=="gutter"?su(t,r,s,a):h=="class"?s1(t,r):h=="widget"&&L4(t,r,a)}r.changes=null}function No(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),m&&b<8&&(t.node.style.zIndex=2)),t.node}function x4(t,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=No(r);r.background=a.insertBefore(x("div",null,s),a.firstChild),t.display.input.setUneditable(r.background)}}function au(t,r){var s=t.display.externalMeasured;return s&&s.line==r.line?(t.display.externalMeasured=null,r.measure=s.measure,s.built):ru(t,r)}function z4(t,r){var s=r.text.className,a=au(t,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,s1(t,r)):s&&(r.text.className=s)}function s1(t,r){x4(t,r),r.line.wrapClass?No(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function su(t,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var c=No(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),c.insertBefore(r.gutterBackground,r.text)}var h=r.line.gutterMarkers;if(t.options.lineNumbers||h){var f=No(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(p.setAttribute("aria-hidden","true"),t.display.input.setUneditable(p),f.insertBefore(p,r.text),r.line.gutterClass&&(p.className+=" "+r.line.gutterClass),t.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(r.lineNumber=p.appendChild(x("div",Io(t.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var y=t.display.gutterSpecs[g].className,z=h.hasOwnProperty(y)&&h[y];z&&p.appendChild(x("div",[z],"CodeMirror-gutter-elt","left: "+a.gutterLeft[y]+"px; width: "+a.gutterWidth[y]+"px"))}}}function L4(t,r,s){r.alignable&&(r.alignable=null);for(var a=ie("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,a.test(c.className)&&r.node.removeChild(c);lu(t,r,s)}function S4(t,r,s,a){var c=au(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),s1(t,r),su(t,r,s,a),lu(t,r,a),r.node}function lu(t,r,s){if(cu(t,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)cu(t,r.rest[a],r,s,!1)}function cu(t,r,s,a,c){if(r.widgets)for(var h=No(s),f=0,p=r.widgets;f<p.length;++f){var g=p[f],y=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||y.setAttribute("cm-ignore-events","true"),M4(g,y,s,a),t.display.input.setUneditable(y),c&&g.above?h.insertBefore(y,s.gutter||s.text):h.appendChild(y),wt(g,"redraw")}}function M4(t,r,s,a){if(t.noHScroll){(s.alignable||(s.alignable=[])).push(r);var c=a.wrapperWidth;r.style.left=a.fixedPos+"px",t.coverGutter||(c-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function Ho(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!ne(document.body,t.node)){var s="position: relative;";t.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),O(r.display.measure,x("div",[t.node],null,s))}return t.height=t.node.parentNode.offsetHeight}function ai(t,r){for(var s=Ci(r);s!=t.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==t.sizer&&s!=t.mover)return!0}function os(t){return t.lineSpace.offsetTop}function l1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function uu(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=O(t.measure,x("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(t.cachedPaddingH=a),a}function Ur(t){return ve-t.display.nativeBarWidth}function Gi(t){return t.display.scroller.clientWidth-Ur(t)-t.display.barWidth}function c1(t){return t.display.scroller.clientHeight-Ur(t)-t.display.barHeight}function T4(t,r,s){var a=t.options.lineWrapping,c=a&&Gi(t);if(!r.measure.heights||a&&r.measure.width!=c){var h=r.measure.heights=[];if(a){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],y=f[p+1];Math.abs(g.bottom-y.bottom)>2&&h.push((g.bottom+y.top)/2-s.top)}}h.push(s.bottom-s.top)}}function du(t,r,s){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var a=0;a<t.rest.length;a++)if(t.rest[a]==r)return{map:t.measure.maps[a],cache:t.measure.caches[a]};for(var c=0;c<t.rest.length;c++)if(je(t.rest[c])>s)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function k4(t,r){r=Wr(r);var s=je(r),a=t.display.externalMeasured=new nu(t.doc,r,s);a.lineN=s;var c=a.built=ru(t,a);return a.text=c.pre,O(t.display.lineMeasure,c.pre),a}function hu(t,r,s,a){return jr(t,Pn(t,r),s,a)}function u1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[Yi(t,r)];var s=t.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Pn(t,r){var s=je(r),a=u1(t,s);a&&!a.text?a=null:a&&a.changes&&(ou(t,a,s,g1(t)),t.curOp.forceUpdate=!0),a||(a=k4(t,r));var c=du(a,r,s);return{line:r,view:a,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function jr(t,r,s,a,c){r.before&&(s=-1);var h=s+(a||""),f;return r.cache.hasOwnProperty(h)?f=r.cache[h]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(T4(t,r.view,r.rect),r.hasHeights=!0),f=$4(t,r,s,a),f.bogus||(r.cache[h]=f)),{left:f.left,right:f.right,top:c?f.rtop:f.top,bottom:c?f.rbottom:f.bottom}}var fu={left:0,right:0,top:0,bottom:0};function pu(t,r,s){for(var a,c,h,f,p,g,y=0;y<t.length;y+=3)if(p=t[y],g=t[y+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(y==t.length-3||r==g&&t[y+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(a=t[y+2],p==g&&s==(a.insertLeft?"left":"right")&&(f=s),s=="left"&&c==0)for(;y&&t[y-2]==t[y-3]&&t[y-1].insertLeft;)a=t[(y-=3)+2],f="left";if(s=="right"&&c==g-p)for(;y<t.length-3&&t[y+3]==t[y+4]&&!t[y+5].insertLeft;)a=t[(y+=3)+2],f="right";break}return{node:a,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function O4(t,r){var s=fu;if(r=="left")for(var a=0;a<t.length&&(s=t[a]).left==s.right;a++);else for(var c=t.length-1;c>=0&&(s=t[c]).left==s.right;c--);return s}function $4(t,r,s,a){var c=pu(r.map,s,a),h=c.node,f=c.start,p=c.end,g=c.collapse,y;if(h.nodeType==3){for(var z=0;z<4;z++){for(;f&&Ne(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&Ne(r.line.text.charAt(c.coverStart+p));)++p;if(m&&b<9&&f==0&&p==c.coverEnd-c.coverStart?y=h.parentNode.getBoundingClientRect():y=O4(U(h,f,p).getClientRects(),a),y.left||y.right||f==0)break;p=f,f=f-1,g="right"}m&&b<11&&(y=E4(t.display.measure,y))}else{f>0&&(g=a="right");var S;t.options.lineWrapping&&(S=h.getClientRects()).length>1?y=S[a=="right"?S.length-1:0]:y=h.getBoundingClientRect()}if(m&&b<9&&!f&&(!y||!y.left&&!y.right)){var P=h.parentNode.getClientRects()[0];P?y={left:P.left,right:P.left+Nn(t.display),top:P.top,bottom:P.bottom}:y=fu}for(var I=y.top-r.rect.top,Z=y.bottom-r.rect.top,q=(I+Z)/2,te=r.view.measure.heights,ae=0;ae<te.length-1&&!(q<te[ae]);ae++);var he=ae?te[ae-1]:0,se=te[ae],pe={left:(g=="right"?y.right:y.left)-r.rect.left,right:(g=="left"?y.left:y.right)-r.rect.left,top:he,bottom:se};return!y.left&&!y.right&&(pe.bogus=!0),t.options.singleCursorHeightPerLine||(pe.rtop=I,pe.rbottom=Z),pe}function E4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wi(t))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function gu(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function vu(t){t.display.externalMeasure=null,V(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)gu(t.display.view[r])}function Ro(t){vu(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function bu(){return T&&D?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function mu(){return T&&D?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function d1(t){var r=0;if(t.widgets)for(var s=0;s<t.widgets.length;++s)t.widgets[s].above&&(r+=Ho(t.widgets[s]));return r}function as(t,r,s,a,c){if(!c){var h=d1(r);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var f=oi(r);if(a=="local"?f+=os(t.display):f-=t.display.viewOffset,a=="page"||a=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(a=="window"?0:mu());var g=p.left+(a=="window"?0:bu());s.left+=g,s.right+=g}return s.top+=f,s.bottom+=f,s}function yu(t,r,s){if(s=="div")return r;var a=r.left,c=r.top;if(s=="page")a-=bu(),c-=mu();else if(s=="local"||!s){var h=t.display.sizer.getBoundingClientRect();a+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:a-f.left,top:c-f.top}}function ss(t,r,s,a,c){return a||(a=be(t.doc,r.line)),as(t,a,hu(t,a,r.ch,c),s)}function xr(t,r,s,a,c,h){a=a||be(t.doc,r.line),c||(c=Pn(t,a));function f(Z,q){var te=jr(t,c,Z,q?"right":"left",h);return q?te.left=te.right:te.right=te.left,as(t,a,te,s)}var p=Kt(a,t.doc.direction),g=r.ch,y=r.sticky;if(g>=a.text.length?(g=a.text.length,y="before"):g<=0&&(g=0,y="after"),!p)return f(y=="before"?g-1:g,y=="before");function z(Z,q,te){var ae=p[q],he=ae.level==1;return f(te?Z-1:Z,he!=te)}var S=at(p,g,y),P=nr,I=z(g,S,y=="before");return P!=null&&(I.other=z(g,P,y!="before")),I}function Cu(t,r){var s=0;r=de(t.doc,r),t.options.lineWrapping||(s=Nn(t.display)*r.ch);var a=be(t.doc,r.line),c=oi(a)+os(t.display);return{left:s,right:s,top:c,bottom:c+a.height}}function h1(t,r,s,a,c){var h=J(t,r,s);return h.xRel=c,a&&(h.outside=a),h}function f1(t,r,s){var a=t.doc;if(s+=t.display.viewOffset,s<0)return h1(a.first,0,null,-1,-1);var c=Vr(a,s),h=a.first+a.size-1;if(c>h)return h1(a.first+a.size-1,be(a,h).text.length,null,1,1);r<0&&(r=0);for(var f=be(a,c);;){var p=_4(t,f,c,r,s),g=a4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var y=g.find(1);if(y.line==c)return y;f=be(a,c=y.line)}}function wu(t,r,s,a){a-=d1(r);var c=r.text.length,h=Hr(function(f){return jr(t,s,f-1).bottom<=a},c,0);return c=Hr(function(f){return jr(t,s,f).top>a},h,c),{begin:h,end:c}}function xu(t,r,s,a){s||(s=Pn(t,r));var c=as(t,r,jr(t,s,a),"line").top;return wu(t,r,s,c)}function p1(t,r,s,a){return t.bottom<=s?!1:t.top>s?!0:(a?t.left:t.right)>r}function _4(t,r,s,a,c){c-=oi(r);var h=Pn(t,r),f=d1(r),p=0,g=r.text.length,y=!0,z=Kt(r,t.doc.direction);if(z){var S=(t.options.lineWrapping?A4:I4)(t,r,s,h,z,a,c);y=S.level!=1,p=y?S.from:S.to-1,g=y?S.to:S.from-1}var P=null,I=null,Z=Hr(function(Le){var xe=jr(t,h,Le);return xe.top+=f,xe.bottom+=f,p1(xe,a,c,!1)?(xe.top<=c&&xe.left<=a&&(P=Le,I=xe),!0):!1},p,g),q,te,ae=!1;if(I){var he=a-I.left<I.right-a,se=he==y;Z=P+(se?0:1),te=se?"after":"before",q=he?I.left:I.right}else{!y&&(Z==g||Z==p)&&Z++,te=Z==0?"after":Z==r.text.length?"before":jr(t,h,Z-(y?1:0)).bottom+f<=c==y?"after":"before";var pe=xr(t,J(s,Z,te),"line",r,h);q=pe.left,ae=c<pe.top?-1:c>=pe.bottom?1:0}return Z=Dt(r.text,Z,1),h1(s,Z,te,ae,a-q)}function I4(t,r,s,a,c,h,f){var p=Hr(function(S){var P=c[S],I=P.level!=1;return p1(xr(t,J(s,I?P.to:P.from,I?"before":"after"),"line",r,a),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var y=g.level!=1,z=xr(t,J(s,y?g.from:g.to,y?"after":"before"),"line",r,a);p1(z,h,f,!0)&&z.top>f&&(g=c[p-1])}return g}function A4(t,r,s,a,c,h,f){var p=wu(t,r,a,f),g=p.begin,y=p.end;/\s/.test(r.text.charAt(y-1))&&y--;for(var z=null,S=null,P=0;P<c.length;P++){var I=c[P];if(!(I.from>=y||I.to<=g)){var Z=I.level!=1,q=jr(t,a,Z?Math.min(y,I.to)-1:Math.max(g,I.from)).right,te=q<h?h-q+1e9:q-h;(!z||S>te)&&(z=I,S=te)}}return z||(z=c[c.length-1]),z.from<g&&(z={from:g,to:z.to,level:z.level}),z.to>y&&(z={from:z.from,to:y,level:z.level}),z}var qi;function Dn(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(qi==null){qi=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)qi.appendChild(document.createTextNode("x")),qi.appendChild(x("br"));qi.appendChild(document.createTextNode("x"))}O(t.measure,qi);var s=qi.offsetHeight/50;return s>3&&(t.cachedTextHeight=s),V(t.measure),s||1}function Nn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),s=x("pre",[r],"CodeMirror-line-like");O(t.measure,s);var a=r.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function g1(t){for(var r=t.display,s={},a={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;s[p]=h.offsetLeft+h.clientLeft+c,a[p]=h.clientWidth}return{fixedPos:v1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function v1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function zu(t){var r=Dn(t.display),s=t.options.lineWrapping,a=s&&Math.max(5,t.display.scroller.clientWidth/Nn(t.display)-3);return function(c){if(xi(t.doc,c))return 0;var h=0;if(c.widgets)for(var f=0;f<c.widgets.length;f++)c.widgets[f].height&&(h+=c.widgets[f].height);return s?h+(Math.ceil(c.text.length/a)||1)*r:h+r}}function b1(t){var r=t.doc,s=zu(t);r.iter(function(a){var c=s(a);c!=a.height&&Yt(a,c)})}function Ki(t,r,s,a){var c=t.display;if(!s&&Ci(r).getAttribute("cm-not-content")=="true")return null;var h,f,p=c.lineSpace.getBoundingClientRect();try{h=r.clientX-p.left,f=r.clientY-p.top}catch{return null}var g=f1(t,h,f),y;if(a&&g.xRel>0&&(y=be(t.doc,g.line).text).length==g.ch){var z=Xe(y,y.length,t.options.tabSize)-y.length;g=J(g.line,Math.max(0,Math.round((h-uu(t.display).left)/Nn(t.display))-z))}return g}function Yi(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var s=t.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function Vt(t,r,s,a){r==null&&(r=t.doc.first),s==null&&(s=t.doc.first+t.doc.size),a||(a=0);var c=t.display;if(a&&s<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)ni&&n1(t.doc,r)<c.viewTo&&Li(t);else if(s<=c.viewFrom)ni&&eu(t.doc,s+a)>c.viewFrom?Li(t):(c.viewFrom+=a,c.viewTo+=a);else if(r<=c.viewFrom&&s>=c.viewTo)Li(t);else if(r<=c.viewFrom){var h=ls(t,s,s+a,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=a):Li(t)}else if(s>=c.viewTo){var f=ls(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):Li(t)}else{var p=ls(t,r,r,-1),g=ls(t,s,s+a,1);p&&g?(c.view=c.view.slice(0,p.index).concat(ns(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=a):Li(t)}var y=c.externalMeasured;y&&(s<y.lineN?y.lineN+=a:r<y.lineN+y.size&&(c.externalMeasured=null))}function zi(t,r,s){t.curOp.viewChanged=!0;var a=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var h=a.view[Yi(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);ge(f,s)==-1&&f.push(s)}}}function Li(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ls(t,r,s,a){var c=Yi(t,r),h,f=t.display.view;if(!ni||s==t.doc.first+t.doc.size)return{index:c,lineN:s};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(a>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,s+=h}for(;n1(t.doc,s)!=s;){if(c==(a<0?0:f.length-1))return null;s+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:s}}function P4(t,r,s){var a=t.display,c=a.view;c.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=ns(t,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=ns(t,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(Yi(t,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(ns(t,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,Yi(t,s)))),a.viewTo=s}function Lu(t){for(var r=t.display.view,s=0,a=0;a<r.length;a++){var c=r[a];!c.hidden&&(!c.node||c.changes)&&++s}return s}function Fo(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Su(t,r){r===void 0&&(r=!0);for(var s=t.doc,a={},c=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),f=0;f<s.sel.ranges.length;f++)if(!(!r&&f==s.sel.primIndex)){var p=s.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&Mu(t,p.head,c),g||D4(t,p,h)}}return a}function Mu(t,r,s){var a=xr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=s.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=a.left+"px",c.style.top=a.top+"px",c.style.height=Math.max(0,a.bottom-a.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=ss(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var f=s.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=a.other.left+"px",f.style.top=a.other.top+"px",f.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function cs(t,r){return t.top-r.top||t.left-r.left}function D4(t,r,s){var a=t.display,c=t.doc,h=document.createDocumentFragment(),f=uu(t.display),p=f.left,g=Math.max(a.sizerWidth,Gi(t)-a.sizer.offsetLeft)-f.right,y=c.direction=="ltr";function z(se,pe,Le,xe){pe<0&&(pe=0),pe=Math.round(pe),xe=Math.round(xe),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+se+`px;
2992
+ `,r);c==-1&&(c=t.length);var h=t.slice(r,t.charAt(c-1)=="\r"?c-1:c),f=h.indexOf("\r");f!=-1?(s.push(h.slice(0,f)),r+=f+1):(s.push(h),r=c+1)}return s}:function(t){return t.split(/\r\n?|\n/)},Ya=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=t?!1:r.compareEndPoints("StartToEnd",r)!=0},Xa=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Oo=null;function wi(t){if(Oo!=null)return Oo;var r=O(t,x("span","x")),s=r.getBoundingClientRect(),a=U(r,0,1).getBoundingClientRect();return Oo=Math.abs(s.left-a.left)>1}var pr={},ar={};function Ja(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),pr[t]=r}function ii(t,r){ar[t]=r}function $n(t){if(typeof t=="string"&&ar.hasOwnProperty(t))t=ar[t];else if(t&&typeof t.name=="string"&&ar.hasOwnProperty(t.name)){var r=ar[t.name];typeof r=="string"&&(r={name:r}),t=et(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $n("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $n("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function En(t,r){r=$n(r);var s=pr[r.name];if(!s)return En(t,"text/plain");var a=s(t,r);if(Cr.hasOwnProperty(r.name)){var c=Cr[r.name];for(var h in c)c.hasOwnProperty(h)&&(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=c[h])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)a[f]=r.modeProps[f];return a}var Cr={};function wr(t,r){var s=Cr.hasOwnProperty(t)?Cr[t]:Cr[t]={};Ye(r,s)}function sr(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var s={};for(var a in r){var c=r[a];c instanceof Array&&(c=c.concat([])),s[a]=c}return s}function $o(t,r){for(var s;t.innerMode&&(s=t.innerMode(r),!(!s||s.mode==t));)r=s.state,t=s.mode;return s||{mode:t,state:r}}function Eo(t,r,s){return t.startState?t.startState(r,s):!0}var st=function(t,r,s){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};st.prototype.eol=function(){return this.pos>=this.string.length},st.prototype.sol=function(){return this.pos==this.lineStart},st.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},st.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},st.prototype.eat=function(t){var r=this.string.charAt(this.pos),s;if(typeof t=="string"?s=r==t:s=r&&(t.test?t.test(r):t(r)),s)return++this.pos,r},st.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},st.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},st.prototype.skipToEnd=function(){this.pos=this.string.length},st.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},st.prototype.backUp=function(t){this.pos-=t},st.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},st.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},st.prototype.match=function(t,r,s){if(typeof t=="string"){var a=function(f){return s?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(a(c)==a(t))return r!==!1&&(this.pos+=t.length),!0}else{var h=this.string.slice(this.pos).match(t);return h&&h.index>0?null:(h&&r!==!1&&(this.pos+=h[0].length),h)}},st.prototype.current=function(){return this.string.slice(this.start,this.pos)},st.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},st.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},st.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function be(t,r){if(r-=t.first,r<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var s=t;!s.lines;)for(var a=0;;++a){var c=s.children[a],h=c.chunkSize();if(r<h){s=c;break}r-=h}return s.lines[r]}function Br(t,r,s){var a=[],c=r.line;return t.iter(r.line,s.line+1,function(h){var f=h.text;c==s.line&&(f=f.slice(0,s.ch)),c==r.line&&(f=f.slice(r.ch)),a.push(f),++c}),a}function _o(t,r,s){var a=[];return t.iter(r,s,function(c){a.push(c.text)}),a}function Yt(t,r){var s=r-t.height;if(s)for(var a=t;a;a=a.parent)a.height+=s}function je(t){if(t.parent==null)return null;for(var r=t.parent,s=ge(r.lines,t),a=r.parent;a;r=a,a=a.parent)for(var c=0;a.children[c]!=r;++c)s+=a.children[c].chunkSize();return s+r.first}function Vr(t,r){var s=t.first;e:do{for(var a=0;a<t.children.length;++a){var c=t.children[a],h=c.height;if(r<h){t=c;continue e}r-=h,s+=c.chunkSize()}return s}while(!t.lines);for(var f=0;f<t.lines.length;++f){var p=t.lines[f],g=p.height;if(r<g)break;r-=g}return s+f}function ji(t,r){return r>=t.first&&r<t.first+t.size}function Io(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function J(t,r,s){if(s===void 0&&(s=null),!(this instanceof J))return new J(t,r,s);this.line=t,this.ch=r,this.sticky=s}function C(t,r){return t.line-r.line||t.ch-r.ch}function k(t,r){return t.sticky==r.sticky&&C(t,r)==0}function G(t){return J(t.line,t.ch)}function ee(t,r){return C(t,r)<0?r:t}function $e(t,r){return C(t,r)<0?t:r}function Fe(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function de(t,r){if(r.line<t.first)return J(t.first,0);var s=t.first+t.size-1;return r.line>s?J(s,be(t,s).text.length):It(r,be(t,r.line).text.length)}function It(t,r){var s=t.ch;return s==null||s>r?J(t.line,r):s<0?J(t.line,0):t}function lr(t,r){for(var s=[],a=0;a<r.length;a++)s[a]=de(t,r[a]);return s}var _n=function(t,r){this.state=t,this.lookAhead=r},Zr=function(t,r,s,a){this.state=r,this.doc=t,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Zr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Zr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Zr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zr.fromSaved=function(t,r,s){return r instanceof _n?new Zr(t,sr(t.mode,r.state),s,r.lookAhead):new Zr(t,sr(t.mode,r),s)},Zr.prototype.save=function(t){var r=t!==!1?sr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _n(r,this.maxLookAhead):r};function R0(t,r,s,a){var c=[t.state.modeGen],h={};U0(t,r.text,t.doc.mode,s,function(y,z){return c.push(y,z)},h,a);for(var f=s.state,p=function(y){s.baseTokens=c;var z=t.state.overlays[y],S=1,P=0;s.state=!0,U0(t,r.text,z.mode,s,function(I,Z){for(var q=S;P<I;){var te=c[S];te>I&&c.splice(S,1,I,c[S+1],te),S+=2,P=Math.min(I,te)}if(Z)if(z.opaque)c.splice(q,S-q,I,"overlay "+Z),S=q+2;else for(;q<S;q+=2){var ae=c[q+1];c[q+1]=(ae?ae+" ":"")+"overlay "+Z}},h),s.state=f,s.baseTokens=null,s.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function F0(t,r,s){if(!r.styles||r.styles[0]!=t.state.modeGen){var a=Ao(t,je(r)),c=r.text.length>t.options.maxHighlightLength&&sr(t.doc.mode,a.state),h=R0(t,r,a);c&&(a.state=c),r.stateAfter=a.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),s===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function Ao(t,r,s){var a=t.doc,c=t.display;if(!a.mode.startState)return new Zr(a,!0,r);var h=Y6(t,r,s),f=h>a.first&&be(a,h-1).stateAfter,p=f?Zr.fromSaved(a,f,h):new Zr(a,Eo(a.mode),h);return a.iter(h,r,function(g){e1(t,g.text,p);var y=p.line;g.stateAfter=y==r-1||y%5==0||y>=c.viewFrom&&y<c.viewTo?p.save():null,p.nextLine()}),s&&(a.modeFrontier=p.line),p}function e1(t,r,s,a){var c=t.doc.mode,h=new st(r,t.options.tabSize,s);for(h.start=h.pos=a||0,r==""&&B0(c,s.state);!h.eol();)t1(c,h,s.state),h.start=h.pos}function B0(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var s=$o(t,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function t1(t,r,s,a){for(var c=0;c<10;c++){a&&(a[0]=$o(t,s).mode);var h=t.token(r,s);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var V0=function(t,r,s){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=s};function Z0(t,r,s,a){var c=t.doc,h=c.mode,f;r=de(c,r);var p=be(c,r.line),g=Ao(t,r.line,s),y=new st(p.text,t.options.tabSize,g),z;for(a&&(z=[]);(a||y.pos<r.ch)&&!y.eol();)y.start=y.pos,f=t1(h,y,g.state),a&&z.push(new V0(y,f,sr(c.mode,g.state)));return a?z:new V0(y,f,g.state)}function W0(t,r){if(t)for(;;){var s=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;t=t.slice(0,s.index)+t.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return t}function U0(t,r,s,a,c,h,f){var p=s.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,y=null,z=new st(r,t.options.tabSize,a),S,P=t.options.addModeClass&&[null];for(r==""&&W0(B0(s,a.state),h);!z.eol();){if(z.pos>t.options.maxHighlightLength?(p=!1,f&&e1(t,r,a,z.pos),z.pos=r.length,S=null):S=W0(t1(s,z,a.state,P),h),P){var I=P[0].name;I&&(S="m-"+(S?I+" "+S:I))}if(!p||y!=S){for(;g<z.start;)g=Math.min(z.start,g+5e3),c(g,y);y=S}z.start=z.pos}for(;g<z.pos;){var Z=Math.min(z.pos,g+5e3);c(Z,y),g=Z}}function Y6(t,r,s){for(var a,c,h=t.doc,f=s?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=be(h,p-1),y=g.stateAfter;if(y&&(!s||p+(y instanceof _n?y.lookAhead:0)<=h.modeFrontier))return p;var z=Xe(g.text,null,t.options.tabSize);(c==null||a>z)&&(c=p-1,a=z)}return c}function X6(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var s=t.first,a=r-1;a>s;a--){var c=be(t,a).stateAfter;if(c&&(!(c instanceof _n)||a+c.lookAhead<r)){s=a+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,s)}}var j0=!1,ni=!1;function J6(){j0=!0}function Q6(){ni=!0}function Qa(t,r,s){this.marker=t,this.from=r,this.to=s}function Po(t,r){if(t)for(var s=0;s<t.length;++s){var a=t[s];if(a.marker==r)return a}}function e4(t,r){for(var s,a=0;a<t.length;++a)t[a]!=r&&(s||(s=[])).push(t[a]);return s}function t4(t,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],a&&a.add(t.markedSpans)),r.marker.attachLine(t)}function r4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);if(p||h.from==r&&f.type=="bookmark"&&(!s||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(a||(a=[])).push(new Qa(f,h.from,g?null:h.to))}}return a}function i4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);if(p||h.from==r&&f.type=="bookmark"&&(!s||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(a||(a=[])).push(new Qa(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return a}function r1(t,r){if(r.full)return null;var s=ji(t,r.from.line)&&be(t,r.from.line).markedSpans,a=ji(t,r.to.line)&&be(t,r.to.line).markedSpans;if(!s&&!a)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=r4(s,c,f),g=i4(a,h,f),y=r.text.length==1,z=_e(r.text).length+(y?c:0);if(p)for(var S=0;S<p.length;++S){var P=p[S];if(P.to==null){var I=Po(g,P.marker);I?y&&(P.to=I.to==null?null:I.to+z):P.to=c}}if(g)for(var Z=0;Z<g.length;++Z){var q=g[Z];if(q.to!=null&&(q.to+=z),q.from==null){var te=Po(p,q.marker);te||(q.from=z,y&&(p||(p=[])).push(q))}else q.from+=z,y&&(p||(p=[])).push(q)}p&&(p=G0(p)),g&&g!=p&&(g=G0(g));var ae=[p];if(!y){var he=r.text.length-2,se;if(he>0&&p)for(var pe=0;pe<p.length;++pe)p[pe].to==null&&(se||(se=[])).push(new Qa(p[pe].marker,null,null));for(var Le=0;Le<he;++Le)ae.push(se);ae.push(g)}return ae}function G0(t){for(var r=0;r<t.length;++r){var s=t[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function n4(t,r,s){var a=null;if(t.iter(r.line,s.line+1,function(I){if(I.markedSpans)for(var Z=0;Z<I.markedSpans.length;++Z){var q=I.markedSpans[Z].marker;q.readOnly&&(!a||ge(a,q)==-1)&&(a||(a=[])).push(q)}}),!a)return null;for(var c=[{from:r,to:s}],h=0;h<a.length;++h)for(var f=a[h],p=f.find(0),g=0;g<c.length;++g){var y=c[g];if(!(C(y.to,p.from)<0||C(y.from,p.to)>0)){var z=[g,1],S=C(y.from,p.from),P=C(y.to,p.to);(S<0||!f.inclusiveLeft&&!S)&&z.push({from:y.from,to:p.from}),(P>0||!f.inclusiveRight&&!P)&&z.push({from:p.to,to:y.to}),c.splice.apply(c,z),g+=z.length-3}}return c}function q0(t){var r=t.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(t);t.markedSpans=null}}function K0(t,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(t);t.markedSpans=r}}function es(t){return t.inclusiveLeft?-1:0}function ts(t){return t.inclusiveRight?1:0}function i1(t,r){var s=t.lines.length-r.lines.length;if(s!=0)return s;var a=t.find(),c=r.find(),h=C(a.from,c.from)||es(t)-es(r);if(h)return-h;var f=C(a.to,c.to)||ts(t)-ts(r);return f||r.id-t.id}function Y0(t,r){var s=ni&&t.markedSpans,a;if(s)for(var c=void 0,h=0;h<s.length;++h)c=s[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!a||i1(a,c.marker)<0)&&(a=c.marker);return a}function X0(t){return Y0(t,!0)}function rs(t){return Y0(t,!1)}function o4(t,r){var s=ni&&t.markedSpans,a;if(s)for(var c=0;c<s.length;++c){var h=s[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!a||i1(a,h.marker)<0)&&(a=h.marker)}return a}function J0(t,r,s,a,c){var h=be(t,r),f=ni&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var y=g.marker.find(0),z=C(y.from,s)||es(g.marker)-es(c),S=C(y.to,a)||ts(g.marker)-ts(c);if(!(z>=0&&S<=0||z<=0&&S>=0)&&(z<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(y.to,s)>=0:C(y.to,s)>0)||z>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(y.from,a)<=0:C(y.from,a)<0)))return!0}}}function Wr(t){for(var r;r=X0(t);)t=r.find(-1,!0).line;return t}function a4(t){for(var r;r=rs(t);)t=r.find(1,!0).line;return t}function s4(t){for(var r,s;r=rs(t);)t=r.find(1,!0).line,(s||(s=[])).push(t);return s}function n1(t,r){var s=be(t,r),a=Wr(s);return s==a?r:je(a)}function Q0(t,r){if(r>t.lastLine())return r;var s=be(t,r),a;if(!xi(t,s))return r;for(;a=rs(s);)s=a.find(1,!0).line;return je(s)+1}function xi(t,r){var s=ni&&r.markedSpans;if(s){for(var a=void 0,c=0;c<s.length;++c)if(a=s[c],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&o1(t,r,a))return!0}}}function o1(t,r,s){if(s.to==null){var a=s.marker.find(1,!0);return o1(t,a.line,Po(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var c=void 0,h=0;h<r.markedSpans.length;++h)if(c=r.markedSpans[h],c.marker.collapsed&&!c.marker.widgetNode&&c.from==s.to&&(c.to==null||c.to!=s.from)&&(c.marker.inclusiveLeft||s.marker.inclusiveRight)&&o1(t,r,c))return!0}function oi(t){t=Wr(t);for(var r=0,s=t.parent,a=0;a<s.lines.length;++a){var c=s.lines[a];if(c==t)break;r+=c.height}for(var h=s.parent;h;s=h,h=s.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==s)break;r+=p.height}return r}function is(t){if(t.height==0)return 0;for(var r=t.text.length,s,a=t;s=X0(a);){var c=s.find(0,!0);a=c.from.line,r+=c.from.ch-c.to.ch}for(a=t;s=rs(a);){var h=s.find(0,!0);r-=a.text.length-h.from.ch,a=h.to.line,r+=a.text.length-h.to.ch}return r}function a1(t){var r=t.display,s=t.doc;r.maxLine=be(s,s.first),r.maxLineLength=is(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var c=is(a);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=a)})}var In=function(t,r,s){this.text=t,K0(this,r),this.height=s?s(this):1};In.prototype.lineNo=function(){return je(this)},Rr(In);function l4(t,r,s,a){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),q0(t),K0(t,s);var c=a?a(t):1;c!=t.height&&Yt(t,c)}function c4(t){t.parent=null,q0(t)}var u4={},d4={};function eu(t,r){if(!t||/^\s*$/.test(t))return null;var s=r.addModeClass?d4:u4;return s[t]||(s[t]=t.replace(/\S+/g,"cm-$&"))}function tu(t,r){var s=w("span",null,null,M?"padding-right: .1px":null),a={pre:w("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var c=0;c<=(r.rest?r.rest.length:0);c++){var h=c?r.rest[c-1]:r.line,f=void 0;a.pos=0,a.addToken=f4,Fr(t.display.measure)&&(f=Kt(h,t.doc.direction))&&(a.addToken=g4(a.addToken,f)),a.map=[];var p=r!=t.display.externalMeasured&&je(h);v4(h,a,F0(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=Re(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=Re(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Ka(t.display.measure))),c==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(M){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Oe(t,"renderLine",t,r.line,a.pre),a.pre.className&&(a.textClass=Re(a.pre.className,a.textClass||"")),a}function h4(t){var r=x("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function f4(t,r,s,a,c,h,f){if(r){var p=t.splitSpaces?p4(r,t.trailingSpace):r,g=t.cm.state.specialChars,y=!1,z;if(!g.test(r))t.col+=r.length,z=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,z),m&&b<9&&(y=!0),t.pos+=r.length;else{z=document.createDocumentFragment();for(var S=0;;){g.lastIndex=S;var P=g.exec(r),I=P?P.index-S:r.length-S;if(I){var Z=document.createTextNode(p.slice(S,S+I));m&&b<9?z.appendChild(x("span",[Z])):z.appendChild(Z),t.map.push(t.pos,t.pos+I,Z),t.col+=I,t.pos+=I}if(!P)break;S+=I+1;var q=void 0;if(P[0]==" "){var te=t.cm.options.tabSize,ae=te-t.col%te;q=z.appendChild(x("span",ir(ae),"cm-tab")),q.setAttribute("role","presentation"),q.setAttribute("cm-text"," "),t.col+=ae}else P[0]=="\r"||P[0]==`
2993
+ `?(q=z.appendChild(x("span",P[0]=="\r"?"␍":"␤","cm-invalidchar")),q.setAttribute("cm-text",P[0]),t.col+=1):(q=t.cm.options.specialCharPlaceholder(P[0]),q.setAttribute("cm-text",P[0]),m&&b<9?z.appendChild(x("span",[q])):z.appendChild(q),t.col+=1);t.map.push(t.pos,t.pos+1,q),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,s||a||c||y||h||f){var he=s||"";a&&(he+=a),c&&(he+=c);var se=x("span",[z],he,h);if(f)for(var pe in f)f.hasOwnProperty(pe)&&pe!="style"&&pe!="class"&&se.setAttribute(pe,f[pe]);return t.content.appendChild(se)}t.content.appendChild(z)}}function p4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var s=r,a="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&s&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),a+=h,s=h==" "}return a}function g4(t,r){return function(s,a,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var y=s.pos,z=y+a.length;;){for(var S=void 0,P=0;P<r.length&&(S=r[P],!(S.to>y&&S.from<=y));P++);if(S.to>=z)return t(s,a,c,h,f,p,g);t(s,a.slice(0,S.to-y),c,h,null,p,g),h=null,a=a.slice(S.to-y),y=S.to}}}function ru(t,r,s,a){var c=!a&&s.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!a&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",s.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function v4(t,r,s){var a=t.markedSpans,c=t.text,h=0;if(!a){for(var f=1;f<s.length;f+=2)r.addToken(r,c.slice(h,h=s[f]),eu(s[f+1],r.cm.options));return}for(var p=c.length,g=0,y=1,z="",S,P,I=0,Z,q,te,ae,he;;){if(I==g){Z=q=te=P="",he=null,ae=null,I=1/0;for(var se=[],pe=void 0,Le=0;Le<a.length;++Le){var xe=a[Le],Pe=xe.marker;if(Pe.type=="bookmark"&&xe.from==g&&Pe.widgetNode)se.push(Pe);else if(xe.from<=g&&(xe.to==null||xe.to>g||Pe.collapsed&&xe.to==g&&xe.from==g)){if(xe.to!=null&&xe.to!=g&&I>xe.to&&(I=xe.to,q=""),Pe.className&&(Z+=" "+Pe.className),Pe.css&&(P=(P?P+";":"")+Pe.css),Pe.startStyle&&xe.from==g&&(te+=" "+Pe.startStyle),Pe.endStyle&&xe.to==I&&(pe||(pe=[])).push(Pe.endStyle,xe.to),Pe.title&&((he||(he={})).title=Pe.title),Pe.attributes)for(var Je in Pe.attributes)(he||(he={}))[Je]=Pe.attributes[Je];Pe.collapsed&&(!ae||i1(ae.marker,Pe)<0)&&(ae=xe)}else xe.from>g&&I>xe.from&&(I=xe.from)}if(pe)for(var Lt=0;Lt<pe.length;Lt+=2)pe[Lt+1]==I&&(q+=" "+pe[Lt]);if(!ae||ae.from==g)for(var nt=0;nt<se.length;++nt)ru(r,0,se[nt]);if(ae&&(ae.from||0)==g){if(ru(r,(ae.to==null?p+1:ae.to)-g,ae.marker,ae.from==null),ae.to==null)return;ae.to==g&&(ae=!1)}}if(g>=p)break;for(var Jt=Math.min(p,I);;){if(z){var Wt=g+z.length;if(!ae){var pt=Wt>Jt?z.slice(0,Jt-g):z;r.addToken(r,pt,S?S+Z:Z,te,g+pt.length==I?q:"",P,he)}if(Wt>=Jt){z=z.slice(Jt-g),g=Jt;break}g=Wt,te=""}z=c.slice(h,h=s[y++]),S=eu(s[y++],r.cm.options)}}}function iu(t,r,s){this.line=r,this.rest=s4(r),this.size=this.rest?je(_e(this.rest))-s+1:1,this.node=this.text=null,this.hidden=xi(t,r)}function ns(t,r,s){for(var a=[],c,h=r;h<s;h=c){var f=new iu(t.doc,be(t.doc,h),h);c=h+f.size,a.push(f)}return a}var An=null;function b4(t){An?An.ops.push(t):t.ownsGroup=An={ops:[t],delayedCallbacks:[]}}function m4(t){var r=t.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<t.ops.length;a++){var c=t.ops[a];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(s<r.length)}function y4(t,r){var s=t.ownsGroup;if(s)try{m4(s)}finally{An=null,r(s)}}var Do=null;function wt(t,r){var s=Tn(t,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),c;An?c=An.delayedCallbacks:Do?c=Do:(c=Do=[],setTimeout(C4,0));for(var h=function(p){c.push(function(){return s[p].apply(null,a)})},f=0;f<s.length;++f)h(f)}}function C4(){var t=Do;Do=null;for(var r=0;r<t.length;++r)t[r]()}function nu(t,r,s,a){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?x4(t,r):h=="gutter"?au(t,r,s,a):h=="class"?s1(t,r):h=="widget"&&z4(t,r,a)}r.changes=null}function No(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),m&&b<8&&(t.node.style.zIndex=2)),t.node}function w4(t,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=No(r);r.background=a.insertBefore(x("div",null,s),a.firstChild),t.display.input.setUneditable(r.background)}}function ou(t,r){var s=t.display.externalMeasured;return s&&s.line==r.line?(t.display.externalMeasured=null,r.measure=s.measure,s.built):tu(t,r)}function x4(t,r){var s=r.text.className,a=ou(t,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,s1(t,r)):s&&(r.text.className=s)}function s1(t,r){w4(t,r),r.line.wrapClass?No(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function au(t,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var c=No(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),c.insertBefore(r.gutterBackground,r.text)}var h=r.line.gutterMarkers;if(t.options.lineNumbers||h){var f=No(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(p.setAttribute("aria-hidden","true"),t.display.input.setUneditable(p),f.insertBefore(p,r.text),r.line.gutterClass&&(p.className+=" "+r.line.gutterClass),t.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(r.lineNumber=p.appendChild(x("div",Io(t.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var y=t.display.gutterSpecs[g].className,z=h.hasOwnProperty(y)&&h[y];z&&p.appendChild(x("div",[z],"CodeMirror-gutter-elt","left: "+a.gutterLeft[y]+"px; width: "+a.gutterWidth[y]+"px"))}}}function z4(t,r,s){r.alignable&&(r.alignable=null);for(var a=ie("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,a.test(c.className)&&r.node.removeChild(c);su(t,r,s)}function L4(t,r,s,a){var c=ou(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),s1(t,r),au(t,r,s,a),su(t,r,a),r.node}function su(t,r,s){if(lu(t,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)lu(t,r.rest[a],r,s,!1)}function lu(t,r,s,a,c){if(r.widgets)for(var h=No(s),f=0,p=r.widgets;f<p.length;++f){var g=p[f],y=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||y.setAttribute("cm-ignore-events","true"),S4(g,y,s,a),t.display.input.setUneditable(y),c&&g.above?h.insertBefore(y,s.gutter||s.text):h.appendChild(y),wt(g,"redraw")}}function S4(t,r,s,a){if(t.noHScroll){(s.alignable||(s.alignable=[])).push(r);var c=a.wrapperWidth;r.style.left=a.fixedPos+"px",t.coverGutter||(c-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function Ho(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!ne(document.body,t.node)){var s="position: relative;";t.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),O(r.display.measure,x("div",[t.node],null,s))}return t.height=t.node.parentNode.offsetHeight}function ai(t,r){for(var s=Ci(r);s!=t.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==t.sizer&&s!=t.mover)return!0}function os(t){return t.lineSpace.offsetTop}function l1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function cu(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=O(t.measure,x("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(t.cachedPaddingH=a),a}function Ur(t){return ve-t.display.nativeBarWidth}function Gi(t){return t.display.scroller.clientWidth-Ur(t)-t.display.barWidth}function c1(t){return t.display.scroller.clientHeight-Ur(t)-t.display.barHeight}function M4(t,r,s){var a=t.options.lineWrapping,c=a&&Gi(t);if(!r.measure.heights||a&&r.measure.width!=c){var h=r.measure.heights=[];if(a){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],y=f[p+1];Math.abs(g.bottom-y.bottom)>2&&h.push((g.bottom+y.top)/2-s.top)}}h.push(s.bottom-s.top)}}function uu(t,r,s){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var a=0;a<t.rest.length;a++)if(t.rest[a]==r)return{map:t.measure.maps[a],cache:t.measure.caches[a]};for(var c=0;c<t.rest.length;c++)if(je(t.rest[c])>s)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function T4(t,r){r=Wr(r);var s=je(r),a=t.display.externalMeasured=new iu(t.doc,r,s);a.lineN=s;var c=a.built=tu(t,a);return a.text=c.pre,O(t.display.lineMeasure,c.pre),a}function du(t,r,s,a){return jr(t,Pn(t,r),s,a)}function u1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[Yi(t,r)];var s=t.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Pn(t,r){var s=je(r),a=u1(t,s);a&&!a.text?a=null:a&&a.changes&&(nu(t,a,s,g1(t)),t.curOp.forceUpdate=!0),a||(a=T4(t,r));var c=uu(a,r,s);return{line:r,view:a,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function jr(t,r,s,a,c){r.before&&(s=-1);var h=s+(a||""),f;return r.cache.hasOwnProperty(h)?f=r.cache[h]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(M4(t,r.view,r.rect),r.hasHeights=!0),f=O4(t,r,s,a),f.bogus||(r.cache[h]=f)),{left:f.left,right:f.right,top:c?f.rtop:f.top,bottom:c?f.rbottom:f.bottom}}var hu={left:0,right:0,top:0,bottom:0};function fu(t,r,s){for(var a,c,h,f,p,g,y=0;y<t.length;y+=3)if(p=t[y],g=t[y+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(y==t.length-3||r==g&&t[y+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(a=t[y+2],p==g&&s==(a.insertLeft?"left":"right")&&(f=s),s=="left"&&c==0)for(;y&&t[y-2]==t[y-3]&&t[y-1].insertLeft;)a=t[(y-=3)+2],f="left";if(s=="right"&&c==g-p)for(;y<t.length-3&&t[y+3]==t[y+4]&&!t[y+5].insertLeft;)a=t[(y+=3)+2],f="right";break}return{node:a,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function k4(t,r){var s=hu;if(r=="left")for(var a=0;a<t.length&&(s=t[a]).left==s.right;a++);else for(var c=t.length-1;c>=0&&(s=t[c]).left==s.right;c--);return s}function O4(t,r,s,a){var c=fu(r.map,s,a),h=c.node,f=c.start,p=c.end,g=c.collapse,y;if(h.nodeType==3){for(var z=0;z<4;z++){for(;f&&Ne(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&Ne(r.line.text.charAt(c.coverStart+p));)++p;if(m&&b<9&&f==0&&p==c.coverEnd-c.coverStart?y=h.parentNode.getBoundingClientRect():y=k4(U(h,f,p).getClientRects(),a),y.left||y.right||f==0)break;p=f,f=f-1,g="right"}m&&b<11&&(y=$4(t.display.measure,y))}else{f>0&&(g=a="right");var S;t.options.lineWrapping&&(S=h.getClientRects()).length>1?y=S[a=="right"?S.length-1:0]:y=h.getBoundingClientRect()}if(m&&b<9&&!f&&(!y||!y.left&&!y.right)){var P=h.parentNode.getClientRects()[0];P?y={left:P.left,right:P.left+Nn(t.display),top:P.top,bottom:P.bottom}:y=hu}for(var I=y.top-r.rect.top,Z=y.bottom-r.rect.top,q=(I+Z)/2,te=r.view.measure.heights,ae=0;ae<te.length-1&&!(q<te[ae]);ae++);var he=ae?te[ae-1]:0,se=te[ae],pe={left:(g=="right"?y.right:y.left)-r.rect.left,right:(g=="left"?y.left:y.right)-r.rect.left,top:he,bottom:se};return!y.left&&!y.right&&(pe.bogus=!0),t.options.singleCursorHeightPerLine||(pe.rtop=I,pe.rbottom=Z),pe}function $4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wi(t))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function pu(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function gu(t){t.display.externalMeasure=null,V(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)pu(t.display.view[r])}function Ro(t){gu(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function vu(){return T&&D?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function bu(){return T&&D?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function d1(t){var r=0;if(t.widgets)for(var s=0;s<t.widgets.length;++s)t.widgets[s].above&&(r+=Ho(t.widgets[s]));return r}function as(t,r,s,a,c){if(!c){var h=d1(r);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var f=oi(r);if(a=="local"?f+=os(t.display):f-=t.display.viewOffset,a=="page"||a=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(a=="window"?0:bu());var g=p.left+(a=="window"?0:vu());s.left+=g,s.right+=g}return s.top+=f,s.bottom+=f,s}function mu(t,r,s){if(s=="div")return r;var a=r.left,c=r.top;if(s=="page")a-=vu(),c-=bu();else if(s=="local"||!s){var h=t.display.sizer.getBoundingClientRect();a+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:a-f.left,top:c-f.top}}function ss(t,r,s,a,c){return a||(a=be(t.doc,r.line)),as(t,a,du(t,a,r.ch,c),s)}function xr(t,r,s,a,c,h){a=a||be(t.doc,r.line),c||(c=Pn(t,a));function f(Z,q){var te=jr(t,c,Z,q?"right":"left",h);return q?te.left=te.right:te.right=te.left,as(t,a,te,s)}var p=Kt(a,t.doc.direction),g=r.ch,y=r.sticky;if(g>=a.text.length?(g=a.text.length,y="before"):g<=0&&(g=0,y="after"),!p)return f(y=="before"?g-1:g,y=="before");function z(Z,q,te){var ae=p[q],he=ae.level==1;return f(te?Z-1:Z,he!=te)}var S=at(p,g,y),P=nr,I=z(g,S,y=="before");return P!=null&&(I.other=z(g,P,y!="before")),I}function yu(t,r){var s=0;r=de(t.doc,r),t.options.lineWrapping||(s=Nn(t.display)*r.ch);var a=be(t.doc,r.line),c=oi(a)+os(t.display);return{left:s,right:s,top:c,bottom:c+a.height}}function h1(t,r,s,a,c){var h=J(t,r,s);return h.xRel=c,a&&(h.outside=a),h}function f1(t,r,s){var a=t.doc;if(s+=t.display.viewOffset,s<0)return h1(a.first,0,null,-1,-1);var c=Vr(a,s),h=a.first+a.size-1;if(c>h)return h1(a.first+a.size-1,be(a,h).text.length,null,1,1);r<0&&(r=0);for(var f=be(a,c);;){var p=E4(t,f,c,r,s),g=o4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var y=g.find(1);if(y.line==c)return y;f=be(a,c=y.line)}}function Cu(t,r,s,a){a-=d1(r);var c=r.text.length,h=Hr(function(f){return jr(t,s,f-1).bottom<=a},c,0);return c=Hr(function(f){return jr(t,s,f).top>a},h,c),{begin:h,end:c}}function wu(t,r,s,a){s||(s=Pn(t,r));var c=as(t,r,jr(t,s,a),"line").top;return Cu(t,r,s,c)}function p1(t,r,s,a){return t.bottom<=s?!1:t.top>s?!0:(a?t.left:t.right)>r}function E4(t,r,s,a,c){c-=oi(r);var h=Pn(t,r),f=d1(r),p=0,g=r.text.length,y=!0,z=Kt(r,t.doc.direction);if(z){var S=(t.options.lineWrapping?I4:_4)(t,r,s,h,z,a,c);y=S.level!=1,p=y?S.from:S.to-1,g=y?S.to:S.from-1}var P=null,I=null,Z=Hr(function(Le){var xe=jr(t,h,Le);return xe.top+=f,xe.bottom+=f,p1(xe,a,c,!1)?(xe.top<=c&&xe.left<=a&&(P=Le,I=xe),!0):!1},p,g),q,te,ae=!1;if(I){var he=a-I.left<I.right-a,se=he==y;Z=P+(se?0:1),te=se?"after":"before",q=he?I.left:I.right}else{!y&&(Z==g||Z==p)&&Z++,te=Z==0?"after":Z==r.text.length?"before":jr(t,h,Z-(y?1:0)).bottom+f<=c==y?"after":"before";var pe=xr(t,J(s,Z,te),"line",r,h);q=pe.left,ae=c<pe.top?-1:c>=pe.bottom?1:0}return Z=Dt(r.text,Z,1),h1(s,Z,te,ae,a-q)}function _4(t,r,s,a,c,h,f){var p=Hr(function(S){var P=c[S],I=P.level!=1;return p1(xr(t,J(s,I?P.to:P.from,I?"before":"after"),"line",r,a),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var y=g.level!=1,z=xr(t,J(s,y?g.from:g.to,y?"after":"before"),"line",r,a);p1(z,h,f,!0)&&z.top>f&&(g=c[p-1])}return g}function I4(t,r,s,a,c,h,f){var p=Cu(t,r,a,f),g=p.begin,y=p.end;/\s/.test(r.text.charAt(y-1))&&y--;for(var z=null,S=null,P=0;P<c.length;P++){var I=c[P];if(!(I.from>=y||I.to<=g)){var Z=I.level!=1,q=jr(t,a,Z?Math.min(y,I.to)-1:Math.max(g,I.from)).right,te=q<h?h-q+1e9:q-h;(!z||S>te)&&(z=I,S=te)}}return z||(z=c[c.length-1]),z.from<g&&(z={from:g,to:z.to,level:z.level}),z.to>y&&(z={from:z.from,to:y,level:z.level}),z}var qi;function Dn(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(qi==null){qi=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)qi.appendChild(document.createTextNode("x")),qi.appendChild(x("br"));qi.appendChild(document.createTextNode("x"))}O(t.measure,qi);var s=qi.offsetHeight/50;return s>3&&(t.cachedTextHeight=s),V(t.measure),s||1}function Nn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),s=x("pre",[r],"CodeMirror-line-like");O(t.measure,s);var a=r.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function g1(t){for(var r=t.display,s={},a={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;s[p]=h.offsetLeft+h.clientLeft+c,a[p]=h.clientWidth}return{fixedPos:v1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function v1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function xu(t){var r=Dn(t.display),s=t.options.lineWrapping,a=s&&Math.max(5,t.display.scroller.clientWidth/Nn(t.display)-3);return function(c){if(xi(t.doc,c))return 0;var h=0;if(c.widgets)for(var f=0;f<c.widgets.length;f++)c.widgets[f].height&&(h+=c.widgets[f].height);return s?h+(Math.ceil(c.text.length/a)||1)*r:h+r}}function b1(t){var r=t.doc,s=xu(t);r.iter(function(a){var c=s(a);c!=a.height&&Yt(a,c)})}function Ki(t,r,s,a){var c=t.display;if(!s&&Ci(r).getAttribute("cm-not-content")=="true")return null;var h,f,p=c.lineSpace.getBoundingClientRect();try{h=r.clientX-p.left,f=r.clientY-p.top}catch{return null}var g=f1(t,h,f),y;if(a&&g.xRel>0&&(y=be(t.doc,g.line).text).length==g.ch){var z=Xe(y,y.length,t.options.tabSize)-y.length;g=J(g.line,Math.max(0,Math.round((h-cu(t.display).left)/Nn(t.display))-z))}return g}function Yi(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var s=t.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function Vt(t,r,s,a){r==null&&(r=t.doc.first),s==null&&(s=t.doc.first+t.doc.size),a||(a=0);var c=t.display;if(a&&s<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)ni&&n1(t.doc,r)<c.viewTo&&Li(t);else if(s<=c.viewFrom)ni&&Q0(t.doc,s+a)>c.viewFrom?Li(t):(c.viewFrom+=a,c.viewTo+=a);else if(r<=c.viewFrom&&s>=c.viewTo)Li(t);else if(r<=c.viewFrom){var h=ls(t,s,s+a,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=a):Li(t)}else if(s>=c.viewTo){var f=ls(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):Li(t)}else{var p=ls(t,r,r,-1),g=ls(t,s,s+a,1);p&&g?(c.view=c.view.slice(0,p.index).concat(ns(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=a):Li(t)}var y=c.externalMeasured;y&&(s<y.lineN?y.lineN+=a:r<y.lineN+y.size&&(c.externalMeasured=null))}function zi(t,r,s){t.curOp.viewChanged=!0;var a=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var h=a.view[Yi(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);ge(f,s)==-1&&f.push(s)}}}function Li(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ls(t,r,s,a){var c=Yi(t,r),h,f=t.display.view;if(!ni||s==t.doc.first+t.doc.size)return{index:c,lineN:s};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(a>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,s+=h}for(;n1(t.doc,s)!=s;){if(c==(a<0?0:f.length-1))return null;s+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:s}}function A4(t,r,s){var a=t.display,c=a.view;c.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=ns(t,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=ns(t,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(Yi(t,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(ns(t,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,Yi(t,s)))),a.viewTo=s}function zu(t){for(var r=t.display.view,s=0,a=0;a<r.length;a++){var c=r[a];!c.hidden&&(!c.node||c.changes)&&++s}return s}function Fo(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Lu(t,r){r===void 0&&(r=!0);for(var s=t.doc,a={},c=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),f=0;f<s.sel.ranges.length;f++)if(!(!r&&f==s.sel.primIndex)){var p=s.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&Su(t,p.head,c),g||P4(t,p,h)}}return a}function Su(t,r,s){var a=xr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=s.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=a.left+"px",c.style.top=a.top+"px",c.style.height=Math.max(0,a.bottom-a.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=ss(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var f=s.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=a.other.left+"px",f.style.top=a.other.top+"px",f.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function cs(t,r){return t.top-r.top||t.left-r.left}function P4(t,r,s){var a=t.display,c=t.doc,h=document.createDocumentFragment(),f=cu(t.display),p=f.left,g=Math.max(a.sizerWidth,Gi(t)-a.sizer.offsetLeft)-f.right,y=c.direction=="ltr";function z(se,pe,Le,xe){pe<0&&(pe=0),pe=Math.round(pe),xe=Math.round(xe),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+se+`px;
2994
2994
  top: `+pe+"px; width: "+(Le==null?g-se:Le)+`px;
2995
- height: `+(xe-pe)+"px"))}function S(se,pe,Le){var xe=be(c,se),Pe=xe.text.length,Je,Lt;function nt(pt,Ut){return ss(t,J(se,pt),"div",xe,Ut)}function Jt(pt,Ut,kt){var mt=xu(t,xe,null,pt),gt=Ut=="ltr"==(kt=="after")?"left":"right",lt=kt=="after"?mt.begin:mt.end-(/\s/.test(xe.text.charAt(mt.end-1))?2:1);return nt(lt,gt)[gt]}var Wt=Kt(xe,c.direction);return Ql(Wt,pe||0,Le==null?Pe:Le,function(pt,Ut,kt,mt){var gt=kt=="ltr",lt=nt(pt,gt?"left":"right"),jt=nt(Ut-1,gt?"right":"left"),Yn=pe==null&&pt==0,$i=Le==null&&Ut==Pe,Pt=mt==0,Gr=!Wt||mt==Wt.length-1;if(jt.top-lt.top<=3){var St=(y?Yn:$i)&&Pt,Z1=(y?$i:Yn)&&Gr,li=St?p:(gt?lt:jt).left,tn=Z1?g:(gt?jt:lt).right;z(li,lt.top,tn-li,lt.bottom)}else{var rn,Ht,Xn,W1;gt?(rn=y&&Yn&&Pt?p:lt.left,Ht=y?g:Jt(pt,kt,"before"),Xn=y?p:Jt(Ut,kt,"after"),W1=y&&$i&&Gr?g:jt.right):(rn=y?Jt(pt,kt,"before"):p,Ht=!y&&Yn&&Pt?g:lt.right,Xn=!y&&$i&&Gr?p:jt.left,W1=y?Jt(Ut,kt,"after"):g),z(rn,lt.top,Ht-rn,lt.bottom),lt.bottom<jt.top&&z(p,lt.bottom,null,jt.top),z(Xn,jt.top,W1-Xn,jt.bottom)}(!Je||cs(lt,Je)<0)&&(Je=lt),cs(jt,Je)<0&&(Je=jt),(!Lt||cs(lt,Lt)<0)&&(Lt=lt),cs(jt,Lt)<0&&(Lt=jt)}),{start:Je,end:Lt}}var P=r.from(),I=r.to();if(P.line==I.line)S(P.line,P.ch,I.ch);else{var Z=be(c,P.line),q=be(c,I.line),te=Wr(Z)==Wr(q),ae=S(P.line,P.ch,te?Z.text.length+1:null).end,he=S(I.line,te?0:null,I.ch).start;te&&(ae.top<he.top-2?(z(ae.right,ae.top,null,ae.bottom),z(p,he.top,he.left,he.bottom)):z(ae.right,ae.top,he.left-ae.right,ae.bottom)),ae.bottom<he.top&&z(p,ae.bottom,null,he.top)}s.appendChild(h)}function m1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Hn(t),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Tu(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||C1(t))}function y1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Hn(t))},100)}function C1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Oe(t,"focus",t,r),t.state.focused=!0,ke(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),M&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),m1(t))}function Hn(t,r){t.state.delayingBlurEvent||(t.state.focused&&(Oe(t,"blur",t,r),t.state.focused=!1,X(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function us(t){for(var r=t.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var c=r.view[a],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(m&&b<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-s,s=g}else{var y=c.node.getBoundingClientRect();f=y.bottom-y.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-y.left-1)}var z=c.line.height-f;if((z>.005||z<-.005)&&(Yt(c.line,f),ku(c.line),c.rest))for(var S=0;S<c.rest.length;S++)ku(c.rest[S]);if(p>t.display.sizerWidth){var P=Math.ceil(p/Nn(t.display));P>t.display.maxLineLength&&(t.display.maxLineLength=P,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function ku(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var s=t.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function ds(t,r,s){var a=s&&s.top!=null?Math.max(0,s.top):t.scroller.scrollTop;a=Math.floor(a-os(t));var c=s&&s.bottom!=null?s.bottom:a+t.wrapper.clientHeight,h=Vr(r,a),f=Vr(r,c);if(s&&s.ensure){var p=s.ensure.from.line,g=s.ensure.to.line;p<h?(h=p,f=Vr(r,oi(be(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Vr(r,oi(be(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function N4(t,r){if(!ft(t,"scrollCursorIntoView")){var s=t.display,a=s.sizer.getBoundingClientRect(),c=null;if(r.top+a.top<0?c=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!oe){var h=x("div","​",null,`position: absolute;
2995
+ height: `+(xe-pe)+"px"))}function S(se,pe,Le){var xe=be(c,se),Pe=xe.text.length,Je,Lt;function nt(pt,Ut){return ss(t,J(se,pt),"div",xe,Ut)}function Jt(pt,Ut,kt){var mt=wu(t,xe,null,pt),gt=Ut=="ltr"==(kt=="after")?"left":"right",lt=kt=="after"?mt.begin:mt.end-(/\s/.test(xe.text.charAt(mt.end-1))?2:1);return nt(lt,gt)[gt]}var Wt=Kt(xe,c.direction);return Ql(Wt,pe||0,Le==null?Pe:Le,function(pt,Ut,kt,mt){var gt=kt=="ltr",lt=nt(pt,gt?"left":"right"),jt=nt(Ut-1,gt?"right":"left"),Yn=pe==null&&pt==0,$i=Le==null&&Ut==Pe,Pt=mt==0,Gr=!Wt||mt==Wt.length-1;if(jt.top-lt.top<=3){var St=(y?Yn:$i)&&Pt,Z1=(y?$i:Yn)&&Gr,li=St?p:(gt?lt:jt).left,tn=Z1?g:(gt?jt:lt).right;z(li,lt.top,tn-li,lt.bottom)}else{var rn,Ht,Xn,W1;gt?(rn=y&&Yn&&Pt?p:lt.left,Ht=y?g:Jt(pt,kt,"before"),Xn=y?p:Jt(Ut,kt,"after"),W1=y&&$i&&Gr?g:jt.right):(rn=y?Jt(pt,kt,"before"):p,Ht=!y&&Yn&&Pt?g:lt.right,Xn=!y&&$i&&Gr?p:jt.left,W1=y?Jt(Ut,kt,"after"):g),z(rn,lt.top,Ht-rn,lt.bottom),lt.bottom<jt.top&&z(p,lt.bottom,null,jt.top),z(Xn,jt.top,W1-Xn,jt.bottom)}(!Je||cs(lt,Je)<0)&&(Je=lt),cs(jt,Je)<0&&(Je=jt),(!Lt||cs(lt,Lt)<0)&&(Lt=lt),cs(jt,Lt)<0&&(Lt=jt)}),{start:Je,end:Lt}}var P=r.from(),I=r.to();if(P.line==I.line)S(P.line,P.ch,I.ch);else{var Z=be(c,P.line),q=be(c,I.line),te=Wr(Z)==Wr(q),ae=S(P.line,P.ch,te?Z.text.length+1:null).end,he=S(I.line,te?0:null,I.ch).start;te&&(ae.top<he.top-2?(z(ae.right,ae.top,null,ae.bottom),z(p,he.top,he.left,he.bottom)):z(ae.right,ae.top,he.left-ae.right,ae.bottom)),ae.bottom<he.top&&z(p,ae.bottom,null,he.top)}s.appendChild(h)}function m1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Hn(t),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Mu(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||C1(t))}function y1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Hn(t))},100)}function C1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Oe(t,"focus",t,r),t.state.focused=!0,ke(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),M&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),m1(t))}function Hn(t,r){t.state.delayingBlurEvent||(t.state.focused&&(Oe(t,"blur",t,r),t.state.focused=!1,X(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function us(t){for(var r=t.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var c=r.view[a],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(m&&b<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-s,s=g}else{var y=c.node.getBoundingClientRect();f=y.bottom-y.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-y.left-1)}var z=c.line.height-f;if((z>.005||z<-.005)&&(Yt(c.line,f),Tu(c.line),c.rest))for(var S=0;S<c.rest.length;S++)Tu(c.rest[S]);if(p>t.display.sizerWidth){var P=Math.ceil(p/Nn(t.display));P>t.display.maxLineLength&&(t.display.maxLineLength=P,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function Tu(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var s=t.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function ds(t,r,s){var a=s&&s.top!=null?Math.max(0,s.top):t.scroller.scrollTop;a=Math.floor(a-os(t));var c=s&&s.bottom!=null?s.bottom:a+t.wrapper.clientHeight,h=Vr(r,a),f=Vr(r,c);if(s&&s.ensure){var p=s.ensure.from.line,g=s.ensure.to.line;p<h?(h=p,f=Vr(r,oi(be(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Vr(r,oi(be(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function D4(t,r){if(!ft(t,"scrollCursorIntoView")){var s=t.display,a=s.sizer.getBoundingClientRect(),c=null;if(r.top+a.top<0?c=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!oe){var h=x("div","​",null,`position: absolute;
2996
2996
  top: `+(r.top-s.viewOffset-os(t.display))+`px;
2997
2997
  height: `+(r.bottom-r.top+Ur(t)+s.barHeight)+`px;
2998
- left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(h),h.scrollIntoView(c),t.display.lineSpace.removeChild(h)}}}function H4(t,r,s,a){a==null&&(a=0);var c;!t.options.lineWrapping&&r==s&&(s=r.sticky=="before"?J(r.line,r.ch+1,"before"):r,r=r.ch?J(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=xr(t,r),g=!s||s==r?p:xr(t,s);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-a,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+a};var y=w1(t,c),z=t.doc.scrollTop,S=t.doc.scrollLeft;if(y.scrollTop!=null&&(Vo(t,y.scrollTop),Math.abs(t.doc.scrollTop-z)>1&&(f=!0)),y.scrollLeft!=null&&(Xi(t,y.scrollLeft),Math.abs(t.doc.scrollLeft-S)>1&&(f=!0)),!f)break}return c}function R4(t,r){var s=w1(t,r);s.scrollTop!=null&&Vo(t,s.scrollTop),s.scrollLeft!=null&&Xi(t,s.scrollLeft)}function w1(t,r){var s=t.display,a=Dn(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:s.scroller.scrollTop,h=c1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+l1(s),g=r.top<a,y=r.bottom>p-a;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var z=Math.min(r.top,(y?p:r.bottom)-h);z!=c&&(f.scrollTop=z)}var S=t.options.fixedGutter?0:s.gutters.offsetWidth,P=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:s.scroller.scrollLeft-S,I=Gi(t)-s.gutters.offsetWidth,Z=r.right-r.left>I;return Z&&(r.right=r.left+I),r.left<10?f.scrollLeft=0:r.left<P?f.scrollLeft=Math.max(0,r.left+S-(Z?0:10)):r.right>I+P-3&&(f.scrollLeft=r.right+(Z?0:10)-I),f}function x1(t,r){r!=null&&(hs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Rn(t){hs(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Bo(t,r,s){(r!=null||s!=null)&&hs(t),r!=null&&(t.curOp.scrollLeft=r),s!=null&&(t.curOp.scrollTop=s)}function F4(t,r){hs(t),t.curOp.scrollToPos=r}function hs(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var s=Cu(t,r.from),a=Cu(t,r.to);Ou(t,s,a,r.margin)}}function Ou(t,r,s,a){var c=w1(t,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Bo(t,c.scrollLeft,c.scrollTop)}function Vo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||L1(t,{top:r}),$u(t,r,!0),l&&L1(t),Uo(t,100))}function $u(t,r,s){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!s)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Xi(t,r,s,a){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((s?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!a)&&(t.doc.scrollLeft=r,Pu(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Zo(t){var r=t.display,s=r.gutters.offsetWidth,a=Math.round(t.doc.height+l1(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Ur(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Ji=function(t,r,s){this.cm=s;var a=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,t(a),t(c),Se(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Se(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&b<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ji.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,s=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var c=t.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Ji.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ji.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ji.prototype.zeroWidthHack=function(){var t=B&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Be,this.disableVert=new Be},Ji.prototype.enableZeroWidthBar=function(t,r,s){t.style.pointerEvents="auto";function a(){var c=t.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);h!=t?t.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Ji.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Wo=function(){};Wo.prototype.update=function(){return{bottom:0,right:0}},Wo.prototype.setScrollLeft=function(){},Wo.prototype.setScrollTop=function(){},Wo.prototype.clear=function(){};function Fn(t,r){r||(r=Zo(t));var s=t.display.barWidth,a=t.display.barHeight;Eu(t,r);for(var c=0;c<4&&s!=t.display.barWidth||a!=t.display.barHeight;c++)s!=t.display.barWidth&&t.options.lineWrapping&&us(t),Eu(t,Zo(t)),s=t.display.barWidth,a=t.display.barHeight}function Eu(t,r){var s=t.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var _u={native:Ji,null:Wo};function Iu(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&X(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new _u[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Se(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Xi(t,r):Vo(t,r)},t),t.display.scrollbars.addClass&&ke(t.display.wrapper,t.display.scrollbars.addClass)}var B4=0;function Qi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++B4,markArrays:null},m4(t.curOp)}function en(t){var r=t.curOp;r&&C4(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;V4(s)})}function V4(t){for(var r=t.ops,s=0;s<r.length;s++)Z4(r[s]);for(var a=0;a<r.length;a++)W4(r[a]);for(var c=0;c<r.length;c++)U4(r[c]);for(var h=0;h<r.length;h++)j4(r[h]);for(var f=0;f<r.length;f++)G4(r[f])}function Z4(t){var r=t.cm,s=r.display;K4(r),t.updateMaxLine&&a1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<s.viewFrom||t.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new fs(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function W4(t){t.updatedDisplay=t.mustUpdate&&z1(t.cm,t.update)}function U4(t){var r=t.cm,s=r.display;t.updatedDisplay&&us(r),t.barMeasure=Zo(r),s.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=hu(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+t.adjustWidthTo+Ur(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+t.adjustWidthTo-Gi(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=s.input.prepareSelection())}function j4(t){var r=t.cm;t.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&Xi(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=t.focus&&t.focus==ye();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,s),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Fn(r,t.barMeasure),t.updatedDisplay&&M1(r,t.barMeasure),t.selectionChanged&&m1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),s&&Tu(t.cm)}function G4(t){var r=t.cm,s=r.display,a=r.doc;if(t.updatedDisplay&&Au(r,t.update),s.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),t.scrollTop!=null&&$u(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Xi(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=H4(r,de(a,t.scrollToPos.from),de(a,t.scrollToPos.to),t.scrollToPos.margin);N4(r,c)}var h=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(h)for(var p=0;p<h.length;++p)h[p].lines.length||Oe(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&Oe(f[g],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&Oe(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function Xt(t,r){if(t.curOp)return r();Qi(t);try{return r()}finally{en(t)}}function xt(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Qi(t);try{return r.apply(t,arguments)}finally{en(t)}}}function Nt(t){return function(){if(this.curOp)return t.apply(this,arguments);Qi(this);try{return t.apply(this,arguments)}finally{en(this)}}}function zt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Qi(r);try{return t.apply(this,arguments)}finally{en(r)}}}function Uo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Et(q4,t))}function q4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var s=+new Date+t.options.workTime,a=Ao(t,r.highlightFrontier),c=[];r.iter(a.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(a.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?sr(r.mode,a.state):null,g=F0(t,h,a,!0);p&&(a.state=p),h.styles=g.styles;var y=h.styleClasses,z=g.classes;z?h.styleClasses=z:y&&(h.styleClasses=null);for(var S=!f||f.length!=h.styles.length||y!=z&&(!y||!z||y.bgClass!=z.bgClass||y.textClass!=z.textClass),P=0;!S&&P<f.length;++P)S=f[P]!=h.styles[P];S&&c.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=t.options.maxHighlightLength&&e1(t,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return Uo(t,t.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),c.length&&Xt(t,function(){for(var h=0;h<c.length;h++)zi(t,c[h],"text")})}}var fs=function(t,r,s){var a=t.display;this.viewport=r,this.visible=ds(a,t.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Gi(t),this.force=s,this.dims=g1(t),this.events=[]};fs.prototype.signal=function(t,r){Tt(t,r)&&this.events.push(arguments)},fs.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Oe.apply(null,this.events[t])};function K4(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Ur(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Ur(t)+"px",r.scrollbarsClipped=!0)}function Y4(t){if(t.hasFocus())return null;var r=ye();if(!r||!ne(t.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ne(t.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function X4(t){if(!(!t||!t.activeElt||t.activeElt==ye())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ne(document.body,t.anchorNode)&&ne(document.body,t.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(t.focusNode,t.focusOffset)}}function z1(t,r){var s=t.display,a=t.doc;if(r.editorIsHidden)return Li(t),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&Lu(t)==0)return!1;Du(t)&&(Li(t),r.dims=g1(t));var c=a.first+a.size,h=Math.max(r.visible.from-t.options.viewportMargin,a.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>f&&s.viewTo-f<20&&(f=Math.min(c,s.viewTo)),ni&&(h=n1(t.doc,h),f=eu(t.doc,f));var p=h!=s.viewFrom||f!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;P4(t,h,f),s.viewOffset=oi(be(t.doc,s.viewFrom)),t.display.mover.style.top=s.viewOffset+"px";var g=Lu(t);if(!p&&g==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var y=Y4(t);return g>4&&(s.lineDiv.style.display="none"),J4(t,s.updateLineNumbers,r.dims),g>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,X4(y),V(s.cursorDiv),V(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,p&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Uo(t,400)),s.updateLineNumbers=null,!0}function Au(t,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!t.options.lineWrapping||r.oldDisplayWidth==Gi(t)){if(s&&s.top!=null&&(s={top:Math.min(t.doc.height+l1(t.display)-c1(t),s.top)}),r.visible=ds(t.display,t.doc,s),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else a&&(r.visible=ds(t.display,t.doc,s));if(!z1(t,r))break;us(t);var c=Zo(t);Fo(t),Fn(t,c),M1(t,c),r.force=!1}r.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function L1(t,r){var s=new fs(t,r);if(z1(t,s)){us(t),Au(t,s);var a=Zo(t);Fo(t),Fn(t,a),M1(t,a),s.finish()}}function J4(t,r,s){var a=t.display,c=t.options.lineNumbers,h=a.lineDiv,f=h.firstChild;function p(Z){var q=Z.nextSibling;return M&&B&&t.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),q}for(var g=a.view,y=a.viewFrom,z=0;z<g.length;z++){var S=g[z];if(!S.hidden)if(!S.node||S.node.parentNode!=h){var P=S4(t,S,y,s);h.insertBefore(P,f)}else{for(;f!=S.node;)f=p(f);var I=c&&r!=null&&r<=y&&S.lineNumber;S.changes&&(ge(S.changes,"gutter")>-1&&(I=!1),ou(t,S,y,s)),I&&(V(S.lineNumber),S.lineNumber.appendChild(document.createTextNode(Io(t.options,y)))),f=S.node.nextSibling}y+=S.size}for(;f;)f=p(f)}function S1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",wt(t,"gutterChanged",t)}function M1(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Ur(t)+"px"}function Pu(t){var r=t.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var a=v1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=a+"px",f=0;f<s.length;f++)if(!s[f].hidden){t.options.fixedGutter&&(s[f].gutter&&(s[f].gutter.style.left=h),s[f].gutterBackground&&(s[f].gutterBackground.style.left=h));var p=s[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=a+c+"px")}}function Du(t){if(!t.options.lineNumbers)return!1;var r=t.doc,s=Io(t.options,r.first+r.size-1),a=t.display;if(s.length!=a.lineNumChars){var c=a.measure.appendChild(x("div",[x("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-f)+1,a.lineNumWidth=a.lineNumInnerWidth+f,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",S1(t.display),!0}return!1}function T1(t,r){for(var s=[],a=!1,c=0;c<t.length;c++){var h=t[c],f=null;if(typeof h!="string"&&(f=h.style,h=h.className),h=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:h,style:f})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function Nu(t){var r=t.gutters,s=t.gutterSpecs;V(r),t.lineGutter=null;for(var a=0;a<s.length;++a){var c=s[a],h=c.className,f=c.style,p=r.appendChild(x("div",null,"CodeMirror-gutter "+h));f&&(p.style.cssText=f),h=="CodeMirror-linenumbers"&&(t.lineGutter=p,p.style.width=(t.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",S1(t)}function jo(t){Nu(t.display),Vt(t),Pu(t)}function Q4(t,r,s,a){var c=this;this.input=s,c.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=w("div",null,"CodeMirror-code"),c.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=x("div",null,"CodeMirror-cursors"),c.measure=x("div",null,"CodeMirror-measure"),c.lineMeasure=x("div",null,"CodeMirror-measure"),c.lineSpace=w("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=w("div",[c.lineSpace],"CodeMirror-lines");c.mover=x("div",[h],null,"position: relative"),c.sizer=x("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=x("div",null,null,"position: absolute; height: "+ve+"px; width: 1px;"),c.gutters=x("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=x("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=x("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),m&&b<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!M&&!(l&&A)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=r.first,c.reportedViewFrom=c.reportedViewTo=r.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=T1(a.gutters,a.lineNumbers),Nu(c),s.init(c)}var ps=0,cr=null;m?cr=-.53:l?cr=15:T?cr=-.7:N&&(cr=-1/3);function Hu(t){var r=t.wheelDeltaX,s=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),s==null&&t.detail&&t.axis==t.VERTICAL_AXIS?s=t.detail:s==null&&(s=t.wheelDelta),{x:r,y:s}}function e3(t){var r=Hu(t);return r.x*=cr,r.y*=cr,r}function Ru(t,r){var s=Hu(r),a=s.x,c=s.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(a&&p||c&&g){if(c&&B&&M){e:for(var y=r.target,z=h.view;y!=f;y=y.parentNode)for(var S=0;S<z.length;S++)if(z[S].node==y){t.display.currentWheelTarget=y;break e}}if(a&&!l&&!$&&cr!=null){c&&g&&Vo(t,Math.max(0,f.scrollTop+c*cr)),Xi(t,Math.max(0,f.scrollLeft+a*cr)),(!c||c&&g)&&_t(r),h.wheelStartX=null;return}if(c&&cr!=null){var P=c*cr,I=t.doc.scrollTop,Z=I+h.wrapper.clientHeight;P<0?I=Math.max(0,I+P-50):Z=Math.min(t.doc.height,Z+P+50),L1(t,{top:I,bottom:Z})}ps<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=a,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var q=f.scrollLeft-h.wheelStartX,te=f.scrollTop-h.wheelStartY,ae=te&&h.wheelDY&&te/h.wheelDY||q&&h.wheelDX&&q/h.wheelDX;h.wheelStartX=h.wheelStartY=null,ae&&(cr=(cr*ps+ae)/(ps+1),++ps)}},200)):(h.wheelDX+=a,h.wheelDY+=c))}}var ur=function(t,r){this.ranges=t,this.primIndex=r};ur.prototype.primary=function(){return this.ranges[this.primIndex]},ur.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=t.ranges[r];if(!k(s.anchor,a.anchor)||!k(s.head,a.head))return!1}return!0},ur.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Ge(G(this.ranges[r].anchor),G(this.ranges[r].head));return new ur(t,this.primIndex)},ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ur.prototype.contains=function(t,r){r||(r=t);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(C(r,a.from())>=0&&C(t,a.to())<=0)return s}return-1};var Ge=function(t,r){this.anchor=t,this.head=r};Ge.prototype.from=function(){return $e(this.anchor,this.head)},Ge.prototype.to=function(){return ee(this.anchor,this.head)},Ge.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zr(t,r,s){var a=t&&t.options.selectionsMayTouch,c=r[s];r.sort(function(P,I){return C(P.from(),I.from())}),s=ge(r,c);for(var h=1;h<r.length;h++){var f=r[h],p=r[h-1],g=C(p.to(),f.from());if(a&&!f.empty()?g>0:g>=0){var y=$e(p.from(),f.from()),z=ee(p.to(),f.to()),S=p.empty()?f.from()==f.head:p.from()==p.head;h<=s&&--s,r.splice(--h,2,new Ge(S?z:y,S?y:z))}}return new ur(r,s)}function Si(t,r){return new ur([new Ge(t,r||t)],0)}function Mi(t){return t.text?J(t.from.line+t.text.length-1,_e(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Fu(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Mi(r);var s=t.line+r.text.length-(r.to.line-r.from.line)-1,a=t.ch;return t.line==r.to.line&&(a+=Mi(r).ch-r.to.ch),J(s,a)}function k1(t,r){for(var s=[],a=0;a<t.sel.ranges.length;a++){var c=t.sel.ranges[a];s.push(new Ge(Fu(c.anchor,r),Fu(c.head,r)))}return zr(t.cm,s,t.sel.primIndex)}function Bu(t,r,s){return t.line==r.line?J(s.line,t.ch-r.ch+s.ch):J(s.line+(t.line-r.line),t.ch)}function t3(t,r,s){for(var a=[],c=J(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=Bu(p.from,c,h),y=Bu(Mi(p),c,h);if(c=p.to,h=y,s=="around"){var z=t.sel.ranges[f],S=C(z.head,z.anchor)<0;a[f]=new Ge(S?y:g,S?g:y)}else a[f]=new Ge(g,g)}return new ur(a,t.sel.primIndex)}function O1(t){t.doc.mode=En(t.options,t.doc.modeOption),Go(t)}function Go(t){t.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Uo(t,100),t.state.modeGen++,t.curOp&&Vt(t)}function Vu(t,r){return r.from.ch==0&&r.to.ch==0&&_e(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function $1(t,r,s,a){function c(he){return s?s[he]:null}function h(he,se,pe){c4(he,se,pe,a),wt(he,"change",he,r)}function f(he,se){for(var pe=[],Le=he;Le<se;++Le)pe.push(new In(y[Le],c(Le),a));return pe}var p=r.from,g=r.to,y=r.text,z=be(t,p.line),S=be(t,g.line),P=_e(y),I=c(y.length-1),Z=g.line-p.line;if(r.full)t.insert(0,f(0,y.length)),t.remove(y.length,t.size-y.length);else if(Vu(t,r)){var q=f(0,y.length-1);h(S,S.text,I),Z&&t.remove(p.line,Z),q.length&&t.insert(p.line,q)}else if(z==S)if(y.length==1)h(z,z.text.slice(0,p.ch)+P+z.text.slice(g.ch),I);else{var te=f(1,y.length-1);te.push(new In(P+z.text.slice(g.ch),I,a)),h(z,z.text.slice(0,p.ch)+y[0],c(0)),t.insert(p.line+1,te)}else if(y.length==1)h(z,z.text.slice(0,p.ch)+y[0]+S.text.slice(g.ch),c(0)),t.remove(p.line+1,Z);else{h(z,z.text.slice(0,p.ch)+y[0],c(0)),h(S,P+S.text.slice(g.ch),I);var ae=f(1,y.length-1);Z>1&&t.remove(p.line+1,Z-1),t.insert(p.line+1,ae)}wt(t,"change",t,r)}function Ti(t,r,s){function a(c,h,f){if(c.linked)for(var p=0;p<c.linked.length;++p){var g=c.linked[p];if(g.doc!=h){var y=f&&g.sharedHist;s&&!y||(r(g.doc,y),a(g.doc,c,y))}}}a(t,null,!0)}function Zu(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,b1(t),O1(t),Wu(t),t.options.direction=r.direction,t.options.lineWrapping||a1(t),t.options.mode=r.modeOption,Vt(t)}function Wu(t){(t.doc.direction=="rtl"?ke:X)(t.display.lineDiv,"CodeMirror-rtl")}function r3(t){Xt(t,function(){Wu(t),Vt(t)})}function gs(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function E1(t,r){var s={from:G(r.from),to:Mi(r),text:Br(t,r.from,r.to)};return Gu(t,s,r.from.line,r.to.line+1),Ti(t,function(a){return Gu(a,s,r.from.line,r.to.line+1)},!0),s}function Uu(t){for(;t.length;){var r=_e(t);if(r.ranges)t.pop();else break}}function i3(t,r){if(r)return Uu(t.done),_e(t.done);if(t.done.length&&!_e(t.done).ranges)return _e(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),_e(t.done)}function ju(t,r,s,a){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==a||c.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&c.lastModTime>h-(t.cm?t.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(f=i3(c,c.lastOp==a)))p=_e(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Mi(r):f.changes.push(E1(t,r));else{var g=_e(c.done);for((!g||!g.ranges)&&vs(t.sel,c.done),f={changes:[E1(t,r)],generation:c.generation},c.done.push(f);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(s),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=r.origin,p||Oe(t,"historyAdded")}function n3(t,r,s,a){var c=r.charAt(0);return c=="*"||c=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function o3(t,r,s,a){var c=t.history,h=a&&a.origin;s==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||n3(t,h,_e(c.done),r))?c.done[c.done.length-1]=r:vs(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=s,a&&a.clearRedo!==!1&&Uu(c.undone)}function vs(t,r){var s=_e(r);s&&s.ranges&&s.equals(t)||r.push(t)}function Gu(t,r,s,a){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,s),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function a3(t){if(!t)return null;for(var r,s=0;s<t.length;++s)t[s].marker.explicitlyCleared?r||(r=t.slice(0,s)):r&&r.push(t[s]);return r?r.length?r:null:t}function s3(t,r){var s=r["spans_"+t.id];if(!s)return null;for(var a=[],c=0;c<r.text.length;++c)a.push(a3(s[c]));return a}function qu(t,r){var s=s3(t,r),a=r1(t,r);if(!s)return a;if(!a)return s;for(var c=0;c<s.length;++c){var h=s[c],f=a[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],y=0;y<h.length;++y)if(h[y].marker==g.marker)continue e;h.push(g)}else f&&(s[c]=f)}return s}function Bn(t,r,s){for(var a=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){a.push(s?ur.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];a.push({changes:p});for(var g=0;g<f.length;++g){var y=f[g],z=void 0;if(p.push({from:y.from,to:y.to,text:y.text}),r)for(var S in y)(z=S.match(/^spans_(\d+)$/))&&ge(r,Number(z[1]))>-1&&(_e(p)[S]=y[S],delete y[S])}}return a}function _1(t,r,s,a){if(a){var c=t.anchor;if(s){var h=C(r,c)<0;h!=C(s,c)<0?(c=r,r=s):h!=C(r,s)<0&&(r=s)}return new Ge(c,r)}else return new Ge(s||r,r)}function bs(t,r,s,a,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),At(t,new ur([_1(t.sel.primary(),r,s,c)],0),a)}function Ku(t,r,s){for(var a=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)a[h]=_1(t.sel.ranges[h],r[h],null,c);var f=zr(t.cm,a,t.sel.primIndex);At(t,f,s)}function I1(t,r,s,a){var c=t.sel.ranges.slice(0);c[r]=s,At(t,zr(t.cm,c,t.sel.primIndex),a)}function Yu(t,r,s,a){At(t,Si(r,s),a)}function l3(t,r,s){var a={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Ge(de(t,c[h].anchor),de(t,c[h].head))},origin:s&&s.origin};return Oe(t,"beforeSelectionChange",t,a),t.cm&&Oe(t.cm,"beforeSelectionChange",t.cm,a),a.ranges!=r.ranges?zr(t.cm,a.ranges,a.ranges.length-1):r}function Xu(t,r,s){var a=t.history.done,c=_e(a);c&&c.ranges?(a[a.length-1]=r,ms(t,r,s)):At(t,r,s)}function At(t,r,s){ms(t,r,s),o3(t,t.sel,t.cm?t.cm.curOp.id:NaN,s)}function ms(t,r,s){(Tt(t,"beforeSelectionChange")||t.cm&&Tt(t.cm,"beforeSelectionChange"))&&(r=l3(t,r,s));var a=s&&s.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);Ju(t,ed(t,r,a,!0)),!(s&&s.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Rn(t.cm)}function Ju(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,kn(t.cm)),wt(t,"cursorActivity",t))}function Qu(t){Ju(t,ed(t,t.sel,null,!1))}function ed(t,r,s,a){for(var c,h=0;h<r.ranges.length;h++){var f=r.ranges[h],p=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[h],g=ys(t,f.anchor,p&&p.anchor,s,a),y=ys(t,f.head,p&&p.head,s,a);(c||g!=f.anchor||y!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Ge(g,y))}return c?zr(t.cm,c,r.primIndex):r}function Vn(t,r,s,a,c){var h=be(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,y="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,z="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(y?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(z?p.to>=r.ch:p.to>r.ch))){if(c&&(Oe(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(s){var S=g.find(a<0?1:-1),P=void 0;if((a<0?z:y)&&(S=td(t,S,-a,S&&S.line==r.line?h:null)),S&&S.line==r.line&&(P=C(S,s))&&(a<0?P<0:P>0))return Vn(t,S,r,a,c)}var I=g.find(a<0?-1:1);return(a<0?y:z)&&(I=td(t,I,a,I.line==r.line?h:null)),I?Vn(t,I,r,a,c):null}}return r}function ys(t,r,s,a,c){var h=a||1,f=Vn(t,r,s,h,c)||!c&&Vn(t,r,s,h,!0)||Vn(t,r,s,-h,c)||!c&&Vn(t,r,s,-h,!0);return f||(t.cantEdit=!0,J(t.first,0))}function td(t,r,s,a){return s<0&&r.ch==0?r.line>t.first?de(t,J(r.line-1)):null:s>0&&r.ch==(a||be(t,r.line)).text.length?r.line<t.first+t.size-1?J(r.line+1,0):null:new J(r.line,r.ch+s)}function rd(t){t.setSelection(J(t.firstLine(),0),J(t.lastLine()),De)}function id(t,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(c,h,f,p){c&&(a.from=de(t,c)),h&&(a.to=de(t,h)),f&&(a.text=f),p!==void 0&&(a.origin=p)}),Oe(t,"beforeChange",t,a),t.cm&&Oe(t.cm,"beforeChange",t.cm,a),a.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Zn(t,r,s){if(t.cm){if(!t.cm.curOp)return xt(t.cm,Zn)(t,r,s);if(t.cm.state.suppressEdits)return}if(!((Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"))&&(r=id(t,r,!0),!r))){var a=G0&&!s&&o4(t,r.from,r.to);if(a)for(var c=a.length-1;c>=0;--c)nd(t,{from:a[c].from,to:a[c].to,text:c?[""]:r.text,origin:r.origin});else nd(t,r)}}function nd(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var s=k1(t,r);ju(t,r,s,t.cm?t.cm.curOp.id:NaN),qo(t,r,s,r1(t,r));var a=[];Ti(t,function(c,h){!h&&ge(a,c.history)==-1&&(ld(c.history,r),a.push(c.history)),qo(c,r,null,r1(c,r))})}}function Cs(t,r,s){var a=t.cm&&t.cm.state.suppressEdits;if(!(a&&!s)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,y=0;y<p.length&&(h=p[y],!(s?h.ranges&&!h.equals(t.sel):!h.ranges));y++);if(y!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(vs(h,g),s&&!h.equals(t.sel)){At(t,h,{clearRedo:!1});return}f=h}else if(a){p.push(h);return}else break;var z=[];vs(f,g),g.push({changes:z,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var S=Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"),P=function(q){var te=h.changes[q];if(te.origin=r,S&&!id(t,te,!1))return p.length=0,{};z.push(E1(t,te));var ae=q?k1(t,te):_e(p);qo(t,te,ae,qu(t,te)),!q&&t.cm&&t.cm.scrollIntoView({from:te.from,to:Mi(te)});var he=[];Ti(t,function(se,pe){!pe&&ge(he,se.history)==-1&&(ld(se.history,te),he.push(se.history)),qo(se,te,null,qu(se,te))})},I=h.changes.length-1;I>=0;--I){var Z=P(I);if(Z)return Z.v}}}}function od(t,r){if(r!=0&&(t.first+=r,t.sel=new ur(Ve(t.sel.ranges,function(c){return new Ge(J(c.anchor.line+r,c.anchor.ch),J(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Vt(t.cm,t.first,t.first-r,r);for(var s=t.cm.display,a=s.viewFrom;a<s.viewTo;a++)zi(t.cm,a,"gutter")}}function qo(t,r,s,a){if(t.cm&&!t.cm.curOp)return xt(t.cm,qo)(t,r,s,a);if(r.to.line<t.first){od(t,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var c=r.text.length-1-(t.first-r.from.line);od(t,c),r={from:J(t.first,0),to:J(r.to.line+c,r.to.ch),text:[_e(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:J(h,be(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Br(t,r.from,r.to),s||(s=k1(t,r)),t.cm?c3(t.cm,r,a):$1(t,r,a),ms(t,s,De),t.cantEdit&&ys(t,J(t.firstLine(),0))&&(t.cantEdit=!1)}}function c3(t,r,s){var a=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=je(Wr(be(a,h.line))),a.iter(g,f.line+1,function(I){if(I==c.maxLine)return p=!0,!0})),a.sel.contains(r.from,r.to)>-1&&kn(t),$1(a,r,s,zu(t)),t.options.lineWrapping||(a.iter(g,h.line+r.text.length,function(I){var Z=is(I);Z>c.maxLineLength&&(c.maxLine=I,c.maxLineLength=Z,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),J6(a,h.line),Uo(t,400);var y=r.text.length-(f.line-h.line)-1;r.full?Vt(t):h.line==f.line&&r.text.length==1&&!Vu(t.doc,r)?zi(t,h.line,"text"):Vt(t,h.line,f.line+1,y);var z=Tt(t,"changes"),S=Tt(t,"change");if(S||z){var P={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};S&&wt(t,"change",t,P),z&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(P)}t.display.selForContextMenu=null}function Wn(t,r,s,a,c){var h;a||(a=s),C(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Zn(t,{from:s,to:a,text:r,origin:c})}function ad(t,r,s,a){s<t.line?t.line+=a:r<t.line&&(t.line=r,t.ch=0)}function sd(t,r,s,a){for(var c=0;c<t.length;++c){var h=t[c],f=!0;if(h.ranges){h.copied||(h=t[c]=h.deepCopy(),h.copied=!0);for(var p=0;p<h.ranges.length;p++)ad(h.ranges[p].anchor,r,s,a),ad(h.ranges[p].head,r,s,a);continue}for(var g=0;g<h.changes.length;++g){var y=h.changes[g];if(s<y.from.line)y.from=J(y.from.line+a,y.from.ch),y.to=J(y.to.line+a,y.to.ch);else if(r<=y.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function ld(t,r){var s=r.from.line,a=r.to.line,c=r.text.length-(a-s)-1;sd(t.done,s,a,c),sd(t.undone,s,a,c)}function Ko(t,r,s,a){var c=r,h=r;return typeof r=="number"?h=be(t,Fe(t,r)):c=je(r),c==null?null:(a(h,c)&&t.cm&&zi(t.cm,c,s),h)}function Yo(t){this.lines=t,this.parent=null;for(var r=0,s=0;s<t.length;++s)t[s].parent=this,r+=t[s].height;this.height=r}Yo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var s=t,a=t+r;s<a;++s){var c=this.lines[s];this.height-=c.height,u4(c),wt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,s){this.height+=s,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(t,r,s){for(var a=t+r;t<a;++t)if(s(this.lines[t]))return!0}};function Xo(t){this.children=t;for(var r=0,s=0,a=0;a<t.length;++a){var c=t[a];r+=c.chunkSize(),s+=c.height,c.parent=this}this.size=r,this.height=s,this.parent=null}Xo.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],c=a.chunkSize();if(t<c){var h=Math.min(r,c-t),f=a.height;if(a.removeInner(t,h),this.height-=f-a.height,c==h&&(this.children.splice(s--,1),a.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Yo))){var p=[];this.collapse(p),this.children=[new Yo(p)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,s),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new Yo(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++a,0,g),g.parent=this}c.lines=c.lines.slice(0,f),this.maybeSpill()}break}t-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=t.children.splice(t.children.length-5,5),s=new Xo(r);if(t.parent){t.size-=s.size,t.height-=s.height;var c=ge(t.parent.children,t);t.parent.children.splice(c+1,0,s)}else{var a=new Xo(t.children);a.parent=t,t.children=[a,s],t=a}s.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,s){for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,s))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Jo=function(t,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=t,this.node=r};Jo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,s=this.line,a=je(s);if(!(a==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(s.widgets=null);var h=Ho(this);Yt(s,Math.max(0,s.height-h)),t&&(Xt(t,function(){cd(t,s,-h),zi(t,a,"widget")}),wt(t,"lineWidgetCleared",t,this,a))}},Jo.prototype.changed=function(){var t=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var c=Ho(this)-r;c&&(xi(this.doc,a)||Yt(a,a.height+c),s&&Xt(s,function(){s.curOp.forceUpdate=!0,cd(s,a,c),wt(s,"lineWidgetChanged",s,t,je(a))}))},Rr(Jo);function cd(t,r,s){oi(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&x1(t,s)}function u3(t,r,s,a){var c=new Jo(t,s,a),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),Ko(t,r,"widget",function(f){var p=f.widgets||(f.widgets=[]);if(c.insertAt==null?p.push(c):p.splice(Math.min(p.length,Math.max(0,c.insertAt)),0,c),c.line=f,h&&!xi(t,f)){var g=oi(f)<t.scrollTop;Yt(f,f.height+Ho(c)),g&&x1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&wt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:je(r)),c}var ud=0,ki=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++ud};ki.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Qi(t),Tt(this,"clear")){var s=this.find();s&&wt(this,"clear",s.from,s.to)}for(var a=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Po(f.markedSpans,this);t&&!this.collapsed?zi(t,je(f),"text"):t&&(p.to!=null&&(c=je(f)),p.from!=null&&(a=je(f))),f.markedSpans=t4(f.markedSpans,p),p.from==null&&this.collapsed&&!xi(this.doc,f)&&t&&Yt(f,Dn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var y=Wr(this.lines[g]),z=is(y);z>t.display.maxLineLength&&(t.display.maxLine=y,t.display.maxLineLength=z,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&Vt(t,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Qu(t.doc)),t&&wt(t,"markerCleared",t,this,a,c),r&&en(t),this.parent&&this.parent.clear()}},ki.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var s,a,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Po(h.markedSpans,this);if(f.from!=null&&(s=J(r?h:je(h),f.from),t==-1))return s;if(f.to!=null&&(a=J(r?h:je(h),f.to),t==1))return a}return s&&{from:s,to:a}},ki.prototype.changed=function(){var t=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||Xt(a,function(){var c=r.line,h=je(r.line),f=u1(a,h);if(f&&(gu(f),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!xi(s.doc,c)&&s.height!=null){var p=s.height;s.height=null;var g=Ho(s)-p;g&&Yt(c,c.height+g)}wt(a,"markerChanged",a,t)})},ki.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ge(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ki.prototype.detachLine=function(t){if(this.lines.splice(ge(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Rr(ki);function Un(t,r,s,a,c){if(a&&a.shared)return d3(t,r,s,a,c);if(t.cm&&!t.cm.curOp)return xt(t.cm,Un)(t,r,s,a,c);var h=new ki(t,c),f=C(r,s);if(a&&Ye(a,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=w("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(Q0(t,r.line,r,s,h)||r.line!=s.line&&Q0(t,s.line,r,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");e4()}h.addToHistory&&ju(t,{from:r,to:s,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,y;if(t.iter(p,s.line+1,function(S){g&&h.collapsed&&!g.options.lineWrapping&&Wr(S)==g.display.maxLine&&(y=!0),h.collapsed&&p!=r.line&&Yt(S,0),r4(S,new Qa(h,p==r.line?r.ch:null,p==s.line?s.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,s.line+1,function(S){xi(t,S)&&Yt(S,0)}),h.clearOnEnter&&Se(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(Q6(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++ud,h.atomic=!0),g){if(y&&(g.curOp.updateMaxLine=!0),h.collapsed)Vt(g,r.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=r.line;z<=s.line;z++)zi(g,z,"text");h.atomic&&Qu(g.doc),wt(g,"markerAdded",g,h)}return h}var Qo=function(t,r){this.markers=t,this.primary=r;for(var s=0;s<t.length;++s)t[s].parent=this};Qo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();wt(this,"clear")}},Qo.prototype.find=function(t,r){return this.primary.find(t,r)},Rr(Qo);function d3(t,r,s,a,c){a=Ye(a),a.shared=!1;var h=[Un(t,r,s,a,c)],f=h[0],p=a.widgetNode;return Ti(t,function(g){p&&(a.widgetNode=p.cloneNode(!0)),h.push(Un(g,de(g,r),de(g,s),a,c));for(var y=0;y<g.linked.length;++y)if(g.linked[y].isParent)return;f=_e(h)}),new Qo(h,f)}function dd(t){return t.findMarks(J(t.first,0),t.clipPos(J(t.lastLine())),function(r){return r.parent})}function h3(t,r){for(var s=0;s<r.length;s++){var a=r[s],c=a.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Un(t,h,f,a.primary,a.primary.type);a.markers.push(p),p.parent=a}}}function f3(t){for(var r=function(a){var c=t[a],h=[c.primary.doc];Ti(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];ge(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},s=0;s<t.length;s++)r(s)}var p3=0,Zt=function(t,r,s,a,c){if(!(this instanceof Zt))return new Zt(t,r,s,a,c);s==null&&(s=0),Xo.call(this,[new Yo([new In("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=J(s,0);this.sel=Si(h),this.history=new gs(null),this.id=++p3,this.modeOption=r,this.lineSep=a,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),$1(this,{from:h,to:h,text:t}),At(this,Si(h),De)};Zt.prototype=et(Xo.prototype,{constructor:Zt,iter:function(t,r,s){s?this.iterN(t-this.first,r-t,s):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(t-this.first,r,s)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=_o(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:zt(function(t){var r=J(this.first,0),s=this.first+this.size-1;Zn(this,{from:r,to:J(s,be(this,s).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Bo(this.cm,0,0),At(this,Si(r),De)}),replaceRange:function(t,r,s,a){r=de(this,r),s=s?de(this,s):r,Wn(this,t,r,s,a)},getRange:function(t,r,s){var a=Br(this,de(this,t),de(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(ji(this,t))return be(this,t)},getLineNumber:function(t){return je(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=be(this,t)),Wr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return de(this,t)},getCursor:function(t){var r=this.sel.primary(),s;return t==null||t=="head"?s=r.head:t=="anchor"?s=r.anchor:t=="end"||t=="to"||t===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zt(function(t,r,s){Yu(this,de(this,typeof t=="number"?J(t,r||0):t),null,s)}),setSelection:zt(function(t,r,s){Yu(this,de(this,t),de(this,r||t),s)}),extendSelection:zt(function(t,r,s){bs(this,de(this,t),r&&de(this,r),s)}),extendSelections:zt(function(t,r){Ku(this,lr(this,t),r)}),extendSelectionsBy:zt(function(t,r){var s=Ve(this.sel.ranges,t);Ku(this,lr(this,s),r)}),setSelections:zt(function(t,r,s){if(t.length){for(var a=[],c=0;c<t.length;c++)a[c]=new Ge(de(this,t[c].anchor),de(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),At(this,zr(this.cm,a,r),s)}}),addSelection:zt(function(t,r,s){var a=this.sel.ranges.slice(0);a.push(new Ge(de(this,t),de(this,r||t))),At(this,zr(this.cm,a,a.length-1),s)}),getSelection:function(t){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var c=Br(this,r[a].from(),r[a].to());s=s?s.concat(c):c}return t===!1?s:s.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var c=Br(this,s[a].from(),s[a].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[a]=c}return r},replaceSelection:function(t,r,s){for(var a=[],c=0;c<this.sel.ranges.length;c++)a[c]=t;this.replaceSelections(a,r,s||"+input")},replaceSelections:zt(function(t,r,s){for(var a=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];a[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:s}}for(var p=r&&r!="end"&&t3(this,a,r),g=a.length-1;g>=0;g--)Zn(this,a[g]);p?Xu(this,p):this.cm&&Rn(this.cm)}),undo:zt(function(){Cs(this,"undo")}),redo:zt(function(){Cs(this,"redo")}),undoSelection:zt(function(){Cs(this,"undo",!0)}),redoSelection:zt(function(){Cs(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,s=0,a=0;a<t.done.length;a++)t.done[a].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var t=this;this.history=new gs(this.history),Ti(this,function(r){return r.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Bn(this.history.done),undone:Bn(this.history.undone)}},setHistory:function(t){var r=this.history=new gs(this.history);r.done=Bn(t.done.slice(0),null,!0),r.undone=Bn(t.undone.slice(0),null,!0)},setGutterMarker:zt(function(t,r,s){return Ko(this,t,"gutter",function(a){var c=a.gutterMarkers||(a.gutterMarkers={});return c[r]=s,!s&&re(c)&&(a.gutterMarkers=null),!0})}),clearGutter:zt(function(t){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[t]&&Ko(r,s,"gutter",function(){return s.gutterMarkers[t]=null,re(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!ji(this,t)||(r=t,t=be(this,t),!t))return null}else if(r=je(t),r==null)return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:zt(function(t,r,s){return Ko(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[c])a[c]=s;else{if(ie(s).test(a[c]))return!1;a[c]+=" "+s}return!0})}),removeLineClass:zt(function(t,r,s){return Ko(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=a[c];if(h)if(s==null)a[c]=null;else{var f=h.match(ie(s));if(!f)return!1;var p=f.index+f[0].length;a[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:zt(function(t,r,s){return u3(this,t,r,s)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,s){return Un(this,de(this,t),de(this,r),s,s&&s.type||"range")},setBookmark:function(t,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=de(this,t),Un(this,t,t,s,"bookmark")},findMarksAt:function(t){t=de(this,t);var r=[],s=be(this,t.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&r.push(c.marker.parent||c.marker)}return r},findMarks:function(t,r,s){t=de(this,t),r=de(this,r);var a=[],c=t.line;return this.iter(t.line,r.line+1,function(h){var f=h.markedSpans;if(f)for(var p=0;p<f.length;p++){var g=f[p];!(g.to!=null&&c==t.line&&t.ch>=g.to||g.from==null&&c!=t.line||g.from!=null&&c==r.line&&g.from>=r.ch)&&(!s||s(g.marker))&&a.push(g.marker.parent||g.marker)}++c}),a},getAllMarks:function(){var t=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&t.push(s[a].marker)}),t},posFromIndex:function(t){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+a;if(h>t)return r=t,!0;t-=h,++s}),de(this,J(s,r))},indexFromPos:function(t){t=de(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,t.line,function(a){r+=a.text.length+s}),r},copy:function(t){var r=new Zt(_o(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,s=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<s&&(s=t.to);var a=new Zt(_o(this,r,s),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:t.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],h3(a,dd(this)),a},unlinkDoc:function(t){if(t instanceof tt&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),f3(dd(this));break}}if(t.history==this.history){var a=[t.id];Ti(t,function(c){return a.push(c.id)},!0),t.history=new gs(null),t.history.done=Bn(this.history.done,a),t.history.undone=Bn(this.history.undone,a)}},iterLinkedDocs:function(t){Ti(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):ko(t)},lineSeparator:function(){return this.lineSep||`
2999
- `},setDirection:zt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(r){return r.order=null}),this.cm&&r3(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var hd=0;function g3(t){var r=this;if(fd(r),!(ft(r,t)||ai(r.display,t))){_t(t),m&&(hd=+new Date);var s=Ki(r,t,!0),a=t.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var c=a.length,h=Array(c),f=0,p=function(){++f==c&&xt(r,function(){s=de(r.doc,s);var I={from:s,to:s,text:r.doc.splitLines(h.filter(function(Z){return Z!=null}).join(r.doc.lineSeparator())),origin:"paste"};Zn(r.doc,I),Xu(r.doc,Si(de(r.doc,s),de(r.doc,Mi(I))))})()},g=function(I,Z){if(r.options.allowDropFileTypes&&ge(r.options.allowDropFileTypes,I.type)==-1){p();return}var q=new FileReader;q.onerror=function(){return p()},q.onload=function(){var te=q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(te)){p();return}h[Z]=te,p()},q.readAsText(I)},y=0;y<a.length;y++)g(a[y],y);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var z=t.dataTransfer.getData("Text");if(z){var S;if(r.state.draggingText&&!r.state.draggingText.copy&&(S=r.listSelections()),ms(r.doc,Si(s,s)),S)for(var P=0;P<S.length;++P)Wn(r.doc,"",S[P].anchor,S[P].head,"drag");r.replaceSelection(z,"around","paste"),r.display.input.focus()}}catch{}}}}function v3(t,r){if(m&&(!t.state.draggingText||+new Date-hd<100)){Ui(r);return}if(!(ft(t,r)||ai(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!N)){var s=x("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(s.width=s.height=1,t.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),$&&s.parentNode.removeChild(s)}}function b3(t,r){var s=Ki(t,r);if(s){var a=document.createDocumentFragment();Mu(t,s,a),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),O(t.display.dragCursor,a)}}function fd(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function pd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var c=r[a].CodeMirror;c&&s.push(c)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)t(s[h])})}}var gd=!1;function m3(){gd||(y3(),gd=!0)}function y3(){var t;Se(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,pd(C3)},100))}),Se(window,"blur",function(){return pd(Hn)})}function C3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var Oi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ea=0;ea<10;ea++)Oi[ea+48]=Oi[ea+96]=String(ea);for(var ws=65;ws<=90;ws++)Oi[ws]=String.fromCharCode(ws);for(var ta=1;ta<=12;ta++)Oi[ta+111]=Oi[ta+63235]="F"+ta;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=B?si.macDefault:si.pcDefault;function w3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var s,a,c,h,f=0;f<r.length-1;f++){var p=r[f];if(/^(cmd|meta|m)$/i.test(p))h=!0;else if(/^a(lt)?$/i.test(p))s=!0;else if(/^(c|ctrl|control)$/i.test(p))a=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return s&&(t="Alt-"+t),a&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function x3(t){var r={};for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete t[s];continue}for(var c=Ve(s.split(" "),w3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=a):(p=c.slice(0,h+1).join(" "),f="...");var g=r[p];if(!g)r[p]=f;else if(g!=f)throw new Error("Inconsistent bindings for "+p)}delete t[s]}for(var y in r)t[y]=r[y];return t}function jn(t,r,s,a){r=xs(r);var c=r.call?r.call(t,a):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&s(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return jn(t,r.fallthrough,s,a);for(var h=0;h<r.fallthrough.length;h++){var f=jn(t,r.fallthrough[h],s,a);if(f)return f}}}function vd(t){var r=typeof t=="string"?t:Oi[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function bd(t,r,s){var a=t;return r.altKey&&a!="Alt"&&(t="Alt-"+t),(me?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(t="Ctrl-"+t),(me?r.ctrlKey:r.metaKey)&&a!="Mod"&&(t="Cmd-"+t),!s&&r.shiftKey&&a!="Shift"&&(t="Shift-"+t),t}function md(t,r){if($&&t.keyCode==34&&t.char)return!1;var s=Oi[t.keyCode];return s==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(s=t.code),bd(s,t,r))}function xs(t){return typeof t=="string"?si[t]:t}function Gn(t,r){for(var s=t.doc.sel.ranges,a=[],c=0;c<s.length;c++){for(var h=r(s[c]);a.length&&C(h.from,_e(a).to)<=0;){var f=a.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}a.push(h)}Xt(t,function(){for(var p=a.length-1;p>=0;p--)Wn(t.doc,"",a[p].from,a[p].to,"+delete");Rn(t)})}function A1(t,r,s){var a=Dt(t.text,r+s,s);return a<0||a>t.text.length?null:a}function P1(t,r,s){var a=A1(t,r.ch,s);return a==null?null:new J(r.line,a,s<0?"after":"before")}function D1(t,r,s,a,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=Kt(s,r.doc.direction);if(h){var f=c<0?_e(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",y;if(f.level>0||r.doc.direction=="rtl"){var z=Pn(r,s);y=c<0?s.text.length-1:0;var S=jr(r,z,y).top;y=Hr(function(P){return jr(r,z,P).top==S},c<0==(f.level==1)?f.from:f.to-1,y),g=="before"&&(y=A1(s,y,1))}else y=c<0?f.to:f.from;return new J(a,y,g)}}return new J(a,c<0?s.text.length:0,c<0?"before":"after")}function z3(t,r,s,a){var c=Kt(r,t.doc.direction);if(!c)return P1(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=at(c,s.ch,s.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(a>0?f.to>s.ch:f.from<s.ch))return P1(r,s,a);var p=function(ae,he){return A1(r,ae instanceof J?ae.ch:ae,he)},g,y=function(ae){return t.options.lineWrapping?(g=g||Pn(t,r),xu(t,r,g,ae)):{begin:0,end:r.text.length}},z=y(s.sticky=="before"?p(s,-1):s.ch);if(t.doc.direction=="rtl"||f.level==1){var S=f.level==1==a<0,P=p(s,S?1:-1);if(P!=null&&(S?P<=f.to&&P<=z.end:P>=f.from&&P>=z.begin)){var I=S?"before":"after";return new J(s.line,P,I)}}var Z=function(ae,he,se){for(var pe=function(Je,Lt){return Lt?new J(s.line,p(Je,1),"before"):new J(s.line,Je,"after")};ae>=0&&ae<c.length;ae+=he){var Le=c[ae],xe=he>0==(Le.level!=1),Pe=xe?se.begin:p(se.end,-1);if(Le.from<=Pe&&Pe<Le.to||(Pe=xe?Le.from:p(Le.to,-1),se.begin<=Pe&&Pe<se.end))return pe(Pe,xe)}},q=Z(h+a,a,z);if(q)return q;var te=a>0?z.end:p(z.begin,-1);return te!=null&&!(a>0&&te==r.text.length)&&(q=Z(a>0?0:c.length-1,a,y(te)),q)?q:null}var ra={selectAll:rd,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),De)},killLine:function(t){return Gn(t,function(r){if(r.empty()){var s=be(t.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<t.lastLine()?{from:r.head,to:J(r.head.line+1,0)}:{from:r.head,to:J(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Gn(t,function(r){return{from:J(r.from().line,0),to:de(t.doc,J(r.to().line+1,0))}})},delLineLeft:function(t){return Gn(t,function(r){return{from:J(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Gn(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(t){return Gn(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(J(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(J(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return yd(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return Cd(t,r.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(r){return L3(t,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div")},Te)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:s},"div")},Te)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return a.ch<t.getLine(a.line).search(/\S/)?Cd(t,r.head):a},Te)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var r=[],s=t.listSelections(),a=t.options.tabSize,c=0;c<s.length;c++){var h=s[c].from(),f=Xe(t.getLine(h.line),h.ch,a);r.push(ir(a-f%a))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Xt(t,function(){for(var r=t.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var c=r[a].head,h=be(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new J(c.line,c.ch-1)),c.ch>0)c=new J(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),J(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=be(t.doc,c.line-1).text;f&&(c=new J(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),J(c.line-1,f.length-1),c,"+transpose"))}}s.push(new Ge(c,c))}t.setSelections(s)})},newlineAndIndent:function(t){return Xt(t,function(){for(var r=t.listSelections(),s=r.length-1;s>=0;s--)t.replaceRange(t.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=t.listSelections();for(var a=0;a<r.length;a++)t.indentLine(r[a].from().line,null,!0);Rn(t)})},openLine:function(t){return t.replaceSelection(`
3000
- `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function yd(t,r){var s=be(t.doc,r),a=Wr(s);return a!=s&&(r=je(a)),D1(!0,t,a,r,1)}function L3(t,r){var s=be(t.doc,r),a=s4(s);return a!=s&&(r=je(a)),D1(!0,t,s,r,-1)}function Cd(t,r){var s=yd(t,r.line),a=be(t.doc,s.line),c=Kt(a,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),f=r.line==s.line&&r.ch<=h&&r.ch;return J(s.line,f?0:h,s.sticky)}return s}function zs(t,r,s){if(typeof r=="string"&&(r=ra[r],!r))return!1;t.display.input.ensurePolled();var a=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),s&&(t.display.shift=!1),c=r(t)!=Ie}finally{t.display.shift=a,t.state.suppressEdits=!1}return c}function S3(t,r,s){for(var a=0;a<t.state.keyMaps.length;a++){var c=jn(r,t.state.keyMaps[a],s,t);if(c)return c}return t.options.extraKeys&&jn(r,t.options.extraKeys,s,t)||jn(r,t.options.keyMap,s,t)}var M3=new Be;function ia(t,r,s,a){var c=t.state.keySeq;if(c){if(vd(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:M3.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),wd(t,c+" "+r,s,a))return!0}return wd(t,r,s,a)}function wd(t,r,s,a){var c=S3(t,r,a);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&wt(t,"keyHandled",t,r,s),(c=="handled"||c=="multi")&&(_t(s),m1(t)),!!c}function xd(t,r){var s=md(r,!0);return s?r.shiftKey&&!t.state.keySeq?ia(t,"Shift-"+s,r,function(a){return zs(t,a,!0)})||ia(t,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return zs(t,a)}):ia(t,s,r,function(a){return zs(t,a)}):!1}function T3(t,r,s){return ia(t,"'"+s+"'",r,function(a){return zs(t,a,!0)})}var N1=null;function zd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=ye(),!ft(r,t))){m&&b<11&&t.keyCode==27&&(t.returnValue=!1);var s=t.keyCode;r.display.shift=s==16||t.shiftKey;var a=xd(r,t);$&&(N1=a?s:null,!a&&s==88&&!Xa&&(B?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!B&&!a&&s==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&k3(r)}}function k3(t){var r=t.display.lineDiv;ke(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(X(r,"CodeMirror-crosshair"),Ft(document,"keyup",s),Ft(document,"mouseover",s))}Se(document,"keyup",s),Se(document,"mouseover",s)}function Ld(t){t.keyCode==16&&(this.doc.sel.shift=!1),ft(this,t)}function Sd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(ai(r.display,t)||ft(r,t)||t.ctrlKey&&!t.altKey||B&&t.metaKey)){var s=t.keyCode,a=t.charCode;if($&&s==N1){N1=null,_t(t);return}if(!($&&(!t.which||t.which<10)&&xd(r,t))){var c=String.fromCharCode(a==null?s:a);c!="\b"&&(T3(r,t,c)||r.display.input.onKeyPress(t))}}}var O3=400,H1=function(t,r,s){this.time=t,this.pos=r,this.button=s};H1.prototype.compare=function(t,r,s){return this.time+O3>t&&C(r,this.pos)==0&&s==this.button};var na,oa;function $3(t,r){var s=+new Date;return oa&&oa.compare(s,t,r)?(na=oa=null,"triple"):na&&na.compare(s,t,r)?(oa=new H1(s,t,r),na=null,"double"):(na=new H1(s,t,r),oa=null,"single")}function Md(t){var r=this,s=r.display;if(!(ft(r,t)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=t.shiftKey,ai(s,t)){M||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!R1(r,t)){var a=Ki(r,t),c=qa(t),h=a?$3(a,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(a&&E3(r,c,a,h,t))&&(c==1?a?I3(r,a,h,t):Ci(t)==s.scroller&&_t(t):c==2?(a&&bs(r.doc,a),setTimeout(function(){return s.input.focus()},20)):c==3&&(Me?r.display.input.onContextMenu(t):y1(r)))}}}function E3(t,r,s,a,c){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,ia(t,bd(h,c),c,function(f){if(typeof f=="string"&&(f=ra[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,s)!=Ie}finally{t.state.suppressEdits=!1}return p})}function _3(t,r,s){var a=t.getOption("configureMouse"),c=a?a(t,r,s):{};if(c.unit==null){var h=K?s.shiftKey&&s.metaKey:s.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||s.shiftKey),c.addNew==null&&(c.addNew=B?s.metaKey:s.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?s.altKey:s.ctrlKey)),c}function I3(t,r,s,a){m?setTimeout(Et(Tu,t),0):t.curOp.focus=ye();var c=_3(t,s,a),h=t.doc.sel,f;t.options.dragDrop&&Mo&&!t.isReadOnly()&&s=="single"&&(f=h.contains(r))>-1&&(C((f=h.ranges[f]).from(),r)<0||r.xRel>0)&&(C(f.to(),r)>0||r.xRel<0)?A3(t,a,r,c):P3(t,a,r,c)}function A3(t,r,s,a){var c=t.display,h=!1,f=xt(t,function(y){M&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:y1(t)),Ft(c.wrapper.ownerDocument,"mouseup",f),Ft(c.wrapper.ownerDocument,"mousemove",p),Ft(c.scroller,"dragstart",g),Ft(c.scroller,"drop",f),h||(_t(y),a.addNew||bs(t.doc,s,null,null,a.extend),M&&!N||m&&b==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(y){h=h||Math.abs(r.clientX-y.clientX)+Math.abs(r.clientY-y.clientY)>=10},g=function(){return h=!0};M&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!a.moveOnDrag,Se(c.wrapper.ownerDocument,"mouseup",f),Se(c.wrapper.ownerDocument,"mousemove",p),Se(c.scroller,"dragstart",g),Se(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Td(t,r,s){if(s=="char")return new Ge(r,r);if(s=="word")return t.findWordAt(r);if(s=="line")return new Ge(J(r.line,0),de(t.doc,J(r.line+1,0)));var a=s(t,r);return new Ge(a.from,a.to)}function P3(t,r,s,a){m&&y1(t);var c=t.display,h=t.doc;_t(r);var f,p,g=h.sel,y=g.ranges;if(a.addNew&&!a.extend?(p=h.sel.contains(s),p>-1?f=y[p]:f=new Ge(s,s)):(f=h.sel.primary(),p=h.sel.primIndex),a.unit=="rectangle")a.addNew||(f=new Ge(s,s)),s=Ki(t,r,!0,!0),p=-1;else{var z=Td(t,s,a.unit);a.extend?f=_1(f,z.anchor,z.head,a.extend):f=z}a.addNew?p==-1?(p=y.length,At(h,zr(t,y.concat([f]),p),{scroll:!1,origin:"*mouse"})):y.length>1&&y[p].empty()&&a.unit=="char"&&!a.extend?(At(h,zr(t,y.slice(0,p).concat(y.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):I1(h,p,f,Ae):(p=0,At(h,new ur([f],0),Ae),g=h.sel);var S=s;function P(se){if(C(S,se)!=0)if(S=se,a.unit=="rectangle"){for(var pe=[],Le=t.options.tabSize,xe=Xe(be(h,s.line).text,s.ch,Le),Pe=Xe(be(h,se.line).text,se.ch,Le),Je=Math.min(xe,Pe),Lt=Math.max(xe,Pe),nt=Math.min(s.line,se.line),Jt=Math.min(t.lastLine(),Math.max(s.line,se.line));nt<=Jt;nt++){var Wt=be(h,nt).text,pt=ht(Wt,Je,Le);Je==Lt?pe.push(new Ge(J(nt,pt),J(nt,pt))):Wt.length>pt&&pe.push(new Ge(J(nt,pt),J(nt,ht(Wt,Lt,Le))))}pe.length||pe.push(new Ge(s,s)),At(h,zr(t,g.ranges.slice(0,p).concat(pe),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(se)}else{var Ut=f,kt=Td(t,se,a.unit),mt=Ut.anchor,gt;C(kt.anchor,mt)>0?(gt=kt.head,mt=$e(Ut.from(),kt.anchor)):(gt=kt.anchor,mt=ee(Ut.to(),kt.head));var lt=g.ranges.slice(0);lt[p]=D3(t,new Ge(de(h,mt),gt)),At(h,zr(t,lt,p),Ae)}}var I=c.wrapper.getBoundingClientRect(),Z=0;function q(se){var pe=++Z,Le=Ki(t,se,!0,a.unit=="rectangle");if(Le)if(C(Le,S)!=0){t.curOp.focus=ye(),P(Le);var xe=ds(c,h);(Le.line>=xe.to||Le.line<xe.from)&&setTimeout(xt(t,function(){Z==pe&&q(se)}),150)}else{var Pe=se.clientY<I.top?-20:se.clientY>I.bottom?20:0;Pe&&setTimeout(xt(t,function(){Z==pe&&(c.scroller.scrollTop+=Pe,q(se))}),50)}}function te(se){t.state.selectingText=!1,Z=1/0,se&&(_t(se),c.input.focus()),Ft(c.wrapper.ownerDocument,"mousemove",ae),Ft(c.wrapper.ownerDocument,"mouseup",he),h.history.lastSelOrigin=null}var ae=xt(t,function(se){se.buttons===0||!qa(se)?te(se):q(se)}),he=xt(t,te);t.state.selectingText=he,Se(c.wrapper.ownerDocument,"mousemove",ae),Se(c.wrapper.ownerDocument,"mouseup",he)}function D3(t,r){var s=r.anchor,a=r.head,c=be(t.doc,s.line);if(C(s,a)==0&&s.sticky==a.sticky)return r;var h=Kt(c);if(!h)return r;var f=at(h,s.ch,s.sticky),p=h[f];if(p.from!=s.ch&&p.to!=s.ch)return r;var g=f+(p.from==s.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var y;if(a.line!=s.line)y=(a.line-s.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var z=at(h,a.ch,a.sticky),S=z-f||(a.ch-s.ch)*(p.level==1?-1:1);z==g-1||z==g?y=S<0:y=S>0}var P=h[g+(y?-1:0)],I=y==(P.level==1),Z=I?P.from:P.to,q=I?"after":"before";return s.ch==Z&&s.sticky==q?r:new Ge(new J(s.line,Z,q),a)}function kd(t,r,s,a){var c,h;if(r.touches)c=r.touches[0].clientX,h=r.touches[0].clientY;else try{c=r.clientX,h=r.clientY}catch{return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&_t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!Tt(t,s))return or(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var y=f.gutters.childNodes[g];if(y&&y.getBoundingClientRect().right>=c){var z=Vr(t.doc,h),S=t.display.gutterSpecs[g];return Oe(t,s,t,z,S.className,r),or(r)}}}function R1(t,r){return kd(t,r,"gutterClick",!0)}function Od(t,r){ai(t.display,r)||N3(t,r)||ft(t,r,"contextmenu")||Me||t.display.input.onContextMenu(r)}function N3(t,r){return Tt(t,"gutterContextMenu")?kd(t,r,"gutterContextMenu",!1):!1}function $d(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ro(t)}var qn={toString:function(){return"CodeMirror.Init"}},Ed={},Ls={};function H3(t){var r=t.optionHandlers;function s(a,c,h,f){t.defaults[a]=c,h&&(r[a]=f?function(p,g,y){y!=qn&&h(p,g,y)}:h)}t.defineOption=s,t.Init=qn,s("value","",function(a,c){return a.setValue(c)},!0),s("mode",null,function(a,c){a.doc.modeOption=c,O1(a)},!0),s("indentUnit",2,O1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Go(a),Ro(a),Vt(a)},!0),s("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var h=[],f=a.doc.first;a.doc.iter(function(g){for(var y=0;;){var z=g.text.indexOf(c,y);if(z==-1)break;y=z+c.length,h.push(J(f,z))}f++});for(var p=h.length-1;p>=0;p--)Wn(a.doc,c,h[p],J(h[p].line,h[p].ch+c.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,h){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=qn&&a.refresh()}),s("specialCharPlaceholder",f4,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),s("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),s("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),s("rtlMoveVisually",!ue),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){$d(a),jo(a)},!0),s("keyMap","default",function(a,c,h){var f=xs(c),p=h!=qn&&xs(h);p&&p.detach&&p.detach(a,f),f.attach&&f.attach(a,p||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,F3,!0),s("gutters",[],function(a,c){a.display.gutterSpecs=T1(c,a.options.lineNumbers),jo(a)},!0),s("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?v1(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Fn(a)},!0),s("scrollbarStyle","native",function(a){Iu(a),Fn(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,c){a.display.gutterSpecs=T1(a.options.gutters,c),jo(a)},!0),s("firstLineNumber",1,jo,!0),s("lineNumberFormatter",function(a){return a},jo,!0),s("showCursorWhenSelecting",!1,Fo,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,c){c=="nocursor"&&(Hn(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),s("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),s("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),s("dragDrop",!0,R3),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Fo,!0),s("singleCursorHeightPerLine",!0,Fo,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Go,!0),s("addModeClass",!1,Go,!0),s("pollInterval",100),s("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Go,!0),s("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),s("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),s("autofocus",null),s("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),s("phrases",null)}function R3(t,r,s){var a=s&&s!=qn;if(!r!=!a){var c=t.display.dragFunctions,h=r?Se:Ft;h(t.display.scroller,"dragstart",c.start),h(t.display.scroller,"dragenter",c.enter),h(t.display.scroller,"dragover",c.over),h(t.display.scroller,"dragleave",c.leave),h(t.display.scroller,"drop",c.drop)}}function F3(t){t.options.lineWrapping?(ke(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(X(t.display.wrapper,"CodeMirror-wrap"),a1(t)),b1(t),Vt(t),Ro(t),setTimeout(function(){return Fn(t)},100)}function tt(t,r){var s=this;if(!(this instanceof tt))return new tt(t,r);this.options=r=r?Ye(r):{},Ye(Ed,r,!1);var a=r.value;typeof a=="string"?a=new Zt(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var c=new tt.inputStyles[r.inputStyle](this),h=this.display=new Q4(t,a,c,r);h.wrapper.CodeMirror=this,$d(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Iu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Be,keySeq:null,specialChars:null},r.autofocus&&!A&&h.input.focus(),m&&b<11&&setTimeout(function(){return s.display.input.reset(!0)},20),B3(this),m3(),Qi(this),this.curOp.forceUpdate=!0,Zu(this,a),r.autofocus&&!A||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&C1(s)},20):Hn(this);for(var f in Ls)Ls.hasOwnProperty(f)&&Ls[f](this,r[f],qn);Du(this),r.finishInit&&r.finishInit(this);for(var p=0;p<F1.length;++p)F1[p](this);en(this),M&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}tt.defaults=Ed,tt.optionHandlers=Ls;function B3(t){var r=t.display;Se(r.scroller,"mousedown",xt(t,Md)),m&&b<11?Se(r.scroller,"dblclick",xt(t,function(g){if(!ft(t,g)){var y=Ki(t,g);if(!(!y||R1(t,g)||ai(t.display,g))){_t(g);var z=t.findWordAt(y);bs(t.doc,z.anchor,z.head)}}})):Se(r.scroller,"dblclick",function(g){return ft(t,g)||_t(g)}),Se(r.scroller,"contextmenu",function(g){return Od(t,g)}),Se(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||Od(t,g)});var s,a={end:0};function c(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var y=g.touches[0];return y.radiusX<=1&&y.radiusY<=1}function f(g,y){if(y.left==null)return!0;var z=y.left-g.left,S=y.top-g.top;return z*z+S*S>20*20}Se(r.scroller,"touchstart",function(g){if(!ft(t,g)&&!h(g)&&!R1(t,g)){r.input.ensurePolled(),clearTimeout(s);var y=+new Date;r.activeTouch={start:y,moved:!1,prev:y-a.end<=300?a:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Se(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Se(r.scroller,"touchend",function(g){var y=r.activeTouch;if(y&&!ai(r,g)&&y.left!=null&&!y.moved&&new Date-y.start<300){var z=t.coordsChar(r.activeTouch,"page"),S;!y.prev||f(y,y.prev)?S=new Ge(z,z):!y.prev.prev||f(y,y.prev.prev)?S=t.findWordAt(z):S=new Ge(J(z.line,0),de(t.doc,J(z.line+1,0))),t.setSelection(S.anchor,S.head),t.focus(),_t(g)}c()}),Se(r.scroller,"touchcancel",c),Se(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Vo(t,r.scroller.scrollTop),Xi(t,r.scroller.scrollLeft,!0),Oe(t,"scroll",t))}),Se(r.scroller,"mousewheel",function(g){return Ru(t,g)}),Se(r.scroller,"DOMMouseScroll",function(g){return Ru(t,g)}),Se(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ft(t,g)||Ui(g)},over:function(g){ft(t,g)||(b3(t,g),Ui(g))},start:function(g){return v3(t,g)},drop:xt(t,g3),leave:function(g){ft(t,g)||fd(t)}};var p=r.input.getField();Se(p,"keyup",function(g){return Ld.call(t,g)}),Se(p,"keydown",xt(t,zd)),Se(p,"keypress",xt(t,Sd)),Se(p,"focus",function(g){return C1(t,g)}),Se(p,"blur",function(g){return Hn(t,g)})}var F1=[];tt.defineInitHook=function(t){return F1.push(t)};function aa(t,r,s,a){var c=t.doc,h;s==null&&(s="add"),s=="smart"&&(c.mode.indent?h=Ao(t,r).state:s="prev");var f=t.options.tabSize,p=be(c,r),g=Xe(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var y=p.text.match(/^\s*/)[0],z;if(!a&&!/\S/.test(p.text))z=0,s="not";else if(s=="smart"&&(z=c.mode.indent(h,p.text.slice(y.length),p.text),z==Ie||z>150)){if(!a)return;s="prev"}s=="prev"?r>c.first?z=Xe(be(c,r-1).text,null,f):z=0:s=="add"?z=g+t.options.indentUnit:s=="subtract"?z=g-t.options.indentUnit:typeof s=="number"&&(z=g+s),z=Math.max(0,z);var S="",P=0;if(t.options.indentWithTabs)for(var I=Math.floor(z/f);I;--I)P+=f,S+=" ";if(P<z&&(S+=ir(z-P)),S!=y)return Wn(c,S,J(r,0),J(r,y.length),"+input"),p.stateAfter=null,!0;for(var Z=0;Z<c.sel.ranges.length;Z++){var q=c.sel.ranges[Z];if(q.head.line==r&&q.head.ch<y.length){var te=J(r,y.length);I1(c,Z,new Ge(te,te));break}}}var Lr=null;function Ss(t){Lr=t}function B1(t,r,s,a,c){var h=t.doc;t.display.shift=!1,a||(a=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=ko(r),y=null;if(p&&a.ranges.length>1)if(Lr&&Lr.text.join(`
2998
+ left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(h),h.scrollIntoView(c),t.display.lineSpace.removeChild(h)}}}function N4(t,r,s,a){a==null&&(a=0);var c;!t.options.lineWrapping&&r==s&&(s=r.sticky=="before"?J(r.line,r.ch+1,"before"):r,r=r.ch?J(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=xr(t,r),g=!s||s==r?p:xr(t,s);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-a,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+a};var y=w1(t,c),z=t.doc.scrollTop,S=t.doc.scrollLeft;if(y.scrollTop!=null&&(Vo(t,y.scrollTop),Math.abs(t.doc.scrollTop-z)>1&&(f=!0)),y.scrollLeft!=null&&(Xi(t,y.scrollLeft),Math.abs(t.doc.scrollLeft-S)>1&&(f=!0)),!f)break}return c}function H4(t,r){var s=w1(t,r);s.scrollTop!=null&&Vo(t,s.scrollTop),s.scrollLeft!=null&&Xi(t,s.scrollLeft)}function w1(t,r){var s=t.display,a=Dn(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:s.scroller.scrollTop,h=c1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+l1(s),g=r.top<a,y=r.bottom>p-a;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var z=Math.min(r.top,(y?p:r.bottom)-h);z!=c&&(f.scrollTop=z)}var S=t.options.fixedGutter?0:s.gutters.offsetWidth,P=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:s.scroller.scrollLeft-S,I=Gi(t)-s.gutters.offsetWidth,Z=r.right-r.left>I;return Z&&(r.right=r.left+I),r.left<10?f.scrollLeft=0:r.left<P?f.scrollLeft=Math.max(0,r.left+S-(Z?0:10)):r.right>I+P-3&&(f.scrollLeft=r.right+(Z?0:10)-I),f}function x1(t,r){r!=null&&(hs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Rn(t){hs(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Bo(t,r,s){(r!=null||s!=null)&&hs(t),r!=null&&(t.curOp.scrollLeft=r),s!=null&&(t.curOp.scrollTop=s)}function R4(t,r){hs(t),t.curOp.scrollToPos=r}function hs(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var s=yu(t,r.from),a=yu(t,r.to);ku(t,s,a,r.margin)}}function ku(t,r,s,a){var c=w1(t,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Bo(t,c.scrollLeft,c.scrollTop)}function Vo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||L1(t,{top:r}),Ou(t,r,!0),l&&L1(t),Uo(t,100))}function Ou(t,r,s){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!s)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Xi(t,r,s,a){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((s?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!a)&&(t.doc.scrollLeft=r,Au(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Zo(t){var r=t.display,s=r.gutters.offsetWidth,a=Math.round(t.doc.height+l1(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Ur(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Ji=function(t,r,s){this.cm=s;var a=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,t(a),t(c),Se(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Se(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&b<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ji.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,s=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var c=t.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Ji.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ji.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ji.prototype.zeroWidthHack=function(){var t=B&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Be,this.disableVert=new Be},Ji.prototype.enableZeroWidthBar=function(t,r,s){t.style.pointerEvents="auto";function a(){var c=t.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);h!=t?t.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Ji.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Wo=function(){};Wo.prototype.update=function(){return{bottom:0,right:0}},Wo.prototype.setScrollLeft=function(){},Wo.prototype.setScrollTop=function(){},Wo.prototype.clear=function(){};function Fn(t,r){r||(r=Zo(t));var s=t.display.barWidth,a=t.display.barHeight;$u(t,r);for(var c=0;c<4&&s!=t.display.barWidth||a!=t.display.barHeight;c++)s!=t.display.barWidth&&t.options.lineWrapping&&us(t),$u(t,Zo(t)),s=t.display.barWidth,a=t.display.barHeight}function $u(t,r){var s=t.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Eu={native:Ji,null:Wo};function _u(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&X(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Eu[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Se(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Xi(t,r):Vo(t,r)},t),t.display.scrollbars.addClass&&ke(t.display.wrapper,t.display.scrollbars.addClass)}var F4=0;function Qi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++F4,markArrays:null},b4(t.curOp)}function en(t){var r=t.curOp;r&&y4(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;B4(s)})}function B4(t){for(var r=t.ops,s=0;s<r.length;s++)V4(r[s]);for(var a=0;a<r.length;a++)Z4(r[a]);for(var c=0;c<r.length;c++)W4(r[c]);for(var h=0;h<r.length;h++)U4(r[h]);for(var f=0;f<r.length;f++)j4(r[f])}function V4(t){var r=t.cm,s=r.display;q4(r),t.updateMaxLine&&a1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<s.viewFrom||t.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new fs(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Z4(t){t.updatedDisplay=t.mustUpdate&&z1(t.cm,t.update)}function W4(t){var r=t.cm,s=r.display;t.updatedDisplay&&us(r),t.barMeasure=Zo(r),s.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=du(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+t.adjustWidthTo+Ur(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+t.adjustWidthTo-Gi(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=s.input.prepareSelection())}function U4(t){var r=t.cm;t.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&Xi(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=t.focus&&t.focus==ye();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,s),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Fn(r,t.barMeasure),t.updatedDisplay&&M1(r,t.barMeasure),t.selectionChanged&&m1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),s&&Mu(t.cm)}function j4(t){var r=t.cm,s=r.display,a=r.doc;if(t.updatedDisplay&&Iu(r,t.update),s.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),t.scrollTop!=null&&Ou(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Xi(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=N4(r,de(a,t.scrollToPos.from),de(a,t.scrollToPos.to),t.scrollToPos.margin);D4(r,c)}var h=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(h)for(var p=0;p<h.length;++p)h[p].lines.length||Oe(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&Oe(f[g],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&Oe(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function Xt(t,r){if(t.curOp)return r();Qi(t);try{return r()}finally{en(t)}}function xt(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Qi(t);try{return r.apply(t,arguments)}finally{en(t)}}}function Nt(t){return function(){if(this.curOp)return t.apply(this,arguments);Qi(this);try{return t.apply(this,arguments)}finally{en(this)}}}function zt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Qi(r);try{return t.apply(this,arguments)}finally{en(r)}}}function Uo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Et(G4,t))}function G4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var s=+new Date+t.options.workTime,a=Ao(t,r.highlightFrontier),c=[];r.iter(a.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(a.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?sr(r.mode,a.state):null,g=R0(t,h,a,!0);p&&(a.state=p),h.styles=g.styles;var y=h.styleClasses,z=g.classes;z?h.styleClasses=z:y&&(h.styleClasses=null);for(var S=!f||f.length!=h.styles.length||y!=z&&(!y||!z||y.bgClass!=z.bgClass||y.textClass!=z.textClass),P=0;!S&&P<f.length;++P)S=f[P]!=h.styles[P];S&&c.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=t.options.maxHighlightLength&&e1(t,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return Uo(t,t.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),c.length&&Xt(t,function(){for(var h=0;h<c.length;h++)zi(t,c[h],"text")})}}var fs=function(t,r,s){var a=t.display;this.viewport=r,this.visible=ds(a,t.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Gi(t),this.force=s,this.dims=g1(t),this.events=[]};fs.prototype.signal=function(t,r){Tt(t,r)&&this.events.push(arguments)},fs.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Oe.apply(null,this.events[t])};function q4(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Ur(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Ur(t)+"px",r.scrollbarsClipped=!0)}function K4(t){if(t.hasFocus())return null;var r=ye();if(!r||!ne(t.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ne(t.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function Y4(t){if(!(!t||!t.activeElt||t.activeElt==ye())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ne(document.body,t.anchorNode)&&ne(document.body,t.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(t.focusNode,t.focusOffset)}}function z1(t,r){var s=t.display,a=t.doc;if(r.editorIsHidden)return Li(t),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&zu(t)==0)return!1;Pu(t)&&(Li(t),r.dims=g1(t));var c=a.first+a.size,h=Math.max(r.visible.from-t.options.viewportMargin,a.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>f&&s.viewTo-f<20&&(f=Math.min(c,s.viewTo)),ni&&(h=n1(t.doc,h),f=Q0(t.doc,f));var p=h!=s.viewFrom||f!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;A4(t,h,f),s.viewOffset=oi(be(t.doc,s.viewFrom)),t.display.mover.style.top=s.viewOffset+"px";var g=zu(t);if(!p&&g==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var y=K4(t);return g>4&&(s.lineDiv.style.display="none"),X4(t,s.updateLineNumbers,r.dims),g>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,Y4(y),V(s.cursorDiv),V(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,p&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Uo(t,400)),s.updateLineNumbers=null,!0}function Iu(t,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!t.options.lineWrapping||r.oldDisplayWidth==Gi(t)){if(s&&s.top!=null&&(s={top:Math.min(t.doc.height+l1(t.display)-c1(t),s.top)}),r.visible=ds(t.display,t.doc,s),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else a&&(r.visible=ds(t.display,t.doc,s));if(!z1(t,r))break;us(t);var c=Zo(t);Fo(t),Fn(t,c),M1(t,c),r.force=!1}r.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function L1(t,r){var s=new fs(t,r);if(z1(t,s)){us(t),Iu(t,s);var a=Zo(t);Fo(t),Fn(t,a),M1(t,a),s.finish()}}function X4(t,r,s){var a=t.display,c=t.options.lineNumbers,h=a.lineDiv,f=h.firstChild;function p(Z){var q=Z.nextSibling;return M&&B&&t.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),q}for(var g=a.view,y=a.viewFrom,z=0;z<g.length;z++){var S=g[z];if(!S.hidden)if(!S.node||S.node.parentNode!=h){var P=L4(t,S,y,s);h.insertBefore(P,f)}else{for(;f!=S.node;)f=p(f);var I=c&&r!=null&&r<=y&&S.lineNumber;S.changes&&(ge(S.changes,"gutter")>-1&&(I=!1),nu(t,S,y,s)),I&&(V(S.lineNumber),S.lineNumber.appendChild(document.createTextNode(Io(t.options,y)))),f=S.node.nextSibling}y+=S.size}for(;f;)f=p(f)}function S1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",wt(t,"gutterChanged",t)}function M1(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Ur(t)+"px"}function Au(t){var r=t.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var a=v1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=a+"px",f=0;f<s.length;f++)if(!s[f].hidden){t.options.fixedGutter&&(s[f].gutter&&(s[f].gutter.style.left=h),s[f].gutterBackground&&(s[f].gutterBackground.style.left=h));var p=s[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=a+c+"px")}}function Pu(t){if(!t.options.lineNumbers)return!1;var r=t.doc,s=Io(t.options,r.first+r.size-1),a=t.display;if(s.length!=a.lineNumChars){var c=a.measure.appendChild(x("div",[x("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-f)+1,a.lineNumWidth=a.lineNumInnerWidth+f,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",S1(t.display),!0}return!1}function T1(t,r){for(var s=[],a=!1,c=0;c<t.length;c++){var h=t[c],f=null;if(typeof h!="string"&&(f=h.style,h=h.className),h=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:h,style:f})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function Du(t){var r=t.gutters,s=t.gutterSpecs;V(r),t.lineGutter=null;for(var a=0;a<s.length;++a){var c=s[a],h=c.className,f=c.style,p=r.appendChild(x("div",null,"CodeMirror-gutter "+h));f&&(p.style.cssText=f),h=="CodeMirror-linenumbers"&&(t.lineGutter=p,p.style.width=(t.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",S1(t)}function jo(t){Du(t.display),Vt(t),Au(t)}function J4(t,r,s,a){var c=this;this.input=s,c.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=w("div",null,"CodeMirror-code"),c.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=x("div",null,"CodeMirror-cursors"),c.measure=x("div",null,"CodeMirror-measure"),c.lineMeasure=x("div",null,"CodeMirror-measure"),c.lineSpace=w("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=w("div",[c.lineSpace],"CodeMirror-lines");c.mover=x("div",[h],null,"position: relative"),c.sizer=x("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=x("div",null,null,"position: absolute; height: "+ve+"px; width: 1px;"),c.gutters=x("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=x("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=x("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),m&&b<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!M&&!(l&&A)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=r.first,c.reportedViewFrom=c.reportedViewTo=r.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=T1(a.gutters,a.lineNumbers),Du(c),s.init(c)}var ps=0,cr=null;m?cr=-.53:l?cr=15:T?cr=-.7:N&&(cr=-1/3);function Nu(t){var r=t.wheelDeltaX,s=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),s==null&&t.detail&&t.axis==t.VERTICAL_AXIS?s=t.detail:s==null&&(s=t.wheelDelta),{x:r,y:s}}function Q4(t){var r=Nu(t);return r.x*=cr,r.y*=cr,r}function Hu(t,r){var s=Nu(r),a=s.x,c=s.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(a&&p||c&&g){if(c&&B&&M){e:for(var y=r.target,z=h.view;y!=f;y=y.parentNode)for(var S=0;S<z.length;S++)if(z[S].node==y){t.display.currentWheelTarget=y;break e}}if(a&&!l&&!$&&cr!=null){c&&g&&Vo(t,Math.max(0,f.scrollTop+c*cr)),Xi(t,Math.max(0,f.scrollLeft+a*cr)),(!c||c&&g)&&_t(r),h.wheelStartX=null;return}if(c&&cr!=null){var P=c*cr,I=t.doc.scrollTop,Z=I+h.wrapper.clientHeight;P<0?I=Math.max(0,I+P-50):Z=Math.min(t.doc.height,Z+P+50),L1(t,{top:I,bottom:Z})}ps<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=a,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var q=f.scrollLeft-h.wheelStartX,te=f.scrollTop-h.wheelStartY,ae=te&&h.wheelDY&&te/h.wheelDY||q&&h.wheelDX&&q/h.wheelDX;h.wheelStartX=h.wheelStartY=null,ae&&(cr=(cr*ps+ae)/(ps+1),++ps)}},200)):(h.wheelDX+=a,h.wheelDY+=c))}}var ur=function(t,r){this.ranges=t,this.primIndex=r};ur.prototype.primary=function(){return this.ranges[this.primIndex]},ur.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=t.ranges[r];if(!k(s.anchor,a.anchor)||!k(s.head,a.head))return!1}return!0},ur.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Ge(G(this.ranges[r].anchor),G(this.ranges[r].head));return new ur(t,this.primIndex)},ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ur.prototype.contains=function(t,r){r||(r=t);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(C(r,a.from())>=0&&C(t,a.to())<=0)return s}return-1};var Ge=function(t,r){this.anchor=t,this.head=r};Ge.prototype.from=function(){return $e(this.anchor,this.head)},Ge.prototype.to=function(){return ee(this.anchor,this.head)},Ge.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zr(t,r,s){var a=t&&t.options.selectionsMayTouch,c=r[s];r.sort(function(P,I){return C(P.from(),I.from())}),s=ge(r,c);for(var h=1;h<r.length;h++){var f=r[h],p=r[h-1],g=C(p.to(),f.from());if(a&&!f.empty()?g>0:g>=0){var y=$e(p.from(),f.from()),z=ee(p.to(),f.to()),S=p.empty()?f.from()==f.head:p.from()==p.head;h<=s&&--s,r.splice(--h,2,new Ge(S?z:y,S?y:z))}}return new ur(r,s)}function Si(t,r){return new ur([new Ge(t,r||t)],0)}function Mi(t){return t.text?J(t.from.line+t.text.length-1,_e(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Ru(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Mi(r);var s=t.line+r.text.length-(r.to.line-r.from.line)-1,a=t.ch;return t.line==r.to.line&&(a+=Mi(r).ch-r.to.ch),J(s,a)}function k1(t,r){for(var s=[],a=0;a<t.sel.ranges.length;a++){var c=t.sel.ranges[a];s.push(new Ge(Ru(c.anchor,r),Ru(c.head,r)))}return zr(t.cm,s,t.sel.primIndex)}function Fu(t,r,s){return t.line==r.line?J(s.line,t.ch-r.ch+s.ch):J(s.line+(t.line-r.line),t.ch)}function e3(t,r,s){for(var a=[],c=J(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=Fu(p.from,c,h),y=Fu(Mi(p),c,h);if(c=p.to,h=y,s=="around"){var z=t.sel.ranges[f],S=C(z.head,z.anchor)<0;a[f]=new Ge(S?y:g,S?g:y)}else a[f]=new Ge(g,g)}return new ur(a,t.sel.primIndex)}function O1(t){t.doc.mode=En(t.options,t.doc.modeOption),Go(t)}function Go(t){t.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Uo(t,100),t.state.modeGen++,t.curOp&&Vt(t)}function Bu(t,r){return r.from.ch==0&&r.to.ch==0&&_e(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function $1(t,r,s,a){function c(he){return s?s[he]:null}function h(he,se,pe){l4(he,se,pe,a),wt(he,"change",he,r)}function f(he,se){for(var pe=[],Le=he;Le<se;++Le)pe.push(new In(y[Le],c(Le),a));return pe}var p=r.from,g=r.to,y=r.text,z=be(t,p.line),S=be(t,g.line),P=_e(y),I=c(y.length-1),Z=g.line-p.line;if(r.full)t.insert(0,f(0,y.length)),t.remove(y.length,t.size-y.length);else if(Bu(t,r)){var q=f(0,y.length-1);h(S,S.text,I),Z&&t.remove(p.line,Z),q.length&&t.insert(p.line,q)}else if(z==S)if(y.length==1)h(z,z.text.slice(0,p.ch)+P+z.text.slice(g.ch),I);else{var te=f(1,y.length-1);te.push(new In(P+z.text.slice(g.ch),I,a)),h(z,z.text.slice(0,p.ch)+y[0],c(0)),t.insert(p.line+1,te)}else if(y.length==1)h(z,z.text.slice(0,p.ch)+y[0]+S.text.slice(g.ch),c(0)),t.remove(p.line+1,Z);else{h(z,z.text.slice(0,p.ch)+y[0],c(0)),h(S,P+S.text.slice(g.ch),I);var ae=f(1,y.length-1);Z>1&&t.remove(p.line+1,Z-1),t.insert(p.line+1,ae)}wt(t,"change",t,r)}function Ti(t,r,s){function a(c,h,f){if(c.linked)for(var p=0;p<c.linked.length;++p){var g=c.linked[p];if(g.doc!=h){var y=f&&g.sharedHist;s&&!y||(r(g.doc,y),a(g.doc,c,y))}}}a(t,null,!0)}function Vu(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,b1(t),O1(t),Zu(t),t.options.direction=r.direction,t.options.lineWrapping||a1(t),t.options.mode=r.modeOption,Vt(t)}function Zu(t){(t.doc.direction=="rtl"?ke:X)(t.display.lineDiv,"CodeMirror-rtl")}function t3(t){Xt(t,function(){Zu(t),Vt(t)})}function gs(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function E1(t,r){var s={from:G(r.from),to:Mi(r),text:Br(t,r.from,r.to)};return ju(t,s,r.from.line,r.to.line+1),Ti(t,function(a){return ju(a,s,r.from.line,r.to.line+1)},!0),s}function Wu(t){for(;t.length;){var r=_e(t);if(r.ranges)t.pop();else break}}function r3(t,r){if(r)return Wu(t.done),_e(t.done);if(t.done.length&&!_e(t.done).ranges)return _e(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),_e(t.done)}function Uu(t,r,s,a){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==a||c.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&c.lastModTime>h-(t.cm?t.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(f=r3(c,c.lastOp==a)))p=_e(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Mi(r):f.changes.push(E1(t,r));else{var g=_e(c.done);for((!g||!g.ranges)&&vs(t.sel,c.done),f={changes:[E1(t,r)],generation:c.generation},c.done.push(f);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(s),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=r.origin,p||Oe(t,"historyAdded")}function i3(t,r,s,a){var c=r.charAt(0);return c=="*"||c=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function n3(t,r,s,a){var c=t.history,h=a&&a.origin;s==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||i3(t,h,_e(c.done),r))?c.done[c.done.length-1]=r:vs(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=s,a&&a.clearRedo!==!1&&Wu(c.undone)}function vs(t,r){var s=_e(r);s&&s.ranges&&s.equals(t)||r.push(t)}function ju(t,r,s,a){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,s),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function o3(t){if(!t)return null;for(var r,s=0;s<t.length;++s)t[s].marker.explicitlyCleared?r||(r=t.slice(0,s)):r&&r.push(t[s]);return r?r.length?r:null:t}function a3(t,r){var s=r["spans_"+t.id];if(!s)return null;for(var a=[],c=0;c<r.text.length;++c)a.push(o3(s[c]));return a}function Gu(t,r){var s=a3(t,r),a=r1(t,r);if(!s)return a;if(!a)return s;for(var c=0;c<s.length;++c){var h=s[c],f=a[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],y=0;y<h.length;++y)if(h[y].marker==g.marker)continue e;h.push(g)}else f&&(s[c]=f)}return s}function Bn(t,r,s){for(var a=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){a.push(s?ur.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];a.push({changes:p});for(var g=0;g<f.length;++g){var y=f[g],z=void 0;if(p.push({from:y.from,to:y.to,text:y.text}),r)for(var S in y)(z=S.match(/^spans_(\d+)$/))&&ge(r,Number(z[1]))>-1&&(_e(p)[S]=y[S],delete y[S])}}return a}function _1(t,r,s,a){if(a){var c=t.anchor;if(s){var h=C(r,c)<0;h!=C(s,c)<0?(c=r,r=s):h!=C(r,s)<0&&(r=s)}return new Ge(c,r)}else return new Ge(s||r,r)}function bs(t,r,s,a,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),At(t,new ur([_1(t.sel.primary(),r,s,c)],0),a)}function qu(t,r,s){for(var a=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)a[h]=_1(t.sel.ranges[h],r[h],null,c);var f=zr(t.cm,a,t.sel.primIndex);At(t,f,s)}function I1(t,r,s,a){var c=t.sel.ranges.slice(0);c[r]=s,At(t,zr(t.cm,c,t.sel.primIndex),a)}function Ku(t,r,s,a){At(t,Si(r,s),a)}function s3(t,r,s){var a={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Ge(de(t,c[h].anchor),de(t,c[h].head))},origin:s&&s.origin};return Oe(t,"beforeSelectionChange",t,a),t.cm&&Oe(t.cm,"beforeSelectionChange",t.cm,a),a.ranges!=r.ranges?zr(t.cm,a.ranges,a.ranges.length-1):r}function Yu(t,r,s){var a=t.history.done,c=_e(a);c&&c.ranges?(a[a.length-1]=r,ms(t,r,s)):At(t,r,s)}function At(t,r,s){ms(t,r,s),n3(t,t.sel,t.cm?t.cm.curOp.id:NaN,s)}function ms(t,r,s){(Tt(t,"beforeSelectionChange")||t.cm&&Tt(t.cm,"beforeSelectionChange"))&&(r=s3(t,r,s));var a=s&&s.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);Xu(t,Qu(t,r,a,!0)),!(s&&s.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Rn(t.cm)}function Xu(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,kn(t.cm)),wt(t,"cursorActivity",t))}function Ju(t){Xu(t,Qu(t,t.sel,null,!1))}function Qu(t,r,s,a){for(var c,h=0;h<r.ranges.length;h++){var f=r.ranges[h],p=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[h],g=ys(t,f.anchor,p&&p.anchor,s,a),y=ys(t,f.head,p&&p.head,s,a);(c||g!=f.anchor||y!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Ge(g,y))}return c?zr(t.cm,c,r.primIndex):r}function Vn(t,r,s,a,c){var h=be(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,y="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,z="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(y?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(z?p.to>=r.ch:p.to>r.ch))){if(c&&(Oe(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(s){var S=g.find(a<0?1:-1),P=void 0;if((a<0?z:y)&&(S=ed(t,S,-a,S&&S.line==r.line?h:null)),S&&S.line==r.line&&(P=C(S,s))&&(a<0?P<0:P>0))return Vn(t,S,r,a,c)}var I=g.find(a<0?-1:1);return(a<0?y:z)&&(I=ed(t,I,a,I.line==r.line?h:null)),I?Vn(t,I,r,a,c):null}}return r}function ys(t,r,s,a,c){var h=a||1,f=Vn(t,r,s,h,c)||!c&&Vn(t,r,s,h,!0)||Vn(t,r,s,-h,c)||!c&&Vn(t,r,s,-h,!0);return f||(t.cantEdit=!0,J(t.first,0))}function ed(t,r,s,a){return s<0&&r.ch==0?r.line>t.first?de(t,J(r.line-1)):null:s>0&&r.ch==(a||be(t,r.line)).text.length?r.line<t.first+t.size-1?J(r.line+1,0):null:new J(r.line,r.ch+s)}function td(t){t.setSelection(J(t.firstLine(),0),J(t.lastLine()),De)}function rd(t,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(c,h,f,p){c&&(a.from=de(t,c)),h&&(a.to=de(t,h)),f&&(a.text=f),p!==void 0&&(a.origin=p)}),Oe(t,"beforeChange",t,a),t.cm&&Oe(t.cm,"beforeChange",t.cm,a),a.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Zn(t,r,s){if(t.cm){if(!t.cm.curOp)return xt(t.cm,Zn)(t,r,s);if(t.cm.state.suppressEdits)return}if(!((Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"))&&(r=rd(t,r,!0),!r))){var a=j0&&!s&&n4(t,r.from,r.to);if(a)for(var c=a.length-1;c>=0;--c)id(t,{from:a[c].from,to:a[c].to,text:c?[""]:r.text,origin:r.origin});else id(t,r)}}function id(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var s=k1(t,r);Uu(t,r,s,t.cm?t.cm.curOp.id:NaN),qo(t,r,s,r1(t,r));var a=[];Ti(t,function(c,h){!h&&ge(a,c.history)==-1&&(sd(c.history,r),a.push(c.history)),qo(c,r,null,r1(c,r))})}}function Cs(t,r,s){var a=t.cm&&t.cm.state.suppressEdits;if(!(a&&!s)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,y=0;y<p.length&&(h=p[y],!(s?h.ranges&&!h.equals(t.sel):!h.ranges));y++);if(y!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(vs(h,g),s&&!h.equals(t.sel)){At(t,h,{clearRedo:!1});return}f=h}else if(a){p.push(h);return}else break;var z=[];vs(f,g),g.push({changes:z,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var S=Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"),P=function(q){var te=h.changes[q];if(te.origin=r,S&&!rd(t,te,!1))return p.length=0,{};z.push(E1(t,te));var ae=q?k1(t,te):_e(p);qo(t,te,ae,Gu(t,te)),!q&&t.cm&&t.cm.scrollIntoView({from:te.from,to:Mi(te)});var he=[];Ti(t,function(se,pe){!pe&&ge(he,se.history)==-1&&(sd(se.history,te),he.push(se.history)),qo(se,te,null,Gu(se,te))})},I=h.changes.length-1;I>=0;--I){var Z=P(I);if(Z)return Z.v}}}}function nd(t,r){if(r!=0&&(t.first+=r,t.sel=new ur(Ve(t.sel.ranges,function(c){return new Ge(J(c.anchor.line+r,c.anchor.ch),J(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Vt(t.cm,t.first,t.first-r,r);for(var s=t.cm.display,a=s.viewFrom;a<s.viewTo;a++)zi(t.cm,a,"gutter")}}function qo(t,r,s,a){if(t.cm&&!t.cm.curOp)return xt(t.cm,qo)(t,r,s,a);if(r.to.line<t.first){nd(t,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var c=r.text.length-1-(t.first-r.from.line);nd(t,c),r={from:J(t.first,0),to:J(r.to.line+c,r.to.ch),text:[_e(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:J(h,be(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Br(t,r.from,r.to),s||(s=k1(t,r)),t.cm?l3(t.cm,r,a):$1(t,r,a),ms(t,s,De),t.cantEdit&&ys(t,J(t.firstLine(),0))&&(t.cantEdit=!1)}}function l3(t,r,s){var a=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=je(Wr(be(a,h.line))),a.iter(g,f.line+1,function(I){if(I==c.maxLine)return p=!0,!0})),a.sel.contains(r.from,r.to)>-1&&kn(t),$1(a,r,s,xu(t)),t.options.lineWrapping||(a.iter(g,h.line+r.text.length,function(I){var Z=is(I);Z>c.maxLineLength&&(c.maxLine=I,c.maxLineLength=Z,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),X6(a,h.line),Uo(t,400);var y=r.text.length-(f.line-h.line)-1;r.full?Vt(t):h.line==f.line&&r.text.length==1&&!Bu(t.doc,r)?zi(t,h.line,"text"):Vt(t,h.line,f.line+1,y);var z=Tt(t,"changes"),S=Tt(t,"change");if(S||z){var P={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};S&&wt(t,"change",t,P),z&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(P)}t.display.selForContextMenu=null}function Wn(t,r,s,a,c){var h;a||(a=s),C(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Zn(t,{from:s,to:a,text:r,origin:c})}function od(t,r,s,a){s<t.line?t.line+=a:r<t.line&&(t.line=r,t.ch=0)}function ad(t,r,s,a){for(var c=0;c<t.length;++c){var h=t[c],f=!0;if(h.ranges){h.copied||(h=t[c]=h.deepCopy(),h.copied=!0);for(var p=0;p<h.ranges.length;p++)od(h.ranges[p].anchor,r,s,a),od(h.ranges[p].head,r,s,a);continue}for(var g=0;g<h.changes.length;++g){var y=h.changes[g];if(s<y.from.line)y.from=J(y.from.line+a,y.from.ch),y.to=J(y.to.line+a,y.to.ch);else if(r<=y.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function sd(t,r){var s=r.from.line,a=r.to.line,c=r.text.length-(a-s)-1;ad(t.done,s,a,c),ad(t.undone,s,a,c)}function Ko(t,r,s,a){var c=r,h=r;return typeof r=="number"?h=be(t,Fe(t,r)):c=je(r),c==null?null:(a(h,c)&&t.cm&&zi(t.cm,c,s),h)}function Yo(t){this.lines=t,this.parent=null;for(var r=0,s=0;s<t.length;++s)t[s].parent=this,r+=t[s].height;this.height=r}Yo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var s=t,a=t+r;s<a;++s){var c=this.lines[s];this.height-=c.height,c4(c),wt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,s){this.height+=s,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(t,r,s){for(var a=t+r;t<a;++t)if(s(this.lines[t]))return!0}};function Xo(t){this.children=t;for(var r=0,s=0,a=0;a<t.length;++a){var c=t[a];r+=c.chunkSize(),s+=c.height,c.parent=this}this.size=r,this.height=s,this.parent=null}Xo.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],c=a.chunkSize();if(t<c){var h=Math.min(r,c-t),f=a.height;if(a.removeInner(t,h),this.height-=f-a.height,c==h&&(this.children.splice(s--,1),a.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Yo))){var p=[];this.collapse(p),this.children=[new Yo(p)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,s),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new Yo(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++a,0,g),g.parent=this}c.lines=c.lines.slice(0,f),this.maybeSpill()}break}t-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=t.children.splice(t.children.length-5,5),s=new Xo(r);if(t.parent){t.size-=s.size,t.height-=s.height;var c=ge(t.parent.children,t);t.parent.children.splice(c+1,0,s)}else{var a=new Xo(t.children);a.parent=t,t.children=[a,s],t=a}s.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,s){for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,s))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Jo=function(t,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=t,this.node=r};Jo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,s=this.line,a=je(s);if(!(a==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(s.widgets=null);var h=Ho(this);Yt(s,Math.max(0,s.height-h)),t&&(Xt(t,function(){ld(t,s,-h),zi(t,a,"widget")}),wt(t,"lineWidgetCleared",t,this,a))}},Jo.prototype.changed=function(){var t=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var c=Ho(this)-r;c&&(xi(this.doc,a)||Yt(a,a.height+c),s&&Xt(s,function(){s.curOp.forceUpdate=!0,ld(s,a,c),wt(s,"lineWidgetChanged",s,t,je(a))}))},Rr(Jo);function ld(t,r,s){oi(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&x1(t,s)}function c3(t,r,s,a){var c=new Jo(t,s,a),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),Ko(t,r,"widget",function(f){var p=f.widgets||(f.widgets=[]);if(c.insertAt==null?p.push(c):p.splice(Math.min(p.length,Math.max(0,c.insertAt)),0,c),c.line=f,h&&!xi(t,f)){var g=oi(f)<t.scrollTop;Yt(f,f.height+Ho(c)),g&&x1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&wt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:je(r)),c}var cd=0,ki=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++cd};ki.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Qi(t),Tt(this,"clear")){var s=this.find();s&&wt(this,"clear",s.from,s.to)}for(var a=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Po(f.markedSpans,this);t&&!this.collapsed?zi(t,je(f),"text"):t&&(p.to!=null&&(c=je(f)),p.from!=null&&(a=je(f))),f.markedSpans=e4(f.markedSpans,p),p.from==null&&this.collapsed&&!xi(this.doc,f)&&t&&Yt(f,Dn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var y=Wr(this.lines[g]),z=is(y);z>t.display.maxLineLength&&(t.display.maxLine=y,t.display.maxLineLength=z,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&Vt(t,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ju(t.doc)),t&&wt(t,"markerCleared",t,this,a,c),r&&en(t),this.parent&&this.parent.clear()}},ki.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var s,a,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Po(h.markedSpans,this);if(f.from!=null&&(s=J(r?h:je(h),f.from),t==-1))return s;if(f.to!=null&&(a=J(r?h:je(h),f.to),t==1))return a}return s&&{from:s,to:a}},ki.prototype.changed=function(){var t=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||Xt(a,function(){var c=r.line,h=je(r.line),f=u1(a,h);if(f&&(pu(f),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!xi(s.doc,c)&&s.height!=null){var p=s.height;s.height=null;var g=Ho(s)-p;g&&Yt(c,c.height+g)}wt(a,"markerChanged",a,t)})},ki.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ge(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ki.prototype.detachLine=function(t){if(this.lines.splice(ge(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Rr(ki);function Un(t,r,s,a,c){if(a&&a.shared)return u3(t,r,s,a,c);if(t.cm&&!t.cm.curOp)return xt(t.cm,Un)(t,r,s,a,c);var h=new ki(t,c),f=C(r,s);if(a&&Ye(a,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=w("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(J0(t,r.line,r,s,h)||r.line!=s.line&&J0(t,s.line,r,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");Q6()}h.addToHistory&&Uu(t,{from:r,to:s,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,y;if(t.iter(p,s.line+1,function(S){g&&h.collapsed&&!g.options.lineWrapping&&Wr(S)==g.display.maxLine&&(y=!0),h.collapsed&&p!=r.line&&Yt(S,0),t4(S,new Qa(h,p==r.line?r.ch:null,p==s.line?s.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,s.line+1,function(S){xi(t,S)&&Yt(S,0)}),h.clearOnEnter&&Se(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(J6(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++cd,h.atomic=!0),g){if(y&&(g.curOp.updateMaxLine=!0),h.collapsed)Vt(g,r.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=r.line;z<=s.line;z++)zi(g,z,"text");h.atomic&&Ju(g.doc),wt(g,"markerAdded",g,h)}return h}var Qo=function(t,r){this.markers=t,this.primary=r;for(var s=0;s<t.length;++s)t[s].parent=this};Qo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();wt(this,"clear")}},Qo.prototype.find=function(t,r){return this.primary.find(t,r)},Rr(Qo);function u3(t,r,s,a,c){a=Ye(a),a.shared=!1;var h=[Un(t,r,s,a,c)],f=h[0],p=a.widgetNode;return Ti(t,function(g){p&&(a.widgetNode=p.cloneNode(!0)),h.push(Un(g,de(g,r),de(g,s),a,c));for(var y=0;y<g.linked.length;++y)if(g.linked[y].isParent)return;f=_e(h)}),new Qo(h,f)}function ud(t){return t.findMarks(J(t.first,0),t.clipPos(J(t.lastLine())),function(r){return r.parent})}function d3(t,r){for(var s=0;s<r.length;s++){var a=r[s],c=a.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Un(t,h,f,a.primary,a.primary.type);a.markers.push(p),p.parent=a}}}function h3(t){for(var r=function(a){var c=t[a],h=[c.primary.doc];Ti(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];ge(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},s=0;s<t.length;s++)r(s)}var f3=0,Zt=function(t,r,s,a,c){if(!(this instanceof Zt))return new Zt(t,r,s,a,c);s==null&&(s=0),Xo.call(this,[new Yo([new In("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=J(s,0);this.sel=Si(h),this.history=new gs(null),this.id=++f3,this.modeOption=r,this.lineSep=a,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),$1(this,{from:h,to:h,text:t}),At(this,Si(h),De)};Zt.prototype=et(Xo.prototype,{constructor:Zt,iter:function(t,r,s){s?this.iterN(t-this.first,r-t,s):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(t-this.first,r,s)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=_o(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:zt(function(t){var r=J(this.first,0),s=this.first+this.size-1;Zn(this,{from:r,to:J(s,be(this,s).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Bo(this.cm,0,0),At(this,Si(r),De)}),replaceRange:function(t,r,s,a){r=de(this,r),s=s?de(this,s):r,Wn(this,t,r,s,a)},getRange:function(t,r,s){var a=Br(this,de(this,t),de(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(ji(this,t))return be(this,t)},getLineNumber:function(t){return je(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=be(this,t)),Wr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return de(this,t)},getCursor:function(t){var r=this.sel.primary(),s;return t==null||t=="head"?s=r.head:t=="anchor"?s=r.anchor:t=="end"||t=="to"||t===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zt(function(t,r,s){Ku(this,de(this,typeof t=="number"?J(t,r||0):t),null,s)}),setSelection:zt(function(t,r,s){Ku(this,de(this,t),de(this,r||t),s)}),extendSelection:zt(function(t,r,s){bs(this,de(this,t),r&&de(this,r),s)}),extendSelections:zt(function(t,r){qu(this,lr(this,t),r)}),extendSelectionsBy:zt(function(t,r){var s=Ve(this.sel.ranges,t);qu(this,lr(this,s),r)}),setSelections:zt(function(t,r,s){if(t.length){for(var a=[],c=0;c<t.length;c++)a[c]=new Ge(de(this,t[c].anchor),de(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),At(this,zr(this.cm,a,r),s)}}),addSelection:zt(function(t,r,s){var a=this.sel.ranges.slice(0);a.push(new Ge(de(this,t),de(this,r||t))),At(this,zr(this.cm,a,a.length-1),s)}),getSelection:function(t){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var c=Br(this,r[a].from(),r[a].to());s=s?s.concat(c):c}return t===!1?s:s.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var c=Br(this,s[a].from(),s[a].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[a]=c}return r},replaceSelection:function(t,r,s){for(var a=[],c=0;c<this.sel.ranges.length;c++)a[c]=t;this.replaceSelections(a,r,s||"+input")},replaceSelections:zt(function(t,r,s){for(var a=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];a[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:s}}for(var p=r&&r!="end"&&e3(this,a,r),g=a.length-1;g>=0;g--)Zn(this,a[g]);p?Yu(this,p):this.cm&&Rn(this.cm)}),undo:zt(function(){Cs(this,"undo")}),redo:zt(function(){Cs(this,"redo")}),undoSelection:zt(function(){Cs(this,"undo",!0)}),redoSelection:zt(function(){Cs(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,s=0,a=0;a<t.done.length;a++)t.done[a].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var t=this;this.history=new gs(this.history),Ti(this,function(r){return r.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Bn(this.history.done),undone:Bn(this.history.undone)}},setHistory:function(t){var r=this.history=new gs(this.history);r.done=Bn(t.done.slice(0),null,!0),r.undone=Bn(t.undone.slice(0),null,!0)},setGutterMarker:zt(function(t,r,s){return Ko(this,t,"gutter",function(a){var c=a.gutterMarkers||(a.gutterMarkers={});return c[r]=s,!s&&re(c)&&(a.gutterMarkers=null),!0})}),clearGutter:zt(function(t){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[t]&&Ko(r,s,"gutter",function(){return s.gutterMarkers[t]=null,re(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!ji(this,t)||(r=t,t=be(this,t),!t))return null}else if(r=je(t),r==null)return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:zt(function(t,r,s){return Ko(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[c])a[c]=s;else{if(ie(s).test(a[c]))return!1;a[c]+=" "+s}return!0})}),removeLineClass:zt(function(t,r,s){return Ko(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=a[c];if(h)if(s==null)a[c]=null;else{var f=h.match(ie(s));if(!f)return!1;var p=f.index+f[0].length;a[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:zt(function(t,r,s){return c3(this,t,r,s)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,s){return Un(this,de(this,t),de(this,r),s,s&&s.type||"range")},setBookmark:function(t,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=de(this,t),Un(this,t,t,s,"bookmark")},findMarksAt:function(t){t=de(this,t);var r=[],s=be(this,t.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&r.push(c.marker.parent||c.marker)}return r},findMarks:function(t,r,s){t=de(this,t),r=de(this,r);var a=[],c=t.line;return this.iter(t.line,r.line+1,function(h){var f=h.markedSpans;if(f)for(var p=0;p<f.length;p++){var g=f[p];!(g.to!=null&&c==t.line&&t.ch>=g.to||g.from==null&&c!=t.line||g.from!=null&&c==r.line&&g.from>=r.ch)&&(!s||s(g.marker))&&a.push(g.marker.parent||g.marker)}++c}),a},getAllMarks:function(){var t=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&t.push(s[a].marker)}),t},posFromIndex:function(t){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+a;if(h>t)return r=t,!0;t-=h,++s}),de(this,J(s,r))},indexFromPos:function(t){t=de(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,t.line,function(a){r+=a.text.length+s}),r},copy:function(t){var r=new Zt(_o(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,s=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<s&&(s=t.to);var a=new Zt(_o(this,r,s),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:t.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],d3(a,ud(this)),a},unlinkDoc:function(t){if(t instanceof tt&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),h3(ud(this));break}}if(t.history==this.history){var a=[t.id];Ti(t,function(c){return a.push(c.id)},!0),t.history=new gs(null),t.history.done=Bn(this.history.done,a),t.history.undone=Bn(this.history.undone,a)}},iterLinkedDocs:function(t){Ti(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):ko(t)},lineSeparator:function(){return this.lineSep||`
2999
+ `},setDirection:zt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(r){return r.order=null}),this.cm&&t3(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var dd=0;function p3(t){var r=this;if(hd(r),!(ft(r,t)||ai(r.display,t))){_t(t),m&&(dd=+new Date);var s=Ki(r,t,!0),a=t.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var c=a.length,h=Array(c),f=0,p=function(){++f==c&&xt(r,function(){s=de(r.doc,s);var I={from:s,to:s,text:r.doc.splitLines(h.filter(function(Z){return Z!=null}).join(r.doc.lineSeparator())),origin:"paste"};Zn(r.doc,I),Yu(r.doc,Si(de(r.doc,s),de(r.doc,Mi(I))))})()},g=function(I,Z){if(r.options.allowDropFileTypes&&ge(r.options.allowDropFileTypes,I.type)==-1){p();return}var q=new FileReader;q.onerror=function(){return p()},q.onload=function(){var te=q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(te)){p();return}h[Z]=te,p()},q.readAsText(I)},y=0;y<a.length;y++)g(a[y],y);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var z=t.dataTransfer.getData("Text");if(z){var S;if(r.state.draggingText&&!r.state.draggingText.copy&&(S=r.listSelections()),ms(r.doc,Si(s,s)),S)for(var P=0;P<S.length;++P)Wn(r.doc,"",S[P].anchor,S[P].head,"drag");r.replaceSelection(z,"around","paste"),r.display.input.focus()}}catch{}}}}function g3(t,r){if(m&&(!t.state.draggingText||+new Date-dd<100)){Ui(r);return}if(!(ft(t,r)||ai(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!N)){var s=x("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(s.width=s.height=1,t.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),$&&s.parentNode.removeChild(s)}}function v3(t,r){var s=Ki(t,r);if(s){var a=document.createDocumentFragment();Su(t,s,a),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),O(t.display.dragCursor,a)}}function hd(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function fd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var c=r[a].CodeMirror;c&&s.push(c)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)t(s[h])})}}var pd=!1;function b3(){pd||(m3(),pd=!0)}function m3(){var t;Se(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,fd(y3)},100))}),Se(window,"blur",function(){return fd(Hn)})}function y3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var Oi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ea=0;ea<10;ea++)Oi[ea+48]=Oi[ea+96]=String(ea);for(var ws=65;ws<=90;ws++)Oi[ws]=String.fromCharCode(ws);for(var ta=1;ta<=12;ta++)Oi[ta+111]=Oi[ta+63235]="F"+ta;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=B?si.macDefault:si.pcDefault;function C3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var s,a,c,h,f=0;f<r.length-1;f++){var p=r[f];if(/^(cmd|meta|m)$/i.test(p))h=!0;else if(/^a(lt)?$/i.test(p))s=!0;else if(/^(c|ctrl|control)$/i.test(p))a=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return s&&(t="Alt-"+t),a&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function w3(t){var r={};for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete t[s];continue}for(var c=Ve(s.split(" "),C3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=a):(p=c.slice(0,h+1).join(" "),f="...");var g=r[p];if(!g)r[p]=f;else if(g!=f)throw new Error("Inconsistent bindings for "+p)}delete t[s]}for(var y in r)t[y]=r[y];return t}function jn(t,r,s,a){r=xs(r);var c=r.call?r.call(t,a):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&s(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return jn(t,r.fallthrough,s,a);for(var h=0;h<r.fallthrough.length;h++){var f=jn(t,r.fallthrough[h],s,a);if(f)return f}}}function gd(t){var r=typeof t=="string"?t:Oi[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function vd(t,r,s){var a=t;return r.altKey&&a!="Alt"&&(t="Alt-"+t),(me?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(t="Ctrl-"+t),(me?r.ctrlKey:r.metaKey)&&a!="Mod"&&(t="Cmd-"+t),!s&&r.shiftKey&&a!="Shift"&&(t="Shift-"+t),t}function bd(t,r){if($&&t.keyCode==34&&t.char)return!1;var s=Oi[t.keyCode];return s==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(s=t.code),vd(s,t,r))}function xs(t){return typeof t=="string"?si[t]:t}function Gn(t,r){for(var s=t.doc.sel.ranges,a=[],c=0;c<s.length;c++){for(var h=r(s[c]);a.length&&C(h.from,_e(a).to)<=0;){var f=a.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}a.push(h)}Xt(t,function(){for(var p=a.length-1;p>=0;p--)Wn(t.doc,"",a[p].from,a[p].to,"+delete");Rn(t)})}function A1(t,r,s){var a=Dt(t.text,r+s,s);return a<0||a>t.text.length?null:a}function P1(t,r,s){var a=A1(t,r.ch,s);return a==null?null:new J(r.line,a,s<0?"after":"before")}function D1(t,r,s,a,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=Kt(s,r.doc.direction);if(h){var f=c<0?_e(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",y;if(f.level>0||r.doc.direction=="rtl"){var z=Pn(r,s);y=c<0?s.text.length-1:0;var S=jr(r,z,y).top;y=Hr(function(P){return jr(r,z,P).top==S},c<0==(f.level==1)?f.from:f.to-1,y),g=="before"&&(y=A1(s,y,1))}else y=c<0?f.to:f.from;return new J(a,y,g)}}return new J(a,c<0?s.text.length:0,c<0?"before":"after")}function x3(t,r,s,a){var c=Kt(r,t.doc.direction);if(!c)return P1(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=at(c,s.ch,s.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(a>0?f.to>s.ch:f.from<s.ch))return P1(r,s,a);var p=function(ae,he){return A1(r,ae instanceof J?ae.ch:ae,he)},g,y=function(ae){return t.options.lineWrapping?(g=g||Pn(t,r),wu(t,r,g,ae)):{begin:0,end:r.text.length}},z=y(s.sticky=="before"?p(s,-1):s.ch);if(t.doc.direction=="rtl"||f.level==1){var S=f.level==1==a<0,P=p(s,S?1:-1);if(P!=null&&(S?P<=f.to&&P<=z.end:P>=f.from&&P>=z.begin)){var I=S?"before":"after";return new J(s.line,P,I)}}var Z=function(ae,he,se){for(var pe=function(Je,Lt){return Lt?new J(s.line,p(Je,1),"before"):new J(s.line,Je,"after")};ae>=0&&ae<c.length;ae+=he){var Le=c[ae],xe=he>0==(Le.level!=1),Pe=xe?se.begin:p(se.end,-1);if(Le.from<=Pe&&Pe<Le.to||(Pe=xe?Le.from:p(Le.to,-1),se.begin<=Pe&&Pe<se.end))return pe(Pe,xe)}},q=Z(h+a,a,z);if(q)return q;var te=a>0?z.end:p(z.begin,-1);return te!=null&&!(a>0&&te==r.text.length)&&(q=Z(a>0?0:c.length-1,a,y(te)),q)?q:null}var ra={selectAll:td,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),De)},killLine:function(t){return Gn(t,function(r){if(r.empty()){var s=be(t.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<t.lastLine()?{from:r.head,to:J(r.head.line+1,0)}:{from:r.head,to:J(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Gn(t,function(r){return{from:J(r.from().line,0),to:de(t.doc,J(r.to().line+1,0))}})},delLineLeft:function(t){return Gn(t,function(r){return{from:J(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Gn(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(t){return Gn(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(J(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(J(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return md(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return yd(t,r.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(r){return z3(t,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div")},Te)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:s},"div")},Te)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return a.ch<t.getLine(a.line).search(/\S/)?yd(t,r.head):a},Te)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var r=[],s=t.listSelections(),a=t.options.tabSize,c=0;c<s.length;c++){var h=s[c].from(),f=Xe(t.getLine(h.line),h.ch,a);r.push(ir(a-f%a))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Xt(t,function(){for(var r=t.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var c=r[a].head,h=be(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new J(c.line,c.ch-1)),c.ch>0)c=new J(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),J(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=be(t.doc,c.line-1).text;f&&(c=new J(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),J(c.line-1,f.length-1),c,"+transpose"))}}s.push(new Ge(c,c))}t.setSelections(s)})},newlineAndIndent:function(t){return Xt(t,function(){for(var r=t.listSelections(),s=r.length-1;s>=0;s--)t.replaceRange(t.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=t.listSelections();for(var a=0;a<r.length;a++)t.indentLine(r[a].from().line,null,!0);Rn(t)})},openLine:function(t){return t.replaceSelection(`
3000
+ `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function md(t,r){var s=be(t.doc,r),a=Wr(s);return a!=s&&(r=je(a)),D1(!0,t,a,r,1)}function z3(t,r){var s=be(t.doc,r),a=a4(s);return a!=s&&(r=je(a)),D1(!0,t,s,r,-1)}function yd(t,r){var s=md(t,r.line),a=be(t.doc,s.line),c=Kt(a,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),f=r.line==s.line&&r.ch<=h&&r.ch;return J(s.line,f?0:h,s.sticky)}return s}function zs(t,r,s){if(typeof r=="string"&&(r=ra[r],!r))return!1;t.display.input.ensurePolled();var a=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),s&&(t.display.shift=!1),c=r(t)!=Ie}finally{t.display.shift=a,t.state.suppressEdits=!1}return c}function L3(t,r,s){for(var a=0;a<t.state.keyMaps.length;a++){var c=jn(r,t.state.keyMaps[a],s,t);if(c)return c}return t.options.extraKeys&&jn(r,t.options.extraKeys,s,t)||jn(r,t.options.keyMap,s,t)}var S3=new Be;function ia(t,r,s,a){var c=t.state.keySeq;if(c){if(gd(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:S3.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),Cd(t,c+" "+r,s,a))return!0}return Cd(t,r,s,a)}function Cd(t,r,s,a){var c=L3(t,r,a);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&wt(t,"keyHandled",t,r,s),(c=="handled"||c=="multi")&&(_t(s),m1(t)),!!c}function wd(t,r){var s=bd(r,!0);return s?r.shiftKey&&!t.state.keySeq?ia(t,"Shift-"+s,r,function(a){return zs(t,a,!0)})||ia(t,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return zs(t,a)}):ia(t,s,r,function(a){return zs(t,a)}):!1}function M3(t,r,s){return ia(t,"'"+s+"'",r,function(a){return zs(t,a,!0)})}var N1=null;function xd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=ye(),!ft(r,t))){m&&b<11&&t.keyCode==27&&(t.returnValue=!1);var s=t.keyCode;r.display.shift=s==16||t.shiftKey;var a=wd(r,t);$&&(N1=a?s:null,!a&&s==88&&!Xa&&(B?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!B&&!a&&s==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&T3(r)}}function T3(t){var r=t.display.lineDiv;ke(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(X(r,"CodeMirror-crosshair"),Ft(document,"keyup",s),Ft(document,"mouseover",s))}Se(document,"keyup",s),Se(document,"mouseover",s)}function zd(t){t.keyCode==16&&(this.doc.sel.shift=!1),ft(this,t)}function Ld(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(ai(r.display,t)||ft(r,t)||t.ctrlKey&&!t.altKey||B&&t.metaKey)){var s=t.keyCode,a=t.charCode;if($&&s==N1){N1=null,_t(t);return}if(!($&&(!t.which||t.which<10)&&wd(r,t))){var c=String.fromCharCode(a==null?s:a);c!="\b"&&(M3(r,t,c)||r.display.input.onKeyPress(t))}}}var k3=400,H1=function(t,r,s){this.time=t,this.pos=r,this.button=s};H1.prototype.compare=function(t,r,s){return this.time+k3>t&&C(r,this.pos)==0&&s==this.button};var na,oa;function O3(t,r){var s=+new Date;return oa&&oa.compare(s,t,r)?(na=oa=null,"triple"):na&&na.compare(s,t,r)?(oa=new H1(s,t,r),na=null,"double"):(na=new H1(s,t,r),oa=null,"single")}function Sd(t){var r=this,s=r.display;if(!(ft(r,t)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=t.shiftKey,ai(s,t)){M||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!R1(r,t)){var a=Ki(r,t),c=qa(t),h=a?O3(a,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(a&&$3(r,c,a,h,t))&&(c==1?a?_3(r,a,h,t):Ci(t)==s.scroller&&_t(t):c==2?(a&&bs(r.doc,a),setTimeout(function(){return s.input.focus()},20)):c==3&&(Me?r.display.input.onContextMenu(t):y1(r)))}}}function $3(t,r,s,a,c){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,ia(t,vd(h,c),c,function(f){if(typeof f=="string"&&(f=ra[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,s)!=Ie}finally{t.state.suppressEdits=!1}return p})}function E3(t,r,s){var a=t.getOption("configureMouse"),c=a?a(t,r,s):{};if(c.unit==null){var h=K?s.shiftKey&&s.metaKey:s.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||s.shiftKey),c.addNew==null&&(c.addNew=B?s.metaKey:s.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?s.altKey:s.ctrlKey)),c}function _3(t,r,s,a){m?setTimeout(Et(Mu,t),0):t.curOp.focus=ye();var c=E3(t,s,a),h=t.doc.sel,f;t.options.dragDrop&&Mo&&!t.isReadOnly()&&s=="single"&&(f=h.contains(r))>-1&&(C((f=h.ranges[f]).from(),r)<0||r.xRel>0)&&(C(f.to(),r)>0||r.xRel<0)?I3(t,a,r,c):A3(t,a,r,c)}function I3(t,r,s,a){var c=t.display,h=!1,f=xt(t,function(y){M&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:y1(t)),Ft(c.wrapper.ownerDocument,"mouseup",f),Ft(c.wrapper.ownerDocument,"mousemove",p),Ft(c.scroller,"dragstart",g),Ft(c.scroller,"drop",f),h||(_t(y),a.addNew||bs(t.doc,s,null,null,a.extend),M&&!N||m&&b==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(y){h=h||Math.abs(r.clientX-y.clientX)+Math.abs(r.clientY-y.clientY)>=10},g=function(){return h=!0};M&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!a.moveOnDrag,Se(c.wrapper.ownerDocument,"mouseup",f),Se(c.wrapper.ownerDocument,"mousemove",p),Se(c.scroller,"dragstart",g),Se(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Md(t,r,s){if(s=="char")return new Ge(r,r);if(s=="word")return t.findWordAt(r);if(s=="line")return new Ge(J(r.line,0),de(t.doc,J(r.line+1,0)));var a=s(t,r);return new Ge(a.from,a.to)}function A3(t,r,s,a){m&&y1(t);var c=t.display,h=t.doc;_t(r);var f,p,g=h.sel,y=g.ranges;if(a.addNew&&!a.extend?(p=h.sel.contains(s),p>-1?f=y[p]:f=new Ge(s,s)):(f=h.sel.primary(),p=h.sel.primIndex),a.unit=="rectangle")a.addNew||(f=new Ge(s,s)),s=Ki(t,r,!0,!0),p=-1;else{var z=Md(t,s,a.unit);a.extend?f=_1(f,z.anchor,z.head,a.extend):f=z}a.addNew?p==-1?(p=y.length,At(h,zr(t,y.concat([f]),p),{scroll:!1,origin:"*mouse"})):y.length>1&&y[p].empty()&&a.unit=="char"&&!a.extend?(At(h,zr(t,y.slice(0,p).concat(y.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):I1(h,p,f,Ae):(p=0,At(h,new ur([f],0),Ae),g=h.sel);var S=s;function P(se){if(C(S,se)!=0)if(S=se,a.unit=="rectangle"){for(var pe=[],Le=t.options.tabSize,xe=Xe(be(h,s.line).text,s.ch,Le),Pe=Xe(be(h,se.line).text,se.ch,Le),Je=Math.min(xe,Pe),Lt=Math.max(xe,Pe),nt=Math.min(s.line,se.line),Jt=Math.min(t.lastLine(),Math.max(s.line,se.line));nt<=Jt;nt++){var Wt=be(h,nt).text,pt=ht(Wt,Je,Le);Je==Lt?pe.push(new Ge(J(nt,pt),J(nt,pt))):Wt.length>pt&&pe.push(new Ge(J(nt,pt),J(nt,ht(Wt,Lt,Le))))}pe.length||pe.push(new Ge(s,s)),At(h,zr(t,g.ranges.slice(0,p).concat(pe),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(se)}else{var Ut=f,kt=Md(t,se,a.unit),mt=Ut.anchor,gt;C(kt.anchor,mt)>0?(gt=kt.head,mt=$e(Ut.from(),kt.anchor)):(gt=kt.anchor,mt=ee(Ut.to(),kt.head));var lt=g.ranges.slice(0);lt[p]=P3(t,new Ge(de(h,mt),gt)),At(h,zr(t,lt,p),Ae)}}var I=c.wrapper.getBoundingClientRect(),Z=0;function q(se){var pe=++Z,Le=Ki(t,se,!0,a.unit=="rectangle");if(Le)if(C(Le,S)!=0){t.curOp.focus=ye(),P(Le);var xe=ds(c,h);(Le.line>=xe.to||Le.line<xe.from)&&setTimeout(xt(t,function(){Z==pe&&q(se)}),150)}else{var Pe=se.clientY<I.top?-20:se.clientY>I.bottom?20:0;Pe&&setTimeout(xt(t,function(){Z==pe&&(c.scroller.scrollTop+=Pe,q(se))}),50)}}function te(se){t.state.selectingText=!1,Z=1/0,se&&(_t(se),c.input.focus()),Ft(c.wrapper.ownerDocument,"mousemove",ae),Ft(c.wrapper.ownerDocument,"mouseup",he),h.history.lastSelOrigin=null}var ae=xt(t,function(se){se.buttons===0||!qa(se)?te(se):q(se)}),he=xt(t,te);t.state.selectingText=he,Se(c.wrapper.ownerDocument,"mousemove",ae),Se(c.wrapper.ownerDocument,"mouseup",he)}function P3(t,r){var s=r.anchor,a=r.head,c=be(t.doc,s.line);if(C(s,a)==0&&s.sticky==a.sticky)return r;var h=Kt(c);if(!h)return r;var f=at(h,s.ch,s.sticky),p=h[f];if(p.from!=s.ch&&p.to!=s.ch)return r;var g=f+(p.from==s.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var y;if(a.line!=s.line)y=(a.line-s.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var z=at(h,a.ch,a.sticky),S=z-f||(a.ch-s.ch)*(p.level==1?-1:1);z==g-1||z==g?y=S<0:y=S>0}var P=h[g+(y?-1:0)],I=y==(P.level==1),Z=I?P.from:P.to,q=I?"after":"before";return s.ch==Z&&s.sticky==q?r:new Ge(new J(s.line,Z,q),a)}function Td(t,r,s,a){var c,h;if(r.touches)c=r.touches[0].clientX,h=r.touches[0].clientY;else try{c=r.clientX,h=r.clientY}catch{return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&_t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!Tt(t,s))return or(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var y=f.gutters.childNodes[g];if(y&&y.getBoundingClientRect().right>=c){var z=Vr(t.doc,h),S=t.display.gutterSpecs[g];return Oe(t,s,t,z,S.className,r),or(r)}}}function R1(t,r){return Td(t,r,"gutterClick",!0)}function kd(t,r){ai(t.display,r)||D3(t,r)||ft(t,r,"contextmenu")||Me||t.display.input.onContextMenu(r)}function D3(t,r){return Tt(t,"gutterContextMenu")?Td(t,r,"gutterContextMenu",!1):!1}function Od(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ro(t)}var qn={toString:function(){return"CodeMirror.Init"}},$d={},Ls={};function N3(t){var r=t.optionHandlers;function s(a,c,h,f){t.defaults[a]=c,h&&(r[a]=f?function(p,g,y){y!=qn&&h(p,g,y)}:h)}t.defineOption=s,t.Init=qn,s("value","",function(a,c){return a.setValue(c)},!0),s("mode",null,function(a,c){a.doc.modeOption=c,O1(a)},!0),s("indentUnit",2,O1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Go(a),Ro(a),Vt(a)},!0),s("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var h=[],f=a.doc.first;a.doc.iter(function(g){for(var y=0;;){var z=g.text.indexOf(c,y);if(z==-1)break;y=z+c.length,h.push(J(f,z))}f++});for(var p=h.length-1;p>=0;p--)Wn(a.doc,c,h[p],J(h[p].line,h[p].ch+c.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,h){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=qn&&a.refresh()}),s("specialCharPlaceholder",h4,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),s("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),s("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),s("rtlMoveVisually",!ue),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Od(a),jo(a)},!0),s("keyMap","default",function(a,c,h){var f=xs(c),p=h!=qn&&xs(h);p&&p.detach&&p.detach(a,f),f.attach&&f.attach(a,p||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,R3,!0),s("gutters",[],function(a,c){a.display.gutterSpecs=T1(c,a.options.lineNumbers),jo(a)},!0),s("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?v1(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Fn(a)},!0),s("scrollbarStyle","native",function(a){_u(a),Fn(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,c){a.display.gutterSpecs=T1(a.options.gutters,c),jo(a)},!0),s("firstLineNumber",1,jo,!0),s("lineNumberFormatter",function(a){return a},jo,!0),s("showCursorWhenSelecting",!1,Fo,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,c){c=="nocursor"&&(Hn(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),s("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),s("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),s("dragDrop",!0,H3),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Fo,!0),s("singleCursorHeightPerLine",!0,Fo,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Go,!0),s("addModeClass",!1,Go,!0),s("pollInterval",100),s("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Go,!0),s("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),s("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),s("autofocus",null),s("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),s("phrases",null)}function H3(t,r,s){var a=s&&s!=qn;if(!r!=!a){var c=t.display.dragFunctions,h=r?Se:Ft;h(t.display.scroller,"dragstart",c.start),h(t.display.scroller,"dragenter",c.enter),h(t.display.scroller,"dragover",c.over),h(t.display.scroller,"dragleave",c.leave),h(t.display.scroller,"drop",c.drop)}}function R3(t){t.options.lineWrapping?(ke(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(X(t.display.wrapper,"CodeMirror-wrap"),a1(t)),b1(t),Vt(t),Ro(t),setTimeout(function(){return Fn(t)},100)}function tt(t,r){var s=this;if(!(this instanceof tt))return new tt(t,r);this.options=r=r?Ye(r):{},Ye($d,r,!1);var a=r.value;typeof a=="string"?a=new Zt(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var c=new tt.inputStyles[r.inputStyle](this),h=this.display=new J4(t,a,c,r);h.wrapper.CodeMirror=this,Od(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_u(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Be,keySeq:null,specialChars:null},r.autofocus&&!A&&h.input.focus(),m&&b<11&&setTimeout(function(){return s.display.input.reset(!0)},20),F3(this),b3(),Qi(this),this.curOp.forceUpdate=!0,Vu(this,a),r.autofocus&&!A||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&C1(s)},20):Hn(this);for(var f in Ls)Ls.hasOwnProperty(f)&&Ls[f](this,r[f],qn);Pu(this),r.finishInit&&r.finishInit(this);for(var p=0;p<F1.length;++p)F1[p](this);en(this),M&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}tt.defaults=$d,tt.optionHandlers=Ls;function F3(t){var r=t.display;Se(r.scroller,"mousedown",xt(t,Sd)),m&&b<11?Se(r.scroller,"dblclick",xt(t,function(g){if(!ft(t,g)){var y=Ki(t,g);if(!(!y||R1(t,g)||ai(t.display,g))){_t(g);var z=t.findWordAt(y);bs(t.doc,z.anchor,z.head)}}})):Se(r.scroller,"dblclick",function(g){return ft(t,g)||_t(g)}),Se(r.scroller,"contextmenu",function(g){return kd(t,g)}),Se(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||kd(t,g)});var s,a={end:0};function c(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var y=g.touches[0];return y.radiusX<=1&&y.radiusY<=1}function f(g,y){if(y.left==null)return!0;var z=y.left-g.left,S=y.top-g.top;return z*z+S*S>20*20}Se(r.scroller,"touchstart",function(g){if(!ft(t,g)&&!h(g)&&!R1(t,g)){r.input.ensurePolled(),clearTimeout(s);var y=+new Date;r.activeTouch={start:y,moved:!1,prev:y-a.end<=300?a:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Se(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Se(r.scroller,"touchend",function(g){var y=r.activeTouch;if(y&&!ai(r,g)&&y.left!=null&&!y.moved&&new Date-y.start<300){var z=t.coordsChar(r.activeTouch,"page"),S;!y.prev||f(y,y.prev)?S=new Ge(z,z):!y.prev.prev||f(y,y.prev.prev)?S=t.findWordAt(z):S=new Ge(J(z.line,0),de(t.doc,J(z.line+1,0))),t.setSelection(S.anchor,S.head),t.focus(),_t(g)}c()}),Se(r.scroller,"touchcancel",c),Se(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Vo(t,r.scroller.scrollTop),Xi(t,r.scroller.scrollLeft,!0),Oe(t,"scroll",t))}),Se(r.scroller,"mousewheel",function(g){return Hu(t,g)}),Se(r.scroller,"DOMMouseScroll",function(g){return Hu(t,g)}),Se(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ft(t,g)||Ui(g)},over:function(g){ft(t,g)||(v3(t,g),Ui(g))},start:function(g){return g3(t,g)},drop:xt(t,p3),leave:function(g){ft(t,g)||hd(t)}};var p=r.input.getField();Se(p,"keyup",function(g){return zd.call(t,g)}),Se(p,"keydown",xt(t,xd)),Se(p,"keypress",xt(t,Ld)),Se(p,"focus",function(g){return C1(t,g)}),Se(p,"blur",function(g){return Hn(t,g)})}var F1=[];tt.defineInitHook=function(t){return F1.push(t)};function aa(t,r,s,a){var c=t.doc,h;s==null&&(s="add"),s=="smart"&&(c.mode.indent?h=Ao(t,r).state:s="prev");var f=t.options.tabSize,p=be(c,r),g=Xe(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var y=p.text.match(/^\s*/)[0],z;if(!a&&!/\S/.test(p.text))z=0,s="not";else if(s=="smart"&&(z=c.mode.indent(h,p.text.slice(y.length),p.text),z==Ie||z>150)){if(!a)return;s="prev"}s=="prev"?r>c.first?z=Xe(be(c,r-1).text,null,f):z=0:s=="add"?z=g+t.options.indentUnit:s=="subtract"?z=g-t.options.indentUnit:typeof s=="number"&&(z=g+s),z=Math.max(0,z);var S="",P=0;if(t.options.indentWithTabs)for(var I=Math.floor(z/f);I;--I)P+=f,S+=" ";if(P<z&&(S+=ir(z-P)),S!=y)return Wn(c,S,J(r,0),J(r,y.length),"+input"),p.stateAfter=null,!0;for(var Z=0;Z<c.sel.ranges.length;Z++){var q=c.sel.ranges[Z];if(q.head.line==r&&q.head.ch<y.length){var te=J(r,y.length);I1(c,Z,new Ge(te,te));break}}}var Lr=null;function Ss(t){Lr=t}function B1(t,r,s,a,c){var h=t.doc;t.display.shift=!1,a||(a=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=ko(r),y=null;if(p&&a.ranges.length>1)if(Lr&&Lr.text.join(`
3001
3001
  `)==r){if(a.ranges.length%Lr.text.length==0){y=[];for(var z=0;z<Lr.text.length;z++)y.push(h.splitLines(Lr.text[z]))}}else g.length==a.ranges.length&&t.options.pasteLinesPerSelection&&(y=Ve(g,function(ae){return[ae]}));for(var S=t.curOp.updateInput,P=a.ranges.length-1;P>=0;P--){var I=a.ranges[P],Z=I.from(),q=I.to();I.empty()&&(s&&s>0?Z=J(Z.line,Z.ch-s):t.state.overwrite&&!p?q=J(q.line,Math.min(be(h,q.line).text.length,q.ch+_e(g).length)):p&&Lr&&Lr.lineWise&&Lr.text.join(`
3002
3002
  `)==g.join(`
3003
- `)&&(Z=q=J(Z.line,0)));var te={from:Z,to:q,text:y?y[P%y.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Zn(t.doc,te),wt(t,"inputRead",t,te)}r&&!p&&Id(t,r),Rn(t),t.curOp.updateInput<2&&(t.curOp.updateInput=S),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function _d(t,r){var s=t.clipboardData&&t.clipboardData.getData("Text");if(s)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Xt(r,function(){return B1(r,s,0,null,"paste")}),!0}function Id(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var s=t.doc.sel,a=s.ranges.length-1;a>=0;a--){var c=s.ranges[a];if(!(c.head.ch>100||a&&s.ranges[a-1].head.line==c.head.line)){var h=t.getModeAt(c.head),f=!1;if(h.electricChars){for(var p=0;p<h.electricChars.length;p++)if(r.indexOf(h.electricChars.charAt(p))>-1){f=aa(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(be(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=aa(t,c.head.line,"smart"));f&&wt(t,"electricInput",t,c.head.line)}}}function Ad(t){for(var r=[],s=[],a=0;a<t.doc.sel.ranges.length;a++){var c=t.doc.sel.ranges[a].head.line,h={anchor:J(c,0),head:J(c+1,0)};s.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:s}}function Pd(t,r,s,a){t.setAttribute("autocorrect",s?"":"off"),t.setAttribute("autocapitalize",a?"":"off"),t.setAttribute("spellcheck",!!r)}function Dd(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?t.style.width="1000px":t.setAttribute("wrap","off"),_&&(t.style.border="1px solid black"),Pd(t),r}function V3(t){var r=t.optionHandlers,s=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var h=this.options,f=h[a];h[a]==c&&a!="mode"||(h[a]=c,r.hasOwnProperty(a)&&xt(this,r[a])(this,c,f),Oe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,c){this.state.keyMaps[c?"push":"unshift"](xs(a))},removeKeyMap:function(a){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==a||c[h].name==a)return c.splice(h,1),!0},addOverlay:Nt(function(a,c){var h=a.token?a:t.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");ct(this.state.overlays,{mode:h,modeSpec:a,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Vt(this)}),removeOverlay:Nt(function(a){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==a||typeof a=="string"&&f.name==a){c.splice(h,1),this.state.modeGen++,Vt(this);return}}}),indentLine:Nt(function(a,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),ji(this.doc,a)&&aa(this,a,c,h)}),indentSelection:Nt(function(a){for(var c=this.doc.sel.ranges,h=-1,f=0;f<c.length;f++){var p=c[f];if(p.empty())p.head.line>h&&(aa(this,p.head.line,a,!0),h=p.head.line,f==this.doc.sel.primIndex&&Rn(this));else{var g=p.from(),y=p.to(),z=Math.max(h,g.line);h=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var S=z;S<h;++S)aa(this,S,a);var P=this.doc.sel.ranges;g.ch==0&&c.length==P.length&&P[f].from().ch>0&&I1(this.doc,f,new Ge(g,P[f].to()),De)}}}),getTokenAt:function(a,c){return W0(this,a,c)},getLineTokens:function(a,c){return W0(this,J(a),c,!0)},getTokenTypeAt:function(a){a=de(this.doc,a);var c=B0(this,be(this.doc,a.line)),h=0,f=(c.length-1)/2,p=a.ch,g;if(p==0)g=c[2];else for(;;){var y=h+f>>1;if((y?c[y*2-1]:0)>=p)f=y;else if(c[y*2+1]<p)h=y+1;else{g=c[y*2+2];break}}var z=g?g.indexOf("overlay "):-1;return z<0?g:z==0?null:g.slice(0,z-1)},getModeAt:function(a){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(a).state).mode:c},getHelper:function(a,c){return this.getHelpers(a,c)[0]},getHelpers:function(a,c){var h=[];if(!s.hasOwnProperty(c))return h;var f=s[c],p=this.getModeAt(a);if(typeof p[c]=="string")f[p[c]]&&h.push(f[p[c]]);else if(p[c])for(var g=0;g<p[c].length;g++){var y=f[p[c][g]];y&&h.push(y)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var z=0;z<f._global.length;z++){var S=f._global[z];S.pred(p,this)&&ge(h,S.val)==-1&&h.push(S.val)}return h},getStateAfter:function(a,c){var h=this.doc;return a=Fe(h,a==null?h.first+h.size-1:a),Ao(this,a+1,c).state},cursorCoords:function(a,c){var h,f=this.doc.sel.primary();return a==null?h=f.head:typeof a=="object"?h=de(this.doc,a):h=a?f.from():f.to(),xr(this,h,c||"page")},charCoords:function(a,c){return ss(this,de(this.doc,a),c||"page")},coordsChar:function(a,c){return a=yu(this,a,c||"page"),f1(this,a.left,a.top)},lineAtHeight:function(a,c){return a=yu(this,{top:a,left:0},c||"page").top,Vr(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,c,h){var f=!1,p;if(typeof a=="number"){var g=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>g&&(a=g,f=!0),p=be(this.doc,a)}else p=a;return as(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-oi(p):0)},defaultTextHeight:function(){return Dn(this.display)},defaultCharWidth:function(){return Nn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,h,f,p){var g=this.display;a=xr(this,de(this.doc,a));var y=a.bottom,z=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")y=a.top;else if(f=="above"||f=="near"){var S=Math.max(g.wrapper.clientHeight,this.doc.height),P=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||a.bottom+c.offsetHeight>S)&&a.top>c.offsetHeight?y=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=S&&(y=a.bottom),z+c.offsetWidth>P&&(z=P-c.offsetWidth)}c.style.top=y+"px",c.style.left=c.style.right="",p=="right"?(z=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?z=0:p=="middle"&&(z=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=z+"px"),h&&R4(this,{left:z,top:y,right:z+c.offsetWidth,bottom:y+c.offsetHeight})},triggerOnKeyDown:Nt(zd),triggerOnKeyPress:Nt(Sd),triggerOnKeyUp:Ld,triggerOnMouseDown:Nt(Md),execCommand:function(a){if(ra.hasOwnProperty(a))return ra[a].call(null,this)},triggerElectric:Nt(function(a){Id(this,a)}),findPosH:function(a,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=de(this.doc,a),y=0;y<c&&(g=V1(this.doc,g,p,h,f),!g.hitSide);++y);return g},moveH:Nt(function(a,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?V1(h.doc,f.head,a,c,h.options.rtlMoveVisually):a<0?f.from():f.to()},Te)}),deleteH:Nt(function(a,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Gn(this,function(p){var g=V1(f,p.head,a,c,!1);return a<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(a,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var y=de(this.doc,a),z=0;z<c;++z){var S=xr(this,y,"div");if(g==null?g=S.left:S.left=g,y=Nd(this,S,p,h),y.hitSide)break}return y},moveV:Nt(function(a,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(z){if(g)return a<0?z.from():z.to();var S=xr(h,z.head,"div");z.goalColumn!=null&&(S.left=z.goalColumn),p.push(S.left);var P=Nd(h,S,a,c);return c=="page"&&z==f.sel.primary()&&x1(h,ss(h,P,"div").top-S.top),P},Te),p.length)for(var y=0;y<f.sel.ranges.length;y++)f.sel.ranges[y].goalColumn=p[y]}),findWordAt:function(a){var c=this.doc,h=be(c,a.line).text,f=a.ch,p=a.ch;if(h){var g=this.getHelper(a,"wordChars");(a.sticky=="before"||p==h.length)&&f?--f:++p;for(var y=h.charAt(f),z=H(y,g)?function(S){return H(S,g)}:/\s/.test(y)?function(S){return/\s/.test(S)}:function(S){return!/\s/.test(S)&&!H(S)};f>0&&z(h.charAt(f-1));)--f;for(;p<h.length&&z(h.charAt(p));)++p}return new Ge(J(a.line,f),J(a.line,p))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ke(this.display.cursorDiv,"CodeMirror-overwrite"):X(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Nt(function(a,c){Bo(this,a,c)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Ur(this)-this.display.barHeight,width:a.scrollWidth-Ur(this)-this.display.barWidth,clientHeight:c1(this),clientWidth:Gi(this)}},scrollIntoView:Nt(function(a,c){a==null?(a={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof a=="number"?a={from:J(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=c||0,a.from.line!=null?F4(this,a):Ou(this,a.from,a.to,a.margin)}),setSize:Nt(function(a,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};a!=null&&(this.display.wrapper.style.width=f(a)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&vu(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var y=0;y<g.widgets.length;y++)if(g.widgets[y].noHScroll){zi(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(a){return Xt(this,a)},startOperation:function(){return Qi(this)},endOperation:function(){return en(this)},refresh:Nt(function(){var a=this.display.cachedTextHeight;Vt(this),this.curOp.forceUpdate=!0,Ro(this),Bo(this,this.doc.scrollLeft,this.doc.scrollTop),S1(this.display),(a==null||Math.abs(a-Dn(this.display))>.5||this.options.lineWrapping)&&b1(this),Oe(this,"refresh",this)}),swapDoc:Nt(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Zu(this,a),Ro(this),this.display.input.reset(),Bo(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,wt(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Rr(t),t.registerHelper=function(a,c,h){s.hasOwnProperty(a)||(s[a]=t[a]={_global:[]}),s[a][c]=h},t.registerGlobalHelper=function(a,c,h,f){t.registerHelper(a,c,f),s[a]._global.push({pred:h,val:f})}}function V1(t,r,s,a,c){var h=r,f=s,p=be(t,r.line),g=c&&t.direction=="rtl"?-s:s;function y(){var he=r.line+g;return he<t.first||he>=t.first+t.size?!1:(r=new J(he,r.ch,r.sticky),p=be(t,he))}function z(he){var se;if(a=="codepoint"){var pe=p.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(pe))se=null;else{var Le=s>0?pe>=55296&&pe<56320:pe>=56320&&pe<57343;se=new J(r.line,Math.max(0,Math.min(p.text.length,r.ch+s*(Le?2:1))),-s)}}else c?se=z3(t.cm,p,r,s):se=P1(p,r,s);if(se==null)if(!he&&y())r=D1(c,t.cm,p,r.line,g);else return!1;else r=se;return!0}if(a=="char"||a=="codepoint")z();else if(a=="column")z(!0);else if(a=="word"||a=="group")for(var S=null,P=a=="group",I=t.cm&&t.cm.getHelper(r,"wordChars"),Z=!0;!(s<0&&!z(!Z));Z=!1){var q=p.text.charAt(r.ch)||`
3003
+ `)&&(Z=q=J(Z.line,0)));var te={from:Z,to:q,text:y?y[P%y.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Zn(t.doc,te),wt(t,"inputRead",t,te)}r&&!p&&_d(t,r),Rn(t),t.curOp.updateInput<2&&(t.curOp.updateInput=S),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ed(t,r){var s=t.clipboardData&&t.clipboardData.getData("Text");if(s)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Xt(r,function(){return B1(r,s,0,null,"paste")}),!0}function _d(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var s=t.doc.sel,a=s.ranges.length-1;a>=0;a--){var c=s.ranges[a];if(!(c.head.ch>100||a&&s.ranges[a-1].head.line==c.head.line)){var h=t.getModeAt(c.head),f=!1;if(h.electricChars){for(var p=0;p<h.electricChars.length;p++)if(r.indexOf(h.electricChars.charAt(p))>-1){f=aa(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(be(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=aa(t,c.head.line,"smart"));f&&wt(t,"electricInput",t,c.head.line)}}}function Id(t){for(var r=[],s=[],a=0;a<t.doc.sel.ranges.length;a++){var c=t.doc.sel.ranges[a].head.line,h={anchor:J(c,0),head:J(c+1,0)};s.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:s}}function Ad(t,r,s,a){t.setAttribute("autocorrect",s?"":"off"),t.setAttribute("autocapitalize",a?"":"off"),t.setAttribute("spellcheck",!!r)}function Pd(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?t.style.width="1000px":t.setAttribute("wrap","off"),_&&(t.style.border="1px solid black"),Ad(t),r}function B3(t){var r=t.optionHandlers,s=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var h=this.options,f=h[a];h[a]==c&&a!="mode"||(h[a]=c,r.hasOwnProperty(a)&&xt(this,r[a])(this,c,f),Oe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,c){this.state.keyMaps[c?"push":"unshift"](xs(a))},removeKeyMap:function(a){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==a||c[h].name==a)return c.splice(h,1),!0},addOverlay:Nt(function(a,c){var h=a.token?a:t.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");ct(this.state.overlays,{mode:h,modeSpec:a,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Vt(this)}),removeOverlay:Nt(function(a){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==a||typeof a=="string"&&f.name==a){c.splice(h,1),this.state.modeGen++,Vt(this);return}}}),indentLine:Nt(function(a,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),ji(this.doc,a)&&aa(this,a,c,h)}),indentSelection:Nt(function(a){for(var c=this.doc.sel.ranges,h=-1,f=0;f<c.length;f++){var p=c[f];if(p.empty())p.head.line>h&&(aa(this,p.head.line,a,!0),h=p.head.line,f==this.doc.sel.primIndex&&Rn(this));else{var g=p.from(),y=p.to(),z=Math.max(h,g.line);h=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var S=z;S<h;++S)aa(this,S,a);var P=this.doc.sel.ranges;g.ch==0&&c.length==P.length&&P[f].from().ch>0&&I1(this.doc,f,new Ge(g,P[f].to()),De)}}}),getTokenAt:function(a,c){return Z0(this,a,c)},getLineTokens:function(a,c){return Z0(this,J(a),c,!0)},getTokenTypeAt:function(a){a=de(this.doc,a);var c=F0(this,be(this.doc,a.line)),h=0,f=(c.length-1)/2,p=a.ch,g;if(p==0)g=c[2];else for(;;){var y=h+f>>1;if((y?c[y*2-1]:0)>=p)f=y;else if(c[y*2+1]<p)h=y+1;else{g=c[y*2+2];break}}var z=g?g.indexOf("overlay "):-1;return z<0?g:z==0?null:g.slice(0,z-1)},getModeAt:function(a){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(a).state).mode:c},getHelper:function(a,c){return this.getHelpers(a,c)[0]},getHelpers:function(a,c){var h=[];if(!s.hasOwnProperty(c))return h;var f=s[c],p=this.getModeAt(a);if(typeof p[c]=="string")f[p[c]]&&h.push(f[p[c]]);else if(p[c])for(var g=0;g<p[c].length;g++){var y=f[p[c][g]];y&&h.push(y)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var z=0;z<f._global.length;z++){var S=f._global[z];S.pred(p,this)&&ge(h,S.val)==-1&&h.push(S.val)}return h},getStateAfter:function(a,c){var h=this.doc;return a=Fe(h,a==null?h.first+h.size-1:a),Ao(this,a+1,c).state},cursorCoords:function(a,c){var h,f=this.doc.sel.primary();return a==null?h=f.head:typeof a=="object"?h=de(this.doc,a):h=a?f.from():f.to(),xr(this,h,c||"page")},charCoords:function(a,c){return ss(this,de(this.doc,a),c||"page")},coordsChar:function(a,c){return a=mu(this,a,c||"page"),f1(this,a.left,a.top)},lineAtHeight:function(a,c){return a=mu(this,{top:a,left:0},c||"page").top,Vr(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,c,h){var f=!1,p;if(typeof a=="number"){var g=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>g&&(a=g,f=!0),p=be(this.doc,a)}else p=a;return as(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-oi(p):0)},defaultTextHeight:function(){return Dn(this.display)},defaultCharWidth:function(){return Nn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,h,f,p){var g=this.display;a=xr(this,de(this.doc,a));var y=a.bottom,z=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")y=a.top;else if(f=="above"||f=="near"){var S=Math.max(g.wrapper.clientHeight,this.doc.height),P=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||a.bottom+c.offsetHeight>S)&&a.top>c.offsetHeight?y=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=S&&(y=a.bottom),z+c.offsetWidth>P&&(z=P-c.offsetWidth)}c.style.top=y+"px",c.style.left=c.style.right="",p=="right"?(z=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?z=0:p=="middle"&&(z=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=z+"px"),h&&H4(this,{left:z,top:y,right:z+c.offsetWidth,bottom:y+c.offsetHeight})},triggerOnKeyDown:Nt(xd),triggerOnKeyPress:Nt(Ld),triggerOnKeyUp:zd,triggerOnMouseDown:Nt(Sd),execCommand:function(a){if(ra.hasOwnProperty(a))return ra[a].call(null,this)},triggerElectric:Nt(function(a){_d(this,a)}),findPosH:function(a,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=de(this.doc,a),y=0;y<c&&(g=V1(this.doc,g,p,h,f),!g.hitSide);++y);return g},moveH:Nt(function(a,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?V1(h.doc,f.head,a,c,h.options.rtlMoveVisually):a<0?f.from():f.to()},Te)}),deleteH:Nt(function(a,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Gn(this,function(p){var g=V1(f,p.head,a,c,!1);return a<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(a,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var y=de(this.doc,a),z=0;z<c;++z){var S=xr(this,y,"div");if(g==null?g=S.left:S.left=g,y=Dd(this,S,p,h),y.hitSide)break}return y},moveV:Nt(function(a,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(z){if(g)return a<0?z.from():z.to();var S=xr(h,z.head,"div");z.goalColumn!=null&&(S.left=z.goalColumn),p.push(S.left);var P=Dd(h,S,a,c);return c=="page"&&z==f.sel.primary()&&x1(h,ss(h,P,"div").top-S.top),P},Te),p.length)for(var y=0;y<f.sel.ranges.length;y++)f.sel.ranges[y].goalColumn=p[y]}),findWordAt:function(a){var c=this.doc,h=be(c,a.line).text,f=a.ch,p=a.ch;if(h){var g=this.getHelper(a,"wordChars");(a.sticky=="before"||p==h.length)&&f?--f:++p;for(var y=h.charAt(f),z=H(y,g)?function(S){return H(S,g)}:/\s/.test(y)?function(S){return/\s/.test(S)}:function(S){return!/\s/.test(S)&&!H(S)};f>0&&z(h.charAt(f-1));)--f;for(;p<h.length&&z(h.charAt(p));)++p}return new Ge(J(a.line,f),J(a.line,p))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ke(this.display.cursorDiv,"CodeMirror-overwrite"):X(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Nt(function(a,c){Bo(this,a,c)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Ur(this)-this.display.barHeight,width:a.scrollWidth-Ur(this)-this.display.barWidth,clientHeight:c1(this),clientWidth:Gi(this)}},scrollIntoView:Nt(function(a,c){a==null?(a={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof a=="number"?a={from:J(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=c||0,a.from.line!=null?R4(this,a):ku(this,a.from,a.to,a.margin)}),setSize:Nt(function(a,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};a!=null&&(this.display.wrapper.style.width=f(a)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&gu(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var y=0;y<g.widgets.length;y++)if(g.widgets[y].noHScroll){zi(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(a){return Xt(this,a)},startOperation:function(){return Qi(this)},endOperation:function(){return en(this)},refresh:Nt(function(){var a=this.display.cachedTextHeight;Vt(this),this.curOp.forceUpdate=!0,Ro(this),Bo(this,this.doc.scrollLeft,this.doc.scrollTop),S1(this.display),(a==null||Math.abs(a-Dn(this.display))>.5||this.options.lineWrapping)&&b1(this),Oe(this,"refresh",this)}),swapDoc:Nt(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Vu(this,a),Ro(this),this.display.input.reset(),Bo(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,wt(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Rr(t),t.registerHelper=function(a,c,h){s.hasOwnProperty(a)||(s[a]=t[a]={_global:[]}),s[a][c]=h},t.registerGlobalHelper=function(a,c,h,f){t.registerHelper(a,c,f),s[a]._global.push({pred:h,val:f})}}function V1(t,r,s,a,c){var h=r,f=s,p=be(t,r.line),g=c&&t.direction=="rtl"?-s:s;function y(){var he=r.line+g;return he<t.first||he>=t.first+t.size?!1:(r=new J(he,r.ch,r.sticky),p=be(t,he))}function z(he){var se;if(a=="codepoint"){var pe=p.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(pe))se=null;else{var Le=s>0?pe>=55296&&pe<56320:pe>=56320&&pe<57343;se=new J(r.line,Math.max(0,Math.min(p.text.length,r.ch+s*(Le?2:1))),-s)}}else c?se=x3(t.cm,p,r,s):se=P1(p,r,s);if(se==null)if(!he&&y())r=D1(c,t.cm,p,r.line,g);else return!1;else r=se;return!0}if(a=="char"||a=="codepoint")z();else if(a=="column")z(!0);else if(a=="word"||a=="group")for(var S=null,P=a=="group",I=t.cm&&t.cm.getHelper(r,"wordChars"),Z=!0;!(s<0&&!z(!Z));Z=!1){var q=p.text.charAt(r.ch)||`
3004
3004
  `,te=H(q,I)?"w":P&&q==`
3005
- `?"n":!P||/\s/.test(q)?null:"p";if(P&&!Z&&!te&&(te="s"),S&&S!=te){s<0&&(s=1,z(),r.sticky="after");break}if(te&&(S=te),s>0&&!z(!Z))break}var ae=ys(t,r,h,f,!0);return k(h,ae)&&(ae.hitSide=!0),ae}function Nd(t,r,s,a){var c=t.doc,h=r.left,f;if(a=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Dn(t.display),3);f=(s>0?r.bottom:r.top)+s*g}else a=="line"&&(f=s>0?r.bottom+3:r.top-3);for(var y;y=f1(t,h,f),!!y.outside;){if(s<0?f<=0:f>=c.height){y.hitSide=!0;break}f+=s*5}return y}var Ke=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ke.prototype.init=function(t){var r=this,s=this,a=s.cm,c=s.div=t.lineDiv;c.contentEditable=!0,Pd(c,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(p){for(var g=p.target;g;g=g.parentNode){if(g==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(g.className))break}return!1}Se(c,"paste",function(p){!h(p)||ft(a,p)||_d(p,a)||b<=11&&setTimeout(xt(a,function(){return r.updateFromDOM()}),20)}),Se(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Se(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Se(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Se(c,"touchstart",function(){return s.forceCompositionEnd()}),Se(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ft(a,p))){if(a.somethingSelected())Ss({lineWise:!1,text:a.getSelections()}),p.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var g=Ad(a);Ss({lineWise:!0,text:g.text}),p.type=="cut"&&a.operation(function(){a.setSelections(g.ranges,0,De),a.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var y=Lr.text.join(`
3006
- `);if(p.clipboardData.setData("Text",y),p.clipboardData.getData("Text")==y){p.preventDefault();return}}var z=Dd(),S=z.firstChild;a.display.lineSpace.insertBefore(z,a.display.lineSpace.firstChild),S.value=Lr.text.join(`
3007
- `);var P=ye();ot(S),setTimeout(function(){a.display.lineSpace.removeChild(z),P.focus(),P==c&&s.showPrimarySelection()},50)}}Se(c,"copy",f),Se(c,"cut",f)},Ke.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Ke.prototype.prepareSelection=function(){var t=Su(this.cm,!1);return t.focus=ye()==this.div,t},Ke.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ke.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ke.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),c=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=Ms(r,t.anchorNode,t.anchorOffset),f=Ms(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C($e(h,f),a)==0&&C(ee(h,f),c)==0)){var p=r.display.view,g=a.line>=r.display.viewFrom&&Hd(r,a)||{node:p[0].measure.map[2],offset:0},y=c.line<r.display.viewTo&&Hd(r,c);if(!y){var z=p[p.length-1].measure,S=z.maps?z.maps[z.maps.length-1]:z.map;y={node:S[S.length-1],offset:S[S.length-2]-S[S.length-3]}}if(!g||!y){t.removeAllRanges();return}var P=t.rangeCount&&t.getRangeAt(0),I;try{I=U(g.node,g.offset,y.offset,y.node)}catch{}I&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),I.collapsed||(t.removeAllRanges(),t.addRange(I))):(t.removeAllRanges(),t.addRange(I)),P&&t.anchorNode==null?t.addRange(P):l&&this.startGracePeriod()),this.rememberSelection()}},Ke.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},Ke.prototype.showMultipleSelections=function(t){O(this.cm.display.cursorDiv,t.cursors),O(this.cm.display.selectionDiv,t.selection)},Ke.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ke.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return ne(this.div,r)},Ke.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ke.prototype.blur=function(){this.div.blur()},Ke.prototype.getField=function(){return this.div},Ke.prototype.supportsTouch=function(){return!0},Ke.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Xt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Ke.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ke.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(D&&T&&this.cm.display.gutterSpecs.length&&Z3(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ms(r,t.anchorNode,t.anchorOffset),a=Ms(r,t.focusNode,t.focusOffset);s&&a&&Xt(r,function(){At(r.doc,Si(s,a),De),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},Ke.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,s=t.doc.sel.primary(),a=s.from(),c=s.to();if(a.ch==0&&a.line>t.firstLine()&&(a=J(a.line-1,be(t.doc,a.line-1).length)),c.ch==be(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=J(c.line+1,0)),a.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;a.line==r.viewFrom||(h=Yi(t,a.line))==0?(f=je(r.view[0].line),p=r.view[0].node):(f=je(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=Yi(t,c.line),y,z;if(g==r.view.length-1?(y=r.viewTo-1,z=r.lineDiv.lastChild):(y=je(r.view[g+1].line)-1,z=r.view[g+1].node.previousSibling),!p)return!1;for(var S=t.doc.splitLines(W3(t,p,z,f,y)),P=Br(t.doc,J(f,0),J(y,be(t.doc,y).text.length));S.length>1&&P.length>1;)if(_e(S)==_e(P))S.pop(),P.pop(),y--;else if(S[0]==P[0])S.shift(),P.shift(),f++;else break;for(var I=0,Z=0,q=S[0],te=P[0],ae=Math.min(q.length,te.length);I<ae&&q.charCodeAt(I)==te.charCodeAt(I);)++I;for(var he=_e(S),se=_e(P),pe=Math.min(he.length-(S.length==1?I:0),se.length-(P.length==1?I:0));Z<pe&&he.charCodeAt(he.length-Z-1)==se.charCodeAt(se.length-Z-1);)++Z;if(S.length==1&&P.length==1&&f==a.line)for(;I&&I>a.ch&&he.charCodeAt(he.length-Z-1)==se.charCodeAt(se.length-Z-1);)I--,Z++;S[S.length-1]=he.slice(0,he.length-Z).replace(/^\u200b+/,""),S[0]=S[0].slice(I).replace(/\u200b+$/,"");var Le=J(f,I),xe=J(y,P.length?_e(P).length-Z:0);if(S.length>1||S[0]||C(Le,xe))return Wn(t.doc,S,Le,xe,"+input"),!0},Ke.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ke.prototype.reset=function(){this.forceCompositionEnd()},Ke.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ke.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},Ke.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&Xt(this.cm,function(){return Vt(t.cm)})},Ke.prototype.setUneditable=function(t){t.contentEditable="false"},Ke.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||xt(this.cm,B1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},Ke.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Ke.prototype.onContextMenu=function(){},Ke.prototype.resetPosition=function(){},Ke.prototype.needsContentAttribute=!0;function Hd(t,r){var s=u1(t,r.line);if(!s||s.hidden)return null;var a=be(t.doc,r.line),c=du(s,a,r.line),h=Kt(a,t.doc.direction),f="left";if(h){var p=at(h,r.ch);f=p%2?"right":"left"}var g=pu(c.map,r.ch,f);return g.offset=g.collapse=="right"?g.end:g.start,g}function Z3(t){for(var r=t;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function Kn(t,r){return r&&(t.bad=!0),t}function W3(t,r,s,a,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function y(I){return function(Z){return Z.id==I}}function z(){f&&(h+=p,g&&(h+=p),f=g=!1)}function S(I){I&&(z(),h+=I)}function P(I){if(I.nodeType==1){var Z=I.getAttribute("cm-text");if(Z){S(Z);return}var q=I.getAttribute("cm-marker"),te;if(q){var ae=t.findMarks(J(a,0),J(c+1,0),y(+q));ae.length&&(te=ae[0].find(0))&&S(Br(t.doc,te.from,te.to).join(p));return}if(I.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(I.nodeName);if(!/^br$/i.test(I.nodeName)&&I.textContent.length==0)return;he&&z();for(var se=0;se<I.childNodes.length;se++)P(I.childNodes[se]);/^(pre|p)$/i.test(I.nodeName)&&(g=!0),he&&(f=!0)}else I.nodeType==3&&S(I.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;P(r),r!=s;)r=r.nextSibling,g=!1;return h}function Ms(t,r,s){var a;if(r==t.display.lineDiv){if(a=t.display.lineDiv.childNodes[s],!a)return Kn(t.clipPos(J(t.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==t.display.lineDiv)return null;if(a.parentNode&&a.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==a)return U3(h,r,s)}}function U3(t,r,s){var a=t.text.firstChild,c=!1;if(!r||!ne(a,r))return Kn(J(je(t.line),0),!0);if(r==a&&(c=!0,r=a.childNodes[s],s=0,!r)){var h=t.rest?_e(t.rest):t.line;return Kn(J(je(h),h.text.length),c)}var f=r.nodeType==3?r:null,p=r;for(!f&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(f=r.firstChild,s&&(s=f.nodeValue.length));p.parentNode!=a;)p=p.parentNode;var g=t.measure,y=g.maps;function z(te,ae,he){for(var se=-1;se<(y?y.length:0);se++)for(var pe=se<0?g.map:y[se],Le=0;Le<pe.length;Le+=3){var xe=pe[Le+2];if(xe==te||xe==ae){var Pe=je(se<0?t.line:t.rest[se]),Je=pe[Le]+he;return(he<0||xe!=te)&&(Je=pe[Le+(he?1:0)]),J(Pe,Je)}}}var S=z(f,p,s);if(S)return Kn(S,c);for(var P=p.nextSibling,I=f?f.nodeValue.length-s:0;P;P=P.nextSibling){if(S=z(P,P.firstChild,0),S)return Kn(J(S.line,S.ch-I),c);I+=P.textContent.length}for(var Z=p.previousSibling,q=s;Z;Z=Z.previousSibling){if(S=z(Z,Z.firstChild,-1),S)return Kn(J(S.line,S.ch+q),c);q+=Z.textContent.length}}var ut=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Be,this.hasSelection=!1,this.composing=null};ut.prototype.init=function(t){var r=this,s=this,a=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),_&&(c.style.width="0px"),Se(c,"input",function(){m&&b>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),Se(c,"paste",function(f){ft(a,f)||_d(f,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(f){if(!ft(a,f)){if(a.somethingSelected())Ss({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var p=Ad(a);Ss({lineWise:!0,text:p.text}),f.type=="cut"?a.setSelections(p.ranges,null,De):(s.prevInput="",c.value=p.text.join(`
3008
- `),ot(c))}else return;f.type=="cut"&&(a.state.cutIncoming=+new Date)}}Se(c,"cut",h),Se(c,"copy",h),Se(t.scroller,"paste",function(f){if(!(ai(t,f)||ft(a,f))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Se(t.lineSpace,"selectstart",function(f){ai(t,f)||_t(f)}),Se(c,"compositionstart",function(){var f=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(c,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},ut.prototype.createField=function(t){this.wrapper=Dd(),this.textarea=this.wrapper.firstChild},ut.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ut.prototype.prepareSelection=function(){var t=this.cm,r=t.display,s=t.doc,a=Su(t);if(t.options.moveInputWithCursor){var c=xr(t,s.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return a},ut.prototype.showSelection=function(t){var r=this.cm,s=r.display;O(s.cursorDiv,t.cursors),O(s.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ut.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&ot(this.textarea),m&&b>=9&&(this.hasSelection=s)}else t||(this.prevInput=this.textarea.value="",m&&b>=9&&(this.hasSelection=null))}},ut.prototype.getField=function(){return this.textarea},ut.prototype.supportsTouch=function(){return!1},ut.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||ye()!=this.textarea))try{this.textarea.focus()}catch{}},ut.prototype.blur=function(){this.textarea.blur()},ut.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ut.prototype.receivedFocus=function(){this.slowPoll()},ut.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},ut.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!t?(t=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},ut.prototype.poll=function(){var t=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||Ya(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=s.value;if(c==a&&!r.somethingSelected())return!1;if(m&&b>=9&&this.hasSelection===c||B&&/[\uf700-\uf7ff]/.test(c))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var h=c.charCodeAt(0);if(h==8203&&!a&&(a="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(a.length,c.length);f<p&&a.charCodeAt(f)==c.charCodeAt(f);)++f;return Xt(r,function(){B1(r,c.slice(f),a.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
3005
+ `?"n":!P||/\s/.test(q)?null:"p";if(P&&!Z&&!te&&(te="s"),S&&S!=te){s<0&&(s=1,z(),r.sticky="after");break}if(te&&(S=te),s>0&&!z(!Z))break}var ae=ys(t,r,h,f,!0);return k(h,ae)&&(ae.hitSide=!0),ae}function Dd(t,r,s,a){var c=t.doc,h=r.left,f;if(a=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Dn(t.display),3);f=(s>0?r.bottom:r.top)+s*g}else a=="line"&&(f=s>0?r.bottom+3:r.top-3);for(var y;y=f1(t,h,f),!!y.outside;){if(s<0?f<=0:f>=c.height){y.hitSide=!0;break}f+=s*5}return y}var Ke=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ke.prototype.init=function(t){var r=this,s=this,a=s.cm,c=s.div=t.lineDiv;c.contentEditable=!0,Ad(c,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(p){for(var g=p.target;g;g=g.parentNode){if(g==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(g.className))break}return!1}Se(c,"paste",function(p){!h(p)||ft(a,p)||Ed(p,a)||b<=11&&setTimeout(xt(a,function(){return r.updateFromDOM()}),20)}),Se(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Se(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Se(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Se(c,"touchstart",function(){return s.forceCompositionEnd()}),Se(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ft(a,p))){if(a.somethingSelected())Ss({lineWise:!1,text:a.getSelections()}),p.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var g=Id(a);Ss({lineWise:!0,text:g.text}),p.type=="cut"&&a.operation(function(){a.setSelections(g.ranges,0,De),a.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var y=Lr.text.join(`
3006
+ `);if(p.clipboardData.setData("Text",y),p.clipboardData.getData("Text")==y){p.preventDefault();return}}var z=Pd(),S=z.firstChild;a.display.lineSpace.insertBefore(z,a.display.lineSpace.firstChild),S.value=Lr.text.join(`
3007
+ `);var P=ye();ot(S),setTimeout(function(){a.display.lineSpace.removeChild(z),P.focus(),P==c&&s.showPrimarySelection()},50)}}Se(c,"copy",f),Se(c,"cut",f)},Ke.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Ke.prototype.prepareSelection=function(){var t=Lu(this.cm,!1);return t.focus=ye()==this.div,t},Ke.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ke.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ke.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),c=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=Ms(r,t.anchorNode,t.anchorOffset),f=Ms(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C($e(h,f),a)==0&&C(ee(h,f),c)==0)){var p=r.display.view,g=a.line>=r.display.viewFrom&&Nd(r,a)||{node:p[0].measure.map[2],offset:0},y=c.line<r.display.viewTo&&Nd(r,c);if(!y){var z=p[p.length-1].measure,S=z.maps?z.maps[z.maps.length-1]:z.map;y={node:S[S.length-1],offset:S[S.length-2]-S[S.length-3]}}if(!g||!y){t.removeAllRanges();return}var P=t.rangeCount&&t.getRangeAt(0),I;try{I=U(g.node,g.offset,y.offset,y.node)}catch{}I&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),I.collapsed||(t.removeAllRanges(),t.addRange(I))):(t.removeAllRanges(),t.addRange(I)),P&&t.anchorNode==null?t.addRange(P):l&&this.startGracePeriod()),this.rememberSelection()}},Ke.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},Ke.prototype.showMultipleSelections=function(t){O(this.cm.display.cursorDiv,t.cursors),O(this.cm.display.selectionDiv,t.selection)},Ke.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ke.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return ne(this.div,r)},Ke.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ke.prototype.blur=function(){this.div.blur()},Ke.prototype.getField=function(){return this.div},Ke.prototype.supportsTouch=function(){return!0},Ke.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Xt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Ke.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ke.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(D&&T&&this.cm.display.gutterSpecs.length&&V3(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ms(r,t.anchorNode,t.anchorOffset),a=Ms(r,t.focusNode,t.focusOffset);s&&a&&Xt(r,function(){At(r.doc,Si(s,a),De),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},Ke.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,s=t.doc.sel.primary(),a=s.from(),c=s.to();if(a.ch==0&&a.line>t.firstLine()&&(a=J(a.line-1,be(t.doc,a.line-1).length)),c.ch==be(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=J(c.line+1,0)),a.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;a.line==r.viewFrom||(h=Yi(t,a.line))==0?(f=je(r.view[0].line),p=r.view[0].node):(f=je(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=Yi(t,c.line),y,z;if(g==r.view.length-1?(y=r.viewTo-1,z=r.lineDiv.lastChild):(y=je(r.view[g+1].line)-1,z=r.view[g+1].node.previousSibling),!p)return!1;for(var S=t.doc.splitLines(Z3(t,p,z,f,y)),P=Br(t.doc,J(f,0),J(y,be(t.doc,y).text.length));S.length>1&&P.length>1;)if(_e(S)==_e(P))S.pop(),P.pop(),y--;else if(S[0]==P[0])S.shift(),P.shift(),f++;else break;for(var I=0,Z=0,q=S[0],te=P[0],ae=Math.min(q.length,te.length);I<ae&&q.charCodeAt(I)==te.charCodeAt(I);)++I;for(var he=_e(S),se=_e(P),pe=Math.min(he.length-(S.length==1?I:0),se.length-(P.length==1?I:0));Z<pe&&he.charCodeAt(he.length-Z-1)==se.charCodeAt(se.length-Z-1);)++Z;if(S.length==1&&P.length==1&&f==a.line)for(;I&&I>a.ch&&he.charCodeAt(he.length-Z-1)==se.charCodeAt(se.length-Z-1);)I--,Z++;S[S.length-1]=he.slice(0,he.length-Z).replace(/^\u200b+/,""),S[0]=S[0].slice(I).replace(/\u200b+$/,"");var Le=J(f,I),xe=J(y,P.length?_e(P).length-Z:0);if(S.length>1||S[0]||C(Le,xe))return Wn(t.doc,S,Le,xe,"+input"),!0},Ke.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ke.prototype.reset=function(){this.forceCompositionEnd()},Ke.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ke.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},Ke.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&Xt(this.cm,function(){return Vt(t.cm)})},Ke.prototype.setUneditable=function(t){t.contentEditable="false"},Ke.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||xt(this.cm,B1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},Ke.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Ke.prototype.onContextMenu=function(){},Ke.prototype.resetPosition=function(){},Ke.prototype.needsContentAttribute=!0;function Nd(t,r){var s=u1(t,r.line);if(!s||s.hidden)return null;var a=be(t.doc,r.line),c=uu(s,a,r.line),h=Kt(a,t.doc.direction),f="left";if(h){var p=at(h,r.ch);f=p%2?"right":"left"}var g=fu(c.map,r.ch,f);return g.offset=g.collapse=="right"?g.end:g.start,g}function V3(t){for(var r=t;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function Kn(t,r){return r&&(t.bad=!0),t}function Z3(t,r,s,a,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function y(I){return function(Z){return Z.id==I}}function z(){f&&(h+=p,g&&(h+=p),f=g=!1)}function S(I){I&&(z(),h+=I)}function P(I){if(I.nodeType==1){var Z=I.getAttribute("cm-text");if(Z){S(Z);return}var q=I.getAttribute("cm-marker"),te;if(q){var ae=t.findMarks(J(a,0),J(c+1,0),y(+q));ae.length&&(te=ae[0].find(0))&&S(Br(t.doc,te.from,te.to).join(p));return}if(I.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(I.nodeName);if(!/^br$/i.test(I.nodeName)&&I.textContent.length==0)return;he&&z();for(var se=0;se<I.childNodes.length;se++)P(I.childNodes[se]);/^(pre|p)$/i.test(I.nodeName)&&(g=!0),he&&(f=!0)}else I.nodeType==3&&S(I.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;P(r),r!=s;)r=r.nextSibling,g=!1;return h}function Ms(t,r,s){var a;if(r==t.display.lineDiv){if(a=t.display.lineDiv.childNodes[s],!a)return Kn(t.clipPos(J(t.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==t.display.lineDiv)return null;if(a.parentNode&&a.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==a)return W3(h,r,s)}}function W3(t,r,s){var a=t.text.firstChild,c=!1;if(!r||!ne(a,r))return Kn(J(je(t.line),0),!0);if(r==a&&(c=!0,r=a.childNodes[s],s=0,!r)){var h=t.rest?_e(t.rest):t.line;return Kn(J(je(h),h.text.length),c)}var f=r.nodeType==3?r:null,p=r;for(!f&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(f=r.firstChild,s&&(s=f.nodeValue.length));p.parentNode!=a;)p=p.parentNode;var g=t.measure,y=g.maps;function z(te,ae,he){for(var se=-1;se<(y?y.length:0);se++)for(var pe=se<0?g.map:y[se],Le=0;Le<pe.length;Le+=3){var xe=pe[Le+2];if(xe==te||xe==ae){var Pe=je(se<0?t.line:t.rest[se]),Je=pe[Le]+he;return(he<0||xe!=te)&&(Je=pe[Le+(he?1:0)]),J(Pe,Je)}}}var S=z(f,p,s);if(S)return Kn(S,c);for(var P=p.nextSibling,I=f?f.nodeValue.length-s:0;P;P=P.nextSibling){if(S=z(P,P.firstChild,0),S)return Kn(J(S.line,S.ch-I),c);I+=P.textContent.length}for(var Z=p.previousSibling,q=s;Z;Z=Z.previousSibling){if(S=z(Z,Z.firstChild,-1),S)return Kn(J(S.line,S.ch+q),c);q+=Z.textContent.length}}var ut=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Be,this.hasSelection=!1,this.composing=null};ut.prototype.init=function(t){var r=this,s=this,a=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),_&&(c.style.width="0px"),Se(c,"input",function(){m&&b>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),Se(c,"paste",function(f){ft(a,f)||Ed(f,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(f){if(!ft(a,f)){if(a.somethingSelected())Ss({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var p=Id(a);Ss({lineWise:!0,text:p.text}),f.type=="cut"?a.setSelections(p.ranges,null,De):(s.prevInput="",c.value=p.text.join(`
3008
+ `),ot(c))}else return;f.type=="cut"&&(a.state.cutIncoming=+new Date)}}Se(c,"cut",h),Se(c,"copy",h),Se(t.scroller,"paste",function(f){if(!(ai(t,f)||ft(a,f))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Se(t.lineSpace,"selectstart",function(f){ai(t,f)||_t(f)}),Se(c,"compositionstart",function(){var f=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(c,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},ut.prototype.createField=function(t){this.wrapper=Pd(),this.textarea=this.wrapper.firstChild},ut.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ut.prototype.prepareSelection=function(){var t=this.cm,r=t.display,s=t.doc,a=Lu(t);if(t.options.moveInputWithCursor){var c=xr(t,s.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return a},ut.prototype.showSelection=function(t){var r=this.cm,s=r.display;O(s.cursorDiv,t.cursors),O(s.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ut.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&ot(this.textarea),m&&b>=9&&(this.hasSelection=s)}else t||(this.prevInput=this.textarea.value="",m&&b>=9&&(this.hasSelection=null))}},ut.prototype.getField=function(){return this.textarea},ut.prototype.supportsTouch=function(){return!1},ut.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||ye()!=this.textarea))try{this.textarea.focus()}catch{}},ut.prototype.blur=function(){this.textarea.blur()},ut.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ut.prototype.receivedFocus=function(){this.slowPoll()},ut.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},ut.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!t?(t=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},ut.prototype.poll=function(){var t=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||Ya(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=s.value;if(c==a&&!r.somethingSelected())return!1;if(m&&b>=9&&this.hasSelection===c||B&&/[\uf700-\uf7ff]/.test(c))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var h=c.charCodeAt(0);if(h==8203&&!a&&(a="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(a.length,c.length);f<p&&a.charCodeAt(f)==c.charCodeAt(f);)++f;return Xt(r,function(){B1(r,c.slice(f),a.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
3009
3009
  `)>-1?s.value=t.prevInput="":t.prevInput=c,t.composing&&(t.composing.range.clear(),t.composing.range=r.markText(t.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ut.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ut.prototype.onKeyPress=function(){m&&b>=9&&(this.hasSelection=null),this.fastPoll()},ut.prototype.onContextMenu=function(t){var r=this,s=r.cm,a=s.display,c=r.textarea;r.contextMenuPending&&r.contextMenuPending();var h=Ki(s,t),f=a.scroller.scrollTop;if(!h||$)return;var p=s.options.resetSelectionOnContextMenu;p&&s.doc.sel.contains(h)==-1&&xt(s,At)(s.doc,Si(h),De);var g=c.style.cssText,y=r.wrapper.style.cssText,z=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
3010
3010
  top: `+(t.clientY-z.top-5)+"px; left: "+(t.clientX-z.left-5)+`px;
3011
3011
  z-index: 1000; background: `+(m?"rgba(255, 255, 255, .05)":"transparent")+`;
3012
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var S;M&&(S=window.scrollY),a.input.focus(),M&&window.scrollTo(null,S),a.input.reset(),s.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=I,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function P(){if(c.selectionStart!=null){var q=s.somethingSelected(),te="​"+(q?c.value:"");c.value="⇚",c.value=te,r.prevInput=q?"":"​",c.selectionStart=1,c.selectionEnd=te.length,a.selForContextMenu=s.doc.sel}}function I(){if(r.contextMenuPending==I&&(r.contextMenuPending=!1,r.wrapper.style.cssText=y,c.style.cssText=g,m&&b<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=f),c.selectionStart!=null)){(!m||m&&b<9)&&P();var q=0,te=function(){a.selForContextMenu==s.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput=="​"?xt(s,rd)(s):q++<10?a.detectingSelectAll=setTimeout(te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(te,200)}}if(m&&b>=9&&P(),Me){Ui(t);var Z=function(){Ft(window,"mouseup",Z),setTimeout(I,20)};Se(window,"mouseup",Z)}else setTimeout(I,50)},ut.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ut.prototype.setUneditable=function(){},ut.prototype.needsContentAttribute=!1;function j3(t,r){if(r=r?Ye(r):{},r.value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),r.autofocus==null){var s=ye();r.autofocus=s==t||t.getAttribute("autofocus")!=null&&s==document.body}function a(){t.value=p.getValue()}var c;if(t.form&&(Se(t.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){a(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=a,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,a(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Ft(t.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=tt(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function G3(t){t.off=Ft,t.on=Se,t.wheelEventPixels=e3,t.Doc=Zt,t.splitLines=ko,t.countColumn=Xe,t.findColumn=ht,t.isWordChar=Ue,t.Pass=Ie,t.signal=Oe,t.Line=In,t.changeEnd=Mi,t.scrollbarModel=_u,t.Pos=J,t.cmpPos=C,t.modes=pr,t.mimeModes=ar,t.resolveMode=$n,t.getMode=En,t.modeExtensions=Cr,t.extendMode=wr,t.copyState=sr,t.startState=Eo,t.innerMode=$o,t.commands=ra,t.keyMap=si,t.keyName=md,t.isModifierKey=vd,t.lookupKey=jn,t.normalizeKeyMap=x3,t.StringStream=st,t.SharedTextMarker=Qo,t.TextMarker=ki,t.LineWidget=Jo,t.e_preventDefault=_t,t.e_stopPropagation=On,t.e_stop=Ui,t.addClass=ke,t.contains=ne,t.rmClass=X,t.keyNames=Oi}H3(tt),V3(tt);var q3="iter insert remove copy getEditor constructor".split(" ");for(var Ts in Zt.prototype)Zt.prototype.hasOwnProperty(Ts)&&ge(q3,Ts)<0&&(tt.prototype[Ts]=function(t){return function(){return t.apply(this.doc,arguments)}}(Zt.prototype[Ts]));return Rr(Zt),tt.inputStyles={textarea:ut,contenteditable:Ke},tt.defineMode=function(t){!tt.defaults.mode&&t!="null"&&(tt.defaults.mode=t),Ja.apply(this,arguments)},tt.defineMIME=ii,tt.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),tt.defineMIME("text/plain","null"),tt.defineExtension=function(t,r){tt.prototype[t]=r},tt.defineDocExtension=function(t,r){Zt.prototype[t]=r},tt.fromTextArea=j3,G3(tt),tt.version="5.62.3",tt})}(cc)),cc.exports}var kL=Pr();const Di=u0(kL),Up=`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
3013
- `,OL=Q`
3012
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var S;M&&(S=window.scrollY),a.input.focus(),M&&window.scrollTo(null,S),a.input.reset(),s.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=I,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function P(){if(c.selectionStart!=null){var q=s.somethingSelected(),te="​"+(q?c.value:"");c.value="⇚",c.value=te,r.prevInput=q?"":"​",c.selectionStart=1,c.selectionEnd=te.length,a.selForContextMenu=s.doc.sel}}function I(){if(r.contextMenuPending==I&&(r.contextMenuPending=!1,r.wrapper.style.cssText=y,c.style.cssText=g,m&&b<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=f),c.selectionStart!=null)){(!m||m&&b<9)&&P();var q=0,te=function(){a.selForContextMenu==s.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput=="​"?xt(s,td)(s):q++<10?a.detectingSelectAll=setTimeout(te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(te,200)}}if(m&&b>=9&&P(),Me){Ui(t);var Z=function(){Ft(window,"mouseup",Z),setTimeout(I,20)};Se(window,"mouseup",Z)}else setTimeout(I,50)},ut.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ut.prototype.setUneditable=function(){},ut.prototype.needsContentAttribute=!1;function U3(t,r){if(r=r?Ye(r):{},r.value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),r.autofocus==null){var s=ye();r.autofocus=s==t||t.getAttribute("autofocus")!=null&&s==document.body}function a(){t.value=p.getValue()}var c;if(t.form&&(Se(t.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){a(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=a,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,a(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Ft(t.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=tt(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function j3(t){t.off=Ft,t.on=Se,t.wheelEventPixels=Q4,t.Doc=Zt,t.splitLines=ko,t.countColumn=Xe,t.findColumn=ht,t.isWordChar=Ue,t.Pass=Ie,t.signal=Oe,t.Line=In,t.changeEnd=Mi,t.scrollbarModel=Eu,t.Pos=J,t.cmpPos=C,t.modes=pr,t.mimeModes=ar,t.resolveMode=$n,t.getMode=En,t.modeExtensions=Cr,t.extendMode=wr,t.copyState=sr,t.startState=Eo,t.innerMode=$o,t.commands=ra,t.keyMap=si,t.keyName=bd,t.isModifierKey=gd,t.lookupKey=jn,t.normalizeKeyMap=w3,t.StringStream=st,t.SharedTextMarker=Qo,t.TextMarker=ki,t.LineWidget=Jo,t.e_preventDefault=_t,t.e_stopPropagation=On,t.e_stop=Ui,t.addClass=ke,t.contains=ne,t.rmClass=X,t.keyNames=Oi}N3(tt),B3(tt);var G3="iter insert remove copy getEditor constructor".split(" ");for(var Ts in Zt.prototype)Zt.prototype.hasOwnProperty(Ts)&&ge(G3,Ts)<0&&(tt.prototype[Ts]=function(t){return function(){return t.apply(this.doc,arguments)}}(Zt.prototype[Ts]));return Rr(Zt),tt.inputStyles={textarea:ut,contenteditable:Ke},tt.defineMode=function(t){!tt.defaults.mode&&t!="null"&&(tt.defaults.mode=t),Ja.apply(this,arguments)},tt.defineMIME=ii,tt.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),tt.defineMIME("text/plain","null"),tt.defineExtension=function(t,r){tt.prototype[t]=r},tt.defineDocExtension=function(t,r){Zt.prototype[t]=r},tt.fromTextArea=U3,j3(tt),tt.version="5.62.3",tt})})(Zp);var Pr=Zp.exports;const Di=c0(Pr),Wp=`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
3013
+ `,TL=Q`
3014
3014
  .cm-s-skedulo .cm-header {
3015
3015
  color: blue;
3016
3016
  }
@@ -3090,12 +3090,12 @@ b`.split(/\n/).length!=3?function(t){for(var r=0,s=[],a=t.length;r<=a;){var c=t.
3090
3090
  .cm-invalidchar {
3091
3091
  color: #f00;
3092
3092
  }
3093
- `;(function(n,e){(function(i){i(Pr())})(function(i){i.overlayMode=function(o,l,d){return{startState:function(){return{base:i.startState(o),overlay:i.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:i.copyState(o,u.base),overlay:i.copyState(l,u.overlay),basePos:u.basePos,baseCur:null,overlayPos:u.overlayPos,overlayCur:null}},token:function(u,v){return(u!=v.streamSeen||Math.min(v.basePos,v.overlayPos)<u.start)&&(v.streamSeen=u,v.basePos=v.overlayPos=u.start),u.start==v.basePos&&(v.baseCur=o.token(u,v.base),v.basePos=u.pos),u.start==v.overlayPos&&(u.pos=u.start,v.overlayCur=l.token(u,v.overlay),v.overlayPos=u.pos),u.pos=Math.min(v.basePos,v.overlayPos),v.overlayCur==null?v.baseCur:v.baseCur!=null&&v.overlay.combineTokens||d&&v.overlay.combineTokens==null?v.baseCur+" "+v.overlayCur:v.overlayCur},indent:o.indent&&function(u,v,m){return o.indent(u.base,v,m)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,m;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(m=l.blankLine(u.overlay)),m==null?v:d&&v!=null?v+" "+m:m}}}})})();(function(n,e){(function(i){i(Pr())})(function(i){i.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],l=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,u=["true","false"],v=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),u=new RegExp("(("+u.join(")|(")+"))\\b");function m(b,M){var L=b.peek();if(M.incomment)return b.skipTo("#}")?(b.eatWhile(/\#|}/),M.incomment=!1):b.skipToEnd(),"comment";if(M.intag){if(M.operator){if(M.operator=!1,b.match(u))return"atom";if(b.match(v))return"number"}if(M.sign){if(M.sign=!1,b.match(u))return"atom";if(b.match(v))return"number"}if(M.instring)return L==M.instring&&(M.instring=!1),b.next(),"string";if(L=="'"||L=='"')return M.instring=L,b.next(),"string";if(b.match(M.intag+"}")||b.eat("-")&&b.match(M.intag+"}"))return M.intag=!1,"tag";if(b.match(l))return M.operator=!0,"operator";if(b.match(d))M.sign=!0;else if(b.eat(" ")||b.sol()){if(b.match(o))return"keyword";if(b.match(u))return"atom";if(b.match(v))return"number";b.sol()&&b.next()}else b.next();return"variable"}else if(b.eat("{")){if(b.eat("#"))return M.incomment=!0,b.skipTo("#}")?(b.eatWhile(/\#|}/),M.incomment=!1):b.skipToEnd(),"comment";if(L=b.eat(/\{|%/))return M.intag=L,L=="{"&&(M.intag="}"),b.eat("-"),"tag"}b.next()}return{startState:function(){return{tokenize:m}},token:function(b,M){return M.tokenize(b,M)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var $L={exports:{}};(function(n,e){(function(i){i(Pr())})(function(i){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(d,u){var v=d.indentUnit,m={},b=u.htmlMode?o:l;for(var M in b)m[M]=b[M];for(var M in u)m[M]=u[M];var L,T;function $(x,w){function U(ke){return w.tokenize=ke,ke(x,w)}var ne=x.next();if(ne=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?U(oe("atom","]]>")):null:x.match("--")?U(oe("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),U(_(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),w.tokenize=oe("meta","?>"),"meta"):(L=x.eat("/")?"closeTag":"openTag",w.tokenize=N,"tag bracket");if(ne=="&"){var ye;return x.eat("#")?x.eat("x")?ye=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):ye=x.eatWhile(/[\d]/)&&x.eat(";"):ye=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),ye?"atom":"error"}else return x.eatWhile(/[^&<]/),null}$.isInText=!0;function N(x,w){var U=x.next();if(U==">"||U=="/"&&x.eat(">"))return w.tokenize=$,L=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return L="equals",null;if(U=="<"){w.tokenize=$,w.state=K,w.tagName=w.tagStart=null;var ne=w.tokenize(x,w);return ne?ne+" tag error":"tag error"}else return/[\'\"]/.test(U)?(w.tokenize=Y(U),w.stringStartCol=x.column(),w.tokenize(x,w)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Y(x){var w=function(U,ne){for(;!U.eol();)if(U.next()==x){ne.tokenize=N;break}return"string"};return w.isInAttribute=!0,w}function oe(x,w){return function(U,ne){for(;!U.eol();){if(U.match(w)){ne.tokenize=$;break}U.next()}return x}}function _(x){return function(w,U){for(var ne;(ne=w.next())!=null;){if(ne=="<")return U.tokenize=_(x+1),U.tokenize(w,U);if(ne==">")if(x==1){U.tokenize=$;break}else return U.tokenize=_(x-1),U.tokenize(w,U)}return"meta"}}function D(x,w,U){this.prev=x.context,this.tagName=w||"",this.indent=x.indented,this.startOfLine=U,(m.doNotIndent.hasOwnProperty(w)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function A(x){x.context&&(x.context=x.context.prev)}function B(x,w){for(var U;;){if(!x.context||(U=x.context.tagName,!m.contextGrabbers.hasOwnProperty(U)||!m.contextGrabbers[U].hasOwnProperty(w)))return;A(x)}}function K(x,w,U){return x=="openTag"?(U.tagStart=w.column(),ue):x=="closeTag"?le:K}function ue(x,w,U){return x=="word"?(U.tagName=w.current(),T="tag",ie):m.allowMissingTagName&&x=="endTag"?(T="tag bracket",ie(x,w,U)):(T="error",ue)}function le(x,w,U){if(x=="word"){var ne=w.current();return U.context&&U.context.tagName!=ne&&m.implicitlyClosed.hasOwnProperty(U.context.tagName)&&A(U),U.context&&U.context.tagName==ne||m.matchClosing===!1?(T="tag",me):(T="tag error",Me)}else return m.allowMissingTagName&&x=="endTag"?(T="tag bracket",me(x,w,U)):(T="error",Me)}function me(x,w,U){return x!="endTag"?(T="error",me):(A(U),K)}function Me(x,w,U){return T="error",me(x,w,U)}function ie(x,w,U){if(x=="word")return T="attribute",X;if(x=="endTag"||x=="selfcloseTag"){var ne=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,x=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(ne)?B(U,ne):(B(U,ne),U.context=new D(U,ne,ye==U.indented)),K}return T="error",ie}function X(x,w,U){return x=="equals"?V:(m.allowMissing||(T="error"),ie(x,w,U))}function V(x,w,U){return x=="string"?O:x=="word"&&m.allowUnquoted?(T="string",ie):(T="error",ie(x,w,U))}function O(x,w,U){return x=="string"?O:ie(x,w,U)}return{startState:function(x){var w={tokenize:$,state:K,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(w.baseIndent=x),w},token:function(x,w){if(!w.tagName&&x.sol()&&(w.indented=x.indentation()),x.eatSpace())return null;L=null;var U=w.tokenize(x,w);return(U||L)&&U!="comment"&&(T=null,w.state=w.state(L||U,x,w),T&&(U=T=="error"?U+" error":T)),U},indent:function(x,w,U){var ne=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(ne&&ne.noIndent)return i.Pass;if(x.tokenize!=N&&x.tokenize!=$)return U?U.match(/^(\s*)/)[0].length:0;if(x.tagName)return m.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(w))return 0;var ye=w&&/^<(\/)?([\w_:\.-]*)/.exec(w);if(ye&&ye[1])for(;ne;)if(ne.tagName==ye[2]){ne=ne.prev;break}else if(m.implicitlyClosed.hasOwnProperty(ne.tagName))ne=ne.prev;else break;else if(ye)for(;ne;){var ke=m.contextGrabbers[ne.tagName];if(ke&&ke.hasOwnProperty(ye[2]))ne=ne.prev;else break}for(;ne&&ne.prev&&!ne.startOfLine;)ne=ne.prev;return ne?ne.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(x){x.state==V&&(x.state=ie)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var w=[],U=x.context;U;U=U.prev)w.push(U.tagName);return w.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var EL=$L.exports,_L={exports:{}};(function(n,e){(function(i){i(Pr())})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,m=l.json||v,b=l.trackScope!==!1,M=l.typescript,L=l.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function C(It){return{type:It,style:"keyword"}}var k=C("keyword a"),G=C("keyword b"),ee=C("keyword c"),$e=C("keyword d"),Fe=C("operator"),de={type:"atom",style:"atom"};return{if:C("if"),while:k,with:k,else:G,do:G,try:G,finally:G,return:$e,break:$e,continue:$e,new:C("new"),delete:ee,void:ee,throw:ee,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Fe,typeof:Fe,instanceof:Fe,true:de,false:de,null:de,undefined:de,NaN:de,Infinity:de,this:C("this"),class:C("class"),super:C("atom"),yield:ee,export:C("export"),import:C("import"),extends:ee,await:ee}}(),$=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Y(C){for(var k=!1,G,ee=!1;(G=C.next())!=null;){if(!k){if(G=="/"&&!ee)return;G=="["?ee=!0:ee&&G=="]"&&(ee=!1)}k=!k&&G=="\\"}}var oe,_;function D(C,k,G){return oe=C,_=G,k}function A(C,k){var G=C.next();if(G=='"'||G=="'")return k.tokenize=B(G),k.tokenize(C,k);if(G=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(G=="."&&C.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(G))return D(G);if(G=="="&&C.eat(">"))return D("=>","operator");if(G=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(G))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(G=="/")return C.eat("*")?(k.tokenize=K,K(C,k)):C.eat("/")?(C.skipToEnd(),D("comment","comment")):J(C,k,1)?(Y(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(C.eat("="),D("operator","operator",C.current()));if(G=="`")return k.tokenize=ue,ue(C,k);if(G=="#"&&C.peek()=="!")return C.skipToEnd(),D("meta","meta");if(G=="#"&&C.eatWhile(L))return D("variable","property");if(G=="<"&&C.match("!--")||G=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),D("comment","comment");if($.test(G))return(G!=">"||!k.lexical||k.lexical.type!=">")&&(C.eat("=")?(G=="!"||G=="=")&&C.eat("="):/[<>*+\-|&?]/.test(G)&&(C.eat(G),G==">"&&C.eat(G))),G=="?"&&C.eat(".")?D("."):D("operator","operator",C.current());if(L.test(G)){C.eatWhile(L);var ee=C.current();if(k.lastType!="."){if(T.propertyIsEnumerable(ee)){var $e=T[ee];return D($e.type,$e.style,ee)}if(ee=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",ee)}return D("variable","variable",ee)}}function B(C){return function(k,G){var ee=!1,$e;if(v&&k.peek()=="@"&&k.match(N))return G.tokenize=A,D("jsonld-keyword","meta");for(;($e=k.next())!=null&&!($e==C&&!ee);)ee=!ee&&$e=="\\";return ee||(G.tokenize=A),D("string","string")}}function K(C,k){for(var G=!1,ee;ee=C.next();){if(ee=="/"&&G){k.tokenize=A;break}G=ee=="*"}return D("comment","comment")}function ue(C,k){for(var G=!1,ee;(ee=C.next())!=null;){if(!G&&(ee=="`"||ee=="$"&&C.eat("{"))){k.tokenize=A;break}G=!G&&ee=="\\"}return D("quasi","string-2",C.current())}var le="([{}])";function me(C,k){k.fatArrowAt&&(k.fatArrowAt=null);var G=C.string.indexOf("=>",C.start);if(!(G<0)){if(M){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,G));ee&&(G=ee.index)}for(var $e=0,Fe=!1,de=G-1;de>=0;--de){var It=C.string.charAt(de),lr=le.indexOf(It);if(lr>=0&&lr<3){if(!$e){++de;break}if(--$e==0){It=="("&&(Fe=!0);break}}else if(lr>=3&&lr<6)++$e;else if(L.test(It))Fe=!0;else if(/["'\/`]/.test(It))for(;;--de){if(de==0)return;var _n=C.string.charAt(de-1);if(_n==It&&C.string.charAt(de-2)!="\\"){de--;break}}else if(Fe&&!$e){++de;break}}Fe&&!$e&&(k.fatArrowAt=de)}}var Me={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(C,k,G,ee,$e,Fe){this.indented=C,this.column=k,this.type=G,this.prev=$e,this.info=Fe,ee!=null&&(this.align=ee)}function X(C,k){if(!b)return!1;for(var G=C.localVars;G;G=G.next)if(G.name==k)return!0;for(var ee=C.context;ee;ee=ee.prev)for(var G=ee.vars;G;G=G.next)if(G.name==k)return!0}function V(C,k,G,ee,$e){var Fe=C.cc;for(O.state=C,O.stream=$e,O.marked=null,O.cc=Fe,O.style=k,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var de=Fe.length?Fe.pop():m?Te:De;if(de(G,ee)){for(;Fe.length&&Fe[Fe.length-1].lex;)Fe.pop()();return O.marked?O.marked:G=="variable"&&X(C,ee)?"variable-2":k}}}var O={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function w(){return x.apply(null,arguments),!0}function U(C,k){for(var G=k;G;G=G.next)if(G.name==C)return!0;return!1}function ne(C){var k=O.state;if(O.marked="def",!!b){if(k.context){if(k.lexical.info=="var"&&k.context&&k.context.block){var G=ye(C,k.context);if(G!=null){k.context=G;return}}else if(!U(C,k.localVars)){k.localVars=new ot(C,k.localVars);return}}l.globalVars&&!U(C,k.globalVars)&&(k.globalVars=new ot(C,k.globalVars))}}function ye(C,k){if(k)if(k.block){var G=ye(C,k.prev);return G?G==k.prev?k:new Re(G,k.vars,!0):null}else return U(C,k.vars)?k:new Re(k.prev,new ot(C,k.vars),!1);else return null}function ke(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Re(C,k,G){this.prev=C,this.vars=k,this.block=G}function ot(C,k){this.name=C,this.next=k}var Et=new ot("this",new ot("arguments",null));function Ye(){O.state.context=new Re(O.state.context,O.state.localVars,!1),O.state.localVars=Et}function Xe(){O.state.context=new Re(O.state.context,O.state.localVars,!0),O.state.localVars=null}function Be(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Be.lex=!0;function ge(C,k){var G=function(){var ee=O.state,$e=ee.indented;if(ee.lexical.type=="stat")$e=ee.lexical.indented;else for(var Fe=ee.lexical;Fe&&Fe.type==")"&&Fe.align;Fe=Fe.prev)$e=Fe.indented;ee.lexical=new ie($e,O.stream.column(),C,null,ee.lexical,k)};return G.lex=!0,G}function ve(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}ve.lex=!0;function Ie(C){function k(G){return G==C?w():C==";"||G=="}"||G==")"||G=="]"?x():w(k)}return k}function De(C,k){return C=="var"?w(ge("vardef",k),Mo,Ie(";"),ve):C=="keyword a"?w(ge("form"),qt,De,ve):C=="keyword b"?w(ge("form"),De,ve):C=="keyword d"?O.stream.match(/^\s*$/,!1)?w():w(ge("stat"),_e,Ie(";"),ve):C=="debugger"?w(Ie(";")):C=="{"?w(ge("}"),Xe,Kt,ve,Be):C==";"?w():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==ve&&O.state.cc.pop()(),w(ge("form"),qt,De,ve,Ya)):C=="function"?w(pr):C=="for"?w(ge("form"),Xe,Xa,De,Be,ve):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form",C=="class"?C:k),En,ve)):C=="variable"?M&&k=="declare"?(O.marked="keyword",w(De)):M&&(k=="module"||k=="enum"||k=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",k=="enum"?w(Vr):k=="type"?w(Ja,Ie("operator"),Oe,Ie(";")):w(ge("form"),Bt,Ie("{"),ge("}"),Kt,ve,ve)):M&&k=="namespace"?(O.marked="keyword",w(ge("form"),Te,De,ve)):M&&k=="abstract"?(O.marked="keyword",w(De)):w(ge("stat"),Ne):C=="switch"?w(ge("form"),qt,Ie("{"),ge("}","switch"),Xe,Kt,ve,ve,Be):C=="case"?w(Te,Ie(":")):C=="default"?w(Ie(":")):C=="catch"?w(ge("form"),Ye,Ae,De,ve,Be):C=="export"?w(ge("stat"),$o,ve):C=="import"?w(ge("stat"),st,ve):C=="async"?w(De):k=="@"?w(Te,De):x(ge("stat"),Te,Ie(";"),ve)}function Ae(C){if(C=="(")return w(ii,Ie(")"))}function Te(C,k){return ir(C,k,!1)}function ht(C,k){return ir(C,k,!0)}function qt(C){return C!="("?x():w(ge(")"),_e,Ie(")"),ve)}function ir(C,k,G){if(O.state.fatArrowAt==O.stream.start){var ee=G?Ue:Nr;if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Ie("=>"),ee,Be);if(C=="variable")return x(Ye,Bt,Ie("=>"),ee,Be)}var $e=G?ct:Ve;return Me.hasOwnProperty(C)?w($e):C=="function"?w(pr,$e):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form"),$n,ve)):C=="keyword c"||C=="async"?w(G?ht:Te):C=="("?w(ge(")"),_e,Ie(")"),ve,$e):C=="operator"||C=="spread"?w(G?ht:Te):C=="["?w(ge("]"),je,ve,$e):C=="{"?Wi(Hr,"}",null,$e):C=="quasi"?x(Qe,$e):C=="new"?w(H(G)):w()}function _e(C){return C.match(/[;\}\)\],]/)?x():x(Te)}function Ve(C,k){return C==","?w(_e):ct(C,k,!1)}function ct(C,k,G){var ee=G==!1?Ve:ct,$e=G==!1?Te:ht;if(C=="=>")return w(Ye,G?Ue:Nr,Be);if(C=="operator")return/\+\+|--/.test(k)||M&&k=="!"?w(ee):M&&k=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?w(ge(">"),at(Oe,">"),ve,ee):k=="?"?w(Te,Ie(":"),$e):w($e);if(C=="quasi")return x(Qe,ee);if(C!=";"){if(C=="(")return Wi(ht,")","call",ee);if(C==".")return w(Dt,ee);if(C=="[")return w(ge("]"),_e,Ie("]"),ve,ee);if(M&&k=="as")return O.marked="keyword",w(Oe,ee);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),w($e)}}function Qe(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Qe):w(_e,et)}function et(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Qe)}function Nr(C){return me(O.stream,O.state),x(C=="{"?De:Te)}function Ue(C){return me(O.stream,O.state),x(C=="{"?De:ht)}function H(C){return function(k){return k=="."?w(C?j:re):k=="variable"&&M?w(Ui,C?ct:Ve):x(C?ht:Te)}}function re(C,k){if(k=="target")return O.marked="keyword",w(Ve)}function j(C,k){if(k=="target")return O.marked="keyword",w(ct)}function Ne(C){return C==":"?w(ve,De):x(Ve,Ie(";"),ve)}function Dt(C){if(C=="variable")return O.marked="property",w()}function Hr(C,k){if(C=="async")return O.marked="property",w(Hr);if(C=="variable"||O.style=="keyword"){if(O.marked="property",k=="get"||k=="set")return w(Ql);var G;return M&&O.state.fatArrowAt==O.stream.start&&(G=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+G[0].length),w(nr)}else{if(C=="number"||C=="string")return O.marked=v?"property":O.style+" property",w(nr);if(C=="jsonld-keyword")return w(nr);if(M&&ke(k))return O.marked="keyword",w(Hr);if(C=="[")return w(Te,ri,Ie("]"),nr);if(C=="spread")return w(ht,nr);if(k=="*")return O.marked="keyword",w(Hr);if(C==":")return x(nr)}}function Ql(C){return C!="variable"?x(nr):(O.marked="property",w(pr))}function nr(C){if(C==":")return w(ht);if(C=="(")return x(pr)}function at(C,k,G){function ee($e,Fe){if(G?G.indexOf($e)>-1:$e==","){var de=O.state.lexical;return de.info=="call"&&(de.pos=(de.pos||0)+1),w(function(It,lr){return It==k||lr==k?x():x(C)},ee)}return $e==k||Fe==k?w():G&&G.indexOf(";")>-1?x(C):w(Ie(k))}return function($e,Fe){return $e==k||Fe==k?w():x(C,ee)}}function Wi(C,k,G){for(var ee=3;ee<arguments.length;ee++)O.cc.push(arguments[ee]);return w(ge(k,G),at(C,k),ve)}function Kt(C){return C=="}"?w():x(De,Kt)}function ri(C,k){if(M){if(C==":")return w(Oe);if(k=="?")return w(ri)}}function Se(C,k){if(M&&(C==":"||k=="in"))return w(Oe)}function Tn(C){if(M&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?w(Te,Ft,Oe):w(Oe)}function Ft(C,k){if(k=="is")return O.marked="keyword",w()}function Oe(C,k){if(k=="keyof"||k=="typeof"||k=="infer"||k=="readonly")return O.marked="keyword",w(k=="typeof"?ht:Oe);if(C=="variable"||k=="void")return O.marked="type",w(or);if(k=="|"||k=="&")return w(Oe);if(C=="string"||C=="number"||C=="atom")return w(or);if(C=="[")return w(ge("]"),at(Oe,"]",","),ve,or);if(C=="{")return w(ge("}"),kn,ve,or);if(C=="(")return w(at(On,")"),ft,or);if(C=="<")return w(at(Oe,">"),Oe);if(C=="quasi")return x(Rr,or)}function ft(C){if(C=="=>")return w(Oe)}function kn(C){return C.match(/[\}\)\]]/)?w():C==","||C==";"?w(kn):x(Tt,kn)}function Tt(C,k){if(C=="variable"||O.style=="keyword")return O.marked="property",w(Tt);if(k=="?"||C=="number"||C=="string")return w(Tt);if(C==":")return w(Oe);if(C=="[")return w(Ie("variable"),Se,Ie("]"),Tt);if(C=="(")return x(ar,Tt);if(!C.match(/[;\}\)\],]/))return w()}function Rr(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Rr):w(Oe,_t)}function _t(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Rr)}function On(C,k){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||k=="?"?w(On):C==":"?w(Oe):C=="spread"?w(On):x(Oe)}function or(C,k){if(k=="<")return w(ge(">"),at(Oe,">"),ve,or);if(k=="|"||C=="."||k=="&")return w(Oe);if(C=="[")return w(Oe,Ie("]"),or);if(k=="extends"||k=="implements")return O.marked="keyword",w(Oe);if(k=="?")return w(Oe,Ie(":"),Oe)}function Ui(C,k){if(k=="<")return w(ge(">"),at(Oe,">"),ve,or)}function Ci(){return x(Oe,qa)}function qa(C,k){if(k=="=")return w(Oe)}function Mo(C,k){return k=="enum"?(O.marked="keyword",w(Vr)):x(Bt,ri,Fr,ko)}function Bt(C,k){if(M&&ke(k))return O.marked="keyword",w(Bt);if(C=="variable")return ne(k),w();if(C=="spread")return w(Bt);if(C=="[")return Wi(To,"]");if(C=="{")return Wi(Ka,"}")}function Ka(C,k){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(ne(k),w(Fr)):(C=="variable"&&(O.marked="property"),C=="spread"?w(Bt):C=="}"?x():C=="["?w(Te,Ie("]"),Ie(":"),Ka):w(Ie(":"),Bt,Fr))}function To(){return x(Bt,Fr)}function Fr(C,k){if(k=="=")return w(ht)}function ko(C){if(C==",")return w(Mo)}function Ya(C,k){if(C=="keyword b"&&k=="else")return w(ge("form","else"),De,ve)}function Xa(C,k){if(k=="await")return w(Xa);if(C=="(")return w(ge(")"),Oo,ve)}function Oo(C){return C=="var"?w(Mo,wi):C=="variable"?w(wi):x(wi)}function wi(C,k){return C==")"?w():C==";"?w(wi):k=="in"||k=="of"?(O.marked="keyword",w(Te,wi)):x(Te,wi)}function pr(C,k){if(k=="*")return O.marked="keyword",w(pr);if(C=="variable")return ne(k),w(pr);if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Tn,De,Be);if(M&&k=="<")return w(ge(">"),at(Ci,">"),ve,pr)}function ar(C,k){if(k=="*")return O.marked="keyword",w(ar);if(C=="variable")return ne(k),w(ar);if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Tn,Be);if(M&&k=="<")return w(ge(">"),at(Ci,">"),ve,ar)}function Ja(C,k){if(C=="keyword"||C=="variable")return O.marked="type",w(Ja);if(k=="<")return w(ge(">"),at(Ci,">"),ve)}function ii(C,k){return k=="@"&&w(Te,ii),C=="spread"?w(ii):M&&ke(k)?(O.marked="keyword",w(ii)):M&&C=="this"?w(ri,Fr):x(Bt,ri,Fr)}function $n(C,k){return C=="variable"?En(C,k):Cr(C,k)}function En(C,k){if(C=="variable")return ne(k),w(Cr)}function Cr(C,k){if(k=="<")return w(ge(">"),at(Ci,">"),ve,Cr);if(k=="extends"||k=="implements"||M&&C==",")return k=="implements"&&(O.marked="keyword"),w(M?Oe:Te,Cr);if(C=="{")return w(ge("}"),wr,ve)}function wr(C,k){if(C=="async"||C=="variable"&&(k=="static"||k=="get"||k=="set"||M&&ke(k))&&O.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return O.marked="keyword",w(wr);if(C=="variable"||O.style=="keyword")return O.marked="property",w(sr,wr);if(C=="number"||C=="string")return w(sr,wr);if(C=="[")return w(Te,ri,Ie("]"),sr,wr);if(k=="*")return O.marked="keyword",w(wr);if(M&&C=="(")return x(ar,wr);if(C==";"||C==",")return w(wr);if(C=="}")return w();if(k=="@")return w(Te,wr)}function sr(C,k){if(k=="!"||k=="?")return w(sr);if(C==":")return w(Oe,Fr);if(k=="=")return w(ht);var G=O.state.lexical.prev,ee=G&&G.info=="interface";return x(ee?ar:pr)}function $o(C,k){return k=="*"?(O.marked="keyword",w(Yt,Ie(";"))):k=="default"?(O.marked="keyword",w(Te,Ie(";"))):C=="{"?w(at(Eo,"}"),Yt,Ie(";")):x(De)}function Eo(C,k){if(k=="as")return O.marked="keyword",w(Ie("variable"));if(C=="variable")return x(ht,Eo)}function st(C){return C=="string"?w():C=="("?x(Te):C=="."?x(Ve):x(be,Br,Yt)}function be(C,k){return C=="{"?Wi(be,"}"):(C=="variable"&&ne(k),k=="*"&&(O.marked="keyword"),w(_o))}function Br(C){if(C==",")return w(be,Br)}function _o(C,k){if(k=="as")return O.marked="keyword",w(be)}function Yt(C,k){if(k=="from")return O.marked="keyword",w(Te)}function je(C){return C=="]"?w():x(at(ht,"]"))}function Vr(){return x(ge("form"),Bt,Ie("{"),ge("}"),at(ji,"}"),ve,ve)}function ji(){return x(Bt,Fr)}function Io(C,k){return C.lastType=="operator"||C.lastType==","||$.test(k.charAt(0))||/[,.]/.test(k.charAt(0))}function J(C,k,G){return k.tokenize==A&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(k.lastType)||k.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(G||0)))}return{startState:function(C){var k={tokenize:A,lastType:"sof",cc:[],lexical:new ie((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Re(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(k.globalVars=l.globalVars),k},token:function(C,k){if(C.sol()&&(k.lexical.hasOwnProperty("align")||(k.lexical.align=!1),k.indented=C.indentation(),me(C,k)),k.tokenize!=K&&C.eatSpace())return null;var G=k.tokenize(C,k);return oe=="comment"?G:(k.lastType=oe=="operator"&&(_=="++"||_=="--")?"incdec":oe,V(k,G,oe,_,C))},indent:function(C,k){if(C.tokenize==K||C.tokenize==ue)return i.Pass;if(C.tokenize!=A)return 0;var G=k&&k.charAt(0),ee=C.lexical,$e;if(!/^\s*else\b/.test(k))for(var Fe=C.cc.length-1;Fe>=0;--Fe){var de=C.cc[Fe];if(de==ve)ee=ee.prev;else if(de!=Ya&&de!=Be)break}for(;(ee.type=="stat"||ee.type=="form")&&(G=="}"||($e=C.cc[C.cc.length-1])&&($e==Ve||$e==ct)&&!/^[,\.=+\-*:?[\(]/.test(k));)ee=ee.prev;u&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var It=ee.type,lr=G==It;return It=="vardef"?ee.indented+(C.lastType=="operator"||C.lastType==","?ee.info.length+1:0):It=="form"&&G=="{"?ee.indented:It=="form"?ee.indented+d:It=="stat"?ee.indented+(Io(C,k)?u||d:0):ee.info=="switch"&&!lr&&l.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(k)?d:2*d):ee.align?ee.column+(lr?0:1):ee.indented+(lr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:v,jsonMode:m,expressionAllowed:J,skipExpression:function(C){V(C,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var IL=_L.exports,tf={exports:{}},rf;function AL(){return rf||(rf=1,function(n,e){(function(i){i(Pr())})(function(i){i.defineMode("css",function(ie,X){var V=X.inline;X.propertyKeywords||(X=i.resolveMode("text/css"));var O=ie.indentUnit,x=X.tokenHooks,w=X.documentTypes||{},U=X.mediaTypes||{},ne=X.mediaFeatures||{},ye=X.mediaValueKeywords||{},ke=X.propertyKeywords||{},Re=X.nonStandardPropertyKeywords||{},ot=X.fontProperties||{},Et=X.counterDescriptors||{},Ye=X.colorKeywords||{},Xe=X.valueKeywords||{},Be=X.allowNested,ge=X.lineComment,ve=X.supportsAtComponent===!0,Ie=ie.highlightNonStandardPropertyKeywords!==!1,De,Ae;function Te(H,re){return De=re,H}function ht(H,re){var j=H.next();if(x[j]){var Ne=x[j](H,re);if(Ne!==!1)return Ne}if(j=="@")return H.eatWhile(/[\w\\\-]/),Te("def",H.current());if(j=="="||(j=="~"||j=="|")&&H.eat("="))return Te(null,"compare");if(j=='"'||j=="'")return re.tokenize=qt(j),re.tokenize(H,re);if(j=="#")return H.eatWhile(/[\w\\\-]/),Te("atom","hash");if(j=="!")return H.match(/^\s*\w*/),Te("keyword","important");if(/\d/.test(j)||j=="."&&H.eat(/\d/))return H.eatWhile(/[\w.%]/),Te("number","unit");if(j==="-"){if(/[\d.]/.test(H.peek()))return H.eatWhile(/[\w.%]/),Te("number","unit");if(H.match(/^-[\w\\\-]*/))return H.eatWhile(/[\w\\\-]/),H.match(/^\s*:/,!1)?Te("variable-2","variable-definition"):Te("variable-2","variable");if(H.match(/^\w+-/))return Te("meta","meta")}else return/[,+>*\/]/.test(j)?Te(null,"select-op"):j=="."&&H.match(/^-?[_a-z][_a-z0-9-]*/i)?Te("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(j)?Te(null,j):H.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(H.current())&&(re.tokenize=ir),Te("variable callee","variable")):/[\w\\\-]/.test(j)?(H.eatWhile(/[\w\\\-]/),Te("property","word")):Te(null,null)}function qt(H){return function(re,j){for(var Ne=!1,Dt;(Dt=re.next())!=null;){if(Dt==H&&!Ne){H==")"&&re.backUp(1);break}Ne=!Ne&&Dt=="\\"}return(Dt==H||!Ne&&H!=")")&&(j.tokenize=null),Te("string","string")}}function ir(H,re){return H.next(),H.match(/^\s*[\"\')]/,!1)?re.tokenize=null:re.tokenize=qt(")"),Te(null,"(")}function _e(H,re,j){this.type=H,this.indent=re,this.prev=j}function Ve(H,re,j,Ne){return H.context=new _e(j,re.indentation()+(Ne===!1?0:O),H.context),j}function ct(H){return H.context.prev&&(H.context=H.context.prev),H.context.type}function Qe(H,re,j){return Ue[j.context.type](H,re,j)}function et(H,re,j,Ne){for(var Dt=Ne||1;Dt>0;Dt--)j.context=j.context.prev;return Qe(H,re,j)}function Nr(H){var re=H.current().toLowerCase();Xe.hasOwnProperty(re)?Ae="atom":Ye.hasOwnProperty(re)?Ae="keyword":Ae="variable"}var Ue={};return Ue.top=function(H,re,j){if(H=="{")return Ve(j,re,"block");if(H=="}"&&j.context.prev)return ct(j);if(ve&&/@component/i.test(H))return Ve(j,re,"atComponentBlock");if(/^@(-moz-)?document$/i.test(H))return Ve(j,re,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(H))return Ve(j,re,"atBlock");if(/^@(font-face|counter-style)/i.test(H))return j.stateArg=H,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(H))return"keyframes";if(H&&H.charAt(0)=="@")return Ve(j,re,"at");if(H=="hash")Ae="builtin";else if(H=="word")Ae="tag";else{if(H=="variable-definition")return"maybeprop";if(H=="interpolation")return Ve(j,re,"interpolation");if(H==":")return"pseudo";if(Be&&H=="(")return Ve(j,re,"parens")}return j.context.type},Ue.block=function(H,re,j){if(H=="word"){var Ne=re.current().toLowerCase();return ke.hasOwnProperty(Ne)?(Ae="property","maybeprop"):Re.hasOwnProperty(Ne)?(Ae=Ie?"string-2":"property","maybeprop"):Be?(Ae=re.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ae+=" error","maybeprop")}else return H=="meta"?"block":!Be&&(H=="hash"||H=="qualifier")?(Ae="error","block"):Ue.top(H,re,j)},Ue.maybeprop=function(H,re,j){return H==":"?Ve(j,re,"prop"):Qe(H,re,j)},Ue.prop=function(H,re,j){if(H==";")return ct(j);if(H=="{"&&Be)return Ve(j,re,"propBlock");if(H=="}"||H=="{")return et(H,re,j);if(H=="(")return Ve(j,re,"parens");if(H=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(re.current()))Ae+=" error";else if(H=="word")Nr(re);else if(H=="interpolation")return Ve(j,re,"interpolation");return"prop"},Ue.propBlock=function(H,re,j){return H=="}"?ct(j):H=="word"?(Ae="property","maybeprop"):j.context.type},Ue.parens=function(H,re,j){return H=="{"||H=="}"?et(H,re,j):H==")"?ct(j):H=="("?Ve(j,re,"parens"):H=="interpolation"?Ve(j,re,"interpolation"):(H=="word"&&Nr(re),"parens")},Ue.pseudo=function(H,re,j){return H=="meta"?"pseudo":H=="word"?(Ae="variable-3",j.context.type):Qe(H,re,j)},Ue.documentTypes=function(H,re,j){return H=="word"&&w.hasOwnProperty(re.current())?(Ae="tag",j.context.type):Ue.atBlock(H,re,j)},Ue.atBlock=function(H,re,j){if(H=="(")return Ve(j,re,"atBlock_parens");if(H=="}"||H==";")return et(H,re,j);if(H=="{")return ct(j)&&Ve(j,re,Be?"block":"top");if(H=="interpolation")return Ve(j,re,"interpolation");if(H=="word"){var Ne=re.current().toLowerCase();Ne=="only"||Ne=="not"||Ne=="and"||Ne=="or"?Ae="keyword":U.hasOwnProperty(Ne)?Ae="attribute":ne.hasOwnProperty(Ne)?Ae="property":ye.hasOwnProperty(Ne)?Ae="keyword":ke.hasOwnProperty(Ne)?Ae="property":Re.hasOwnProperty(Ne)?Ae=Ie?"string-2":"property":Xe.hasOwnProperty(Ne)?Ae="atom":Ye.hasOwnProperty(Ne)?Ae="keyword":Ae="error"}return j.context.type},Ue.atComponentBlock=function(H,re,j){return H=="}"?et(H,re,j):H=="{"?ct(j)&&Ve(j,re,Be?"block":"top",!1):(H=="word"&&(Ae="error"),j.context.type)},Ue.atBlock_parens=function(H,re,j){return H==")"?ct(j):H=="{"||H=="}"?et(H,re,j,2):Ue.atBlock(H,re,j)},Ue.restricted_atBlock_before=function(H,re,j){return H=="{"?Ve(j,re,"restricted_atBlock"):H=="word"&&j.stateArg=="@counter-style"?(Ae="variable","restricted_atBlock_before"):Qe(H,re,j)},Ue.restricted_atBlock=function(H,re,j){return H=="}"?(j.stateArg=null,ct(j)):H=="word"?(j.stateArg=="@font-face"&&!ot.hasOwnProperty(re.current().toLowerCase())||j.stateArg=="@counter-style"&&!Et.hasOwnProperty(re.current().toLowerCase())?Ae="error":Ae="property","maybeprop"):"restricted_atBlock"},Ue.keyframes=function(H,re,j){return H=="word"?(Ae="variable","keyframes"):H=="{"?Ve(j,re,"top"):Qe(H,re,j)},Ue.at=function(H,re,j){return H==";"?ct(j):H=="{"||H=="}"?et(H,re,j):(H=="word"?Ae="tag":H=="hash"&&(Ae="builtin"),"at")},Ue.interpolation=function(H,re,j){return H=="}"?ct(j):H=="{"||H==";"?et(H,re,j):(H=="word"?Ae="variable":H!="variable"&&H!="("&&H!=")"&&(Ae="error"),"interpolation")},{startState:function(H){return{tokenize:null,state:V?"block":"top",stateArg:null,context:new _e(V?"block":"top",H||0,null)}},token:function(H,re){if(!re.tokenize&&H.eatSpace())return null;var j=(re.tokenize||ht)(H,re);return j&&typeof j=="object"&&(De=j[1],j=j[0]),Ae=j,De!="comment"&&(re.state=Ue[re.state](De,H,re)),Ae},indent:function(H,re){var j=H.context,Ne=re&&re.charAt(0),Dt=j.indent;return j.type=="prop"&&(Ne=="}"||Ne==")")&&(j=j.prev),j.prev&&(Ne=="}"&&(j.type=="block"||j.type=="top"||j.type=="interpolation"||j.type=="restricted_atBlock")?(j=j.prev,Dt=j.indent):(Ne==")"&&(j.type=="parens"||j.type=="atBlock_parens")||Ne=="{"&&(j.type=="at"||j.type=="atBlock"))&&(Dt=Math.max(0,j.indent-O))),Dt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ge,fold:"brace"}});function o(ie){for(var X={},V=0;V<ie.length;++V)X[ie[V].toLowerCase()]=!0;return X}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],b=o(m),M=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],L=o(M),T=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],$=o(T),N=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],Y=o(N),oe=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=o(oe),D=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],A=o(D),B=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],K=o(B),ue=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],le=o(ue),me=l.concat(u).concat(m).concat(M).concat(T).concat(N).concat(B).concat(ue);i.registerHelper("hintWords","css",me);function Me(ie,X){for(var V=!1,O;(O=ie.next())!=null;){if(V&&O=="/"){X.tokenize=null;break}V=O=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,tokenHooks:{"/":function(ie,X){return ie.eat("*")?(X.tokenize=Me,Me(ie,X)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,X){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(X.tokenize=Me,Me(ie,X)):["operator","operator"]},":":function(ie){return ie.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ie){return ie.match(/^[\w-]+/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ie){return ie.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,X){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(X.tokenize=Me,Me(ie,X)):["operator","operator"]},"@":function(ie){return ie.eat("{")?[null,"interpolation"]:ie.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ie.eatWhile(/[\w\\\-]/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:b,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,supportsAtComponent:!0,tokenHooks:{"/":function(ie,X){return ie.eat("*")?(X.tokenize=Me,Me(ie,X)):!1}},name:"css",helperType:"gss"})})}()),tf.exports}(function(n,e){(function(i){i(Pr(),EL,IL,AL())})(function(i){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function l(L,T,$){var N=L.current(),Y=N.search(T);return Y>-1?L.backUp(N.length-Y):N.match(/<\/?$/)&&(L.backUp(N.length),L.match(T,!1)||L.match(N)),$}var d={};function u(L){var T=d[L];return T||(d[L]=new RegExp("\\s+"+L+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(L,T){var $=L.match(u(T));return $?/^\s*(.*?)\s*$/.exec($[2])[1]:""}function m(L,T){return new RegExp((T?"^":"")+"</s*"+L+"s*>","i")}function b(L,T){for(var $ in L)for(var N=T[$]||(T[$]=[]),Y=L[$],oe=Y.length-1;oe>=0;oe--)N.unshift(Y[oe])}function M(L,T){for(var $=0;$<L.length;$++){var N=L[$];if(!N[0]||N[1].test(v(T,N[0])))return N[2]}}i.defineMode("htmlmixed",function(L,T){var $=i.getMode(L,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),N={},Y=T&&T.tags,oe=T&&T.scriptTypes;if(b(o,N),Y&&b(Y,N),oe)for(var _=oe.length-1;_>=0;_--)N.script.unshift(["type",oe[_].matches,oe[_].mode]);function D(A,B){var K=$.token(A,B.htmlState),ue=/\btag\b/.test(K),le;if(ue&&!/[<>\s\/]/.test(A.current())&&(le=B.htmlState.tagName&&B.htmlState.tagName.toLowerCase())&&N.hasOwnProperty(le))B.inTag=le+" ";else if(B.inTag&&ue&&/>$/.test(A.current())){var me=/^([\S]+) (.*)/.exec(B.inTag);B.inTag=null;var Me=A.current()==">"&&M(N[me[1]],me[2]),ie=i.getMode(L,Me),X=m(me[1],!0),V=m(me[1],!1);B.token=function(O,x){return O.match(X,!1)?(x.token=D,x.localState=x.localMode=null,null):l(O,V,x.localMode.token(O,x.localState))},B.localMode=ie,B.localState=i.startState(ie,$.indent(B.htmlState,"",""))}else B.inTag&&(B.inTag+=A.current(),A.eol()&&(B.inTag+=" "));return K}return{startState:function(){var A=i.startState($);return{token:D,inTag:null,localMode:null,localState:null,htmlState:A}},copyState:function(A){var B;return A.localState&&(B=i.copyState(A.localMode,A.localState)),{token:A.token,inTag:A.inTag,localMode:A.localMode,localState:B,htmlState:i.copyState($,A.htmlState)}},token:function(A,B){return B.token(A,B)},indent:function(A,B,K){return!A.localMode||/^\s*<\//.test(B)?$.indent(A.htmlState,B,K):A.localMode.indent?A.localMode.indent(A.localState,B,K):i.Pass},innerMode:function(A){return{state:A.localState||A.htmlState,mode:A.localMode||$}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(Pr())})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(L){return parseFloat(L).toString()===L}function v(L){return function(T,$){for(var N=!1,Y;(Y=T.next())!=null&&!(Y==L&&!N);)N=!N&&Y=="\\";return N||($.tokenize=M),"string"}}function m(L){return function(T,$){var N="operator";return L=="+"?N+=" positive":L=="-"?N+=" negative":L=="|"?T.eat(/\|/):L=="&"?T.eat(/\&/):L=="^"&&(N+=" boost"),$.tokenize=M,N}}function b(L){return function(T,$){for(var N=L;(L=T.peek())&&L.match(o)!=null;)N+=T.next();return $.tokenize=M,d.test(N)?"operator":u(N)?"number":T.peek()==":"?"field":"string"}}function M(L,T){var $=L.next();return $=='"'?T.tokenize=v($):l.test($)?T.tokenize=m($):o.test($)&&(T.tokenize=b($)),T.tokenize!=M?T.tokenize(L,T):null}return{startState:function(){return{tokenize:M}},token:function(L,T){return L.eatSpace()?null:T.tokenize(L,T)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(Pr())})(function(i){i.defineOption("placeholder","",function(b,M,L){var T=L&&L!=i.Init;if(M&&!T)b.on("blur",u),b.on("change",v),b.on("swapDoc",v),i.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){d(b)}),v(b);else if(!M&&T){b.off("blur",u),b.off("change",v),b.off("swapDoc",v),i.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),o(b);var $=b.getWrapperElement();$.className=$.className.replace(" CodeMirror-empty","")}M&&!b.hasFocus()&&u(b)});function o(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function l(b){o(b);var M=b.state.placeholder=document.createElement("pre");M.style.cssText="height: 0; overflow: visible",M.style.direction=b.getOption("direction"),M.className="CodeMirror-placeholder CodeMirror-line-like";var L=b.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),M.appendChild(L),b.display.lineSpace.insertBefore(M,b.display.lineSpace.firstChild)}function d(b){setTimeout(function(){var M=!1;if(b.lineCount()==1){var L=b.getInputField();M=L.nodeName=="TEXTAREA"?!b.getLine(0).length:!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)}M?l(b):o(b)},20)}function u(b){m(b)&&l(b)}function v(b){var M=b.getWrapperElement(),L=m(b);M.className=M.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?l(b):o(b)}function m(b){return b.lineCount()===1&&b.getLine(0)===""}})})();(function(n,e){(function(i){i(Pr())})(function(i){var o="CodeMirror-hint",l="CodeMirror-hint-active";i.showHint=function(_,D,A){if(!D)return _.showHint(A);A&&A.async&&(D.async=!0);var B={hint:D};if(A)for(var K in A)B[K]=A[K];return _.showHint(B)},i.defineExtension("showHint",function(_){_=m(this,this.getCursor("start"),_);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!_.hint.supportsSelection)return;for(var A=0;A<D.length;A++)if(D[A].head.line!=D[A].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new d(this,_);B.options.hint&&(i.signal(this,"startCompletion",this),B.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(_,D){if(this.cm=_,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var A=this;_.on("cursorActivity",this.activityFunc=function(){A.cursorActivity()})}}var u=window.requestAnimationFrame||function(_){return setTimeout(_,1e3/60)},v=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(_,D){var A=_.list[D],B=this;this.cm.operation(function(){A.hint?A.hint(B.cm,_,A):B.cm.replaceRange(b(A),A.from||_.from,A.to||_.to,"complete"),i.signal(_,"pick",A),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(v(this.debounce),this.debounce=0);var _=this.startPos;this.data&&(_=this.data.from);var D=this.cm.getCursor(),A=this.cm.getLine(D.line);if(D.line!=this.startPos.line||A.length-D.ch!=this.startLen-this.startPos.ch||D.ch<_.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(A.charAt(D.ch-1)))this.close();else{var B=this;this.debounce=u(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(_){if(this.tick!=null){var D=this,A=++this.tick;N(this.options.hint,this.cm,this.options,function(B){D.tick==A&&D.finishUpdate(B,_)})}},finishUpdate:function(_,D){this.data&&i.signal(this.data,"update");var A=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=_,_&&_.list.length&&(A&&_.list.length==1?this.pick(_,0):(this.widget=new T(this,_),i.signal(_,"shown")))}};function m(_,D,A){var B=_.options.hintOptions,K={};for(var ue in oe)K[ue]=oe[ue];if(B)for(var ue in B)B[ue]!==void 0&&(K[ue]=B[ue]);if(A)for(var ue in A)A[ue]!==void 0&&(K[ue]=A[ue]);return K.hint.resolve&&(K.hint=K.hint.resolve(_,D)),K}function b(_){return typeof _=="string"?_:_.text}function M(_,D){var A={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},B=/Mac/.test(navigator.platform);B&&(A["Ctrl-P"]=function(){D.moveFocus(-1)},A["Ctrl-N"]=function(){D.moveFocus(1)});var K=_.options.customKeys,ue=K?{}:A;function le(ie,X){var V;typeof X!="string"?V=function(O){return X(O,D)}:A.hasOwnProperty(X)?V=A[X]:V=X,ue[ie]=V}if(K)for(var me in K)K.hasOwnProperty(me)&&le(me,K[me]);var Me=_.options.extraKeys;if(Me)for(var me in Me)Me.hasOwnProperty(me)&&le(me,Me[me]);return ue}function L(_,D){for(;D&&D!=_;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==_)return D;D=D.parentNode}}function T(_,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=_,this.data=D,this.picked=!1;var A=this,B=_.cm,K=B.getInputField().ownerDocument,ue=K.defaultView||K.parentWindow,le=this.hints=K.createElement("ul");le.setAttribute("role","listbox"),le.setAttribute("aria-expanded","true"),le.id=this.id;var me=_.cm.options.theme;le.className="CodeMirror-hints "+me,this.selectedHint=D.selectedHint||0;for(var Me=D.list,ie=0;ie<Me.length;++ie){var X=le.appendChild(K.createElement("li")),V=Me[ie],O=o+(ie!=this.selectedHint?"":" "+l);V.className!=null&&(O=V.className+" "+O),X.className=O,ie==this.selectedHint&&X.setAttribute("aria-selected","true"),X.id=this.id+"-"+ie,X.setAttribute("role","option"),V.render?V.render(X,D,V):X.appendChild(K.createTextNode(V.displayText||b(V))),X.hintId=ie}var x=_.options.container||K.body,w=B.cursorCoords(_.options.alignWithWord?D.from:null),U=w.left,ne=w.bottom,ye=!0,ke=0,Re=0;if(x!==K.body){var ot=["absolute","relative","fixed"].indexOf(ue.getComputedStyle(x).position)!==-1,Et=ot?x:x.offsetParent,Ye=Et.getBoundingClientRect(),Xe=K.body.getBoundingClientRect();ke=Ye.left-Xe.left-Et.scrollLeft,Re=Ye.top-Xe.top-Et.scrollTop}le.style.left=U-ke+"px",le.style.top=ne-Re+"px";var Be=ue.innerWidth||Math.max(K.body.offsetWidth,K.documentElement.offsetWidth),ge=ue.innerHeight||Math.max(K.body.offsetHeight,K.documentElement.offsetHeight);x.appendChild(le),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ve=_.options.moveOnOverlap?le.getBoundingClientRect():new DOMRect,Ie=_.options.paddingForScrollbar?le.scrollHeight>le.clientHeight+1:!1,De;setTimeout(function(){De=B.getScrollInfo()});var Ae=ve.bottom-ge;if(Ae>0){var Te=ve.bottom-ve.top,ht=w.top-(w.bottom-ve.top);if(ht-Te>0)le.style.top=(ne=w.top-Te-Re)+"px",ye=!1;else if(Te>ge){le.style.height=ge-5+"px",le.style.top=(ne=w.bottom-ve.top-Re)+"px";var qt=B.getCursor();D.from.ch!=qt.ch&&(w=B.cursorCoords(qt),le.style.left=(U=w.left-ke)+"px",ve=le.getBoundingClientRect())}}var ir=ve.right-Be;if(Ie&&(ir+=B.display.nativeBarWidth),ir>0&&(ve.right-ve.left>Be&&(le.style.width=Be-5+"px",ir-=ve.right-ve.left-Be),le.style.left=(U=w.left-ir-ke)+"px"),Ie)for(var _e=le.firstChild;_e;_e=_e.nextSibling)_e.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=M(_,{moveFocus:function(Qe,et){A.changeActive(A.selectedHint+Qe,et)},setFocus:function(Qe){A.changeActive(Qe)},menuSize:function(){return A.screenAmount()},length:Me.length,close:function(){_.close()},pick:function(){A.pick()},data:D})),_.options.closeOnUnfocus){var Ve;B.on("blur",this.onBlur=function(){Ve=setTimeout(function(){_.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Ve)})}B.on("scroll",this.onScroll=function(){var Qe=B.getScrollInfo(),et=B.getWrapperElement().getBoundingClientRect();De||(De=B.getScrollInfo());var Nr=ne+De.top-Qe.top,Ue=Nr-(ue.pageYOffset||(K.documentElement||K.body).scrollTop);if(ye||(Ue+=le.offsetHeight),Ue<=et.top||Ue>=et.bottom)return _.close();le.style.top=Nr+"px",le.style.left=U+De.left-Qe.left+"px"}),i.on(le,"dblclick",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),A.pick())}),i.on(le,"click",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),_.options.completeOnSingleClick&&A.pick())}),i.on(le,"mousedown",function(){setTimeout(function(){B.focus()},20)});var ct=this.getSelectedHintRange();return(ct.from!==0||ct.to!==0)&&this.scrollToActive(),i.signal(D,"select",Me[this.selectedHint],le.childNodes[this.selectedHint]),!0}T.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var _=this.completion.cm.getInputField();_.removeAttribute("aria-activedescendant"),_.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var _=this;this.keyMap={Enter:function(){_.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(_,D){if(_>=this.data.list.length?_=D?this.data.list.length-1:0:_<0&&(_=D?0:this.data.list.length-1),this.selectedHint!=_){var A=this.hints.childNodes[this.selectedHint];A&&(A.className=A.className.replace(" "+l,""),A.removeAttribute("aria-selected")),A=this.hints.childNodes[this.selectedHint=_],A.className+=" "+l,A.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",A.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],A)}},scrollToActive:function(){var _=this.getSelectedHintRange(),D=this.hints.childNodes[_.from],A=this.hints.childNodes[_.to],B=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-B.offsetTop:A.offsetTop+A.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=A.offsetTop+A.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var _=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-_),to:Math.min(this.data.list.length-1,this.selectedHint+_)}}};function $(_,D){if(!_.somethingSelected())return D;for(var A=[],B=0;B<D.length;B++)D[B].supportsSelection&&A.push(D[B]);return A}function N(_,D,A,B){if(_.async)_(D,B,A);else{var K=_(D,A);K&&K.then?K.then(B):B(K)}}function Y(_,D){var A=_.getHelpers(D,"hint"),B;if(A.length){var K=function(ue,le,me){var Me=$(ue,A);function ie(X){if(X==Me.length)return le(null);N(Me[X],ue,me,function(V){V&&V.list.length>0?le(V):ie(X+1)})}ie(0)};return K.async=!0,K.supportsSelection=!0,K}else return(B=_.getHelper(_.getCursor(),"hintWords"))?function(ue){return i.hint.fromList(ue,{words:B})}:i.hint.anyword?function(ue,le){return i.hint.anyword(ue,le)}:function(){}}i.registerHelper("hint","auto",{resolve:Y}),i.registerHelper("hint","fromList",function(_,D){var A=_.getCursor(),B=_.getTokenAt(A),K,ue=i.Pos(A.line,B.start),le=A;B.start<A.ch&&/\w/.test(B.string.charAt(A.ch-B.start-1))?K=B.string.substr(0,A.ch-B.start):(K="",ue=A);for(var me=[],Me=0;Me<D.words.length;Me++){var ie=D.words[Me];ie.slice(0,K.length)==K&&me.push(ie)}if(me.length)return{list:me,from:ue,to:le}}),i.commands.autocomplete=i.showHint;var oe={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})})();(function(n,e){(function(i){i(Pr())})(function(i){var o=i.Pos;function l(_,D){for(var A=0,B=_.length;A<B;++A)D(_[A])}function d(_,D){if(!Array.prototype.indexOf){for(var A=_.length;A--;)if(_[A]===D)return!0;return!1}return _.indexOf(D)!=-1}function u(_,D,A,B){var K=_.getCursor(),ue=A(_,K);if(!/\b(?:string|comment)\b/.test(ue.type)){var le=i.innerMode(_.getMode(),ue.state);if(le.mode.helperType!=="json"){ue.state=le.state,/^[\w$_]*$/.test(ue.string)?ue.end>K.ch&&(ue.end=K.ch,ue.string=ue.string.slice(0,K.ch-ue.start)):ue={start:K.ch,end:K.ch,string:"",state:ue.state,type:ue.string=="."?"property":null};for(var me=ue;me.type=="property";){if(me=A(_,o(K.line,me.start)),me.string!=".")return;if(me=A(_,o(K.line,me.start)),!Me)var Me=[];Me.push(me)}return{list:oe(ue,Me,D,B),from:o(K.line,ue.start),to:o(K.line,ue.end)}}}}function v(_,D){return u(_,$,function(A,B){return A.getTokenAt(B)},D)}i.registerHelper("hint","javascript",v);function m(_,D){var A=_.getTokenAt(D);return D.ch==A.start+1&&A.string.charAt(0)=="."?(A.end=A.start,A.string=".",A.type="property"):/^\.[\w$_]*$/.test(A.string)&&(A.type="property",A.start++,A.string=A.string.replace(/\./,"")),A}function b(_,D){return u(_,N,m,D)}i.registerHelper("hint","coffeescript",b);var M="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),L="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),T="prototype apply call bind".split(" "),$="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),N="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function Y(_,D){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var A in _)D(A);else for(var B=_;B;B=Object.getPrototypeOf(B))Object.getOwnPropertyNames(B).forEach(D)}function oe(_,D,A,B){var K=[],ue=_.string,le=B&&B.globalScope||window;function me(w){w.lastIndexOf(ue,0)==0&&!d(K,w)&&K.push(w)}function Me(w){typeof w=="string"?l(M,me):w instanceof Array?l(L,me):w instanceof Function&&l(T,me),Y(w,me)}if(D&&D.length){var ie=D.pop(),X;for(ie.type&&ie.type.indexOf("variable")===0?(B&&B.additionalContext&&(X=B.additionalContext[ie.string]),(!B||B.useGlobalScope!==!1)&&(X=X||le[ie.string])):ie.type=="string"?X="":ie.type=="atom"?X=1:ie.type=="function"&&(le.jQuery!=null&&(ie.string=="$"||ie.string=="jQuery")&&typeof le.jQuery=="function"?X=le.jQuery():le._!=null&&ie.string=="_"&&typeof le._=="function"&&(X=le._()));X!=null&&D.length;)X=X[D.pop().string];X!=null&&Me(X)}else{for(var V=_.state.localVars;V;V=V.next)me(V.name);for(var O=_.state.context;O;O=O.prev)for(var V=O.vars;V;V=V.next)me(V.name);for(var V=_.state.globalVars;V;V=V.next)me(V.name);if(B&&B.additionalContext!=null)for(var x in B.additionalContext)me(x);(!B||B.useGlobalScope!==!1)&&Me(le),l(A,me)}return K}})})();var PL=Object.defineProperty,DL=Object.getOwnPropertyDescriptor,Bi=(n,e,i,o)=>{for(var l=o>1?void 0:o?DL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&PL(e,i,l),l};Di.defineMode("nunjucks",(n,e)=>Di.overlayMode(Di.getMode(n,e.backdrop||"text/html"),Di.getMode(n,"jinja2")));const jp=ce("input-code"),NL=["json","nunjucks","javascript","solr"],nf={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends rr{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1,this.autocompleteList=[],this.singleLine=!1,this.boundHandleEditorMouseDown=this.handleEditorMouseDown.bind(this),this.changeHandler=e=>{this.value=e.getValue(),this.dispatchChange()}}atSignHint(e,i){const o=e.getCursor(),l=e.getLine(o.line),d=e.getTokenAt(o),u=i.fromAtTrigger||!1,v=i.fromGeneralTyping||!1;let m,b="";if(u){let T=-1;for(let $=o.ch-1;$>=0;$--)if(l.charAt($)==="@"){T=$;break}if(T===-1&&d.string.startsWith("@")&&d.start<o.ch&&(T=d.start),T!==-1)m=Di.Pos(o.line,T),b=l.substring(T+1,o.ch);else return null}else if(v){let T=o.ch;for(;T>0&&l.charAt(T-1).match(exports.InputCode.AUTOCOMPLETE_REGEX);)T--;if(b=l.substring(T,o.ch),m=Di.Pos(o.line,T),b.length===0||b==="."&&(T===0||!l.charAt(T-1).match(/\w/)))return null}else return null;const L=(i.words||this.autocompleteList||[]).filter(T=>T.toLowerCase().startsWith(b.toLowerCase())).map(T=>({text:T,displayText:T}));return L.length>0?{list:L,from:m,to:Di.Pos(o.line,o.ch)}:null}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e)}updated(e){super.updated(e);const i=this.disabled||this.readonly;if(this.value!==this.editorValue&&(this.editorValue=this.value||""),this.editor&&i!==this.editor.isReadOnly()&&this.editor.setOption("readOnly",this.disabled?"nocursor":this.readonly),e.get("mode")&&this.editor&&(this.editor.setOption("mode",nf[this.mode]),this.editor.refresh()),e.has("autocompleteList")&&this.editor){const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};this.editor.setOption("hintOptions",o)}this.editor&&(e.has("height")||e.has("hideLineNumbers"))&&(this.updateEditorSize(),this.editor.refresh()),e.has("singleLine")&&this.editor&&(this.editor.setOption("lineNumbers",!this.hideLineNumbers&&!this.singleLine),this.updateEditorSize(),this.editor.refresh())}updateEditorSize(){if(this.editor){const e=this.singleLine?"36px":`${24*this.height}px`;this.editor.setSize(null,e)}}handleEditorMouseDown(){this.editor&&!this.editor.hasFocus()&&this.editor.focus()}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");if(e&&this.shadowRoot){this.editor=Di.fromTextArea(e,{mode:nf[this.mode],lineNumbers:!this.hideLineNumbers&&!this.singleLine,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.value!==void 0&&(this.editorValue=this.value);const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1};this.editor.setOption("hintOptions",o),this.updateEditorSize(),this.editor.on("change",this.changeHandler),this.editor.getWrapperElement().addEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.on("beforeChange",(u,v)=>{this.singleLine&&v.text.some(m=>/\n/.test(m))&&v.cancel()});const d={Tab:u=>{const v=Array((u.getOption("indentUnit")||0)+1).join(" ");u.replaceSelection(v)}};this.singleLine&&(d.Enter=()=>{}),this.editor.setOption("extraKeys",d),this.editor.on("inputRead",(u,v)=>{if(u.state.completionActive)return;const m=v.text&&v.text[0],b=u.getCursor(),M=u.getLine(b.line);let L=!1;const T={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};if(m==="@")T.fromAtTrigger=!0,L=!0;else if(m&&m.match(exports.InputCode.AUTOCOMPLETE_REGEX)&&this.autocompleteList.length>0){if(m==="."&&(b.ch<=1||!M.charAt(b.ch-2).match(/\w/)))return;let $=b.ch;for(;$>0&&M.charAt($-1).match(exports.InputCode.AUTOCOMPLETE_REGEX);)$--;const N=M.substring($,b.ch);if(N&&N.length>=1){if(N==="."&&($===0||!M.charAt($-1).match(/\w/)))return;this.autocompleteList.some(oe=>oe.toLowerCase().startsWith(N.toLowerCase()))&&(T.fromGeneralTyping=!0,L=!0)}}if(L){u.setOption("hintOptions",T);const $=T.fromAtTrigger?50:0;setTimeout(()=>{u.hasFocus()&&u.execCommand("autocomplete")},$)}}),setTimeout(()=>{var u;return(u=this.editor)==null?void 0:u.refresh()},0)}}disconnectedCallback(){if(super.disconnectedCallback(),this.editor){const e=this.editor.getWrapperElement();e.removeEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.off("change",this.changeHandler),e&&e.remove&&e.remove(),this.editor=void 0}}renderInput(){return F`
3093
+ `;(function(n,e){(function(i){i(Pr)})(function(i){i.overlayMode=function(o,l,d){return{startState:function(){return{base:i.startState(o),overlay:i.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:i.copyState(o,u.base),overlay:i.copyState(l,u.overlay),basePos:u.basePos,baseCur:null,overlayPos:u.overlayPos,overlayCur:null}},token:function(u,v){return(u!=v.streamSeen||Math.min(v.basePos,v.overlayPos)<u.start)&&(v.streamSeen=u,v.basePos=v.overlayPos=u.start),u.start==v.basePos&&(v.baseCur=o.token(u,v.base),v.basePos=u.pos),u.start==v.overlayPos&&(u.pos=u.start,v.overlayCur=l.token(u,v.overlay),v.overlayPos=u.pos),u.pos=Math.min(v.basePos,v.overlayPos),v.overlayCur==null?v.baseCur:v.baseCur!=null&&v.overlay.combineTokens||d&&v.overlay.combineTokens==null?v.baseCur+" "+v.overlayCur:v.overlayCur},indent:o.indent&&function(u,v,m){return o.indent(u.base,v,m)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,m;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(m=l.blankLine(u.overlay)),m==null?v:d&&v!=null?v+" "+m:m}}}})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],l=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,u=["true","false"],v=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),u=new RegExp("(("+u.join(")|(")+"))\\b");function m(b,M){var L=b.peek();if(M.incomment)return b.skipTo("#}")?(b.eatWhile(/\#|}/),M.incomment=!1):b.skipToEnd(),"comment";if(M.intag){if(M.operator){if(M.operator=!1,b.match(u))return"atom";if(b.match(v))return"number"}if(M.sign){if(M.sign=!1,b.match(u))return"atom";if(b.match(v))return"number"}if(M.instring)return L==M.instring&&(M.instring=!1),b.next(),"string";if(L=="'"||L=='"')return M.instring=L,b.next(),"string";if(b.match(M.intag+"}")||b.eat("-")&&b.match(M.intag+"}"))return M.intag=!1,"tag";if(b.match(l))return M.operator=!0,"operator";if(b.match(d))M.sign=!0;else if(b.eat(" ")||b.sol()){if(b.match(o))return"keyword";if(b.match(u))return"atom";if(b.match(v))return"number";b.sol()&&b.next()}else b.next();return"variable"}else if(b.eat("{")){if(b.eat("#"))return M.incomment=!0,b.skipTo("#}")?(b.eatWhile(/\#|}/),M.incomment=!1):b.skipToEnd(),"comment";if(L=b.eat(/\{|%/))return M.intag=L,L=="{"&&(M.intag="}"),b.eat("-"),"tag"}b.next()}return{startState:function(){return{tokenize:m}},token:function(b,M){return M.tokenize(b,M)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var kL={exports:{}};(function(n,e){(function(i){i(Pr)})(function(i){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(d,u){var v=d.indentUnit,m={},b=u.htmlMode?o:l;for(var M in b)m[M]=b[M];for(var M in u)m[M]=u[M];var L,T;function $(x,w){function U(ke){return w.tokenize=ke,ke(x,w)}var ne=x.next();if(ne=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?U(oe("atom","]]>")):null:x.match("--")?U(oe("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),U(_(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),w.tokenize=oe("meta","?>"),"meta"):(L=x.eat("/")?"closeTag":"openTag",w.tokenize=N,"tag bracket");if(ne=="&"){var ye;return x.eat("#")?x.eat("x")?ye=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):ye=x.eatWhile(/[\d]/)&&x.eat(";"):ye=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),ye?"atom":"error"}else return x.eatWhile(/[^&<]/),null}$.isInText=!0;function N(x,w){var U=x.next();if(U==">"||U=="/"&&x.eat(">"))return w.tokenize=$,L=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return L="equals",null;if(U=="<"){w.tokenize=$,w.state=K,w.tagName=w.tagStart=null;var ne=w.tokenize(x,w);return ne?ne+" tag error":"tag error"}else return/[\'\"]/.test(U)?(w.tokenize=Y(U),w.stringStartCol=x.column(),w.tokenize(x,w)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Y(x){var w=function(U,ne){for(;!U.eol();)if(U.next()==x){ne.tokenize=N;break}return"string"};return w.isInAttribute=!0,w}function oe(x,w){return function(U,ne){for(;!U.eol();){if(U.match(w)){ne.tokenize=$;break}U.next()}return x}}function _(x){return function(w,U){for(var ne;(ne=w.next())!=null;){if(ne=="<")return U.tokenize=_(x+1),U.tokenize(w,U);if(ne==">")if(x==1){U.tokenize=$;break}else return U.tokenize=_(x-1),U.tokenize(w,U)}return"meta"}}function D(x,w,U){this.prev=x.context,this.tagName=w||"",this.indent=x.indented,this.startOfLine=U,(m.doNotIndent.hasOwnProperty(w)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function A(x){x.context&&(x.context=x.context.prev)}function B(x,w){for(var U;;){if(!x.context||(U=x.context.tagName,!m.contextGrabbers.hasOwnProperty(U)||!m.contextGrabbers[U].hasOwnProperty(w)))return;A(x)}}function K(x,w,U){return x=="openTag"?(U.tagStart=w.column(),ue):x=="closeTag"?le:K}function ue(x,w,U){return x=="word"?(U.tagName=w.current(),T="tag",ie):m.allowMissingTagName&&x=="endTag"?(T="tag bracket",ie(x,w,U)):(T="error",ue)}function le(x,w,U){if(x=="word"){var ne=w.current();return U.context&&U.context.tagName!=ne&&m.implicitlyClosed.hasOwnProperty(U.context.tagName)&&A(U),U.context&&U.context.tagName==ne||m.matchClosing===!1?(T="tag",me):(T="tag error",Me)}else return m.allowMissingTagName&&x=="endTag"?(T="tag bracket",me(x,w,U)):(T="error",Me)}function me(x,w,U){return x!="endTag"?(T="error",me):(A(U),K)}function Me(x,w,U){return T="error",me(x,w,U)}function ie(x,w,U){if(x=="word")return T="attribute",X;if(x=="endTag"||x=="selfcloseTag"){var ne=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,x=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(ne)?B(U,ne):(B(U,ne),U.context=new D(U,ne,ye==U.indented)),K}return T="error",ie}function X(x,w,U){return x=="equals"?V:(m.allowMissing||(T="error"),ie(x,w,U))}function V(x,w,U){return x=="string"?O:x=="word"&&m.allowUnquoted?(T="string",ie):(T="error",ie(x,w,U))}function O(x,w,U){return x=="string"?O:ie(x,w,U)}return{startState:function(x){var w={tokenize:$,state:K,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(w.baseIndent=x),w},token:function(x,w){if(!w.tagName&&x.sol()&&(w.indented=x.indentation()),x.eatSpace())return null;L=null;var U=w.tokenize(x,w);return(U||L)&&U!="comment"&&(T=null,w.state=w.state(L||U,x,w),T&&(U=T=="error"?U+" error":T)),U},indent:function(x,w,U){var ne=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(ne&&ne.noIndent)return i.Pass;if(x.tokenize!=N&&x.tokenize!=$)return U?U.match(/^(\s*)/)[0].length:0;if(x.tagName)return m.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(w))return 0;var ye=w&&/^<(\/)?([\w_:\.-]*)/.exec(w);if(ye&&ye[1])for(;ne;)if(ne.tagName==ye[2]){ne=ne.prev;break}else if(m.implicitlyClosed.hasOwnProperty(ne.tagName))ne=ne.prev;else break;else if(ye)for(;ne;){var ke=m.contextGrabbers[ne.tagName];if(ke&&ke.hasOwnProperty(ye[2]))ne=ne.prev;else break}for(;ne&&ne.prev&&!ne.startOfLine;)ne=ne.prev;return ne?ne.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(x){x.state==V&&(x.state=ie)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var w=[],U=x.context;U;U=U.prev)w.push(U.tagName);return w.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var OL=kL.exports,$L={exports:{}};(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,m=l.json||v,b=l.trackScope!==!1,M=l.typescript,L=l.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function C(It){return{type:It,style:"keyword"}}var k=C("keyword a"),G=C("keyword b"),ee=C("keyword c"),$e=C("keyword d"),Fe=C("operator"),de={type:"atom",style:"atom"};return{if:C("if"),while:k,with:k,else:G,do:G,try:G,finally:G,return:$e,break:$e,continue:$e,new:C("new"),delete:ee,void:ee,throw:ee,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Fe,typeof:Fe,instanceof:Fe,true:de,false:de,null:de,undefined:de,NaN:de,Infinity:de,this:C("this"),class:C("class"),super:C("atom"),yield:ee,export:C("export"),import:C("import"),extends:ee,await:ee}}(),$=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Y(C){for(var k=!1,G,ee=!1;(G=C.next())!=null;){if(!k){if(G=="/"&&!ee)return;G=="["?ee=!0:ee&&G=="]"&&(ee=!1)}k=!k&&G=="\\"}}var oe,_;function D(C,k,G){return oe=C,_=G,k}function A(C,k){var G=C.next();if(G=='"'||G=="'")return k.tokenize=B(G),k.tokenize(C,k);if(G=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(G=="."&&C.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(G))return D(G);if(G=="="&&C.eat(">"))return D("=>","operator");if(G=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(G))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(G=="/")return C.eat("*")?(k.tokenize=K,K(C,k)):C.eat("/")?(C.skipToEnd(),D("comment","comment")):J(C,k,1)?(Y(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(C.eat("="),D("operator","operator",C.current()));if(G=="`")return k.tokenize=ue,ue(C,k);if(G=="#"&&C.peek()=="!")return C.skipToEnd(),D("meta","meta");if(G=="#"&&C.eatWhile(L))return D("variable","property");if(G=="<"&&C.match("!--")||G=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),D("comment","comment");if($.test(G))return(G!=">"||!k.lexical||k.lexical.type!=">")&&(C.eat("=")?(G=="!"||G=="=")&&C.eat("="):/[<>*+\-|&?]/.test(G)&&(C.eat(G),G==">"&&C.eat(G))),G=="?"&&C.eat(".")?D("."):D("operator","operator",C.current());if(L.test(G)){C.eatWhile(L);var ee=C.current();if(k.lastType!="."){if(T.propertyIsEnumerable(ee)){var $e=T[ee];return D($e.type,$e.style,ee)}if(ee=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",ee)}return D("variable","variable",ee)}}function B(C){return function(k,G){var ee=!1,$e;if(v&&k.peek()=="@"&&k.match(N))return G.tokenize=A,D("jsonld-keyword","meta");for(;($e=k.next())!=null&&!($e==C&&!ee);)ee=!ee&&$e=="\\";return ee||(G.tokenize=A),D("string","string")}}function K(C,k){for(var G=!1,ee;ee=C.next();){if(ee=="/"&&G){k.tokenize=A;break}G=ee=="*"}return D("comment","comment")}function ue(C,k){for(var G=!1,ee;(ee=C.next())!=null;){if(!G&&(ee=="`"||ee=="$"&&C.eat("{"))){k.tokenize=A;break}G=!G&&ee=="\\"}return D("quasi","string-2",C.current())}var le="([{}])";function me(C,k){k.fatArrowAt&&(k.fatArrowAt=null);var G=C.string.indexOf("=>",C.start);if(!(G<0)){if(M){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,G));ee&&(G=ee.index)}for(var $e=0,Fe=!1,de=G-1;de>=0;--de){var It=C.string.charAt(de),lr=le.indexOf(It);if(lr>=0&&lr<3){if(!$e){++de;break}if(--$e==0){It=="("&&(Fe=!0);break}}else if(lr>=3&&lr<6)++$e;else if(L.test(It))Fe=!0;else if(/["'\/`]/.test(It))for(;;--de){if(de==0)return;var _n=C.string.charAt(de-1);if(_n==It&&C.string.charAt(de-2)!="\\"){de--;break}}else if(Fe&&!$e){++de;break}}Fe&&!$e&&(k.fatArrowAt=de)}}var Me={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(C,k,G,ee,$e,Fe){this.indented=C,this.column=k,this.type=G,this.prev=$e,this.info=Fe,ee!=null&&(this.align=ee)}function X(C,k){if(!b)return!1;for(var G=C.localVars;G;G=G.next)if(G.name==k)return!0;for(var ee=C.context;ee;ee=ee.prev)for(var G=ee.vars;G;G=G.next)if(G.name==k)return!0}function V(C,k,G,ee,$e){var Fe=C.cc;for(O.state=C,O.stream=$e,O.marked=null,O.cc=Fe,O.style=k,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var de=Fe.length?Fe.pop():m?Te:De;if(de(G,ee)){for(;Fe.length&&Fe[Fe.length-1].lex;)Fe.pop()();return O.marked?O.marked:G=="variable"&&X(C,ee)?"variable-2":k}}}var O={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function w(){return x.apply(null,arguments),!0}function U(C,k){for(var G=k;G;G=G.next)if(G.name==C)return!0;return!1}function ne(C){var k=O.state;if(O.marked="def",!!b){if(k.context){if(k.lexical.info=="var"&&k.context&&k.context.block){var G=ye(C,k.context);if(G!=null){k.context=G;return}}else if(!U(C,k.localVars)){k.localVars=new ot(C,k.localVars);return}}l.globalVars&&!U(C,k.globalVars)&&(k.globalVars=new ot(C,k.globalVars))}}function ye(C,k){if(k)if(k.block){var G=ye(C,k.prev);return G?G==k.prev?k:new Re(G,k.vars,!0):null}else return U(C,k.vars)?k:new Re(k.prev,new ot(C,k.vars),!1);else return null}function ke(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Re(C,k,G){this.prev=C,this.vars=k,this.block=G}function ot(C,k){this.name=C,this.next=k}var Et=new ot("this",new ot("arguments",null));function Ye(){O.state.context=new Re(O.state.context,O.state.localVars,!1),O.state.localVars=Et}function Xe(){O.state.context=new Re(O.state.context,O.state.localVars,!0),O.state.localVars=null}function Be(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Be.lex=!0;function ge(C,k){var G=function(){var ee=O.state,$e=ee.indented;if(ee.lexical.type=="stat")$e=ee.lexical.indented;else for(var Fe=ee.lexical;Fe&&Fe.type==")"&&Fe.align;Fe=Fe.prev)$e=Fe.indented;ee.lexical=new ie($e,O.stream.column(),C,null,ee.lexical,k)};return G.lex=!0,G}function ve(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}ve.lex=!0;function Ie(C){function k(G){return G==C?w():C==";"||G=="}"||G==")"||G=="]"?x():w(k)}return k}function De(C,k){return C=="var"?w(ge("vardef",k),Mo,Ie(";"),ve):C=="keyword a"?w(ge("form"),qt,De,ve):C=="keyword b"?w(ge("form"),De,ve):C=="keyword d"?O.stream.match(/^\s*$/,!1)?w():w(ge("stat"),_e,Ie(";"),ve):C=="debugger"?w(Ie(";")):C=="{"?w(ge("}"),Xe,Kt,ve,Be):C==";"?w():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==ve&&O.state.cc.pop()(),w(ge("form"),qt,De,ve,Ya)):C=="function"?w(pr):C=="for"?w(ge("form"),Xe,Xa,De,Be,ve):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form",C=="class"?C:k),En,ve)):C=="variable"?M&&k=="declare"?(O.marked="keyword",w(De)):M&&(k=="module"||k=="enum"||k=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",k=="enum"?w(Vr):k=="type"?w(Ja,Ie("operator"),Oe,Ie(";")):w(ge("form"),Bt,Ie("{"),ge("}"),Kt,ve,ve)):M&&k=="namespace"?(O.marked="keyword",w(ge("form"),Te,De,ve)):M&&k=="abstract"?(O.marked="keyword",w(De)):w(ge("stat"),Ne):C=="switch"?w(ge("form"),qt,Ie("{"),ge("}","switch"),Xe,Kt,ve,ve,Be):C=="case"?w(Te,Ie(":")):C=="default"?w(Ie(":")):C=="catch"?w(ge("form"),Ye,Ae,De,ve,Be):C=="export"?w(ge("stat"),$o,ve):C=="import"?w(ge("stat"),st,ve):C=="async"?w(De):k=="@"?w(Te,De):x(ge("stat"),Te,Ie(";"),ve)}function Ae(C){if(C=="(")return w(ii,Ie(")"))}function Te(C,k){return ir(C,k,!1)}function ht(C,k){return ir(C,k,!0)}function qt(C){return C!="("?x():w(ge(")"),_e,Ie(")"),ve)}function ir(C,k,G){if(O.state.fatArrowAt==O.stream.start){var ee=G?Ue:Nr;if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Ie("=>"),ee,Be);if(C=="variable")return x(Ye,Bt,Ie("=>"),ee,Be)}var $e=G?ct:Ve;return Me.hasOwnProperty(C)?w($e):C=="function"?w(pr,$e):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form"),$n,ve)):C=="keyword c"||C=="async"?w(G?ht:Te):C=="("?w(ge(")"),_e,Ie(")"),ve,$e):C=="operator"||C=="spread"?w(G?ht:Te):C=="["?w(ge("]"),je,ve,$e):C=="{"?Wi(Hr,"}",null,$e):C=="quasi"?x(Qe,$e):C=="new"?w(H(G)):w()}function _e(C){return C.match(/[;\}\)\],]/)?x():x(Te)}function Ve(C,k){return C==","?w(_e):ct(C,k,!1)}function ct(C,k,G){var ee=G==!1?Ve:ct,$e=G==!1?Te:ht;if(C=="=>")return w(Ye,G?Ue:Nr,Be);if(C=="operator")return/\+\+|--/.test(k)||M&&k=="!"?w(ee):M&&k=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?w(ge(">"),at(Oe,">"),ve,ee):k=="?"?w(Te,Ie(":"),$e):w($e);if(C=="quasi")return x(Qe,ee);if(C!=";"){if(C=="(")return Wi(ht,")","call",ee);if(C==".")return w(Dt,ee);if(C=="[")return w(ge("]"),_e,Ie("]"),ve,ee);if(M&&k=="as")return O.marked="keyword",w(Oe,ee);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),w($e)}}function Qe(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Qe):w(_e,et)}function et(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Qe)}function Nr(C){return me(O.stream,O.state),x(C=="{"?De:Te)}function Ue(C){return me(O.stream,O.state),x(C=="{"?De:ht)}function H(C){return function(k){return k=="."?w(C?j:re):k=="variable"&&M?w(Ui,C?ct:Ve):x(C?ht:Te)}}function re(C,k){if(k=="target")return O.marked="keyword",w(Ve)}function j(C,k){if(k=="target")return O.marked="keyword",w(ct)}function Ne(C){return C==":"?w(ve,De):x(Ve,Ie(";"),ve)}function Dt(C){if(C=="variable")return O.marked="property",w()}function Hr(C,k){if(C=="async")return O.marked="property",w(Hr);if(C=="variable"||O.style=="keyword"){if(O.marked="property",k=="get"||k=="set")return w(Ql);var G;return M&&O.state.fatArrowAt==O.stream.start&&(G=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+G[0].length),w(nr)}else{if(C=="number"||C=="string")return O.marked=v?"property":O.style+" property",w(nr);if(C=="jsonld-keyword")return w(nr);if(M&&ke(k))return O.marked="keyword",w(Hr);if(C=="[")return w(Te,ri,Ie("]"),nr);if(C=="spread")return w(ht,nr);if(k=="*")return O.marked="keyword",w(Hr);if(C==":")return x(nr)}}function Ql(C){return C!="variable"?x(nr):(O.marked="property",w(pr))}function nr(C){if(C==":")return w(ht);if(C=="(")return x(pr)}function at(C,k,G){function ee($e,Fe){if(G?G.indexOf($e)>-1:$e==","){var de=O.state.lexical;return de.info=="call"&&(de.pos=(de.pos||0)+1),w(function(It,lr){return It==k||lr==k?x():x(C)},ee)}return $e==k||Fe==k?w():G&&G.indexOf(";")>-1?x(C):w(Ie(k))}return function($e,Fe){return $e==k||Fe==k?w():x(C,ee)}}function Wi(C,k,G){for(var ee=3;ee<arguments.length;ee++)O.cc.push(arguments[ee]);return w(ge(k,G),at(C,k),ve)}function Kt(C){return C=="}"?w():x(De,Kt)}function ri(C,k){if(M){if(C==":")return w(Oe);if(k=="?")return w(ri)}}function Se(C,k){if(M&&(C==":"||k=="in"))return w(Oe)}function Tn(C){if(M&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?w(Te,Ft,Oe):w(Oe)}function Ft(C,k){if(k=="is")return O.marked="keyword",w()}function Oe(C,k){if(k=="keyof"||k=="typeof"||k=="infer"||k=="readonly")return O.marked="keyword",w(k=="typeof"?ht:Oe);if(C=="variable"||k=="void")return O.marked="type",w(or);if(k=="|"||k=="&")return w(Oe);if(C=="string"||C=="number"||C=="atom")return w(or);if(C=="[")return w(ge("]"),at(Oe,"]",","),ve,or);if(C=="{")return w(ge("}"),kn,ve,or);if(C=="(")return w(at(On,")"),ft,or);if(C=="<")return w(at(Oe,">"),Oe);if(C=="quasi")return x(Rr,or)}function ft(C){if(C=="=>")return w(Oe)}function kn(C){return C.match(/[\}\)\]]/)?w():C==","||C==";"?w(kn):x(Tt,kn)}function Tt(C,k){if(C=="variable"||O.style=="keyword")return O.marked="property",w(Tt);if(k=="?"||C=="number"||C=="string")return w(Tt);if(C==":")return w(Oe);if(C=="[")return w(Ie("variable"),Se,Ie("]"),Tt);if(C=="(")return x(ar,Tt);if(!C.match(/[;\}\)\],]/))return w()}function Rr(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Rr):w(Oe,_t)}function _t(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Rr)}function On(C,k){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||k=="?"?w(On):C==":"?w(Oe):C=="spread"?w(On):x(Oe)}function or(C,k){if(k=="<")return w(ge(">"),at(Oe,">"),ve,or);if(k=="|"||C=="."||k=="&")return w(Oe);if(C=="[")return w(Oe,Ie("]"),or);if(k=="extends"||k=="implements")return O.marked="keyword",w(Oe);if(k=="?")return w(Oe,Ie(":"),Oe)}function Ui(C,k){if(k=="<")return w(ge(">"),at(Oe,">"),ve,or)}function Ci(){return x(Oe,qa)}function qa(C,k){if(k=="=")return w(Oe)}function Mo(C,k){return k=="enum"?(O.marked="keyword",w(Vr)):x(Bt,ri,Fr,ko)}function Bt(C,k){if(M&&ke(k))return O.marked="keyword",w(Bt);if(C=="variable")return ne(k),w();if(C=="spread")return w(Bt);if(C=="[")return Wi(To,"]");if(C=="{")return Wi(Ka,"}")}function Ka(C,k){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(ne(k),w(Fr)):(C=="variable"&&(O.marked="property"),C=="spread"?w(Bt):C=="}"?x():C=="["?w(Te,Ie("]"),Ie(":"),Ka):w(Ie(":"),Bt,Fr))}function To(){return x(Bt,Fr)}function Fr(C,k){if(k=="=")return w(ht)}function ko(C){if(C==",")return w(Mo)}function Ya(C,k){if(C=="keyword b"&&k=="else")return w(ge("form","else"),De,ve)}function Xa(C,k){if(k=="await")return w(Xa);if(C=="(")return w(ge(")"),Oo,ve)}function Oo(C){return C=="var"?w(Mo,wi):C=="variable"?w(wi):x(wi)}function wi(C,k){return C==")"?w():C==";"?w(wi):k=="in"||k=="of"?(O.marked="keyword",w(Te,wi)):x(Te,wi)}function pr(C,k){if(k=="*")return O.marked="keyword",w(pr);if(C=="variable")return ne(k),w(pr);if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Tn,De,Be);if(M&&k=="<")return w(ge(">"),at(Ci,">"),ve,pr)}function ar(C,k){if(k=="*")return O.marked="keyword",w(ar);if(C=="variable")return ne(k),w(ar);if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Tn,Be);if(M&&k=="<")return w(ge(">"),at(Ci,">"),ve,ar)}function Ja(C,k){if(C=="keyword"||C=="variable")return O.marked="type",w(Ja);if(k=="<")return w(ge(">"),at(Ci,">"),ve)}function ii(C,k){return k=="@"&&w(Te,ii),C=="spread"?w(ii):M&&ke(k)?(O.marked="keyword",w(ii)):M&&C=="this"?w(ri,Fr):x(Bt,ri,Fr)}function $n(C,k){return C=="variable"?En(C,k):Cr(C,k)}function En(C,k){if(C=="variable")return ne(k),w(Cr)}function Cr(C,k){if(k=="<")return w(ge(">"),at(Ci,">"),ve,Cr);if(k=="extends"||k=="implements"||M&&C==",")return k=="implements"&&(O.marked="keyword"),w(M?Oe:Te,Cr);if(C=="{")return w(ge("}"),wr,ve)}function wr(C,k){if(C=="async"||C=="variable"&&(k=="static"||k=="get"||k=="set"||M&&ke(k))&&O.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return O.marked="keyword",w(wr);if(C=="variable"||O.style=="keyword")return O.marked="property",w(sr,wr);if(C=="number"||C=="string")return w(sr,wr);if(C=="[")return w(Te,ri,Ie("]"),sr,wr);if(k=="*")return O.marked="keyword",w(wr);if(M&&C=="(")return x(ar,wr);if(C==";"||C==",")return w(wr);if(C=="}")return w();if(k=="@")return w(Te,wr)}function sr(C,k){if(k=="!"||k=="?")return w(sr);if(C==":")return w(Oe,Fr);if(k=="=")return w(ht);var G=O.state.lexical.prev,ee=G&&G.info=="interface";return x(ee?ar:pr)}function $o(C,k){return k=="*"?(O.marked="keyword",w(Yt,Ie(";"))):k=="default"?(O.marked="keyword",w(Te,Ie(";"))):C=="{"?w(at(Eo,"}"),Yt,Ie(";")):x(De)}function Eo(C,k){if(k=="as")return O.marked="keyword",w(Ie("variable"));if(C=="variable")return x(ht,Eo)}function st(C){return C=="string"?w():C=="("?x(Te):C=="."?x(Ve):x(be,Br,Yt)}function be(C,k){return C=="{"?Wi(be,"}"):(C=="variable"&&ne(k),k=="*"&&(O.marked="keyword"),w(_o))}function Br(C){if(C==",")return w(be,Br)}function _o(C,k){if(k=="as")return O.marked="keyword",w(be)}function Yt(C,k){if(k=="from")return O.marked="keyword",w(Te)}function je(C){return C=="]"?w():x(at(ht,"]"))}function Vr(){return x(ge("form"),Bt,Ie("{"),ge("}"),at(ji,"}"),ve,ve)}function ji(){return x(Bt,Fr)}function Io(C,k){return C.lastType=="operator"||C.lastType==","||$.test(k.charAt(0))||/[,.]/.test(k.charAt(0))}function J(C,k,G){return k.tokenize==A&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(k.lastType)||k.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(G||0)))}return{startState:function(C){var k={tokenize:A,lastType:"sof",cc:[],lexical:new ie((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Re(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(k.globalVars=l.globalVars),k},token:function(C,k){if(C.sol()&&(k.lexical.hasOwnProperty("align")||(k.lexical.align=!1),k.indented=C.indentation(),me(C,k)),k.tokenize!=K&&C.eatSpace())return null;var G=k.tokenize(C,k);return oe=="comment"?G:(k.lastType=oe=="operator"&&(_=="++"||_=="--")?"incdec":oe,V(k,G,oe,_,C))},indent:function(C,k){if(C.tokenize==K||C.tokenize==ue)return i.Pass;if(C.tokenize!=A)return 0;var G=k&&k.charAt(0),ee=C.lexical,$e;if(!/^\s*else\b/.test(k))for(var Fe=C.cc.length-1;Fe>=0;--Fe){var de=C.cc[Fe];if(de==ve)ee=ee.prev;else if(de!=Ya&&de!=Be)break}for(;(ee.type=="stat"||ee.type=="form")&&(G=="}"||($e=C.cc[C.cc.length-1])&&($e==Ve||$e==ct)&&!/^[,\.=+\-*:?[\(]/.test(k));)ee=ee.prev;u&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var It=ee.type,lr=G==It;return It=="vardef"?ee.indented+(C.lastType=="operator"||C.lastType==","?ee.info.length+1:0):It=="form"&&G=="{"?ee.indented:It=="form"?ee.indented+d:It=="stat"?ee.indented+(Io(C,k)?u||d:0):ee.info=="switch"&&!lr&&l.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(k)?d:2*d):ee.align?ee.column+(lr?0:1):ee.indented+(lr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:v,jsonMode:m,expressionAllowed:J,skipExpression:function(C){V(C,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var EL=$L.exports,Qh={exports:{}},ef;function _L(){return ef||(ef=1,function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("css",function(ie,X){var V=X.inline;X.propertyKeywords||(X=i.resolveMode("text/css"));var O=ie.indentUnit,x=X.tokenHooks,w=X.documentTypes||{},U=X.mediaTypes||{},ne=X.mediaFeatures||{},ye=X.mediaValueKeywords||{},ke=X.propertyKeywords||{},Re=X.nonStandardPropertyKeywords||{},ot=X.fontProperties||{},Et=X.counterDescriptors||{},Ye=X.colorKeywords||{},Xe=X.valueKeywords||{},Be=X.allowNested,ge=X.lineComment,ve=X.supportsAtComponent===!0,Ie=ie.highlightNonStandardPropertyKeywords!==!1,De,Ae;function Te(H,re){return De=re,H}function ht(H,re){var j=H.next();if(x[j]){var Ne=x[j](H,re);if(Ne!==!1)return Ne}if(j=="@")return H.eatWhile(/[\w\\\-]/),Te("def",H.current());if(j=="="||(j=="~"||j=="|")&&H.eat("="))return Te(null,"compare");if(j=='"'||j=="'")return re.tokenize=qt(j),re.tokenize(H,re);if(j=="#")return H.eatWhile(/[\w\\\-]/),Te("atom","hash");if(j=="!")return H.match(/^\s*\w*/),Te("keyword","important");if(/\d/.test(j)||j=="."&&H.eat(/\d/))return H.eatWhile(/[\w.%]/),Te("number","unit");if(j==="-"){if(/[\d.]/.test(H.peek()))return H.eatWhile(/[\w.%]/),Te("number","unit");if(H.match(/^-[\w\\\-]*/))return H.eatWhile(/[\w\\\-]/),H.match(/^\s*:/,!1)?Te("variable-2","variable-definition"):Te("variable-2","variable");if(H.match(/^\w+-/))return Te("meta","meta")}else return/[,+>*\/]/.test(j)?Te(null,"select-op"):j=="."&&H.match(/^-?[_a-z][_a-z0-9-]*/i)?Te("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(j)?Te(null,j):H.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(H.current())&&(re.tokenize=ir),Te("variable callee","variable")):/[\w\\\-]/.test(j)?(H.eatWhile(/[\w\\\-]/),Te("property","word")):Te(null,null)}function qt(H){return function(re,j){for(var Ne=!1,Dt;(Dt=re.next())!=null;){if(Dt==H&&!Ne){H==")"&&re.backUp(1);break}Ne=!Ne&&Dt=="\\"}return(Dt==H||!Ne&&H!=")")&&(j.tokenize=null),Te("string","string")}}function ir(H,re){return H.next(),H.match(/^\s*[\"\')]/,!1)?re.tokenize=null:re.tokenize=qt(")"),Te(null,"(")}function _e(H,re,j){this.type=H,this.indent=re,this.prev=j}function Ve(H,re,j,Ne){return H.context=new _e(j,re.indentation()+(Ne===!1?0:O),H.context),j}function ct(H){return H.context.prev&&(H.context=H.context.prev),H.context.type}function Qe(H,re,j){return Ue[j.context.type](H,re,j)}function et(H,re,j,Ne){for(var Dt=Ne||1;Dt>0;Dt--)j.context=j.context.prev;return Qe(H,re,j)}function Nr(H){var re=H.current().toLowerCase();Xe.hasOwnProperty(re)?Ae="atom":Ye.hasOwnProperty(re)?Ae="keyword":Ae="variable"}var Ue={};return Ue.top=function(H,re,j){if(H=="{")return Ve(j,re,"block");if(H=="}"&&j.context.prev)return ct(j);if(ve&&/@component/i.test(H))return Ve(j,re,"atComponentBlock");if(/^@(-moz-)?document$/i.test(H))return Ve(j,re,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(H))return Ve(j,re,"atBlock");if(/^@(font-face|counter-style)/i.test(H))return j.stateArg=H,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(H))return"keyframes";if(H&&H.charAt(0)=="@")return Ve(j,re,"at");if(H=="hash")Ae="builtin";else if(H=="word")Ae="tag";else{if(H=="variable-definition")return"maybeprop";if(H=="interpolation")return Ve(j,re,"interpolation");if(H==":")return"pseudo";if(Be&&H=="(")return Ve(j,re,"parens")}return j.context.type},Ue.block=function(H,re,j){if(H=="word"){var Ne=re.current().toLowerCase();return ke.hasOwnProperty(Ne)?(Ae="property","maybeprop"):Re.hasOwnProperty(Ne)?(Ae=Ie?"string-2":"property","maybeprop"):Be?(Ae=re.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ae+=" error","maybeprop")}else return H=="meta"?"block":!Be&&(H=="hash"||H=="qualifier")?(Ae="error","block"):Ue.top(H,re,j)},Ue.maybeprop=function(H,re,j){return H==":"?Ve(j,re,"prop"):Qe(H,re,j)},Ue.prop=function(H,re,j){if(H==";")return ct(j);if(H=="{"&&Be)return Ve(j,re,"propBlock");if(H=="}"||H=="{")return et(H,re,j);if(H=="(")return Ve(j,re,"parens");if(H=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(re.current()))Ae+=" error";else if(H=="word")Nr(re);else if(H=="interpolation")return Ve(j,re,"interpolation");return"prop"},Ue.propBlock=function(H,re,j){return H=="}"?ct(j):H=="word"?(Ae="property","maybeprop"):j.context.type},Ue.parens=function(H,re,j){return H=="{"||H=="}"?et(H,re,j):H==")"?ct(j):H=="("?Ve(j,re,"parens"):H=="interpolation"?Ve(j,re,"interpolation"):(H=="word"&&Nr(re),"parens")},Ue.pseudo=function(H,re,j){return H=="meta"?"pseudo":H=="word"?(Ae="variable-3",j.context.type):Qe(H,re,j)},Ue.documentTypes=function(H,re,j){return H=="word"&&w.hasOwnProperty(re.current())?(Ae="tag",j.context.type):Ue.atBlock(H,re,j)},Ue.atBlock=function(H,re,j){if(H=="(")return Ve(j,re,"atBlock_parens");if(H=="}"||H==";")return et(H,re,j);if(H=="{")return ct(j)&&Ve(j,re,Be?"block":"top");if(H=="interpolation")return Ve(j,re,"interpolation");if(H=="word"){var Ne=re.current().toLowerCase();Ne=="only"||Ne=="not"||Ne=="and"||Ne=="or"?Ae="keyword":U.hasOwnProperty(Ne)?Ae="attribute":ne.hasOwnProperty(Ne)?Ae="property":ye.hasOwnProperty(Ne)?Ae="keyword":ke.hasOwnProperty(Ne)?Ae="property":Re.hasOwnProperty(Ne)?Ae=Ie?"string-2":"property":Xe.hasOwnProperty(Ne)?Ae="atom":Ye.hasOwnProperty(Ne)?Ae="keyword":Ae="error"}return j.context.type},Ue.atComponentBlock=function(H,re,j){return H=="}"?et(H,re,j):H=="{"?ct(j)&&Ve(j,re,Be?"block":"top",!1):(H=="word"&&(Ae="error"),j.context.type)},Ue.atBlock_parens=function(H,re,j){return H==")"?ct(j):H=="{"||H=="}"?et(H,re,j,2):Ue.atBlock(H,re,j)},Ue.restricted_atBlock_before=function(H,re,j){return H=="{"?Ve(j,re,"restricted_atBlock"):H=="word"&&j.stateArg=="@counter-style"?(Ae="variable","restricted_atBlock_before"):Qe(H,re,j)},Ue.restricted_atBlock=function(H,re,j){return H=="}"?(j.stateArg=null,ct(j)):H=="word"?(j.stateArg=="@font-face"&&!ot.hasOwnProperty(re.current().toLowerCase())||j.stateArg=="@counter-style"&&!Et.hasOwnProperty(re.current().toLowerCase())?Ae="error":Ae="property","maybeprop"):"restricted_atBlock"},Ue.keyframes=function(H,re,j){return H=="word"?(Ae="variable","keyframes"):H=="{"?Ve(j,re,"top"):Qe(H,re,j)},Ue.at=function(H,re,j){return H==";"?ct(j):H=="{"||H=="}"?et(H,re,j):(H=="word"?Ae="tag":H=="hash"&&(Ae="builtin"),"at")},Ue.interpolation=function(H,re,j){return H=="}"?ct(j):H=="{"||H==";"?et(H,re,j):(H=="word"?Ae="variable":H!="variable"&&H!="("&&H!=")"&&(Ae="error"),"interpolation")},{startState:function(H){return{tokenize:null,state:V?"block":"top",stateArg:null,context:new _e(V?"block":"top",H||0,null)}},token:function(H,re){if(!re.tokenize&&H.eatSpace())return null;var j=(re.tokenize||ht)(H,re);return j&&typeof j=="object"&&(De=j[1],j=j[0]),Ae=j,De!="comment"&&(re.state=Ue[re.state](De,H,re)),Ae},indent:function(H,re){var j=H.context,Ne=re&&re.charAt(0),Dt=j.indent;return j.type=="prop"&&(Ne=="}"||Ne==")")&&(j=j.prev),j.prev&&(Ne=="}"&&(j.type=="block"||j.type=="top"||j.type=="interpolation"||j.type=="restricted_atBlock")?(j=j.prev,Dt=j.indent):(Ne==")"&&(j.type=="parens"||j.type=="atBlock_parens")||Ne=="{"&&(j.type=="at"||j.type=="atBlock"))&&(Dt=Math.max(0,j.indent-O))),Dt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ge,fold:"brace"}});function o(ie){for(var X={},V=0;V<ie.length;++V)X[ie[V].toLowerCase()]=!0;return X}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],b=o(m),M=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],L=o(M),T=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],$=o(T),N=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],Y=o(N),oe=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=o(oe),D=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],A=o(D),B=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],K=o(B),ue=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],le=o(ue),me=l.concat(u).concat(m).concat(M).concat(T).concat(N).concat(B).concat(ue);i.registerHelper("hintWords","css",me);function Me(ie,X){for(var V=!1,O;(O=ie.next())!=null;){if(V&&O=="/"){X.tokenize=null;break}V=O=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,tokenHooks:{"/":function(ie,X){return ie.eat("*")?(X.tokenize=Me,Me(ie,X)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,X){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(X.tokenize=Me,Me(ie,X)):["operator","operator"]},":":function(ie){return ie.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ie){return ie.match(/^[\w-]+/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ie){return ie.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,X){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(X.tokenize=Me,Me(ie,X)):["operator","operator"]},"@":function(ie){return ie.eat("{")?[null,"interpolation"]:ie.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ie.eatWhile(/[\w\\\-]/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:b,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,supportsAtComponent:!0,tokenHooks:{"/":function(ie,X){return ie.eat("*")?(X.tokenize=Me,Me(ie,X)):!1}},name:"css",helperType:"gss"})})}()),Qh.exports}(function(n,e){(function(i){i(Pr,OL,EL,_L())})(function(i){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function l(L,T,$){var N=L.current(),Y=N.search(T);return Y>-1?L.backUp(N.length-Y):N.match(/<\/?$/)&&(L.backUp(N.length),L.match(T,!1)||L.match(N)),$}var d={};function u(L){var T=d[L];return T||(d[L]=new RegExp("\\s+"+L+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(L,T){var $=L.match(u(T));return $?/^\s*(.*?)\s*$/.exec($[2])[1]:""}function m(L,T){return new RegExp((T?"^":"")+"</s*"+L+"s*>","i")}function b(L,T){for(var $ in L)for(var N=T[$]||(T[$]=[]),Y=L[$],oe=Y.length-1;oe>=0;oe--)N.unshift(Y[oe])}function M(L,T){for(var $=0;$<L.length;$++){var N=L[$];if(!N[0]||N[1].test(v(T,N[0])))return N[2]}}i.defineMode("htmlmixed",function(L,T){var $=i.getMode(L,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),N={},Y=T&&T.tags,oe=T&&T.scriptTypes;if(b(o,N),Y&&b(Y,N),oe)for(var _=oe.length-1;_>=0;_--)N.script.unshift(["type",oe[_].matches,oe[_].mode]);function D(A,B){var K=$.token(A,B.htmlState),ue=/\btag\b/.test(K),le;if(ue&&!/[<>\s\/]/.test(A.current())&&(le=B.htmlState.tagName&&B.htmlState.tagName.toLowerCase())&&N.hasOwnProperty(le))B.inTag=le+" ";else if(B.inTag&&ue&&/>$/.test(A.current())){var me=/^([\S]+) (.*)/.exec(B.inTag);B.inTag=null;var Me=A.current()==">"&&M(N[me[1]],me[2]),ie=i.getMode(L,Me),X=m(me[1],!0),V=m(me[1],!1);B.token=function(O,x){return O.match(X,!1)?(x.token=D,x.localState=x.localMode=null,null):l(O,V,x.localMode.token(O,x.localState))},B.localMode=ie,B.localState=i.startState(ie,$.indent(B.htmlState,"",""))}else B.inTag&&(B.inTag+=A.current(),A.eol()&&(B.inTag+=" "));return K}return{startState:function(){var A=i.startState($);return{token:D,inTag:null,localMode:null,localState:null,htmlState:A}},copyState:function(A){var B;return A.localState&&(B=i.copyState(A.localMode,A.localState)),{token:A.token,inTag:A.inTag,localMode:A.localMode,localState:B,htmlState:i.copyState($,A.htmlState)}},token:function(A,B){return B.token(A,B)},indent:function(A,B,K){return!A.localMode||/^\s*<\//.test(B)?$.indent(A.htmlState,B,K):A.localMode.indent?A.localMode.indent(A.localState,B,K):i.Pass},innerMode:function(A){return{state:A.localState||A.htmlState,mode:A.localMode||$}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(L){return parseFloat(L).toString()===L}function v(L){return function(T,$){for(var N=!1,Y;(Y=T.next())!=null&&!(Y==L&&!N);)N=!N&&Y=="\\";return N||($.tokenize=M),"string"}}function m(L){return function(T,$){var N="operator";return L=="+"?N+=" positive":L=="-"?N+=" negative":L=="|"?T.eat(/\|/):L=="&"?T.eat(/\&/):L=="^"&&(N+=" boost"),$.tokenize=M,N}}function b(L){return function(T,$){for(var N=L;(L=T.peek())&&L.match(o)!=null;)N+=T.next();return $.tokenize=M,d.test(N)?"operator":u(N)?"number":T.peek()==":"?"field":"string"}}function M(L,T){var $=L.next();return $=='"'?T.tokenize=v($):l.test($)?T.tokenize=m($):o.test($)&&(T.tokenize=b($)),T.tokenize!=M?T.tokenize(L,T):null}return{startState:function(){return{tokenize:M}},token:function(L,T){return L.eatSpace()?null:T.tokenize(L,T)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineOption("placeholder","",function(b,M,L){var T=L&&L!=i.Init;if(M&&!T)b.on("blur",u),b.on("change",v),b.on("swapDoc",v),i.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){d(b)}),v(b);else if(!M&&T){b.off("blur",u),b.off("change",v),b.off("swapDoc",v),i.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),o(b);var $=b.getWrapperElement();$.className=$.className.replace(" CodeMirror-empty","")}M&&!b.hasFocus()&&u(b)});function o(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function l(b){o(b);var M=b.state.placeholder=document.createElement("pre");M.style.cssText="height: 0; overflow: visible",M.style.direction=b.getOption("direction"),M.className="CodeMirror-placeholder CodeMirror-line-like";var L=b.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),M.appendChild(L),b.display.lineSpace.insertBefore(M,b.display.lineSpace.firstChild)}function d(b){setTimeout(function(){var M=!1;if(b.lineCount()==1){var L=b.getInputField();M=L.nodeName=="TEXTAREA"?!b.getLine(0).length:!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)}M?l(b):o(b)},20)}function u(b){m(b)&&l(b)}function v(b){var M=b.getWrapperElement(),L=m(b);M.className=M.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?l(b):o(b)}function m(b){return b.lineCount()===1&&b.getLine(0)===""}})})();(function(n,e){(function(i){i(Pr)})(function(i){var o="CodeMirror-hint",l="CodeMirror-hint-active";i.showHint=function(_,D,A){if(!D)return _.showHint(A);A&&A.async&&(D.async=!0);var B={hint:D};if(A)for(var K in A)B[K]=A[K];return _.showHint(B)},i.defineExtension("showHint",function(_){_=m(this,this.getCursor("start"),_);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!_.hint.supportsSelection)return;for(var A=0;A<D.length;A++)if(D[A].head.line!=D[A].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new d(this,_);B.options.hint&&(i.signal(this,"startCompletion",this),B.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(_,D){if(this.cm=_,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var A=this;_.on("cursorActivity",this.activityFunc=function(){A.cursorActivity()})}}var u=window.requestAnimationFrame||function(_){return setTimeout(_,1e3/60)},v=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(_,D){var A=_.list[D],B=this;this.cm.operation(function(){A.hint?A.hint(B.cm,_,A):B.cm.replaceRange(b(A),A.from||_.from,A.to||_.to,"complete"),i.signal(_,"pick",A),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(v(this.debounce),this.debounce=0);var _=this.startPos;this.data&&(_=this.data.from);var D=this.cm.getCursor(),A=this.cm.getLine(D.line);if(D.line!=this.startPos.line||A.length-D.ch!=this.startLen-this.startPos.ch||D.ch<_.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(A.charAt(D.ch-1)))this.close();else{var B=this;this.debounce=u(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(_){if(this.tick!=null){var D=this,A=++this.tick;N(this.options.hint,this.cm,this.options,function(B){D.tick==A&&D.finishUpdate(B,_)})}},finishUpdate:function(_,D){this.data&&i.signal(this.data,"update");var A=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=_,_&&_.list.length&&(A&&_.list.length==1?this.pick(_,0):(this.widget=new T(this,_),i.signal(_,"shown")))}};function m(_,D,A){var B=_.options.hintOptions,K={};for(var ue in oe)K[ue]=oe[ue];if(B)for(var ue in B)B[ue]!==void 0&&(K[ue]=B[ue]);if(A)for(var ue in A)A[ue]!==void 0&&(K[ue]=A[ue]);return K.hint.resolve&&(K.hint=K.hint.resolve(_,D)),K}function b(_){return typeof _=="string"?_:_.text}function M(_,D){var A={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},B=/Mac/.test(navigator.platform);B&&(A["Ctrl-P"]=function(){D.moveFocus(-1)},A["Ctrl-N"]=function(){D.moveFocus(1)});var K=_.options.customKeys,ue=K?{}:A;function le(ie,X){var V;typeof X!="string"?V=function(O){return X(O,D)}:A.hasOwnProperty(X)?V=A[X]:V=X,ue[ie]=V}if(K)for(var me in K)K.hasOwnProperty(me)&&le(me,K[me]);var Me=_.options.extraKeys;if(Me)for(var me in Me)Me.hasOwnProperty(me)&&le(me,Me[me]);return ue}function L(_,D){for(;D&&D!=_;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==_)return D;D=D.parentNode}}function T(_,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=_,this.data=D,this.picked=!1;var A=this,B=_.cm,K=B.getInputField().ownerDocument,ue=K.defaultView||K.parentWindow,le=this.hints=K.createElement("ul");le.setAttribute("role","listbox"),le.setAttribute("aria-expanded","true"),le.id=this.id;var me=_.cm.options.theme;le.className="CodeMirror-hints "+me,this.selectedHint=D.selectedHint||0;for(var Me=D.list,ie=0;ie<Me.length;++ie){var X=le.appendChild(K.createElement("li")),V=Me[ie],O=o+(ie!=this.selectedHint?"":" "+l);V.className!=null&&(O=V.className+" "+O),X.className=O,ie==this.selectedHint&&X.setAttribute("aria-selected","true"),X.id=this.id+"-"+ie,X.setAttribute("role","option"),V.render?V.render(X,D,V):X.appendChild(K.createTextNode(V.displayText||b(V))),X.hintId=ie}var x=_.options.container||K.body,w=B.cursorCoords(_.options.alignWithWord?D.from:null),U=w.left,ne=w.bottom,ye=!0,ke=0,Re=0;if(x!==K.body){var ot=["absolute","relative","fixed"].indexOf(ue.getComputedStyle(x).position)!==-1,Et=ot?x:x.offsetParent,Ye=Et.getBoundingClientRect(),Xe=K.body.getBoundingClientRect();ke=Ye.left-Xe.left-Et.scrollLeft,Re=Ye.top-Xe.top-Et.scrollTop}le.style.left=U-ke+"px",le.style.top=ne-Re+"px";var Be=ue.innerWidth||Math.max(K.body.offsetWidth,K.documentElement.offsetWidth),ge=ue.innerHeight||Math.max(K.body.offsetHeight,K.documentElement.offsetHeight);x.appendChild(le),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ve=_.options.moveOnOverlap?le.getBoundingClientRect():new DOMRect,Ie=_.options.paddingForScrollbar?le.scrollHeight>le.clientHeight+1:!1,De;setTimeout(function(){De=B.getScrollInfo()});var Ae=ve.bottom-ge;if(Ae>0){var Te=ve.bottom-ve.top,ht=w.top-(w.bottom-ve.top);if(ht-Te>0)le.style.top=(ne=w.top-Te-Re)+"px",ye=!1;else if(Te>ge){le.style.height=ge-5+"px",le.style.top=(ne=w.bottom-ve.top-Re)+"px";var qt=B.getCursor();D.from.ch!=qt.ch&&(w=B.cursorCoords(qt),le.style.left=(U=w.left-ke)+"px",ve=le.getBoundingClientRect())}}var ir=ve.right-Be;if(Ie&&(ir+=B.display.nativeBarWidth),ir>0&&(ve.right-ve.left>Be&&(le.style.width=Be-5+"px",ir-=ve.right-ve.left-Be),le.style.left=(U=w.left-ir-ke)+"px"),Ie)for(var _e=le.firstChild;_e;_e=_e.nextSibling)_e.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=M(_,{moveFocus:function(Qe,et){A.changeActive(A.selectedHint+Qe,et)},setFocus:function(Qe){A.changeActive(Qe)},menuSize:function(){return A.screenAmount()},length:Me.length,close:function(){_.close()},pick:function(){A.pick()},data:D})),_.options.closeOnUnfocus){var Ve;B.on("blur",this.onBlur=function(){Ve=setTimeout(function(){_.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Ve)})}B.on("scroll",this.onScroll=function(){var Qe=B.getScrollInfo(),et=B.getWrapperElement().getBoundingClientRect();De||(De=B.getScrollInfo());var Nr=ne+De.top-Qe.top,Ue=Nr-(ue.pageYOffset||(K.documentElement||K.body).scrollTop);if(ye||(Ue+=le.offsetHeight),Ue<=et.top||Ue>=et.bottom)return _.close();le.style.top=Nr+"px",le.style.left=U+De.left-Qe.left+"px"}),i.on(le,"dblclick",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),A.pick())}),i.on(le,"click",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),_.options.completeOnSingleClick&&A.pick())}),i.on(le,"mousedown",function(){setTimeout(function(){B.focus()},20)});var ct=this.getSelectedHintRange();return(ct.from!==0||ct.to!==0)&&this.scrollToActive(),i.signal(D,"select",Me[this.selectedHint],le.childNodes[this.selectedHint]),!0}T.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var _=this.completion.cm.getInputField();_.removeAttribute("aria-activedescendant"),_.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var _=this;this.keyMap={Enter:function(){_.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(_,D){if(_>=this.data.list.length?_=D?this.data.list.length-1:0:_<0&&(_=D?0:this.data.list.length-1),this.selectedHint!=_){var A=this.hints.childNodes[this.selectedHint];A&&(A.className=A.className.replace(" "+l,""),A.removeAttribute("aria-selected")),A=this.hints.childNodes[this.selectedHint=_],A.className+=" "+l,A.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",A.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],A)}},scrollToActive:function(){var _=this.getSelectedHintRange(),D=this.hints.childNodes[_.from],A=this.hints.childNodes[_.to],B=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-B.offsetTop:A.offsetTop+A.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=A.offsetTop+A.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var _=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-_),to:Math.min(this.data.list.length-1,this.selectedHint+_)}}};function $(_,D){if(!_.somethingSelected())return D;for(var A=[],B=0;B<D.length;B++)D[B].supportsSelection&&A.push(D[B]);return A}function N(_,D,A,B){if(_.async)_(D,B,A);else{var K=_(D,A);K&&K.then?K.then(B):B(K)}}function Y(_,D){var A=_.getHelpers(D,"hint"),B;if(A.length){var K=function(ue,le,me){var Me=$(ue,A);function ie(X){if(X==Me.length)return le(null);N(Me[X],ue,me,function(V){V&&V.list.length>0?le(V):ie(X+1)})}ie(0)};return K.async=!0,K.supportsSelection=!0,K}else return(B=_.getHelper(_.getCursor(),"hintWords"))?function(ue){return i.hint.fromList(ue,{words:B})}:i.hint.anyword?function(ue,le){return i.hint.anyword(ue,le)}:function(){}}i.registerHelper("hint","auto",{resolve:Y}),i.registerHelper("hint","fromList",function(_,D){var A=_.getCursor(),B=_.getTokenAt(A),K,ue=i.Pos(A.line,B.start),le=A;B.start<A.ch&&/\w/.test(B.string.charAt(A.ch-B.start-1))?K=B.string.substr(0,A.ch-B.start):(K="",ue=A);for(var me=[],Me=0;Me<D.words.length;Me++){var ie=D.words[Me];ie.slice(0,K.length)==K&&me.push(ie)}if(me.length)return{list:me,from:ue,to:le}}),i.commands.autocomplete=i.showHint;var oe={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})})();(function(n,e){(function(i){i(Pr)})(function(i){var o=i.Pos;function l(_,D){for(var A=0,B=_.length;A<B;++A)D(_[A])}function d(_,D){if(!Array.prototype.indexOf){for(var A=_.length;A--;)if(_[A]===D)return!0;return!1}return _.indexOf(D)!=-1}function u(_,D,A,B){var K=_.getCursor(),ue=A(_,K);if(!/\b(?:string|comment)\b/.test(ue.type)){var le=i.innerMode(_.getMode(),ue.state);if(le.mode.helperType!=="json"){ue.state=le.state,/^[\w$_]*$/.test(ue.string)?ue.end>K.ch&&(ue.end=K.ch,ue.string=ue.string.slice(0,K.ch-ue.start)):ue={start:K.ch,end:K.ch,string:"",state:ue.state,type:ue.string=="."?"property":null};for(var me=ue;me.type=="property";){if(me=A(_,o(K.line,me.start)),me.string!=".")return;if(me=A(_,o(K.line,me.start)),!Me)var Me=[];Me.push(me)}return{list:oe(ue,Me,D,B),from:o(K.line,ue.start),to:o(K.line,ue.end)}}}}function v(_,D){return u(_,$,function(A,B){return A.getTokenAt(B)},D)}i.registerHelper("hint","javascript",v);function m(_,D){var A=_.getTokenAt(D);return D.ch==A.start+1&&A.string.charAt(0)=="."?(A.end=A.start,A.string=".",A.type="property"):/^\.[\w$_]*$/.test(A.string)&&(A.type="property",A.start++,A.string=A.string.replace(/\./,"")),A}function b(_,D){return u(_,N,m,D)}i.registerHelper("hint","coffeescript",b);var M="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),L="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),T="prototype apply call bind".split(" "),$="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),N="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function Y(_,D){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var A in _)D(A);else for(var B=_;B;B=Object.getPrototypeOf(B))Object.getOwnPropertyNames(B).forEach(D)}function oe(_,D,A,B){var K=[],ue=_.string,le=B&&B.globalScope||window;function me(w){w.lastIndexOf(ue,0)==0&&!d(K,w)&&K.push(w)}function Me(w){typeof w=="string"?l(M,me):w instanceof Array?l(L,me):w instanceof Function&&l(T,me),Y(w,me)}if(D&&D.length){var ie=D.pop(),X;for(ie.type&&ie.type.indexOf("variable")===0?(B&&B.additionalContext&&(X=B.additionalContext[ie.string]),(!B||B.useGlobalScope!==!1)&&(X=X||le[ie.string])):ie.type=="string"?X="":ie.type=="atom"?X=1:ie.type=="function"&&(le.jQuery!=null&&(ie.string=="$"||ie.string=="jQuery")&&typeof le.jQuery=="function"?X=le.jQuery():le._!=null&&ie.string=="_"&&typeof le._=="function"&&(X=le._()));X!=null&&D.length;)X=X[D.pop().string];X!=null&&Me(X)}else{for(var V=_.state.localVars;V;V=V.next)me(V.name);for(var O=_.state.context;O;O=O.prev)for(var V=O.vars;V;V=V.next)me(V.name);for(var V=_.state.globalVars;V;V=V.next)me(V.name);if(B&&B.additionalContext!=null)for(var x in B.additionalContext)me(x);(!B||B.useGlobalScope!==!1)&&Me(le),l(A,me)}return K}})})();var IL=Object.defineProperty,AL=Object.getOwnPropertyDescriptor,Bi=(n,e,i,o)=>{for(var l=o>1?void 0:o?AL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&IL(e,i,l),l};Di.defineMode("nunjucks",(n,e)=>Di.overlayMode(Di.getMode(n,e.backdrop||"text/html"),Di.getMode(n,"jinja2")));const Up=ce("input-code"),PL=["json","nunjucks","javascript","solr"],tf={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends rr{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1,this.autocompleteList=[],this.singleLine=!1,this.boundHandleEditorMouseDown=this.handleEditorMouseDown.bind(this),this.changeHandler=e=>{this.value=e.getValue(),this.dispatchChange()}}atSignHint(e,i){const o=e.getCursor(),l=e.getLine(o.line),d=e.getTokenAt(o),u=i.fromAtTrigger||!1,v=i.fromGeneralTyping||!1;let m,b="";if(u){let T=-1;for(let $=o.ch-1;$>=0;$--)if(l.charAt($)==="@"){T=$;break}if(T===-1&&d.string.startsWith("@")&&d.start<o.ch&&(T=d.start),T!==-1)m=Di.Pos(o.line,T),b=l.substring(T+1,o.ch);else return null}else if(v){let T=o.ch;for(;T>0&&l.charAt(T-1).match(exports.InputCode.AUTOCOMPLETE_REGEX);)T--;if(b=l.substring(T,o.ch),m=Di.Pos(o.line,T),b.length===0||b==="."&&(T===0||!l.charAt(T-1).match(/\w/)))return null}else return null;const L=(i.words||this.autocompleteList||[]).filter(T=>T.toLowerCase().startsWith(b.toLowerCase())).map(T=>({text:T,displayText:T}));return L.length>0?{list:L,from:m,to:Di.Pos(o.line,o.ch)}:null}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e)}updated(e){super.updated(e);const i=this.disabled||this.readonly;if(this.value!==this.editorValue&&(this.editorValue=this.value||""),this.editor&&i!==this.editor.isReadOnly()&&this.editor.setOption("readOnly",this.disabled?"nocursor":this.readonly),e.get("mode")&&this.editor&&(this.editor.setOption("mode",tf[this.mode]),this.editor.refresh()),e.has("autocompleteList")&&this.editor){const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};this.editor.setOption("hintOptions",o)}this.editor&&(e.has("height")||e.has("hideLineNumbers"))&&(this.updateEditorSize(),this.editor.refresh()),e.has("singleLine")&&this.editor&&(this.editor.setOption("lineNumbers",!this.hideLineNumbers&&!this.singleLine),this.updateEditorSize(),this.editor.refresh())}updateEditorSize(){if(this.editor){const e=this.singleLine?"36px":`${24*this.height}px`;this.editor.setSize(null,e)}}handleEditorMouseDown(){this.editor&&!this.editor.hasFocus()&&this.editor.focus()}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");if(e&&this.shadowRoot){this.editor=Di.fromTextArea(e,{mode:tf[this.mode],lineNumbers:!this.hideLineNumbers&&!this.singleLine,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.value!==void 0&&(this.editorValue=this.value);const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1};this.editor.setOption("hintOptions",o),this.updateEditorSize(),this.editor.on("change",this.changeHandler),this.editor.getWrapperElement().addEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.on("beforeChange",(u,v)=>{this.singleLine&&v.text.some(m=>/\n/.test(m))&&v.cancel()});const d={Tab:u=>{const v=Array((u.getOption("indentUnit")||0)+1).join(" ");u.replaceSelection(v)}};this.singleLine&&(d.Enter=()=>{}),this.editor.setOption("extraKeys",d),this.editor.on("inputRead",(u,v)=>{if(u.state.completionActive)return;const m=v.text&&v.text[0],b=u.getCursor(),M=u.getLine(b.line);let L=!1;const T={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};if(m==="@")T.fromAtTrigger=!0,L=!0;else if(m&&m.match(exports.InputCode.AUTOCOMPLETE_REGEX)&&this.autocompleteList.length>0){if(m==="."&&(b.ch<=1||!M.charAt(b.ch-2).match(/\w/)))return;let $=b.ch;for(;$>0&&M.charAt($-1).match(exports.InputCode.AUTOCOMPLETE_REGEX);)$--;const N=M.substring($,b.ch);if(N&&N.length>=1){if(N==="."&&($===0||!M.charAt($-1).match(/\w/)))return;this.autocompleteList.some(oe=>oe.toLowerCase().startsWith(N.toLowerCase()))&&(T.fromGeneralTyping=!0,L=!0)}}if(L){u.setOption("hintOptions",T);const $=T.fromAtTrigger?50:0;setTimeout(()=>{u.hasFocus()&&u.execCommand("autocomplete")},$)}}),setTimeout(()=>{var u;return(u=this.editor)==null?void 0:u.refresh()},0)}}disconnectedCallback(){if(super.disconnectedCallback(),this.editor){const e=this.editor.getWrapperElement();e.removeEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.off("change",this.changeHandler),e&&e.remove&&e.remove(),this.editor=void 0}}renderInput(){return F`
3094
3094
  <textarea class="editor" placeholder="${He(this.placeholder)}">
3095
3095
  ${this.value}</textarea
3096
3096
  >
3097
3097
  `}};exports.InputCode.styles=[Q`
3098
- ${qr(Up)}
3098
+ ${qr(Wp)}
3099
3099
 
3100
3100
  :host {
3101
3101
  display: block;
@@ -3167,7 +3167,7 @@ ${this.value}</textarea
3167
3167
  color: var(--brz-color-text-placeholder);
3168
3168
  letter-spacing: 0;
3169
3169
  }
3170
- `,OL];exports.InputCode.AUTOCOMPLETE_REGEX=/[\w$.]/;Bi([E()],exports.InputCode.prototype,"mode",2);Bi([E({reflect:!0})],exports.InputCode.prototype,"size",2);Bi([E({type:Number})],exports.InputCode.prototype,"height",2);Bi([E({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Bi([E({type:Array,attribute:"autocomplete-list"})],exports.InputCode.prototype,"autocompleteList",2);Bi([E({type:Boolean,attribute:"single-line",reflect:!0})],exports.InputCode.prototype,"singleLine",2);Bi([Ce()],exports.InputCode.prototype,"editor",2);exports.InputCode=Bi([W(jp)],exports.InputCode);var HL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,Ha=(n,e,i,o)=>{for(var l=o>1?void 0:o?RL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&HL(e,i,l),l};const Gp=ce("input-select");exports.InputSelect=class extends bt{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}updated(e){var i,o;if((i=super.updated)==null||i.call(this,e),e.has("valueLabel")&&this.canSearch){const l=this.renderRoot.querySelector("#selectSearch");l&&(l.value=(o=this.valueLabel)!=null?o:"")}}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch(),this.setQueryInputValue()}handleSelect(e){this.setValue(e.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(e=>{e.selected=this.value===e.value})}renderReferenceElement(){var e;return this.applySelectedStatusToChildren(),this.controlled||this.search(),F`
3170
+ `,TL];exports.InputCode.AUTOCOMPLETE_REGEX=/[\w$.]/;Bi([E()],exports.InputCode.prototype,"mode",2);Bi([E({reflect:!0})],exports.InputCode.prototype,"size",2);Bi([E({type:Number})],exports.InputCode.prototype,"height",2);Bi([E({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Bi([E({type:Array,attribute:"autocomplete-list"})],exports.InputCode.prototype,"autocompleteList",2);Bi([E({type:Boolean,attribute:"single-line",reflect:!0})],exports.InputCode.prototype,"singleLine",2);Bi([Ce()],exports.InputCode.prototype,"editor",2);exports.InputCode=Bi([W(Up)],exports.InputCode);var DL=Object.defineProperty,NL=Object.getOwnPropertyDescriptor,Ha=(n,e,i,o)=>{for(var l=o>1?void 0:o?NL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&DL(e,i,l),l};const jp=ce("input-select");exports.InputSelect=class extends bt{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}updated(e){var i,o;if((i=super.updated)==null||i.call(this,e),e.has("valueLabel")&&this.canSearch){const l=this.renderRoot.querySelector("#selectSearch");l&&(l.value=(o=this.valueLabel)!=null?o:"")}}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch(),this.setQueryInputValue()}handleSelect(e){this.setValue(e.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(e=>{e.selected=this.value===e.value})}renderReferenceElement(){var e;return this.applySelectedStatusToChildren(),this.controlled||this.search(),F`
3171
3171
  <button
3172
3172
  type="button"
3173
3173
  class="wrapper"
@@ -3205,7 +3205,7 @@ ${this.value}</textarea
3205
3205
  `}renderDropdownContent(){return F`
3206
3206
  ${!this.controlled&&!this.hasQueryResults?this.renderSearchMessage():null}
3207
3207
  ${this.isDataDriven?this.renderOptionsData():F` <slot slot="options"></slot> `}
3208
- `}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===Ta)return;if(!e||e===((d=this.valueLabel)==null?void 0:d.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${Mc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${Mc()}`}))]:[]}disconnectedCallback(){var e;(e=this.selectedOptionObserver)==null||e.disconnect(),super.disconnectedCallback()}findItem(e){var i;return((i=this.getItems())==null?void 0:i[0])instanceof exports.MenuItem?this.optionElements.find(o=>o.value===e):this.innerOptions.find(o=>o.value===e)}syncValueLabel(e){var o;(o=this.selectedOptionObserver)==null||o.disconnect();const i=this.findItem(e);this.valueLabel=this.getItemLabel(i),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&i instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...bt.styles,Q`
3208
+ `}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===Ta)return;if(!e||e===((d=this.valueLabel)==null?void 0:d.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${Sc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${Sc()}`}))]:[]}disconnectedCallback(){var e;(e=this.selectedOptionObserver)==null||e.disconnect(),super.disconnectedCallback()}findItem(e){var i;return((i=this.getItems())==null?void 0:i[0])instanceof exports.MenuItem?this.optionElements.find(o=>o.value===e):this.innerOptions.find(o=>o.value===e)}syncValueLabel(e){var o;(o=this.selectedOptionObserver)==null||o.disconnect();const i=this.findItem(e);this.valueLabel=this.getItemLabel(i),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&i instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...bt.styles,Q`
3209
3209
  input {
3210
3210
  text-overflow: ellipsis;
3211
3211
  }
@@ -3236,7 +3236,7 @@ ${this.value}</textarea
3236
3236
  .placeholder {
3237
3237
  color: var(--input-placeholder-font-color);
3238
3238
  }
3239
- `];Ha([E({type:String})],exports.InputSelect.prototype,"value",2);Ha([Ce()],exports.InputSelect.prototype,"query",2);Ha([Ce()],exports.InputSelect.prototype,"valueLabel",2);Ha([Ce()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Ha([W(Gp)],exports.InputSelect);var FL=Object.defineProperty,BL=Object.getOwnPropertyDescriptor,Dr=(n,e,i,o)=>{for(var l=o>1?void 0:o?BL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&FL(e,i,l),l};const qp=ce("lozenge"),VL=["neutral","green","orange","red","cyan","purple","sapphire"],ZL=["solid","subtle","border"],WL=["small","medium","large"];class Kp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends ze{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(e){e.stopPropagation(),this.dispatchEvent(new Kp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var e;return this.updateComplete.then(()=>this.checkOverflow()),F`
3239
+ `];Ha([E({type:String})],exports.InputSelect.prototype,"value",2);Ha([Ce()],exports.InputSelect.prototype,"query",2);Ha([Ce()],exports.InputSelect.prototype,"valueLabel",2);Ha([Ce()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Ha([W(jp)],exports.InputSelect);var HL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,Dr=(n,e,i,o)=>{for(var l=o>1?void 0:o?RL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&HL(e,i,l),l};const Gp=ce("lozenge"),FL=["neutral","green","orange","red","cyan","purple","sapphire"],BL=["solid","subtle","border"],VL=["small","medium","large"];class qp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends ze{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(e){e.stopPropagation(),this.dispatchEvent(new qp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var e;return this.updateComplete.then(()=>this.checkOverflow()),F`
3240
3240
  <brz-tooltip
3241
3241
  content=${(e=this.defaultSlot[0])==null?void 0:e.textContent}
3242
3242
  ?disabled=${!this.isOverflowing}
@@ -3388,7 +3388,7 @@ ${this.value}</textarea
3388
3388
  margin-right: var(--brz-spacing-2);
3389
3389
  }
3390
3390
 
3391
- ${a2(".close",Q`
3391
+ ${n2(".close",Q`
3392
3392
  margin-right: calc(0px - var(--brz-spacing-1));
3393
3393
  `)}
3394
3394
 
@@ -3406,7 +3406,7 @@ ${this.value}</textarea
3406
3406
  color: var(--brz-color-neutral-550);
3407
3407
  cursor: unset;
3408
3408
  }
3409
- `;Dr([E({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Dr([E({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Dr([E({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Dr([E({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Dr([E({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Dr([E({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Dr([E({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Dr([Xc()],exports.Lozenge.prototype,"defaultSlot",2);Dr([g7(".message")],exports.Lozenge.prototype,"message",2);Dr([Ce()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Dr([W(qp)],exports.Lozenge);var UL=Object.defineProperty,jL=Object.getOwnPropertyDescriptor,Ra=(n,e,i,o)=>{for(var l=o>1?void 0:o?jL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&UL(e,i,l),l};const Yp=ce("input-multiselect");exports.InputMultiselect=class extends bt{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(e){super.updated(e),this.dropdown&&(this.dropdown.multiselect=!0),(e.has("value")||e.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(i=>i.id===kr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:i}=[...this.getItems()].reduce((o,l)=>l.id===kr?o:{enabled:l.disabled?o.enabled:o.enabled+1,toggled:l.selected?o.toggled+1:o.toggled},{enabled:0,toggled:0});return e===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new C0({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===kr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==kr&&e.push(i.value)}),this.setValue(e),this.handleValueChange()}toggleSelection(e){const i=this.value?[...this.value]:[],o=i.indexOf(e);o>-1&&i.splice(o,1),o===-1&&i.push(e),this.setValue(i)}syncSelected(){this.getItems().forEach(e=>{const i=this.value&&this.value.includes(e.value);e.selected=e.id===kr?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?F`<span class="truncation"
3409
+ `;Dr([E({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Dr([E({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Dr([E({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Dr([E({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Dr([E({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Dr([E({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Dr([E({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Dr([Yc()],exports.Lozenge.prototype,"defaultSlot",2);Dr([p7(".message")],exports.Lozenge.prototype,"message",2);Dr([Ce()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Dr([W(Gp)],exports.Lozenge);var ZL=Object.defineProperty,WL=Object.getOwnPropertyDescriptor,Ra=(n,e,i,o)=>{for(var l=o>1?void 0:o?WL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ZL(e,i,l),l};const Kp=ce("input-multiselect");exports.InputMultiselect=class extends bt{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(e){super.updated(e),this.dropdown&&(this.dropdown.multiselect=!0),(e.has("value")||e.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(i=>i.id===kr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:i}=[...this.getItems()].reduce((o,l)=>l.id===kr?o:{enabled:l.disabled?o.enabled:o.enabled+1,toggled:l.selected?o.toggled+1:o.toggled},{enabled:0,toggled:0});return e===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new y0({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===kr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==kr&&e.push(i.value)}),this.setValue(e),this.handleValueChange()}toggleSelection(e){const i=this.value?[...this.value]:[],o=i.indexOf(e);o>-1&&i.splice(o,1),o===-1&&i.push(e),this.setValue(i)}syncSelected(){this.getItems().forEach(e=>{const i=this.value&&this.value.includes(e.value);e.selected=e.id===kr?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?F`<span class="truncation"
3410
3410
  >+${this.value.length-this.truncateValuesAfter} more</span
3411
3411
  >`:null}handleKeyDown(e){super.handleKeyDown(e),e.key==="Backspace"&&(!this.queryInput||this.queryInput.value==="")&&!this.isReadonlyOrDisabled&&this.removeLastValue()}renderReferenceElement(){return this.syncSelected(),this.controlled||this.search(),this.updateComplete.then(()=>{this.renderSelectedItems()}),F`
3412
3412
  <button
@@ -3518,10 +3518,10 @@ ${this.value}</textarea
3518
3518
  brz-icon[icon='chevronDown'] {
3519
3519
  color: var(--brz-color-neutral-750);
3520
3520
  }
3521
- `];Ra([E({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Ra([E({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Ra([E({type:Array})],exports.InputMultiselect.prototype,"value",2);Ra([Ce()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Ra([W(Yp)],exports.InputMultiselect);class Mn extends Error{}class GL extends Mn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class qL extends Mn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class KL extends Mn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ba extends Mn{}class Xp extends Mn{constructor(e){super(`Invalid unit ${e}`)}}class vr extends Mn{}class Ei extends Mn{constructor(){super("Zone is an abstract class")}}const fe="numeric",_r="short",hr="long",cl={year:fe,month:fe,day:fe},Jp={year:fe,month:_r,day:fe},YL={year:fe,month:_r,day:fe,weekday:_r},Qp={year:fe,month:hr,day:fe},e5={year:fe,month:hr,day:fe,weekday:hr},t5={hour:fe,minute:fe},r5={hour:fe,minute:fe,second:fe},i5={hour:fe,minute:fe,second:fe,timeZoneName:_r},n5={hour:fe,minute:fe,second:fe,timeZoneName:hr},o5={hour:fe,minute:fe,hourCycle:"h23"},a5={hour:fe,minute:fe,second:fe,hourCycle:"h23"},s5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:_r},l5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:hr},c5={year:fe,month:fe,day:fe,hour:fe,minute:fe},u5={year:fe,month:fe,day:fe,hour:fe,minute:fe,second:fe},d5={year:fe,month:_r,day:fe,hour:fe,minute:fe},h5={year:fe,month:_r,day:fe,hour:fe,minute:fe,second:fe},XL={year:fe,month:_r,day:fe,weekday:_r,hour:fe,minute:fe},f5={year:fe,month:hr,day:fe,hour:fe,minute:fe,timeZoneName:_r},p5={year:fe,month:hr,day:fe,hour:fe,minute:fe,second:fe,timeZoneName:_r},g5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,timeZoneName:hr},v5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,second:fe,timeZoneName:hr};class Fa{get type(){throw new Ei}get name(){throw new Ei}get ianaName(){return this.name}get isUniversal(){throw new Ei}offsetName(e,i){throw new Ei}formatOffset(e,i){throw new Ei}offset(e){throw new Ei}equals(e){throw new Ei}get isValid(){throw new Ei}}let uc=null;class Hl extends Fa{static get instance(){return uc===null&&(uc=new Hl),uc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return m5(e,i,o)}formatOffset(e,i){return wa(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Fs={};function JL(n){return Fs[n]||(Fs[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Fs[n]}const QL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function eS(n,e){const i=n.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,l,d,u,v,m,b,M]=o;return[u,l,d,v,m,b,M]}function tS(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=QL[d];d==="era"?o[v]=u:Ze(v)||(o[v]=parseInt(u,10))}return o}let Es={};class hi extends Fa{static create(e){return Es[e]||(Es[e]=new hi(e)),Es[e]}static resetCache(){Es={},Fs={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=hi.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return m5(e,i,o,this.name)}formatOffset(e,i){return wa(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=JL(this.name);let[l,d,u,v,m,b,M]=o.formatToParts?tS(o,i):eS(o,i);v==="BC"&&(l=-Math.abs(l)+1);const T=Fl({year:l,month:d,day:u,hour:m===24?0:m,minute:b,second:M,millisecond:0});let $=+i;const N=$%1e3;return $-=N>=0?N:1e3+N,(T-$)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let of={};function rS(n,e={}){const i=JSON.stringify([n,e]);let o=of[i];return o||(o=new Intl.ListFormat(n,e),of[i]=o),o}let Rc={};function Fc(n,e={}){const i=JSON.stringify([n,e]);let o=Rc[i];return o||(o=new Intl.DateTimeFormat(n,e),Rc[i]=o),o}let Bc={};function iS(n,e={}){const i=JSON.stringify([n,e]);let o=Bc[i];return o||(o=new Intl.NumberFormat(n,e),Bc[i]=o),o}let Vc={};function nS(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Vc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Vc[l]=d),d}let ma=null;function oS(){return ma||(ma=new Intl.DateTimeFormat().resolvedOptions().locale,ma)}function aS(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const i=n.indexOf("-u-");if(i===-1)return[n];{let o,l;try{o=Fc(n).resolvedOptions(),l=n}catch{const m=n.substring(0,i);o=Fc(m).resolvedOptions(),l=m}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function sS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function lS(n){const e=[];for(let i=1;i<=12;i++){const o=Ee.utc(2009,i,1);e.push(n(o))}return e}function cS(n){const e=[];for(let i=1;i<=7;i++){const o=Ee.utc(2016,11,13+i);e.push(n(o))}return e}function _s(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function uS(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class dS{constructor(e,i,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!i||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=iS(e,v)}}format(e){if(this.inf){const i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{const i=this.floor?Math.floor(e):L0(e,3);return Ct(i,this.padTo)}}}class hS{constructor(e,i,o){this.opts=o,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),v=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&hi.create(v).valid?(l=v,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Fc(i,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:o}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class fS{constructor(e,i,o){this.opts={style:"long",...o},!i&&b5()&&(this.rtf=nS(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):$S(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class it{static fromOpts(e){return it.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||yt.defaultLocale,u=d||(l?"en-US":oS()),v=i||yt.defaultNumberingSystem,m=o||yt.defaultOutputCalendar;return new it(u,v,m,d)}static resetCache(){ma=null,Rc={},Bc={},Vc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return it.create(e,i,o)}constructor(e,i,o,l){const[d,u,v]=aS(e);this.locale=d,this.numberingSystem=i||u||null,this.outputCalendar=o||v||null,this.intl=sS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=uS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:it.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return _s(this,e,w5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=lS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return _s(this,e,L5,()=>{const o=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=i?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=cS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return _s(this,void 0,()=>S5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return _s(this,e,M5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ee.utc(-40,1,1),Ee.utc(2017,1,1)].map(o=>this.extract(o,i,"era"))),this.eraCache[e]})}extract(e,i,o){const l=this.dtFormatter(e,i),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new dS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new hS(e,this.intl,i)}relFormatter(e={}){return new fS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return rS(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let dc=null;class Gt extends Fa{static get utcInstance(){return dc===null&&(dc=new Gt(0)),dc}static instance(e){return e===0?Gt.utcInstance:new Gt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Gt(Bl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${wa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${wa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return wa(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class pS extends Fa{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Pi(n,e){if(Ze(n)||n===null)return e;if(n instanceof Fa)return n;if(gS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Hl.instance:i==="utc"||i==="gmt"?Gt.utcInstance:Gt.parseSpecifier(i)||hi.create(n)}else return gn(n)?Gt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new pS(n)}let af=()=>Date.now(),sf="system",lf=null,cf=null,uf=null,df=60,hf;class yt{static get now(){return af}static set now(e){af=e}static set defaultZone(e){sf=e}static get defaultZone(){return Pi(sf,Hl.instance)}static get defaultLocale(){return lf}static set defaultLocale(e){lf=e}static get defaultNumberingSystem(){return cf}static set defaultNumberingSystem(e){cf=e}static get defaultOutputCalendar(){return uf}static set defaultOutputCalendar(e){uf=e}static get twoDigitCutoffYear(){return df}static set twoDigitCutoffYear(e){df=e%100}static get throwOnInvalid(){return hf}static set throwOnInvalid(e){hf=e}static resetCaches(){it.resetCache(),hi.resetCache()}}function Ze(n){return typeof n=="undefined"}function gn(n){return typeof n=="number"}function Rl(n){return typeof n=="number"&&n%1===0}function gS(n){return typeof n=="string"}function vS(n){return Object.prototype.toString.call(n)==="[object Date]"}function b5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function bS(n){return Array.isArray(n)?n:[n]}function ff(n,e,i){if(n.length!==0)return n.reduce((o,l)=>{const d=[e(l),l];return o&&i(o[0],d[0])===o[0]?o:d},null)[1]}function mS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function ho(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function ui(n,e,i){return Rl(n)&&n>=e&&n<=i}function yS(n,e){return n-e*Math.floor(n/e)}function Ct(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function Ii(n){if(!(Ze(n)||n===null||n===""))return parseInt(n,10)}function sn(n){if(!(Ze(n)||n===null||n===""))return parseFloat(n)}function z0(n){if(!(Ze(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function L0(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Ba(n){return n%4===0&&(n%100!==0||n%400===0)}function Ca(n){return Ba(n)?366:365}function ul(n,e){const i=yS(e-1,12)+1,o=n+(e-i)/12;return i===2?Ba(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Fl(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function dl(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,i=n-1,o=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return e===4||o===3?53:52}function Zc(n){return n>99?n:n>yt.twoDigitCutoffYear?1900+n:2e3+n}function m5(n,e,i,o=null){const l=new Date(n),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const u={timeZoneName:e,...d},v=new Intl.DateTimeFormat(i,u).formatToParts(l).find(m=>m.type.toLowerCase()==="timezonename");return v?v.value:null}function Bl(n,e){let i=parseInt(n,10);Number.isNaN(i)&&(i=0);const o=parseInt(e,10)||0,l=i<0||Object.is(i,-0)?-o:o;return i*60+l}function y5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new vr(`Invalid unit value ${n}`);return e}function hl(n,e){const i={};for(const o in n)if(ho(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=y5(l)}return i}function wa(n,e){const i=Math.trunc(Math.abs(n/60)),o=Math.trunc(Math.abs(n%60)),l=n>=0?"+":"-";switch(e){case"short":return`${l}${Ct(i,2)}:${Ct(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${Ct(i,2)}${Ct(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Vl(n){return mS(n,["hour","minute","second","millisecond"])}const CS=["January","February","March","April","May","June","July","August","September","October","November","December"],C5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wS=["J","F","M","A","M","J","J","A","S","O","N","D"];function w5(n){switch(n){case"narrow":return[...wS];case"short":return[...C5];case"long":return[...CS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const x5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],z5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],xS=["M","T","W","T","F","S","S"];function L5(n){switch(n){case"narrow":return[...xS];case"short":return[...z5];case"long":return[...x5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const S5=["AM","PM"],zS=["Before Christ","Anno Domini"],LS=["BC","AD"],SS=["B","A"];function M5(n){switch(n){case"narrow":return[...SS];case"short":return[...LS];case"long":return[...zS];default:return null}}function MS(n){return S5[n.hour<12?0:1]}function TS(n,e){return L5(e)[n.weekday-1]}function kS(n,e){return w5(e)[n.month-1]}function OS(n,e){return M5(e)[n.year<0?0:1]}function $S(n,e,i="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(n)===-1;if(i==="auto"&&d){const L=n==="days";switch(e){case 1:return L?"tomorrow":`next ${l[n][0]}`;case-1:return L?"yesterday":`last ${l[n][0]}`;case 0:return L?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),m=v===1,b=l[n],M=o?m?b[1]:b[2]||b[1]:m?l[n][0]:n;return u?`${v} ${M} ago`:`in ${v} ${M}`}function pf(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const ES={D:cl,DD:Jp,DDD:Qp,DDDD:e5,t:t5,tt:r5,ttt:i5,tttt:n5,T:o5,TT:a5,TTT:s5,TTTT:l5,f:c5,ff:d5,fff:f5,ffff:g5,F:u5,FF:h5,FFF:p5,FFFF:v5};class Rt{static create(e,i={}){return new Rt(e,i)}static parseFormat(e){let i=null,o="",l=!1;const d=[];for(let u=0;u<e.length;u++){const v=e.charAt(u);v==="'"?(o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),i=null,o="",l=!l):l||v===i?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,i=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return ES[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0){if(this.opts.forceSimple)return Ct(e,i);const o={...this.opts};return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,i){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=($,N)=>this.loc.extract(e,$,N),u=$=>e.isOffsetFixed&&e.offset===0&&$.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,$.format):"",v=()=>o?MS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),m=($,N)=>o?kS(e,$):d(N?{month:$}:{month:$,day:"numeric"},"month"),b=($,N)=>o?TS(e,$):d(N?{weekday:$}:{weekday:$,month:"long",day:"numeric"},"weekday"),M=$=>{const N=Rt.macroTokenToFormatOpts($);return N?this.formatWithSystemDefault(e,N):$},L=$=>o?OS(e,$):d({era:$},"era"),T=$=>{switch($){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return v();case"d":return l?d({day:"numeric"},"day"):this.num(e.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return b("short",!0);case"cccc":return b("long",!0);case"ccccc":return b("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return b("short",!1);case"EEEE":return b("long",!1);case"EEEEE":return b("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return m("short",!0);case"LLLL":return m("long",!0);case"LLLLL":return m("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(e.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return m("short",!1);case"MMMM":return m("long",!1);case"MMMMM":return m("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(e.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return L("short");case"GG":return L("long");case"GGGGG":return L("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return M($)}};return pf(Rt.parseFormat(i),T)}formatDurationFromString(e,i){const o=m=>{switch(m[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=m=>b=>{const M=o(b);return M?this.num(m.get(M),b.length):b},d=Rt.parseFormat(i),u=d.reduce((m,{literal:b,val:M})=>b?m:m.concat(M),[]),v=e.shiftTo(...u.map(o).filter(m=>m));return pf(d,l(v))}}class Or{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const T5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wo(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function xo(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,m]=d(e,l);return[{...i,...u},v||o,m]},[{},null,1]).slice(0,2)}function zo(n,...e){if(n==null)return[null,null];for(const[i,o]of e){const l=i.exec(n);if(l)return o(l)}return[null,null]}function k5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=Ii(e[i+l]);return[o,null,i+l]}}const O5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,_S=`(?:${O5.source}?(?:\\[(${T5.source})\\])?)?`,S0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,$5=RegExp(`${S0.source}${_S}`),M0=RegExp(`(?:T${$5.source})?`),IS=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,AS=/(\d{4})-?W(\d\d)(?:-?(\d))?/,PS=/(\d{4})-?(\d{3})/,DS=k5("weekYear","weekNumber","weekDay"),NS=k5("year","ordinal"),HS=/(\d{4})-(\d\d)-(\d\d)/,E5=RegExp(`${S0.source} ?(?:${O5.source}|(${T5.source}))?`),RS=RegExp(`(?: ${E5.source})?`);function no(n,e,i){const o=n[e];return Ze(o)?i:Ii(o)}function FS(n,e){return[{year:no(n,e),month:no(n,e+1,1),day:no(n,e+2,1)},null,e+3]}function Lo(n,e){return[{hours:no(n,e,0),minutes:no(n,e+1,0),seconds:no(n,e+2,0),milliseconds:z0(n[e+3])},null,e+4]}function Va(n,e){const i=!n[e]&&!n[e+1],o=Bl(n[e+1],n[e+2]),l=i?null:Gt.instance(o);return[{},l,e+3]}function Za(n,e){const i=n[e]?hi.create(n[e]):null;return[{},i,e+1]}const BS=RegExp(`^T?${S0.source}$`),VS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ZS(n){const[e,i,o,l,d,u,v,m,b]=n,M=e[0]==="-",L=m&&m[0]==="-",T=($,N=!1)=>$!==void 0&&(N||$&&M)?-$:$;return[{years:T(sn(i)),months:T(sn(o)),weeks:T(sn(l)),days:T(sn(d)),hours:T(sn(u)),minutes:T(sn(v)),seconds:T(sn(m),m==="-0"),milliseconds:T(z0(b),L)}]}const WS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function T0(n,e,i,o,l,d,u){const v={year:e.length===2?Zc(Ii(e)):Ii(e),month:C5.indexOf(i)+1,day:Ii(o),hour:Ii(l),minute:Ii(d)};return u&&(v.second=Ii(u)),n&&(v.weekday=n.length>3?x5.indexOf(n)+1:z5.indexOf(n)+1),v}const US=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function jS(n){const[,e,i,o,l,d,u,v,m,b,M,L]=n,T=T0(e,l,o,i,d,u,v);let $;return m?$=WS[m]:b?$=0:$=Bl(M,L),[T,new Gt($)]}function GS(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const qS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,KS=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,YS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function gf(n){const[,e,i,o,l,d,u,v]=n;return[T0(e,l,o,i,d,u,v),Gt.utcInstance]}function XS(n){const[,e,i,o,l,d,u,v]=n;return[T0(e,v,i,o,l,d,u),Gt.utcInstance]}const JS=wo(IS,M0),QS=wo(AS,M0),eM=wo(PS,M0),tM=wo($5),_5=xo(FS,Lo,Va,Za),rM=xo(DS,Lo,Va,Za),iM=xo(NS,Lo,Va,Za),nM=xo(Lo,Va,Za);function oM(n){return zo(n,[JS,_5],[QS,rM],[eM,iM],[tM,nM])}function aM(n){return zo(GS(n),[US,jS])}function sM(n){return zo(n,[qS,gf],[KS,gf],[YS,XS])}function lM(n){return zo(n,[VS,ZS])}const cM=xo(Lo);function uM(n){return zo(n,[BS,cM])}const dM=wo(HS,RS),hM=wo(E5),fM=xo(Lo,Va,Za);function pM(n){return zo(n,[dM,_5],[hM,fM])}const gM="Invalid Duration",I5={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},vM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...I5},gr=146097/400,Qn=146097/4800,bM={years:{quarters:4,months:12,weeks:gr/7,days:gr,hours:gr*24,minutes:gr*24*60,seconds:gr*24*60*60,milliseconds:gr*24*60*60*1e3},quarters:{months:3,weeks:gr/28,days:gr/4,hours:gr*24/4,minutes:gr*24*60/4,seconds:gr*24*60*60/4,milliseconds:gr*24*60*60*1e3/4},months:{weeks:Qn/7,days:Qn,hours:Qn*24,minutes:Qn*24*60,seconds:Qn*24*60*60,milliseconds:Qn*24*60*60*1e3},...I5},un=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],A5=un.slice(0).reverse();function _i(n,e,i=!1){const o={values:i?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new We(o)}function vf(n){return Math.trunc(n*1e3)/1e3}function P5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=vf(o[l]+v),e[i]=vf(e[i]-v*d)}function mM(n,e){A5.reduce((i,o)=>Ze(e[o])?i:(i&&P5(n,e,i,e,o),o),null)}function yM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class We{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?bM:vM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||it.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return We.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new We({values:hl(e,We.normalizeUnit),loc:it.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(gn(e))return We.fromMillis(e);if(We.isDuration(e))return e;if(typeof e=="object")return We.fromObject(e);throw new vr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=lM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=uM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the Duration is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new KL(o);return new We({invalid:o})}static normalizeUnit(e){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Xp(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){const o={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Rt.create(this.loc,o).formatDurationFromString(this,e):gM}toHuman(e={}){const i=un.map(o=>{const l=this.values[o];return Ze(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(l)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=L0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ee.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var i,o;let e=(i=this.values.milliseconds)!=null?i:0;for(let l of A5.slice(1))(o=this.values)!=null&&o[l]&&(e+=this.values[l]*this.matrix[l].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e),o={};for(const l of un)(ho(i.values,l)||ho(this.values,l))&&(o[l]=i.get(l)+this.get(l));return _i(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;const i={};for(const o of Object.keys(this.values))i[o]=y5(e(this.values[o],o));return _i(this,{values:i},!0)}get(e){return this[We.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...hl(e,We.normalizeUnit)};return _i(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:l,conversionAccuracy:o};return _i(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(mM(this.matrix,e),_i(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=yM(this.normalize().shiftToAll().toObject());return _i(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>We.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of un)if(e.indexOf(u)>=0){d=u;let v=0;for(const b in o)v+=this.matrix[b][u]*o[b],o[b]=0;gn(l[u])&&(v+=l[u]);const m=Math.trunc(v);i[u]=m,o[u]=(v*1e3-m*1e3)/1e3;for(const b in l)un.indexOf(b)>un.indexOf(u)&&P5(this.matrix,l,b,i,u)}else gn(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(i[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return _i(this,{values:i},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return _i(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of un)if(!i(this.values[o],e.values[o]))return!1;return!0}}const eo="Invalid Interval";function CM(n,e){return!n||!n.isValid?dt.invalid("missing or invalid start"):!e||!e.isValid?dt.invalid("missing or invalid end"):e<n?dt.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class dt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the Interval is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new qL(o);return new dt({invalid:o})}static fromDateTimes(e,i){const o=pa(e),l=pa(i),d=CM(o,l);return d==null?new dt({start:o,end:l}):d}static after(e,i){const o=We.fromDurationLike(i),l=pa(e);return dt.fromDateTimes(l,l.plus(o))}static before(e,i){const o=We.fromDurationLike(i),l=pa(e);return dt.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Ee.fromISO(o,i),u=d.isValid}catch{u=!1}let v,m;try{v=Ee.fromISO(l,i),m=v.isValid}catch{m=!1}if(u&&m)return dt.fromDateTimes(d,v);if(u){const b=We.fromISO(l,i);if(b.isValid)return dt.after(d,b)}else if(m){const b=We.fromISO(o,i);if(b.isValid)return dt.before(v,b)}}return dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const i=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(i,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?dt.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(pa).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=i[d]||this.e,v=+u>+this.e?this.e:u;o.push(dt.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=We.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(i.mapUnits(m=>m*l));d=+v>+this.e?this.e:v,u.push(dt.fromDateTimes(o,d)),o=d,l+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const i=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return i>=o?null:dt.fromDateTimes(i,o)}union(e){if(!this.isValid)return this;const i=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return dt.fromDateTimes(i,o)}static merge(e){const[i,o]=e.sort((l,d)=>l.s-d.s).reduce(([l,d],u)=>d?d.overlaps(u)||d.abutsStart(u)?[l,d.union(u)]:[l.concat([d]),u]:[l,u],[[],null]);return o&&i.push(o),i}static xor(e){let i=null,o=0;const l=[],d=e.map(m=>[{time:m.s,type:"s"},{time:m.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((m,b)=>m.time-b.time);for(const m of v)o+=m.type==="s"?1:-1,o===1?i=m.time:(i&&+i!=+m.time&&l.push(dt.fromDateTimes(i,m.time)),i=null);return dt.merge(l)}difference(...e){return dt.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:eo}toLocaleString(e=cl,i={}){return this.isValid?Rt.create(this.s.loc.clone(i),e).formatInterval(this):eo}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:eo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:eo}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:eo}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:eo}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):We.invalid(this.invalidReason)}mapEndpoints(e){return dt.fromDateTimes(e(this.s),e(this.e))}}class Is{static hasDST(e=yt.defaultZone){const i=Ee.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return hi.isValidZone(e)}static normalizeZone(e){return Pi(e,yt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return it.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return it.create(i,null,"gregory").eras(e)}static features(){return{relative:b5()}}}function bf(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(We.fromMillis(o).as("days"))}function wM(n,e,i){const o=[["years",(m,b)=>b.year-m.year],["quarters",(m,b)=>b.quarter-m.quarter+(b.year-m.year)*4],["months",(m,b)=>b.month-m.month+(b.year-m.year)*12],["weeks",(m,b)=>{const M=bf(m,b);return(M-M%7)/7}],["days",bf]],l={},d=n;let u,v;for(const[m,b]of o)i.indexOf(m)>=0&&(u=m,l[m]=b(n,e),v=d.plus(l),v>e?(l[m]--,n=d.plus(l),n>e&&(v=n,l[m]--,n=d.plus(l))):n=v);return[n,l,v,u]}function xM(n,e,i,o){let[l,d,u,v]=wM(n,e,i);const m=e-l,b=i.filter(L=>["hours","minutes","seconds","milliseconds"].indexOf(L)>=0);b.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+m/(u-l)));const M=We.fromObject(d,o);return b.length>0?We.fromMillis(m,o).shiftTo(...b).plus(M):M}const k0={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},mf={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},zM=k0.hanidec.replace(/[\[|\]]/g,"").split("");function LM(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);if(n[i].search(k0.hanidec)!==-1)e+=zM.indexOf(n[i]);else for(const l in mf){const[d,u]=mf[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Mr({numberingSystem:n},e=""){return new RegExp(`${k0[n||"latn"]}${e}`)}const SM="missing Intl.DateTimeFormat.formatToParts support";function qe(n,e=i=>i){return{regex:n,deser:([i])=>e(LM(i))}}const MM=String.fromCharCode(160),D5=`[ ${MM}]`,N5=new RegExp(D5,"g");function TM(n){return n.replace(/\./g,"\\.?").replace(N5,D5)}function yf(n){return n.replace(/\./g,"").replace(N5," ").toLowerCase()}function Tr(n,e){return n===null?null:{regex:RegExp(n.map(TM).join("|")),deser:([i])=>n.findIndex(o=>yf(i)===yf(o))+e}}function Cf(n,e){return{regex:n,deser:([,i,o])=>Bl(i,o),groups:e}}function As(n){return{regex:n,deser:([e])=>e}}function kM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function OM(n,e){const i=Mr(e),o=Mr(e,"{2}"),l=Mr(e,"{3}"),d=Mr(e,"{4}"),u=Mr(e,"{6}"),v=Mr(e,"{1,2}"),m=Mr(e,"{1,3}"),b=Mr(e,"{1,6}"),M=Mr(e,"{1,9}"),L=Mr(e,"{2,4}"),T=Mr(e,"{4,6}"),$=oe=>({regex:RegExp(kM(oe.val)),deser:([_])=>_,literal:!0}),Y=(oe=>{if(n.literal)return $(oe);switch(oe.val){case"G":return Tr(e.eras("short"),0);case"GG":return Tr(e.eras("long"),0);case"y":return qe(b);case"yy":return qe(L,Zc);case"yyyy":return qe(d);case"yyyyy":return qe(T);case"yyyyyy":return qe(u);case"M":return qe(v);case"MM":return qe(o);case"MMM":return Tr(e.months("short",!0),1);case"MMMM":return Tr(e.months("long",!0),1);case"L":return qe(v);case"LL":return qe(o);case"LLL":return Tr(e.months("short",!1),1);case"LLLL":return Tr(e.months("long",!1),1);case"d":return qe(v);case"dd":return qe(o);case"o":return qe(m);case"ooo":return qe(l);case"HH":return qe(o);case"H":return qe(v);case"hh":return qe(o);case"h":return qe(v);case"mm":return qe(o);case"m":return qe(v);case"q":return qe(v);case"qq":return qe(o);case"s":return qe(v);case"ss":return qe(o);case"S":return qe(m);case"SSS":return qe(l);case"u":return As(M);case"uu":return As(v);case"uuu":return qe(i);case"a":return Tr(e.meridiems(),0);case"kkkk":return qe(d);case"kk":return qe(L,Zc);case"W":return qe(v);case"WW":return qe(o);case"E":case"c":return qe(i);case"EEE":return Tr(e.weekdays("short",!1),1);case"EEEE":return Tr(e.weekdays("long",!1),1);case"ccc":return Tr(e.weekdays("short",!0),1);case"cccc":return Tr(e.weekdays("long",!0),1);case"Z":case"ZZ":return Cf(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return Cf(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return As(/[a-z_+-/]{1,256}?/i);case" ":return As(/[^\S\n\r]/);default:return $(oe)}})(n)||{invalidReason:SM};return Y.token=n,Y}const $M={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function EM(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const m=/^\s+$/.test(l);return{literal:!m,val:m?" ":l}}const d=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=i.hour12?"hour12":"hour24");let v=$M[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function _M(n){return[`^${n.map(i=>i.regex).reduce((i,o)=>`${i}(${o.source})`,"")}$`,n]}function IM(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(ho(i,u)){const v=i[u],m=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+m))),d+=m}return[o,l]}else return[o,{}]}function AM(n){const e=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i=null,o;return Ze(n.z)||(i=hi.create(n.z)),Ze(n.Z)||(i||(i=new Gt(n.Z)),o=n.Z),Ze(n.q)||(n.M=(n.q-1)*3+1),Ze(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),Ze(n.u)||(n.S=z0(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let hc=null;function PM(){return hc||(hc=Ee.fromMillis(1555555555555)),hc}function DM(n,e){if(n.literal)return n;const i=Rt.macroTokenToFormatOpts(n.val),o=F5(i,e);return o==null||o.includes(void 0)?n:o}function H5(n,e){return Array.prototype.concat(...n.map(i=>DM(i,e)))}function R5(n,e,i){const o=H5(Rt.parseFormat(i),n),l=o.map(u=>OM(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=_M(l),m=RegExp(u,"i"),[b,M]=IM(e,m,v),[L,T,$]=M?AM(M):[null,null,void 0];if(ho(M,"a")&&ho(M,"H"))throw new ba("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:m,rawMatches:b,matches:M,result:L,zone:T,specificOffset:$}}}function NM(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=R5(n,e,i);return[o,l,d,u]}function F5(n,e){if(!n)return null;const o=Rt.create(e,n).dtFormatter(PM()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>EM(u,n,d))}const B5=[0,31,59,90,120,151,181,212,243,273,304,334],V5=[0,31,60,91,121,152,182,213,244,274,305,335];function br(n,e){return new Or("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function Z5(n,e,i){const o=new Date(Date.UTC(n,e-1,i));n<100&&n>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function W5(n,e,i){return i+(Ba(n)?V5:B5)[e-1]}function U5(n,e){const i=Ba(n)?V5:B5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function Wc(n){const{year:e,month:i,day:o}=n,l=W5(e,i,o),d=Z5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=dl(v)):u>dl(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Vl(n)}}function wf(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=Z5(e,1,4),d=Ca(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=Ca(v)):u>d?(v=e+1,u-=Ca(e)):v=e;const{month:m,day:b}=U5(v,u);return{year:v,month:m,day:b,...Vl(n)}}function fc(n){const{year:e,month:i,day:o}=n,l=W5(e,i,o);return{year:e,ordinal:l,...Vl(n)}}function xf(n){const{year:e,ordinal:i}=n,{month:o,day:l}=U5(e,i);return{year:e,month:o,day:l,...Vl(n)}}function HM(n){const e=Rl(n.weekYear),i=ui(n.weekNumber,1,dl(n.weekYear)),o=ui(n.weekday,1,7);return e?i?o?!1:br("weekday",n.weekday):br("week",n.week):br("weekYear",n.weekYear)}function RM(n){const e=Rl(n.year),i=ui(n.ordinal,1,Ca(n.year));return e?i?!1:br("ordinal",n.ordinal):br("year",n.year)}function j5(n){const e=Rl(n.year),i=ui(n.month,1,12),o=ui(n.day,1,ul(n.year,n.month));return e?i?o?!1:br("day",n.day):br("month",n.month):br("year",n.year)}function G5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=ui(e,0,23)||e===24&&i===0&&o===0&&l===0,u=ui(i,0,59),v=ui(o,0,59),m=ui(l,0,999);return d?u?v?m?!1:br("millisecond",l):br("second",o):br("minute",i):br("hour",e)}const pc="Invalid DateTime",zf=864e13;function Ps(n){return new Or("unsupported zone",`the zone "${n.name}" is not supported`)}function gc(n){return n.weekData===null&&(n.weekData=Wc(n.c)),n.weekData}function ln(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Ee({...i,...e,old:i})}function q5(n,e,i){let o=n-e*60*1e3;const l=i.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=i.offset(o);return l===d?[o,l]:[n-Math.min(l,d)*60*1e3,Math.max(l,d)]}function Ds(n,e){n+=e*60*1e3;const i=new Date(n);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Bs(n,e,i){return q5(Fl(n),e,i)}function Lf(n,e){const i=n.o,o=n.c.year+Math.trunc(e.years),l=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...n.c,year:o,month:l,day:Math.min(n.c.day,ul(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=We.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),v=Fl(d);let[m,b]=q5(v,i,n.zone);return u!==0&&(m+=u,b=n.zone.offset(m)),{ts:m,o:b}}function fa(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const m=e||v,b=Ee.fromObject(n,{...i,zone:m,specificOffset:d});return u?b:b.setZone(v)}else return Ee.invalid(new Or("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Ns(n,e,i=!0){return n.isValid?Rt.create(it.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function vc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=Ct(n.c.year,i?6:4),e?(o+="-",o+=Ct(n.c.month),o+="-",o+=Ct(n.c.day)):(o+=Ct(n.c.month),o+=Ct(n.c.day)),o}function Sf(n,e,i,o,l,d){let u=Ct(n.c.hour);return e?(u+=":",u+=Ct(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=Ct(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=Ct(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=Ct(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=Ct(Math.trunc(-n.o/60)),u+=":",u+=Ct(Math.trunc(-n.o%60))):(u+="+",u+=Ct(Math.trunc(n.o/60)),u+=":",u+=Ct(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const K5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},FM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},BM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Y5=["year","month","day","hour","minute","second","millisecond"],VM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ZM=["year","ordinal","hour","minute","second","millisecond"];function Mf(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Xp(n);return e}function Tf(n,e){const i=Pi(e.zone,yt.defaultZone),o=it.fromObject(e),l=yt.now();let d,u;if(Ze(n.year))d=l;else{for(const b of Y5)Ze(n[b])&&(n[b]=K5[b]);const v=j5(n)||G5(n);if(v)return Ee.invalid(v);const m=i.offset(l);[d,u]=Bs(n,m,i)}return new Ee({ts:d,zone:i,loc:o,o:u})}function kf(n,e,i){const o=Ze(i.round)?!0:i.round,l=(u,v)=>(u=L0(u,o||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(u,v)),d=u=>i.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(i.unit)return l(d(i.unit),i.unit);for(const u of i.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(n>e?-0:0,i.units[i.units.length-1])}function Of(n){let e={},i;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],i=Array.from(n).slice(0,n.length-1)):i=Array.from(n),[e,i]}class Ee{constructor(e){const i=e.zone||yt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Or("invalid input"):null)||(i.isValid?null:Ps(i));this.ts=Ze(e.ts)?yt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[l,d]=[e.old.c,e.old.o];else{const v=i.offset(this.ts);l=Ds(this.ts,v),o=Number.isNaN(l.year)?new Or("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||it.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Ee({})}static local(){const[e,i]=Of(arguments),[o,l,d,u,v,m,b]=i;return Tf({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:b},e)}static utc(){const[e,i]=Of(arguments),[o,l,d,u,v,m,b]=i;return e.zone=Gt.utcInstance,Tf({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:b},e)}static fromJSDate(e,i={}){const o=vS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Ee.invalid("invalid input");const l=Pi(i.zone,yt.defaultZone);return l.isValid?new Ee({ts:o,zone:l,loc:it.fromObject(i)}):Ee.invalid(Ps(l))}static fromMillis(e,i={}){if(gn(e))return e<-zf||e>zf?Ee.invalid("Timestamp out of range"):new Ee({ts:e,zone:Pi(i.zone,yt.defaultZone),loc:it.fromObject(i)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(gn(e))return new Ee({ts:e*1e3,zone:Pi(i.zone,yt.defaultZone),loc:it.fromObject(i)});throw new vr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=Pi(i.zone,yt.defaultZone);if(!o.isValid)return Ee.invalid(Ps(o));const l=yt.now(),d=Ze(i.specificOffset)?o.offset(l):i.specificOffset,u=hl(e,Mf),v=!Ze(u.ordinal),m=!Ze(u.year),b=!Ze(u.month)||!Ze(u.day),M=m||b,L=u.weekYear||u.weekNumber,T=it.fromObject(i);if((M||v)&&L)throw new ba("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&v)throw new ba("Can't mix ordinal dates with month/day");const $=L||u.weekday&&!M;let N,Y,oe=Ds(l,d);$?(N=VM,Y=FM,oe=Wc(oe)):v?(N=ZM,Y=BM,oe=fc(oe)):(N=Y5,Y=K5);let _=!1;for(const me of N){const Me=u[me];Ze(Me)?_?u[me]=Y[me]:u[me]=oe[me]:_=!0}const D=$?HM(u):v?RM(u):j5(u),A=D||G5(u);if(A)return Ee.invalid(A);const B=$?wf(u):v?xf(u):u,[K,ue]=Bs(B,d,o),le=new Ee({ts:K,zone:o,o:ue,loc:T});return u.weekday&&M&&e.weekday!==le.weekday?Ee.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${le.toISO()}`):le}static fromISO(e,i={}){const[o,l]=oM(e);return fa(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=aM(e);return fa(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=sM(e);return fa(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(Ze(e)||Ze(i))throw new vr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,m,b,M]=NM(u,e,i);return M?Ee.invalid(M):fa(v,m,o,`format ${i}`,e,b)}static fromString(e,i,o={}){return Ee.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=pM(e);return fa(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the DateTime is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new GL(o);return new Ee({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=F5(e,it.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return H5(Rt.parseFormat(e),it.fromObject(i)).map(l=>l.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?gc(this).weekYear:NaN}get weekNumber(){return this.isValid?gc(this).weekNumber:NaN}get weekday(){return this.isValid?gc(this).weekday:NaN}get ordinal(){return this.isValid?fc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Is.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Is.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Is.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Is.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,i=6e4,o=Fl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*i),v=this.zone.offset(o-d*i);if(u===v)return[this];const m=o-u*i,b=o-v*i,M=Ds(m,u),L=Ds(b,v);return M.hour===L.hour&&M.minute===L.minute&&M.second===L.second&&M.millisecond===L.millisecond?[ln(this,{ts:m}),ln(this,{ts:b})]:[this]}get isInLeapYear(){return Ba(this.year)}get daysInMonth(){return ul(this.year,this.month)}get daysInYear(){return this.isValid?Ca(this.year):NaN}get weeksInWeekYear(){return this.isValid?dl(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Rt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Gt.instance(e),i)}toLocal(){return this.setZone(yt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=Pi(e,yt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(i||o){const d=e.offset(this.ts),u=this.toObject();[l]=Bs(u,d,e)}return ln(this,{ts:l,zone:e})}else return Ee.invalid(Ps(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return ln(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=hl(e,Mf),o=!Ze(i.weekYear)||!Ze(i.weekNumber)||!Ze(i.weekday),l=!Ze(i.ordinal),d=!Ze(i.year),u=!Ze(i.month)||!Ze(i.day),v=d||u,m=i.weekYear||i.weekNumber;if((v||l)&&m)throw new ba("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new ba("Can't mix ordinal dates with month/day");let b;o?b=wf({...Wc(this.c),...i}):Ze(i.ordinal)?(b={...this.toObject(),...i},Ze(i.day)&&(b.day=Math.min(ul(b.year,b.month),b.day))):b=xf({...fc(this.c),...i});const[M,L]=Bs(b,this.o,this.zone);return ln(this,{ts:M,o:L})}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return ln(this,Lf(this,i))}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e).negate();return ln(this,Lf(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=We.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);i.month=(l-1)*3+1}return this.set(i)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,i={}){return this.isValid?Rt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):pc}toLocaleString(e=cl,i={}){return this.isValid?Rt.create(this.loc.clone(i),e).formatDateTime(this):pc}toLocaleParts(e={}){return this.isValid?Rt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=vc(this,u);return v+="T",v+=Sf(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?vc(this,e==="extended"):null}toISOWeekDate(){return Ns(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+Sf(this,u==="extended",i,e,o,d):null}toRFC2822(){return Ns(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ns(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?vc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(i||e)&&(o&&(l+=" "),i?l+="z":e&&(l+="ZZ")),Ns(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():pc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",o={}){if(!this.isValid||!e.isValid)return We.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=bS(i).map(We.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,m=u?e:this,b=xM(v,m,d,l);return u?b.negate():b}diffNow(e="milliseconds",i={}){return this.diff(Ee.now(),e,i)}until(e){return this.isValid?dt.fromDateTimes(this,e):this}hasSame(e,i){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(i)<=o&&o<=l.endOf(i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const i=e.base||Ee.fromObject({},{zone:this.zone}),o=e.padding?this<i?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(l=e.unit,d=void 0),kf(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?kf(e.base||Ee.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ee.isDateTime))throw new vr("min requires all arguments be DateTimes");return ff(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Ee.isDateTime))throw new vr("max requires all arguments be DateTimes");return ff(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return R5(u,e,i)}static fromStringExplain(e,i,o={}){return Ee.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return cl}static get DATE_MED(){return Jp}static get DATE_MED_WITH_WEEKDAY(){return YL}static get DATE_FULL(){return Qp}static get DATE_HUGE(){return e5}static get TIME_SIMPLE(){return t5}static get TIME_WITH_SECONDS(){return r5}static get TIME_WITH_SHORT_OFFSET(){return i5}static get TIME_WITH_LONG_OFFSET(){return n5}static get TIME_24_SIMPLE(){return o5}static get TIME_24_WITH_SECONDS(){return a5}static get TIME_24_WITH_SHORT_OFFSET(){return s5}static get TIME_24_WITH_LONG_OFFSET(){return l5}static get DATETIME_SHORT(){return c5}static get DATETIME_SHORT_WITH_SECONDS(){return u5}static get DATETIME_MED(){return d5}static get DATETIME_MED_WITH_SECONDS(){return h5}static get DATETIME_MED_WITH_WEEKDAY(){return XL}static get DATETIME_FULL(){return f5}static get DATETIME_FULL_WITH_SECONDS(){return p5}static get DATETIME_HUGE(){return g5}static get DATETIME_HUGE_WITH_SECONDS(){return v5}}function pa(n){if(Ee.isDateTime(n))return n;if(n&&n.valueOf&&gn(n.valueOf()))return Ee.fromJSDate(n);if(n&&typeof n=="object")return Ee.fromObject(n);throw new vr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const WM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},UM=n=>Ee.local().setZone(n).isValid,Uc=n=>n.hour<12,$f=n=>!Uc(n),X5=(n,e)=>Uc(n)&&Uc(e)||$f(n)&&$f(e),bc=(n,e)=>{var l;const i=e&&UM(e)?e:"utc",o=(l=WM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},jM=(n,e,i)=>{let o=Ee.fromISO(n),l=Ee.fromISO(e);i&&(o=o.setZone(i),l=l.setZone(i));const d=o.hour===0&&o.minute===0&&o.second===0,u=24*60*60*1e3,v=l.diff(o,"milliseconds").milliseconds===u;return d&&v},Ef=n=>GM(J5(n)),GM=n=>n.replace(/Sept/,"Sep"),J5=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase()),fl=n=>n.minute===0?"h":"h:mm",pl=(n,e)=>n.year!==e.year?" yyyy":"";var qM=Object.defineProperty,KM=Object.getOwnPropertyDescriptor,Vi=(n,e,i,o)=>{for(var l=o>1?void 0:o?KM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&qM(e,i,l),l};const Q5=ce("input-time"),e6="h:mma",t6=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,r6=/^(1[3-9]|2[0-3]).*/,i6=/^(\d\d?)(am?|pm?)/,YM=["UTC","AEST"],n6=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),_f=(n,e)=>{const o=Math.ceil(1440/n),l=Ee.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),m=J5(v.toFormat(e6));return n6(m,e)})},XM=(n,e)=>{const i=n.trim(),o=n.match(t6);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),m=v>12?`${v-12}`:`${v}`,b=`${d}${u||0}`,M=`${m}:${b}`;return["am","pm"].map(L=>n6(`${M}${L}`,e))},JM=(n,{value:e})=>{const i=n.match(r6);if(!i||!e)return!1;const[,o]=i,l=`${parseInt(o,10)-12}`,d=n.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},QM=(n,{value:e})=>{const i=n.match(i6);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},eT=(...n)=>QM(...n)||JM(...n);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=_f(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=_f(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var e;this.valueLabel=this.value&&this.value!==this.placeholder?(e=this.getItems().find(({value:i})=>i===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?eT(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=XM(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return F`
3521
+ `];Ra([E({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Ra([E({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Ra([E({type:Array})],exports.InputMultiselect.prototype,"value",2);Ra([Ce()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Ra([W(Kp)],exports.InputMultiselect);class Mn extends Error{}class UL extends Mn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class jL extends Mn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class GL extends Mn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ba extends Mn{}class Yp extends Mn{constructor(e){super(`Invalid unit ${e}`)}}class vr extends Mn{}class Ei extends Mn{constructor(){super("Zone is an abstract class")}}const fe="numeric",_r="short",hr="long",cl={year:fe,month:fe,day:fe},Xp={year:fe,month:_r,day:fe},qL={year:fe,month:_r,day:fe,weekday:_r},Jp={year:fe,month:hr,day:fe},Qp={year:fe,month:hr,day:fe,weekday:hr},e5={hour:fe,minute:fe},t5={hour:fe,minute:fe,second:fe},r5={hour:fe,minute:fe,second:fe,timeZoneName:_r},i5={hour:fe,minute:fe,second:fe,timeZoneName:hr},n5={hour:fe,minute:fe,hourCycle:"h23"},o5={hour:fe,minute:fe,second:fe,hourCycle:"h23"},a5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:_r},s5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:hr},l5={year:fe,month:fe,day:fe,hour:fe,minute:fe},c5={year:fe,month:fe,day:fe,hour:fe,minute:fe,second:fe},u5={year:fe,month:_r,day:fe,hour:fe,minute:fe},d5={year:fe,month:_r,day:fe,hour:fe,minute:fe,second:fe},KL={year:fe,month:_r,day:fe,weekday:_r,hour:fe,minute:fe},h5={year:fe,month:hr,day:fe,hour:fe,minute:fe,timeZoneName:_r},f5={year:fe,month:hr,day:fe,hour:fe,minute:fe,second:fe,timeZoneName:_r},p5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,timeZoneName:hr},g5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,second:fe,timeZoneName:hr};class Fa{get type(){throw new Ei}get name(){throw new Ei}get ianaName(){return this.name}get isUniversal(){throw new Ei}offsetName(e,i){throw new Ei}formatOffset(e,i){throw new Ei}offset(e){throw new Ei}equals(e){throw new Ei}get isValid(){throw new Ei}}let cc=null;class Hl extends Fa{static get instance(){return cc===null&&(cc=new Hl),cc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return b5(e,i,o)}formatOffset(e,i){return wa(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Fs={};function YL(n){return Fs[n]||(Fs[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Fs[n]}const XL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function JL(n,e){const i=n.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,l,d,u,v,m,b,M]=o;return[u,l,d,v,m,b,M]}function QL(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=XL[d];d==="era"?o[v]=u:Ze(v)||(o[v]=parseInt(u,10))}return o}let Es={};class hi extends Fa{static create(e){return Es[e]||(Es[e]=new hi(e)),Es[e]}static resetCache(){Es={},Fs={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=hi.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return b5(e,i,o,this.name)}formatOffset(e,i){return wa(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=YL(this.name);let[l,d,u,v,m,b,M]=o.formatToParts?QL(o,i):JL(o,i);v==="BC"&&(l=-Math.abs(l)+1);const T=Fl({year:l,month:d,day:u,hour:m===24?0:m,minute:b,second:M,millisecond:0});let $=+i;const N=$%1e3;return $-=N>=0?N:1e3+N,(T-$)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let rf={};function eS(n,e={}){const i=JSON.stringify([n,e]);let o=rf[i];return o||(o=new Intl.ListFormat(n,e),rf[i]=o),o}let Hc={};function Rc(n,e={}){const i=JSON.stringify([n,e]);let o=Hc[i];return o||(o=new Intl.DateTimeFormat(n,e),Hc[i]=o),o}let Fc={};function tS(n,e={}){const i=JSON.stringify([n,e]);let o=Fc[i];return o||(o=new Intl.NumberFormat(n,e),Fc[i]=o),o}let Bc={};function rS(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Bc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Bc[l]=d),d}let ma=null;function iS(){return ma||(ma=new Intl.DateTimeFormat().resolvedOptions().locale,ma)}function nS(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const i=n.indexOf("-u-");if(i===-1)return[n];{let o,l;try{o=Rc(n).resolvedOptions(),l=n}catch{const m=n.substring(0,i);o=Rc(m).resolvedOptions(),l=m}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function oS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function aS(n){const e=[];for(let i=1;i<=12;i++){const o=Ee.utc(2009,i,1);e.push(n(o))}return e}function sS(n){const e=[];for(let i=1;i<=7;i++){const o=Ee.utc(2016,11,13+i);e.push(n(o))}return e}function _s(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function lS(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class cS{constructor(e,i,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!i||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=tS(e,v)}}format(e){if(this.inf){const i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{const i=this.floor?Math.floor(e):z0(e,3);return Ct(i,this.padTo)}}}class uS{constructor(e,i,o){this.opts=o,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),v=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&hi.create(v).valid?(l=v,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Rc(i,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:o}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class dS{constructor(e,i,o){this.opts={style:"long",...o},!i&&v5()&&(this.rtf=rS(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):kS(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class it{static fromOpts(e){return it.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||yt.defaultLocale,u=d||(l?"en-US":iS()),v=i||yt.defaultNumberingSystem,m=o||yt.defaultOutputCalendar;return new it(u,v,m,d)}static resetCache(){ma=null,Hc={},Fc={},Bc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return it.create(e,i,o)}constructor(e,i,o,l){const[d,u,v]=nS(e);this.locale=d,this.numberingSystem=i||u||null,this.outputCalendar=o||v||null,this.intl=oS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=lS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:it.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return _s(this,e,C5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=aS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return _s(this,e,z5,()=>{const o=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=i?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=sS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return _s(this,void 0,()=>L5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return _s(this,e,S5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ee.utc(-40,1,1),Ee.utc(2017,1,1)].map(o=>this.extract(o,i,"era"))),this.eraCache[e]})}extract(e,i,o){const l=this.dtFormatter(e,i),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new cS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new uS(e,this.intl,i)}relFormatter(e={}){return new dS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return eS(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let uc=null;class Gt extends Fa{static get utcInstance(){return uc===null&&(uc=new Gt(0)),uc}static instance(e){return e===0?Gt.utcInstance:new Gt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Gt(Bl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${wa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${wa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return wa(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class hS extends Fa{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Pi(n,e){if(Ze(n)||n===null)return e;if(n instanceof Fa)return n;if(fS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Hl.instance:i==="utc"||i==="gmt"?Gt.utcInstance:Gt.parseSpecifier(i)||hi.create(n)}else return gn(n)?Gt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new hS(n)}let nf=()=>Date.now(),of="system",af=null,sf=null,lf=null,cf=60,uf;class yt{static get now(){return nf}static set now(e){nf=e}static set defaultZone(e){of=e}static get defaultZone(){return Pi(of,Hl.instance)}static get defaultLocale(){return af}static set defaultLocale(e){af=e}static get defaultNumberingSystem(){return sf}static set defaultNumberingSystem(e){sf=e}static get defaultOutputCalendar(){return lf}static set defaultOutputCalendar(e){lf=e}static get twoDigitCutoffYear(){return cf}static set twoDigitCutoffYear(e){cf=e%100}static get throwOnInvalid(){return uf}static set throwOnInvalid(e){uf=e}static resetCaches(){it.resetCache(),hi.resetCache()}}function Ze(n){return typeof n=="undefined"}function gn(n){return typeof n=="number"}function Rl(n){return typeof n=="number"&&n%1===0}function fS(n){return typeof n=="string"}function pS(n){return Object.prototype.toString.call(n)==="[object Date]"}function v5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function gS(n){return Array.isArray(n)?n:[n]}function df(n,e,i){if(n.length!==0)return n.reduce((o,l)=>{const d=[e(l),l];return o&&i(o[0],d[0])===o[0]?o:d},null)[1]}function vS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function ho(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function ui(n,e,i){return Rl(n)&&n>=e&&n<=i}function bS(n,e){return n-e*Math.floor(n/e)}function Ct(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function Ii(n){if(!(Ze(n)||n===null||n===""))return parseInt(n,10)}function sn(n){if(!(Ze(n)||n===null||n===""))return parseFloat(n)}function x0(n){if(!(Ze(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function z0(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Ba(n){return n%4===0&&(n%100!==0||n%400===0)}function Ca(n){return Ba(n)?366:365}function ul(n,e){const i=bS(e-1,12)+1,o=n+(e-i)/12;return i===2?Ba(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Fl(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function dl(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,i=n-1,o=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return e===4||o===3?53:52}function Vc(n){return n>99?n:n>yt.twoDigitCutoffYear?1900+n:2e3+n}function b5(n,e,i,o=null){const l=new Date(n),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const u={timeZoneName:e,...d},v=new Intl.DateTimeFormat(i,u).formatToParts(l).find(m=>m.type.toLowerCase()==="timezonename");return v?v.value:null}function Bl(n,e){let i=parseInt(n,10);Number.isNaN(i)&&(i=0);const o=parseInt(e,10)||0,l=i<0||Object.is(i,-0)?-o:o;return i*60+l}function m5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new vr(`Invalid unit value ${n}`);return e}function hl(n,e){const i={};for(const o in n)if(ho(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=m5(l)}return i}function wa(n,e){const i=Math.trunc(Math.abs(n/60)),o=Math.trunc(Math.abs(n%60)),l=n>=0?"+":"-";switch(e){case"short":return`${l}${Ct(i,2)}:${Ct(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${Ct(i,2)}${Ct(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Vl(n){return vS(n,["hour","minute","second","millisecond"])}const mS=["January","February","March","April","May","June","July","August","September","October","November","December"],y5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yS=["J","F","M","A","M","J","J","A","S","O","N","D"];function C5(n){switch(n){case"narrow":return[...yS];case"short":return[...y5];case"long":return[...mS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const w5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],x5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],CS=["M","T","W","T","F","S","S"];function z5(n){switch(n){case"narrow":return[...CS];case"short":return[...x5];case"long":return[...w5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const L5=["AM","PM"],wS=["Before Christ","Anno Domini"],xS=["BC","AD"],zS=["B","A"];function S5(n){switch(n){case"narrow":return[...zS];case"short":return[...xS];case"long":return[...wS];default:return null}}function LS(n){return L5[n.hour<12?0:1]}function SS(n,e){return z5(e)[n.weekday-1]}function MS(n,e){return C5(e)[n.month-1]}function TS(n,e){return S5(e)[n.year<0?0:1]}function kS(n,e,i="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(n)===-1;if(i==="auto"&&d){const L=n==="days";switch(e){case 1:return L?"tomorrow":`next ${l[n][0]}`;case-1:return L?"yesterday":`last ${l[n][0]}`;case 0:return L?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),m=v===1,b=l[n],M=o?m?b[1]:b[2]||b[1]:m?l[n][0]:n;return u?`${v} ${M} ago`:`in ${v} ${M}`}function hf(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const OS={D:cl,DD:Xp,DDD:Jp,DDDD:Qp,t:e5,tt:t5,ttt:r5,tttt:i5,T:n5,TT:o5,TTT:a5,TTTT:s5,f:l5,ff:u5,fff:h5,ffff:p5,F:c5,FF:d5,FFF:f5,FFFF:g5};class Rt{static create(e,i={}){return new Rt(e,i)}static parseFormat(e){let i=null,o="",l=!1;const d=[];for(let u=0;u<e.length;u++){const v=e.charAt(u);v==="'"?(o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),i=null,o="",l=!l):l||v===i?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,i=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return OS[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0){if(this.opts.forceSimple)return Ct(e,i);const o={...this.opts};return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,i){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=($,N)=>this.loc.extract(e,$,N),u=$=>e.isOffsetFixed&&e.offset===0&&$.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,$.format):"",v=()=>o?LS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),m=($,N)=>o?MS(e,$):d(N?{month:$}:{month:$,day:"numeric"},"month"),b=($,N)=>o?SS(e,$):d(N?{weekday:$}:{weekday:$,month:"long",day:"numeric"},"weekday"),M=$=>{const N=Rt.macroTokenToFormatOpts($);return N?this.formatWithSystemDefault(e,N):$},L=$=>o?TS(e,$):d({era:$},"era"),T=$=>{switch($){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return v();case"d":return l?d({day:"numeric"},"day"):this.num(e.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return b("short",!0);case"cccc":return b("long",!0);case"ccccc":return b("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return b("short",!1);case"EEEE":return b("long",!1);case"EEEEE":return b("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return m("short",!0);case"LLLL":return m("long",!0);case"LLLLL":return m("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(e.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return m("short",!1);case"MMMM":return m("long",!1);case"MMMMM":return m("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(e.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return L("short");case"GG":return L("long");case"GGGGG":return L("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return M($)}};return hf(Rt.parseFormat(i),T)}formatDurationFromString(e,i){const o=m=>{switch(m[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=m=>b=>{const M=o(b);return M?this.num(m.get(M),b.length):b},d=Rt.parseFormat(i),u=d.reduce((m,{literal:b,val:M})=>b?m:m.concat(M),[]),v=e.shiftTo(...u.map(o).filter(m=>m));return hf(d,l(v))}}class Or{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const M5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wo(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function xo(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,m]=d(e,l);return[{...i,...u},v||o,m]},[{},null,1]).slice(0,2)}function zo(n,...e){if(n==null)return[null,null];for(const[i,o]of e){const l=i.exec(n);if(l)return o(l)}return[null,null]}function T5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=Ii(e[i+l]);return[o,null,i+l]}}const k5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,$S=`(?:${k5.source}?(?:\\[(${M5.source})\\])?)?`,L0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,O5=RegExp(`${L0.source}${$S}`),S0=RegExp(`(?:T${O5.source})?`),ES=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,_S=/(\d{4})-?W(\d\d)(?:-?(\d))?/,IS=/(\d{4})-?(\d{3})/,AS=T5("weekYear","weekNumber","weekDay"),PS=T5("year","ordinal"),DS=/(\d{4})-(\d\d)-(\d\d)/,$5=RegExp(`${L0.source} ?(?:${k5.source}|(${M5.source}))?`),NS=RegExp(`(?: ${$5.source})?`);function no(n,e,i){const o=n[e];return Ze(o)?i:Ii(o)}function HS(n,e){return[{year:no(n,e),month:no(n,e+1,1),day:no(n,e+2,1)},null,e+3]}function Lo(n,e){return[{hours:no(n,e,0),minutes:no(n,e+1,0),seconds:no(n,e+2,0),milliseconds:x0(n[e+3])},null,e+4]}function Va(n,e){const i=!n[e]&&!n[e+1],o=Bl(n[e+1],n[e+2]),l=i?null:Gt.instance(o);return[{},l,e+3]}function Za(n,e){const i=n[e]?hi.create(n[e]):null;return[{},i,e+1]}const RS=RegExp(`^T?${L0.source}$`),FS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function BS(n){const[e,i,o,l,d,u,v,m,b]=n,M=e[0]==="-",L=m&&m[0]==="-",T=($,N=!1)=>$!==void 0&&(N||$&&M)?-$:$;return[{years:T(sn(i)),months:T(sn(o)),weeks:T(sn(l)),days:T(sn(d)),hours:T(sn(u)),minutes:T(sn(v)),seconds:T(sn(m),m==="-0"),milliseconds:T(x0(b),L)}]}const VS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function M0(n,e,i,o,l,d,u){const v={year:e.length===2?Vc(Ii(e)):Ii(e),month:y5.indexOf(i)+1,day:Ii(o),hour:Ii(l),minute:Ii(d)};return u&&(v.second=Ii(u)),n&&(v.weekday=n.length>3?w5.indexOf(n)+1:x5.indexOf(n)+1),v}const ZS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function WS(n){const[,e,i,o,l,d,u,v,m,b,M,L]=n,T=M0(e,l,o,i,d,u,v);let $;return m?$=VS[m]:b?$=0:$=Bl(M,L),[T,new Gt($)]}function US(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const jS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,GS=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,qS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ff(n){const[,e,i,o,l,d,u,v]=n;return[M0(e,l,o,i,d,u,v),Gt.utcInstance]}function KS(n){const[,e,i,o,l,d,u,v]=n;return[M0(e,v,i,o,l,d,u),Gt.utcInstance]}const YS=wo(ES,S0),XS=wo(_S,S0),JS=wo(IS,S0),QS=wo(O5),E5=xo(HS,Lo,Va,Za),eM=xo(AS,Lo,Va,Za),tM=xo(PS,Lo,Va,Za),rM=xo(Lo,Va,Za);function iM(n){return zo(n,[YS,E5],[XS,eM],[JS,tM],[QS,rM])}function nM(n){return zo(US(n),[ZS,WS])}function oM(n){return zo(n,[jS,ff],[GS,ff],[qS,KS])}function aM(n){return zo(n,[FS,BS])}const sM=xo(Lo);function lM(n){return zo(n,[RS,sM])}const cM=wo(DS,NS),uM=wo($5),dM=xo(Lo,Va,Za);function hM(n){return zo(n,[cM,E5],[uM,dM])}const fM="Invalid Duration",_5={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},pM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},..._5},gr=146097/400,Qn=146097/4800,gM={years:{quarters:4,months:12,weeks:gr/7,days:gr,hours:gr*24,minutes:gr*24*60,seconds:gr*24*60*60,milliseconds:gr*24*60*60*1e3},quarters:{months:3,weeks:gr/28,days:gr/4,hours:gr*24/4,minutes:gr*24*60/4,seconds:gr*24*60*60/4,milliseconds:gr*24*60*60*1e3/4},months:{weeks:Qn/7,days:Qn,hours:Qn*24,minutes:Qn*24*60,seconds:Qn*24*60*60,milliseconds:Qn*24*60*60*1e3},..._5},un=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],I5=un.slice(0).reverse();function _i(n,e,i=!1){const o={values:i?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new We(o)}function pf(n){return Math.trunc(n*1e3)/1e3}function A5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=pf(o[l]+v),e[i]=pf(e[i]-v*d)}function vM(n,e){I5.reduce((i,o)=>Ze(e[o])?i:(i&&A5(n,e,i,e,o),o),null)}function bM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class We{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?gM:pM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||it.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return We.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new We({values:hl(e,We.normalizeUnit),loc:it.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(gn(e))return We.fromMillis(e);if(We.isDuration(e))return e;if(typeof e=="object")return We.fromObject(e);throw new vr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=aM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=lM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the Duration is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new GL(o);return new We({invalid:o})}static normalizeUnit(e){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Yp(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){const o={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Rt.create(this.loc,o).formatDurationFromString(this,e):fM}toHuman(e={}){const i=un.map(o=>{const l=this.values[o];return Ze(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(l)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=z0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ee.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var i,o;let e=(i=this.values.milliseconds)!=null?i:0;for(let l of I5.slice(1))(o=this.values)!=null&&o[l]&&(e+=this.values[l]*this.matrix[l].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e),o={};for(const l of un)(ho(i.values,l)||ho(this.values,l))&&(o[l]=i.get(l)+this.get(l));return _i(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;const i={};for(const o of Object.keys(this.values))i[o]=m5(e(this.values[o],o));return _i(this,{values:i},!0)}get(e){return this[We.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...hl(e,We.normalizeUnit)};return _i(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:l,conversionAccuracy:o};return _i(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(vM(this.matrix,e),_i(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=bM(this.normalize().shiftToAll().toObject());return _i(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>We.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of un)if(e.indexOf(u)>=0){d=u;let v=0;for(const b in o)v+=this.matrix[b][u]*o[b],o[b]=0;gn(l[u])&&(v+=l[u]);const m=Math.trunc(v);i[u]=m,o[u]=(v*1e3-m*1e3)/1e3;for(const b in l)un.indexOf(b)>un.indexOf(u)&&A5(this.matrix,l,b,i,u)}else gn(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(i[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return _i(this,{values:i},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return _i(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of un)if(!i(this.values[o],e.values[o]))return!1;return!0}}const eo="Invalid Interval";function mM(n,e){return!n||!n.isValid?dt.invalid("missing or invalid start"):!e||!e.isValid?dt.invalid("missing or invalid end"):e<n?dt.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class dt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the Interval is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new jL(o);return new dt({invalid:o})}static fromDateTimes(e,i){const o=pa(e),l=pa(i),d=mM(o,l);return d==null?new dt({start:o,end:l}):d}static after(e,i){const o=We.fromDurationLike(i),l=pa(e);return dt.fromDateTimes(l,l.plus(o))}static before(e,i){const o=We.fromDurationLike(i),l=pa(e);return dt.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Ee.fromISO(o,i),u=d.isValid}catch{u=!1}let v,m;try{v=Ee.fromISO(l,i),m=v.isValid}catch{m=!1}if(u&&m)return dt.fromDateTimes(d,v);if(u){const b=We.fromISO(l,i);if(b.isValid)return dt.after(d,b)}else if(m){const b=We.fromISO(o,i);if(b.isValid)return dt.before(v,b)}}return dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const i=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(i,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?dt.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(pa).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=i[d]||this.e,v=+u>+this.e?this.e:u;o.push(dt.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=We.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(i.mapUnits(m=>m*l));d=+v>+this.e?this.e:v,u.push(dt.fromDateTimes(o,d)),o=d,l+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const i=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return i>=o?null:dt.fromDateTimes(i,o)}union(e){if(!this.isValid)return this;const i=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return dt.fromDateTimes(i,o)}static merge(e){const[i,o]=e.sort((l,d)=>l.s-d.s).reduce(([l,d],u)=>d?d.overlaps(u)||d.abutsStart(u)?[l,d.union(u)]:[l.concat([d]),u]:[l,u],[[],null]);return o&&i.push(o),i}static xor(e){let i=null,o=0;const l=[],d=e.map(m=>[{time:m.s,type:"s"},{time:m.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((m,b)=>m.time-b.time);for(const m of v)o+=m.type==="s"?1:-1,o===1?i=m.time:(i&&+i!=+m.time&&l.push(dt.fromDateTimes(i,m.time)),i=null);return dt.merge(l)}difference(...e){return dt.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:eo}toLocaleString(e=cl,i={}){return this.isValid?Rt.create(this.s.loc.clone(i),e).formatInterval(this):eo}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:eo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:eo}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:eo}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:eo}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):We.invalid(this.invalidReason)}mapEndpoints(e){return dt.fromDateTimes(e(this.s),e(this.e))}}class Is{static hasDST(e=yt.defaultZone){const i=Ee.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return hi.isValidZone(e)}static normalizeZone(e){return Pi(e,yt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return it.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return it.create(i,null,"gregory").eras(e)}static features(){return{relative:v5()}}}function gf(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(We.fromMillis(o).as("days"))}function yM(n,e,i){const o=[["years",(m,b)=>b.year-m.year],["quarters",(m,b)=>b.quarter-m.quarter+(b.year-m.year)*4],["months",(m,b)=>b.month-m.month+(b.year-m.year)*12],["weeks",(m,b)=>{const M=gf(m,b);return(M-M%7)/7}],["days",gf]],l={},d=n;let u,v;for(const[m,b]of o)i.indexOf(m)>=0&&(u=m,l[m]=b(n,e),v=d.plus(l),v>e?(l[m]--,n=d.plus(l),n>e&&(v=n,l[m]--,n=d.plus(l))):n=v);return[n,l,v,u]}function CM(n,e,i,o){let[l,d,u,v]=yM(n,e,i);const m=e-l,b=i.filter(L=>["hours","minutes","seconds","milliseconds"].indexOf(L)>=0);b.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+m/(u-l)));const M=We.fromObject(d,o);return b.length>0?We.fromMillis(m,o).shiftTo(...b).plus(M):M}const T0={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vf={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},wM=T0.hanidec.replace(/[\[|\]]/g,"").split("");function xM(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);if(n[i].search(T0.hanidec)!==-1)e+=wM.indexOf(n[i]);else for(const l in vf){const[d,u]=vf[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Mr({numberingSystem:n},e=""){return new RegExp(`${T0[n||"latn"]}${e}`)}const zM="missing Intl.DateTimeFormat.formatToParts support";function qe(n,e=i=>i){return{regex:n,deser:([i])=>e(xM(i))}}const LM=String.fromCharCode(160),P5=`[ ${LM}]`,D5=new RegExp(P5,"g");function SM(n){return n.replace(/\./g,"\\.?").replace(D5,P5)}function bf(n){return n.replace(/\./g,"").replace(D5," ").toLowerCase()}function Tr(n,e){return n===null?null:{regex:RegExp(n.map(SM).join("|")),deser:([i])=>n.findIndex(o=>bf(i)===bf(o))+e}}function mf(n,e){return{regex:n,deser:([,i,o])=>Bl(i,o),groups:e}}function As(n){return{regex:n,deser:([e])=>e}}function MM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function TM(n,e){const i=Mr(e),o=Mr(e,"{2}"),l=Mr(e,"{3}"),d=Mr(e,"{4}"),u=Mr(e,"{6}"),v=Mr(e,"{1,2}"),m=Mr(e,"{1,3}"),b=Mr(e,"{1,6}"),M=Mr(e,"{1,9}"),L=Mr(e,"{2,4}"),T=Mr(e,"{4,6}"),$=oe=>({regex:RegExp(MM(oe.val)),deser:([_])=>_,literal:!0}),Y=(oe=>{if(n.literal)return $(oe);switch(oe.val){case"G":return Tr(e.eras("short"),0);case"GG":return Tr(e.eras("long"),0);case"y":return qe(b);case"yy":return qe(L,Vc);case"yyyy":return qe(d);case"yyyyy":return qe(T);case"yyyyyy":return qe(u);case"M":return qe(v);case"MM":return qe(o);case"MMM":return Tr(e.months("short",!0),1);case"MMMM":return Tr(e.months("long",!0),1);case"L":return qe(v);case"LL":return qe(o);case"LLL":return Tr(e.months("short",!1),1);case"LLLL":return Tr(e.months("long",!1),1);case"d":return qe(v);case"dd":return qe(o);case"o":return qe(m);case"ooo":return qe(l);case"HH":return qe(o);case"H":return qe(v);case"hh":return qe(o);case"h":return qe(v);case"mm":return qe(o);case"m":return qe(v);case"q":return qe(v);case"qq":return qe(o);case"s":return qe(v);case"ss":return qe(o);case"S":return qe(m);case"SSS":return qe(l);case"u":return As(M);case"uu":return As(v);case"uuu":return qe(i);case"a":return Tr(e.meridiems(),0);case"kkkk":return qe(d);case"kk":return qe(L,Vc);case"W":return qe(v);case"WW":return qe(o);case"E":case"c":return qe(i);case"EEE":return Tr(e.weekdays("short",!1),1);case"EEEE":return Tr(e.weekdays("long",!1),1);case"ccc":return Tr(e.weekdays("short",!0),1);case"cccc":return Tr(e.weekdays("long",!0),1);case"Z":case"ZZ":return mf(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return mf(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return As(/[a-z_+-/]{1,256}?/i);case" ":return As(/[^\S\n\r]/);default:return $(oe)}})(n)||{invalidReason:zM};return Y.token=n,Y}const kM={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function OM(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const m=/^\s+$/.test(l);return{literal:!m,val:m?" ":l}}const d=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=i.hour12?"hour12":"hour24");let v=kM[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function $M(n){return[`^${n.map(i=>i.regex).reduce((i,o)=>`${i}(${o.source})`,"")}$`,n]}function EM(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(ho(i,u)){const v=i[u],m=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+m))),d+=m}return[o,l]}else return[o,{}]}function _M(n){const e=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i=null,o;return Ze(n.z)||(i=hi.create(n.z)),Ze(n.Z)||(i||(i=new Gt(n.Z)),o=n.Z),Ze(n.q)||(n.M=(n.q-1)*3+1),Ze(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),Ze(n.u)||(n.S=x0(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let dc=null;function IM(){return dc||(dc=Ee.fromMillis(1555555555555)),dc}function AM(n,e){if(n.literal)return n;const i=Rt.macroTokenToFormatOpts(n.val),o=R5(i,e);return o==null||o.includes(void 0)?n:o}function N5(n,e){return Array.prototype.concat(...n.map(i=>AM(i,e)))}function H5(n,e,i){const o=N5(Rt.parseFormat(i),n),l=o.map(u=>TM(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=$M(l),m=RegExp(u,"i"),[b,M]=EM(e,m,v),[L,T,$]=M?_M(M):[null,null,void 0];if(ho(M,"a")&&ho(M,"H"))throw new ba("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:m,rawMatches:b,matches:M,result:L,zone:T,specificOffset:$}}}function PM(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=H5(n,e,i);return[o,l,d,u]}function R5(n,e){if(!n)return null;const o=Rt.create(e,n).dtFormatter(IM()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>OM(u,n,d))}const F5=[0,31,59,90,120,151,181,212,243,273,304,334],B5=[0,31,60,91,121,152,182,213,244,274,305,335];function br(n,e){return new Or("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function V5(n,e,i){const o=new Date(Date.UTC(n,e-1,i));n<100&&n>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function Z5(n,e,i){return i+(Ba(n)?B5:F5)[e-1]}function W5(n,e){const i=Ba(n)?B5:F5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function Zc(n){const{year:e,month:i,day:o}=n,l=Z5(e,i,o),d=V5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=dl(v)):u>dl(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Vl(n)}}function yf(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=V5(e,1,4),d=Ca(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=Ca(v)):u>d?(v=e+1,u-=Ca(e)):v=e;const{month:m,day:b}=W5(v,u);return{year:v,month:m,day:b,...Vl(n)}}function hc(n){const{year:e,month:i,day:o}=n,l=Z5(e,i,o);return{year:e,ordinal:l,...Vl(n)}}function Cf(n){const{year:e,ordinal:i}=n,{month:o,day:l}=W5(e,i);return{year:e,month:o,day:l,...Vl(n)}}function DM(n){const e=Rl(n.weekYear),i=ui(n.weekNumber,1,dl(n.weekYear)),o=ui(n.weekday,1,7);return e?i?o?!1:br("weekday",n.weekday):br("week",n.week):br("weekYear",n.weekYear)}function NM(n){const e=Rl(n.year),i=ui(n.ordinal,1,Ca(n.year));return e?i?!1:br("ordinal",n.ordinal):br("year",n.year)}function U5(n){const e=Rl(n.year),i=ui(n.month,1,12),o=ui(n.day,1,ul(n.year,n.month));return e?i?o?!1:br("day",n.day):br("month",n.month):br("year",n.year)}function j5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=ui(e,0,23)||e===24&&i===0&&o===0&&l===0,u=ui(i,0,59),v=ui(o,0,59),m=ui(l,0,999);return d?u?v?m?!1:br("millisecond",l):br("second",o):br("minute",i):br("hour",e)}const fc="Invalid DateTime",wf=864e13;function Ps(n){return new Or("unsupported zone",`the zone "${n.name}" is not supported`)}function pc(n){return n.weekData===null&&(n.weekData=Zc(n.c)),n.weekData}function ln(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Ee({...i,...e,old:i})}function G5(n,e,i){let o=n-e*60*1e3;const l=i.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=i.offset(o);return l===d?[o,l]:[n-Math.min(l,d)*60*1e3,Math.max(l,d)]}function Ds(n,e){n+=e*60*1e3;const i=new Date(n);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Bs(n,e,i){return G5(Fl(n),e,i)}function xf(n,e){const i=n.o,o=n.c.year+Math.trunc(e.years),l=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...n.c,year:o,month:l,day:Math.min(n.c.day,ul(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=We.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),v=Fl(d);let[m,b]=G5(v,i,n.zone);return u!==0&&(m+=u,b=n.zone.offset(m)),{ts:m,o:b}}function fa(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const m=e||v,b=Ee.fromObject(n,{...i,zone:m,specificOffset:d});return u?b:b.setZone(v)}else return Ee.invalid(new Or("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Ns(n,e,i=!0){return n.isValid?Rt.create(it.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function gc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=Ct(n.c.year,i?6:4),e?(o+="-",o+=Ct(n.c.month),o+="-",o+=Ct(n.c.day)):(o+=Ct(n.c.month),o+=Ct(n.c.day)),o}function zf(n,e,i,o,l,d){let u=Ct(n.c.hour);return e?(u+=":",u+=Ct(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=Ct(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=Ct(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=Ct(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=Ct(Math.trunc(-n.o/60)),u+=":",u+=Ct(Math.trunc(-n.o%60))):(u+="+",u+=Ct(Math.trunc(n.o/60)),u+=":",u+=Ct(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const q5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},HM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},RM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},K5=["year","month","day","hour","minute","second","millisecond"],FM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],BM=["year","ordinal","hour","minute","second","millisecond"];function Lf(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Yp(n);return e}function Sf(n,e){const i=Pi(e.zone,yt.defaultZone),o=it.fromObject(e),l=yt.now();let d,u;if(Ze(n.year))d=l;else{for(const b of K5)Ze(n[b])&&(n[b]=q5[b]);const v=U5(n)||j5(n);if(v)return Ee.invalid(v);const m=i.offset(l);[d,u]=Bs(n,m,i)}return new Ee({ts:d,zone:i,loc:o,o:u})}function Mf(n,e,i){const o=Ze(i.round)?!0:i.round,l=(u,v)=>(u=z0(u,o||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(u,v)),d=u=>i.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(i.unit)return l(d(i.unit),i.unit);for(const u of i.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(n>e?-0:0,i.units[i.units.length-1])}function Tf(n){let e={},i;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],i=Array.from(n).slice(0,n.length-1)):i=Array.from(n),[e,i]}class Ee{constructor(e){const i=e.zone||yt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Or("invalid input"):null)||(i.isValid?null:Ps(i));this.ts=Ze(e.ts)?yt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[l,d]=[e.old.c,e.old.o];else{const v=i.offset(this.ts);l=Ds(this.ts,v),o=Number.isNaN(l.year)?new Or("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||it.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Ee({})}static local(){const[e,i]=Tf(arguments),[o,l,d,u,v,m,b]=i;return Sf({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:b},e)}static utc(){const[e,i]=Tf(arguments),[o,l,d,u,v,m,b]=i;return e.zone=Gt.utcInstance,Sf({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:b},e)}static fromJSDate(e,i={}){const o=pS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Ee.invalid("invalid input");const l=Pi(i.zone,yt.defaultZone);return l.isValid?new Ee({ts:o,zone:l,loc:it.fromObject(i)}):Ee.invalid(Ps(l))}static fromMillis(e,i={}){if(gn(e))return e<-wf||e>wf?Ee.invalid("Timestamp out of range"):new Ee({ts:e,zone:Pi(i.zone,yt.defaultZone),loc:it.fromObject(i)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(gn(e))return new Ee({ts:e*1e3,zone:Pi(i.zone,yt.defaultZone),loc:it.fromObject(i)});throw new vr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=Pi(i.zone,yt.defaultZone);if(!o.isValid)return Ee.invalid(Ps(o));const l=yt.now(),d=Ze(i.specificOffset)?o.offset(l):i.specificOffset,u=hl(e,Lf),v=!Ze(u.ordinal),m=!Ze(u.year),b=!Ze(u.month)||!Ze(u.day),M=m||b,L=u.weekYear||u.weekNumber,T=it.fromObject(i);if((M||v)&&L)throw new ba("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&v)throw new ba("Can't mix ordinal dates with month/day");const $=L||u.weekday&&!M;let N,Y,oe=Ds(l,d);$?(N=FM,Y=HM,oe=Zc(oe)):v?(N=BM,Y=RM,oe=hc(oe)):(N=K5,Y=q5);let _=!1;for(const me of N){const Me=u[me];Ze(Me)?_?u[me]=Y[me]:u[me]=oe[me]:_=!0}const D=$?DM(u):v?NM(u):U5(u),A=D||j5(u);if(A)return Ee.invalid(A);const B=$?yf(u):v?Cf(u):u,[K,ue]=Bs(B,d,o),le=new Ee({ts:K,zone:o,o:ue,loc:T});return u.weekday&&M&&e.weekday!==le.weekday?Ee.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${le.toISO()}`):le}static fromISO(e,i={}){const[o,l]=iM(e);return fa(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=nM(e);return fa(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=oM(e);return fa(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(Ze(e)||Ze(i))throw new vr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,m,b,M]=PM(u,e,i);return M?Ee.invalid(M):fa(v,m,o,`format ${i}`,e,b)}static fromString(e,i,o={}){return Ee.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=hM(e);return fa(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the DateTime is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new UL(o);return new Ee({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=R5(e,it.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return N5(Rt.parseFormat(e),it.fromObject(i)).map(l=>l.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?pc(this).weekYear:NaN}get weekNumber(){return this.isValid?pc(this).weekNumber:NaN}get weekday(){return this.isValid?pc(this).weekday:NaN}get ordinal(){return this.isValid?hc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Is.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Is.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Is.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Is.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,i=6e4,o=Fl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*i),v=this.zone.offset(o-d*i);if(u===v)return[this];const m=o-u*i,b=o-v*i,M=Ds(m,u),L=Ds(b,v);return M.hour===L.hour&&M.minute===L.minute&&M.second===L.second&&M.millisecond===L.millisecond?[ln(this,{ts:m}),ln(this,{ts:b})]:[this]}get isInLeapYear(){return Ba(this.year)}get daysInMonth(){return ul(this.year,this.month)}get daysInYear(){return this.isValid?Ca(this.year):NaN}get weeksInWeekYear(){return this.isValid?dl(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Rt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Gt.instance(e),i)}toLocal(){return this.setZone(yt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=Pi(e,yt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(i||o){const d=e.offset(this.ts),u=this.toObject();[l]=Bs(u,d,e)}return ln(this,{ts:l,zone:e})}else return Ee.invalid(Ps(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return ln(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=hl(e,Lf),o=!Ze(i.weekYear)||!Ze(i.weekNumber)||!Ze(i.weekday),l=!Ze(i.ordinal),d=!Ze(i.year),u=!Ze(i.month)||!Ze(i.day),v=d||u,m=i.weekYear||i.weekNumber;if((v||l)&&m)throw new ba("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new ba("Can't mix ordinal dates with month/day");let b;o?b=yf({...Zc(this.c),...i}):Ze(i.ordinal)?(b={...this.toObject(),...i},Ze(i.day)&&(b.day=Math.min(ul(b.year,b.month),b.day))):b=Cf({...hc(this.c),...i});const[M,L]=Bs(b,this.o,this.zone);return ln(this,{ts:M,o:L})}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return ln(this,xf(this,i))}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e).negate();return ln(this,xf(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=We.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);i.month=(l-1)*3+1}return this.set(i)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,i={}){return this.isValid?Rt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):fc}toLocaleString(e=cl,i={}){return this.isValid?Rt.create(this.loc.clone(i),e).formatDateTime(this):fc}toLocaleParts(e={}){return this.isValid?Rt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=gc(this,u);return v+="T",v+=zf(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?gc(this,e==="extended"):null}toISOWeekDate(){return Ns(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+zf(this,u==="extended",i,e,o,d):null}toRFC2822(){return Ns(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ns(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(i||e)&&(o&&(l+=" "),i?l+="z":e&&(l+="ZZ")),Ns(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():fc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",o={}){if(!this.isValid||!e.isValid)return We.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=gS(i).map(We.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,m=u?e:this,b=CM(v,m,d,l);return u?b.negate():b}diffNow(e="milliseconds",i={}){return this.diff(Ee.now(),e,i)}until(e){return this.isValid?dt.fromDateTimes(this,e):this}hasSame(e,i){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(i)<=o&&o<=l.endOf(i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const i=e.base||Ee.fromObject({},{zone:this.zone}),o=e.padding?this<i?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(l=e.unit,d=void 0),Mf(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?Mf(e.base||Ee.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ee.isDateTime))throw new vr("min requires all arguments be DateTimes");return df(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Ee.isDateTime))throw new vr("max requires all arguments be DateTimes");return df(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return H5(u,e,i)}static fromStringExplain(e,i,o={}){return Ee.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return cl}static get DATE_MED(){return Xp}static get DATE_MED_WITH_WEEKDAY(){return qL}static get DATE_FULL(){return Jp}static get DATE_HUGE(){return Qp}static get TIME_SIMPLE(){return e5}static get TIME_WITH_SECONDS(){return t5}static get TIME_WITH_SHORT_OFFSET(){return r5}static get TIME_WITH_LONG_OFFSET(){return i5}static get TIME_24_SIMPLE(){return n5}static get TIME_24_WITH_SECONDS(){return o5}static get TIME_24_WITH_SHORT_OFFSET(){return a5}static get TIME_24_WITH_LONG_OFFSET(){return s5}static get DATETIME_SHORT(){return l5}static get DATETIME_SHORT_WITH_SECONDS(){return c5}static get DATETIME_MED(){return u5}static get DATETIME_MED_WITH_SECONDS(){return d5}static get DATETIME_MED_WITH_WEEKDAY(){return KL}static get DATETIME_FULL(){return h5}static get DATETIME_FULL_WITH_SECONDS(){return f5}static get DATETIME_HUGE(){return p5}static get DATETIME_HUGE_WITH_SECONDS(){return g5}}function pa(n){if(Ee.isDateTime(n))return n;if(n&&n.valueOf&&gn(n.valueOf()))return Ee.fromJSDate(n);if(n&&typeof n=="object")return Ee.fromObject(n);throw new vr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const VM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},ZM=n=>Ee.local().setZone(n).isValid,Wc=n=>n.hour<12,kf=n=>!Wc(n),Y5=(n,e)=>Wc(n)&&Wc(e)||kf(n)&&kf(e),vc=(n,e)=>{var l;const i=e&&ZM(e)?e:"utc",o=(l=VM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},WM=(n,e,i)=>{let o=Ee.fromISO(n),l=Ee.fromISO(e);i&&(o=o.setZone(i),l=l.setZone(i));const d=o.hour===0&&o.minute===0&&o.second===0,u=24*60*60*1e3,v=l.diff(o,"milliseconds").milliseconds===u;return d&&v},Of=n=>UM(X5(n)),UM=n=>n.replace(/Sept/,"Sep"),X5=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase()),fl=n=>n.minute===0?"h":"h:mm",pl=(n,e)=>n.year!==e.year?" yyyy":"";var jM=Object.defineProperty,GM=Object.getOwnPropertyDescriptor,Vi=(n,e,i,o)=>{for(var l=o>1?void 0:o?GM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&jM(e,i,l),l};const J5=ce("input-time"),Q5="h:mma",e6=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,t6=/^(1[3-9]|2[0-3]).*/,r6=/^(\d\d?)(am?|pm?)/,qM=["UTC","AEST"],i6=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),$f=(n,e)=>{const o=Math.ceil(1440/n),l=Ee.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),m=X5(v.toFormat(Q5));return i6(m,e)})},KM=(n,e)=>{const i=n.trim(),o=n.match(e6);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),m=v>12?`${v-12}`:`${v}`,b=`${d}${u||0}`,M=`${m}:${b}`;return["am","pm"].map(L=>i6(`${M}${L}`,e))},YM=(n,{value:e})=>{const i=n.match(t6);if(!i||!e)return!1;const[,o]=i,l=`${parseInt(o,10)-12}`,d=n.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},XM=(n,{value:e})=>{const i=n.match(r6);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},JM=(...n)=>XM(...n)||YM(...n);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=$f(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=$f(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var e;this.valueLabel=this.value&&this.value!==this.placeholder?(e=this.getItems().find(({value:i})=>i===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?JM(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=KM(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return F`
3522
3522
  ${this.handleNoResults()} ${this.renderOptionsData()}
3523
3523
  ${this.renderFreeformOptions()}
3524
- `}};Vi([E({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Vi([E({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Vi([E({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Vi([E({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Vi([E({type:String})],exports.InputTime.prototype,"placeholder",2);Vi([E({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Vi([Ce()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Vi([W(Q5)],exports.InputTime);var tT=Object.defineProperty,rT=Object.getOwnPropertyDescriptor,yi=(n,e,i,o)=>{for(var l=o>1?void 0:o?rT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tT(e,i,l),l};const o6=ce("toggle-switch"),ga={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=ga.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===ga.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}render(){this.toggleState=this.checked?ga.Checked:ga.Empty;const e=F`<span>${this.label}</span>`,i=F`<div class="switch">
3524
+ `}};Vi([E({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Vi([E({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Vi([E({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Vi([E({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Vi([E({type:String})],exports.InputTime.prototype,"placeholder",2);Vi([E({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Vi([Ce()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Vi([W(J5)],exports.InputTime);var QM=Object.defineProperty,eT=Object.getOwnPropertyDescriptor,yi=(n,e,i,o)=>{for(var l=o>1?void 0:o?eT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&QM(e,i,l),l};const n6=ce("toggle-switch"),ga={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=ga.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===ga.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}render(){this.toggleState=this.checked?ga.Checked:ga.Empty;const e=F`<span>${this.label}</span>`,i=F`<div class="switch">
3525
3525
  <div class="toggle"></div>
3526
3526
  <div class="switch-on">${this.switchOnLabel}</div>
3527
3527
  <div class="switch-off">${this.switchOffLabel}</div>
@@ -3682,7 +3682,7 @@ ${this.value}</textarea
3682
3682
  background: var(--brz-color-neutral-200);
3683
3683
  }
3684
3684
  }
3685
- `];yi([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);yi([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);yi([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);yi([E()],exports.ToggleSwitch.prototype,"value",2);yi([E({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);yi([E({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);yi([Ce()],exports.ToggleSwitch.prototype,"toggleState",2);yi([E({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=yi([W(o6)],exports.ToggleSwitch);var iT=Object.defineProperty,nT=Object.getOwnPropertyDescriptor,O0=(n,e,i,o)=>{for(var l=o>1?void 0:o?nT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&iT(e,i,l),l};const a6=ce("heading");exports.Heading=class extends ze{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var i;const e=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return F`<h1 class=${e}><slot></slot></h1>`;case 2:return F`<h2 class=${e}><slot></slot></h2>`;case 3:return F`<h3 class=${e}><slot></slot></h3>`;case 4:return F`<h4 class=${e}><slot></slot></h4>`;case 5:return F`<h5 class=${e}><slot></slot></h5>`;case 6:return F`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=Q`
3685
+ `];yi([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);yi([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);yi([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);yi([E()],exports.ToggleSwitch.prototype,"value",2);yi([E({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);yi([E({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);yi([Ce()],exports.ToggleSwitch.prototype,"toggleState",2);yi([E({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=yi([W(n6)],exports.ToggleSwitch);var tT=Object.defineProperty,rT=Object.getOwnPropertyDescriptor,k0=(n,e,i,o)=>{for(var l=o>1?void 0:o?rT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tT(e,i,l),l};const o6=ce("heading");exports.Heading=class extends ze{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var i;const e=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return F`<h1 class=${e}><slot></slot></h1>`;case 2:return F`<h2 class=${e}><slot></slot></h2>`;case 3:return F`<h3 class=${e}><slot></slot></h3>`;case 4:return F`<h4 class=${e}><slot></slot></h4>`;case 5:return F`<h5 class=${e}><slot></slot></h5>`;case 6:return F`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=Q`
3686
3686
  h1,
3687
3687
  h2,
3688
3688
  h3,
@@ -3727,7 +3727,7 @@ ${this.value}</textarea
3727
3727
  :host {
3728
3728
  display: block;
3729
3729
  }
3730
- `;O0([E({type:String})],exports.Heading.prototype,"size",2);O0([E({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=O0([W(a6)],exports.Heading);const s6=ce("inline-edit-field"),$0=ce("inline-edit-group"),l6=ce("inline-edit-controls"),c6=["edit","saving","error"],oT=["read","saved",...c6];class u6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class d6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class h6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class f6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class p6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const aT=Q`
3730
+ `;k0([E({type:String})],exports.Heading.prototype,"size",2);k0([E({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=k0([W(o6)],exports.Heading);const a6=ce("inline-edit-field"),O0=ce("inline-edit-group"),s6=ce("inline-edit-controls"),l6=["edit","saving","error"],iT=["read","saved",...l6];class c6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class u6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class d6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class h6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class f6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const nT=Q`
3731
3731
  :host {
3732
3732
  display: block;
3733
3733
  }
@@ -3821,7 +3821,7 @@ ${this.value}</textarea
3821
3821
 
3822
3822
  margin-top: var(--brz-inline-edit-controls-spacing);
3823
3823
  }
3824
- `,sT=Q`
3824
+ `,oT=Q`
3825
3825
  .inline-edit-group {
3826
3826
  display: inline-flex;
3827
3827
  flex-direction: column;
@@ -3832,7 +3832,7 @@ ${this.value}</textarea
3832
3832
  brz-inline-edit-controls {
3833
3833
  margin-top: var(--brz-inline-edit-controls-spacing);
3834
3834
  }
3835
- `,lT=Q`
3835
+ `,aT=Q`
3836
3836
  :host {
3837
3837
  --brz-inline-edit-controls-spacing: var(--brz-spacing-4);
3838
3838
 
@@ -3840,7 +3840,7 @@ ${this.value}</textarea
3840
3840
  flex-direction: column;
3841
3841
  row-gap: var(--brz-inline-edit-controls-spacing);
3842
3842
  }
3843
- `;var cT=Object.defineProperty,uT=Object.getOwnPropertyDescriptor,g6=(n,e,i,o)=>{for(var l=o>1?void 0:o?uT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cT(e,i,l),l};exports.InlineEditControls=class extends ze{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new u6)}handleSaveClick(){this.dispatchEvent(new d6)}render(){return F`
3843
+ `;var sT=Object.defineProperty,lT=Object.getOwnPropertyDescriptor,p6=(n,e,i,o)=>{for(var l=o>1?void 0:o?lT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sT(e,i,l),l};exports.InlineEditControls=class extends ze{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new c6)}handleSaveClick(){this.dispatchEvent(new u6)}render(){return F`
3844
3844
  <brz-split-row>
3845
3845
  <brz-button-group slot="right">
3846
3846
  ${["edit","error"].includes(this.mode)?F`
@@ -3865,7 +3865,7 @@ ${this.value}</textarea
3865
3865
  </brz-split-row>
3866
3866
 
3867
3867
  ${this.mode==="error"?F` <slot name="error"></slot> `:null}
3868
- `}};exports.InlineEditControls.styles=[lT];g6([E()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=g6([W(l6)],exports.InlineEditControls);var dT=Object.defineProperty,hT=Object.getOwnPropertyDescriptor,E0=(n,e,i,o)=>{for(var l=o>1?void 0:o?hT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dT(e,i,l),l};class Wa extends ze{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(e){switch(e){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(e){throw this.setMode("error"),e}}handleCancelClick(){this.setMode("read")}}E0([E({type:Boolean,reflect:!0})],Wa.prototype,"locked",2);E0([E({type:Function,attribute:!1})],Wa.prototype,"save",2);E0([Ce()],Wa.prototype,"mode",2);var fT=Object.defineProperty,pT=Object.getOwnPropertyDescriptor,_0=(n,e,i,o)=>{for(var l=o>1?void 0:o?pT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fT(e,i,l),l};exports.InlineEditGroup=class extends Wa{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var e;await((e=this.save)==null?void 0:e.call(this))}registerField(e){this.fields.push(e)}updated(e){super.updated(e),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),e.has("mode")&&this.dispatchEvent(new p6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return F`
3868
+ `}};exports.InlineEditControls.styles=[aT];p6([E()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=p6([W(s6)],exports.InlineEditControls);var cT=Object.defineProperty,uT=Object.getOwnPropertyDescriptor,$0=(n,e,i,o)=>{for(var l=o>1?void 0:o?uT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cT(e,i,l),l};class Wa extends ze{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(e){switch(e){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(e){throw this.setMode("error"),e}}handleCancelClick(){this.setMode("read")}}$0([E({type:Boolean,reflect:!0})],Wa.prototype,"locked",2);$0([E({type:Function,attribute:!1})],Wa.prototype,"save",2);$0([Ce()],Wa.prototype,"mode",2);var dT=Object.defineProperty,hT=Object.getOwnPropertyDescriptor,E0=(n,e,i,o)=>{for(var l=o>1?void 0:o?hT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dT(e,i,l),l};exports.InlineEditGroup=class extends Wa{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var e;await((e=this.save)==null?void 0:e.call(this))}registerField(e){this.fields.push(e)}updated(e){super.updated(e),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),e.has("mode")&&this.dispatchEvent(new f6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return F`
3869
3869
  <slot
3870
3870
  @brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
3871
3871
  >
@@ -3885,7 +3885,7 @@ ${this.value}</textarea
3885
3885
  </slot>
3886
3886
  `:null}
3887
3887
  </dl>
3888
- `}};exports.InlineEditGroup.styles=[sT];_0([E({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);_0([Ce()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=_0([W($0)],exports.InlineEditGroup);var gT=Object.defineProperty,vT=Object.getOwnPropertyDescriptor,yr=(n,e,i,o)=>{for(var l=o>1?void 0:o?vT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gT(e,i,l),l};const bT=n=>n instanceof bt&&!!n.options.length;exports.InlineEditField=class extends Wa{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.placeholder="None",this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var e;super.connectedCallback(),(e=this.group)==null||e.registerField(this)}updated(e){super.updated(e),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",e.has("mode")&&this.dispatchEvent(new f6({detail:{element:this,currentMode:this.mode,previousMode:e.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,bT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof bt||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const e=this.slottedInputLabel;if(!e){this.label=this.generateFieldLabelSlot();return}this.label=e}setOptionsFromChildren(e){const i=[...e.children];this.options=i.filter(o=>!!o.value).map(o=>{var l;return{value:o.value,label:((l=o.textContent)==null?void 0:l.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const e=[...this.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the default slot.");if(!(e instanceof exports.LabeledInput)&&!(e instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return e}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const e=[...this.fieldElement.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the RecordField default slot.");if(!(e instanceof tr))throw new Error("Expected a Breeze Input in the RecordField default slot.");return e}return this.fieldElement}generateFieldLabelSlot(){var e,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const o=document.createElement("brz-record-field-label");o.slot="label";const l=document.createElement("span");return l.textContent=((i=(e=this.inputElement.firstChild)==null?void 0:e.textContent)==null?void 0:i.trim())||"",o.appendChild(l),this.fieldElement.appendChild(o),o}}get friendlyValue(){var e;if(this.options.length){if(Array.isArray(this.value)){const o=this.value.map(d=>{var u;return(u=this.options.find(({value:v})=>v===d))==null?void 0:u.label}).filter(d=>!!d);return(o.length===this.value.length?o:this.value).map(d=>this.getSelectValueTemplate(d))}const i=(e=this.options.find(({value:o})=>o===this.value))==null?void 0:e.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(i||this.value):i||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value==null||this.value===""?this.placeholder:this.value}getSelectValueTemplate(e){return F`
3888
+ `}};exports.InlineEditGroup.styles=[oT];E0([E({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);E0([Ce()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=E0([W(O0)],exports.InlineEditGroup);var fT=Object.defineProperty,pT=Object.getOwnPropertyDescriptor,yr=(n,e,i,o)=>{for(var l=o>1?void 0:o?pT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fT(e,i,l),l};const gT=n=>n instanceof bt&&!!n.options.length;exports.InlineEditField=class extends Wa{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.placeholder="None",this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var e;super.connectedCallback(),(e=this.group)==null||e.registerField(this)}updated(e){super.updated(e),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",e.has("mode")&&this.dispatchEvent(new h6({detail:{element:this,currentMode:this.mode,previousMode:e.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,gT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof bt||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const e=this.slottedInputLabel;if(!e){this.label=this.generateFieldLabelSlot();return}this.label=e}setOptionsFromChildren(e){const i=[...e.children];this.options=i.filter(o=>!!o.value).map(o=>{var l;return{value:o.value,label:((l=o.textContent)==null?void 0:l.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const e=[...this.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the default slot.");if(!(e instanceof exports.LabeledInput)&&!(e instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return e}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const e=[...this.fieldElement.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the RecordField default slot.");if(!(e instanceof tr))throw new Error("Expected a Breeze Input in the RecordField default slot.");return e}return this.fieldElement}generateFieldLabelSlot(){var e,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const o=document.createElement("brz-record-field-label");o.slot="label";const l=document.createElement("span");return l.textContent=((i=(e=this.inputElement.firstChild)==null?void 0:e.textContent)==null?void 0:i.trim())||"",o.appendChild(l),this.fieldElement.appendChild(o),o}}get friendlyValue(){var e;if(this.options.length){if(Array.isArray(this.value)){const o=this.value.map(d=>{var u;return(u=this.options.find(({value:v})=>v===d))==null?void 0:u.label}).filter(d=>!!d);return(o.length===this.value.length?o:this.value).map(d=>this.getSelectValueTemplate(d))}const i=(e=this.options.find(({value:o})=>o===this.value))==null?void 0:e.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(i||this.value):i||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value==null||this.value===""?this.placeholder:this.value}getSelectValueTemplate(e){return F`
3889
3889
  <brz-lozenge theme="subtle" color="sapphire" size="small">
3890
3890
  ${e}
3891
3891
  </brz-lozenge>
@@ -3946,7 +3946,7 @@ ${this.value}</textarea
3946
3946
  </slot>
3947
3947
  `}
3948
3948
  </div>
3949
- `}get group(){return this.closest($0)}emitBroadcastEvent(){this.dispatchEvent(new h6({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[aT];yr([E({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);yr([E({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);yr([E({type:String,attribute:"placeholder",reflect:!0})],exports.InlineEditField.prototype,"placeholder",2);yr([Ce()],exports.InlineEditField.prototype,"labelPosition",2);yr([Ce()],exports.InlineEditField.prototype,"size",2);yr([Ce()],exports.InlineEditField.prototype,"value",2);yr([Ce()],exports.InlineEditField.prototype,"options",2);yr([Ce()],exports.InlineEditField.prototype,"label",2);yr([Ce()],exports.InlineEditField.prototype,"hasLabel",2);yr([Ce()],exports.InlineEditField.prototype,"isValueOverflowing",2);yr([Ir(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=yr([W(s6)],exports.InlineEditField);var mT=Object.defineProperty,yT=Object.getOwnPropertyDescriptor,Ua=(n,e,i,o)=>{for(var l=o>1?void 0:o?yT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mT(e,i,l),l};const v6=ce("side-navigation-item"),CT=Q`
3949
+ `}get group(){return this.closest(O0)}emitBroadcastEvent(){this.dispatchEvent(new d6({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[nT];yr([E({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);yr([E({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);yr([E({type:String,attribute:"placeholder",reflect:!0})],exports.InlineEditField.prototype,"placeholder",2);yr([Ce()],exports.InlineEditField.prototype,"labelPosition",2);yr([Ce()],exports.InlineEditField.prototype,"size",2);yr([Ce()],exports.InlineEditField.prototype,"value",2);yr([Ce()],exports.InlineEditField.prototype,"options",2);yr([Ce()],exports.InlineEditField.prototype,"label",2);yr([Ce()],exports.InlineEditField.prototype,"hasLabel",2);yr([Ce()],exports.InlineEditField.prototype,"isValueOverflowing",2);yr([Ir(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=yr([W(a6)],exports.InlineEditField);var vT=Object.defineProperty,bT=Object.getOwnPropertyDescriptor,Ua=(n,e,i,o)=>{for(var l=o>1?void 0:o?bT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vT(e,i,l),l};const g6=ce("side-navigation-item"),mT=Q`
3950
3950
  :host li {
3951
3951
  list-style: none;
3952
3952
  padding: var(--brz-spacing-2) 0;
@@ -3982,7 +3982,7 @@ ${this.value}</textarea
3982
3982
  <slot></slot>
3983
3983
  </a>
3984
3984
  </li>
3985
- `}};exports.SideNavigationItem.styles=[CT];Ua([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Ua([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Ua([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Ua([E({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Ua([W(v6)],exports.SideNavigationItem);var wT=Object.defineProperty,xT=Object.getOwnPropertyDescriptor,zT=(n,e,i,o)=>{for(var l=o>1?void 0:o?xT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wT(e,i,l),l};const b6=ce("side-navigation"),LT=Q`
3985
+ `}};exports.SideNavigationItem.styles=[mT];Ua([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Ua([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Ua([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Ua([E({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Ua([W(g6)],exports.SideNavigationItem);var yT=Object.defineProperty,CT=Object.getOwnPropertyDescriptor,wT=(n,e,i,o)=>{for(var l=o>1?void 0:o?CT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&yT(e,i,l),l};const v6=ce("side-navigation"),xT=Q`
3986
3986
  :host {
3987
3987
  display: block;
3988
3988
  height: 100%;
@@ -3996,15 +3996,15 @@ ${this.value}</textarea
3996
3996
  }
3997
3997
  `;exports.SideNavigation=class extends ze{render(){return F`<ul>
3998
3998
  <slot></slot>
3999
- </ul>`}};exports.SideNavigation.styles=[LT];exports.SideNavigation=zT([W(b6)],exports.SideNavigation);var ST=Object.defineProperty,MT=Object.getOwnPropertyDescriptor,m6=(n,e,i,o)=>{for(var l=o>1?void 0:o?MT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ST(e,i,l),l};const y6=ce("record-row"),C6=ce("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,Q`
3999
+ </ul>`}};exports.SideNavigation.styles=[xT];exports.SideNavigation=wT([W(v6)],exports.SideNavigation);var zT=Object.defineProperty,LT=Object.getOwnPropertyDescriptor,b6=(n,e,i,o)=>{for(var l=o>1?void 0:o?LT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zT(e,i,l),l};const m6=ce("record-row"),y6=ce("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,Q`
4000
4000
  :host(:nth-of-type(n + 2)) {
4001
4001
  margin-top: var(--brz-spacing-4);
4002
4002
  }
4003
- `];exports.RecordRow=m6([W(y6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=m6([W(C6)],exports.RecordRowLabel);var TT=Object.defineProperty,kT=Object.getOwnPropertyDescriptor,I0=(n,e,i,o)=>{for(var l=o>1?void 0:o?kT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&TT(e,i,l),l};const w6=ce("tab-panel");exports.TabPanel=class extends ze{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return F`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=Q`
4003
+ `];exports.RecordRow=b6([W(m6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=b6([W(y6)],exports.RecordRowLabel);var ST=Object.defineProperty,MT=Object.getOwnPropertyDescriptor,_0=(n,e,i,o)=>{for(var l=o>1?void 0:o?MT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ST(e,i,l),l};const C6=ce("tab-panel");exports.TabPanel=class extends ze{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return F`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=Q`
4004
4004
  :host(:not([shown])) #panel {
4005
4005
  display: none;
4006
4006
  }
4007
- `;I0([E({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);I0([E({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=I0([W(w6)],exports.TabPanel);class Zl extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class x6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var OT=Object.defineProperty,$T=Object.getOwnPropertyDescriptor,Wl=(n,e,i,o)=>{for(var l=o>1?void 0:o?$T(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&OT(e,i,l),l};const z6=ce("tab");exports.Tab=class extends ze{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(e){const i=e.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new Zl(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new x6(this.name)),super.updated(e)}render(){return this.link?F`<a href=${this.link} id="tab"><slot></slot></a>`:F`<div
4007
+ `;_0([E({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);_0([E({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=_0([W(C6)],exports.TabPanel);class Zl extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class w6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var TT=Object.defineProperty,kT=Object.getOwnPropertyDescriptor,Wl=(n,e,i,o)=>{for(var l=o>1?void 0:o?kT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&TT(e,i,l),l};const x6=ce("tab");exports.Tab=class extends ze{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(e){const i=e.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new Zl(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new w6(this.name)),super.updated(e)}render(){return this.link?F`<a href=${this.link} id="tab"><slot></slot></a>`:F`<div
4008
4008
  tabindex="0"
4009
4009
  role="tab"
4010
4010
  aria-selected=${this.selected}
@@ -4032,7 +4032,7 @@ ${this.value}</textarea
4032
4032
  #tab:hover {
4033
4033
  color: var(--brz-color-neutral-850);
4034
4034
  }
4035
- `;Wl([E({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Wl([E({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Wl([E({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Wl([W(z6)],exports.Tab);var ET=Object.defineProperty,_T=Object.getOwnPropertyDescriptor,Ul=(n,e,i,o)=>{for(var l=o>1?void 0:o?_T(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ET(e,i,l),l};const L6=ce("tab-bar");exports.TabBar=class extends ze{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,l,d;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this.tabs=[];return}let i=Array.from(e.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(u=>u instanceof exports.Tab&&!!u.name),this.controlled||(this.selected||(this.selected=(d=(l=this.tabs.find(u=>u.selected))==null?void 0:l.name)!=null?d:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(e){if(e.target instanceof exports.Tab){const{name:i}=e.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new Zl(i)))}}updated(e){e.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(e=>{const i=e.name===this.selected;i!==e.selected&&(e.selected=i)})}render(){return F`
4035
+ `;Wl([E({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Wl([E({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Wl([E({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Wl([W(x6)],exports.Tab);var OT=Object.defineProperty,$T=Object.getOwnPropertyDescriptor,Ul=(n,e,i,o)=>{for(var l=o>1?void 0:o?$T(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&OT(e,i,l),l};const z6=ce("tab-bar");exports.TabBar=class extends ze{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,l,d;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this.tabs=[];return}let i=Array.from(e.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(u=>u instanceof exports.Tab&&!!u.name),this.controlled||(this.selected||(this.selected=(d=(l=this.tabs.find(u=>u.selected))==null?void 0:l.name)!=null?d:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(e){if(e.target instanceof exports.Tab){const{name:i}=e.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new Zl(i)))}}updated(e){e.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(e=>{const i=e.name===this.selected;i!==e.selected&&(e.selected=i)})}render(){return F`
4036
4036
  <brz-row id="tabbar" @click=${this.handleClick}>
4037
4037
  <slot @slotchange=${this.handleSlotChange}></slot>
4038
4038
  </brz-row>
@@ -4054,7 +4054,7 @@ ${this.value}</textarea
4054
4054
  top: 0;
4055
4055
  z-index: 1;
4056
4056
  }
4057
- `;Ul([E({type:Boolean})],exports.TabBar.prototype,"controlled",2);Ul([E({type:String})],exports.TabBar.prototype,"selected",2);Ul([Ce()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Ul([W(L6)],exports.TabBar);var IT=Object.defineProperty,AT=Object.getOwnPropertyDescriptor,A0=(n,e,i,o)=>{for(var l=o>1?void 0:o?AT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&IT(e,i,l),l};const S6=ce("tabs");exports.Tabs=class extends ze{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,o,l;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!e){for(const d of e.assignedElements())if(d instanceof exports.TabPanel)this.panels.push(d);else{const u=d.querySelectorAll("brz-tab-panel"),v=d.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(u.length?u:v))}this.selected||(this.selected=(l=(o=this.panels.find(d=>d.shown))==null?void 0:o.name)!=null?l:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(e=>{const i=e.name===this.selected;i!==e.shown&&(e.shown=i)})}handleTabSelected(e){this.selected=e.detail.name,this.updatePanelVisibility(),e.stopPropagation(),this.dispatchEvent(new Zl(this.selected))}render(){return F`
4057
+ `;Ul([E({type:Boolean})],exports.TabBar.prototype,"controlled",2);Ul([E({type:String})],exports.TabBar.prototype,"selected",2);Ul([Ce()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Ul([W(z6)],exports.TabBar);var ET=Object.defineProperty,_T=Object.getOwnPropertyDescriptor,I0=(n,e,i,o)=>{for(var l=o>1?void 0:o?_T(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ET(e,i,l),l};const L6=ce("tabs");exports.Tabs=class extends ze{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,o,l;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!e){for(const d of e.assignedElements())if(d instanceof exports.TabPanel)this.panels.push(d);else{const u=d.querySelectorAll("brz-tab-panel"),v=d.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(u.length?u:v))}this.selected||(this.selected=(l=(o=this.panels.find(d=>d.shown))==null?void 0:o.name)!=null?l:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(e=>{const i=e.name===this.selected;i!==e.shown&&(e.shown=i)})}handleTabSelected(e){this.selected=e.detail.name,this.updatePanelVisibility(),e.stopPropagation(),this.dispatchEvent(new Zl(this.selected))}render(){return F`
4058
4058
  <brz-tab-bar
4059
4059
  controlled
4060
4060
  selected=${this.selected}
@@ -4067,7 +4067,7 @@ ${this.value}</textarea
4067
4067
  :host {
4068
4068
  background-color: var(--brz-color-white);
4069
4069
  }
4070
- `;A0([E({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);A0([Ce()],exports.Tabs.prototype,"panels",2);exports.Tabs=A0([W(S6)],exports.Tabs);var PT=Object.defineProperty,DT=Object.getOwnPropertyDescriptor,jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?DT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&PT(e,i,l),l};const M6=ce("badge");var T6=(n=>(n[n.subtle=0]="subtle",n[n.primary=1]="primary",n[n.important=2]="important",n))(T6||{});const NT=n=>!n||typeof n!="string"?!1:/^-?\d+$/.test(n),k6=5,O6=99;exports.Badge=class extends ze{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?O6:k6)}updated(e){super.updated(e),e.has("content")&&(this.content=NT(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return F` <span>${this.generateContent()}</span> `}};exports.Badge.styles=Q`
4070
+ `;I0([E({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);I0([Ce()],exports.Tabs.prototype,"panels",2);exports.Tabs=I0([W(L6)],exports.Tabs);var IT=Object.defineProperty,AT=Object.getOwnPropertyDescriptor,jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?AT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&IT(e,i,l),l};const S6=ce("badge");var M6=(n=>(n[n.subtle=0]="subtle",n[n.primary=1]="primary",n[n.important=2]="important",n))(M6||{});const PT=n=>!n||typeof n!="string"?!1:/^-?\d+$/.test(n),T6=5,k6=99;exports.Badge=class extends ze{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?k6:T6)}updated(e){super.updated(e),e.has("content")&&(this.content=PT(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return F` <span>${this.generateContent()}</span> `}};exports.Badge.styles=Q`
4071
4071
  :host {
4072
4072
  --brz-badge-background-color: var(--brz-color-neutral-250);
4073
4073
  --brz-badge-color: var(--brz-color-neutral-750);
@@ -4099,7 +4099,7 @@ ${this.value}</textarea
4099
4099
  --brz-badge-background-color: var(--brz-color-red-600);
4100
4100
  --brz-badge-color: var(--brz-color-white);
4101
4101
  }
4102
- `;jl([E({reflect:!0})],exports.Badge.prototype,"theme",2);jl([E({type:Number})],exports.Badge.prototype,"limit",2);jl([E({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=jl([W(M6)],exports.Badge);var HT=Math.ceil,RT=Math.max;function FT(n,e,i,o){for(var l=-1,d=RT(HT((e-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}var BT=FT,VT=d0,ZT=q2,WT=p0,UT=Aa;function jT(n,e,i){if(!UT(i))return!1;var o=typeof e;return(o=="number"?ZT(i)&&WT(e,i.length):o=="string"&&e in i)?VT(i[e],n):!1}var GT=jT,qT=BT,KT=GT,mc=op;function YT(n){return function(e,i,o){return o&&typeof o!="number"&&KT(e,i,o)&&(i=o=void 0),e=mc(e),i===void 0?(i=e,e=0):i=mc(i),o=o===void 0?e<i?1:-1:mc(o),qT(e,i,o,n)}}var XT=YT,JT=XT,QT=JT(),ek=QT;const Gl=u0(ek);function tk(n,e,i){return[1,null,...Gl(n-e,n+e+1),null,i]}function rk(n,e){return[1,null,...Gl(n-(e-3),n+1)]}function ik(n,e){return[...Gl(1,e-1),null,n]}function nk(n,e,i){return n>1+1+e*2&&n<i-1-e*2}function ok(n,e=1,i=1){const o=5+i*2;if(n<=o)return Gl(1,n+1);if(nk(e,i,n))return tk(e,i,n);if(e+(o-3)>=n)return rk(n,o);if(e<o)return ik(n,o)}var ak=Object.defineProperty,sk=Object.getOwnPropertyDescriptor,ti=(n,e,i,o)=>{for(var l=o>1?void 0:o?sk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ak(e,i,l),l};const P0=ce("basic-pagination"),D0=ce("pagination");class $6 extends CustomEvent{constructor(e){super(`${P0}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends ze{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new $6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return F`
4102
+ `;jl([E({reflect:!0})],exports.Badge.prototype,"theme",2);jl([E({type:Number})],exports.Badge.prototype,"limit",2);jl([E({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=jl([W(S6)],exports.Badge);var DT=Math.ceil,NT=Math.max;function HT(n,e,i,o){for(var l=-1,d=NT(DT((e-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}var RT=HT,FT=u0,BT=j2,VT=f0,ZT=Aa;function WT(n,e,i){if(!ZT(i))return!1;var o=typeof e;return(o=="number"?BT(i)&&VT(e,i.length):o=="string"&&e in i)?FT(i[e],n):!1}var UT=WT,jT=RT,GT=UT,bc=ip;function qT(n){return function(e,i,o){return o&&typeof o!="number"&&GT(e,i,o)&&(i=o=void 0),e=bc(e),i===void 0?(i=e,e=0):i=bc(i),o=o===void 0?e<i?1:-1:bc(o),jT(e,i,o,n)}}var KT=qT,YT=KT,XT=YT(),JT=XT;const Gl=c0(JT);function QT(n,e,i){return[1,null,...Gl(n-e,n+e+1),null,i]}function ek(n,e){return[1,null,...Gl(n-(e-3),n+1)]}function tk(n,e){return[...Gl(1,e-1),null,n]}function rk(n,e,i){return n>1+1+e*2&&n<i-1-e*2}function ik(n,e=1,i=1){const o=5+i*2;if(n<=o)return Gl(1,n+1);if(rk(e,i,n))return QT(e,i,n);if(e+(o-3)>=n)return ek(n,o);if(e<o)return tk(n,o)}var nk=Object.defineProperty,ok=Object.getOwnPropertyDescriptor,ti=(n,e,i,o)=>{for(var l=o>1?void 0:o?ok(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nk(e,i,l),l};const A0=ce("basic-pagination"),P0=ce("pagination");class O6 extends CustomEvent{constructor(e){super(`${A0}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends ze{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new O6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return F`
4103
4103
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
4104
4104
  <brz-button
4105
4105
  compact
@@ -4125,7 +4125,7 @@ ${this.value}</textarea
4125
4125
  brz-button-group {
4126
4126
  --brz-spacing-2: var(--brz-spacing-1);
4127
4127
  }
4128
- `;ti([E({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);ti([E({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=ti([W(P0)],exports.BasicPagination);class E6 extends CustomEvent{constructor(e,i){super(`${D0}-${e}`,{bubbles:!0,composed:!0,detail:{page:i}})}}exports.Pagination=class extends ze{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,i){this.dispatchEvent(new E6(e,i))}onPageChange(e){this.emit("page-change",e)}isCurrentPage(e){return e===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var e;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=ok(this.totalPages,this.currentPage,this.currentPageSiblings),F`
4128
+ `;ti([E({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);ti([E({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=ti([W(A0)],exports.BasicPagination);class $6 extends CustomEvent{constructor(e,i){super(`${P0}-${e}`,{bubbles:!0,composed:!0,detail:{page:i}})}}exports.Pagination=class extends ze{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,i){this.dispatchEvent(new $6(e,i))}onPageChange(e){this.emit("page-change",e)}isCurrentPage(e){return e===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var e;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=ik(this.totalPages,this.currentPage,this.currentPageSiblings),F`
4129
4129
  <brz-row role="navigation" aria-label="Pagination Navigation">
4130
4130
  <button
4131
4131
  role="link"
@@ -4226,7 +4226,7 @@ ${this.value}</textarea
4226
4226
  .page {
4227
4227
  padding: 0 var(--brz-spacing-2);
4228
4228
  }
4229
- `;ti([E({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);ti([E({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);ti([E({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);ti([Ce()],exports.Pagination.prototype,"currentPageSiblings",2);ti([Ce()],exports.Pagination.prototype,"totalPages",2);ti([Ce()],exports.Pagination.prototype,"pages",2);exports.Pagination=ti([W(D0)],exports.Pagination);var lk=Object.defineProperty,ck=Object.getOwnPropertyDescriptor,ja=(n,e,i,o)=>{for(var l=o>1?void 0:o?ck(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lk(e,i,l),l};const uk=["info","success","warning","error"],_6=ce("alert");class I6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends ze{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new I6("brz-alert-cleared"))}render(){return this.cleared?null:F`<div class="alert-container">
4229
+ `;ti([E({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);ti([E({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);ti([E({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);ti([Ce()],exports.Pagination.prototype,"currentPageSiblings",2);ti([Ce()],exports.Pagination.prototype,"totalPages",2);ti([Ce()],exports.Pagination.prototype,"pages",2);exports.Pagination=ti([W(P0)],exports.Pagination);var ak=Object.defineProperty,sk=Object.getOwnPropertyDescriptor,ja=(n,e,i,o)=>{for(var l=o>1?void 0:o?sk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ak(e,i,l),l};const lk=["info","success","warning","error"],E6=ce("alert");class _6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends ze{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new _6("brz-alert-cleared"))}render(){return this.cleared?null:F`<div class="alert-container">
4230
4230
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
4231
4231
  <div role="alert">
4232
4232
  ${this.title?F`<div><brz-heading>${this.title}</brz-heading></div>`:F``}
@@ -4302,7 +4302,7 @@ ${this.value}</textarea
4302
4302
  padding-top: 1px;
4303
4303
  }
4304
4304
 
4305
- ${a2(".clear-button",Q`
4305
+ ${n2(".clear-button",Q`
4306
4306
  align-self: start;
4307
4307
  margin-left: auto;
4308
4308
  margin-right: calc(0px - var(--brz-spacing-1));
@@ -4311,7 +4311,7 @@ ${this.value}</textarea
4311
4311
  .clear-button brz-icon {
4312
4312
  vertical-align: middle;
4313
4313
  }
4314
- `;ja([E({type:String,reflect:!0})],exports.Alert.prototype,"type",2);ja([E({type:Boolean})],exports.Alert.prototype,"clearable",2);ja([E()],exports.Alert.prototype,"title",2);ja([Ce()],exports.Alert.prototype,"cleared",2);exports.Alert=ja([W(_6)],exports.Alert);const N0={resources:R`
4314
+ `;ja([E({type:String,reflect:!0})],exports.Alert.prototype,"type",2);ja([E({type:Boolean})],exports.Alert.prototype,"clearable",2);ja([E()],exports.Alert.prototype,"title",2);ja([Ce()],exports.Alert.prototype,"cleared",2);exports.Alert=ja([W(E6)],exports.Alert);const D0={resources:R`
4315
4315
  <path fill-rule="evenodd" clip-rule="evenodd" d="M72.162 23C65.9749 23 60.9331 26.3858 60.9331 35.8357C60.9331 45.2714 65.9608 48.6715 72.162 48.6715C78.3519 48.6715 83.3909 45.2885 83.3909 35.8357C83.3909 26.4029 78.366 23 72.162 23" fill="#ECEEF3"/>
4316
4316
  <path d="M56.4495 56.9434C59.5234 55.7568 64.9414 54.1338 72.1812 54.1338C78.7417 54.1338 84.8193 55.6855 88.0841 56.9434C93.6087 59.077 96.3373 63.076 97.3676 67.212C97.9234 69.4654 97.0055 71.887 95.3408 72.6629C93.7195 73.4199 86.7451 73.8798 78.6699 74.0381C76.8525 68.8754 72.9778 64.0852 65.9467 61.3874C63.1121 60.3023 58.7997 59.0638 53.7502 58.2549C54.565 57.7649 55.4627 57.3244 56.4495 56.9434Z" fill="#ECEEF3"/>
4317
4317
  <path fill-rule="evenodd" clip-rule="evenodd" d="M40.1294 59.3822C29.7418 59.3822 21.9683 61.6959 17.5579 63.3874C9.61917 66.4329 5.70017 72.1418 4.23407 78.0459C3.43657 81.25 4.74559 84.6941 7.11794 85.8082C10.0139 87.1663 25.0495 87.8454 40.1093 87.8454C55.2496 87.8454 70.4222 87.1582 73.3584 85.796C75.7469 84.69 77.0639 81.2378 76.2664 78.0256C74.7883 72.1296 70.8733 66.4289 62.9466 63.3874C58.2624 61.5942 49.5423 59.3822 40.1294 59.3822" fill="#CACFD9"/>
@@ -4405,7 +4405,7 @@ ${this.value}</textarea
4405
4405
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
4406
4406
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
4407
4407
  <path d="M22.1426 62.8572C23.3212 62.8572 24.2855 63.8215 24.2855 65V73.5715C24.2855 74.75 23.3212 75.7143 22.1426 75.7143C20.964 75.7143 19.9998 74.75 19.9998 73.5715V65C19.9998 63.8215 20.964 62.8572 22.1426 62.8572Z" fill="white"/>
4408
- <path d="M24.2855 82.1429C24.2855 83.3264 23.3261 84.2857 22.1426 84.2857V84.2857C20.9591 84.2857 19.9998 83.3264 19.9998 82.1429V82.1429C19.9998 80.9594 20.9591 80 22.1426 80V80C23.3261 80 24.2855 80.9594 24.2855 82.1429V82.1429Z" fill="white"/>`},dk=Object.keys(N0);var hk=Object.defineProperty,fk=Object.getOwnPropertyDescriptor,ql=(n,e,i,o)=>{for(var l=o>1?void 0:o?fk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hk(e,i,l),l};const A6=ce("illustration");exports.Illustration=class extends ze{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=N0[this.illustration],i=Math.floor(Math.random()*100),o=`${this.illustration}Title${i}`,l=`${this.illustration}Desc${i}`;if(!e){console.warn(`Can't find illustration ${this.illustration}`);return}return F`<svg
4408
+ <path d="M24.2855 82.1429C24.2855 83.3264 23.3261 84.2857 22.1426 84.2857V84.2857C20.9591 84.2857 19.9998 83.3264 19.9998 82.1429V82.1429C19.9998 80.9594 20.9591 80 22.1426 80V80C23.3261 80 24.2855 80.9594 24.2855 82.1429V82.1429Z" fill="white"/>`},ck=Object.keys(D0);var uk=Object.defineProperty,dk=Object.getOwnPropertyDescriptor,ql=(n,e,i,o)=>{for(var l=o>1?void 0:o?dk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uk(e,i,l),l};const I6=ce("illustration");exports.Illustration=class extends ze{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=D0[this.illustration],i=Math.floor(Math.random()*100),o=`${this.illustration}Title${i}`,l=`${this.illustration}Desc${i}`;if(!e){console.warn(`Can't find illustration ${this.illustration}`);return}return F`<svg
4409
4409
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
4410
4410
  role="img"
4411
4411
  aria-labelledby=${`${o} ${l}`}
@@ -4421,13 +4421,13 @@ ${this.value}</textarea
4421
4421
  /* to get rid of extra height caused by white space */
4422
4422
  line-height: 0;
4423
4423
  }
4424
- `;ql([E({type:String})],exports.Illustration.prototype,"illustration",2);ql([E({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);ql([E({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=ql([W(A6)],exports.Illustration);var pk=Object.defineProperty,gk=Object.getOwnPropertyDescriptor,vk=(n,e,i,o)=>{for(var l=o>1?void 0:o?gk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pk(e,i,l),l};const P6=ce("header");exports.Header=class extends ze{render(){return F`<slot></slot>`}};exports.Header.styles=Q`
4424
+ `;ql([E({type:String})],exports.Illustration.prototype,"illustration",2);ql([E({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);ql([E({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=ql([W(I6)],exports.Illustration);var hk=Object.defineProperty,fk=Object.getOwnPropertyDescriptor,pk=(n,e,i,o)=>{for(var l=o>1?void 0:o?fk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hk(e,i,l),l};const A6=ce("header");exports.Header=class extends ze{render(){return F`<slot></slot>`}};exports.Header.styles=Q`
4425
4425
  :host {
4426
4426
  display: block;
4427
4427
  padding: var(--brz-spacing-5);
4428
4428
  margin-bottom: var(--brz-spacing-4);
4429
4429
  }
4430
- `;exports.Header=vk([W(P6)],exports.Header);var bk=Object.defineProperty,mk=Object.getOwnPropertyDescriptor,yk=(n,e,i,o)=>{for(var l=o>1?void 0:o?mk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&bk(e,i,l),l};const D6=ce("header-footer-page");exports.HeaderFooterPage=class extends ze{render(){return F`
4430
+ `;exports.Header=pk([W(A6)],exports.Header);var gk=Object.defineProperty,vk=Object.getOwnPropertyDescriptor,bk=(n,e,i,o)=>{for(var l=o>1?void 0:o?vk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gk(e,i,l),l};const P6=ce("header-footer-page");exports.HeaderFooterPage=class extends ze{render(){return F`
4431
4431
  <div id="container">
4432
4432
  <div id="header"><slot name="header"></slot></div>
4433
4433
  <div id="body"><slot></slot></div>
@@ -4451,7 +4451,7 @@ ${this.value}</textarea
4451
4451
  flex: 1 1;
4452
4452
  overflow-y: auto;
4453
4453
  }
4454
- `;exports.HeaderFooterPage=yk([W(D6)],exports.HeaderFooterPage);var Ck=Object.defineProperty,wk=Object.getOwnPropertyDescriptor,xk=(n,e,i,o)=>{for(var l=o>1?void 0:o?wk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Ck(e,i,l),l};const N6=ce("responsive-columns");exports.ResponsiveColumns=class extends ze{render(){return F`<slot></slot>`}};exports.ResponsiveColumns.styles=Q`
4454
+ `;exports.HeaderFooterPage=bk([W(P6)],exports.HeaderFooterPage);var mk=Object.defineProperty,yk=Object.getOwnPropertyDescriptor,Ck=(n,e,i,o)=>{for(var l=o>1?void 0:o?yk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mk(e,i,l),l};const D6=ce("responsive-columns");exports.ResponsiveColumns=class extends ze{render(){return F`<slot></slot>`}};exports.ResponsiveColumns.styles=Q`
4455
4455
  :host {
4456
4456
  display: flex;
4457
4457
  flex-direction: row;
@@ -4483,7 +4483,7 @@ ${this.value}</textarea
4483
4483
  margin-bottom: var(--brz-padding, var(--brz-spacing-8));
4484
4484
  }
4485
4485
  }
4486
- `;exports.ResponsiveColumns=xk([W(N6)],exports.ResponsiveColumns);var zk=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,Sk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Lk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zk(e,i,l),l};const H6=ce("footer");exports.Footer=class extends ze{render(){return F`<div class="container">
4486
+ `;exports.ResponsiveColumns=Ck([W(D6)],exports.ResponsiveColumns);var wk=Object.defineProperty,xk=Object.getOwnPropertyDescriptor,zk=(n,e,i,o)=>{for(var l=o>1?void 0:o?xk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wk(e,i,l),l};const N6=ce("footer");exports.Footer=class extends ze{render(){return F`<div class="container">
4487
4487
  <slot name="left"></slot>
4488
4488
  <slot name="middle"></slot>
4489
4489
  <slot name="right"></slot>
@@ -4494,7 +4494,7 @@ ${this.value}</textarea
4494
4494
  justify-content: space-between;
4495
4495
  padding: var(--brz-spacing-3) var(--brz-spacing-4);
4496
4496
  }
4497
- `;exports.Footer=Sk([W(H6)],exports.Footer);var Mk=Object.defineProperty,Tk=Object.getOwnPropertyDescriptor,Kl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Tk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Mk(e,i,l),l};const R6=ce("page-header");exports.PageHeader=class extends ze{constructor(){super(...arguments),this.hasTitle=!1}updated(e){var i;super.updated(e),this.hasTitle=!!((i=this.slottedTitle)!=null&&i.length||this.pageTitle)}render(){return F`
4497
+ `;exports.Footer=zk([W(N6)],exports.Footer);var Lk=Object.defineProperty,Sk=Object.getOwnPropertyDescriptor,Kl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Sk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Lk(e,i,l),l};const H6=ce("page-header");exports.PageHeader=class extends ze{constructor(){super(...arguments),this.hasTitle=!1}updated(e){var i;super.updated(e),this.hasTitle=!!((i=this.slottedTitle)!=null&&i.length||this.pageTitle)}render(){return F`
4498
4498
  <header>
4499
4499
  <slot name="decorator"></slot>
4500
4500
 
@@ -4554,7 +4554,7 @@ ${this.value}</textarea
4554
4554
  brz-heading.hidden {
4555
4555
  display: none;
4556
4556
  }
4557
- `;Kl([E({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Kl([Ce()],exports.PageHeader.prototype,"hasTitle",2);Kl([Xc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Kl([W(R6)],exports.PageHeader);var kk=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,Yl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ok(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kk(e,i,l),l};const F6=ce("grid"),$k=_a.map(n=>Q`
4557
+ `;Kl([E({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Kl([Ce()],exports.PageHeader.prototype,"hasTitle",2);Kl([Yc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Kl([W(H6)],exports.PageHeader);var Mk=Object.defineProperty,Tk=Object.getOwnPropertyDescriptor,Yl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Tk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Mk(e,i,l),l};const R6=ce("grid"),kk=_a.map(n=>Q`
4558
4558
  :host([spacing='${n}']),
4559
4559
  :host([col-spacing='${n}']) {
4560
4560
  --brz-grid-column-gap: var(--brz-spacing-${n});
@@ -4563,7 +4563,7 @@ ${this.value}</textarea
4563
4563
  :host([row-spacing='${n}']) {
4564
4564
  --brz-grid-row-gap: var(--brz-spacing-${n});
4565
4565
  }
4566
- `);exports.Grid=class extends po{render(){return F`<slot></slot>`}};var Df;exports.Grid.styles=[(Df=po.styles)!=null?Df:[],Q`
4566
+ `);exports.Grid=class extends po{render(){return F`<slot></slot>`}};var Af;exports.Grid.styles=[(Af=po.styles)!=null?Af:[],Q`
4567
4567
  :host {
4568
4568
  --brz-grid-columns: 12;
4569
4569
  --brz-grid-column-gap: var(--brz-spacing-5);
@@ -4576,34 +4576,34 @@ ${this.value}</textarea
4576
4576
  column-gap: var(--brz-grid-column-gap);
4577
4577
  row-gap: var(--brz-grid-row-gap);
4578
4578
  }
4579
- `,...$k];Yl([E({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Yl([E({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Yl([E({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Yl([W(F6)],exports.Grid);const gl={lg:960,md:640},Ek=Q`
4579
+ `,...kk];Yl([E({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Yl([E({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Yl([E({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Yl([W(R6)],exports.Grid);const gl={lg:960,md:640},Ok=Q`
4580
4580
  --brz-breakpoint-lg: ${gl.lg}px;
4581
4581
  --brz-breakpoint-md: ${gl.md}px;
4582
- `,yc=n=>(e,...i)=>Q`
4582
+ `,mc=n=>(e,...i)=>Q`
4583
4583
  @media (max-width: ${gl[n]}px) {
4584
4584
  ${Q(e,...i)}
4585
4585
  }
4586
- `,If=n=>(e,...i)=>Q`
4586
+ `,Ef=n=>(e,...i)=>Q`
4587
4587
  @media (min-width: ${gl[n]}px) {
4588
4588
  ${Q(e,...i)}
4589
4589
  }
4590
- `,vl={breakpointUp:If,breakpointDown:yc,sm:yc("md"),md:yc("lg"),lg:If("lg")};var _k=Object.defineProperty,Ik=Object.getOwnPropertyDescriptor,Xl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ik(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&_k(e,i,l),l};const B6=ce("grid-item"),Jl=[1,2,3,4,5,6,7,8,9,10,11,12],Ak=Jl.map(n=>Q`
4590
+ `,vl={breakpointUp:Ef,breakpointDown:mc,sm:mc("md"),md:mc("lg"),lg:Ef("lg")};var $k=Object.defineProperty,Ek=Object.getOwnPropertyDescriptor,Xl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ek(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&$k(e,i,l),l};const F6=ce("grid-item"),Jl=[1,2,3,4,5,6,7,8,9,10,11,12],_k=Jl.map(n=>Q`
4591
4591
  :host([cols='${n}']) {
4592
4592
  grid-column: auto / span ${n};
4593
4593
  }
4594
- `),Pk=Jl.map(n=>Q`
4594
+ `),Ik=Jl.map(n=>Q`
4595
4595
  ${vl.md`
4596
4596
  :host([md-cols='${n}']) {
4597
4597
  grid-column: auto / span ${n};
4598
4598
  }
4599
4599
  `}
4600
- `),Dk=Jl.map(n=>Q`
4600
+ `),Ak=Jl.map(n=>Q`
4601
4601
  ${vl.sm`
4602
4602
  :host([sm-cols='${n}']) {
4603
4603
  grid-column: auto / span ${n};
4604
4604
  }
4605
4605
  `}
4606
- `),Nk=Q`
4606
+ `),Pk=Q`
4607
4607
  ${vl.md`
4608
4608
  :host([cols='9']:not([md-cols])),
4609
4609
  :host([cols='8']:not([md-cols])),
@@ -4623,7 +4623,7 @@ ${this.value}</textarea
4623
4623
  :host {
4624
4624
  grid-column: auto / span 12;
4625
4625
  }
4626
- `,Ak,Nk,Pk,Dk];Xl([E({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Xl([E({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Xl([E({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Xl([W(B6)],exports.GridItem);const Hk=Q`
4626
+ `,_k,Pk,Ik,Ak];Xl([E({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Xl([E({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Xl([E({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Xl([W(F6)],exports.GridItem);const Dk=Q`
4627
4627
  :host {
4628
4628
  --brz-border-radius-default: 2px;
4629
4629
  --brz-border-radius-medium: 3px;
@@ -4631,12 +4631,12 @@ ${this.value}</textarea
4631
4631
 
4632
4632
  --brz-border-divider: 1px solid var(--brz-color-neutral-400);
4633
4633
  }
4634
- `,Rk=`.CodeMirror-hints{position:absolute;z-index:2000;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px #0003;border:1px solid silver;border-radius:3px;background:white;font-family:monospace;font-size:14px;font-weight:400;line-height:20px;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:4px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:hover,li.CodeMirror-hint-active{background:#eceef3;color:#000}.CodeMirror-hints::-webkit-scrollbar{width:11px}.CodeMirror-hints::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:50px;border:2px solid white}.CodeMirror-hints::-webkit-scrollbar-track{background-clip:padding-box}
4634
+ `,Nk=`.CodeMirror-hints{position:absolute;z-index:2000;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px #0003;border:1px solid silver;border-radius:3px;background:white;font-family:monospace;font-size:14px;font-weight:400;line-height:20px;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:4px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:hover,li.CodeMirror-hint-active{background:#eceef3;color:#000}.CodeMirror-hints::-webkit-scrollbar{width:11px}.CodeMirror-hints::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:50px;border:2px solid white}.CodeMirror-hints::-webkit-scrollbar-track{background-clip:padding-box}
4635
4635
  `;Q`
4636
- ${qr(Up)}
4637
- `;const Af=Q`
4638
- ${qr(Rk)}
4639
- `,Fk=Q`
4636
+ ${qr(Wp)}
4637
+ `;const _f=Q`
4638
+ ${qr(Nk)}
4639
+ `,Hk=Q`
4640
4640
  :host {
4641
4641
  --brz-color-neutral-900: #1b263a;
4642
4642
  --brz-color-neutral-850: #223049;
@@ -4829,7 +4829,7 @@ ${this.value}</textarea
4829
4829
 
4830
4830
  --brz-color-text-on-color: var(--brz-color-white);
4831
4831
  }
4832
- `,Bk=Q`
4832
+ `,Rk=Q`
4833
4833
  :host {
4834
4834
  --sp-border-radius-default: var(--brz-border-radius-default);
4835
4835
  --sp-border-radius-medium: var(--brz-border-radius-medium)
@@ -5094,14 +5094,14 @@ ${this.value}</textarea
5094
5094
  --sp-z-index-dropdown: var(--brz-z-index-dropdown);
5095
5095
  --sp-z-index-tooltip: var(--brz-z-index-tooltip);
5096
5096
  }
5097
- `,Vk=Q`
5097
+ `,Fk=Q`
5098
5098
  :host {
5099
5099
  // TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
5100
5100
  --brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
5101
5101
  --brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
5102
5102
  --brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
5103
5103
  }
5104
- `,Zk=Q`
5104
+ `,Bk=Q`
5105
5105
  :host {
5106
5106
  --brz-font-family-brand: Inter, sofiapro;
5107
5107
  --brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
@@ -5145,14 +5145,14 @@ ${this.value}</textarea
5145
5145
  --brz-text-block-max-width: 44rem;
5146
5146
  --brz-list-block-max-width: 40rem;
5147
5147
  }
5148
- `,Wk=Q`
5148
+ `,Vk=Q`
5149
5149
  :host {
5150
5150
  --brz-z-index-navigation: 1000;
5151
5151
  --brz-z-index-dialog: 1100;
5152
5152
  --brz-z-index-dropdown: 1200;
5153
5153
  --brz-z-index-tooltip: 1300;
5154
5154
  }
5155
- `;var Uk=Object.defineProperty,jk=Object.getOwnPropertyDescriptor,Gk=(n,e,i,o)=>{for(var l=o>1?void 0:o?jk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Uk(e,i,l),l};const V6=ce("global-styles");exports.GlobalStyles=class extends ze{connectedCallback(){super.connectedCallback(),this.injectGlobalStyles()}injectGlobalStyles(){const e=[];Af&&e.push(Af),e.forEach((i,o)=>{const l=i.toString(),d=`brz-injected-global-style-${o}`;if(!document.head.querySelector(`#${d}`)){const u=document.createElement("style");u.id=d,u.textContent=l,document.head.appendChild(u)}})}render(){return F`<slot></slot>`}};exports.GlobalStyles.styles=[Fk,M2,Zk,Hk,Vk,Wk,Ek,Bk,Q`
5155
+ `;var Zk=Object.defineProperty,Wk=Object.getOwnPropertyDescriptor,Uk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Wk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Zk(e,i,l),l};const B6=ce("global-styles");exports.GlobalStyles=class extends ze{connectedCallback(){super.connectedCallback(),this.injectGlobalStyles()}injectGlobalStyles(){const e=[];_f&&e.push(_f),e.forEach((i,o)=>{const l=i.toString(),d=`brz-injected-global-style-${o}`;if(!document.head.querySelector(`#${d}`)){const u=document.createElement("style");u.id=d,u.textContent=l,document.head.appendChild(u)}})}render(){return F`<slot></slot>`}};exports.GlobalStyles.styles=[Hk,L2,Bk,Dk,Fk,Vk,Ok,Rk,Q`
5156
5156
  :host {
5157
5157
  --brz-outline-color: var(--brz-color-primary-600);
5158
5158
  --brz-outline-style: solid;
@@ -5170,7 +5170,7 @@ ${this.value}</textarea
5170
5170
  font-weight: var(--brz-font-weight-normal);
5171
5171
  color: var(--brz-color-text);
5172
5172
  }
5173
- `];exports.GlobalStyles=Gk([W(V6)],exports.GlobalStyles);const Z6=ce("card"),W6=ce("card-header"),U6=ce("card-footer"),j6=ce("card-section-header"),qk=Q`
5173
+ `];exports.GlobalStyles=Uk([W(B6)],exports.GlobalStyles);const V6=ce("card"),Z6=ce("card-header"),W6=ce("card-footer"),U6=ce("card-section-header"),jk=Q`
5174
5174
  :host {
5175
5175
  --brz-card-background-color: var(--brz-color-white);
5176
5176
  --brz-card-color: var(--brz-color-text);
@@ -5208,7 +5208,7 @@ ${this.value}</textarea
5208
5208
 
5209
5209
  padding-bottom: calc(2 * var(--brz-card-body-balancer));
5210
5210
  }
5211
- `,Kk=n=>Q`
5211
+ `,Gk=n=>Q`
5212
5212
  :host([padding='${n}']) {
5213
5213
  --brz-card-padding: var(--brz-spacing-${n});
5214
5214
  }
@@ -5216,7 +5216,7 @@ ${this.value}</textarea
5216
5216
  :host([body-padding='${n}']) {
5217
5217
  --brz-card-body-padding: var(--brz-spacing-${n});
5218
5218
  }
5219
- `,Yk=_a.map(Kk),Xk=Q`
5219
+ `,qk=_a.map(Gk),Kk=Q`
5220
5220
  :host {
5221
5221
  --brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
5222
5222
  --brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -5264,7 +5264,7 @@ ${this.value}</textarea
5264
5264
  align-self: flex-start;
5265
5265
  flex-shrink: 0;
5266
5266
  }
5267
- `,Jk=Q`
5267
+ `,Yk=Q`
5268
5268
  :host {
5269
5269
  --brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
5270
5270
  --brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -5292,7 +5292,7 @@ ${this.value}</textarea
5292
5292
  align-self: flex-start;
5293
5293
  flex-shrink: 0;
5294
5294
  }
5295
- `;var Qk=Object.defineProperty,eO=Object.getOwnPropertyDescriptor,tO=(n,e,i,o)=>{for(var l=o>1?void 0:o?eO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Qk(e,i,l),l};exports.CardHeader=class extends ze{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return F`
5295
+ `;var Xk=Object.defineProperty,Jk=Object.getOwnPropertyDescriptor,Qk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Jk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Xk(e,i,l),l};exports.CardHeader=class extends ze{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return F`
5296
5296
  <div class="title">
5297
5297
  <slot></slot>
5298
5298
  </div>
@@ -5300,9 +5300,9 @@ ${this.value}</textarea
5300
5300
  <div class="aside">
5301
5301
  <slot name="aside"></slot>
5302
5302
  </div>
5303
- `}render(){return F` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[Xk];exports.CardHeader=tO([$a(W6)],exports.CardHeader);var rO=Object.defineProperty,iO=Object.getOwnPropertyDescriptor,G6=(n,e,i,o)=>{for(var l=o>1?void 0:o?iO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&rO(e,i,l),l};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return F`
5303
+ `}render(){return F` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[Kk];exports.CardHeader=Qk([$a(Z6)],exports.CardHeader);var eO=Object.defineProperty,tO=Object.getOwnPropertyDescriptor,j6=(n,e,i,o)=>{for(var l=o>1?void 0:o?tO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&eO(e,i,l),l};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return F`
5304
5304
  <div class="card-section-header">${this.contentTemplate}</div>
5305
- `}};G6([E({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=G6([$a(j6)],exports.CardSectionHeader);var nO=Object.defineProperty,oO=Object.getOwnPropertyDescriptor,aO=(n,e,i,o)=>{for(var l=o>1?void 0:o?oO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nO(e,i,l),l};exports.CardFooter=class extends ze{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return F`
5305
+ `}};j6([E({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=j6([$a(U6)],exports.CardSectionHeader);var rO=Object.defineProperty,iO=Object.getOwnPropertyDescriptor,nO=(n,e,i,o)=>{for(var l=o>1?void 0:o?iO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&rO(e,i,l),l};exports.CardFooter=class extends ze{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return F`
5306
5306
  <footer class="card-footer">
5307
5307
  <div>
5308
5308
  <slot></slot>
@@ -5312,7 +5312,7 @@ ${this.value}</textarea
5312
5312
  <slot name="aside"></slot>
5313
5313
  </div>
5314
5314
  </footer>
5315
- `}};exports.CardFooter.styles=[Jk];exports.CardFooter=aO([$a(U6)],exports.CardFooter);var sO=Object.defineProperty,lO=Object.getOwnPropertyDescriptor,Ga=(n,e,i,o)=>{for(var l=o>1?void 0:o?lO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sO(e,i,l),l};exports.Card=class extends po{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return F`
5315
+ `}};exports.CardFooter.styles=[Yk];exports.CardFooter=nO([$a(W6)],exports.CardFooter);var oO=Object.defineProperty,aO=Object.getOwnPropertyDescriptor,Ga=(n,e,i,o)=>{for(var l=o>1?void 0:o?aO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&oO(e,i,l),l};exports.Card=class extends po{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return F`
5316
5316
  <article class="card" part="card">
5317
5317
  <slot name="header"></slot>
5318
5318
 
@@ -5324,7 +5324,7 @@ ${this.value}</textarea
5324
5324
 
5325
5325
  <slot name="footer"></slot>
5326
5326
  </article>
5327
- `}};var Nf;exports.Card.styles=[(Nf=po.styles)!=null?Nf:[],qk,Yk];Ga([E({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);Ga([E({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);Ga([Ce()],exports.Card.prototype,"hasHeader",2);Ga([fi({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=Ga([$a(Z6)],exports.Card);var cO=Object.defineProperty,uO=Object.getOwnPropertyDescriptor,H0=(n,e,i,o)=>{for(var l=o>1?void 0:o?uO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cO(e,i,l),l};const q6=ce("paper");exports.Paper=class extends ze{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return F` <div class="container"><slot></slot></div> `}};exports.Paper.styles=Q`
5327
+ `}};var Pf;exports.Card.styles=[(Pf=po.styles)!=null?Pf:[],jk,qk];Ga([E({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);Ga([E({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);Ga([Ce()],exports.Card.prototype,"hasHeader",2);Ga([fi({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=Ga([$a(V6)],exports.Card);var sO=Object.defineProperty,lO=Object.getOwnPropertyDescriptor,N0=(n,e,i,o)=>{for(var l=o>1?void 0:o?lO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sO(e,i,l),l};const G6=ce("paper");exports.Paper=class extends ze{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return F` <div class="container"><slot></slot></div> `}};exports.Paper.styles=Q`
5328
5328
  :host {
5329
5329
  display: block;
5330
5330
  position: relative;
@@ -5348,4 +5348,4 @@ ${this.value}</textarea
5348
5348
  :host([has-border]) .container {
5349
5349
  border: 1px solid var(--brz-color-neutral-300);
5350
5350
  }
5351
- `;H0([E({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);H0([E({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=H0([W(q6)],exports.Paper);var dO=Object.defineProperty,hO=Object.getOwnPropertyDescriptor,we=(n,e,i,o)=>{for(var l=o>1?void 0:o?hO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dO(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=we([W("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=we([W("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=we([W("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=we([W("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=we([W("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=we([W("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=we([W("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=we([W("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=we([W("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=we([W("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=we([W("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=we([W("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=we([W("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=we([W("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=we([W("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=we([W("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=we([W("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=we([W("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=we([W("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=we([W("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=we([W("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=we([W("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=we([W("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=we([W("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=we([W("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=we([W("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=we([W("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=we([W("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=we([W("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=we([W("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=we([W("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=we([W("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=we([W("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=we([W("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=we([W("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=we([W("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=we([W("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=we([W("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=we([W("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=we([W("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=we([W("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=we([W("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=we([W("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=we([W("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=we([W("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=we([W("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=we([W("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=we([W("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends il{};exports.LegacyInputGuide=we([W("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=we([W("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=we([W("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=we([W("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=we([W("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=we([W("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=we([W("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=we([W("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=we([W("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=we([W("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=we([W("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=we([W("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=we([W("sp-labeled-input")],exports.LegacyLabeledInput);const K6=ce("date-time-range"),bl="a",fO="ccc d LLL",pO="ccc LLL d",R0="ZZZZ";var gO=Object.defineProperty,vO=Object.getOwnPropertyDescriptor,So=(n,e,i,o)=>{for(var l=o>1?void 0:o?vO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gO(e,i,l),l};class Zi extends ze{constructor(){super(...arguments),this.hideTimezone=!1,this.timeOnly=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";if(jM(this.start,this.end,this.timezone))return this.hideTimezone||!this.timezone?"All day":`All day (${bc(Ee.fromISO(this.start),this.timezone).toFormat(R0)})`;const e=bc(Ee.fromISO(this.start),this.timezone),i=bc(Ee.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?fO:pO,{start:l,end:d}=this.getStartAndEndDateTimeTokens(e,i,o),u=(b,M)=>{const{dateFormat:L,year:T,minutes:$,ampm:N,timezone:Y=""}=M,_=`${L?`${L}${T}, `:""}${$}${N}${Y}`;return b.toFormat(_)},v=Ef(u(e,l)),m=Ef(u(i,d));return`${v} - ${m}`}render(){return F`<span>${this.generateContent()}</span>`}}So([E({type:String})],Zi.prototype,"start",2);So([E({type:String})],Zi.prototype,"end",2);So([E({type:String})],Zi.prototype,"timezone",2);So([E({attribute:"hide-timezone",type:Boolean})],Zi.prototype,"hideTimezone",2);So([E({attribute:"time-only",type:Boolean})],Zi.prototype,"timeOnly",2);So([E({attribute:"date-format",type:String})],Zi.prototype,"dateFormat",2);var bO=Object.defineProperty,mO=Object.getOwnPropertyDescriptor,yO=(n,e,i,o)=>{for(var l=o>1?void 0:o?mO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&bO(e,i,l),l};exports.DateTimeRange=class extends Zi{getStartAndEndDateTimeTokens(e,i,o){const l={minutes:fl(e),year:pl(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&X5(e,i)?"":bl},d={minutes:fl(i),year:pl(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:bl,timezone:this.hideTimezone?"":` (${R0})`};return{start:l,end:d}}};exports.DateTimeRange=yO([W(K6)],exports.DateTimeRange);const Y6=ce("time-range");var CO=Object.defineProperty,wO=Object.getOwnPropertyDescriptor,xO=(n,e,i,o)=>{for(var l=o>1?void 0:o?wO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&CO(e,i,l),l};exports.TimeRange=class extends Zi{getStartAndEndDateTimeTokens(e,i,o){const l=e.hasSame(i,"day"),d=this.timeOnly?!1:!l,u=this.timeOnly||!l||!X5(e,i),v={minutes:fl(e),year:d?pl(e,i):"",dateFormat:d?o:"",ampm:u?bl:""},m={minutes:fl(i),year:d?pl(i,e):"",dateFormat:d?o:"",ampm:bl,timezone:this.hideTimezone?"":` (${R0})`};return{start:v,end:m}}};exports.TimeRange=xO([W(Y6)],exports.TimeRange);exports.ACTION_BAR=kp;exports.ALERT=_6;exports.AVATAR=z2;exports.AVATAR_GROUP=L2;exports.AlertEvent=I6;exports.AvatarSize=Qs;exports.AvatarTheme=S2;exports.BADGE=M6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=k6;exports.BADGE_NUMBER_LIMIT_DEFAULT=O6;exports.BASIC_PAGINATION=P0;exports.BUTTON=c0;exports.BUTTON_GROUP=P2;exports.BadgeTheme=T6;exports.BasicPaginationEvent=$6;exports.ButtonEvent=D2;exports.CARD=Z6;exports.CARD_FOOTER=U6;exports.CARD_HEADER=W6;exports.CARD_SECTION_HEADER=j6;exports.COLUMN=_2;exports.COMBO_BOX=mp;exports.COMBO_BOX_OPTION=yp;exports.CONFIRMATION_DIALOG=Ip;exports.ConfirmationDialogCancel=Ap;exports.ConfirmationDialogConfirm=Pp;exports.DATE_TIME_RANGE=K6;exports.DROPDOWN_BUTTON=Dp;exports.DROPDOWN_MENU=N2;exports.DeleteLozengeEvent=Kp;exports.FADE_IN_OUT=n2;exports.FOOTER=H6;exports.GLOBAL_STYLES=V6;exports.GRID=F6;exports.GRID_ITEM=B6;exports.HEADER=P6;exports.HEADER_FOOTER_PAGE=D6;exports.HEADING=a6;exports.ICON=k2;exports.ILLUSTRATION=A6;exports.INLINE_EDIT_CONTROLS=l6;exports.INLINE_EDIT_FIELD=s6;exports.INLINE_EDIT_GROUP=$0;exports.INPUT_CHECKBOX=Np;exports.INPUT_CODE=jp;exports.INPUT_ERROR=up;exports.INPUT_LABEL=hp;exports.INPUT_MULTISELECT=Yp;exports.INPUT_NUMBER=Fp;exports.INPUT_RADIO_GROUP=Zp;exports.INPUT_RADIO_OPTION=Wp;exports.INPUT_SELECT=Gp;exports.INPUT_TEXT=Hp;exports.INPUT_TEXTAREA=Rp;exports.INPUT_TIME=Q5;exports.InlineEditControlsCancelEvent=u6;exports.InlineEditControlsSaveEvent=d6;exports.InlineEditFieldBroadcastEvent=h6;exports.InlineEditFieldModeChangeEvent=f6;exports.InlineEditGroupModeChangeEvent=p6;exports.InputBase=tr;exports.InputSelectBase=bt;exports.InputSelectQueryChangeEvent=C0;exports.LABELED_INPUT=dp;exports.LINK=O2;exports.LINK_BUTTON=$2;exports.LOADING_SPINNER=A2;exports.LOZENGE=qp;exports.MENU=pp;exports.MENU_ITEM=nl;exports.MODAL=Mp;exports.MODAL_BODY=$p;exports.MODAL_FOOTER=Ep;exports.MODAL_HEADER=Op;exports.MenuBlurEvent=gp;exports.MenuItemSelectEvent=fp;exports.MenuSelectEvent=vp;exports.ModalCloseEvent=w0;exports.PAGE_HEADER=R6;exports.PAGINATION=D0;exports.PAPER=q6;exports.POPOVER=i0;exports.POPOVER_LISTENABLE_EVENT_TYPES=Js;exports.POPOVER_ROLES=n0;exports.POPOVER_TRIGGERS=y2;exports.PURE_POPOVER=m2;exports.PaginationEvent=E6;exports.PopoverEvent=C2;exports.RECORD_FIELD=lp;exports.RECORD_FIELD_LABEL=cp;exports.RECORD_ROW=y6;exports.RECORD_ROW_LABEL=C6;exports.RESPONSIVE_COLUMNS=N6;exports.ROW=E2;exports.SEARCH_MESSAGE_ID=Ta;exports.SELECT_ALL_ID=kr;exports.SIDE_NAVIGATION=b6;exports.SIDE_NAVIGATION_ITEM=v6;exports.SPACING_BASE=o0;exports.SPLIT_ROW=Tp;exports.TAB=z6;exports.TABS=S6;exports.TAB_BAR=L6;exports.TAB_PANEL=w6;exports.TIME_FORMAT=e6;exports.TIME_RANGE=Y6;exports.TIME_REGEX_12H=i6;exports.TIME_REGEX_24H=r6;exports.TIME_REGEX_LOOSE=t6;exports.TOGGLE_SWITCH=o6;exports.TOOLTIP=w2;exports.TabDeselectedEvent=x6;exports.TabSelectedEvent=Zl;exports.TooltipTheme=x2;exports.VIRTUAL_LIST=m0;exports.VirtualListUpdateEvent=sp;exports.alertTypes=uk;exports.buttonTypes=B9;exports.click=Xs;exports.columnSpans=Jl;exports.dropdownMenuSizes=U9;exports.focus=dn;exports.hover=$c;exports.iconNames=M9;exports.icons=a0;exports.illustrationNames=dk;exports.illustrations=N0;exports.inlineEditControlsModes=c6;exports.inlineEditModes=oT;exports.inputSizes=Kx;exports.labelPositions=Yx;exports.labelSizes=Xx;exports.linkButtonElementTypes=E9;exports.linkTypes=A9;exports.lozengeColors=VL;exports.lozengeSizes=WL;exports.lozengeThemes=ZL;exports.modalSizes=iL;exports.radioLayouts=TL;exports.resetLinkStyle=l0;exports.spacing=M2;exports.spacingLevels=_a;exports.syntaxes=NL;exports.timeSuffixes=YM;exports.transformIcon=T2;
5351
+ `;N0([E({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);N0([E({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=N0([W(G6)],exports.Paper);var cO=Object.defineProperty,uO=Object.getOwnPropertyDescriptor,we=(n,e,i,o)=>{for(var l=o>1?void 0:o?uO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cO(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=we([W("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=we([W("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=we([W("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=we([W("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=we([W("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=we([W("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=we([W("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=we([W("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=we([W("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=we([W("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=we([W("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=we([W("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=we([W("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=we([W("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=we([W("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=we([W("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=we([W("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=we([W("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=we([W("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=we([W("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=we([W("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=we([W("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=we([W("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=we([W("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=we([W("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=we([W("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=we([W("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=we([W("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=we([W("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=we([W("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=we([W("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=we([W("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=we([W("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=we([W("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=we([W("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=we([W("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=we([W("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=we([W("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=we([W("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=we([W("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=we([W("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=we([W("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=we([W("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=we([W("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=we([W("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=we([W("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=we([W("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=we([W("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends il{};exports.LegacyInputGuide=we([W("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=we([W("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=we([W("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=we([W("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=we([W("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=we([W("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=we([W("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=we([W("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=we([W("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=we([W("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=we([W("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=we([W("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=we([W("sp-labeled-input")],exports.LegacyLabeledInput);const q6=ce("date-time-range"),bl="a",dO="ccc d LLL",hO="ccc LLL d",H0="ZZZZ";var fO=Object.defineProperty,pO=Object.getOwnPropertyDescriptor,So=(n,e,i,o)=>{for(var l=o>1?void 0:o?pO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fO(e,i,l),l};class Zi extends ze{constructor(){super(...arguments),this.hideTimezone=!1,this.timeOnly=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";if(WM(this.start,this.end,this.timezone))return this.hideTimezone||!this.timezone?"All day":`All day (${vc(Ee.fromISO(this.start),this.timezone).toFormat(H0)})`;const e=vc(Ee.fromISO(this.start),this.timezone),i=vc(Ee.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?dO:hO,{start:l,end:d}=this.getStartAndEndDateTimeTokens(e,i,o),u=(b,M)=>{const{dateFormat:L,year:T,minutes:$,ampm:N,timezone:Y=""}=M,_=`${L?`${L}${T}, `:""}${$}${N}${Y}`;return b.toFormat(_)},v=Of(u(e,l)),m=Of(u(i,d));return`${v} - ${m}`}render(){return F`<span>${this.generateContent()}</span>`}}So([E({type:String})],Zi.prototype,"start",2);So([E({type:String})],Zi.prototype,"end",2);So([E({type:String})],Zi.prototype,"timezone",2);So([E({attribute:"hide-timezone",type:Boolean})],Zi.prototype,"hideTimezone",2);So([E({attribute:"time-only",type:Boolean})],Zi.prototype,"timeOnly",2);So([E({attribute:"date-format",type:String})],Zi.prototype,"dateFormat",2);var gO=Object.defineProperty,vO=Object.getOwnPropertyDescriptor,bO=(n,e,i,o)=>{for(var l=o>1?void 0:o?vO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gO(e,i,l),l};exports.DateTimeRange=class extends Zi{getStartAndEndDateTimeTokens(e,i,o){const l={minutes:fl(e),year:pl(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&Y5(e,i)?"":bl},d={minutes:fl(i),year:pl(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:bl,timezone:this.hideTimezone?"":` (${H0})`};return{start:l,end:d}}};exports.DateTimeRange=bO([W(q6)],exports.DateTimeRange);const K6=ce("time-range");var mO=Object.defineProperty,yO=Object.getOwnPropertyDescriptor,CO=(n,e,i,o)=>{for(var l=o>1?void 0:o?yO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mO(e,i,l),l};exports.TimeRange=class extends Zi{getStartAndEndDateTimeTokens(e,i,o){const l=e.hasSame(i,"day"),d=this.timeOnly?!1:!l,u=this.timeOnly||!l||!Y5(e,i),v={minutes:fl(e),year:d?pl(e,i):"",dateFormat:d?o:"",ampm:u?bl:""},m={minutes:fl(i),year:d?pl(i,e):"",dateFormat:d?o:"",ampm:bl,timezone:this.hideTimezone?"":` (${H0})`};return{start:v,end:m}}};exports.TimeRange=CO([W(K6)],exports.TimeRange);exports.ACTION_BAR=Mp;exports.ALERT=E6;exports.AVATAR=w2;exports.AVATAR_GROUP=x2;exports.AlertEvent=_6;exports.AvatarSize=Qs;exports.AvatarTheme=z2;exports.BADGE=S6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=T6;exports.BADGE_NUMBER_LIMIT_DEFAULT=k6;exports.BASIC_PAGINATION=A0;exports.BUTTON=l0;exports.BUTTON_GROUP=I2;exports.BadgeTheme=M6;exports.BasicPaginationEvent=O6;exports.ButtonEvent=A2;exports.CARD=V6;exports.CARD_FOOTER=W6;exports.CARD_HEADER=Z6;exports.CARD_SECTION_HEADER=U6;exports.COLUMN=$2;exports.COMBO_BOX=vp;exports.COMBO_BOX_OPTION=bp;exports.CONFIRMATION_DIALOG=Ep;exports.ConfirmationDialogCancel=_p;exports.ConfirmationDialogConfirm=Ip;exports.DATE_TIME_RANGE=q6;exports.DROPDOWN_BUTTON=Ap;exports.DROPDOWN_MENU=P2;exports.DeleteLozengeEvent=qp;exports.FADE_IN_OUT=r2;exports.FOOTER=N6;exports.GLOBAL_STYLES=B6;exports.GRID=R6;exports.GRID_ITEM=F6;exports.HEADER=A6;exports.HEADER_FOOTER_PAGE=P6;exports.HEADING=o6;exports.ICON=M2;exports.ILLUSTRATION=I6;exports.INLINE_EDIT_CONTROLS=s6;exports.INLINE_EDIT_FIELD=a6;exports.INLINE_EDIT_GROUP=O0;exports.INPUT_CHECKBOX=Pp;exports.INPUT_CODE=Up;exports.INPUT_ERROR=lp;exports.INPUT_LABEL=up;exports.INPUT_MULTISELECT=Kp;exports.INPUT_NUMBER=Hp;exports.INPUT_RADIO_GROUP=Bp;exports.INPUT_RADIO_OPTION=Vp;exports.INPUT_SELECT=jp;exports.INPUT_TEXT=Dp;exports.INPUT_TEXTAREA=Np;exports.INPUT_TIME=J5;exports.InlineEditControlsCancelEvent=c6;exports.InlineEditControlsSaveEvent=u6;exports.InlineEditFieldBroadcastEvent=d6;exports.InlineEditFieldModeChangeEvent=h6;exports.InlineEditGroupModeChangeEvent=f6;exports.InputBase=tr;exports.InputSelectBase=bt;exports.InputSelectQueryChangeEvent=y0;exports.LABELED_INPUT=cp;exports.LINK=T2;exports.LINK_BUTTON=k2;exports.LOADING_SPINNER=_2;exports.LOZENGE=Gp;exports.MENU=hp;exports.MENU_ITEM=nl;exports.MODAL=Lp;exports.MODAL_BODY=kp;exports.MODAL_FOOTER=Op;exports.MODAL_HEADER=Tp;exports.MenuBlurEvent=fp;exports.MenuItemSelectEvent=dp;exports.MenuSelectEvent=pp;exports.ModalCloseEvent=C0;exports.PAGE_HEADER=H6;exports.PAGINATION=P0;exports.PAPER=G6;exports.POPOVER=r0;exports.POPOVER_LISTENABLE_EVENT_TYPES=Js;exports.POPOVER_ROLES=i0;exports.POPOVER_TRIGGERS=b2;exports.PURE_POPOVER=v2;exports.PaginationEvent=$6;exports.PopoverEvent=m2;exports.RECORD_FIELD=ap;exports.RECORD_FIELD_LABEL=sp;exports.RECORD_ROW=m6;exports.RECORD_ROW_LABEL=y6;exports.RESPONSIVE_COLUMNS=D6;exports.ROW=O2;exports.SEARCH_MESSAGE_ID=Ta;exports.SELECT_ALL_ID=kr;exports.SIDE_NAVIGATION=v6;exports.SIDE_NAVIGATION_ITEM=g6;exports.SPACING_BASE=n0;exports.SPLIT_ROW=Sp;exports.TAB=x6;exports.TABS=L6;exports.TAB_BAR=z6;exports.TAB_PANEL=C6;exports.TIME_FORMAT=Q5;exports.TIME_RANGE=K6;exports.TIME_REGEX_12H=r6;exports.TIME_REGEX_24H=t6;exports.TIME_REGEX_LOOSE=e6;exports.TOGGLE_SWITCH=n6;exports.TOOLTIP=y2;exports.TabDeselectedEvent=w6;exports.TabSelectedEvent=Zl;exports.TooltipTheme=C2;exports.VIRTUAL_LIST=b0;exports.VirtualListUpdateEvent=op;exports.alertTypes=lk;exports.buttonTypes=F9;exports.click=Xs;exports.columnSpans=Jl;exports.dropdownMenuSizes=W9;exports.focus=dn;exports.hover=Oc;exports.iconNames=S9;exports.icons=o0;exports.illustrationNames=ck;exports.illustrations=D0;exports.inlineEditControlsModes=l6;exports.inlineEditModes=iT;exports.inputSizes=qx;exports.labelPositions=Kx;exports.labelSizes=Yx;exports.linkButtonElementTypes=$9;exports.linkTypes=I9;exports.lozengeColors=FL;exports.lozengeSizes=VL;exports.lozengeThemes=BL;exports.modalSizes=rL;exports.radioLayouts=ML;exports.resetLinkStyle=s0;exports.spacing=L2;exports.spacingLevels=_a;exports.syntaxes=PL;exports.timeSuffixes=qM;exports.transformIcon=S2;