@skedulo/breeze-ui 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/breeze-ui.cjs CHANGED
@@ -1,24 +1,24 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function vg(r,n){for(var o=0;o<n.length;o++){const c=n[o];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in r)){const p=Object.getOwnPropertyDescriptor(c,f);p&&Object.defineProperty(r,f,p.get?p:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function Lg(r,n){for(var o=0;o<n.length;o++){const c=n[o];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in r)){const p=Object.getOwnPropertyDescriptor(c,f);p&&Object.defineProperty(r,f,p.get?p:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const p1=window,Pd=p1.ShadowRoot&&(p1.ShadyCSS===void 0||p1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ad=Symbol(),ip=new WeakMap;class Rp{constructor(n,o,c){if(this._$cssResult$=!0,c!==Ad)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=o}get styleSheet(){let n=this.o;const o=this.t;if(Pd&&n===void 0){const c=o!==void 0&&o.length===1;c&&(n=ip.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&ip.set(o,n))}return n}toString(){return this.cssText}}const Np=r=>new Rp(typeof r=="string"?r:r+"",void 0,Ad),Se=(r,...n)=>{const o=r.length===1?r[0]:n.reduce((c,f,p)=>c+(b=>{if(b._$cssResult$===!0)return b.cssText;if(typeof b=="number")return b;throw Error("Value passed to 'css' function must be a 'css' function result: "+b+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(f)+r[p+1],r[0]);return new Rp(o,r,Ad)},bg=(r,n)=>{Pd?r.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):n.forEach(o=>{const c=document.createElement("style"),f=p1.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=o.cssText,r.appendChild(c)})},op=Pd?r=>r:r=>r instanceof CSSStyleSheet?(n=>{let o="";for(const c of n.cssRules)o+=c.cssText;return Np(o)})(r):r;/**
5
+ */const v1=window,Id=v1.ShadowRoot&&(v1.ShadyCSS===void 0||v1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Dd=Symbol(),sp=new WeakMap;class Wp{constructor(n,o,c){if(this._$cssResult$=!0,c!==Dd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=o}get styleSheet(){let n=this.o;const o=this.t;if(Id&&n===void 0){const c=o!==void 0&&o.length===1;c&&(n=sp.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&sp.set(o,n))}return n}toString(){return this.cssText}}const Zs=r=>new Wp(typeof r=="string"?r:r+"",void 0,Dd),ge=(r,...n)=>{const o=r.length===1?r[0]:n.reduce((c,f,p)=>c+(b=>{if(b._$cssResult$===!0)return b.cssText;if(typeof b=="number")return b;throw Error("Value passed to 'css' function must be a 'css' function result: "+b+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(f)+r[p+1],r[0]);return new Wp(o,r,Dd)},_g=(r,n)=>{Id?r.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):n.forEach(o=>{const c=document.createElement("style"),f=v1.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=o.cssText,r.appendChild(c)})},lp=Id?r=>r:r=>r instanceof CSSStyleSheet?(n=>{let o="";for(const c of n.cssRules)o+=c.cssText;return Zs(o)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var id;const y1=window,ap=y1.trustedTypes,mg=ap?ap.emptyScript:"",sp=y1.reactiveElementPolyfillSupport,vd={toAttribute(r,n){switch(n){case Boolean:r=r?mg:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,n){let o=r;switch(n){case Boolean:o=r!==null;break;case Number:o=r===null?null:Number(r);break;case Object:case Array:try{o=JSON.parse(r)}catch{o=null}}return o}},$p=(r,n)=>n!==r&&(n==n||r==r),od={attribute:!0,type:String,converter:vd,reflect:!1,hasChanged:$p};class Xl extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(n){var o;this.finalize(),((o=this.h)!==null&&o!==void 0?o:this.h=[]).push(n)}static get observedAttributes(){this.finalize();const n=[];return this.elementProperties.forEach((o,c)=>{const f=this._$Ep(c,o);f!==void 0&&(this._$Ev.set(f,c),n.push(f))}),n}static createProperty(n,o=od){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(n,o),!o.noAccessor&&!this.prototype.hasOwnProperty(n)){const c=typeof n=="symbol"?Symbol():"__"+n,f=this.getPropertyDescriptor(n,c,o);f!==void 0&&Object.defineProperty(this.prototype,n,f)}}static getPropertyDescriptor(n,o,c){return{get(){return this[o]},set(f){const p=this[n];this[o]=f,this.requestUpdate(n,p,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||od}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const n=Object.getPrototypeOf(this);if(n.finalize(),n.h!==void 0&&(this.h=[...n.h]),this.elementProperties=new Map(n.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const o=this.properties,c=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const f of c)this.createProperty(f,o[f])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(n){const o=[];if(Array.isArray(n)){const c=new Set(n.flat(1/0).reverse());for(const f of c)o.unshift(op(f))}else n!==void 0&&o.push(op(n));return o}static _$Ep(n,o){const c=o.attribute;return c===!1?void 0:typeof c=="string"?c:typeof n=="string"?n.toLowerCase():void 0}u(){var n;this._$E_=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(n=this.constructor.h)===null||n===void 0||n.forEach(o=>o(this))}addController(n){var o,c;((o=this._$ES)!==null&&o!==void 0?o:this._$ES=[]).push(n),this.renderRoot!==void 0&&this.isConnected&&((c=n.hostConnected)===null||c===void 0||c.call(n))}removeController(n){var o;(o=this._$ES)===null||o===void 0||o.splice(this._$ES.indexOf(n)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((n,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])})}createRenderRoot(){var n;const o=(n=this.shadowRoot)!==null&&n!==void 0?n:this.attachShadow(this.constructor.shadowRootOptions);return bg(o,this.constructor.elementStyles),o}connectedCallback(){var n;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostConnected)===null||c===void 0?void 0:c.call(o)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostDisconnected)===null||c===void 0?void 0:c.call(o)})}attributeChangedCallback(n,o,c){this._$AK(n,c)}_$EO(n,o,c=od){var f;const p=this.constructor._$Ep(n,c);if(p!==void 0&&c.reflect===!0){const b=(((f=c.converter)===null||f===void 0?void 0:f.toAttribute)!==void 0?c.converter:vd).toAttribute(o,c.type);this._$El=n,b==null?this.removeAttribute(p):this.setAttribute(p,b),this._$El=null}}_$AK(n,o){var c;const f=this.constructor,p=f._$Ev.get(n);if(p!==void 0&&this._$El!==p){const b=f.getPropertyOptions(p),k=typeof b.converter=="function"?{fromAttribute:b.converter}:((c=b.converter)===null||c===void 0?void 0:c.fromAttribute)!==void 0?b.converter:vd;this._$El=p,this[p]=k.fromAttribute(o,b.type),this._$El=null}}requestUpdate(n,o,c){let f=!0;n!==void 0&&(((c=c||this.constructor.getPropertyOptions(n)).hasChanged||$p)(this[n],o)?(this._$AL.has(n)||this._$AL.set(n,o),c.reflect===!0&&this._$El!==n&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(n,c))):f=!1),!this.isUpdatePending&&f&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(o){Promise.reject(o)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((f,p)=>this[p]=f),this._$Ei=void 0);let o=!1;const c=this._$AL;try{o=this.shouldUpdate(c),o?(this.willUpdate(c),(n=this._$ES)===null||n===void 0||n.forEach(f=>{var p;return(p=f.hostUpdate)===null||p===void 0?void 0:p.call(f)}),this.update(c)):this._$Ek()}catch(f){throw o=!1,this._$Ek(),f}o&&this._$AE(c)}willUpdate(n){}_$AE(n){var o;(o=this._$ES)===null||o===void 0||o.forEach(c=>{var f;return(f=c.hostUpdated)===null||f===void 0?void 0:f.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(n){return!0}update(n){this._$EC!==void 0&&(this._$EC.forEach((o,c)=>this._$EO(c,this[c],o)),this._$EC=void 0),this._$Ek()}updated(n){}firstUpdated(n){}}Xl.finalized=!0,Xl.elementProperties=new Map,Xl.elementStyles=[],Xl.shadowRootOptions={mode:"open"},sp==null||sp({ReactiveElement:Xl}),((id=y1.reactiveElementVersions)!==null&&id!==void 0?id:y1.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var ad;const w1=window,up=w1.trustedTypes,Sg=up?up.emptyScript:"",cp=w1.reactiveElementPolyfillSupport,yd={toAttribute(r,n){switch(n){case Boolean:r=r?Sg:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,n){let o=r;switch(n){case Boolean:o=r!==null;break;case Number:o=r===null?null:Number(r);break;case Object:case Array:try{o=JSON.parse(r)}catch{o=null}}return o}},Up=(r,n)=>n!==r&&(n==n||r==r),sd={attribute:!0,type:String,converter:yd,reflect:!1,hasChanged:Up};class Ql extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(n){var o;this.finalize(),((o=this.h)!==null&&o!==void 0?o:this.h=[]).push(n)}static get observedAttributes(){this.finalize();const n=[];return this.elementProperties.forEach((o,c)=>{const f=this._$Ep(c,o);f!==void 0&&(this._$Ev.set(f,c),n.push(f))}),n}static createProperty(n,o=sd){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(n,o),!o.noAccessor&&!this.prototype.hasOwnProperty(n)){const c=typeof n=="symbol"?Symbol():"__"+n,f=this.getPropertyDescriptor(n,c,o);f!==void 0&&Object.defineProperty(this.prototype,n,f)}}static getPropertyDescriptor(n,o,c){return{get(){return this[o]},set(f){const p=this[n];this[o]=f,this.requestUpdate(n,p,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||sd}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const n=Object.getPrototypeOf(this);if(n.finalize(),n.h!==void 0&&(this.h=[...n.h]),this.elementProperties=new Map(n.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const o=this.properties,c=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const f of c)this.createProperty(f,o[f])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(n){const o=[];if(Array.isArray(n)){const c=new Set(n.flat(1/0).reverse());for(const f of c)o.unshift(lp(f))}else n!==void 0&&o.push(lp(n));return o}static _$Ep(n,o){const c=o.attribute;return c===!1?void 0:typeof c=="string"?c:typeof n=="string"?n.toLowerCase():void 0}u(){var n;this._$E_=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(n=this.constructor.h)===null||n===void 0||n.forEach(o=>o(this))}addController(n){var o,c;((o=this._$ES)!==null&&o!==void 0?o:this._$ES=[]).push(n),this.renderRoot!==void 0&&this.isConnected&&((c=n.hostConnected)===null||c===void 0||c.call(n))}removeController(n){var o;(o=this._$ES)===null||o===void 0||o.splice(this._$ES.indexOf(n)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((n,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])})}createRenderRoot(){var n;const o=(n=this.shadowRoot)!==null&&n!==void 0?n:this.attachShadow(this.constructor.shadowRootOptions);return _g(o,this.constructor.elementStyles),o}connectedCallback(){var n;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostConnected)===null||c===void 0?void 0:c.call(o)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostDisconnected)===null||c===void 0?void 0:c.call(o)})}attributeChangedCallback(n,o,c){this._$AK(n,c)}_$EO(n,o,c=sd){var f;const p=this.constructor._$Ep(n,c);if(p!==void 0&&c.reflect===!0){const b=(((f=c.converter)===null||f===void 0?void 0:f.toAttribute)!==void 0?c.converter:yd).toAttribute(o,c.type);this._$El=n,b==null?this.removeAttribute(p):this.setAttribute(p,b),this._$El=null}}_$AK(n,o){var c;const f=this.constructor,p=f._$Ev.get(n);if(p!==void 0&&this._$El!==p){const b=f.getPropertyOptions(p),M=typeof b.converter=="function"?{fromAttribute:b.converter}:((c=b.converter)===null||c===void 0?void 0:c.fromAttribute)!==void 0?b.converter:yd;this._$El=p,this[p]=M.fromAttribute(o,b.type),this._$El=null}}requestUpdate(n,o,c){let f=!0;n!==void 0&&(((c=c||this.constructor.getPropertyOptions(n)).hasChanged||Up)(this[n],o)?(this._$AL.has(n)||this._$AL.set(n,o),c.reflect===!0&&this._$El!==n&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(n,c))):f=!1),!this.isUpdatePending&&f&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(o){Promise.reject(o)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((f,p)=>this[p]=f),this._$Ei=void 0);let o=!1;const c=this._$AL;try{o=this.shouldUpdate(c),o?(this.willUpdate(c),(n=this._$ES)===null||n===void 0||n.forEach(f=>{var p;return(p=f.hostUpdate)===null||p===void 0?void 0:p.call(f)}),this.update(c)):this._$Ek()}catch(f){throw o=!1,this._$Ek(),f}o&&this._$AE(c)}willUpdate(n){}_$AE(n){var o;(o=this._$ES)===null||o===void 0||o.forEach(c=>{var f;return(f=c.hostUpdated)===null||f===void 0?void 0:f.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(n){return!0}update(n){this._$EC!==void 0&&(this._$EC.forEach((o,c)=>this._$EO(c,this[c],o)),this._$EC=void 0),this._$Ek()}updated(n){}firstUpdated(n){}}Ql.finalized=!0,Ql.elementProperties=new Map,Ql.elementStyles=[],Ql.shadowRootOptions={mode:"open"},cp==null||cp({ReactiveElement:Ql}),((ad=w1.reactiveElementVersions)!==null&&ad!==void 0?ad:w1.reactiveElementVersions=[]).push("1.4.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var ad;const C1=window,ou=C1.trustedTypes,lp=ou?ou.createPolicy("lit-html",{createHTML:r=>r}):void 0,ia=`lit$${(Math.random()+"").slice(9)}$`,Ed="?"+ia,yg=`<${Ed}>`,au=document,x0=(r="")=>au.createComment(r),L0=r=>r===null||typeof r!="object"&&typeof r!="function",Hp=Array.isArray,Bp=r=>Hp(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",f0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,up=/-->/g,cp=/>/g,Hs=RegExp(`>|[
13
+ */var ld;const x1=window,au=x1.trustedTypes,fp=au?au.createPolicy("lit-html",{createHTML:r=>r}):void 0,ia=`lit$${(Math.random()+"").slice(9)}$`,Rd="?"+ia,kg=`<${Rd}>`,su=document,z0=(r="")=>su.createComment(r),L0=r=>r===null||typeof r!="object"&&typeof r!="function",Yp=Array.isArray,Zp=r=>Yp(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",d0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dp=/-->/g,hp=/>/g,Hs=RegExp(`>|[
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),fp=/'/g,dp=/"/g,Fp=/^(?:script|style|textarea|title)$/i,Wp=r=>(n,...o)=>({_$litType$:r,strings:n,values:o}),ee=Wp(1),G=Wp(2),mo=Symbol.for("lit-noChange"),Cr=Symbol.for("lit-nothing"),hp=new WeakMap,tu=au.createTreeWalker(au,129,null,!1),Up=(r,n)=>{const o=r.length-1,c=[];let f,p=n===2?"<svg>":"",b=f0;for(let S=0;S<o;S++){const O=r[S];let I,U,q=-1,X=0;for(;X<O.length&&(b.lastIndex=X,U=b.exec(O),U!==null);)X=b.lastIndex,b===f0?U[1]==="!--"?b=up:U[1]!==void 0?b=cp:U[2]!==void 0?(Fp.test(U[2])&&(f=RegExp("</"+U[2],"g")),b=Hs):U[3]!==void 0&&(b=Hs):b===Hs?U[0]===">"?(b=f!=null?f:f0,q=-1):U[1]===void 0?q=-2:(q=b.lastIndex-U[2].length,I=U[1],b=U[3]===void 0?Hs:U[3]==='"'?dp:fp):b===dp||b===fp?b=Hs:b===up||b===cp?b=f0:(b=Hs,f=void 0);const ce=b===Hs&&r[S+1].startsWith("/>")?" ":"";p+=b===f0?O+yg:q>=0?(c.push(I),O.slice(0,q)+"$lit$"+O.slice(q)+ia+ce):O+ia+(q===-2?(c.push(void 0),S):ce)}const k=p+(r[o]||"<?>")+(n===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[lp!==void 0?lp.createHTML(k):k,c]};class _0{constructor({strings:n,_$litType$:o},c){let f;this.parts=[];let p=0,b=0;const k=n.length-1,S=this.parts,[O,I]=Up(n,o);if(this.el=_0.createElement(O,c),tu.currentNode=this.el.content,o===2){const U=this.el.content,q=U.firstChild;q.remove(),U.append(...q.childNodes)}for(;(f=tu.nextNode())!==null&&S.length<k;){if(f.nodeType===1){if(f.hasAttributes()){const U=[];for(const q of f.getAttributeNames())if(q.endsWith("$lit$")||q.startsWith(ia)){const X=I[b++];if(U.push(q),X!==void 0){const ce=f.getAttribute(X.toLowerCase()+"$lit$").split(ia),we=/([.?@])?(.*)/.exec(X);S.push({type:1,index:p,name:we[2],strings:ce,ctor:we[1]==="."?Zp:we[1]==="?"?Vp:we[1]==="@"?Gp:P0})}else S.push({type:6,index:p})}for(const q of U)f.removeAttribute(q)}if(Fp.test(f.tagName)){const U=f.textContent.split(ia),q=U.length-1;if(q>0){f.textContent=ou?ou.emptyScript:"";for(let X=0;X<q;X++)f.append(U[X],x0()),tu.nextNode(),S.push({type:2,index:++p});f.append(U[q],x0())}}}else if(f.nodeType===8)if(f.data===Ed)S.push({type:2,index:p});else{let U=-1;for(;(U=f.data.indexOf(ia,U+1))!==-1;)S.push({type:7,index:p}),U+=ia.length-1}p++}}static createElement(n,o){const c=au.createElement("template");return c.innerHTML=n,c}}function Gs(r,n,o=r,c){var f,p,b,k;if(n===mo)return n;let S=c!==void 0?(f=o._$Co)===null||f===void 0?void 0:f[c]:o._$Cl;const O=L0(n)?void 0:n._$litDirective$;return(S==null?void 0:S.constructor)!==O&&((p=S==null?void 0:S._$AO)===null||p===void 0||p.call(S,!1),O===void 0?S=void 0:(S=new O(r),S._$AT(r,o,c)),c!==void 0?((b=(k=o)._$Co)!==null&&b!==void 0?b:k._$Co=[])[c]=S:o._$Cl=S),S!==void 0&&(n=Gs(r,S._$AS(r,n.values),S,c)),n}class Yp{constructor(n,o){this.u=[],this._$AN=void 0,this._$AD=n,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(n){var o;const{el:{content:c},parts:f}=this._$AD,p=((o=n==null?void 0:n.creationScope)!==null&&o!==void 0?o:au).importNode(c,!0);tu.currentNode=p;let b=tu.nextNode(),k=0,S=0,O=f[0];for(;O!==void 0;){if(k===O.index){let I;O.type===2?I=new fu(b,b.nextSibling,this,n):O.type===1?I=new O.ctor(b,O.name,O.strings,this,n):O.type===6&&(I=new qp(b,this,n)),this.u.push(I),O=f[++S]}k!==(O==null?void 0:O.index)&&(b=tu.nextNode(),k++)}return p}p(n){let o=0;for(const c of this.u)c!==void 0&&(c.strings!==void 0?(c._$AI(n,c,o),o+=c.strings.length-2):c._$AI(n[o])),o++}}class fu{constructor(n,o,c,f){var p;this.type=2,this._$AH=Cr,this._$AN=void 0,this._$AA=n,this._$AB=o,this._$AM=c,this.options=f,this._$Cm=(p=f==null?void 0:f.isConnected)===null||p===void 0||p}get _$AU(){var n,o;return(o=(n=this._$AM)===null||n===void 0?void 0:n._$AU)!==null&&o!==void 0?o:this._$Cm}get parentNode(){let n=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&n.nodeType===11&&(n=o.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,o=this){n=Gs(this,n,o),L0(n)?n===Cr||n==null||n===""?(this._$AH!==Cr&&this._$AR(),this._$AH=Cr):n!==this._$AH&&n!==mo&&this.g(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):Bp(n)?this.k(n):this.g(n)}O(n,o=this._$AB){return this._$AA.parentNode.insertBefore(n,o)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.O(n))}g(n){this._$AH!==Cr&&L0(this._$AH)?this._$AA.nextSibling.data=n:this.T(au.createTextNode(n)),this._$AH=n}$(n){var o;const{values:c,_$litType$:f}=n,p=typeof f=="number"?this._$AC(n):(f.el===void 0&&(f.el=_0.createElement(f.h,this.options)),f);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===p)this._$AH.p(c);else{const b=new Yp(p,this),k=b.v(this.options);b.p(c),this.T(k),this._$AH=b}}_$AC(n){let o=hp.get(n.strings);return o===void 0&&hp.set(n.strings,o=new _0(n)),o}k(n){Hp(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let c,f=0;for(const p of n)f===o.length?o.push(c=new fu(this.O(x0()),this.O(x0()),this,this.options)):c=o[f],c._$AI(p),f++;f<o.length&&(this._$AR(c&&c._$AB.nextSibling,f),o.length=f)}_$AR(n=this._$AA.nextSibling,o){var c;for((c=this._$AP)===null||c===void 0||c.call(this,!1,!0,o);n&&n!==this._$AB;){const f=n.nextSibling;n.remove(),n=f}}setConnected(n){var o;this._$AM===void 0&&(this._$Cm=n,(o=this._$AP)===null||o===void 0||o.call(this,n))}}class P0{constructor(n,o,c,f,p){this.type=1,this._$AH=Cr,this._$AN=void 0,this.element=n,this.name=o,this._$AM=f,this.options=p,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=Cr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,o=this,c,f){const p=this.strings;let b=!1;if(p===void 0)n=Gs(this,n,o,0),b=!L0(n)||n!==this._$AH&&n!==mo,b&&(this._$AH=n);else{const k=n;let S,O;for(n=p[0],S=0;S<p.length-1;S++)O=Gs(this,k[c+S],o,S),O===mo&&(O=this._$AH[S]),b||(b=!L0(O)||O!==this._$AH[S]),O===Cr?n=Cr:n!==Cr&&(n+=(O!=null?O:"")+p[S+1]),this._$AH[S]=O}b&&!f&&this.j(n)}j(n){n===Cr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n!=null?n:"")}}class Zp extends P0{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===Cr?void 0:n}}const Cg=ou?ou.emptyScript:"";class Vp extends P0{constructor(){super(...arguments),this.type=4}j(n){n&&n!==Cr?this.element.setAttribute(this.name,Cg):this.element.removeAttribute(this.name)}}class Gp extends P0{constructor(n,o,c,f,p){super(n,o,c,f,p),this.type=5}_$AI(n,o=this){var c;if((n=(c=Gs(this,n,o,0))!==null&&c!==void 0?c:Cr)===mo)return;const f=this._$AH,p=n===Cr&&f!==Cr||n.capture!==f.capture||n.once!==f.once||n.passive!==f.passive,b=n!==Cr&&(f===Cr||p);p&&this.element.removeEventListener(this.name,this,f),b&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){var o,c;typeof this._$AH=="function"?this._$AH.call((c=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&c!==void 0?c:this.element,n):this._$AH.handleEvent(n)}}class qp{constructor(n,o,c){this.element=n,this.type=6,this._$AN=void 0,this._$AM=o,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(n){Gs(this,n)}}const wg={P:"$lit$",A:ia,M:Ed,C:1,L:Up,R:Yp,D:Bp,V:Gs,I:fu,H:P0,N:Vp,U:Gp,B:Zp,F:qp},pp=C1.litHtmlPolyfillSupport;pp==null||pp(_0,fu),((ad=C1.litHtmlVersions)!==null&&ad!==void 0?ad:C1.litHtmlVersions=[]).push("2.4.0");const jp=(r,n,o)=>{var c,f;const p=(c=o==null?void 0:o.renderBefore)!==null&&c!==void 0?c:n;let b=p._$litPart$;if(b===void 0){const k=(f=o==null?void 0:o.renderBefore)!==null&&f!==void 0?f:null;p._$litPart$=b=new fu(n.insertBefore(x0(),k),k,void 0,o!=null?o:{})}return b._$AI(r),b};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),pp=/'/g,gp=/"/g,Vp=/^(?:script|style|textarea|title)$/i,Gp=r=>(n,...o)=>({_$litType$:r,strings:n,values:o}),ee=Gp(1),G=Gp(2),yo=Symbol.for("lit-noChange"),Cr=Symbol.for("lit-nothing"),vp=new WeakMap,ru=su.createTreeWalker(su,129,null,!1),qp=(r,n)=>{const o=r.length-1,c=[];let f,p=n===2?"<svg>":"",b=d0;for(let S=0;S<o;S++){const O=r[S];let I,U,q=-1,X=0;for(;X<O.length&&(b.lastIndex=X,U=b.exec(O),U!==null);)X=b.lastIndex,b===d0?U[1]==="!--"?b=dp:U[1]!==void 0?b=hp:U[2]!==void 0?(Vp.test(U[2])&&(f=RegExp("</"+U[2],"g")),b=Hs):U[3]!==void 0&&(b=Hs):b===Hs?U[0]===">"?(b=f!=null?f:d0,q=-1):U[1]===void 0?q=-2:(q=b.lastIndex-U[2].length,I=U[1],b=U[3]===void 0?Hs:U[3]==='"'?gp:pp):b===gp||b===pp?b=Hs:b===dp||b===hp?b=d0:(b=Hs,f=void 0);const ce=b===Hs&&r[S+1].startsWith("/>")?" ":"";p+=b===d0?O+kg:q>=0?(c.push(I),O.slice(0,q)+"$lit$"+O.slice(q)+ia+ce):O+ia+(q===-2?(c.push(void 0),S):ce)}const M=p+(r[o]||"<?>")+(n===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[fp!==void 0?fp.createHTML(M):M,c]};class _0{constructor({strings:n,_$litType$:o},c){let f;this.parts=[];let p=0,b=0;const M=n.length-1,S=this.parts,[O,I]=qp(n,o);if(this.el=_0.createElement(O,c),ru.currentNode=this.el.content,o===2){const U=this.el.content,q=U.firstChild;q.remove(),U.append(...q.childNodes)}for(;(f=ru.nextNode())!==null&&S.length<M;){if(f.nodeType===1){if(f.hasAttributes()){const U=[];for(const q of f.getAttributeNames())if(q.endsWith("$lit$")||q.startsWith(ia)){const X=I[b++];if(U.push(q),X!==void 0){const ce=f.getAttribute(X.toLowerCase()+"$lit$").split(ia),xe=/([.?@])?(.*)/.exec(X);S.push({type:1,index:p,name:xe[2],strings:ce,ctor:xe[1]==="."?Kp:xe[1]==="?"?Xp:xe[1]==="@"?Qp:A0})}else S.push({type:6,index:p})}for(const q of U)f.removeAttribute(q)}if(Vp.test(f.tagName)){const U=f.textContent.split(ia),q=U.length-1;if(q>0){f.textContent=au?au.emptyScript:"";for(let X=0;X<q;X++)f.append(U[X],z0()),ru.nextNode(),S.push({type:2,index:++p});f.append(U[q],z0())}}}else if(f.nodeType===8)if(f.data===Rd)S.push({type:2,index:p});else{let U=-1;for(;(U=f.data.indexOf(ia,U+1))!==-1;)S.push({type:7,index:p}),U+=ia.length-1}p++}}static createElement(n,o){const c=su.createElement("template");return c.innerHTML=n,c}}function qs(r,n,o=r,c){var f,p,b,M;if(n===yo)return n;let S=c!==void 0?(f=o._$Co)===null||f===void 0?void 0:f[c]:o._$Cl;const O=L0(n)?void 0:n._$litDirective$;return(S==null?void 0:S.constructor)!==O&&((p=S==null?void 0:S._$AO)===null||p===void 0||p.call(S,!1),O===void 0?S=void 0:(S=new O(r),S._$AT(r,o,c)),c!==void 0?((b=(M=o)._$Co)!==null&&b!==void 0?b:M._$Co=[])[c]=S:o._$Cl=S),S!==void 0&&(n=qs(r,S._$AS(r,n.values),S,c)),n}class jp{constructor(n,o){this.u=[],this._$AN=void 0,this._$AD=n,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(n){var o;const{el:{content:c},parts:f}=this._$AD,p=((o=n==null?void 0:n.creationScope)!==null&&o!==void 0?o:su).importNode(c,!0);ru.currentNode=p;let b=ru.nextNode(),M=0,S=0,O=f[0];for(;O!==void 0;){if(M===O.index){let I;O.type===2?I=new du(b,b.nextSibling,this,n):O.type===1?I=new O.ctor(b,O.name,O.strings,this,n):O.type===6&&(I=new Jp(b,this,n)),this.u.push(I),O=f[++S]}M!==(O==null?void 0:O.index)&&(b=ru.nextNode(),M++)}return p}p(n){let o=0;for(const c of this.u)c!==void 0&&(c.strings!==void 0?(c._$AI(n,c,o),o+=c.strings.length-2):c._$AI(n[o])),o++}}class du{constructor(n,o,c,f){var p;this.type=2,this._$AH=Cr,this._$AN=void 0,this._$AA=n,this._$AB=o,this._$AM=c,this.options=f,this._$Cm=(p=f==null?void 0:f.isConnected)===null||p===void 0||p}get _$AU(){var n,o;return(o=(n=this._$AM)===null||n===void 0?void 0:n._$AU)!==null&&o!==void 0?o:this._$Cm}get parentNode(){let n=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&n.nodeType===11&&(n=o.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,o=this){n=qs(this,n,o),L0(n)?n===Cr||n==null||n===""?(this._$AH!==Cr&&this._$AR(),this._$AH=Cr):n!==this._$AH&&n!==yo&&this.g(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):Zp(n)?this.k(n):this.g(n)}O(n,o=this._$AB){return this._$AA.parentNode.insertBefore(n,o)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.O(n))}g(n){this._$AH!==Cr&&L0(this._$AH)?this._$AA.nextSibling.data=n:this.T(su.createTextNode(n)),this._$AH=n}$(n){var o;const{values:c,_$litType$:f}=n,p=typeof f=="number"?this._$AC(n):(f.el===void 0&&(f.el=_0.createElement(f.h,this.options)),f);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===p)this._$AH.p(c);else{const b=new jp(p,this),M=b.v(this.options);b.p(c),this.T(M),this._$AH=b}}_$AC(n){let o=vp.get(n.strings);return o===void 0&&vp.set(n.strings,o=new _0(n)),o}k(n){Yp(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let c,f=0;for(const p of n)f===o.length?o.push(c=new du(this.O(z0()),this.O(z0()),this,this.options)):c=o[f],c._$AI(p),f++;f<o.length&&(this._$AR(c&&c._$AB.nextSibling,f),o.length=f)}_$AR(n=this._$AA.nextSibling,o){var c;for((c=this._$AP)===null||c===void 0||c.call(this,!1,!0,o);n&&n!==this._$AB;){const f=n.nextSibling;n.remove(),n=f}}setConnected(n){var o;this._$AM===void 0&&(this._$Cm=n,(o=this._$AP)===null||o===void 0||o.call(this,n))}}class A0{constructor(n,o,c,f,p){this.type=1,this._$AH=Cr,this._$AN=void 0,this.element=n,this.name=o,this._$AM=f,this.options=p,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=Cr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,o=this,c,f){const p=this.strings;let b=!1;if(p===void 0)n=qs(this,n,o,0),b=!L0(n)||n!==this._$AH&&n!==yo,b&&(this._$AH=n);else{const M=n;let S,O;for(n=p[0],S=0;S<p.length-1;S++)O=qs(this,M[c+S],o,S),O===yo&&(O=this._$AH[S]),b||(b=!L0(O)||O!==this._$AH[S]),O===Cr?n=Cr:n!==Cr&&(n+=(O!=null?O:"")+p[S+1]),this._$AH[S]=O}b&&!f&&this.j(n)}j(n){n===Cr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n!=null?n:"")}}class Kp extends A0{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===Cr?void 0:n}}const Mg=au?au.emptyScript:"";class Xp extends A0{constructor(){super(...arguments),this.type=4}j(n){n&&n!==Cr?this.element.setAttribute(this.name,Mg):this.element.removeAttribute(this.name)}}class Qp extends A0{constructor(n,o,c,f,p){super(n,o,c,f,p),this.type=5}_$AI(n,o=this){var c;if((n=(c=qs(this,n,o,0))!==null&&c!==void 0?c:Cr)===yo)return;const f=this._$AH,p=n===Cr&&f!==Cr||n.capture!==f.capture||n.once!==f.once||n.passive!==f.passive,b=n!==Cr&&(f===Cr||p);p&&this.element.removeEventListener(this.name,this,f),b&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){var o,c;typeof this._$AH=="function"?this._$AH.call((c=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&c!==void 0?c:this.element,n):this._$AH.handleEvent(n)}}class Jp{constructor(n,o,c){this.element=n,this.type=6,this._$AN=void 0,this._$AM=o,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(n){qs(this,n)}}const Og={P:"$lit$",A:ia,M:Rd,C:1,L:qp,R:jp,D:Zp,V:qs,I:du,H:A0,N:Xp,U:Qp,B:Kp,F:Jp},bp=x1.litHtmlPolyfillSupport;bp==null||bp(_0,du),((ld=x1.litHtmlVersions)!==null&&ld!==void 0?ld:x1.litHtmlVersions=[]).push("2.4.0");const e2=(r,n,o)=>{var c,f;const p=(c=o==null?void 0:o.renderBefore)!==null&&c!==void 0?c:n;let b=p._$litPart$;if(b===void 0){const M=(f=o==null?void 0:o.renderBefore)!==null&&f!==void 0?f:null;p._$litPart$=b=new du(n.insertBefore(z0(),M),M,void 0,o!=null?o:{})}return b._$AI(r),b};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var sd,ld;class Ue extends Xl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,o;const c=super.createRenderRoot();return(n=(o=this.renderOptions).renderBefore)!==null&&n!==void 0||(o.renderBefore=c.firstChild),c}update(n){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=jp(o,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!1)}render(){return mo}}Ue.finalized=!0,Ue._$litElement$=!0,(sd=globalThis.litElementHydrateSupport)===null||sd===void 0||sd.call(globalThis,{LitElement:Ue});const gp=globalThis.litElementPolyfillSupport;gp==null||gp({LitElement:Ue});((ld=globalThis.litElementVersions)!==null&&ld!==void 0?ld:globalThis.litElementVersions=[]).push("3.2.2");/**
21
+ */var ud,cd;class Ue extends Ql{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,o;const c=super.createRenderRoot();return(n=(o=this.renderOptions).renderBefore)!==null&&n!==void 0||(o.renderBefore=c.firstChild),c}update(n){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=e2(o,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!1)}render(){return yo}}Ue.finalized=!0,Ue._$litElement$=!0,(ud=globalThis.litElementHydrateSupport)===null||ud===void 0||ud.call(globalThis,{LitElement:Ue});const mp=globalThis.litElementPolyfillSupport;mp==null||mp({LitElement:Ue});((cd=globalThis.litElementVersions)!==null&&cd!==void 0?cd:globalThis.litElementVersions=[]).push("3.2.2");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
@@ -26,7 +26,7 @@
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */const xg=(r,n)=>n.kind==="method"&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(o){o.createProperty(n.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){typeof n.initializer=="function"&&(this[n.key]=n.initializer.call(this))},finisher(o){o.createProperty(n.key,r)}};function F(r){return(n,o)=>o!==void 0?((c,f,p)=>{f.constructor.createProperty(p,c)})(r,n,o):xg(r,n)}/**
29
+ */const Tg=(r,n)=>n.kind==="method"&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(o){o.createProperty(n.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){typeof n.initializer=="function"&&(this[n.key]=n.initializer.call(this))},finisher(o){o.createProperty(n.key,r)}};function F(r){return(n,o)=>o!==void 0?((c,f,p)=>{f.constructor.createProperty(p,c)})(r,n,o):Tg(r,n)}/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
@@ -34,19 +34,19 @@
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */const Id=({finisher:r,descriptor:n})=>(o,c)=>{var f;if(c===void 0){const p=(f=o.originalKey)!==null&&f!==void 0?f:o.key,b=n!=null?{kind:"method",placement:"prototype",key:p,descriptor:n(o.key)}:{...o,key:p};return r!=null&&(b.finisher=function(k){r(k,p)}),b}{const p=o.constructor;n!==void 0&&Object.defineProperty(o,c,n(c)),r==null||r(p,c)}};/**
37
+ */const Nd=({finisher:r,descriptor:n})=>(o,c)=>{var f;if(c===void 0){const p=(f=o.originalKey)!==null&&f!==void 0?f:o.key,b=n!=null?{kind:"method",placement:"prototype",key:p,descriptor:n(o.key)}:{...o,key:p};return r!=null&&(b.finisher=function(M){r(M,p)}),b}{const p=o.constructor;n!==void 0&&Object.defineProperty(o,c,n(c)),r==null||r(p,c)}};/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */function Lg(r){return Id({descriptor:n=>({async get(){var o;return await this.updateComplete,(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(r)},enumerable:!0,configurable:!0})})}/**
41
+ */function Pg(r){return Nd({descriptor:n=>({async get(){var o;return await this.updateComplete,(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(r)},enumerable:!0,configurable:!0})})}/**
42
42
  * @license
43
43
  * Copyright 2021 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */var ud;const _g=((ud=window.HTMLSlotElement)===null||ud===void 0?void 0:ud.prototype.assignedElements)!=null?(r,n)=>r.assignedElements(n):(r,n)=>r.assignedNodes(n).filter(o=>o.nodeType===Node.ELEMENT_NODE);function zg(r){const{slot:n,selector:o}=r!=null?r:{};return Id({descriptor:c=>({get(){var f;const p="slot"+(n?`[name=${n}]`:":not([name])"),b=(f=this.renderRoot)===null||f===void 0?void 0:f.querySelector(p),k=b!=null?_g(b,r):[];return o?k.filter(S=>S.matches(o)):k},enumerable:!0,configurable:!0})})}/**
45
+ */var fd;const Ag=((fd=window.HTMLSlotElement)===null||fd===void 0?void 0:fd.prototype.assignedElements)!=null?(r,n)=>r.assignedElements(n):(r,n)=>r.assignedNodes(n).filter(o=>o.nodeType===Node.ELEMENT_NODE);function Eg(r){const{slot:n,selector:o}=r!=null?r:{};return Nd({descriptor:c=>({get(){var f;const p="slot"+(n?`[name=${n}]`:":not([name])"),b=(f=this.renderRoot)===null||f===void 0?void 0:f.querySelector(p),M=b!=null?Ag(b,r):[];return o?M.filter(S=>S.matches(o)):M},enumerable:!0,configurable:!0})})}/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */function Sg(r,n,o){let c,f=r;return typeof r=="object"?(f=r.slot,c=r):c={flatten:n},o?zg({slot:f,flatten:n,selector:o}):Id({descriptor:p=>({get(){var b,k;const S="slot"+(f?`[name=${f}]`:":not([name])"),O=(b=this.renderRoot)===null||b===void 0?void 0:b.querySelector(S);return(k=O==null?void 0:O.assignedNodes(c))!==null&&k!==void 0?k:[]},enumerable:!0,configurable:!0})})}const Ee=r=>`brz-${r.toLowerCase()}`;var Mg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Dd=(r,n,o,c)=>{for(var f=c>1?void 0:c?kg(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Mg(n,o,f),f};const Kp=Ee("fade-in-out");exports.FadeInOut=class extends Ue{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(r){r.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?ee``:ee`<slot></slot>`}};exports.FadeInOut.styles=Se`
49
+ */function t2(r,n,o){let c,f=r;return typeof r=="object"?(f=r.slot,c=r):c={flatten:n},o?Eg({slot:f,flatten:n,selector:o}):Nd({descriptor:p=>({get(){var b,M;const S="slot"+(f?`[name=${f}]`:":not([name])"),O=(b=this.renderRoot)===null||b===void 0?void 0:b.querySelector(S);return(M=O==null?void 0:O.assignedNodes(c))!==null&&M!==void 0?M:[]},enumerable:!0,configurable:!0})})}const Ee=r=>`brz-${r.toLowerCase()}`;var Ig=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,$d=(r,n,o,c)=>{for(var f=c>1?void 0:c?Dg(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ig(n,o,f),f};const r2=Ee("fade-in-out");exports.FadeInOut=class extends Ue{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(r){r.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?ee``:ee`<slot></slot>`}};exports.FadeInOut.styles=ge`
50
50
  :host {
51
51
  opacity: 0;
52
52
  animation: fade-in 0.3s ease;
@@ -63,23 +63,64 @@
63
63
  opacity: 1;
64
64
  }
65
65
  }
66
- `;Dd([F({type:Boolean})],exports.FadeInOut.prototype,"shown",2);Dd([F({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Dd([Q(Kp)],exports.FadeInOut);/**
66
+ `;$d([F({type:Boolean})],exports.FadeInOut.prototype,"shown",2);$d([F({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=$d([Q(r2)],exports.FadeInOut);/**
67
67
  * @license
68
68
  * Copyright 2017 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */const P1={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},A1=r=>(...n)=>({_$litDirective$:r,values:n});class E1{constructor(n){}get _$AU(){return this._$AM._$AU}_$AT(n,o,c){this._$Ct=n,this._$AM=o,this._$Ci=c}_$AS(n,o){return this.update(n,o)}update(n,o){return this.render(...o)}}/**
70
+ */const E1={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},I1=r=>(...n)=>({_$litDirective$:r,values:n});class D1{constructor(n){}get _$AU(){return this._$AM._$AU}_$AT(n,o,c){this._$Ct=n,this._$AM=o,this._$Ci=c}_$AS(n,o){return this.update(n,o)}update(n,o){return this.render(...o)}}/**
71
71
  * @license
72
72
  * Copyright 2018 Google LLC
73
73
  * SPDX-License-Identifier: BSD-3-Clause
74
- */const Qa=A1(class extends E1{constructor(r){var n;if(super(r),r.type!==P1.ATTRIBUTE||r.name!=="class"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(n=>r[n]).join(" ")+" "}update(r,[n]){var o,c;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(p=>p!=="")));for(const p in n)n[p]&&!(!((o=this.st)===null||o===void 0)&&o.has(p))&&this.nt.add(p);return this.render(n)}const f=r.element.classList;this.nt.forEach(p=>{p in n||(f.remove(p),this.nt.delete(p))});for(const p in n){const b=!!n[p];b===this.nt.has(p)||((c=this.st)===null||c===void 0?void 0:c.has(p))||(b?(f.add(p),this.nt.add(p)):(f.remove(p),this.nt.delete(p)))}return mo}});/**
74
+ */const Xa=I1(class extends D1{constructor(r){var n;if(super(r),r.type!==E1.ATTRIBUTE||r.name!=="class"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(n=>r[n]).join(" ")+" "}update(r,[n]){var o,c;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(p=>p!=="")));for(const p in n)n[p]&&!(!((o=this.st)===null||o===void 0)&&o.has(p))&&this.nt.add(p);return this.render(n)}const f=r.element.classList;this.nt.forEach(p=>{p in n||(f.remove(p),this.nt.delete(p))});for(const p in n){const b=!!n[p];b===this.nt.has(p)||((c=this.st)===null||c===void 0?void 0:c.has(p))||(b?(f.add(p),this.nt.add(p)):(f.remove(p),this.nt.delete(p)))}return yo}});/**
75
75
  * @license
76
76
  * Copyright 2018 Google LLC
77
77
  * SPDX-License-Identifier: BSD-3-Clause
78
- */const Vt=r=>r!=null?r:Cr;var In="top",bi="bottom",mi="right",Dn="left",I1="auto",A0=[In,bi,mi,Dn],su="start",z0="end",Og="clippingParents",Xp="viewport",d0="popper",Tg="reference",vp=A0.reduce(function(r,n){return r.concat([n+"-"+su,n+"-"+z0])},[]),Qp=[].concat(A0,[I1]).reduce(function(r,n){return r.concat([n,n+"-"+su,n+"-"+z0])},[]),Pg="beforeRead",Ag="read",Eg="afterRead",Ig="beforeMain",Dg="main",Rg="afterMain",Ng="beforeWrite",$g="write",Hg="afterWrite",bd=[Pg,Ag,Eg,Ig,Dg,Rg,Ng,$g,Hg];function yo(r){return r?(r.nodeName||"").toLowerCase():null}function yi(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var n=r.ownerDocument;return n&&n.defaultView||window}return r}function qs(r){var n=yi(r).Element;return r instanceof n||r instanceof Element}function Jn(r){var n=yi(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Rd(r){if(typeof ShadowRoot=="undefined")return!1;var n=yi(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function Bg(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var c=n.styles[o]||{},f=n.attributes[o]||{},p=n.elements[o];!Jn(p)||!yo(p)||(Object.assign(p.style,c),Object.keys(f).forEach(function(b){var k=f[b];k===!1?p.removeAttribute(b):p.setAttribute(b,k===!0?"":k)}))})}function Fg(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(c){var f=n.elements[c],p=n.attributes[c]||{},b=Object.keys(n.styles.hasOwnProperty(c)?n.styles[c]:o[c]),k=b.reduce(function(S,O){return S[O]="",S},{});!Jn(f)||!yo(f)||(Object.assign(f.style,k),Object.keys(p).forEach(function(S){f.removeAttribute(S)}))})}}const Wg={name:"applyStyles",enabled:!0,phase:"write",fn:Bg,effect:Fg,requires:["computeStyles"]};function Ni(r){return r.split("-")[0]}var Zs=Math.max,w1=Math.min,lu=Math.round;function md(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Jp(){return!/^((?!chrome|android).)*safari/i.test(md())}function uu(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var c=r.getBoundingClientRect(),f=1,p=1;n&&Jn(r)&&(f=r.offsetWidth>0&&lu(c.width)/r.offsetWidth||1,p=r.offsetHeight>0&&lu(c.height)/r.offsetHeight||1);var b=qs(r)?yi(r):window,k=b.visualViewport,S=!Jp()&&o,O=(c.left+(S&&k?k.offsetLeft:0))/f,I=(c.top+(S&&k?k.offsetTop:0))/p,U=c.width/f,q=c.height/p;return{width:U,height:q,top:I,right:O+U,bottom:I+q,left:O,x:O,y:I}}function Nd(r){var n=uu(r),o=r.offsetWidth,c=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-c)<=1&&(c=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:c}}function e2(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&Rd(o)){var c=n;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function $i(r){return yi(r).getComputedStyle(r)}function Ug(r){return["table","td","th"].indexOf(yo(r))>=0}function Ja(r){return((qs(r)?r.ownerDocument:r.document)||window.document).documentElement}function D1(r){return yo(r)==="html"?r:r.assignedSlot||r.parentNode||(Rd(r)?r.host:null)||Ja(r)}function bp(r){return!Jn(r)||$i(r).position==="fixed"?null:r.offsetParent}function Yg(r){var n=/firefox/i.test(md()),o=/Trident/i.test(md());if(o&&Jn(r)){var c=$i(r);if(c.position==="fixed")return null}var f=D1(r);for(Rd(f)&&(f=f.host);Jn(f)&&["html","body"].indexOf(yo(f))<0;){var p=$i(f);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||n&&p.willChange==="filter"||n&&p.filter&&p.filter!=="none")return f;f=f.parentNode}return null}function E0(r){for(var n=yi(r),o=bp(r);o&&Ug(o)&&$i(o).position==="static";)o=bp(o);return o&&(yo(o)==="html"||yo(o)==="body"&&$i(o).position==="static")?n:o||Yg(r)||n}function $d(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function b0(r,n,o){return Zs(r,w1(n,o))}function Zg(r,n,o){var c=b0(r,n,o);return c>o?o:c}function t2(){return{top:0,right:0,bottom:0,left:0}}function r2(r){return Object.assign({},t2(),r)}function n2(r,n){return n.reduce(function(o,c){return o[c]=r,o},{})}var Vg=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,r2(typeof n!="number"?n:n2(n,A0))};function Gg(r){var n,o=r.state,c=r.name,f=r.options,p=o.elements.arrow,b=o.modifiersData.popperOffsets,k=Ni(o.placement),S=$d(k),O=[Dn,mi].indexOf(k)>=0,I=O?"height":"width";if(!(!p||!b)){var U=Vg(f.padding,o),q=Nd(p),X=S==="y"?In:Dn,ce=S==="y"?bi:mi,we=o.rects.reference[I]+o.rects.reference[S]-b[S]-o.rects.popper[I],me=b[S]-o.rects.reference[S],Ae=E0(p),Ie=Ae?S==="y"?Ae.clientHeight||0:Ae.clientWidth||0:0,pe=we/2-me/2,he=U[X],Te=Ie-q[I]-U[ce],He=Ie/2-q[I]/2+pe,Ye=b0(he,He,Te),et=S;o.modifiersData[c]=(n={},n[et]=Ye,n.centerOffset=Ye-He,n)}}function qg(r){var n=r.state,o=r.options,c=o.element,f=c===void 0?"[data-popper-arrow]":c;if(f!=null&&!(typeof f=="string"&&(f=n.elements.popper.querySelector(f),!f))){if({}.NODE_ENV!=="production"&&(Jn(f)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!e2(n.elements.popper,f)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}n.elements.arrow=f}}const jg={name:"arrow",enabled:!0,phase:"main",fn:Gg,effect:qg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cu(r){return r.split("-")[1]}var Kg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xg(r){var n=r.x,o=r.y,c=window,f=c.devicePixelRatio||1;return{x:lu(n*f)/f||0,y:lu(o*f)/f||0}}function mp(r){var n,o=r.popper,c=r.popperRect,f=r.placement,p=r.variation,b=r.offsets,k=r.position,S=r.gpuAcceleration,O=r.adaptive,I=r.roundOffsets,U=r.isFixed,q=b.x,X=q===void 0?0:q,ce=b.y,we=ce===void 0?0:ce,me=typeof I=="function"?I({x:X,y:we}):{x:X,y:we};X=me.x,we=me.y;var Ae=b.hasOwnProperty("x"),Ie=b.hasOwnProperty("y"),pe=Dn,he=In,Te=window;if(O){var He=E0(o),Ye="clientHeight",et="clientWidth";if(He===yi(o)&&(He=Ja(o),$i(He).position!=="static"&&k==="absolute"&&(Ye="scrollHeight",et="scrollWidth")),He=He,f===In||(f===Dn||f===mi)&&p===z0){he=bi;var nt=U&&He===Te&&Te.visualViewport?Te.visualViewport.height:He[Ye];we-=nt-c.height,we*=S?1:-1}if(f===Dn||(f===In||f===bi)&&p===z0){pe=mi;var ge=U&&He===Te&&Te.visualViewport?Te.visualViewport.width:He[et];X-=ge-c.width,X*=S?1:-1}}var ye=Object.assign({position:k},O&&Kg),it=I===!0?Xg({x:X,y:we}):{x:X,y:we};if(X=it.x,we=it.y,S){var W;return Object.assign({},ye,(W={},W[he]=Ie?"0":"",W[pe]=Ae?"0":"",W.transform=(Te.devicePixelRatio||1)<=1?"translate("+X+"px, "+we+"px)":"translate3d("+X+"px, "+we+"px, 0)",W))}return Object.assign({},ye,(n={},n[he]=Ie?we+"px":"",n[pe]=Ae?X+"px":"",n.transform="",n))}function Qg(r){var n=r.state,o=r.options,c=o.gpuAcceleration,f=c===void 0?!0:c,p=o.adaptive,b=p===void 0?!0:p,k=o.roundOffsets,S=k===void 0?!0:k;if({}.NODE_ENV!=="production"){var O=$i(n.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function(U){return O.indexOf(U)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
78
+ */const qt=r=>r!=null?r:Cr,E0=(r,n=ge``)=>{const o=ge`
79
+ outline: var(--brz-outline-color) var(--brz-outline-style)
80
+ var(--brz-outline-width);
81
+ outline-offset: var(--brz-outline-offset);
82
+ transition: var(--brz-outline-transition);
83
+ ${n};
84
+ `;return ge`
85
+ :host ${Zs(r)} {
86
+ outline-color: transparent;
87
+ }
88
+
89
+ :host ${Zs(r)}:focus-visible {
90
+ ${o};
91
+ }
92
+
93
+ @supports not selector(:focus-visible) {
94
+ :host ${Zs(r)}:focus {
95
+ ${o};
96
+ }
97
+ }
98
+ `},Rg=ge`
99
+ background: none;
100
+ border: 0;
101
+ border-radius: var(--brz-border-radius-default);
102
+ color: var(--brz-color-neutral-750);
103
+ cursor: pointer;
104
+ display: inline-flex;
105
+ font: inherit;
106
+ margin: 0;
107
+ padding: 0;
108
+ `,n2=(r,n=ge``)=>ge`
109
+ :host ${Zs(r)} {
110
+ ${Rg};
111
+ ${n};
112
+ }
113
+
114
+ :host ${Zs(r)}:hover {
115
+ color: var(--brz-color-neutral-850);
116
+ }
117
+
118
+ ${E0(r)}
119
+ `;var In="top",bi="bottom",mi="right",Dn="left",R1="auto",I0=[In,bi,mi,Dn],lu="start",S0="end",Ng="clippingParents",i2="viewport",h0="popper",$g="reference",yp=I0.reduce(function(r,n){return r.concat([n+"-"+lu,n+"-"+S0])},[]),o2=[].concat(I0,[R1]).reduce(function(r,n){return r.concat([n,n+"-"+lu,n+"-"+S0])},[]),Hg="beforeRead",Bg="read",Fg="afterRead",Wg="beforeMain",Ug="main",Yg="afterMain",Zg="beforeWrite",Vg="write",Gg="afterWrite",Cd=[Hg,Bg,Fg,Wg,Ug,Yg,Zg,Vg,Gg];function Co(r){return r?(r.nodeName||"").toLowerCase():null}function yi(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var n=r.ownerDocument;return n&&n.defaultView||window}return r}function js(r){var n=yi(r).Element;return r instanceof n||r instanceof Element}function Jn(r){var n=yi(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Hd(r){if(typeof ShadowRoot=="undefined")return!1;var n=yi(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function qg(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var c=n.styles[o]||{},f=n.attributes[o]||{},p=n.elements[o];!Jn(p)||!Co(p)||(Object.assign(p.style,c),Object.keys(f).forEach(function(b){var M=f[b];M===!1?p.removeAttribute(b):p.setAttribute(b,M===!0?"":M)}))})}function jg(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(c){var f=n.elements[c],p=n.attributes[c]||{},b=Object.keys(n.styles.hasOwnProperty(c)?n.styles[c]:o[c]),M=b.reduce(function(S,O){return S[O]="",S},{});!Jn(f)||!Co(f)||(Object.assign(f.style,M),Object.keys(p).forEach(function(S){f.removeAttribute(S)}))})}}const Kg={name:"applyStyles",enabled:!0,phase:"write",fn:qg,effect:jg,requires:["computeStyles"]};function $i(r){return r.split("-")[0]}var Vs=Math.max,z1=Math.min,uu=Math.round;function wd(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function a2(){return!/^((?!chrome|android).)*safari/i.test(wd())}function cu(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var c=r.getBoundingClientRect(),f=1,p=1;n&&Jn(r)&&(f=r.offsetWidth>0&&uu(c.width)/r.offsetWidth||1,p=r.offsetHeight>0&&uu(c.height)/r.offsetHeight||1);var b=js(r)?yi(r):window,M=b.visualViewport,S=!a2()&&o,O=(c.left+(S&&M?M.offsetLeft:0))/f,I=(c.top+(S&&M?M.offsetTop:0))/p,U=c.width/f,q=c.height/p;return{width:U,height:q,top:I,right:O+U,bottom:I+q,left:O,x:O,y:I}}function Bd(r){var n=cu(r),o=r.offsetWidth,c=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-c)<=1&&(c=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:c}}function s2(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&Hd(o)){var c=n;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function Hi(r){return yi(r).getComputedStyle(r)}function Xg(r){return["table","td","th"].indexOf(Co(r))>=0}function Qa(r){return((js(r)?r.ownerDocument:r.document)||window.document).documentElement}function N1(r){return Co(r)==="html"?r:r.assignedSlot||r.parentNode||(Hd(r)?r.host:null)||Qa(r)}function Cp(r){return!Jn(r)||Hi(r).position==="fixed"?null:r.offsetParent}function Qg(r){var n=/firefox/i.test(wd()),o=/Trident/i.test(wd());if(o&&Jn(r)){var c=Hi(r);if(c.position==="fixed")return null}var f=N1(r);for(Hd(f)&&(f=f.host);Jn(f)&&["html","body"].indexOf(Co(f))<0;){var p=Hi(f);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||n&&p.willChange==="filter"||n&&p.filter&&p.filter!=="none")return f;f=f.parentNode}return null}function D0(r){for(var n=yi(r),o=Cp(r);o&&Xg(o)&&Hi(o).position==="static";)o=Cp(o);return o&&(Co(o)==="html"||Co(o)==="body"&&Hi(o).position==="static")?n:o||Qg(r)||n}function Fd(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function m0(r,n,o){return Vs(r,z1(n,o))}function Jg(r,n,o){var c=m0(r,n,o);return c>o?o:c}function l2(){return{top:0,right:0,bottom:0,left:0}}function u2(r){return Object.assign({},l2(),r)}function c2(r,n){return n.reduce(function(o,c){return o[c]=r,o},{})}var ev=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,u2(typeof n!="number"?n:c2(n,I0))};function tv(r){var n,o=r.state,c=r.name,f=r.options,p=o.elements.arrow,b=o.modifiersData.popperOffsets,M=$i(o.placement),S=Fd(M),O=[Dn,mi].indexOf(M)>=0,I=O?"height":"width";if(!(!p||!b)){var U=ev(f.padding,o),q=Bd(p),X=S==="y"?In:Dn,ce=S==="y"?bi:mi,xe=o.rects.reference[I]+o.rects.reference[S]-b[S]-o.rects.popper[I],ye=b[S]-o.rects.reference[S],Ae=D0(p),Ie=Ae?S==="y"?Ae.clientHeight||0:Ae.clientWidth||0:0,pe=xe/2-ye/2,he=U[X],Te=Ie-q[I]-U[ce],He=Ie/2-q[I]/2+pe,Ye=m0(he,He,Te),et=S;o.modifiersData[c]=(n={},n[et]=Ye,n.centerOffset=Ye-He,n)}}function rv(r){var n=r.state,o=r.options,c=o.element,f=c===void 0?"[data-popper-arrow]":c;if(f!=null&&!(typeof f=="string"&&(f=n.elements.popper.querySelector(f),!f))){if({}.NODE_ENV!=="production"&&(Jn(f)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!s2(n.elements.popper,f)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}n.elements.arrow=f}}const nv={name:"arrow",enabled:!0,phase:"main",fn:tv,effect:rv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fu(r){return r.split("-")[1]}var iv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ov(r){var n=r.x,o=r.y,c=window,f=c.devicePixelRatio||1;return{x:uu(n*f)/f||0,y:uu(o*f)/f||0}}function wp(r){var n,o=r.popper,c=r.popperRect,f=r.placement,p=r.variation,b=r.offsets,M=r.position,S=r.gpuAcceleration,O=r.adaptive,I=r.roundOffsets,U=r.isFixed,q=b.x,X=q===void 0?0:q,ce=b.y,xe=ce===void 0?0:ce,ye=typeof I=="function"?I({x:X,y:xe}):{x:X,y:xe};X=ye.x,xe=ye.y;var Ae=b.hasOwnProperty("x"),Ie=b.hasOwnProperty("y"),pe=Dn,he=In,Te=window;if(O){var He=D0(o),Ye="clientHeight",et="clientWidth";if(He===yi(o)&&(He=Qa(o),Hi(He).position!=="static"&&M==="absolute"&&(Ye="scrollHeight",et="scrollWidth")),He=He,f===In||(f===Dn||f===mi)&&p===S0){he=bi;var nt=U&&He===Te&&Te.visualViewport?Te.visualViewport.height:He[Ye];xe-=nt-c.height,xe*=S?1:-1}if(f===Dn||(f===In||f===bi)&&p===S0){pe=mi;var ve=U&&He===Te&&Te.visualViewport?Te.visualViewport.width:He[et];X-=ve-c.width,X*=S?1:-1}}var Ce=Object.assign({position:M},O&&iv),it=I===!0?ov({x:X,y:xe}):{x:X,y:xe};if(X=it.x,xe=it.y,S){var W;return Object.assign({},Ce,(W={},W[he]=Ie?"0":"",W[pe]=Ae?"0":"",W.transform=(Te.devicePixelRatio||1)<=1?"translate("+X+"px, "+xe+"px)":"translate3d("+X+"px, "+xe+"px, 0)",W))}return Object.assign({},Ce,(n={},n[he]=Ie?xe+"px":"",n[pe]=Ae?X+"px":"",n.transform="",n))}function av(r){var n=r.state,o=r.options,c=o.gpuAcceleration,f=c===void 0?!0:c,p=o.adaptive,b=p===void 0?!0:p,M=o.roundOffsets,S=M===void 0?!0:M;if({}.NODE_ENV!=="production"){var O=Hi(n.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function(U){return O.indexOf(U)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
79
120
 
80
121
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
81
122
 
82
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var I={placement:Ni(n.placement),variation:cu(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:f,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,mp(Object.assign({},I,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:b,roundOffsets:S})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,mp(Object.assign({},I,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:S})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const Jg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qg,data:{}};var f1={passive:!0};function ev(r){var n=r.state,o=r.instance,c=r.options,f=c.scroll,p=f===void 0?!0:f,b=c.resize,k=b===void 0?!0:b,S=yi(n.elements.popper),O=[].concat(n.scrollParents.reference,n.scrollParents.popper);return p&&O.forEach(function(I){I.addEventListener("scroll",o.update,f1)}),k&&S.addEventListener("resize",o.update,f1),function(){p&&O.forEach(function(I){I.removeEventListener("scroll",o.update,f1)}),k&&S.removeEventListener("resize",o.update,f1)}}const tv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ev,data:{}};var rv={left:"right",right:"left",bottom:"top",top:"bottom"};function g1(r){return r.replace(/left|right|bottom|top/g,function(n){return rv[n]})}var nv={start:"end",end:"start"};function yp(r){return r.replace(/start|end/g,function(n){return nv[n]})}function Hd(r){var n=yi(r),o=n.pageXOffset,c=n.pageYOffset;return{scrollLeft:o,scrollTop:c}}function Bd(r){return uu(Ja(r)).left+Hd(r).scrollLeft}function iv(r,n){var o=yi(r),c=Ja(r),f=o.visualViewport,p=c.clientWidth,b=c.clientHeight,k=0,S=0;if(f){p=f.width,b=f.height;var O=Jp();(O||!O&&n==="fixed")&&(k=f.offsetLeft,S=f.offsetTop)}return{width:p,height:b,x:k+Bd(r),y:S}}function ov(r){var n,o=Ja(r),c=Hd(r),f=(n=r.ownerDocument)==null?void 0:n.body,p=Zs(o.scrollWidth,o.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),b=Zs(o.scrollHeight,o.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),k=-c.scrollLeft+Bd(r),S=-c.scrollTop;return $i(f||o).direction==="rtl"&&(k+=Zs(o.clientWidth,f?f.clientWidth:0)-p),{width:p,height:b,x:k,y:S}}function Fd(r){var n=$i(r),o=n.overflow,c=n.overflowX,f=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+c)}function i2(r){return["html","body","#document"].indexOf(yo(r))>=0?r.ownerDocument.body:Jn(r)&&Fd(r)?r:i2(D1(r))}function m0(r,n){var o;n===void 0&&(n=[]);var c=i2(r),f=c===((o=r.ownerDocument)==null?void 0:o.body),p=yi(c),b=f?[p].concat(p.visualViewport||[],Fd(c)?c:[]):c,k=n.concat(b);return f?k:k.concat(m0(D1(b)))}function yd(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function av(r,n){var o=uu(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function Cp(r,n,o){return n===Xp?yd(iv(r,o)):qs(n)?av(n,o):yd(ov(Ja(r)))}function sv(r){var n=m0(D1(r)),o=["absolute","fixed"].indexOf($i(r).position)>=0,c=o&&Jn(r)?E0(r):r;return qs(c)?n.filter(function(f){return qs(f)&&e2(f,c)&&yo(f)!=="body"}):[]}function lv(r,n,o,c){var f=n==="clippingParents"?sv(r):[].concat(n),p=[].concat(f,[o]),b=p[0],k=p.reduce(function(S,O){var I=Cp(r,O,c);return S.top=Zs(I.top,S.top),S.right=w1(I.right,S.right),S.bottom=w1(I.bottom,S.bottom),S.left=Zs(I.left,S.left),S},Cp(r,b,c));return k.width=k.right-k.left,k.height=k.bottom-k.top,k.x=k.left,k.y=k.top,k}function o2(r){var n=r.reference,o=r.element,c=r.placement,f=c?Ni(c):null,p=c?cu(c):null,b=n.x+n.width/2-o.width/2,k=n.y+n.height/2-o.height/2,S;switch(f){case In:S={x:b,y:n.y-o.height};break;case bi:S={x:b,y:n.y+n.height};break;case mi:S={x:n.x+n.width,y:k};break;case Dn:S={x:n.x-o.width,y:k};break;default:S={x:n.x,y:n.y}}var O=f?$d(f):null;if(O!=null){var I=O==="y"?"height":"width";switch(p){case su:S[O]=S[O]-(n[I]/2-o[I]/2);break;case z0:S[O]=S[O]+(n[I]/2-o[I]/2);break}}return S}function S0(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=c===void 0?r.placement:c,p=o.strategy,b=p===void 0?r.strategy:p,k=o.boundary,S=k===void 0?Og:k,O=o.rootBoundary,I=O===void 0?Xp:O,U=o.elementContext,q=U===void 0?d0:U,X=o.altBoundary,ce=X===void 0?!1:X,we=o.padding,me=we===void 0?0:we,Ae=r2(typeof me!="number"?me:n2(me,A0)),Ie=q===d0?Tg:d0,pe=r.rects.popper,he=r.elements[ce?Ie:q],Te=lv(qs(he)?he:he.contextElement||Ja(r.elements.popper),S,I,b),He=uu(r.elements.reference),Ye=o2({reference:He,element:pe,strategy:"absolute",placement:f}),et=yd(Object.assign({},pe,Ye)),nt=q===d0?et:He,ge={top:Te.top-nt.top+Ae.top,bottom:nt.bottom-Te.bottom+Ae.bottom,left:Te.left-nt.left+Ae.left,right:nt.right-Te.right+Ae.right},ye=r.modifiersData.offset;if(q===d0&&ye){var it=ye[f];Object.keys(ge).forEach(function(W){var E=[mi,bi].indexOf(W)>=0?1:-1,T=[In,bi].indexOf(W)>=0?"y":"x";ge[W]+=it[T]*E})}return ge}function uv(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=o.boundary,p=o.rootBoundary,b=o.padding,k=o.flipVariations,S=o.allowedAutoPlacements,O=S===void 0?Qp:S,I=cu(c),U=I?k?vp:vp.filter(function(ce){return cu(ce)===I}):A0,q=U.filter(function(ce){return O.indexOf(ce)>=0});q.length===0&&(q=U,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var X=q.reduce(function(ce,we){return ce[we]=S0(r,{placement:we,boundary:f,rootBoundary:p,padding:b})[Ni(we)],ce},{});return Object.keys(X).sort(function(ce,we){return X[ce]-X[we]})}function cv(r){if(Ni(r)===I1)return[];var n=g1(r);return[yp(r),n,yp(n)]}function fv(r){var n=r.state,o=r.options,c=r.name;if(!n.modifiersData[c]._skip){for(var f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,k=b===void 0?!0:b,S=o.fallbackPlacements,O=o.padding,I=o.boundary,U=o.rootBoundary,q=o.altBoundary,X=o.flipVariations,ce=X===void 0?!0:X,we=o.allowedAutoPlacements,me=n.options.placement,Ae=Ni(me),Ie=Ae===me,pe=S||(Ie||!ce?[g1(me)]:cv(me)),he=[me].concat(pe).reduce(function(Ft,ut){return Ft.concat(Ni(ut)===I1?uv(n,{placement:ut,boundary:I,rootBoundary:U,padding:O,flipVariations:ce,allowedAutoPlacements:we}):ut)},[]),Te=n.rects.reference,He=n.rects.popper,Ye=new Map,et=!0,nt=he[0],ge=0;ge<he.length;ge++){var ye=he[ge],it=Ni(ye),W=cu(ye)===su,E=[In,bi].indexOf(it)>=0,T=E?"width":"height",ne=S0(n,{placement:ye,boundary:I,rootBoundary:U,altBoundary:q,padding:O}),ve=E?W?mi:Dn:W?bi:In;Te[T]>He[T]&&(ve=g1(ve));var ot=g1(ve),At=[];if(p&&At.push(ne[it]<=0),k&&At.push(ne[ve]<=0,ne[ot]<=0),At.every(function(Ft){return Ft})){nt=ye,et=!1;break}Ye.set(ye,At)}if(et)for(var sr=ce?3:1,Bt=function(ut){var _e=he.find(function(Fe){var Ze=Ye.get(Fe);if(Ze)return Ze.slice(0,ut).every(function(at){return at})});if(_e)return nt=_e,"break"},dn=sr;dn>0;dn--){var er=Bt(dn);if(er==="break")break}n.placement!==nt&&(n.modifiersData[c]._skip=!0,n.placement=nt,n.reset=!0)}}const dv={name:"flip",enabled:!0,phase:"main",fn:fv,requiresIfExists:["offset"],data:{_skip:!1}};function wp(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function xp(r){return[In,mi,bi,Dn].some(function(n){return r[n]>=0})}function hv(r){var n=r.state,o=r.name,c=n.rects.reference,f=n.rects.popper,p=n.modifiersData.preventOverflow,b=S0(n,{elementContext:"reference"}),k=S0(n,{altBoundary:!0}),S=wp(b,c),O=wp(k,f,p),I=xp(S),U=xp(O);n.modifiersData[o]={referenceClippingOffsets:S,popperEscapeOffsets:O,isReferenceHidden:I,hasPopperEscaped:U},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":U})}const pv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hv};function gv(r,n,o){var c=Ni(r),f=[Dn,In].indexOf(c)>=0?-1:1,p=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,b=p[0],k=p[1];return b=b||0,k=(k||0)*f,[Dn,mi].indexOf(c)>=0?{x:k,y:b}:{x:b,y:k}}function vv(r){var n=r.state,o=r.options,c=r.name,f=o.offset,p=f===void 0?[0,0]:f,b=Qp.reduce(function(I,U){return I[U]=gv(U,n.rects,p),I},{}),k=b[n.placement],S=k.x,O=k.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=S,n.modifiersData.popperOffsets.y+=O),n.modifiersData[c]=b}const bv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vv};function mv(r){var n=r.state,o=r.name;n.modifiersData[o]=o2({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const yv={name:"popperOffsets",enabled:!0,phase:"read",fn:mv,data:{}};function Cv(r){return r==="x"?"y":"x"}function wv(r){var n=r.state,o=r.options,c=r.name,f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,k=b===void 0?!1:b,S=o.boundary,O=o.rootBoundary,I=o.altBoundary,U=o.padding,q=o.tether,X=q===void 0?!0:q,ce=o.tetherOffset,we=ce===void 0?0:ce,me=S0(n,{boundary:S,rootBoundary:O,padding:U,altBoundary:I}),Ae=Ni(n.placement),Ie=cu(n.placement),pe=!Ie,he=$d(Ae),Te=Cv(he),He=n.modifiersData.popperOffsets,Ye=n.rects.reference,et=n.rects.popper,nt=typeof we=="function"?we(Object.assign({},n.rects,{placement:n.placement})):we,ge=typeof nt=="number"?{mainAxis:nt,altAxis:nt}:Object.assign({mainAxis:0,altAxis:0},nt),ye=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,it={x:0,y:0};if(!!He){if(p){var W,E=he==="y"?In:Dn,T=he==="y"?bi:mi,ne=he==="y"?"height":"width",ve=He[he],ot=ve+me[E],At=ve-me[T],sr=X?-et[ne]/2:0,Bt=Ie===su?Ye[ne]:et[ne],dn=Ie===su?-et[ne]:-Ye[ne],er=n.elements.arrow,Ft=X&&er?Nd(er):{width:0,height:0},ut=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:t2(),_e=ut[E],Fe=ut[T],Ze=b0(0,Ye[ne],Ft[ne]),at=pe?Ye[ne]/2-sr-Ze-_e-ge.mainAxis:Bt-Ze-_e-ge.mainAxis,st=pe?-Ye[ne]/2+sr+Ze+Fe+ge.mainAxis:dn+Ze+Fe+ge.mainAxis,We=n.elements.arrow&&E0(n.elements.arrow),Gt=We?he==="y"?We.clientTop||0:We.clientLeft||0:0,qr=(W=ye==null?void 0:ye[he])!=null?W:0,lr=ve+at-qr-Gt,Xe=ve+st-qr,yt=b0(X?w1(ot,lr):ot,ve,X?Zs(At,Xe):At);He[he]=yt,it[he]=yt-ve}if(k){var kt,$r=he==="x"?In:Dn,rn=he==="x"?bi:mi,fr=He[Te],tt=Te==="y"?"height":"width",B=fr+me[$r],oe=fr-me[rn],V=[In,Dn].indexOf(Ae)!==-1,Qe=(kt=ye==null?void 0:ye[Te])!=null?kt:0,dr=V?B:fr-Ye[tt]-et[tt]-Qe+ge.altAxis,Mr=V?fr+Ye[tt]+et[tt]-Qe-ge.altAxis:oe,$n=X&&V?Zg(dr,fr,Mr):b0(X?dr:B,fr,X?Mr:oe);He[Te]=$n,it[Te]=$n-fr}n.modifiersData[c]=it}}const xv={name:"preventOverflow",enabled:!0,phase:"main",fn:wv,requiresIfExists:["offset"]};function Lv(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function _v(r){return r===yi(r)||!Jn(r)?Hd(r):Lv(r)}function zv(r){var n=r.getBoundingClientRect(),o=lu(n.width)/r.offsetWidth||1,c=lu(n.height)/r.offsetHeight||1;return o!==1||c!==1}function Sv(r,n,o){o===void 0&&(o=!1);var c=Jn(n),f=Jn(n)&&zv(n),p=Ja(n),b=uu(r,f,o),k={scrollLeft:0,scrollTop:0},S={x:0,y:0};return(c||!c&&!o)&&((yo(n)!=="body"||Fd(p))&&(k=_v(n)),Jn(n)?(S=uu(n,!0),S.x+=n.clientLeft,S.y+=n.clientTop):p&&(S.x=Bd(p))),{x:b.left+k.scrollLeft-S.x,y:b.top+k.scrollTop-S.y,width:b.width,height:b.height}}function Mv(r){var n=new Map,o=new Set,c=[];r.forEach(function(p){n.set(p.name,p)});function f(p){o.add(p.name);var b=[].concat(p.requires||[],p.requiresIfExists||[]);b.forEach(function(k){if(!o.has(k)){var S=n.get(k);S&&f(S)}}),c.push(p)}return r.forEach(function(p){o.has(p.name)||f(p)}),c}function kv(r){var n=Mv(r);return bd.reduce(function(o,c){return o.concat(n.filter(function(f){return f.phase===c}))},[])}function Ov(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function qa(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),c=1;c<n;c++)o[c-1]=arguments[c];return[].concat(o).reduce(function(f,p){return f.replace(/%s/,p)},r)}var Bs='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Tv='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Lp=["name","enabled","phase","fn","effect","requires","options"];function Pv(r){r.forEach(function(n){[].concat(Object.keys(n),Lp).filter(function(o,c,f){return f.indexOf(o)===c}).forEach(function(o){switch(o){case"name":typeof n.name!="string"&&console.error(qa(Bs,String(n.name),'"name"','"string"','"'+String(n.name)+'"'));break;case"enabled":typeof n.enabled!="boolean"&&console.error(qa(Bs,n.name,'"enabled"','"boolean"','"'+String(n.enabled)+'"'));break;case"phase":bd.indexOf(n.phase)<0&&console.error(qa(Bs,n.name,'"phase"',"either "+bd.join(", "),'"'+String(n.phase)+'"'));break;case"fn":typeof n.fn!="function"&&console.error(qa(Bs,n.name,'"fn"','"function"','"'+String(n.fn)+'"'));break;case"effect":n.effect!=null&&typeof n.effect!="function"&&console.error(qa(Bs,n.name,'"effect"','"function"','"'+String(n.fn)+'"'));break;case"requires":n.requires!=null&&!Array.isArray(n.requires)&&console.error(qa(Bs,n.name,'"requires"','"array"','"'+String(n.requires)+'"'));break;case"requiresIfExists":Array.isArray(n.requiresIfExists)||console.error(qa(Bs,n.name,'"requiresIfExists"','"array"','"'+String(n.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+n.name+'" modifier, valid properties are '+Lp.map(function(c){return'"'+c+'"'}).join(", ")+'; but "'+o+'" was provided.')}n.requires&&n.requires.forEach(function(c){r.find(function(f){return f.name===c})==null&&console.error(qa(Tv,String(n.name),c,c))})})})}function Av(r,n){var o=new Set;return r.filter(function(c){var f=n(c);if(!o.has(f))return o.add(f),!0})}function Ev(r){var n=r.reduce(function(o,c){var f=o[c.name];return o[c.name]=f?Object.assign({},f,c,{options:Object.assign({},f.options,c.options),data:Object.assign({},f.data,c.data)}):c,o},{});return Object.keys(n).map(function(o){return n[o]})}var _p="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Iv="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",zp={placement:"bottom",modifiers:[],strategy:"absolute"};function Sp(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return!n.some(function(c){return!(c&&typeof c.getBoundingClientRect=="function")})}function Dv(r){r===void 0&&(r={});var n=r,o=n.defaultModifiers,c=o===void 0?[]:o,f=n.defaultOptions,p=f===void 0?zp:f;return function(k,S,O){O===void 0&&(O=p);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},zp,p),modifiersData:{},elements:{reference:k,popper:S},attributes:{},styles:{}},U=[],q=!1,X={state:I,setOptions:function(Ae){var Ie=typeof Ae=="function"?Ae(I.options):Ae;we(),I.options=Object.assign({},p,I.options,Ie),I.scrollParents={reference:qs(k)?m0(k):k.contextElement?m0(k.contextElement):[],popper:m0(S)};var pe=kv(Ev([].concat(c,I.options.modifiers)));if(I.orderedModifiers=pe.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var he=Av([].concat(pe,I.options.modifiers),function(ye){var it=ye.name;return it});if(Pv(he),Ni(I.options.placement)===I1){var Te=I.orderedModifiers.find(function(ye){var it=ye.name;return it==="flip"});Te||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var He=$i(S),Ye=He.marginTop,et=He.marginRight,nt=He.marginBottom,ge=He.marginLeft;[Ye,et,nt,ge].some(function(ye){return parseFloat(ye)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return ce(),X.update()},forceUpdate:function(){if(!q){var Ae=I.elements,Ie=Ae.reference,pe=Ae.popper;if(!Sp(Ie,pe)){({}).NODE_ENV!=="production"&&console.error(_p);return}I.rects={reference:Sv(Ie,E0(pe),I.options.strategy==="fixed"),popper:Nd(pe)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(ye){return I.modifiersData[ye.name]=Object.assign({},ye.data)});for(var he=0,Te=0;Te<I.orderedModifiers.length;Te++){if({}.NODE_ENV!=="production"&&(he+=1,he>100)){console.error(Iv);break}if(I.reset===!0){I.reset=!1,Te=-1;continue}var He=I.orderedModifiers[Te],Ye=He.fn,et=He.options,nt=et===void 0?{}:et,ge=He.name;typeof Ye=="function"&&(I=Ye({state:I,options:nt,name:ge,instance:X})||I)}}},update:Ov(function(){return new Promise(function(me){X.forceUpdate(),me(I)})}),destroy:function(){we(),q=!0}};if(!Sp(k,S))return{}.NODE_ENV!=="production"&&console.error(_p),X;X.setOptions(O).then(function(me){!q&&O.onFirstUpdate&&O.onFirstUpdate(me)});function ce(){I.orderedModifiers.forEach(function(me){var Ae=me.name,Ie=me.options,pe=Ie===void 0?{}:Ie,he=me.effect;if(typeof he=="function"){var Te=he({state:I,name:Ae,instance:X,options:pe}),He=function(){};U.push(Te||He)}})}function we(){U.forEach(function(me){return me()}),U=[]}return X}}var Rv=[tv,yv,Jg,Wg,bv,dv,xv,jg,pv],Nv=Dv({defaultModifiers:Rv}),$v=Object.defineProperty,Hv=Object.getOwnPropertyDescriptor,tn=(r,n,o,c)=>{for(var f=c>1?void 0:c?Hv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&$v(n,o,f),f};let Bv=0;const Wd=Ee("popover"),a2=Ee("pure-popover"),s2=["click","hover","focus"],[x1,Cd,Us]=s2,Ud=["dialog","tooltip","menu"],[Fv]=Ud;class Wv extends CustomEvent{constructor(n){super(`${Wd}-${n}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Ue{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=Fv,this.disabled=!1,this.popoverId=`popover-${++Bv}`,this.delayTimeout=0}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.popperInstance)==null||r.destroy()}updatePosition(){var r;(r=this.popperInstance)==null||r.update()}async updated(r){super.updated(r),this.popperInstance=this.popperInstance||Nv(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){!this.popperInstance||await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return r==null?void 0:r.assignedElements({flatten:!0})[0]}get contentElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return r==null?void 0:r.assignedNodes({flatten:!0})[0]}get popoverElement(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector(".popover-container")}emit(r){this.dispatchEvent(new Wv(r))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return ee`
123
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var I={placement:$i(n.placement),variation:fu(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:f,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,wp(Object.assign({},I,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:b,roundOffsets:S})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,wp(Object.assign({},I,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:S})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const sv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:av,data:{}};var h1={passive:!0};function lv(r){var n=r.state,o=r.instance,c=r.options,f=c.scroll,p=f===void 0?!0:f,b=c.resize,M=b===void 0?!0:b,S=yi(n.elements.popper),O=[].concat(n.scrollParents.reference,n.scrollParents.popper);return p&&O.forEach(function(I){I.addEventListener("scroll",o.update,h1)}),M&&S.addEventListener("resize",o.update,h1),function(){p&&O.forEach(function(I){I.removeEventListener("scroll",o.update,h1)}),M&&S.removeEventListener("resize",o.update,h1)}}const uv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lv,data:{}};var cv={left:"right",right:"left",bottom:"top",top:"bottom"};function b1(r){return r.replace(/left|right|bottom|top/g,function(n){return cv[n]})}var fv={start:"end",end:"start"};function xp(r){return r.replace(/start|end/g,function(n){return fv[n]})}function Wd(r){var n=yi(r),o=n.pageXOffset,c=n.pageYOffset;return{scrollLeft:o,scrollTop:c}}function Ud(r){return cu(Qa(r)).left+Wd(r).scrollLeft}function dv(r,n){var o=yi(r),c=Qa(r),f=o.visualViewport,p=c.clientWidth,b=c.clientHeight,M=0,S=0;if(f){p=f.width,b=f.height;var O=a2();(O||!O&&n==="fixed")&&(M=f.offsetLeft,S=f.offsetTop)}return{width:p,height:b,x:M+Ud(r),y:S}}function hv(r){var n,o=Qa(r),c=Wd(r),f=(n=r.ownerDocument)==null?void 0:n.body,p=Vs(o.scrollWidth,o.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),b=Vs(o.scrollHeight,o.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),M=-c.scrollLeft+Ud(r),S=-c.scrollTop;return Hi(f||o).direction==="rtl"&&(M+=Vs(o.clientWidth,f?f.clientWidth:0)-p),{width:p,height:b,x:M,y:S}}function Yd(r){var n=Hi(r),o=n.overflow,c=n.overflowX,f=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+c)}function f2(r){return["html","body","#document"].indexOf(Co(r))>=0?r.ownerDocument.body:Jn(r)&&Yd(r)?r:f2(N1(r))}function y0(r,n){var o;n===void 0&&(n=[]);var c=f2(r),f=c===((o=r.ownerDocument)==null?void 0:o.body),p=yi(c),b=f?[p].concat(p.visualViewport||[],Yd(c)?c:[]):c,M=n.concat(b);return f?M:M.concat(y0(N1(b)))}function xd(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function pv(r,n){var o=cu(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function zp(r,n,o){return n===i2?xd(dv(r,o)):js(n)?pv(n,o):xd(hv(Qa(r)))}function gv(r){var n=y0(N1(r)),o=["absolute","fixed"].indexOf(Hi(r).position)>=0,c=o&&Jn(r)?D0(r):r;return js(c)?n.filter(function(f){return js(f)&&s2(f,c)&&Co(f)!=="body"}):[]}function vv(r,n,o,c){var f=n==="clippingParents"?gv(r):[].concat(n),p=[].concat(f,[o]),b=p[0],M=p.reduce(function(S,O){var I=zp(r,O,c);return S.top=Vs(I.top,S.top),S.right=z1(I.right,S.right),S.bottom=z1(I.bottom,S.bottom),S.left=Vs(I.left,S.left),S},zp(r,b,c));return M.width=M.right-M.left,M.height=M.bottom-M.top,M.x=M.left,M.y=M.top,M}function d2(r){var n=r.reference,o=r.element,c=r.placement,f=c?$i(c):null,p=c?fu(c):null,b=n.x+n.width/2-o.width/2,M=n.y+n.height/2-o.height/2,S;switch(f){case In:S={x:b,y:n.y-o.height};break;case bi:S={x:b,y:n.y+n.height};break;case mi:S={x:n.x+n.width,y:M};break;case Dn:S={x:n.x-o.width,y:M};break;default:S={x:n.x,y:n.y}}var O=f?Fd(f):null;if(O!=null){var I=O==="y"?"height":"width";switch(p){case lu:S[O]=S[O]-(n[I]/2-o[I]/2);break;case S0:S[O]=S[O]+(n[I]/2-o[I]/2);break}}return S}function k0(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=c===void 0?r.placement:c,p=o.strategy,b=p===void 0?r.strategy:p,M=o.boundary,S=M===void 0?Ng:M,O=o.rootBoundary,I=O===void 0?i2:O,U=o.elementContext,q=U===void 0?h0:U,X=o.altBoundary,ce=X===void 0?!1:X,xe=o.padding,ye=xe===void 0?0:xe,Ae=u2(typeof ye!="number"?ye:c2(ye,I0)),Ie=q===h0?$g:h0,pe=r.rects.popper,he=r.elements[ce?Ie:q],Te=vv(js(he)?he:he.contextElement||Qa(r.elements.popper),S,I,b),He=cu(r.elements.reference),Ye=d2({reference:He,element:pe,strategy:"absolute",placement:f}),et=xd(Object.assign({},pe,Ye)),nt=q===h0?et:He,ve={top:Te.top-nt.top+Ae.top,bottom:nt.bottom-Te.bottom+Ae.bottom,left:Te.left-nt.left+Ae.left,right:nt.right-Te.right+Ae.right},Ce=r.modifiersData.offset;if(q===h0&&Ce){var it=Ce[f];Object.keys(ve).forEach(function(W){var E=[mi,bi].indexOf(W)>=0?1:-1,T=[In,bi].indexOf(W)>=0?"y":"x";ve[W]+=it[T]*E})}return ve}function bv(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=o.boundary,p=o.rootBoundary,b=o.padding,M=o.flipVariations,S=o.allowedAutoPlacements,O=S===void 0?o2:S,I=fu(c),U=I?M?yp:yp.filter(function(ce){return fu(ce)===I}):I0,q=U.filter(function(ce){return O.indexOf(ce)>=0});q.length===0&&(q=U,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var X=q.reduce(function(ce,xe){return ce[xe]=k0(r,{placement:xe,boundary:f,rootBoundary:p,padding:b})[$i(xe)],ce},{});return Object.keys(X).sort(function(ce,xe){return X[ce]-X[xe]})}function mv(r){if($i(r)===R1)return[];var n=b1(r);return[xp(r),n,xp(n)]}function yv(r){var n=r.state,o=r.options,c=r.name;if(!n.modifiersData[c]._skip){for(var f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,M=b===void 0?!0:b,S=o.fallbackPlacements,O=o.padding,I=o.boundary,U=o.rootBoundary,q=o.altBoundary,X=o.flipVariations,ce=X===void 0?!0:X,xe=o.allowedAutoPlacements,ye=n.options.placement,Ae=$i(ye),Ie=Ae===ye,pe=S||(Ie||!ce?[b1(ye)]:mv(ye)),he=[ye].concat(pe).reduce(function(Ft,ut){return Ft.concat($i(ut)===R1?bv(n,{placement:ut,boundary:I,rootBoundary:U,padding:O,flipVariations:ce,allowedAutoPlacements:xe}):ut)},[]),Te=n.rects.reference,He=n.rects.popper,Ye=new Map,et=!0,nt=he[0],ve=0;ve<he.length;ve++){var Ce=he[ve],it=$i(Ce),W=fu(Ce)===lu,E=[In,bi].indexOf(it)>=0,T=E?"width":"height",ne=k0(n,{placement:Ce,boundary:I,rootBoundary:U,altBoundary:q,padding:O}),be=E?W?mi:Dn:W?bi:In;Te[T]>He[T]&&(be=b1(be));var ot=b1(be),At=[];if(p&&At.push(ne[it]<=0),M&&At.push(ne[be]<=0,ne[ot]<=0),At.every(function(Ft){return Ft})){nt=Ce,et=!1;break}Ye.set(Ce,At)}if(et)for(var sr=ce?3:1,Bt=function(ut){var _e=he.find(function(Fe){var Ze=Ye.get(Fe);if(Ze)return Ze.slice(0,ut).every(function(at){return at})});if(_e)return nt=_e,"break"},dn=sr;dn>0;dn--){var er=Bt(dn);if(er==="break")break}n.placement!==nt&&(n.modifiersData[c]._skip=!0,n.placement=nt,n.reset=!0)}}const Cv={name:"flip",enabled:!0,phase:"main",fn:yv,requiresIfExists:["offset"],data:{_skip:!1}};function Lp(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function _p(r){return[In,mi,bi,Dn].some(function(n){return r[n]>=0})}function wv(r){var n=r.state,o=r.name,c=n.rects.reference,f=n.rects.popper,p=n.modifiersData.preventOverflow,b=k0(n,{elementContext:"reference"}),M=k0(n,{altBoundary:!0}),S=Lp(b,c),O=Lp(M,f,p),I=_p(S),U=_p(O);n.modifiersData[o]={referenceClippingOffsets:S,popperEscapeOffsets:O,isReferenceHidden:I,hasPopperEscaped:U},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":U})}const xv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wv};function zv(r,n,o){var c=$i(r),f=[Dn,In].indexOf(c)>=0?-1:1,p=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,b=p[0],M=p[1];return b=b||0,M=(M||0)*f,[Dn,mi].indexOf(c)>=0?{x:M,y:b}:{x:b,y:M}}function Lv(r){var n=r.state,o=r.options,c=r.name,f=o.offset,p=f===void 0?[0,0]:f,b=o2.reduce(function(I,U){return I[U]=zv(U,n.rects,p),I},{}),M=b[n.placement],S=M.x,O=M.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=S,n.modifiersData.popperOffsets.y+=O),n.modifiersData[c]=b}const _v={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lv};function Sv(r){var n=r.state,o=r.name;n.modifiersData[o]=d2({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const kv={name:"popperOffsets",enabled:!0,phase:"read",fn:Sv,data:{}};function Mv(r){return r==="x"?"y":"x"}function Ov(r){var n=r.state,o=r.options,c=r.name,f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,M=b===void 0?!1:b,S=o.boundary,O=o.rootBoundary,I=o.altBoundary,U=o.padding,q=o.tether,X=q===void 0?!0:q,ce=o.tetherOffset,xe=ce===void 0?0:ce,ye=k0(n,{boundary:S,rootBoundary:O,padding:U,altBoundary:I}),Ae=$i(n.placement),Ie=fu(n.placement),pe=!Ie,he=Fd(Ae),Te=Mv(he),He=n.modifiersData.popperOffsets,Ye=n.rects.reference,et=n.rects.popper,nt=typeof xe=="function"?xe(Object.assign({},n.rects,{placement:n.placement})):xe,ve=typeof nt=="number"?{mainAxis:nt,altAxis:nt}:Object.assign({mainAxis:0,altAxis:0},nt),Ce=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,it={x:0,y:0};if(!!He){if(p){var W,E=he==="y"?In:Dn,T=he==="y"?bi:mi,ne=he==="y"?"height":"width",be=He[he],ot=be+ye[E],At=be-ye[T],sr=X?-et[ne]/2:0,Bt=Ie===lu?Ye[ne]:et[ne],dn=Ie===lu?-et[ne]:-Ye[ne],er=n.elements.arrow,Ft=X&&er?Bd(er):{width:0,height:0},ut=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:l2(),_e=ut[E],Fe=ut[T],Ze=m0(0,Ye[ne],Ft[ne]),at=pe?Ye[ne]/2-sr-Ze-_e-ve.mainAxis:Bt-Ze-_e-ve.mainAxis,st=pe?-Ye[ne]/2+sr+Ze+Fe+ve.mainAxis:dn+Ze+Fe+ve.mainAxis,We=n.elements.arrow&&D0(n.elements.arrow),Vt=We?he==="y"?We.clientTop||0:We.clientLeft||0:0,qr=(W=Ce==null?void 0:Ce[he])!=null?W:0,lr=be+at-qr-Vt,Xe=be+st-qr,yt=m0(X?z1(ot,lr):ot,be,X?Vs(At,Xe):At);He[he]=yt,it[he]=yt-be}if(M){var Mt,$r=he==="x"?In:Dn,rn=he==="x"?bi:mi,fr=He[Te],tt=Te==="y"?"height":"width",B=fr+ye[$r],oe=fr-ye[rn],V=[In,Dn].indexOf(Ae)!==-1,Qe=(Mt=Ce==null?void 0:Ce[Te])!=null?Mt:0,dr=V?B:fr-Ye[tt]-et[tt]-Qe+ve.altAxis,kr=V?fr+Ye[tt]+et[tt]-Qe-ve.altAxis:oe,$n=X&&V?Jg(dr,fr,kr):m0(X?dr:B,fr,X?kr:oe);He[Te]=$n,it[Te]=$n-fr}n.modifiersData[c]=it}}const Tv={name:"preventOverflow",enabled:!0,phase:"main",fn:Ov,requiresIfExists:["offset"]};function Pv(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Av(r){return r===yi(r)||!Jn(r)?Wd(r):Pv(r)}function Ev(r){var n=r.getBoundingClientRect(),o=uu(n.width)/r.offsetWidth||1,c=uu(n.height)/r.offsetHeight||1;return o!==1||c!==1}function Iv(r,n,o){o===void 0&&(o=!1);var c=Jn(n),f=Jn(n)&&Ev(n),p=Qa(n),b=cu(r,f,o),M={scrollLeft:0,scrollTop:0},S={x:0,y:0};return(c||!c&&!o)&&((Co(n)!=="body"||Yd(p))&&(M=Av(n)),Jn(n)?(S=cu(n,!0),S.x+=n.clientLeft,S.y+=n.clientTop):p&&(S.x=Ud(p))),{x:b.left+M.scrollLeft-S.x,y:b.top+M.scrollTop-S.y,width:b.width,height:b.height}}function Dv(r){var n=new Map,o=new Set,c=[];r.forEach(function(p){n.set(p.name,p)});function f(p){o.add(p.name);var b=[].concat(p.requires||[],p.requiresIfExists||[]);b.forEach(function(M){if(!o.has(M)){var S=n.get(M);S&&f(S)}}),c.push(p)}return r.forEach(function(p){o.has(p.name)||f(p)}),c}function Rv(r){var n=Dv(r);return Cd.reduce(function(o,c){return o.concat(n.filter(function(f){return f.phase===c}))},[])}function Nv(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function Ga(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),c=1;c<n;c++)o[c-1]=arguments[c];return[].concat(o).reduce(function(f,p){return f.replace(/%s/,p)},r)}var Bs='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',$v='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Sp=["name","enabled","phase","fn","effect","requires","options"];function Hv(r){r.forEach(function(n){[].concat(Object.keys(n),Sp).filter(function(o,c,f){return f.indexOf(o)===c}).forEach(function(o){switch(o){case"name":typeof n.name!="string"&&console.error(Ga(Bs,String(n.name),'"name"','"string"','"'+String(n.name)+'"'));break;case"enabled":typeof n.enabled!="boolean"&&console.error(Ga(Bs,n.name,'"enabled"','"boolean"','"'+String(n.enabled)+'"'));break;case"phase":Cd.indexOf(n.phase)<0&&console.error(Ga(Bs,n.name,'"phase"',"either "+Cd.join(", "),'"'+String(n.phase)+'"'));break;case"fn":typeof n.fn!="function"&&console.error(Ga(Bs,n.name,'"fn"','"function"','"'+String(n.fn)+'"'));break;case"effect":n.effect!=null&&typeof n.effect!="function"&&console.error(Ga(Bs,n.name,'"effect"','"function"','"'+String(n.fn)+'"'));break;case"requires":n.requires!=null&&!Array.isArray(n.requires)&&console.error(Ga(Bs,n.name,'"requires"','"array"','"'+String(n.requires)+'"'));break;case"requiresIfExists":Array.isArray(n.requiresIfExists)||console.error(Ga(Bs,n.name,'"requiresIfExists"','"array"','"'+String(n.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+n.name+'" modifier, valid properties are '+Sp.map(function(c){return'"'+c+'"'}).join(", ")+'; but "'+o+'" was provided.')}n.requires&&n.requires.forEach(function(c){r.find(function(f){return f.name===c})==null&&console.error(Ga($v,String(n.name),c,c))})})})}function Bv(r,n){var o=new Set;return r.filter(function(c){var f=n(c);if(!o.has(f))return o.add(f),!0})}function Fv(r){var n=r.reduce(function(o,c){var f=o[c.name];return o[c.name]=f?Object.assign({},f,c,{options:Object.assign({},f.options,c.options),data:Object.assign({},f.data,c.data)}):c,o},{});return Object.keys(n).map(function(o){return n[o]})}var kp="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Wv="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Mp={placement:"bottom",modifiers:[],strategy:"absolute"};function Op(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return!n.some(function(c){return!(c&&typeof c.getBoundingClientRect=="function")})}function Uv(r){r===void 0&&(r={});var n=r,o=n.defaultModifiers,c=o===void 0?[]:o,f=n.defaultOptions,p=f===void 0?Mp:f;return function(M,S,O){O===void 0&&(O=p);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mp,p),modifiersData:{},elements:{reference:M,popper:S},attributes:{},styles:{}},U=[],q=!1,X={state:I,setOptions:function(Ae){var Ie=typeof Ae=="function"?Ae(I.options):Ae;xe(),I.options=Object.assign({},p,I.options,Ie),I.scrollParents={reference:js(M)?y0(M):M.contextElement?y0(M.contextElement):[],popper:y0(S)};var pe=Rv(Fv([].concat(c,I.options.modifiers)));if(I.orderedModifiers=pe.filter(function(Ce){return Ce.enabled}),{}.NODE_ENV!=="production"){var he=Bv([].concat(pe,I.options.modifiers),function(Ce){var it=Ce.name;return it});if(Hv(he),$i(I.options.placement)===R1){var Te=I.orderedModifiers.find(function(Ce){var it=Ce.name;return it==="flip"});Te||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var He=Hi(S),Ye=He.marginTop,et=He.marginRight,nt=He.marginBottom,ve=He.marginLeft;[Ye,et,nt,ve].some(function(Ce){return parseFloat(Ce)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return ce(),X.update()},forceUpdate:function(){if(!q){var Ae=I.elements,Ie=Ae.reference,pe=Ae.popper;if(!Op(Ie,pe)){({}).NODE_ENV!=="production"&&console.error(kp);return}I.rects={reference:Iv(Ie,D0(pe),I.options.strategy==="fixed"),popper:Bd(pe)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(Ce){return I.modifiersData[Ce.name]=Object.assign({},Ce.data)});for(var he=0,Te=0;Te<I.orderedModifiers.length;Te++){if({}.NODE_ENV!=="production"&&(he+=1,he>100)){console.error(Wv);break}if(I.reset===!0){I.reset=!1,Te=-1;continue}var He=I.orderedModifiers[Te],Ye=He.fn,et=He.options,nt=et===void 0?{}:et,ve=He.name;typeof Ye=="function"&&(I=Ye({state:I,options:nt,name:ve,instance:X})||I)}}},update:Nv(function(){return new Promise(function(ye){X.forceUpdate(),ye(I)})}),destroy:function(){xe(),q=!0}};if(!Op(M,S))return{}.NODE_ENV!=="production"&&console.error(kp),X;X.setOptions(O).then(function(ye){!q&&O.onFirstUpdate&&O.onFirstUpdate(ye)});function ce(){I.orderedModifiers.forEach(function(ye){var Ae=ye.name,Ie=ye.options,pe=Ie===void 0?{}:Ie,he=ye.effect;if(typeof he=="function"){var Te=he({state:I,name:Ae,instance:X,options:pe}),He=function(){};U.push(Te||He)}})}function xe(){U.forEach(function(ye){return ye()}),U=[]}return X}}var Yv=[uv,kv,sv,Kg,_v,Cv,Tv,nv,xv],Zv=Uv({defaultModifiers:Yv}),Vv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,tn=(r,n,o,c)=>{for(var f=c>1?void 0:c?Gv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Vv(n,o,f),f};let qv=0;const Zd=Ee("popover"),h2=Ee("pure-popover"),p2=["click","hover","focus"],[L1,zd,Us]=p2,Vd=["dialog","tooltip","menu"],[jv]=Vd;class Kv extends CustomEvent{constructor(n){super(`${Zd}-${n}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Ue{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=jv,this.disabled=!1,this.popoverId=`popover-${++qv}`,this.delayTimeout=0}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.popperInstance)==null||r.destroy()}updatePosition(){var r;(r=this.popperInstance)==null||r.update()}async updated(r){super.updated(r),this.popperInstance=this.popperInstance||Zv(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){!this.popperInstance||await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return r==null?void 0:r.assignedElements({flatten:!0})[0]}get contentElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return r==null?void 0:r.assignedNodes({flatten:!0})[0]}get popoverElement(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector(".popover-container")}emit(r){this.dispatchEvent(new Kv(r))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return ee`
83
124
  <slot></slot>
84
125
 
85
126
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -89,7 +130,7 @@
89
130
  </div>
90
131
  </div>
91
132
  </brz-fade-in-out>
92
- `}};exports.PurePopover.styles=Se`
133
+ `}};exports.PurePopover.styles=ge`
93
134
  :host {
94
135
  display: contents;
95
136
  max-width: 100vw; // Probably need a more sensible max width
@@ -98,9 +139,9 @@
98
139
  .popover-container {
99
140
  z-index: var(--brz-z-index-dialog);
100
141
  }
101
- `;tn([F({type:Number})],exports.PurePopover.prototype,"distance",2);tn([F({type:Number})],exports.PurePopover.prototype,"skidding",2);tn([F({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);tn([F({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);tn([F({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);tn([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);tn([F({type:String})],exports.PurePopover.prototype,"placement",2);tn([F({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);tn([F({type:Boolean})],exports.PurePopover.prototype,"disabled",2);tn([pt()],exports.PurePopover.prototype,"popoverId",2);tn([pt()],exports.PurePopover.prototype,"popperInstance",2);tn([pt()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=tn([Q(a2)],exports.PurePopover);const L1=["blur","mouseenter","mouseleave","keydown",x1,Us],[cd,Uv,Yv,Zv]=L1;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[x1]:this.handleClick,[Us]:this.handleFocus,[cd]:this.handleBlur,[Uv]:this.handleMouseEnter,[Yv]:this.handleMouseLeave,[Zv]: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(){L1.forEach(r=>this.addEventListener(r,this.listenableEventHandlers[r],{capture:[Us,cd].includes(r)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){L1.forEach(r=>this.removeEventListener(r,this.listenableEventHandlers[r],{capture:[Us,cd].includes(r)})),document.removeEventListener("click",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(r){return this.triggers.includes(r)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(r){!this.isOpen||this.contains(r.target)||this.hasPointer||await this.close()}async handleClick(r){var n;if(!(this.isOpen&&((n=this.contentElement)==null?void 0:n.contains(r.target)))){if(!this.hasTrigger(x1))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(Us)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Us)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(Cd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(Cd)||this.hasFocus)&&await this.close()}async handleKeyDown(r){r.stopPropagation(),["Escape","Esc"].includes(r.key)&&await this.close()}};tn([F({type:String})],exports.Popover.prototype,"trigger",2);tn([pt()],exports.Popover.prototype,"hasFocus",2);tn([pt()],exports.Popover.prototype,"hasPointer",2);exports.Popover=tn([Q(Wd)],exports.Popover);var Vv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,ua=(r,n,o,c)=>{for(var f=c>1?void 0:c?Gv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Vv(n,o,f),f};const l2=Ee("tooltip"),[,qv]=Ud;exports.Tooltip=class extends Ue{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 ee`
142
+ `;tn([F({type:Number})],exports.PurePopover.prototype,"distance",2);tn([F({type:Number})],exports.PurePopover.prototype,"skidding",2);tn([F({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);tn([F({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);tn([F({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);tn([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);tn([F({type:String})],exports.PurePopover.prototype,"placement",2);tn([F({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);tn([F({type:Boolean})],exports.PurePopover.prototype,"disabled",2);tn([pt()],exports.PurePopover.prototype,"popoverId",2);tn([pt()],exports.PurePopover.prototype,"popperInstance",2);tn([pt()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=tn([Q(h2)],exports.PurePopover);const _1=["blur","mouseenter","mouseleave","keydown",L1,Us],[dd,Xv,Qv,Jv]=_1;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[L1]:this.handleClick,[Us]:this.handleFocus,[dd]:this.handleBlur,[Xv]:this.handleMouseEnter,[Qv]:this.handleMouseLeave,[Jv]: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(){_1.forEach(r=>this.addEventListener(r,this.listenableEventHandlers[r],{capture:[Us,dd].includes(r)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){_1.forEach(r=>this.removeEventListener(r,this.listenableEventHandlers[r],{capture:[Us,dd].includes(r)})),document.removeEventListener("click",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(r){return this.triggers.includes(r)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(r){!this.isOpen||this.contains(r.target)||this.hasPointer||await this.close()}async handleClick(r){var n;if(!(this.isOpen&&((n=this.contentElement)==null?void 0:n.contains(r.target)))){if(!this.hasTrigger(L1))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(Us)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Us)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(zd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(zd)||this.hasFocus)&&await this.close()}async handleKeyDown(r){r.stopPropagation(),["Escape","Esc"].includes(r.key)&&await this.close()}};tn([F({type:String})],exports.Popover.prototype,"trigger",2);tn([pt()],exports.Popover.prototype,"hasFocus",2);tn([pt()],exports.Popover.prototype,"hasPointer",2);exports.Popover=tn([Q(Zd)],exports.Popover);var e9=Object.defineProperty,t9=Object.getOwnPropertyDescriptor,ua=(r,n,o,c)=>{for(var f=c>1?void 0:c?t9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&e9(n,o,f),f};const g2=Ee("tooltip"),[,r9]=Vd;exports.Tooltip=class extends Ue{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 ee`
102
143
  <brz-popover
103
- .popoverRole=${qv}
144
+ .popoverRole=${r9}
104
145
  .distance=${8}
105
146
  .delayOnClose=${this.delayOnClose}
106
147
  .delayOnOpen=${this.delayOnOpen}
@@ -112,7 +153,7 @@
112
153
  <slot></slot>
113
154
  <div slot="content">${this.content}</div>
114
155
  </brz-popover>
115
- `}};exports.Tooltip.styles=Se`
156
+ `}};exports.Tooltip.styles=ge`
116
157
  :host div[slot='content'] {
117
158
  border-radius: var(--brz-border-radius-default);
118
159
  box-shadow: var(--brz-box-shadow-menu);
@@ -132,29 +173,33 @@
132
173
  background-color: var(--brz-color-white);
133
174
  color: var(--brz-color-text);
134
175
  }
135
- `;ua([F({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);ua([F({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);ua([F({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);ua([F({type:String})],exports.Tooltip.prototype,"placement",2);ua([F({type:String})],exports.Tooltip.prototype,"trigger",2);ua([F({type:Boolean})],exports.Tooltip.prototype,"disabled",2);ua([F({type:String})],exports.Tooltip.prototype,"content",2);ua([F({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=ua([Q(l2)],exports.Tooltip);var jv=Object.defineProperty,Kv=Object.getOwnPropertyDescriptor,wo=(r,n,o,c)=>{for(var f=c>1?void 0:c?Kv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&jv(n,o,f),f};const u2=Ee("avatar"),c2=Ee("avatar-group");var wd=(r=>(r[r.tiny=0]="tiny",r[r.small=1]="small",r[r.medium=2]="medium",r[r.large=3]="large",r))(wd||{});exports.Avatar=class extends Ue{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:r}){const n=r==null?void 0:r.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=wd[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const r=wd[this.size],n=()=>{switch(r){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return ee`
176
+ `;ua([F({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);ua([F({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);ua([F({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);ua([F({type:String})],exports.Tooltip.prototype,"placement",2);ua([F({type:String})],exports.Tooltip.prototype,"trigger",2);ua([F({type:Boolean})],exports.Tooltip.prototype,"disabled",2);ua([F({type:String})],exports.Tooltip.prototype,"content",2);ua([F({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=ua([Q(g2)],exports.Tooltip);var n9=Object.defineProperty,i9=Object.getOwnPropertyDescriptor,xo=(r,n,o,c)=>{for(var f=c>1?void 0:c?i9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&n9(n,o,f),f};const v2=Ee("avatar"),b2=Ee("avatar-group");var Ld=(r=>(r[r.tiny=0]="tiny",r[r.small=1]="small",r[r.medium=2]="medium",r[r.large=3]="large",r))(Ld||{});exports.Avatar=class extends Ue{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:r}){const n=r==null?void 0:r.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=Ld[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const r=Ld[this.size],n=()=>{switch(r){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return ee`
136
177
  <span class="icon" aria-label=${this.label}>
137
- <brz-icon size=${n()} icon=${Vt(this.icon)}></brz-icon>
178
+ <brz-icon size=${n()} icon=${qt(this.icon)}></brz-icon>
138
179
  </span>
139
180
  `}get textTemplate(){return ee`
140
181
  <span aria-label=${this.label}>
141
182
  ${this.slottedElementsCount?`+${this.slottedElementsCount}`:this.abbreviatedLabel}
142
183
  </span>
143
- `}get imageTemplate(){return ee`<img src=${Vt(this.imageSrc)} alt=${this.label} />`}get slotTemplate(){return ee`
184
+ `}get imageTemplate(){return ee`<img
185
+ src=${qt(this.imageSrc)}
186
+ alt=${this.label}
187
+ @error=${()=>{console.warn(`An invalid URL or missing resource was provided for the avatar of "${this.label}": ${this.imageSrc}`),this.removeAttribute("image-src")}}
188
+ />`}get slotTemplate(){return ee`
144
189
  <div
145
- class=${Qa({overflow:!0,hidden:!0})}
190
+ class=${Xa({overflow:!0,hidden:!0})}
146
191
  >
147
192
  <slot @slotchange=${this.handleSlotChange} />
148
193
  </div>
149
194
  `}get avatarTemplate(){switch(!0){case!!this.imageSrc:return this.imageTemplate;case!!this.icon:return this.iconTemplate;default:return this.textTemplate}}render(){return ee`
150
- <div class="container">
151
- <brz-tooltip is-fixed content=${this.label}>
152
- <div class="wrapper">${this.avatarTemplate}</div>
153
- </brz-tooltip>
154
- </div>
195
+ <brz-tooltip is-fixed content=${this.label}>
196
+ <div class="container" tabindex="0">
197
+ <div class="avatar">${this.avatarTemplate}</div>
198
+ </div>
199
+ </brz-tooltip>
155
200
 
156
201
  ${this.slotTemplate}
157
- `}};exports.Avatar.styles=Se`
202
+ `}};exports.Avatar.styles=ge`
158
203
  :host {
159
204
  --brz-avatar-background-color: var(--brz-color-neutral-700);
160
205
  --brz-avatar-border-radius: 50%;
@@ -174,20 +219,25 @@
174
219
  letter-spacing: 0.05px;
175
220
  line-height: 1.334;
176
221
  position: relative;
222
+ vertical-align: middle;
177
223
  width: var(--brz-avatar-diameter);
178
224
  }
179
225
 
180
- :host .wrapper {
226
+ :host .avatar {
181
227
  align-items: center;
182
228
  border-radius: var(--brz-avatar-border-radius);
183
229
  display: inline-flex;
184
230
  height: var(--brz-avatar-diameter);
185
231
  justify-content: center;
186
232
  overflow: hidden;
187
- vertical-align: middle;
233
+ position: relative;
188
234
  width: var(--brz-avatar-diameter);
189
235
  }
190
236
 
237
+ ${E0(".container",ge`
238
+ z-index: 1;
239
+ `)}
240
+
191
241
  :host([size='tiny']) {
192
242
  --brz-avatar-diameter: 1rem;
193
243
  --brz-avatar-font-size: var(--brz-font-size-2xs);
@@ -257,11 +307,10 @@
257
307
  border-width: 1px;
258
308
  }
259
309
 
260
- :host .wrapper img {
310
+ :host .avatar img {
261
311
  display: inline-block;
262
312
  height: auto;
263
313
  max-width: 100%;
264
- vertical-align: middle;
265
314
  }
266
315
 
267
316
  :host brz-tooltip {
@@ -279,7 +328,7 @@
279
328
  :host .hidden {
280
329
  display: none;
281
330
  }
282
- `;wo([F({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);wo([F({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);wo([F({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);wo([F({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);wo([F({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);wo([F({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);wo([F({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);wo([pt()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=wo([Q(u2)],exports.Avatar);exports.AvatarGroup=class extends Ue{render(){return ee` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=Se`
331
+ `;xo([F({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);xo([F({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);xo([F({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);xo([F({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);xo([F({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);xo([F({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);xo([F({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);xo([pt()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=xo([Q(v2)],exports.Avatar);exports.AvatarGroup=class extends Ue{render(){return ee` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=ge`
283
332
  :host .container {
284
333
  align-items: center;
285
334
  display: inline-flex;
@@ -290,7 +339,7 @@
290
339
  ::slotted(sp-avatar:not(:first-child)) {
291
340
  margin-left: -0.6em;
292
341
  }
293
- `;exports.AvatarGroup=wo([Q(c2)],exports.AvatarGroup);var Xv=Object.defineProperty,Qv=Object.getOwnPropertyDescriptor,R1=(r,n,o,c)=>{for(var f=c>1?void 0:c?Qv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Xv(n,o,f),f};const f2=Ee("row"),d2=Ee("column");exports.Row=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top"}render(){return ee`<slot></slot>`}};exports.Row.styles=Se`
342
+ `;exports.AvatarGroup=xo([Q(b2)],exports.AvatarGroup);var o9=Object.defineProperty,a9=Object.getOwnPropertyDescriptor,$1=(r,n,o,c)=>{for(var f=c>1?void 0:c?a9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&o9(n,o,f),f};const m2=Ee("row"),y2=Ee("column");exports.Row=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top"}render(){return ee`<slot></slot>`}};exports.Row.styles=ge`
294
343
  :host {
295
344
  display: flex;
296
345
  flex-direction: row;
@@ -310,7 +359,7 @@
310
359
  :host([vertical-align='bottom']) {
311
360
  align-items: flex-end;
312
361
  }
313
- `;R1([F({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=R1([Q(f2)],exports.Row);exports.Column=class extends Ue{constructor(){super(...arguments),this.align="left"}render(){return ee`<slot></slot>`}};exports.Column.styles=Se`
362
+ `;$1([F({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=$1([Q(m2)],exports.Row);exports.Column=class extends Ue{constructor(){super(...arguments),this.align="left"}render(){return ee`<slot></slot>`}};exports.Column.styles=ge`
314
363
  :host {
315
364
  display: flex;
316
365
  flex-direction: column;
@@ -330,7 +379,7 @@
330
379
  :host([align='right']) {
331
380
  align-items: flex-end;
332
381
  }
333
- `;R1([F({type:String})],exports.Column.prototype,"align",2);exports.Column=R1([Q(d2)],exports.Column);var Jv=Object.defineProperty,e9=Object.getOwnPropertyDescriptor,h2=(r,n,o,c)=>{for(var f=c>1?void 0:c?e9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Jv(n,o,f),f};const p2=Ee("loading-spinner");exports.LoadingSpinner=class extends Ue{constructor(){super(...arguments),this.size=24}render(){return ee`
382
+ `;$1([F({type:String})],exports.Column.prototype,"align",2);exports.Column=$1([Q(y2)],exports.Column);var s9=Object.defineProperty,l9=Object.getOwnPropertyDescriptor,C2=(r,n,o,c)=>{for(var f=c>1?void 0:c?l9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&s9(n,o,f),f};const w2=Ee("loading-spinner");exports.LoadingSpinner=class extends Ue{constructor(){super(...arguments),this.size=24}render(){return ee`
334
383
  <div class="loading-spinner">
335
384
  <svg
336
385
  class="loading-spinner--circular"
@@ -350,7 +399,7 @@
350
399
  />
351
400
  </svg>
352
401
  </div>
353
- `}};exports.LoadingSpinner.styles=Se`
402
+ `}};exports.LoadingSpinner.styles=ge`
354
403
  .loading-spinner {
355
404
  display: flex;
356
405
  justify-content: center;
@@ -385,30 +434,31 @@
385
434
  stroke-dashoffset: -124px;
386
435
  }
387
436
  }
388
- `;h2([F({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=h2([Q(p2)],exports.LoadingSpinner);var t9=Object.defineProperty,r9=Object.getOwnPropertyDescriptor,xo=(r,n,o,c)=>{for(var f=c>1?void 0:c?r9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&t9(n,o,f),f};const Yd=Ee("button"),g2=Ee("button-group");class n9 extends CustomEvent{constructor(n){super(`${Yd}-${n}`,{bubbles:!0,composed:!0})}}const i9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ue{constructor(){super(...arguments),this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1}emit(r){this.dispatchEvent(new n9(r))}render(){return ee`
437
+ `;C2([F({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=C2([Q(w2)],exports.LoadingSpinner);var u9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,Ci=(r,n,o,c)=>{for(var f=c>1?void 0:c?c9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&u9(n,o,f),f};const Gd=Ee("button"),x2=Ee("button-group");class f9 extends CustomEvent{constructor(n){super(`${Gd}-${n}`,{bubbles:!0,composed:!0})}}const d9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ue{constructor(){super(...arguments),this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(n=>{var o;return!!((o=n.textContent)!=null&&o.replace(`
438
+ `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}emit(r){this.dispatchEvent(new f9(r))}render(){return ee`
389
439
  <button
390
440
  @click=${()=>{this.disabled||this.emit("click")}}
391
441
  type="button"
392
442
  ?disabled=${this.disabled}
393
- class=${Qa({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})}
443
+ class=${Xa({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})}
394
444
  >
395
445
  <div class="contents">
396
446
  ${this.leadingIcon?ee`<brz-icon
397
447
  class="pre-icon"
398
- size=${Vt(this.iconSize)}
448
+ size=${qt(this.iconSize)}
399
449
  icon="${this.leadingIcon}"
400
450
  ></brz-icon>`:null}
401
451
  <slot></slot>
402
452
  ${this.trailingIcon?ee`<brz-icon
403
453
  class="post-icon"
404
- size=${Vt(this.iconSize)}
454
+ size=${qt(this.iconSize)}
405
455
  icon="${this.trailingIcon}"
406
456
  ></brz-icon>`:null}
407
457
  </div>
408
458
 
409
459
  ${this.loading?ee`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
410
460
  </button>
411
- `}};exports.Button.styles=Se`
461
+ `}};exports.Button.styles=ge`
412
462
  :host {
413
463
  display: inline-block;
414
464
  position: relative;
@@ -465,21 +515,19 @@
465
515
  vertical-align: top;
466
516
  }
467
517
 
468
- :host(:empty[leading-icon]) button,
469
- :host(:empty[trailing-icon]) button {
518
+ ${E0("button")}
519
+
520
+ :host([leading-icon][icon-only]) button,
521
+ :host([trailing-icon][icon-only]) button {
470
522
  padding: var(--brz-spacing-px);
471
523
  width: var(--brz-button-height);
472
524
  }
473
525
 
474
- :host(:empty[leading-icon][compact]) button,
475
- :host(:empty[trailing-icon][compact]) button {
526
+ :host([leading-icon][compact][icon-only]) button,
527
+ :host([trailing-icon][compact][icon-only]) button {
476
528
  width: var(--brz-button-height-compact);
477
529
  }
478
530
 
479
- button:focus {
480
- outline: 0;
481
- }
482
-
483
531
  :host([compact]) button {
484
532
  --brz-button-padding-x: var(--brz-spacing-3);
485
533
 
@@ -500,7 +548,7 @@
500
548
  );
501
549
  }
502
550
 
503
- :host([trailing-icon]) button.transparent slot + brz-icon {
551
+ :host([trailing-icon]):not([icon-only]) button.transparent slot + brz-icon {
504
552
  margin-left: calc(0px - var(--brz-spacing-1));
505
553
  }
506
554
 
@@ -583,9 +631,9 @@
583
631
  brz-icon {
584
632
  padding: var(--brz-spacing-px);
585
633
  }
586
- `;xo([F({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);xo([F({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);xo([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);xo([F({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);xo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);xo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);xo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);exports.Button=xo([Q(Yd)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return ee`<brz-row class=${Qa({compact:this.compact})}
634
+ `;Ci([F({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Ci([F({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Ci([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Ci([F({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Ci([F({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Ci([t2()],exports.Button.prototype,"defaultSlot",2);exports.Button=Ci([Q(Gd)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return ee`<brz-row class=${Xa({compact:this.compact})}
587
635
  ><slot></slot
588
- ></brz-row>`}};exports.ButtonGroup.styles=Se`
636
+ ></brz-row>`}};exports.ButtonGroup.styles=ge`
589
637
  brz-row {
590
638
  --brz-row-spacing: var(--brz-spacing-1);
591
639
  }
@@ -602,12 +650,12 @@
602
650
  --brz-button-r-radius: 0;
603
651
  --brz-border-r-width: 0;
604
652
  }
605
- `;xo([F({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=xo([Q(g2)],exports.ButtonGroup);var o9=Object.defineProperty,a9=Object.getOwnPropertyDescriptor,Zd=(r,n,o,c)=>{for(var f=c>1?void 0:c?a9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&o9(n,o,f),f};const v2=Ee("combo-box"),b2=Ee("combo-box-option");exports.ComboBox=class extends Ue{constructor(){super(...arguments),this.isOpen=!1,this.toggleMenu=r=>{this.isOpen=!this.isOpen,r.stopPropagation()},this.outsideClick=()=>{this.isOpen=!1}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.outsideClick)}disconnectedCallback(){document.removeEventListener("click",this.outsideClick),super.disconnectedCallback()}render(){return ee`
653
+ `;Ci([F({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Ci([Q(x2)],exports.ButtonGroup);var h9=Object.defineProperty,p9=Object.getOwnPropertyDescriptor,qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?p9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&h9(n,o,f),f};const z2=Ee("combo-box"),L2=Ee("combo-box-option");exports.ComboBox=class extends Ue{constructor(){super(...arguments),this.isOpen=!1,this.toggleMenu=r=>{this.isOpen=!this.isOpen,r.stopPropagation()},this.outsideClick=()=>{this.isOpen=!1}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.outsideClick)}disconnectedCallback(){document.removeEventListener("click",this.outsideClick),super.disconnectedCallback()}render(){return ee`
606
654
  <div class="container ${this.isOpen?"open":""}">
607
655
  <div @click="${this.toggleMenu}"><slot></slot></div>
608
656
  <div class="dropdown"><slot name="options"></slot></div>
609
657
  </div>
610
- `}};exports.ComboBox.styles=Se`
658
+ `}};exports.ComboBox.styles=ge`
611
659
  .container {
612
660
  position: relative;
613
661
  display: inline-block;
@@ -630,7 +678,7 @@
630
678
  .container.open .dropdown {
631
679
  display: block;
632
680
  }
633
- `;Zd([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.ComboBox.prototype,"isOpen",2);exports.ComboBox=Zd([Q(v2)],exports.ComboBox);exports.ComboBoxOption=class extends Ue{render(){return ee` <div class="item"><slot></slot></div> `}};exports.ComboBoxOption.styles=Se`
681
+ `;qd([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.ComboBox.prototype,"isOpen",2);exports.ComboBox=qd([Q(z2)],exports.ComboBox);exports.ComboBoxOption=class extends Ue{render(){return ee` <div class="item"><slot></slot></div> `}};exports.ComboBoxOption.styles=ge`
634
682
  .item {
635
683
  height: 20px;
636
684
  cursor: pointer;
@@ -645,11 +693,11 @@
645
693
  .item:hover {
646
694
  background-color: var(--brz-color-neutral-250);
647
695
  }
648
- `;exports.ComboBoxOption=Zd([Q(b2)],exports.ComboBoxOption);var s9=Object.defineProperty,l9=Object.getOwnPropertyDescriptor,I0=(r,n,o,c)=>{for(var f=c>1?void 0:c?l9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&s9(n,o,f),f};const m2=Ee("modal");class Vd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Ue{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=r=>{if(r.key==="Escape")return this.handleClose(r)},this.handleClose=r=>{r instanceof MouseEvent&&this.noClose||r instanceof MouseEvent&&r.target!==this.overlay||(r.stopPropagation(),this.dispatchEvent(new Vd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}get overlay(){return this.renderRoot.querySelector("#overlay")}handleTransitionEnd(r){r.target===this.overlay&&(this.shown=!1)}render(){return ee`
696
+ `;exports.ComboBoxOption=qd([Q(L2)],exports.ComboBoxOption);var g9=Object.defineProperty,v9=Object.getOwnPropertyDescriptor,R0=(r,n,o,c)=>{for(var f=c>1?void 0:c?v9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&g9(n,o,f),f};const _2=Ee("modal");class jd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Ue{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=r=>{if(r.key==="Escape")return this.handleClose(r)},this.handleClose=r=>{r instanceof MouseEvent&&this.noClose||r instanceof MouseEvent&&r.target!==this.overlay||(r.stopPropagation(),this.dispatchEvent(new jd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}get overlay(){return this.renderRoot.querySelector("#overlay")}handleTransitionEnd(r){r.target===this.overlay&&(this.shown=!1)}render(){return ee`
649
697
  <brz-fade-in-out ?shown=${this.open}>
650
698
  <div
651
699
  id="overlay"
652
- class="${Qa({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
700
+ class="${Xa({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
653
701
  @mousedown=${this.handleClose}
654
702
  @keyup=${()=>{}}
655
703
  @transitionend=${this.handleTransitionEnd}
@@ -659,7 +707,7 @@
659
707
  </div>
660
708
  </div>
661
709
  </brz-fade-in-out>
662
- `}};exports.Modal.styles=Se`
710
+ `}};exports.Modal.styles=ge`
663
711
  :host {
664
712
  position: relative;
665
713
  z-index: var(--brz-z-index-dialog);
@@ -719,7 +767,7 @@
719
767
  ::slotted(sp-modal-body:first-child) {
720
768
  padding-top: var(--brz-spacing-10);
721
769
  }
722
- `;I0([F({type:String})],exports.Modal.prototype,"size",2);I0([F({type:Boolean})],exports.Modal.prototype,"open",2);I0([F({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);I0([F({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=I0([Q(m2)],exports.Modal);function xd(r,n){if(r){if(r instanceof n)return r;if(r instanceof ShadowRoot)return xd(r.host,n);if("parentNode"in r)return xd(r.parentElement||r.parentNode,n)}return null}var u9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,Lo=(r,n,o,c)=>{for(var f=c>1?void 0:c?c9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&u9(n,o,f),f};const y2=Ee("split-row"),C2=Ee("action-bar");exports.SplitRow=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return ee`
770
+ `;R0([F({type:String})],exports.Modal.prototype,"size",2);R0([F({type:Boolean})],exports.Modal.prototype,"open",2);R0([F({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);R0([F({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=R0([Q(_2)],exports.Modal);function _d(r,n){if(r){if(r instanceof n)return r;if(r instanceof ShadowRoot)return _d(r.host,n);if("parentNode"in r)return _d(r.parentElement||r.parentNode,n)}return null}var b9=Object.defineProperty,m9=Object.getOwnPropertyDescriptor,zo=(r,n,o,c)=>{for(var f=c>1?void 0:c?m9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&b9(n,o,f),f};const S2=Ee("split-row"),k2=Ee("action-bar");exports.SplitRow=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return ee`
723
771
  <brz-row vertical-align=${this.verticalAlign}>
724
772
  <div class="left">
725
773
  <slot name="left"></slot>
@@ -728,7 +776,7 @@
728
776
  <slot name="right"></slot>
729
777
  </div>
730
778
  </brz-row>
731
- `}};exports.SplitRow.styles=Se`
779
+ `}};exports.SplitRow.styles=ge`
732
780
  :host {
733
781
  display: block;
734
782
  }
@@ -757,7 +805,7 @@
757
805
  :host([right-expand]) .right {
758
806
  flex: 1;
759
807
  }
760
- `;Lo([F({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);Lo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);Lo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);Lo([F({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);Lo([F({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=Lo([Q(y2)],exports.SplitRow);exports.ActionBar=class extends Ue{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return ee`
808
+ `;zo([F({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);zo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);zo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);zo([F({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);zo([F({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=zo([Q(S2)],exports.SplitRow);exports.ActionBar=class extends Ue{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return ee`
761
809
  <brz-split-row
762
810
  vertical-align="middle"
763
811
  ?left-expand=${this.leftExpand}
@@ -766,7 +814,7 @@
766
814
  <slot slot="left" name="left"></slot>
767
815
  <slot slot="right" name="right"></slot>
768
816
  </brz-split-row>
769
- `}};exports.ActionBar.styles=Se`
817
+ `}};exports.ActionBar.styles=ge`
770
818
  brz-split-row {
771
819
  padding: var(--brz-spacing-2) var(--brz-spacing-5);
772
820
  box-shadow: inset 0 -1px 0 var(--brz-color-neutral-300);
@@ -775,7 +823,7 @@
775
823
  :host([no-border]) brz-split-row {
776
824
  box-shadow: none;
777
825
  }
778
- `;Lo([F({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);Lo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);Lo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=Lo([Q(C2)],exports.ActionBar);const f9=r=>r.viewBox!==void 0,d9={arrowDown:{svg:G`
826
+ `;zo([F({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);zo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);zo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=zo([Q(k2)],exports.ActionBar);const y9=r=>r.viewBox!==void 0,C9={arrowDown:{svg:G`
779
827
  <title>Asset 36</title>
780
828
  <g data-name="Layer 2">
781
829
  <g data-name="Layer 1">
@@ -981,7 +1029,7 @@
981
1029
  <rect width="96" height="70" fill="white"/>
982
1030
  </clipPath>
983
1031
  </defs>
984
- `},remove:{viewBox:"0 0 8 8",svg:G`<path d="M6.94801223,0 C7.23615358,0 7.48352022,0.102040816 7.69011213,0.306122449 C7.89670404,0.510204082 8,0.756462585 8,1.04489796 C8,1.33333333 7.89670404,1.58095238 7.69011213,1.7877551 L5.47196738,4.00816327 L7.69011213,6.22040816 C7.89670404,6.42721088 8,6.67210884 8,6.95510204 C8,7.24353741 7.89670404,7.48979592 7.69011213,7.69387755 C7.48352022,7.89795918 7.23615358,8 6.94801223,8 C6.65987088,8 6.41522256,7.89931973 6.21406728,7.69795918 L3.99592253,5.48571429 L1.78593272,7.69795918 C1.58477744,7.89931973 1.33741081,8 1.04383282,8 C0.755691471,8 0.509683996,7.89931973 0.305810398,7.69795918 C0.101936799,7.49659864 0,7.25170068 0,6.96326531 C0,6.66938776 0.100577642,6.42176871 0.301732926,6.22040816 L2.51987768,4.00816327 L0.301732926,1.7877551 C0.100577642,1.58639456 0,1.3414966 0,1.05306122 C0,0.76462585 0.101936799,0.517006803 0.305810398,0.310204082 C0.509683996,0.103401361 0.755691471,0 1.04383282,0 C1.33197418,0 1.57934081,0.103401361 1.78593272,0.310204082 L3.99592253,2.53061224 L6.21406728,0.310204082 C6.42065919,0.103401361 6.66530751,0 6.94801223,0 L6.94801223,0 Z"></path>`},send:{viewBox:"0 0 20 20",svg:G`<path d="M5.03704635,10.7541907 L7.42180053,10.5252487 C7.69667911,10.4988597 7.89811972,10.2546341 7.87173073,9.97975549 C7.84925662,9.74565598 7.66667952,9.55886065 7.4331543,9.53104628 L5.03704635,9.24565424 L5.03704635,9.24565424 C4.72354994,9.20132367 4.46176429,8.98902014 4.35901009,8.69577882 L2.04589833,2.0945898 C1.89460363,1.66282299 2.12958701,1.19277007 2.57074839,1.04469721 C2.79489852,0.969462724 3.04103331,0.9898631 3.249064,1.100918 L18.5597508,9.27436031 C18.9691867,9.49293317 19.1200564,9.99496674 18.8967278,10.3956837 C18.8190834,10.5350003 18.7020988,10.6494937 18.5597508,10.7254846 L3.249064,18.8989269 C2.83962811,19.1174998 2.32667107,18.9698429 2.1033424,18.569126 C1.98987111,18.3655253 1.96902686,18.124632 2.04589833,17.9052551 L4.35901009,11.3040661 C4.46176429,11.0108248 4.72354994,10.7985213 5.03704635,10.7541907 Z"></path>`},shiftOvernight:{viewBox:"0 0 14.045 13.82",svg:G`
1032
+ `},remove:{viewBox:"0 0 20 20",svg:G`<path fill-rule="evenodd" clip-rule="evenodd" d="M12.948 6C13.2362 6 13.4835 6.10204 13.6901 6.30612C13.8967 6.5102 14 6.75646 14 7.0449C14 7.33333 13.8967 7.58095 13.6901 7.78776L11.472 10.0082L13.6901 12.2204C13.8967 12.4272 14 12.6721 14 12.9551C14 13.2435 13.8967 13.4898 13.6901 13.6939C13.4835 13.898 13.2362 14 12.948 14C12.6599 14 12.4152 13.8993 12.2141 13.698L9.99592 11.4857L7.78593 13.698C7.58478 13.8993 7.33741 14 7.04383 14C6.75569 14 6.50968 13.8993 6.30581 13.698C6.10194 13.4966 6 13.2517 6 12.9633C6 12.6694 6.10058 12.4218 6.30173 12.2204L8.51988 10.0082L6.30173 7.78776C6.10058 7.58639 6 7.3415 6 7.05306C6 6.76463 6.10194 6.51701 6.30581 6.3102C6.50968 6.1034 6.75569 6 7.04383 6C7.33197 6 7.57934 6.1034 7.78593 6.3102L9.99592 8.53061L12.2141 6.3102C12.4207 6.1034 12.6653 6 12.948 6Z" />`},send:{viewBox:"0 0 20 20",svg:G`<path d="M5.03704635,10.7541907 L7.42180053,10.5252487 C7.69667911,10.4988597 7.89811972,10.2546341 7.87173073,9.97975549 C7.84925662,9.74565598 7.66667952,9.55886065 7.4331543,9.53104628 L5.03704635,9.24565424 L5.03704635,9.24565424 C4.72354994,9.20132367 4.46176429,8.98902014 4.35901009,8.69577882 L2.04589833,2.0945898 C1.89460363,1.66282299 2.12958701,1.19277007 2.57074839,1.04469721 C2.79489852,0.969462724 3.04103331,0.9898631 3.249064,1.100918 L18.5597508,9.27436031 C18.9691867,9.49293317 19.1200564,9.99496674 18.8967278,10.3956837 C18.8190834,10.5350003 18.7020988,10.6494937 18.5597508,10.7254846 L3.249064,18.8989269 C2.83962811,19.1174998 2.32667107,18.9698429 2.1033424,18.569126 C1.98987111,18.3655253 1.96902686,18.124632 2.04589833,17.9052551 L4.35901009,11.3040661 C4.46176429,11.0108248 4.72354994,10.7985213 5.03704635,10.7541907 Z"></path>`},shiftOvernight:{viewBox:"0 0 14.045 13.82",svg:G`
985
1033
  <path class="cls-1" d="M12.8425,8.1523A.9241.9241,0,0,1,13.93,9.4158a7.255,7.255,0,0,1-7.3557,4.3734A7.17,7.17,0,0,1,.0311,6.0212,7.1536,7.1536,0,0,1,4.4956.07a.9235.9235,0,0,1,1.2387,1.12A5.513,5.513,0,0,0,7.7564,7.3361a5.6967,5.6967,0,0,0,5.0861.8162"/>`},skeduloText:{viewBox:"0 0 4004.9 1000",svg:G`
986
1034
  <g>
987
1035
  <path class="st0" d="M900,0H100C44.8,0,0,44.8,0,100v800c0,55.2,44.8,100,100,100h800c55.2,0,100-44.8,100-100V100
@@ -1049,7 +1097,7 @@
1049
1097
  C7,14.1,7,14.1,7,14.1z"/>
1050
1098
  <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
1051
1099
  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
1052
- 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:G`<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:G`<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)"/>`}},h9="0 0 18 18",w2=r=>f9(r)?r:{svg:r,viewBox:h9},Gd={actions:G`
1100
+ 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:G`<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:G`<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)"/>`}},w9="0 0 18 18",M2=r=>y9(r)?r:{svg:r,viewBox:w9},Kd={actions:G`
1053
1101
  <g stroke="none" stroke-width="1" fill-rule="evenodd">
1054
1102
  <g transform="translate(-0.002970, 0.000000)">
1055
1103
  <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>
@@ -1514,9 +1562,16 @@
1514
1562
  <circle class="st0" cx="9" cy="13" r="1"/>
1515
1563
  <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"/>
1516
1564
  </g>
1517
- <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:G`<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:G`<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"/>`,...d9},p9=Object.keys(Gd);var g9=Object.defineProperty,v9=Object.getOwnPropertyDescriptor,qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?v9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&g9(n,o,f),f};const x2=Ee("icon");exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:r,viewBox:n}=w2(Gd[this.icon]);return ee`<svg width=${this.size} height=${this.size} viewBox=${n}>
1518
- ${r}
1519
- </svg>`}};exports.Icon.styles=Se`
1565
+ <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:G`<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:G`<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"/>`,...C9},x9=Object.keys(Kd);var z9=Object.defineProperty,L9=Object.getOwnPropertyDescriptor,Xd=(r,n,o,c)=>{for(var f=c>1?void 0:c?L9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&z9(n,o,f),f};const O2=Ee("icon");exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:r,viewBox:n}=M2(Kd[this.icon]);return ee`
1566
+ <svg
1567
+ role="presentation"
1568
+ width=${this.size}
1569
+ height=${this.size}
1570
+ viewBox=${n}
1571
+ >
1572
+ ${r}
1573
+ </svg>
1574
+ `}};exports.Icon.styles=ge`
1520
1575
  :host {
1521
1576
  /* to get rid of extra height caused by white space */
1522
1577
  line-height: 0;
@@ -1525,14 +1580,19 @@
1525
1580
  svg {
1526
1581
  fill: currentColor;
1527
1582
  }
1528
- `;qd([F({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);qd([F({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=qd([Q(x2)],exports.Icon);var b9=Object.defineProperty,m9=Object.getOwnPropertyDescriptor,N1=(r,n,o,c)=>{for(var f=c>1?void 0:c?m9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&b9(n,o,f),f};const L2=Ee("modal-header"),_2=Ee("modal-body"),z2=Ee("modal-footer");exports.ModalHeader=class extends Ue{get _noClose(){var r;return(r=xd(this.parentElement,exports.Modal))==null?void 0:r.noClose}_handleClickClose(){this.dispatchEvent(new Vd)}render(){return ee`
1583
+ `;Xd([F({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Xd([F({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Xd([Q(O2)],exports.Icon);var _9=Object.defineProperty,S9=Object.getOwnPropertyDescriptor,H1=(r,n,o,c)=>{for(var f=c>1?void 0:c?S9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_9(n,o,f),f};const T2=Ee("modal-header"),P2=Ee("modal-body"),A2=Ee("modal-footer");exports.ModalHeader=class extends Ue{get _noClose(){var r;return(r=_d(this.parentElement,exports.Modal))==null?void 0:r.noClose}_handleClickClose(){this.dispatchEvent(new jd)}render(){return ee`
1529
1584
  <brz-heading size="xl"><slot></slot></brz-heading>
1530
- ${this._noClose?void 0:ee`<brz-icon
1531
- id="close-button"
1532
- icon="close"
1533
- @click=${this._handleClickClose}
1534
- ></brz-icon>`}
1535
- `}};exports.ModalHeader.styles=Se`
1585
+ ${this._noClose?void 0:ee`
1586
+ <brz-button
1587
+ @brz-button-click=${this._handleClickClose}
1588
+ button-type="transparent"
1589
+ leading-icon="close"
1590
+ aria-label="Close"
1591
+ class="close"
1592
+ compact
1593
+ ></brz-button>
1594
+ `}
1595
+ `}};exports.ModalHeader.styles=ge`
1536
1596
  :host {
1537
1597
  padding: var(--brz-spacing-4) var(--brz-spacing-6);
1538
1598
  display: flex;
@@ -1541,11 +1601,15 @@
1541
1601
  justify-content: space-between;
1542
1602
  box-shadow: inset 0 -1px 0 0 var(--brz-color-neutral-300);
1543
1603
  }
1604
+
1544
1605
  brz-icon {
1545
- cursor: pointer;
1546
1606
  color: var(--brz-color-neutral-750);
1547
1607
  }
1548
- `;exports.ModalHeader=N1([Q(L2)],exports.ModalHeader);exports.ModalBody=class extends Ue{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 ee`<slot></slot>`}};exports.ModalBody.styles=Se`
1608
+
1609
+ brz-button.close {
1610
+ margin-right: calc(0px - var(--brz-spacing-2));
1611
+ }
1612
+ `;exports.ModalHeader=H1([Q(T2)],exports.ModalHeader);exports.ModalBody=class extends Ue{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 ee`<slot></slot>`}};exports.ModalBody.styles=ge`
1549
1613
  :host {
1550
1614
  display: block;
1551
1615
  padding: var(--brz-spacing-2) var(--brz-spacing-6) var(--brz-spacing-5)
@@ -1556,16 +1620,16 @@
1556
1620
  :host([scrollable]) {
1557
1621
  border-bottom: 1px solid var(--brz-color-neutral-300);
1558
1622
  }
1559
- `;N1([F({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=N1([Q(_2)],exports.ModalBody);exports.ModalFooter=class extends Ue{render(){return ee`
1623
+ `;H1([F({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=H1([Q(P2)],exports.ModalBody);exports.ModalFooter=class extends Ue{render(){return ee`
1560
1624
  <brz-split-row vertical-align="middle">
1561
1625
  <slot slot="left" name="left"></slot>
1562
1626
  <slot slot="right" name="right"></slot>
1563
1627
  </brz-split-row>
1564
- `}};exports.ModalFooter.styles=Se`
1628
+ `}};exports.ModalFooter.styles=ge`
1565
1629
  :host {
1566
1630
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
1567
1631
  }
1568
- `;exports.ModalFooter=N1([Q(z2)],exports.ModalFooter);var y9=Object.defineProperty,C9=Object.getOwnPropertyDescriptor,S2=(r,n,o,c)=>{for(var f=c>1?void 0:c?C9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&y9(n,o,f),f};const M2=Ee("confirmation-dialog");class k2 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class O2 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new k2)}handleConfirm(){this.dispatchEvent(new O2)}render(){return ee`<brz-modal size="small" ?open=${this.open} noClose>
1632
+ `;exports.ModalFooter=H1([Q(A2)],exports.ModalFooter);var k9=Object.defineProperty,M9=Object.getOwnPropertyDescriptor,E2=(r,n,o,c)=>{for(var f=c>1?void 0:c?M9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&k9(n,o,f),f};const I2=Ee("confirmation-dialog");class D2 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class R2 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new D2)}handleConfirm(){this.dispatchEvent(new R2)}render(){return ee`<brz-modal size="small" ?open=${this.open} noClose>
1569
1633
  <brz-modal-body>
1570
1634
  <slot name="body"></slot>
1571
1635
  </brz-modal-body>
@@ -1579,7 +1643,7 @@
1579
1643
  </brz-button>
1580
1644
  </brz-button-group>
1581
1645
  </brz-modal-footer>
1582
- </brz-modal>`}};S2([F({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=S2([Q(M2)],exports.ConfirmationDialog);var w9=Object.defineProperty,x9=Object.getOwnPropertyDescriptor,js=(r,n,o,c)=>{for(var f=c>1?void 0:c?x9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&w9(n,o,f),f};class _o extends Ue{constructor(){super(...arguments),this.readonly=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(n){this.value=n.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(n){this.useProxy&&this.updateProxyInput()}}js([F({type:Boolean,reflect:!0})],_o.prototype,"readonly",2);js([F({type:Boolean,reflect:!0})],_o.prototype,"invalid",2);js([F({type:String})],_o.prototype,"name",2);js([F({type:String})],_o.prototype,"id",2);js([F({type:String})],_o.prototype,"value",2);js([pt()],_o.prototype,"proxyInput",2);js([pt()],_o.prototype,"useProxy",2);var L9=Object.defineProperty,_9=Object.getOwnPropertyDescriptor,du=(r,n,o,c)=>{for(var f=c>1?void 0:c?_9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&L9(n,o,f),f};const T2=Ee("input-checkbox"),Di={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends _o{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=Di.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(r){r.key===" "&&this.onInput()}onInput(){if(!(this.readonly||this.disabled)){switch(this.checkboxState){case Di.Checked:this.checked=!1;break;case Di.Empty:this.checked=!0;break;case Di.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 Di.Checked:return ee`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Di.Indeterminate:return ee`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Di.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Di.Checked:this.indeterminate?Di.Indeterminate:Di.Empty,ee` <label>
1646
+ </brz-modal>`}};E2([F({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=E2([Q(I2)],exports.ConfirmationDialog);var O9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,Ks=(r,n,o,c)=>{for(var f=c>1?void 0:c?T9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&O9(n,o,f),f};class Lo extends Ue{constructor(){super(...arguments),this.readonly=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(n){this.value=n.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(n){this.useProxy&&this.updateProxyInput()}}Ks([F({type:Boolean,reflect:!0})],Lo.prototype,"readonly",2);Ks([F({type:Boolean,reflect:!0})],Lo.prototype,"invalid",2);Ks([F({type:String})],Lo.prototype,"name",2);Ks([F({type:String})],Lo.prototype,"id",2);Ks([F({type:String})],Lo.prototype,"value",2);Ks([pt()],Lo.prototype,"proxyInput",2);Ks([pt()],Lo.prototype,"useProxy",2);var P9=Object.defineProperty,A9=Object.getOwnPropertyDescriptor,hu=(r,n,o,c)=>{for(var f=c>1?void 0:c?A9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&P9(n,o,f),f};const N2=Ee("input-checkbox"),Ri={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Lo{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=Ri.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(r){r.key===" "&&this.onInput()}onInput(){if(!(this.readonly||this.disabled)){switch(this.checkboxState){case Ri.Checked:this.checked=!1;break;case Ri.Empty:this.checked=!0;break;case Ri.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 Ri.Checked:return ee`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Ri.Indeterminate:return ee`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Ri.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Ri.Checked:this.indeterminate?Ri.Indeterminate:Ri.Empty,ee` <label>
1583
1647
  <div
1584
1648
  class="checkbox"
1585
1649
  tabindex=${this.disabled?"-1":"0"}
@@ -1593,14 +1657,18 @@
1593
1657
  .value=${this.value}
1594
1658
  type="checkbox"
1595
1659
  ?readonly=${this.readonly}
1596
- ?checked=${this.checkboxState===Di.Checked}
1597
- aria-invalid=${Vt(this.invalid?this.invalid:void 0)}
1660
+ ?checked=${this.checkboxState===Ri.Checked}
1661
+ aria-invalid=${qt(this.invalid?this.invalid:void 0)}
1598
1662
  id=${this.id}
1599
1663
  ?disabled=${this.disabled}
1600
1664
  />
1601
1665
 
1602
1666
  <slot></slot>
1603
- </label>`}};exports.InputCheckbox.styles=[Se`
1667
+ </label>`}};exports.InputCheckbox.styles=[ge`
1668
+ :host {
1669
+ --brz-checkbox-size: var(--brz-spacing-4);
1670
+ }
1671
+
1604
1672
  label {
1605
1673
  display: flex;
1606
1674
  align-items: center;
@@ -1626,15 +1694,17 @@
1626
1694
  border-color: inherit;
1627
1695
  }
1628
1696
 
1697
+ ${E0(".checkbox")}
1698
+
1629
1699
  .checkbox {
1630
- width: 16px;
1631
- min-width: 16px;
1632
- height: 16px;
1700
+ width: var(--brz-checkbox-size);
1701
+ min-width: var(--brz-checkbox-size);
1702
+ height: var(--brz-checkbox-size);
1633
1703
  box-sizing: border-box;
1634
1704
  display: flex;
1635
1705
  justify-content: center;
1636
1706
  align-items: center;
1637
- border: solid 1px var(--brz-color-neutral-700);
1707
+ border: solid var(--brz-spacing-px) var(--brz-color-neutral-700);
1638
1708
  color: var(--brz-color-white);
1639
1709
  border-radius: var(--brz-border-radius-default);
1640
1710
  margin-right: var(--brz-spacing-3);
@@ -1647,16 +1717,16 @@
1647
1717
  position: absolute;
1648
1718
  left: 0;
1649
1719
  }
1650
- `];du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);du([pt()],exports.InputCheckbox.prototype,"checkboxState",2);du([pt()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=du([Q(T2)],exports.InputCheckbox);var z9=Object.defineProperty,S9=Object.getOwnPropertyDescriptor,M9=(r,n,o,c)=>{for(var f=c>1?void 0:c?S9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&z9(n,o,f),f};const k9=Ee("input-guide");let _1=class extends Ue{render(){return ee` <slot></slot> `}};_1.styles=Se`
1720
+ `];hu([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);hu([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);hu([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);hu([pt()],exports.InputCheckbox.prototype,"checkboxState",2);hu([pt()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=hu([Q(N2)],exports.InputCheckbox);var E9=Object.defineProperty,I9=Object.getOwnPropertyDescriptor,D9=(r,n,o,c)=>{for(var f=c>1?void 0:c?I9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&E9(n,o,f),f};const R9=Ee("input-guide");let S1=class extends Ue{render(){return ee` <slot></slot> `}};S1.styles=ge`
1651
1721
  :host {
1652
1722
  font-size: var(--brz-font-size-xs);
1653
1723
  }
1654
- `;_1=M9([Q(k9)],_1);var O9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,P9=(r,n,o,c)=>{for(var f=c>1?void 0:c?T9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&O9(n,o,f),f};const P2=Ee("input-error");exports.InputError=class extends Ue{render(){return ee` <slot></slot> `}};exports.InputError.styles=Se`
1724
+ `;S1=D9([Q(R9)],S1);var N9=Object.defineProperty,$9=Object.getOwnPropertyDescriptor,H9=(r,n,o,c)=>{for(var f=c>1?void 0:c?$9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&N9(n,o,f),f};const $2=Ee("input-error");exports.InputError=class extends Ue{render(){return ee` <slot></slot> `}};exports.InputError.styles=ge`
1655
1725
  :host {
1656
1726
  font-size: var(--brz-font-size-sm);
1657
1727
  color: var(--brz-color-error);
1658
1728
  }
1659
- `;exports.InputError=P9([Q(P2)],exports.InputError);var A9=Object.defineProperty,E9=Object.getOwnPropertyDescriptor,es=(r,n,o,c)=>{for(var f=c>1?void 0:c?E9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&A9(n,o,f),f};const A2=Ee("labeled-input"),E2=Ee("input-label"),I9=Se`
1729
+ `;exports.InputError=H9([Q($2)],exports.InputError);var B9=Object.defineProperty,F9=Object.getOwnPropertyDescriptor,Ja=(r,n,o,c)=>{for(var f=c>1?void 0:c?F9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&B9(n,o,f),f};const H2=Ee("labeled-input"),B2=Ee("input-label"),W9=ge`
1660
1730
  .size-x-small {
1661
1731
  width: 80px;
1662
1732
  }
@@ -1680,7 +1750,7 @@
1680
1750
  .size-full {
1681
1751
  width: 100%;
1682
1752
  }
1683
- `,D9=Se`
1753
+ `,U9=ge`
1684
1754
  .container {
1685
1755
  display: flex;
1686
1756
  }
@@ -1725,7 +1795,7 @@
1725
1795
  brz-split-row {
1726
1796
  text-align: right;
1727
1797
  }
1728
- `,R9=Se`
1798
+ `,Y9=ge`
1729
1799
  .guide {
1730
1800
  display: flex;
1731
1801
  }
@@ -1734,7 +1804,7 @@
1734
1804
  margin-left: auto;
1735
1805
  white-space: nowrap;
1736
1806
  }
1737
- `;exports.LabeledInput=class extends _o{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasPrompt=!1,this.hasError=!1}handleLabelChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="label"]');this.hasLabel=r.assignedNodes().length>0}handlePromptChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="prompt"]');this.hasPrompt=r.assignedNodes().length>0}handleErrorChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="error"]');this.hasError=r.assignedNodes().length>0}renderInput(){return ee`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){const r=`size-${this.size}`;return ee`
1807
+ `;exports.LabeledInput=class extends Lo{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasPrompt=!1,this.hasError=!1}handleLabelChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="label"]');this.hasLabel=r.assignedNodes().length>0}handlePromptChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="prompt"]');this.hasPrompt=r.assignedNodes().length>0}handleErrorChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="error"]');this.hasError=r.assignedNodes().length>0}renderInput(){return ee`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){const r=`size-${this.size}`;return ee`
1738
1808
  ${this.labelPosition==="side"?ee`<brz-split-row
1739
1809
  class=${r}
1740
1810
  style=${r==="size-full"?"":"margin-left: 180px"}
@@ -1744,7 +1814,7 @@
1744
1814
  <div class=${this.labelPosition==="top"?r:"container"}>
1745
1815
  <brz-split-row
1746
1816
  no-gap
1747
- class=${Qa({"has-label":this.hasLabel,[r]:this.hasPrompt})}
1817
+ class=${Xa({"has-label":this.hasLabel,[r]:this.hasPrompt})}
1748
1818
  >
1749
1819
  <label slot="left" for=${this.id} class="field-label">
1750
1820
  <brz-input-label>
@@ -1759,7 +1829,7 @@
1759
1829
  ${this.renderInputContainer()}
1760
1830
 
1761
1831
  <div
1762
- class=${Qa({guide:!0,"has-error":this.hasError})}
1832
+ class=${Xa({guide:!0,"has-error":this.hasError})}
1763
1833
  >
1764
1834
  <brz-input-error>
1765
1835
  <slot @slotchange=${this.handleErrorChange} name="error"></slot>
@@ -1769,24 +1839,25 @@
1769
1839
  </div>
1770
1840
  </div>
1771
1841
  </div>
1772
- `}};exports.LabeledInput.styles=[I9,D9,R9];es([F({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);es([F({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);es([F({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);es([pt()],exports.LabeledInput.prototype,"hasLabel",2);es([pt()],exports.LabeledInput.prototype,"hasPrompt",2);es([pt()],exports.LabeledInput.prototype,"hasError",2);exports.LabeledInput=es([Q(A2)],exports.LabeledInput);exports.InputLabel=class extends Ue{render(){return ee`<slot></slot>`}};exports.InputLabel.styles=Se`
1842
+ `}};exports.LabeledInput.styles=[W9,U9,Y9];Ja([F({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);Ja([F({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Ja([F({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Ja([pt()],exports.LabeledInput.prototype,"hasLabel",2);Ja([pt()],exports.LabeledInput.prototype,"hasPrompt",2);Ja([pt()],exports.LabeledInput.prototype,"hasError",2);exports.LabeledInput=Ja([Q(H2)],exports.LabeledInput);exports.InputLabel=class extends Ue{render(){return ee`<slot></slot>`}};exports.InputLabel.styles=ge`
1773
1843
  :host {
1774
1844
  display: inline-block;
1775
1845
  color: var(--brz-color-neutral-850);
1776
1846
  font-weight: var(--brz-font-weight-medium);
1777
1847
  line-height: var(--brz-line-height);
1778
1848
  }
1779
- `;exports.InputLabel=es([Q(E2)],exports.InputLabel);var N9=Object.defineProperty,$9=Object.getOwnPropertyDescriptor,jd=(r,n,o,c)=>{for(var f=c>1?void 0:c?$9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&N9(n,o,f),f};const H9=Se`
1849
+ `;exports.InputLabel=Ja([Q(B2)],exports.InputLabel);var Z9=Object.defineProperty,V9=Object.getOwnPropertyDescriptor,Qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?V9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Z9(n,o,f),f};const G9=ge`
1780
1850
  :host {
1781
1851
  --input-text-color: var(--brz-color-neutral-850);
1782
1852
  --input-font: var(--brz-font-family);
1783
1853
  --input-font-size: var(--brz-font-size);
1784
1854
  --input-placeholder-font-color: var(--brz-color-text-placeholder);
1785
- --input-border: solid 1px var(--brz-color-neutral-700);
1855
+ --input-border-width: var(--brz-spacing-px);
1856
+ --input-border: var(--input-border-width) solid var(--brz-color-neutral-700);
1786
1857
  --input-border-radius: var(--brz-border-radius-default);
1787
1858
  --input-padding: var(--brz-spacing-2);
1788
- --input-readonly-border: none;
1789
1859
  --input-readonly-background-color: var(--brz-color-neutral-250);
1860
+ --input-readonly-border-color: var(--input-readonly-background-color);
1790
1861
  --input-invalid-border-color: var(--brz-color-error);
1791
1862
  --input-focus-border-color: var(--brz-color-primary-600);
1792
1863
  --input-hover-border-color: var(--brz-color-neutral-850);
@@ -1834,7 +1905,7 @@
1834
1905
  input[readonly],
1835
1906
  textarea[readonly] {
1836
1907
  background-color: var(--input-readonly-background-color);
1837
- border: var(--input-readonly-border);
1908
+ border-color: var(--input-readonly-border-color);
1838
1909
  }
1839
1910
 
1840
1911
  .input-container {
@@ -1859,11 +1930,11 @@
1859
1930
  right: var(--input-padding);
1860
1931
  }
1861
1932
 
1862
- :host([leading-icon]) input {
1933
+ :host([leading-icon]) input:not([type='search']) {
1863
1934
  padding-left: var(--input-icon-offset);
1864
1935
  }
1865
1936
 
1866
- :host([trailing-icon]) input {
1937
+ :host([trailing-icon]) input:not([type='search']) {
1867
1938
  padding-right: var(--input-icon-offset);
1868
1939
  }
1869
1940
  `;class Rn extends exports.LabeledInput{renderInputContainer(){return ee`
@@ -1875,38 +1946,38 @@
1875
1946
  class="trailing"
1876
1947
  ></brz-icon>`:null}
1877
1948
  </div>
1878
- `}}Rn.styles=[...exports.LabeledInput.styles,H9];jd([F({type:String})],Rn.prototype,"placeholder",2);jd([F({type:String,reflect:!0,attribute:"leading-icon"})],Rn.prototype,"leadingIcon",2);jd([F({type:String,reflect:!0,attribute:"trailing-icon"})],Rn.prototype,"trailingIcon",2);var B9=Object.defineProperty,F9=Object.getOwnPropertyDescriptor,$1=(r,n,o,c)=>{for(var f=c>1?void 0:c?F9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&B9(n,o,f),f};const I2=Ee("input-text");exports.InputText=class extends Rn{constructor(){super(...arguments),this.size="medium"}renderInput(){return ee`
1949
+ `}}Rn.styles=[...exports.LabeledInput.styles,G9];Qd([F({type:String})],Rn.prototype,"placeholder",2);Qd([F({type:String,reflect:!0,attribute:"leading-icon"})],Rn.prototype,"leadingIcon",2);Qd([F({type:String,reflect:!0,attribute:"trailing-icon"})],Rn.prototype,"trailingIcon",2);var q9=Object.defineProperty,j9=Object.getOwnPropertyDescriptor,B1=(r,n,o,c)=>{for(var f=c>1?void 0:c?j9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&q9(n,o,f),f};const F2=Ee("input-text");exports.InputText=class extends Rn{constructor(){super(...arguments),this.size="medium"}renderInput(){return ee`
1879
1950
  <input
1880
1951
  @input=${this.onInput}
1881
- .value=${Vt(this.value)}
1952
+ .value=${qt(this.value)}
1882
1953
  id=${this.id}
1883
1954
  type="text"
1884
- placeholder=${Vt(this.placeholder)}
1885
- aria-invalid=${Vt(this.invalid?this.invalid:void 0)}
1886
- maxlength=${Vt(this.maxlength)}
1955
+ placeholder=${qt(this.placeholder)}
1956
+ aria-invalid=${qt(this.invalid?this.invalid:void 0)}
1957
+ maxlength=${qt(this.maxlength)}
1887
1958
  ?readonly=${this.readonly}
1888
1959
  />
1889
- `}};exports.InputText.styles=[...Rn.styles,Se`
1960
+ `}};exports.InputText.styles=[...Rn.styles,ge`
1890
1961
  input {
1891
1962
  height: 36px;
1892
1963
  }
1893
- `];$1([F({type:String})],exports.InputText.prototype,"value",2);$1([F({type:String,reflect:!0})],exports.InputText.prototype,"size",2);$1([F({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=$1([Q(I2)],exports.InputText);var W9=Object.defineProperty,U9=Object.getOwnPropertyDescriptor,H1=(r,n,o,c)=>{for(var f=c>1?void 0:c?U9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&W9(n,o,f),f};const D2=Ee("input-textarea");exports.InputTextarea=class extends Rn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const r=((o=this.value)==null?void 0:o.length)||0,n=ee`${r} of ${this.maxlength}`;return r>=this.maxlength?ee`<brz-input-error>${n}</brz-input-error>`:ee`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var r;return ee`
1964
+ `];B1([F({type:String})],exports.InputText.prototype,"value",2);B1([F({type:String,reflect:!0})],exports.InputText.prototype,"size",2);B1([F({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=B1([Q(F2)],exports.InputText);var K9=Object.defineProperty,X9=Object.getOwnPropertyDescriptor,F1=(r,n,o,c)=>{for(var f=c>1?void 0:c?X9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&K9(n,o,f),f};const W2=Ee("input-textarea");exports.InputTextarea=class extends Rn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const r=((o=this.value)==null?void 0:o.length)||0,n=ee`${r} of ${this.maxlength}`;return r>=this.maxlength?ee`<brz-input-error>${n}</brz-input-error>`:ee`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var r;return ee`
1894
1965
  <textarea
1895
1966
  @input=${this.onInput}
1896
1967
  .value=${(r=this.value)!=null?r:""}
1897
1968
  id=${this.id}
1898
1969
  type="text"
1899
- placeholder=${Vt(this.placeholder)}
1900
- aria-invalid=${Vt(this.invalid?this.invalid:void 0)}
1901
- maxlength=${Vt(this.maxlength)}
1970
+ placeholder=${qt(this.placeholder)}
1971
+ aria-invalid=${qt(this.invalid?this.invalid:void 0)}
1972
+ maxlength=${qt(this.maxlength)}
1902
1973
  ?readonly=${this.readonly}
1903
1974
  />
1904
- `}};exports.InputTextarea.styles=[...Rn.styles,Se`
1975
+ `}};exports.InputTextarea.styles=[...Rn.styles,ge`
1905
1976
  textarea {
1906
1977
  height: 100px;
1907
1978
  resize: none;
1908
1979
  }
1909
- `];H1([F({type:String})],exports.InputTextarea.prototype,"value",2);H1([F({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);H1([F({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=H1([Q(D2)],exports.InputTextarea);var Y9=Object.defineProperty,Z9=Object.getOwnPropertyDescriptor,D0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Z9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Y9(n,o,f),f};const R2=Ee("input-number"),V9=Se`
1980
+ `];F1([F({type:String})],exports.InputTextarea.prototype,"value",2);F1([F({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);F1([F({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=F1([Q(W2)],exports.InputTextarea);var Q9=Object.defineProperty,J9=Object.getOwnPropertyDescriptor,N0=(r,n,o,c)=>{for(var f=c>1?void 0:c?J9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Q9(n,o,f),f};const U2=Ee("input-number"),e8=ge`
1910
1981
  /* Chrome, Safari, Edge, Opera */
1911
1982
  input::-webkit-outer-spin-button,
1912
1983
  input::-webkit-inner-spin-button {
@@ -1918,7 +1989,7 @@
1918
1989
  input[type='number'] {
1919
1990
  -moz-appearance: textfield;
1920
1991
  }
1921
- `,N2=["e"],$2=r=>N2.includes(r.toLowerCase()),G9=r=>!!N2.find(n=>r.toLowerCase().includes(n)),q9=r=>{$2(r.key)&&r.preventDefault()},j9=r=>{var c;const{clipboardData:n}=r||window,o=(c=n==null?void 0:n.getData("text"))==null?void 0:c.toLowerCase();!o||($2(o)||G9(o))&&(r.stopPropagation(),r.preventDefault())};exports.InputNumber=class extends Rn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("input");return r==null||r.focus(),r}handleIncrease(){var n;const r=this.getInput();r==null||r.stepUp(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleDecrease(){var n;const r=this.getInput();r==null||r.stepDown(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleSteppedChange(r){this.value=r,this.dispatchChange()}get stepperLayout(){return this.hasNoStepper?null:ee`
1992
+ `,Y2=["e"],Z2=r=>Y2.includes(r.toLowerCase()),t8=r=>!!Y2.find(n=>r.toLowerCase().includes(n)),r8=r=>{Z2(r.key)&&r.preventDefault()},n8=r=>{var c;const{clipboardData:n}=r||window,o=(c=n==null?void 0:n.getData("text"))==null?void 0:c.toLowerCase();!o||(Z2(o)||t8(o))&&(r.stopPropagation(),r.preventDefault())};exports.InputNumber=class extends Rn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("input");return r==null||r.focus(),r}handleIncrease(){var n;const r=this.getInput();r==null||r.stepUp(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleDecrease(){var n;const r=this.getInput();r==null||r.stepDown(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleSteppedChange(r){this.value=r,this.dispatchChange()}get stepperLayout(){return this.hasNoStepper?null:ee`
1922
1993
  <div class="stepper-container">
1923
1994
  <button
1924
1995
  @click=${this.handleDecrease}
@@ -1942,21 +2013,21 @@
1942
2013
  `}renderInput(){return ee`<div class="container">
1943
2014
  ${this.stepperLayout}
1944
2015
  <input
1945
- @keydown=${q9}
1946
- @paste=${j9}
2016
+ @keydown=${r8}
2017
+ @paste=${n8}
1947
2018
  @input=${this.onInput}
1948
2019
  @change=${this.onInput}
1949
2020
  .value=${this.value}
1950
2021
  .step=${this.step}
1951
2022
  type="number"
1952
2023
  ?readonly=${this.readonly}
1953
- placeholder=${Vt(this.placeholder)}
1954
- aria-invalid=${Vt(this.invalid?this.invalid:void 0)}
2024
+ placeholder=${qt(this.placeholder)}
2025
+ aria-invalid=${qt(this.invalid?this.invalid:void 0)}
1955
2026
  id=${this.id}
1956
- min=${Vt(this.min)}
1957
- max=${Vt(this.max)}
2027
+ min=${qt(this.min)}
2028
+ max=${qt(this.max)}
1958
2029
  />
1959
- </div>`}};exports.InputNumber.styles=[...Rn.styles,V9,Se`
2030
+ </div>`}};exports.InputNumber.styles=[...Rn.styles,e8,ge`
1960
2031
  :host(:not[has-no-stepper]) input {
1961
2032
  padding-right: var(--brz-spacing-20);
1962
2033
  }
@@ -2000,11 +2071,11 @@
2000
2071
  cursor: unset;
2001
2072
  background-color: var(--brz-color-neutral-250);
2002
2073
  }
2003
- `];D0([F({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);exports.InputNumber=D0([Q(R2)],exports.InputNumber);/**
2074
+ `];N0([F({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);N0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);N0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);N0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);exports.InputNumber=N0([Q(U2)],exports.InputNumber);/**
2004
2075
  * @license
2005
2076
  * Copyright 2017 Google LLC
2006
2077
  * SPDX-License-Identifier: BSD-3-Clause
2007
- */class Ld extends E1{constructor(n){if(super(n),this.it=Cr,n.type!==P1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===Cr||n==null)return this._t=void 0,this.it=n;if(n===mo)return n;if(typeof n!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(n===this.it)return this._t;this.it=n;const o=[n];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Ld.directiveName="unsafeHTML",Ld.resultType=1;const K9=A1(Ld);var X9=Object.defineProperty,Q9=Object.getOwnPropertyDescriptor,Ks=(r,n,o,c)=>{for(var f=c>1?void 0:c?Q9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&X9(n,o,f),f};const H2=Ee("input-radio-group"),B2=Ee("input-radio-option");exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(r.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(r){const n=r.target;this.value=n.value,this.dispatchChange()}renderInput(){return ee`
2078
+ */class Sd extends D1{constructor(n){if(super(n),this.it=Cr,n.type!==E1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===Cr||n==null)return this._t=void 0,this.it=n;if(n===yo)return n;if(typeof n!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(n===this.it)return this._t;this.it=n;const o=[n];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Sd.directiveName="unsafeHTML",Sd.resultType=1;const i8=I1(Sd);var o8=Object.defineProperty,a8=Object.getOwnPropertyDescriptor,Xs=(r,n,o,c)=>{for(var f=c>1?void 0:c?a8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&o8(n,o,f),f};const V2=Ee("input-radio-group"),G2=Ee("input-radio-option");exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(r.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(r){const n=r.target;this.value=n.value,this.dispatchChange()}renderInput(){return ee`
2008
2079
  <slot
2009
2080
  id="options"
2010
2081
  style="display: none;"
@@ -2021,10 +2092,10 @@
2021
2092
  ?checked=${n}
2022
2093
  ?disabled=${r.disabled||this.readonly}
2023
2094
  />
2024
- <label for=${r.value}>${K9(r.innerHTML)}</label>
2095
+ <label for=${r.value}>${i8(r.innerHTML)}</label>
2025
2096
  </div>`})}
2026
2097
  </fieldset>
2027
- `}};exports.InputRadio.styles=[...exports.LabeledInput.styles,Se`
2098
+ `}};exports.InputRadio.styles=[...exports.LabeledInput.styles,ge`
2028
2099
  :host {
2029
2100
  --radio-label-gap: var(--brz-spacing-3);
2030
2101
  }
@@ -2078,6 +2149,7 @@
2078
2149
  border: 1px solid var(--brz-color-neutral-700);
2079
2150
  width: var(--brz-spacing-4);
2080
2151
  height: var(--brz-spacing-4);
2152
+ outline-color: transparent;
2081
2153
  }
2082
2154
 
2083
2155
  input[type='radio'] + label::after {
@@ -2103,9 +2175,19 @@
2103
2175
  border-color: var(--brz-color-primary-600);
2104
2176
  }
2105
2177
 
2106
- input[type='radio']:focus + label::before {
2107
- box-shadow: 0 0px 0px 1px var(--brz-color-primary-600),
2108
- 0 0px 8px var(--brz-color-primary-600);
2178
+ input[type='radio']:focus-visible + label::before {
2179
+ outline: var(--brz-outline-color) var(--brz-outline-style)
2180
+ var(--brz-outline-width);
2181
+ outline-offset: var(--brz-outline-offset);
2182
+ transition: var(--brz-outline-transition);
2183
+ }
2184
+
2185
+ @supports not selector(:focus-visible) {
2186
+ input[type='radio']:focus + label::before {
2187
+ outline: var(--brz-outline);
2188
+ outline-offset: var(--brz-outline-offset);
2189
+ transition: var(--brz-outline-transition);
2190
+ }
2109
2191
  }
2110
2192
 
2111
2193
  input[type='radio']:disabled + label::before {
@@ -2115,31 +2197,31 @@
2115
2197
  input[type='radio']:checked:disabled + label::after {
2116
2198
  background-color: var(--brz-color-neutral-450);
2117
2199
  }
2118
- `];Ks([F({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Ks([F({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Ks([pt()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Ks([Q(H2)],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};Ks([F({type:String})],exports.InputRadioOption.prototype,"value",2);Ks([F({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Ks([Q(B2)],exports.InputRadioOption);var Ql=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ca={exports:{}};(function(r,n){(function(o,c){r.exports=c()})(Ql,function(){var o=navigator.userAgent,c=navigator.platform,f=/gecko\/\d/i.test(o),p=/MSIE \d/.test(o),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),k=/Edge\/(\d+)/.exec(o),S=p||b||k,O=S&&(p?document.documentMode||6:+(k||b)[1]),I=!k&&/WebKit\//.test(o),U=I&&/Qt\/\d+\.\d+/.test(o),q=!k&&/Chrome\//.test(o),X=/Opera\//.test(o),ce=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),me=/PhantomJS/.test(o),Ae=ce&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),Ie=/Android/.test(o),pe=Ae||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),he=Ae||/Mac/.test(c),Te=/\bCrOS\b/.test(o),He=/win/i.test(c),Ye=X&&o.match(/Version\/(\d*\.\d*)/);Ye&&(Ye=Number(Ye[1])),Ye&&Ye>=15&&(X=!1,I=!0);var et=he&&(U||X&&(Ye==null||Ye<12.11)),nt=f||S&&O>=9;function ge(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var s=e.className,a=ge(t).exec(s);if(a){var u=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(u?a[1]+u:"")}};function it(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function W(e,t){return it(e).appendChild(t)}function E(e,t,s,a){var u=document.createElement(e);if(s&&(u.className=s),a&&(u.style.cssText=a),typeof t=="string")u.appendChild(document.createTextNode(t));else if(t)for(var h=0;h<t.length;++h)u.appendChild(t[h]);return u}function T(e,t,s,a){var u=E(e,t,s,a);return u.setAttribute("role","presentation"),u}var ne;document.createRange?ne=function(e,t,s,a){var u=document.createRange();return u.setEnd(a||e,s),u.setStart(e,t),u}:ne=function(e,t,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",t),a};function ve(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ot(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function At(e,t){var s=e.className;ge(t).test(s)||(e.className+=(s?" ":"")+t)}function sr(e,t){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!ge(s[a]).test(t)&&(t+=" "+s[a]);return t}var Bt=function(e){e.select()};Ae?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:S&&(Bt=function(e){try{e.select()}catch{}});function dn(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function er(e,t,s){t||(t={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!t.hasOwnProperty(a))&&(t[a]=e[a]);return t}function Ft(e,t,s,a,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=a||0,g=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return g+(t-h);g+=m-h,g+=s-g%s,h=m+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=dn(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,t){this.f=t;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function _e(e,t){for(var s=0;s<e.length;++s)if(e[s]==t)return s;return-1}var Fe=50,Ze={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},st={origin:"*mouse"},We={origin:"+move"};function Gt(e,t,s){for(var a=0,u=0;;){var h=e.indexOf(" ",a);h==-1&&(h=e.length);var g=h-a;if(h==e.length||u+g>=t)return a+Math.min(g,t-u);if(u+=h-a,u+=s-u%s,a=h+1,u>=t)return a}}var qr=[""];function lr(e){for(;qr.length<=e;)qr.push(Xe(qr)+" ");return qr[e]}function Xe(e){return e[e.length-1]}function yt(e,t){for(var s=[],a=0;a<e.length;a++)s[a]=t(e[a],a);return s}function kt(e,t,s){for(var a=0,u=s(t);a<e.length&&s(e[a])<=u;)a++;e.splice(a,0,t)}function $r(){}function rn(e,t){var s;return Object.create?s=Object.create(e):($r.prototype=e,s=new $r),t&&er(t,s),s}var fr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||fr.test(e))}function B(e,t){return t?t.source.indexOf("\\w")>-1&&tt(e)?!0:t.test(e):tt(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var V=/[\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 Qe(e){return e.charCodeAt(0)>=768&&V.test(e)}function dr(e,t,s){for(;(s<0?t>0:t<e.length)&&Qe(e.charAt(t));)t+=s;return t}function Mr(e,t,s){for(var a=t>s?-1:1;;){if(t==s)return t;var u=(t+s)/2,h=a<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:s;e(h)?s=h:t=h+a}}function $n(e,t,s,a){if(!e)return a(t,s,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var g=e[h];(g.from<s&&g.to>t||t==s&&g.to==t)&&(a(Math.max(g.from,t),Math.min(g.to,s),g.level==1?"rtl":"ltr",h),u=!0)}u||a(t,s,"ltr")}var jr=null;function Zt(e,t,s){var a;jr=null;for(var u=0;u<e.length;++u){var h=e[u];if(h.from<t&&h.to>t)return u;h.to==t&&(h.from!=h.to&&s=="before"?a=u:jr=u),h.from==t&&(h.from!=h.to&&s!="before"?a=u:jr=u)}return a!=null?a:jr}var xi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?t.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,g=/[Lb1n]/,m=/[1n]/;function y(C,z,M){this.level=C,this.from=z,this.to=M}return function(C,z){var M=z=="ltr"?"L":"R";if(C.length==0||z=="ltr"&&!a.test(C))return!1;for(var N=C.length,R=[],Z=0;Z<N;++Z)R.push(s(C.charCodeAt(Z)));for(var J=0,le=M;J<N;++J){var fe=R[J];fe=="m"?R[J]=le:le=fe}for(var Ce=0,de=M;Ce<N;++Ce){var xe=R[Ce];xe=="1"&&de=="r"?R[Ce]="n":h.test(xe)&&(de=xe,xe=="r"&&(R[Ce]="R"))}for(var Re=1,Pe=R[0];Re<N-1;++Re){var lt=R[Re];lt=="+"&&Pe=="1"&&R[Re+1]=="1"?R[Re]="1":lt==","&&Pe==R[Re+1]&&(Pe=="1"||Pe=="n")&&(R[Re]=Pe),Pe=lt}for(var Ot=0;Ot<N;++Ot){var ur=R[Ot];if(ur==",")R[Ot]="N";else if(ur=="%"){var Rt=void 0;for(Rt=Ot+1;Rt<N&&R[Rt]=="%";++Rt);for(var Ur=Ot&&R[Ot-1]=="!"||Rt<N&&R[Rt]=="1"?"1":"N",Yr=Ot;Yr<Rt;++Yr)R[Yr]=Ur;Ot=Rt-1}}for(var rr=0,Sr=M;rr<N;++rr){var gr=R[rr];Sr=="L"&&gr=="1"?R[rr]="L":h.test(gr)&&(Sr=gr)}for(var It=0;It<N;++It)if(u.test(R[It])){var Ht=void 0;for(Ht=It+1;Ht<N&&u.test(R[Ht]);++Ht);for(var Xt=(It?R[It-1]:M)=="L",Zr=(Ht<N?R[Ht]:M)=="L",Za=Xt==Zr?Xt?"L":"R":M,vo=It;vo<Ht;++vo)R[vo]=Za;It=Ht-1}for(var Rr=[],hi,vr=0;vr<N;)if(g.test(R[vr])){var u0=vr;for(++vr;vr<N&&g.test(R[vr]);++vr);Rr.push(new y(0,u0,vr))}else{var Ai=vr,Ko=Rr.length,Xo=z=="rtl"?1:0;for(++vr;vr<N&&R[vr]!="L";++vr);for(var Vr=Ai;Vr<vr;)if(m.test(R[Vr])){Ai<Vr&&(Rr.splice(Ko,0,new y(1,Ai,Vr)),Ko+=Xo);var Va=Vr;for(++Vr;Vr<vr&&m.test(R[Vr]);++Vr);Rr.splice(Ko,0,new y(2,Va,Vr)),Ko+=Xo,Ai=Vr}else++Vr;Ai<vr&&Rr.splice(Ko,0,new y(1,Ai,vr))}return z=="ltr"&&(Rr[0].level==1&&(hi=C.match(/^\s+/))&&(Rr[0].from=hi[0].length,Rr.unshift(new y(0,0,hi[0].length))),Xe(Rr).level==1&&(hi=C.match(/\s+$/))&&(Xe(Rr).to-=hi[0].length,Rr.push(new y(0,N-hi[0].length,N)))),z=="rtl"?Rr.reverse():Rr}}();function Hr(e,t){var s=e.order;return s==null&&(s=e.order=xi(e.text,t)),s}var Hn=[],$e=function(e,t,s){if(e.addEventListener)e.addEventListener(t,s,!1);else if(e.attachEvent)e.attachEvent("on"+t,s);else{var a=e._handlers||(e._handlers={});a[t]=(a[t]||Hn).concat(s)}};function Ui(e,t){return e._handlers&&e._handlers[t]||Hn}function kr(e,t,s){if(e.removeEventListener)e.removeEventListener(t,s,!1);else if(e.detachEvent)e.detachEvent("on"+t,s);else{var a=e._handlers,u=a&&a[t];if(u){var h=_e(u,s);h>-1&&(a[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ge(e,t){var s=Ui(e,t);if(!!s.length)for(var a=Array.prototype.slice.call(arguments,2),u=0;u<s.length;++u)s[u].apply(null,a)}function ir(e,t,s){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ge(e,s||t.type,e,t),hn(t)||t.codemirrorIgnore}function pa(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<t.length;++a)_e(s,t[a])==-1&&s.push(t[a])}function wr(e,t){return Ui(e,t).length>0}function Bn(e){e.prototype.on=function(t,s){$e(this,t,s)},e.prototype.off=function(t,s){kr(this,t,s)}}function xr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ga(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function hn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ko(e){xr(e),ga(e)}function Yi(e){return e.target||e.srcElement}function rs(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),he&&e.ctrlKey&&t==1&&(t=3),t}var ns=function(){if(S&&O<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),Kr;function Qs(e){if(Kr==null){var t=E("span","\u200B");W(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Kr=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&O<8))}var s=Kr?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var Oo;function ni(e){if(Oo!=null)return Oo;var t=W(e,document.createTextNode("A\u062EA")),s=ne(t,0,1).getBoundingClientRect(),a=ne(t,1,2).getBoundingClientRect();return it(e),!s||s.left==s.right?!1:Oo=a.right-s.right<3}var To=`
2200
+ `];Xs([F({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Xs([F({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Xs([pt()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Xs([Q(V2)],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};Xs([F({type:String})],exports.InputRadioOption.prototype,"value",2);Xs([F({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Xs([Q(G2)],exports.InputRadioOption);var Jl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},hd={exports:{}},Tp;function es(){return Tp||(Tp=1,function(r,n){(function(o,c){r.exports=c()})(Jl,function(){var o=navigator.userAgent,c=navigator.platform,f=/gecko\/\d/i.test(o),p=/MSIE \d/.test(o),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),M=/Edge\/(\d+)/.exec(o),S=p||b||M,O=S&&(p?document.documentMode||6:+(M||b)[1]),I=!M&&/WebKit\//.test(o),U=I&&/Qt\/\d+\.\d+/.test(o),q=!M&&/Chrome\//.test(o),X=/Opera\//.test(o),ce=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),ye=/PhantomJS/.test(o),Ae=ce&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),Ie=/Android/.test(o),pe=Ae||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),he=Ae||/Mac/.test(c),Te=/\bCrOS\b/.test(o),He=/win/i.test(c),Ye=X&&o.match(/Version\/(\d*\.\d*)/);Ye&&(Ye=Number(Ye[1])),Ye&&Ye>=15&&(X=!1,I=!0);var et=he&&(U||X&&(Ye==null||Ye<12.11)),nt=f||S&&O>=9;function ve(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Ce=function(e,t){var s=e.className,a=ve(t).exec(s);if(a){var u=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(u?a[1]+u:"")}};function it(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function W(e,t){return it(e).appendChild(t)}function E(e,t,s,a){var u=document.createElement(e);if(s&&(u.className=s),a&&(u.style.cssText=a),typeof t=="string")u.appendChild(document.createTextNode(t));else if(t)for(var h=0;h<t.length;++h)u.appendChild(t[h]);return u}function T(e,t,s,a){var u=E(e,t,s,a);return u.setAttribute("role","presentation"),u}var ne;document.createRange?ne=function(e,t,s,a){var u=document.createRange();return u.setEnd(a||e,s),u.setStart(e,t),u}:ne=function(e,t,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",t),a};function be(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ot(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function At(e,t){var s=e.className;ve(t).test(s)||(e.className+=(s?" ":"")+t)}function sr(e,t){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!ve(s[a]).test(t)&&(t+=" "+s[a]);return t}var Bt=function(e){e.select()};Ae?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:S&&(Bt=function(e){try{e.select()}catch{}});function dn(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function er(e,t,s){t||(t={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!t.hasOwnProperty(a))&&(t[a]=e[a]);return t}function Ft(e,t,s,a,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=a||0,g=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return g+(t-h);g+=m-h,g+=s-g%s,h=m+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=dn(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,t){this.f=t;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function _e(e,t){for(var s=0;s<e.length;++s)if(e[s]==t)return s;return-1}var Fe=50,Ze={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},st={origin:"*mouse"},We={origin:"+move"};function Vt(e,t,s){for(var a=0,u=0;;){var h=e.indexOf(" ",a);h==-1&&(h=e.length);var g=h-a;if(h==e.length||u+g>=t)return a+Math.min(g,t-u);if(u+=h-a,u+=s-u%s,a=h+1,u>=t)return a}}var qr=[""];function lr(e){for(;qr.length<=e;)qr.push(Xe(qr)+" ");return qr[e]}function Xe(e){return e[e.length-1]}function yt(e,t){for(var s=[],a=0;a<e.length;a++)s[a]=t(e[a],a);return s}function Mt(e,t,s){for(var a=0,u=s(t);a<e.length&&s(e[a])<=u;)a++;e.splice(a,0,t)}function $r(){}function rn(e,t){var s;return Object.create?s=Object.create(e):($r.prototype=e,s=new $r),t&&er(t,s),s}var fr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||fr.test(e))}function B(e,t){return t?t.source.indexOf("\\w")>-1&&tt(e)?!0:t.test(e):tt(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var V=/[\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 Qe(e){return e.charCodeAt(0)>=768&&V.test(e)}function dr(e,t,s){for(;(s<0?t>0:t<e.length)&&Qe(e.charAt(t));)t+=s;return t}function kr(e,t,s){for(var a=t>s?-1:1;;){if(t==s)return t;var u=(t+s)/2,h=a<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:s;e(h)?s=h:t=h+a}}function $n(e,t,s,a){if(!e)return a(t,s,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var g=e[h];(g.from<s&&g.to>t||t==s&&g.to==t)&&(a(Math.max(g.from,t),Math.min(g.to,s),g.level==1?"rtl":"ltr",h),u=!0)}u||a(t,s,"ltr")}var jr=null;function Zt(e,t,s){var a;jr=null;for(var u=0;u<e.length;++u){var h=e[u];if(h.from<t&&h.to>t)return u;h.to==t&&(h.from!=h.to&&s=="before"?a=u:jr=u),h.from==t&&(h.from!=h.to&&s!="before"?a=u:jr=u)}return a!=null?a:jr}var zi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?t.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,g=/[Lb1n]/,m=/[1n]/;function y(C,_,k){this.level=C,this.from=_,this.to=k}return function(C,_){var k=_=="ltr"?"L":"R";if(C.length==0||_=="ltr"&&!a.test(C))return!1;for(var N=C.length,R=[],Z=0;Z<N;++Z)R.push(s(C.charCodeAt(Z)));for(var J=0,le=k;J<N;++J){var fe=R[J];fe=="m"?R[J]=le:le=fe}for(var we=0,de=k;we<N;++we){var ze=R[we];ze=="1"&&de=="r"?R[we]="n":h.test(ze)&&(de=ze,ze=="r"&&(R[we]="R"))}for(var Re=1,Pe=R[0];Re<N-1;++Re){var lt=R[Re];lt=="+"&&Pe=="1"&&R[Re+1]=="1"?R[Re]="1":lt==","&&Pe==R[Re+1]&&(Pe=="1"||Pe=="n")&&(R[Re]=Pe),Pe=lt}for(var Ot=0;Ot<N;++Ot){var ur=R[Ot];if(ur==",")R[Ot]="N";else if(ur=="%"){var Rt=void 0;for(Rt=Ot+1;Rt<N&&R[Rt]=="%";++Rt);for(var Ur=Ot&&R[Ot-1]=="!"||Rt<N&&R[Rt]=="1"?"1":"N",Yr=Ot;Yr<Rt;++Yr)R[Yr]=Ur;Ot=Rt-1}}for(var rr=0,Sr=k;rr<N;++rr){var gr=R[rr];Sr=="L"&&gr=="1"?R[rr]="L":h.test(gr)&&(Sr=gr)}for(var It=0;It<N;++It)if(u.test(R[It])){var Ht=void 0;for(Ht=It+1;Ht<N&&u.test(R[Ht]);++Ht);for(var Xt=(It?R[It-1]:k)=="L",Zr=(Ht<N?R[Ht]:k)=="L",Ya=Xt==Zr?Xt?"L":"R":k,bo=It;bo<Ht;++bo)R[bo]=Ya;It=Ht-1}for(var Rr=[],hi,vr=0;vr<N;)if(g.test(R[vr])){var c0=vr;for(++vr;vr<N&&g.test(R[vr]);++vr);Rr.push(new y(0,c0,vr))}else{var Ei=vr,Ko=Rr.length,Xo=_=="rtl"?1:0;for(++vr;vr<N&&R[vr]!="L";++vr);for(var Vr=Ei;Vr<vr;)if(m.test(R[Vr])){Ei<Vr&&(Rr.splice(Ko,0,new y(1,Ei,Vr)),Ko+=Xo);var Za=Vr;for(++Vr;Vr<vr&&m.test(R[Vr]);++Vr);Rr.splice(Ko,0,new y(2,Za,Vr)),Ko+=Xo,Ei=Vr}else++Vr;Ei<vr&&Rr.splice(Ko,0,new y(1,Ei,vr))}return _=="ltr"&&(Rr[0].level==1&&(hi=C.match(/^\s+/))&&(Rr[0].from=hi[0].length,Rr.unshift(new y(0,0,hi[0].length))),Xe(Rr).level==1&&(hi=C.match(/\s+$/))&&(Xe(Rr).to-=hi[0].length,Rr.push(new y(0,N-hi[0].length,N)))),_=="rtl"?Rr.reverse():Rr}}();function Hr(e,t){var s=e.order;return s==null&&(s=e.order=zi(e.text,t)),s}var Hn=[],$e=function(e,t,s){if(e.addEventListener)e.addEventListener(t,s,!1);else if(e.attachEvent)e.attachEvent("on"+t,s);else{var a=e._handlers||(e._handlers={});a[t]=(a[t]||Hn).concat(s)}};function Yi(e,t){return e._handlers&&e._handlers[t]||Hn}function Mr(e,t,s){if(e.removeEventListener)e.removeEventListener(t,s,!1);else if(e.detachEvent)e.detachEvent("on"+t,s);else{var a=e._handlers,u=a&&a[t];if(u){var h=_e(u,s);h>-1&&(a[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ge(e,t){var s=Yi(e,t);if(!!s.length)for(var a=Array.prototype.slice.call(arguments,2),u=0;u<s.length;++u)s[u].apply(null,a)}function ir(e,t,s){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ge(e,s||t.type,e,t),hn(t)||t.codemirrorIgnore}function ha(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<t.length;++a)_e(s,t[a])==-1&&s.push(t[a])}function wr(e,t){return Yi(e,t).length>0}function Bn(e){e.prototype.on=function(t,s){$e(this,t,s)},e.prototype.off=function(t,s){Mr(this,t,s)}}function xr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function pa(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function hn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Mo(e){xr(e),pa(e)}function Zi(e){return e.target||e.srcElement}function rs(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),he&&e.ctrlKey&&t==1&&(t=3),t}var ns=function(){if(S&&O<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),Kr;function Js(e){if(Kr==null){var t=E("span","\u200B");W(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Kr=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&O<8))}var s=Kr?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var Oo;function ni(e){if(Oo!=null)return Oo;var t=W(e,document.createTextNode("A\u062EA")),s=ne(t,0,1).getBoundingClientRect(),a=ne(t,1,2).getBoundingClientRect();return it(e),!s||s.left==s.right?!1:Oo=a.right-s.right<3}var To=`
2119
2201
 
2120
2202
  b`.split(/\n/).length!=3?function(e){for(var t=0,s=[],a=e.length;t<=a;){var u=e.indexOf(`
2121
- `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),g=h.indexOf("\r");g!=-1?(s.push(h.slice(0,g)),t+=g+1):(s.push(h),t=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},Js=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},el=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),is=null;function Zi(e){if(is!=null)return is;var t=W(e,E("span","x")),s=t.getBoundingClientRect(),a=ne(t,0,1).getBoundingClientRect();return is=Math.abs(s.left-a.left)>1}var Ln={},pn={};function tl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ln[e]=t}function Li(e,t){pn[e]=t}function Po(e){if(typeof e=="string"&&pn.hasOwnProperty(e))e=pn[e];else if(e&&typeof e.name=="string"&&pn.hasOwnProperty(e.name)){var t=pn[e.name];typeof t=="string"&&(t={name:t}),e=rn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Po("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Po("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function va(e,t){t=Po(t);var s=Ln[t.name];if(!s)return va(e,"text/plain");var a=s(e,t);if(Fn.hasOwnProperty(t.name)){var u=Fn[t.name];for(var h in u)!u.hasOwnProperty(h)||(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=u[h])}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var g in t.modeProps)a[g]=t.modeProps[g];return a}var Fn={};function Wn(e,t){var s=Fn.hasOwnProperty(e)?Fn[e]:Fn[e]={};er(t,s)}function gn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var s={};for(var a in t){var u=t[a];u instanceof Array&&(u=u.concat([])),s[a]=u}return s}function os(e,t){for(var s;e.innerMode&&(s=e.innerMode(t),!(!s||s.mode==e));)t=s.state,e=s.mode;return s||{mode:e,state:t}}function as(e,t,s){return e.startState?e.startState(t,s):!0}var Wt=function(e,t,s){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Wt.prototype.eol=function(){return this.pos>=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Wt.prototype.eat=function(e){var t=this.string.charAt(this.pos),s;if(typeof e=="string"?s=t==e:s=t&&(e.test?e.test(t):e(t)),s)return++this.pos,t},Wt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Wt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Wt.prototype.backUp=function(e){this.pos-=e},Wt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.indentation=function(){return Ft(this.string,null,this.tabSize)-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.match=function(e,t,s){if(typeof e=="string"){var a=function(g){return s?g.toLowerCase():g},u=this.string.substr(this.pos,e.length);if(a(u)==a(e))return t!==!1&&(this.pos+=e.length),!0}else{var h=this.string.slice(this.pos).match(e);return h&&h.index>0?null:(h&&t!==!1&&(this.pos+=h[0].length),h)}},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Wt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Wt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ke(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var u=s.children[a],h=u.chunkSize();if(t<h){s=u;break}t-=h}return s.lines[t]}function vn(e,t,s){var a=[],u=t.line;return e.iter(t.line,s.line+1,function(h){var g=h.text;u==s.line&&(g=g.slice(0,s.ch)),u==t.line&&(g=g.slice(t.ch)),a.push(g),++u}),a}function ss(e,t,s){var a=[];return e.iter(t,s,function(u){a.push(u.text)}),a}function nn(e,t){var s=t-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function Lt(e){if(e.parent==null)return null;for(var t=e.parent,s=_e(t.lines,e),a=t.parent;a;t=a,a=a.parent)for(var u=0;a.children[u]!=t;++u)s+=a.children[u].chunkSize();return s+t.first}function Un(e,t){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var u=e.children[a],h=u.height;if(t<h){e=u;continue e}t-=h,s+=u.chunkSize()}return s}while(!e.lines);for(var g=0;g<e.lines.length;++g){var m=e.lines[g],y=m.height;if(t<y)break;t-=y}return s+g}function Vi(e,t){return t>=e.first&&t<e.first+e.size}function ba(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ie(e,t,s){if(s===void 0&&(s=null),!(this instanceof ie))return new ie(e,t,s);this.line=e,this.ch=t,this.sticky=s}function w(e,t){return e.line-t.line||e.ch-t.ch}function P(e,t){return e.sticky==t.sticky&&w(e,t)==0}function j(e){return ie(e.line,e.ch)}function ae(e,t){return w(e,t)<0?t:e}function qe(e,t){return w(e,t)<0?e:t}function vt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function be(e,t){if(t.line<e.first)return ie(e.first,0);var s=e.first+e.size-1;return t.line>s?ie(s,ke(e,s).text.length):Or(t,ke(e,t.line).text.length)}function Or(e,t){var s=e.ch;return s==null||s>t?ie(e.line,t):s<0?ie(e.line,0):e}function on(e,t){for(var s=[],a=0;a<t.length;a++)s[a]=be(e,t[a]);return s}var _i=function(e,t){this.state=e,this.lookAhead=t},Yn=function(e,t,s,a){this.state=t,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Yn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(e,t,s){return t instanceof _i?new Yn(e,gn(e.mode,t.state),s,t.lookAhead):new Yn(e,gn(e.mode,t),s)},Yn.prototype.save=function(e){var t=e!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(t,this.maxLookAhead):t};function Y0(e,t,s,a){var u=[e.state.modeGen],h={};mu(e,t.text,e.doc.mode,s,function(C,z){return u.push(C,z)},h,a);for(var g=s.state,m=function(C){s.baseTokens=u;var z=e.state.overlays[C],M=1,N=0;s.state=!0,mu(e,t.text,z.mode,s,function(R,Z){for(var J=M;N<R;){var le=u[M];le>R&&u.splice(M,1,R,u[M+1],le),M+=2,N=Math.min(R,le)}if(!!Z)if(z.opaque)u.splice(J,M-J,R,"overlay "+Z),M=J+2;else for(;J<M;J+=2){var fe=u[J+1];u[J+1]=(fe?fe+" ":"")+"overlay "+Z}},h),s.state=g,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function bu(e,t,s){if(!t.styles||t.styles[0]!=e.state.modeGen){var a=ma(e,Lt(t)),u=t.text.length>e.options.maxHighlightLength&&gn(e.doc.mode,a.state),h=Y0(e,t,a);u&&(a.state=u),t.stateAfter=a.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ma(e,t,s){var a=e.doc,u=e.display;if(!a.mode.startState)return new Yn(a,!0,t);var h=V0(e,t,s),g=h>a.first&&ke(a,h-1).stateAfter,m=g?Yn.fromSaved(a,g,h):new Yn(a,as(a.mode),h);return a.iter(h,t,function(y){ls(e,y.text,m);var C=m.line;y.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function ls(e,t,s,a){var u=e.doc.mode,h=new Wt(t,e.options.tabSize,s);for(h.start=h.pos=a||0,t==""&&Z0(u,s.state);!h.eol();)rl(u,h,s.state),h.start=h.pos}function Z0(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var s=os(e,t);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function rl(e,t,s,a){for(var u=0;u<10;u++){a&&(a[0]=os(e,s).mode);var h=e.token(t,s);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var nl=function(e,t,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=s};function il(e,t,s,a){var u=e.doc,h=u.mode,g;t=be(u,t);var m=ke(u,t.line),y=ma(e,t.line,s),C=new Wt(m.text,e.options.tabSize,y),z;for(a&&(z=[]);(a||C.pos<t.ch)&&!C.eol();)C.start=C.pos,g=rl(h,C,y.state),a&&z.push(new nl(C,g,gn(u.mode,y.state)));return a?z:new nl(C,g,y.state)}function Ao(e,t){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";t[a]==null?t[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(t[a])||(t[a]+=" "+s[2])}return e}function mu(e,t,s,a,u,h,g){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,z=new Wt(t,e.options.tabSize,a),M,N=e.options.addModeClass&&[null];for(t==""&&Ao(Z0(s,a.state),h);!z.eol();){if(z.pos>e.options.maxHighlightLength?(m=!1,g&&ls(e,t,a,z.pos),z.pos=t.length,M=null):M=Ao(rl(s,z,a.state,N),h),N){var R=N[0].name;R&&(M="m-"+(M?R+" "+M:R))}if(!m||C!=M){for(;y<z.start;)y=Math.min(z.start,y+5e3),u(y,C);C=M}z.start=z.pos}for(;y<z.pos;){var Z=Math.min(z.pos,y+5e3);u(Z,C),y=Z}}function V0(e,t,s){for(var a,u,h=e.doc,g=s?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>g;--m){if(m<=h.first)return h.first;var y=ke(h,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof _i?C.lookAhead:0)<=h.modeFrontier))return m;var z=Ft(y.text,null,e.options.tabSize);(u==null||a>z)&&(u=m-1,a=z)}return u}function nf(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var s=e.first,a=t-1;a>s;a--){var u=ke(e,a).stateAfter;if(u&&(!(u instanceof _i)||a+u.lookAhead<t)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var yu=!1,ii=!1;function G0(){yu=!0}function q0(){ii=!0}function ol(e,t,s){this.marker=e,this.from=t,this.to=s}function us(e,t){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==t)return a}}function of(e,t){for(var s,a=0;a<e.length;++a)e[a]!=t&&(s||(s=[])).push(e[a]);return s}function j0(e,t,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],a&&a.add(e.markedSpans)),t.marker.attachLine(e)}function af(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&g.type=="bookmark"&&(!s||!h.marker.insertLeft)){var y=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);(a||(a=[])).push(new ol(g,h.from,y?null:h.to))}}return a}function sf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&g.type=="bookmark"&&(!s||h.marker.insertLeft)){var y=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);(a||(a=[])).push(new ol(g,y?null:h.from-t,h.to==null?null:h.to-t))}}return a}function Cu(e,t){if(t.full)return null;var s=Vi(e,t.from.line)&&ke(e,t.from.line).markedSpans,a=Vi(e,t.to.line)&&ke(e,t.to.line).markedSpans;if(!s&&!a)return null;var u=t.from.ch,h=t.to.ch,g=w(t.from,t.to)==0,m=af(s,u,g),y=sf(a,h,g),C=t.text.length==1,z=Xe(t.text).length+(C?u:0);if(m)for(var M=0;M<m.length;++M){var N=m[M];if(N.to==null){var R=us(y,N.marker);R?C&&(N.to=R.to==null?null:R.to+z):N.to=u}}if(y)for(var Z=0;Z<y.length;++Z){var J=y[Z];if(J.to!=null&&(J.to+=z),J.from==null){var le=us(m,J.marker);le||(J.from=z,C&&(m||(m=[])).push(J))}else J.from+=z,C&&(m||(m=[])).push(J)}m&&(m=K0(m)),y&&y!=m&&(y=K0(y));var fe=[m];if(!C){var Ce=t.text.length-2,de;if(Ce>0&&m)for(var xe=0;xe<m.length;++xe)m[xe].to==null&&(de||(de=[])).push(new ol(m[xe].marker,null,null));for(var Re=0;Re<Ce;++Re)fe.push(de);fe.push(y)}return fe}function K0(e){for(var t=0;t<e.length;++t){var s=e[t];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function wu(e,t,s){var a=null;if(e.iter(t.line,s.line+1,function(R){if(R.markedSpans)for(var Z=0;Z<R.markedSpans.length;++Z){var J=R.markedSpans[Z].marker;J.readOnly&&(!a||_e(a,J)==-1)&&(a||(a=[])).push(J)}}),!a)return null;for(var u=[{from:t,to:s}],h=0;h<a.length;++h)for(var g=a[h],m=g.find(0),y=0;y<u.length;++y){var C=u[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var z=[y,1],M=w(C.from,m.from),N=w(C.to,m.to);(M<0||!g.inclusiveLeft&&!M)&&z.push({from:C.from,to:m.from}),(N>0||!g.inclusiveRight&&!N)&&z.push({from:m.to,to:C.to}),u.splice.apply(u,z),y+=z.length-3}}return u}function X0(e){var t=e.markedSpans;if(!!t){for(var s=0;s<t.length;++s)t[s].marker.detachLine(e);e.markedSpans=null}}function Q0(e,t){if(!!t){for(var s=0;s<t.length;++s)t[s].marker.attachLine(e);e.markedSpans=t}}function al(e){return e.inclusiveLeft?-1:0}function sl(e){return e.inclusiveRight?1:0}function xu(e,t){var s=e.lines.length-t.lines.length;if(s!=0)return s;var a=e.find(),u=t.find(),h=w(a.from,u.from)||al(e)-al(t);if(h)return-h;var g=w(a.to,u.to)||sl(e)-sl(t);return g||t.id-e.id}function Ut(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=void 0,h=0;h<s.length;++h)u=s[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!a||xu(a,u.marker)<0)&&(a=u.marker);return a}function $t(e){return Ut(e,!0)}function ll(e){return Ut(e,!1)}function lf(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=0;u<s.length;++u){var h=s[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!a||xu(a,h.marker)<0)&&(a=h.marker)}return a}function J0(e,t,s,a,u){var h=ke(e,t),g=ii&&h.markedSpans;if(g)for(var m=0;m<g.length;++m){var y=g[m];if(!!y.marker.collapsed){var C=y.marker.find(0),z=w(C.from,s)||al(y.marker)-al(u),M=w(C.to,a)||sl(y.marker)-sl(u);if(!(z>=0&&M<=0||z<=0&&M>=0)&&(z<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||z>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function oi(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function uf(e){for(var t;t=ll(e);)e=t.find(1,!0).line;return e}function cf(e){for(var t,s;t=ll(e);)e=t.find(1,!0).line,(s||(s=[])).push(e);return s}function ul(e,t){var s=ke(e,t),a=oi(s);return s==a?t:Lt(a)}function ec(e,t){if(t>e.lastLine())return t;var s=ke(e,t),a;if(!qt(e,s))return t;for(;a=ll(s);)s=a.find(1,!0).line;return Lt(s)+1}function qt(e,t){var s=ii&&t.markedSpans;if(s){for(var a=void 0,u=0;u<s.length;++u)if(a=s[u],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&cs(e,t,a))return!0}}}function cs(e,t,s){if(s.to==null){var a=s.marker.find(1,!0);return cs(e,a.line,us(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==t.text.length)return!0;for(var u=void 0,h=0;h<t.markedSpans.length;++h)if(u=t.markedSpans[h],u.marker.collapsed&&!u.marker.widgetNode&&u.from==s.to&&(u.to==null||u.to!=s.from)&&(u.marker.inclusiveLeft||s.marker.inclusiveRight)&&cs(e,t,u))return!0}function Xr(e){e=oi(e);for(var t=0,s=e.parent,a=0;a<s.lines.length;++a){var u=s.lines[a];if(u==e)break;t+=u.height}for(var h=s.parent;h;s=h,h=s.parent)for(var g=0;g<h.children.length;++g){var m=h.children[g];if(m==s)break;t+=m.height}return t}function fs(e){if(e.height==0)return 0;for(var t=e.text.length,s,a=e;s=$t(a);){var u=s.find(0,!0);a=u.from.line,t+=u.from.ch-u.to.ch}for(a=e;s=ll(a);){var h=s.find(0,!0);t-=a.text.length-h.from.ch,a=h.to.line,t+=a.text.length-h.to.ch}return t}function ds(e){var t=e.display,s=e.doc;t.maxLine=ke(s,s.first),t.maxLineLength=fs(t.maxLine),t.maxLineChanged=!0,s.iter(function(a){var u=fs(a);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=a)})}var Tr=function(e,t,s){this.text=e,Q0(this,t),this.height=s?s(this):1};Tr.prototype.lineNo=function(){return Lt(this)},Bn(Tr);function tc(e,t,s,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),X0(e),Q0(e,s);var u=a?a(e):1;u!=e.height&&nn(e,u)}function rc(e){e.parent=null,X0(e)}var nc={},ic={};function Lu(e,t){if(!e||/^\s*$/.test(e))return null;var s=t.addModeClass?ic:nc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function _u(e,t){var s=T("span",null,null,I?"padding-right: .1px":null),a={pre:T("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,g=void 0;a.pos=0,a.addToken=ff,ni(e.display.measure)&&(g=Hr(h,e.doc.direction))&&(a.addToken=df(a.addToken,g)),a.map=[];var m=t!=e.display.externalMeasured&&Lt(h);Gi(h,a,bu(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=sr(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=sr(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Qs(e.display.measure))),u==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Ge(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=sr(a.pre.className,a.textClass||"")),a}function bn(e){var t=E("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ff(e,t,s,a,u,h,g){if(!!t){var m=e.splitSpaces?_n(t,e.trailingSpace):t,y=e.cm.state.specialChars,C=!1,z;if(!y.test(t))e.col+=t.length,z=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,z),S&&O<9&&(C=!0),e.pos+=t.length;else{z=document.createDocumentFragment();for(var M=0;;){y.lastIndex=M;var N=y.exec(t),R=N?N.index-M:t.length-M;if(R){var Z=document.createTextNode(m.slice(M,M+R));S&&O<9?z.appendChild(E("span",[Z])):z.appendChild(Z),e.map.push(e.pos,e.pos+R,Z),e.col+=R,e.pos+=R}if(!N)break;M+=R+1;var J=void 0;if(N[0]==" "){var le=e.cm.options.tabSize,fe=le-e.col%le;J=z.appendChild(E("span",lr(fe),"cm-tab")),J.setAttribute("role","presentation"),J.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
2122
- `?(J=z.appendChild(E("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),J.setAttribute("cm-text",N[0]),e.col+=1):(J=e.cm.options.specialCharPlaceholder(N[0]),J.setAttribute("cm-text",N[0]),S&&O<9?z.appendChild(E("span",[J])):z.appendChild(J),e.col+=1);e.map.push(e.pos,e.pos+1,J),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,s||a||u||C||h||g){var Ce=s||"";a&&(Ce+=a),u&&(Ce+=u);var de=E("span",[z],Ce,h);if(g)for(var xe in g)g.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&de.setAttribute(xe,g[xe]);return e.content.appendChild(de)}e.content.appendChild(z)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var s=t,a="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),a+=h,s=h==" "}return a}function df(e,t){return function(s,a,u,h,g,m,y){u=u?u+" cm-force-border":"cm-force-border";for(var C=s.pos,z=C+a.length;;){for(var M=void 0,N=0;N<t.length&&(M=t[N],!(M.to>C&&M.from<=C));N++);if(M.to>=z)return e(s,a,u,h,g,m,y);e(s,a.slice(0,M.to-C),u,h,null,m,y),h=null,a=a.slice(M.to-C),C=M.to}}}function zu(e,t,s,a){var u=!a&&s.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!a&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function Gi(e,t,s){var a=e.markedSpans,u=e.text,h=0;if(!a){for(var g=1;g<s.length;g+=2)t.addToken(t,u.slice(h,h=s[g]),Lu(s[g+1],t.cm.options));return}for(var m=u.length,y=0,C=1,z="",M,N,R=0,Z,J,le,fe,Ce;;){if(R==y){Z=J=le=N="",Ce=null,fe=null,R=1/0;for(var de=[],xe=void 0,Re=0;Re<a.length;++Re){var Pe=a[Re],lt=Pe.marker;if(lt.type=="bookmark"&&Pe.from==y&&lt.widgetNode)de.push(lt);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||lt.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&R>Pe.to&&(R=Pe.to,J=""),lt.className&&(Z+=" "+lt.className),lt.css&&(N=(N?N+";":"")+lt.css),lt.startStyle&&Pe.from==y&&(le+=" "+lt.startStyle),lt.endStyle&&Pe.to==R&&(xe||(xe=[])).push(lt.endStyle,Pe.to),lt.title&&((Ce||(Ce={})).title=lt.title),lt.attributes)for(var Ot in lt.attributes)(Ce||(Ce={}))[Ot]=lt.attributes[Ot];lt.collapsed&&(!fe||xu(fe.marker,lt)<0)&&(fe=Pe)}else Pe.from>y&&R>Pe.from&&(R=Pe.from)}if(xe)for(var ur=0;ur<xe.length;ur+=2)xe[ur+1]==R&&(J+=" "+xe[ur]);if(!fe||fe.from==y)for(var Rt=0;Rt<de.length;++Rt)zu(t,0,de[Rt]);if(fe&&(fe.from||0)==y){if(zu(t,(fe.to==null?m+1:fe.to)-y,fe.marker,fe.from==null),fe.to==null)return;fe.to==y&&(fe=!1)}}if(y>=m)break;for(var Ur=Math.min(m,R);;){if(z){var Yr=y+z.length;if(!fe){var rr=Yr>Ur?z.slice(0,Ur-y):z;t.addToken(t,rr,M?M+Z:Z,le,y+rr.length==R?J:"",N,Ce)}if(Yr>=Ur){z=z.slice(Ur-y),y=Ur;break}y=Yr,le=""}z=u.slice(h,h=s[C++]),M=Lu(s[C++],t.cm.options)}}}function hs(e,t,s){this.line=t,this.rest=cf(t),this.size=this.rest?Lt(Xe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=qt(e,t)}function ya(e,t,s){for(var a=[],u,h=t;h<s;h=u){var g=new hs(e.doc,ke(e.doc,h),h);u=h+g.size,a.push(g)}return a}var Et=null;function qi(e){Et?Et.ops.push(e):e.ownsGroup=Et={ops:[e],delayedCallbacks:[]}}function Su(e){var t=e.delayedCallbacks,s=0;do{for(;s<t.length;s++)t[s].call(null);for(var a=0;a<e.ops.length;a++){var u=e.ops[a];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<t.length)}function hf(e,t){var s=e.ownsGroup;if(!!s)try{Su(s)}finally{Et=null,t(s)}}var Eo=null;function hr(e,t){var s=Ui(e,t);if(!!s.length){var a=Array.prototype.slice.call(arguments,2),u;Et?u=Et.delayedCallbacks:Eo?u=Eo:(u=Eo=[],setTimeout(pf,0));for(var h=function(m){u.push(function(){return s[m].apply(null,a)})},g=0;g<s.length;++g)h(g)}}function pf(){var e=Eo;Eo=null;for(var t=0;t<e.length;++t)e[t]()}function oc(e,t,s,a){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?gf(e,t):h=="gutter"?Mu(e,t,s,a):h=="class"?fl(e,t):h=="widget"&&ku(e,t,a)}t.changes=null}function Ca(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),S&&O<8&&(e.node.style.zIndex=2)),e.node}function cl(e,t){var s=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),t.background)s?t.background.className=s:(t.background.parentNode.removeChild(t.background),t.background=null);else if(s){var a=Ca(t);t.background=a.insertBefore(E("div",null,s),a.firstChild),e.display.input.setUneditable(t.background)}}function Io(e,t){var s=e.display.externalMeasured;return s&&s.line==t.line?(e.display.externalMeasured=null,t.measure=s.measure,s.built):_u(e,t)}function gf(e,t){var s=t.text.className,a=Io(e,t);t.text==t.node&&(t.node=a.pre),t.text.parentNode.replaceChild(a.pre,t.text),t.text=a.pre,a.bgClass!=t.bgClass||a.textClass!=t.textClass?(t.bgClass=a.bgClass,t.textClass=a.textClass,fl(e,t)):s&&(t.text.className=s)}function fl(e,t){cl(e,t),t.line.wrapClass?Ca(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var s=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=s||""}function Mu(e,t,s,a){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var u=Ca(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var g=Ca(t),m=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),g.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(E("div",ba(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,z=h.hasOwnProperty(C)&&h[C];z&&m.appendChild(E("div",[z],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function ku(e,t,s){t.alignable&&(t.alignable=null);for(var a=ge("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,a.test(u.className)&&t.node.removeChild(u);Tu(e,t,s)}function Ou(e,t,s,a){var u=Io(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),fl(e,t),Mu(e,t,s,a),Tu(e,t,a),t.node}function Tu(e,t,s){if(ac(e,t.line,t,s,!0),t.rest)for(var a=0;a<t.rest.length;a++)ac(e,t.rest[a],t,s,!1)}function ac(e,t,s,a,u){if(!!t.widgets)for(var h=Ca(s),g=0,m=t.widgets;g<m.length;++g){var y=m[g],C=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Pu(y,C,s,a),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,s.gutter||s.text):h.appendChild(C),hr(y,"redraw")}}function Pu(e,t,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(t);var u=a.wrapperWidth;t.style.left=a.fixedPos+"px",e.coverGutter||(u-=a.gutterTotalWidth,t.style.paddingLeft=a.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!ve(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+t.display.wrapper.clientWidth+"px;"),W(t.display.measure,E("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function zi(e,t){for(var s=Yi(t);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function ps(e){return e.lineSpace.offsetTop}function Qr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function dl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=W(e.measure,E("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function an(e){return Fe-e.display.nativeBarWidth}function ji(e){return e.display.scroller.clientWidth-an(e)-e.display.barWidth}function hl(e){return e.display.scroller.clientHeight-an(e)-e.display.barHeight}function vf(e,t,s){var a=e.options.lineWrapping,u=a&&ji(e);if(!t.measure.heights||a&&t.measure.width!=u){var h=t.measure.heights=[];if(a){t.measure.width=u;for(var g=t.text.firstChild.getClientRects(),m=0;m<g.length-1;m++){var y=g[m],C=g[m+1];Math.abs(y.bottom-C.bottom)>2&&h.push((y.bottom+C.top)/2-s.top)}}h.push(s.bottom-s.top)}}function sc(e,t,s){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==t)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var u=0;u<e.rest.length;u++)if(Lt(e.rest[u])>s)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function bf(e,t){t=oi(t);var s=Lt(t),a=e.display.externalMeasured=new hs(e.doc,t,s);a.lineN=s;var u=a.built=_u(e,a);return a.text=u.pre,W(e.display.lineMeasure,u.pre),a}function lc(e,t,s,a){return ai(e,Zn(e,t),s,a)}function Au(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[li(e,t)];var s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size)return s}function Zn(e,t){var s=Lt(t),a=Au(e,s);a&&!a.text?a=null:a&&a.changes&&(oc(e,a,s,sn(e)),e.curOp.forceUpdate=!0),a||(a=bf(e,t));var u=sc(a,t,s);return{line:t,view:a,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function ai(e,t,s,a,u){t.before&&(s=-1);var h=s+(a||""),g;return t.cache.hasOwnProperty(h)?g=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(vf(e,t.view,t.rect),t.hasHeights=!0),g=Ki(e,t,s,a),g.bogus||(t.cache[h]=g)),{left:g.left,right:g.right,top:u?g.rtop:g.top,bottom:u?g.rbottom:g.bottom}}var uc={left:0,right:0,top:0,bottom:0};function pl(e,t,s){for(var a,u,h,g,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],t<m?(u=0,h=1,g="left"):t<y?(u=t-m,h=u+1):(C==e.length-3||t==y&&e[C+3]>t)&&(h=y-m,u=h-1,t>=y&&(g="right")),u!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(g=s),s=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],g="left";if(s=="right"&&u==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],g="right";break}return{node:a,start:u,end:h,collapse:g,coverStart:m,coverEnd:y}}function cc(e,t){var s=uc;if(t=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var u=e.length-1;u>=0&&(s=e[u]).left==s.right;u--);return s}function Ki(e,t,s,a){var u=pl(t.map,s,a),h=u.node,g=u.start,m=u.end,y=u.collapse,C;if(h.nodeType==3){for(var z=0;z<4;z++){for(;g&&Qe(t.line.text.charAt(u.coverStart+g));)--g;for(;u.coverStart+m<u.coverEnd&&Qe(t.line.text.charAt(u.coverStart+m));)++m;if(S&&O<9&&g==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=cc(ne(h,g,m).getClientRects(),a),C.left||C.right||g==0)break;m=g,g=g-1,y="right"}S&&O<11&&(C=gl(e.display.measure,C))}else{g>0&&(y=a="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[a=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(S&&O<9&&!g&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+wa(e.display),top:N.top,bottom:N.bottom}:C=uc}for(var R=C.top-t.rect.top,Z=C.bottom-t.rect.top,J=(R+Z)/2,le=t.view.measure.heights,fe=0;fe<le.length-1&&!(J<le[fe]);fe++);var Ce=fe?le[fe-1]:0,de=le[fe],xe={left:(y=="right"?C.right:C.left)-t.rect.left,right:(y=="left"?C.left:C.right)-t.rect.left,top:Ce,bottom:de};return!C.left&&!C.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=R,xe.rbottom=Z),xe}function gl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zi(e))return t;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*s,right:t.right*s,top:t.top*a,bottom:t.bottom*a}}function fc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dc(e){e.display.externalMeasure=null,it(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fc(e.display.view[t])}function gs(e){dc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ro(){return q&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zn(){return q&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vl(e){var t=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(t+=Do(e.widgets[s]));return t}function bl(e,t,s,a,u){if(!u){var h=vl(t);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var g=Xr(t);if(a=="local"?g+=ps(e.display):g-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();g+=m.top+(a=="window"?0:zn());var y=m.left+(a=="window"?0:Ro());s.left+=y,s.right+=y}return s.top+=g,s.bottom+=g,s}function hc(e,t,s){if(s=="div")return t;var a=t.left,u=t.top;if(s=="page")a-=Ro(),u-=zn();else if(s=="local"||!s){var h=e.display.sizer.getBoundingClientRect();a+=h.left,u+=h.top}var g=e.display.lineSpace.getBoundingClientRect();return{left:a-g.left,top:u-g.top}}function ml(e,t,s,a,u){return a||(a=ke(e.doc,t.line)),bl(e,a,lc(e,a,t.ch,u),s)}function Vn(e,t,s,a,u,h){a=a||ke(e.doc,t.line),u||(u=Zn(e,a));function g(Z,J){var le=ai(e,u,Z,J?"right":"left",h);return J?le.left=le.right:le.right=le.left,bl(e,a,le,s)}var m=Hr(a,e.doc.direction),y=t.ch,C=t.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return g(C=="before"?y-1:y,C=="before");function z(Z,J,le){var fe=m[J],Ce=fe.level==1;return g(le?Z-1:Z,Ce!=le)}var M=Zt(m,y,C),N=jr,R=z(y,M,C=="before");return N!=null&&(R.other=z(y,N,C!="before")),R}function pc(e,t){var s=0;t=be(e.doc,t),e.options.lineWrapping||(s=wa(e.display)*t.ch);var a=ke(e.doc,t.line),u=Xr(a)+ps(e.display);return{left:s,right:s,top:u,bottom:u+a.height}}function Xi(e,t,s,a,u){var h=ie(e,t,s);return h.xRel=u,a&&(h.outside=a),h}function $(e,t,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Xi(a.first,0,null,-1,-1);var u=Un(a,s),h=a.first+a.size-1;if(u>h)return Xi(a.first+a.size-1,ke(a,h).text.length,null,1,1);t<0&&(t=0);for(var g=ke(a,u);;){var m=Je(e,g,u,t,s),y=lf(g,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==u)return C;g=ke(a,u=C.line)}}function K(e,t,s,a){a-=vl(t);var u=t.text.length,h=Mr(function(g){return ai(e,s,g-1).bottom<=a},u,0);return u=Mr(function(g){return ai(e,s,g).top>a},h,u),{begin:h,end:u}}function Y(e,t,s,a){s||(s=Zn(e,t));var u=bl(e,t,ai(e,s,a),"line").top;return K(e,t,s,u)}function Me(e,t,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>t}function Je(e,t,s,a,u){u-=Xr(t);var h=Zn(e,t),g=vl(t),m=0,y=t.text.length,C=!0,z=Hr(t,e.doc.direction);if(z){var M=(e.options.lineWrapping?pr:Mt)(e,t,s,h,z,a,u);C=M.level!=1,m=C?M.from:M.to-1,y=C?M.to:M.from-1}var N=null,R=null,Z=Mr(function(Re){var Pe=ai(e,h,Re);return Pe.top+=g,Pe.bottom+=g,Me(Pe,a,u,!1)?(Pe.top<=u&&Pe.left<=a&&(N=Re,R=Pe),!0):!1},m,y),J,le,fe=!1;if(R){var Ce=a-R.left<R.right-a,de=Ce==C;Z=N+(de?0:1),le=de?"after":"before",J=Ce?R.left:R.right}else{!C&&(Z==y||Z==m)&&Z++,le=Z==0?"after":Z==t.text.length?"before":ai(e,h,Z-(C?1:0)).bottom+g<=u==C?"after":"before";var xe=Vn(e,ie(s,Z,le),"line",t,h);J=xe.left,fe=u<xe.top?-1:u>=xe.bottom?1:0}return Z=dr(t.text,Z,1),Xi(s,Z,le,fe,a-J)}function Mt(e,t,s,a,u,h,g){var m=Mr(function(M){var N=u[M],R=N.level!=1;return Me(Vn(e,ie(s,R?N.to:N.from,R?"before":"after"),"line",t,a),h,g,!0)},0,u.length-1),y=u[m];if(m>0){var C=y.level!=1,z=Vn(e,ie(s,C?y.from:y.to,C?"after":"before"),"line",t,a);Me(z,h,g,!0)&&z.top>g&&(y=u[m-1])}return y}function pr(e,t,s,a,u,h,g){var m=K(e,t,a,g),y=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var z=null,M=null,N=0;N<u.length;N++){var R=u[N];if(!(R.from>=C||R.to<=y)){var Z=R.level!=1,J=ai(e,a,Z?Math.min(C,R.to)-1:Math.max(y,R.from)).right,le=J<h?h-J+1e9:J-h;(!z||M>le)&&(z=R,M=le)}}return z||(z=u[u.length-1]),z.from<y&&(z={from:y,to:z.to,level:z.level}),z.to>C&&(z={from:z.from,to:C,level:z.level}),z}var wt;function Qi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wt==null){wt=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wt.appendChild(document.createTextNode("x")),wt.appendChild(E("br"));wt.appendChild(document.createTextNode("x"))}W(e.measure,wt);var s=wt.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),it(e.measure),s||1}function wa(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),s=E("pre",[t],"CodeMirror-line-like");W(e.measure,s);var a=t.getBoundingClientRect(),u=(a.right-a.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function sn(e){for(var t=e.display,s={},a={},u=t.gutters.clientLeft,h=t.gutters.firstChild,g=0;h;h=h.nextSibling,++g){var m=e.display.gutterSpecs[g].className;s[m]=h.offsetLeft+h.clientLeft+u,a[m]=h.clientWidth}return{fixedPos:xa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function xa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function gc(e){var t=Qi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/wa(e.display)-3);return function(u){if(qt(e.doc,u))return 0;var h=0;if(u.widgets)for(var g=0;g<u.widgets.length;g++)u.widgets[g].height&&(h+=u.widgets[g].height);return s?h+(Math.ceil(u.text.length/a)||1)*t:h+t}}function Ji(e){var t=e.doc,s=gc(e);t.iter(function(a){var u=s(a);u!=a.height&&nn(a,u)})}function si(e,t,s,a){var u=e.display;if(!s&&Yi(t).getAttribute("cm-not-content")=="true")return null;var h,g,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,g=t.clientY-m.top}catch{return null}var y=$(e,h,g),C;if(a&&y.xRel>0&&(C=ke(e.doc,y.line).text).length==y.ch){var z=Ft(C,C.length,e.options.tabSize)-C.length;y=ie(y.line,Math.max(0,Math.round((h-dl(e.display).left)/wa(e.display))-z))}return y}function li(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(t-=s[a].size,t<0)return a}function rt(e,t,s,a){t==null&&(t=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var u=e.display;if(a&&s<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)ii&&ul(e.doc,t)<u.viewTo&&Si(e);else if(s<=u.viewFrom)ii&&ec(e.doc,s+a)>u.viewFrom?Si(e):(u.viewFrom+=a,u.viewTo+=a);else if(t<=u.viewFrom&&s>=u.viewTo)Si(e);else if(t<=u.viewFrom){var h=No(e,s,s+a,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=a):Si(e)}else if(s>=u.viewTo){var g=No(e,t,t,-1);g?(u.view=u.view.slice(0,g.index),u.viewTo=g.lineN):Si(e)}else{var m=No(e,t,t,-1),y=No(e,s,s+a,1);m&&y?(u.view=u.view.slice(0,m.index).concat(ya(e,m.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=a):Si(e)}var C=u.externalMeasured;C&&(s<C.lineN?C.lineN+=a:t<C.lineN+C.size&&(u.externalMeasured=null))}function eo(e,t,s){e.curOp.viewChanged=!0;var a=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(a.externalMeasured=null),!(t<a.viewFrom||t>=a.viewTo)){var h=a.view[li(e,t)];if(h.node!=null){var g=h.changes||(h.changes=[]);_e(g,s)==-1&&g.push(s)}}}function Si(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function No(e,t,s,a){var u=li(e,t),h,g=e.display.view;if(!ii||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var m=e.display.viewFrom,y=0;y<u;y++)m+=g[y].size;if(m!=t){if(a>0){if(u==g.length-1)return null;h=m+g[u].size-t,u++}else h=m-t;t+=h,s+=h}for(;ul(e.doc,s)!=s;){if(u==(a<0?0:g.length-1))return null;s+=a*g[u-(a<0?1:0)].size,u+=a}return{index:u,lineN:s}}function mf(e,t,s){var a=e.display,u=a.view;u.length==0||t>=a.viewTo||s<=a.viewFrom?(a.view=ya(e,t,s),a.viewFrom=t):(a.viewFrom>t?a.view=ya(e,t,a.viewFrom).concat(a.view):a.viewFrom<t&&(a.view=a.view.slice(li(e,t))),a.viewFrom=t,a.viewTo<s?a.view=a.view.concat(ya(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,li(e,s)))),a.viewTo=s}function vc(e){for(var t=e.display.view,s=0,a=0;a<t.length;a++){var u=t[a];!u.hidden&&(!u.node||u.changes)&&++s}return s}function vs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function bs(e,t){t===void 0&&(t=!0);for(var s=e.doc,a={},u=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),g=0;g<s.sel.ranges.length;g++)if(!(!t&&g==s.sel.primIndex)){var m=s.sel.ranges[g];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&Mi(e,m.head,u),y||bc(e,m,h)}}return a}function Mi(e,t,s){var a=Vn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=s.appendChild(E("div","\xA0","CodeMirror-cursor"));if(u.style.left=a.left+"px",u.style.top=a.top+"px",u.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=ml(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var g=s.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=a.other.left+"px",g.style.top=a.other.top+"px",g.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function $o(e,t){return e.top-t.top||e.left-t.left}function bc(e,t,s){var a=e.display,u=e.doc,h=document.createDocumentFragment(),g=dl(e.display),m=g.left,y=Math.max(a.sizerWidth,ji(e)-a.sizer.offsetLeft)-g.right,C=u.direction=="ltr";function z(de,xe,Re,Pe){xe<0&&(xe=0),xe=Math.round(xe),Pe=Math.round(Pe),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+de+`px;
2123
- top: `+xe+"px; width: "+(Re==null?y-de:Re)+`px;
2124
- height: `+(Pe-xe)+"px"))}function M(de,xe,Re){var Pe=ke(u,de),lt=Pe.text.length,Ot,ur;function Rt(rr,Sr){return ml(e,ie(de,rr),"div",Pe,Sr)}function Ur(rr,Sr,gr){var It=Y(e,Pe,null,rr),Ht=Sr=="ltr"==(gr=="after")?"left":"right",Xt=gr=="after"?It.begin:It.end-(/\s/.test(Pe.text.charAt(It.end-1))?2:1);return Rt(Xt,Ht)[Ht]}var Yr=Hr(Pe,u.direction);return $n(Yr,xe||0,Re==null?lt:Re,function(rr,Sr,gr,It){var Ht=gr=="ltr",Xt=Rt(rr,Ht?"left":"right"),Zr=Rt(Sr-1,Ht?"right":"left"),Za=xe==null&&rr==0,vo=Re==null&&Sr==lt,Rr=It==0,hi=!Yr||It==Yr.length-1;if(Zr.top-Xt.top<=3){var vr=(C?Za:vo)&&Rr,u0=(C?vo:Za)&&hi,Ai=vr?m:(Ht?Xt:Zr).left,Ko=u0?y:(Ht?Zr:Xt).right;z(Ai,Xt.top,Ko-Ai,Xt.bottom)}else{var Xo,Vr,Va,Gl;Ht?(Xo=C&&Za&&Rr?m:Xt.left,Vr=C?y:Ur(rr,gr,"before"),Va=C?m:Ur(Sr,gr,"after"),Gl=C&&vo&&hi?y:Zr.right):(Xo=C?Ur(rr,gr,"before"):m,Vr=!C&&Za&&Rr?y:Xt.right,Va=!C&&vo&&hi?m:Zr.left,Gl=C?Ur(Sr,gr,"after"):y),z(Xo,Xt.top,Vr-Xo,Xt.bottom),Xt.bottom<Zr.top&&z(m,Xt.bottom,null,Zr.top),z(Va,Zr.top,Gl-Va,Zr.bottom)}(!Ot||$o(Xt,Ot)<0)&&(Ot=Xt),$o(Zr,Ot)<0&&(Ot=Zr),(!ur||$o(Xt,ur)<0)&&(ur=Xt),$o(Zr,ur)<0&&(ur=Zr)}),{start:Ot,end:ur}}var N=t.from(),R=t.to();if(N.line==R.line)M(N.line,N.ch,R.ch);else{var Z=ke(u,N.line),J=ke(u,R.line),le=oi(Z)==oi(J),fe=M(N.line,N.ch,le?Z.text.length+1:null).end,Ce=M(R.line,le?0:null,R.ch).start;le&&(fe.top<Ce.top-2?(z(fe.right,fe.top,null,fe.bottom),z(m,Ce.top,Ce.left,Ce.bottom)):z(fe.right,fe.top,Ce.left-fe.right,fe.bottom)),fe.bottom<Ce.top&&z(m,fe.bottom,null,Ce.top)}s.appendChild(h)}function La(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var s=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Ho(e),t.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Eu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_a(e))}function yl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ho(e))},100)}function _a(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ge(e,"focus",e,t),e.state.focused=!0,At(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),La(e))}function Ho(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ge(e,"blur",e,t),e.state.focused=!1,ye(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function to(e){for(var t=e.display,s=t.lineDiv.offsetTop,a=0;a<t.view.length;a++){var u=t.view[a],h=e.options.lineWrapping,g=void 0,m=0;if(!u.hidden){if(S&&O<8){var y=u.node.offsetTop+u.node.offsetHeight;g=y-s,s=y}else{var C=u.node.getBoundingClientRect();g=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var z=u.line.height-g;if((z>.005||z<-.005)&&(nn(u.line,g),ro(u.line),u.rest))for(var M=0;M<u.rest.length;M++)ro(u.rest[M]);if(m>e.display.sizerWidth){var N=Math.ceil(m/wa(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function ro(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var s=e.widgets[t],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Bo(e,t,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-ps(e));var u=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,h=Un(t,a),g=Un(t,u);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<h?(h=m,g=Un(t,Xr(ke(t,m))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=g&&(h=Un(t,Xr(ke(t,y))-e.wrapper.clientHeight),g=y)}return{from:h,to:Math.max(g,h+1)}}function yf(e,t){if(!ir(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),u=null;if(t.top+a.top<0?u=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!me){var h=E("div","\u200B",null,`position: absolute;
2203
+ `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),g=h.indexOf("\r");g!=-1?(s.push(h.slice(0,g)),t+=g+1):(s.push(h),t=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},el=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},tl=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),is=null;function Vi(e){if(is!=null)return is;var t=W(e,E("span","x")),s=t.getBoundingClientRect(),a=ne(t,0,1).getBoundingClientRect();return is=Math.abs(s.left-a.left)>1}var zn={},pn={};function rl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),zn[e]=t}function Li(e,t){pn[e]=t}function Po(e){if(typeof e=="string"&&pn.hasOwnProperty(e))e=pn[e];else if(e&&typeof e.name=="string"&&pn.hasOwnProperty(e.name)){var t=pn[e.name];typeof t=="string"&&(t={name:t}),e=rn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Po("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Po("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ga(e,t){t=Po(t);var s=zn[t.name];if(!s)return ga(e,"text/plain");var a=s(e,t);if(Fn.hasOwnProperty(t.name)){var u=Fn[t.name];for(var h in u)!u.hasOwnProperty(h)||(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=u[h])}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var g in t.modeProps)a[g]=t.modeProps[g];return a}var Fn={};function Wn(e,t){var s=Fn.hasOwnProperty(e)?Fn[e]:Fn[e]={};er(t,s)}function gn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var s={};for(var a in t){var u=t[a];u instanceof Array&&(u=u.concat([])),s[a]=u}return s}function os(e,t){for(var s;e.innerMode&&(s=e.innerMode(t),!(!s||s.mode==e));)t=s.state,e=s.mode;return s||{mode:e,state:t}}function as(e,t,s){return e.startState?e.startState(t,s):!0}var Wt=function(e,t,s){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Wt.prototype.eol=function(){return this.pos>=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Wt.prototype.eat=function(e){var t=this.string.charAt(this.pos),s;if(typeof e=="string"?s=t==e:s=t&&(e.test?e.test(t):e(t)),s)return++this.pos,t},Wt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Wt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Wt.prototype.backUp=function(e){this.pos-=e},Wt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.indentation=function(){return Ft(this.string,null,this.tabSize)-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.match=function(e,t,s){if(typeof e=="string"){var a=function(g){return s?g.toLowerCase():g},u=this.string.substr(this.pos,e.length);if(a(u)==a(e))return t!==!1&&(this.pos+=e.length),!0}else{var h=this.string.slice(this.pos).match(e);return h&&h.index>0?null:(h&&t!==!1&&(this.pos+=h[0].length),h)}},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Wt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Wt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Me(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var u=s.children[a],h=u.chunkSize();if(t<h){s=u;break}t-=h}return s.lines[t]}function vn(e,t,s){var a=[],u=t.line;return e.iter(t.line,s.line+1,function(h){var g=h.text;u==s.line&&(g=g.slice(0,s.ch)),u==t.line&&(g=g.slice(t.ch)),a.push(g),++u}),a}function ss(e,t,s){var a=[];return e.iter(t,s,function(u){a.push(u.text)}),a}function nn(e,t){var s=t-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function zt(e){if(e.parent==null)return null;for(var t=e.parent,s=_e(t.lines,e),a=t.parent;a;t=a,a=a.parent)for(var u=0;a.children[u]!=t;++u)s+=a.children[u].chunkSize();return s+t.first}function Un(e,t){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var u=e.children[a],h=u.height;if(t<h){e=u;continue e}t-=h,s+=u.chunkSize()}return s}while(!e.lines);for(var g=0;g<e.lines.length;++g){var m=e.lines[g],y=m.height;if(t<y)break;t-=y}return s+g}function Gi(e,t){return t>=e.first&&t<e.first+e.size}function va(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ie(e,t,s){if(s===void 0&&(s=null),!(this instanceof ie))return new ie(e,t,s);this.line=e,this.ch=t,this.sticky=s}function w(e,t){return e.line-t.line||e.ch-t.ch}function P(e,t){return e.sticky==t.sticky&&w(e,t)==0}function j(e){return ie(e.line,e.ch)}function ae(e,t){return w(e,t)<0?t:e}function qe(e,t){return w(e,t)<0?e:t}function vt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.line<e.first)return ie(e.first,0);var s=e.first+e.size-1;return t.line>s?ie(s,Me(e,s).text.length):Or(t,Me(e,t.line).text.length)}function Or(e,t){var s=e.ch;return s==null||s>t?ie(e.line,t):s<0?ie(e.line,0):e}function on(e,t){for(var s=[],a=0;a<t.length;a++)s[a]=me(e,t[a]);return s}var _i=function(e,t){this.state=e,this.lookAhead=t},Yn=function(e,t,s,a){this.state=t,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Yn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(e,t,s){return t instanceof _i?new Yn(e,gn(e.mode,t.state),s,t.lookAhead):new Yn(e,gn(e.mode,t),s)},Yn.prototype.save=function(e){var t=e!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(t,this.maxLookAhead):t};function V0(e,t,s,a){var u=[e.state.modeGen],h={};yu(e,t.text,e.doc.mode,s,function(C,_){return u.push(C,_)},h,a);for(var g=s.state,m=function(C){s.baseTokens=u;var _=e.state.overlays[C],k=1,N=0;s.state=!0,yu(e,t.text,_.mode,s,function(R,Z){for(var J=k;N<R;){var le=u[k];le>R&&u.splice(k,1,R,u[k+1],le),k+=2,N=Math.min(R,le)}if(!!Z)if(_.opaque)u.splice(J,k-J,R,"overlay "+Z),k=J+2;else for(;J<k;J+=2){var fe=u[J+1];u[J+1]=(fe?fe+" ":"")+"overlay "+Z}},h),s.state=g,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function mu(e,t,s){if(!t.styles||t.styles[0]!=e.state.modeGen){var a=ba(e,zt(t)),u=t.text.length>e.options.maxHighlightLength&&gn(e.doc.mode,a.state),h=V0(e,t,a);u&&(a.state=u),t.stateAfter=a.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ba(e,t,s){var a=e.doc,u=e.display;if(!a.mode.startState)return new Yn(a,!0,t);var h=q0(e,t,s),g=h>a.first&&Me(a,h-1).stateAfter,m=g?Yn.fromSaved(a,g,h):new Yn(a,as(a.mode),h);return a.iter(h,t,function(y){ls(e,y.text,m);var C=m.line;y.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function ls(e,t,s,a){var u=e.doc.mode,h=new Wt(t,e.options.tabSize,s);for(h.start=h.pos=a||0,t==""&&G0(u,s.state);!h.eol();)nl(u,h,s.state),h.start=h.pos}function G0(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var s=os(e,t);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function nl(e,t,s,a){for(var u=0;u<10;u++){a&&(a[0]=os(e,s).mode);var h=e.token(t,s);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var il=function(e,t,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=s};function ol(e,t,s,a){var u=e.doc,h=u.mode,g;t=me(u,t);var m=Me(u,t.line),y=ba(e,t.line,s),C=new Wt(m.text,e.options.tabSize,y),_;for(a&&(_=[]);(a||C.pos<t.ch)&&!C.eol();)C.start=C.pos,g=nl(h,C,y.state),a&&_.push(new il(C,g,gn(u.mode,y.state)));return a?_:new il(C,g,y.state)}function Ao(e,t){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";t[a]==null?t[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(t[a])||(t[a]+=" "+s[2])}return e}function yu(e,t,s,a,u,h,g){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,_=new Wt(t,e.options.tabSize,a),k,N=e.options.addModeClass&&[null];for(t==""&&Ao(G0(s,a.state),h);!_.eol();){if(_.pos>e.options.maxHighlightLength?(m=!1,g&&ls(e,t,a,_.pos),_.pos=t.length,k=null):k=Ao(nl(s,_,a.state,N),h),N){var R=N[0].name;R&&(k="m-"+(k?R+" "+k:R))}if(!m||C!=k){for(;y<_.start;)y=Math.min(_.start,y+5e3),u(y,C);C=k}_.start=_.pos}for(;y<_.pos;){var Z=Math.min(_.pos,y+5e3);u(Z,C),y=Z}}function q0(e,t,s){for(var a,u,h=e.doc,g=s?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>g;--m){if(m<=h.first)return h.first;var y=Me(h,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof _i?C.lookAhead:0)<=h.modeFrontier))return m;var _=Ft(y.text,null,e.options.tabSize);(u==null||a>_)&&(u=m-1,a=_)}return u}function af(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var s=e.first,a=t-1;a>s;a--){var u=Me(e,a).stateAfter;if(u&&(!(u instanceof _i)||a+u.lookAhead<t)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var Cu=!1,ii=!1;function j0(){Cu=!0}function K0(){ii=!0}function al(e,t,s){this.marker=e,this.from=t,this.to=s}function us(e,t){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==t)return a}}function sf(e,t){for(var s,a=0;a<e.length;++a)e[a]!=t&&(s||(s=[])).push(e[a]);return s}function X0(e,t,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],a&&a.add(e.markedSpans)),t.marker.attachLine(e)}function lf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&g.type=="bookmark"&&(!s||!h.marker.insertLeft)){var y=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);(a||(a=[])).push(new al(g,h.from,y?null:h.to))}}return a}function uf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&g.type=="bookmark"&&(!s||h.marker.insertLeft)){var y=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);(a||(a=[])).push(new al(g,y?null:h.from-t,h.to==null?null:h.to-t))}}return a}function wu(e,t){if(t.full)return null;var s=Gi(e,t.from.line)&&Me(e,t.from.line).markedSpans,a=Gi(e,t.to.line)&&Me(e,t.to.line).markedSpans;if(!s&&!a)return null;var u=t.from.ch,h=t.to.ch,g=w(t.from,t.to)==0,m=lf(s,u,g),y=uf(a,h,g),C=t.text.length==1,_=Xe(t.text).length+(C?u:0);if(m)for(var k=0;k<m.length;++k){var N=m[k];if(N.to==null){var R=us(y,N.marker);R?C&&(N.to=R.to==null?null:R.to+_):N.to=u}}if(y)for(var Z=0;Z<y.length;++Z){var J=y[Z];if(J.to!=null&&(J.to+=_),J.from==null){var le=us(m,J.marker);le||(J.from=_,C&&(m||(m=[])).push(J))}else J.from+=_,C&&(m||(m=[])).push(J)}m&&(m=Q0(m)),y&&y!=m&&(y=Q0(y));var fe=[m];if(!C){var we=t.text.length-2,de;if(we>0&&m)for(var ze=0;ze<m.length;++ze)m[ze].to==null&&(de||(de=[])).push(new al(m[ze].marker,null,null));for(var Re=0;Re<we;++Re)fe.push(de);fe.push(y)}return fe}function Q0(e){for(var t=0;t<e.length;++t){var s=e[t];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function xu(e,t,s){var a=null;if(e.iter(t.line,s.line+1,function(R){if(R.markedSpans)for(var Z=0;Z<R.markedSpans.length;++Z){var J=R.markedSpans[Z].marker;J.readOnly&&(!a||_e(a,J)==-1)&&(a||(a=[])).push(J)}}),!a)return null;for(var u=[{from:t,to:s}],h=0;h<a.length;++h)for(var g=a[h],m=g.find(0),y=0;y<u.length;++y){var C=u[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var _=[y,1],k=w(C.from,m.from),N=w(C.to,m.to);(k<0||!g.inclusiveLeft&&!k)&&_.push({from:C.from,to:m.from}),(N>0||!g.inclusiveRight&&!N)&&_.push({from:m.to,to:C.to}),u.splice.apply(u,_),y+=_.length-3}}return u}function J0(e){var t=e.markedSpans;if(!!t){for(var s=0;s<t.length;++s)t[s].marker.detachLine(e);e.markedSpans=null}}function ec(e,t){if(!!t){for(var s=0;s<t.length;++s)t[s].marker.attachLine(e);e.markedSpans=t}}function sl(e){return e.inclusiveLeft?-1:0}function ll(e){return e.inclusiveRight?1:0}function zu(e,t){var s=e.lines.length-t.lines.length;if(s!=0)return s;var a=e.find(),u=t.find(),h=w(a.from,u.from)||sl(e)-sl(t);if(h)return-h;var g=w(a.to,u.to)||ll(e)-ll(t);return g||t.id-e.id}function Ut(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=void 0,h=0;h<s.length;++h)u=s[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!a||zu(a,u.marker)<0)&&(a=u.marker);return a}function $t(e){return Ut(e,!0)}function ul(e){return Ut(e,!1)}function cf(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=0;u<s.length;++u){var h=s[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!a||zu(a,h.marker)<0)&&(a=h.marker)}return a}function tc(e,t,s,a,u){var h=Me(e,t),g=ii&&h.markedSpans;if(g)for(var m=0;m<g.length;++m){var y=g[m];if(!!y.marker.collapsed){var C=y.marker.find(0),_=w(C.from,s)||sl(y.marker)-sl(u),k=w(C.to,a)||ll(y.marker)-ll(u);if(!(_>=0&&k<=0||_<=0&&k>=0)&&(_<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||_>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function oi(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function ff(e){for(var t;t=ul(e);)e=t.find(1,!0).line;return e}function df(e){for(var t,s;t=ul(e);)e=t.find(1,!0).line,(s||(s=[])).push(e);return s}function cl(e,t){var s=Me(e,t),a=oi(s);return s==a?t:zt(a)}function rc(e,t){if(t>e.lastLine())return t;var s=Me(e,t),a;if(!Gt(e,s))return t;for(;a=ul(s);)s=a.find(1,!0).line;return zt(s)+1}function Gt(e,t){var s=ii&&t.markedSpans;if(s){for(var a=void 0,u=0;u<s.length;++u)if(a=s[u],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&cs(e,t,a))return!0}}}function cs(e,t,s){if(s.to==null){var a=s.marker.find(1,!0);return cs(e,a.line,us(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==t.text.length)return!0;for(var u=void 0,h=0;h<t.markedSpans.length;++h)if(u=t.markedSpans[h],u.marker.collapsed&&!u.marker.widgetNode&&u.from==s.to&&(u.to==null||u.to!=s.from)&&(u.marker.inclusiveLeft||s.marker.inclusiveRight)&&cs(e,t,u))return!0}function Xr(e){e=oi(e);for(var t=0,s=e.parent,a=0;a<s.lines.length;++a){var u=s.lines[a];if(u==e)break;t+=u.height}for(var h=s.parent;h;s=h,h=s.parent)for(var g=0;g<h.children.length;++g){var m=h.children[g];if(m==s)break;t+=m.height}return t}function fs(e){if(e.height==0)return 0;for(var t=e.text.length,s,a=e;s=$t(a);){var u=s.find(0,!0);a=u.from.line,t+=u.from.ch-u.to.ch}for(a=e;s=ul(a);){var h=s.find(0,!0);t-=a.text.length-h.from.ch,a=h.to.line,t+=a.text.length-h.to.ch}return t}function ds(e){var t=e.display,s=e.doc;t.maxLine=Me(s,s.first),t.maxLineLength=fs(t.maxLine),t.maxLineChanged=!0,s.iter(function(a){var u=fs(a);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=a)})}var Tr=function(e,t,s){this.text=e,ec(this,t),this.height=s?s(this):1};Tr.prototype.lineNo=function(){return zt(this)},Bn(Tr);function nc(e,t,s,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),J0(e),ec(e,s);var u=a?a(e):1;u!=e.height&&nn(e,u)}function ic(e){e.parent=null,J0(e)}var oc={},ac={};function Lu(e,t){if(!e||/^\s*$/.test(e))return null;var s=t.addModeClass?ac:oc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function _u(e,t){var s=T("span",null,null,I?"padding-right: .1px":null),a={pre:T("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,g=void 0;a.pos=0,a.addToken=hf,ni(e.display.measure)&&(g=Hr(h,e.doc.direction))&&(a.addToken=pf(a.addToken,g)),a.map=[];var m=t!=e.display.externalMeasured&&zt(h);qi(h,a,mu(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=sr(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=sr(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Js(e.display.measure))),u==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Ge(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=sr(a.pre.className,a.textClass||"")),a}function bn(e){var t=E("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function hf(e,t,s,a,u,h,g){if(!!t){var m=e.splitSpaces?Ln(t,e.trailingSpace):t,y=e.cm.state.specialChars,C=!1,_;if(!y.test(t))e.col+=t.length,_=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,_),S&&O<9&&(C=!0),e.pos+=t.length;else{_=document.createDocumentFragment();for(var k=0;;){y.lastIndex=k;var N=y.exec(t),R=N?N.index-k:t.length-k;if(R){var Z=document.createTextNode(m.slice(k,k+R));S&&O<9?_.appendChild(E("span",[Z])):_.appendChild(Z),e.map.push(e.pos,e.pos+R,Z),e.col+=R,e.pos+=R}if(!N)break;k+=R+1;var J=void 0;if(N[0]==" "){var le=e.cm.options.tabSize,fe=le-e.col%le;J=_.appendChild(E("span",lr(fe),"cm-tab")),J.setAttribute("role","presentation"),J.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
2204
+ `?(J=_.appendChild(E("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),J.setAttribute("cm-text",N[0]),e.col+=1):(J=e.cm.options.specialCharPlaceholder(N[0]),J.setAttribute("cm-text",N[0]),S&&O<9?_.appendChild(E("span",[J])):_.appendChild(J),e.col+=1);e.map.push(e.pos,e.pos+1,J),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,s||a||u||C||h||g){var we=s||"";a&&(we+=a),u&&(we+=u);var de=E("span",[_],we,h);if(g)for(var ze in g)g.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&de.setAttribute(ze,g[ze]);return e.content.appendChild(de)}e.content.appendChild(_)}}function Ln(e,t){if(e.length>1&&!/ /.test(e))return e;for(var s=t,a="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),a+=h,s=h==" "}return a}function pf(e,t){return function(s,a,u,h,g,m,y){u=u?u+" cm-force-border":"cm-force-border";for(var C=s.pos,_=C+a.length;;){for(var k=void 0,N=0;N<t.length&&(k=t[N],!(k.to>C&&k.from<=C));N++);if(k.to>=_)return e(s,a,u,h,g,m,y);e(s,a.slice(0,k.to-C),u,h,null,m,y),h=null,a=a.slice(k.to-C),C=k.to}}}function Su(e,t,s,a){var u=!a&&s.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!a&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function qi(e,t,s){var a=e.markedSpans,u=e.text,h=0;if(!a){for(var g=1;g<s.length;g+=2)t.addToken(t,u.slice(h,h=s[g]),Lu(s[g+1],t.cm.options));return}for(var m=u.length,y=0,C=1,_="",k,N,R=0,Z,J,le,fe,we;;){if(R==y){Z=J=le=N="",we=null,fe=null,R=1/0;for(var de=[],ze=void 0,Re=0;Re<a.length;++Re){var Pe=a[Re],lt=Pe.marker;if(lt.type=="bookmark"&&Pe.from==y&&lt.widgetNode)de.push(lt);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||lt.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&R>Pe.to&&(R=Pe.to,J=""),lt.className&&(Z+=" "+lt.className),lt.css&&(N=(N?N+";":"")+lt.css),lt.startStyle&&Pe.from==y&&(le+=" "+lt.startStyle),lt.endStyle&&Pe.to==R&&(ze||(ze=[])).push(lt.endStyle,Pe.to),lt.title&&((we||(we={})).title=lt.title),lt.attributes)for(var Ot in lt.attributes)(we||(we={}))[Ot]=lt.attributes[Ot];lt.collapsed&&(!fe||zu(fe.marker,lt)<0)&&(fe=Pe)}else Pe.from>y&&R>Pe.from&&(R=Pe.from)}if(ze)for(var ur=0;ur<ze.length;ur+=2)ze[ur+1]==R&&(J+=" "+ze[ur]);if(!fe||fe.from==y)for(var Rt=0;Rt<de.length;++Rt)Su(t,0,de[Rt]);if(fe&&(fe.from||0)==y){if(Su(t,(fe.to==null?m+1:fe.to)-y,fe.marker,fe.from==null),fe.to==null)return;fe.to==y&&(fe=!1)}}if(y>=m)break;for(var Ur=Math.min(m,R);;){if(_){var Yr=y+_.length;if(!fe){var rr=Yr>Ur?_.slice(0,Ur-y):_;t.addToken(t,rr,k?k+Z:Z,le,y+rr.length==R?J:"",N,we)}if(Yr>=Ur){_=_.slice(Ur-y),y=Ur;break}y=Yr,le=""}_=u.slice(h,h=s[C++]),k=Lu(s[C++],t.cm.options)}}}function hs(e,t,s){this.line=t,this.rest=df(t),this.size=this.rest?zt(Xe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Gt(e,t)}function ma(e,t,s){for(var a=[],u,h=t;h<s;h=u){var g=new hs(e.doc,Me(e.doc,h),h);u=h+g.size,a.push(g)}return a}var Et=null;function ji(e){Et?Et.ops.push(e):e.ownsGroup=Et={ops:[e],delayedCallbacks:[]}}function ku(e){var t=e.delayedCallbacks,s=0;do{for(;s<t.length;s++)t[s].call(null);for(var a=0;a<e.ops.length;a++){var u=e.ops[a];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<t.length)}function gf(e,t){var s=e.ownsGroup;if(!!s)try{ku(s)}finally{Et=null,t(s)}}var Eo=null;function hr(e,t){var s=Yi(e,t);if(!!s.length){var a=Array.prototype.slice.call(arguments,2),u;Et?u=Et.delayedCallbacks:Eo?u=Eo:(u=Eo=[],setTimeout(vf,0));for(var h=function(m){u.push(function(){return s[m].apply(null,a)})},g=0;g<s.length;++g)h(g)}}function vf(){var e=Eo;Eo=null;for(var t=0;t<e.length;++t)e[t]()}function sc(e,t,s,a){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?bf(e,t):h=="gutter"?Mu(e,t,s,a):h=="class"?dl(e,t):h=="widget"&&Ou(e,t,a)}t.changes=null}function ya(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),S&&O<8&&(e.node.style.zIndex=2)),e.node}function fl(e,t){var s=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),t.background)s?t.background.className=s:(t.background.parentNode.removeChild(t.background),t.background=null);else if(s){var a=ya(t);t.background=a.insertBefore(E("div",null,s),a.firstChild),e.display.input.setUneditable(t.background)}}function Io(e,t){var s=e.display.externalMeasured;return s&&s.line==t.line?(e.display.externalMeasured=null,t.measure=s.measure,s.built):_u(e,t)}function bf(e,t){var s=t.text.className,a=Io(e,t);t.text==t.node&&(t.node=a.pre),t.text.parentNode.replaceChild(a.pre,t.text),t.text=a.pre,a.bgClass!=t.bgClass||a.textClass!=t.textClass?(t.bgClass=a.bgClass,t.textClass=a.textClass,dl(e,t)):s&&(t.text.className=s)}function dl(e,t){fl(e,t),t.line.wrapClass?ya(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var s=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=s||""}function Mu(e,t,s,a){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var u=ya(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var g=ya(t),m=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),g.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(E("div",va(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,_=h.hasOwnProperty(C)&&h[C];_&&m.appendChild(E("div",[_],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function Ou(e,t,s){t.alignable&&(t.alignable=null);for(var a=ve("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,a.test(u.className)&&t.node.removeChild(u);Pu(e,t,s)}function Tu(e,t,s,a){var u=Io(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),dl(e,t),Mu(e,t,s,a),Pu(e,t,a),t.node}function Pu(e,t,s){if(lc(e,t.line,t,s,!0),t.rest)for(var a=0;a<t.rest.length;a++)lc(e,t.rest[a],t,s,!1)}function lc(e,t,s,a,u){if(!!t.widgets)for(var h=ya(s),g=0,m=t.widgets;g<m.length;++g){var y=m[g],C=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Au(y,C,s,a),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,s.gutter||s.text):h.appendChild(C),hr(y,"redraw")}}function Au(e,t,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(t);var u=a.wrapperWidth;t.style.left=a.fixedPos+"px",e.coverGutter||(u-=a.gutterTotalWidth,t.style.paddingLeft=a.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!be(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+t.display.wrapper.clientWidth+"px;"),W(t.display.measure,E("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function Si(e,t){for(var s=Zi(t);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function ps(e){return e.lineSpace.offsetTop}function Qr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function hl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=W(e.measure,E("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function an(e){return Fe-e.display.nativeBarWidth}function Ki(e){return e.display.scroller.clientWidth-an(e)-e.display.barWidth}function pl(e){return e.display.scroller.clientHeight-an(e)-e.display.barHeight}function mf(e,t,s){var a=e.options.lineWrapping,u=a&&Ki(e);if(!t.measure.heights||a&&t.measure.width!=u){var h=t.measure.heights=[];if(a){t.measure.width=u;for(var g=t.text.firstChild.getClientRects(),m=0;m<g.length-1;m++){var y=g[m],C=g[m+1];Math.abs(y.bottom-C.bottom)>2&&h.push((y.bottom+C.top)/2-s.top)}}h.push(s.bottom-s.top)}}function uc(e,t,s){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==t)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var u=0;u<e.rest.length;u++)if(zt(e.rest[u])>s)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function yf(e,t){t=oi(t);var s=zt(t),a=e.display.externalMeasured=new hs(e.doc,t,s);a.lineN=s;var u=a.built=_u(e,a);return a.text=u.pre,W(e.display.lineMeasure,u.pre),a}function cc(e,t,s,a){return ai(e,Zn(e,t),s,a)}function Eu(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[li(e,t)];var s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size)return s}function Zn(e,t){var s=zt(t),a=Eu(e,s);a&&!a.text?a=null:a&&a.changes&&(sc(e,a,s,sn(e)),e.curOp.forceUpdate=!0),a||(a=yf(e,t));var u=uc(a,t,s);return{line:t,view:a,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function ai(e,t,s,a,u){t.before&&(s=-1);var h=s+(a||""),g;return t.cache.hasOwnProperty(h)?g=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(mf(e,t.view,t.rect),t.hasHeights=!0),g=Xi(e,t,s,a),g.bogus||(t.cache[h]=g)),{left:g.left,right:g.right,top:u?g.rtop:g.top,bottom:u?g.rbottom:g.bottom}}var fc={left:0,right:0,top:0,bottom:0};function gl(e,t,s){for(var a,u,h,g,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],t<m?(u=0,h=1,g="left"):t<y?(u=t-m,h=u+1):(C==e.length-3||t==y&&e[C+3]>t)&&(h=y-m,u=h-1,t>=y&&(g="right")),u!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(g=s),s=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],g="left";if(s=="right"&&u==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],g="right";break}return{node:a,start:u,end:h,collapse:g,coverStart:m,coverEnd:y}}function dc(e,t){var s=fc;if(t=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var u=e.length-1;u>=0&&(s=e[u]).left==s.right;u--);return s}function Xi(e,t,s,a){var u=gl(t.map,s,a),h=u.node,g=u.start,m=u.end,y=u.collapse,C;if(h.nodeType==3){for(var _=0;_<4;_++){for(;g&&Qe(t.line.text.charAt(u.coverStart+g));)--g;for(;u.coverStart+m<u.coverEnd&&Qe(t.line.text.charAt(u.coverStart+m));)++m;if(S&&O<9&&g==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=dc(ne(h,g,m).getClientRects(),a),C.left||C.right||g==0)break;m=g,g=g-1,y="right"}S&&O<11&&(C=vl(e.display.measure,C))}else{g>0&&(y=a="right");var k;e.options.lineWrapping&&(k=h.getClientRects()).length>1?C=k[a=="right"?k.length-1:0]:C=h.getBoundingClientRect()}if(S&&O<9&&!g&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Ca(e.display),top:N.top,bottom:N.bottom}:C=fc}for(var R=C.top-t.rect.top,Z=C.bottom-t.rect.top,J=(R+Z)/2,le=t.view.measure.heights,fe=0;fe<le.length-1&&!(J<le[fe]);fe++);var we=fe?le[fe-1]:0,de=le[fe],ze={left:(y=="right"?C.right:C.left)-t.rect.left,right:(y=="left"?C.left:C.right)-t.rect.left,top:we,bottom:de};return!C.left&&!C.right&&(ze.bogus=!0),e.options.singleCursorHeightPerLine||(ze.rtop=R,ze.rbottom=Z),ze}function vl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vi(e))return t;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*s,right:t.right*s,top:t.top*a,bottom:t.bottom*a}}function hc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function pc(e){e.display.externalMeasure=null,it(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)hc(e.display.view[t])}function gs(e){pc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ro(){return q&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function _n(){return q&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function bl(e){var t=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(t+=Do(e.widgets[s]));return t}function ml(e,t,s,a,u){if(!u){var h=bl(t);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var g=Xr(t);if(a=="local"?g+=ps(e.display):g-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();g+=m.top+(a=="window"?0:_n());var y=m.left+(a=="window"?0:Ro());s.left+=y,s.right+=y}return s.top+=g,s.bottom+=g,s}function gc(e,t,s){if(s=="div")return t;var a=t.left,u=t.top;if(s=="page")a-=Ro(),u-=_n();else if(s=="local"||!s){var h=e.display.sizer.getBoundingClientRect();a+=h.left,u+=h.top}var g=e.display.lineSpace.getBoundingClientRect();return{left:a-g.left,top:u-g.top}}function yl(e,t,s,a,u){return a||(a=Me(e.doc,t.line)),ml(e,a,cc(e,a,t.ch,u),s)}function Vn(e,t,s,a,u,h){a=a||Me(e.doc,t.line),u||(u=Zn(e,a));function g(Z,J){var le=ai(e,u,Z,J?"right":"left",h);return J?le.left=le.right:le.right=le.left,ml(e,a,le,s)}var m=Hr(a,e.doc.direction),y=t.ch,C=t.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return g(C=="before"?y-1:y,C=="before");function _(Z,J,le){var fe=m[J],we=fe.level==1;return g(le?Z-1:Z,we!=le)}var k=Zt(m,y,C),N=jr,R=_(y,k,C=="before");return N!=null&&(R.other=_(y,N,C!="before")),R}function vc(e,t){var s=0;t=me(e.doc,t),e.options.lineWrapping||(s=Ca(e.display)*t.ch);var a=Me(e.doc,t.line),u=Xr(a)+ps(e.display);return{left:s,right:s,top:u,bottom:u+a.height}}function Qi(e,t,s,a,u){var h=ie(e,t,s);return h.xRel=u,a&&(h.outside=a),h}function $(e,t,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Qi(a.first,0,null,-1,-1);var u=Un(a,s),h=a.first+a.size-1;if(u>h)return Qi(a.first+a.size-1,Me(a,h).text.length,null,1,1);t<0&&(t=0);for(var g=Me(a,u);;){var m=Je(e,g,u,t,s),y=cf(g,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==u)return C;g=Me(a,u=C.line)}}function K(e,t,s,a){a-=bl(t);var u=t.text.length,h=kr(function(g){return ai(e,s,g-1).bottom<=a},u,0);return u=kr(function(g){return ai(e,s,g).top>a},h,u),{begin:h,end:u}}function Y(e,t,s,a){s||(s=Zn(e,t));var u=ml(e,t,ai(e,s,a),"line").top;return K(e,t,s,u)}function ke(e,t,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>t}function Je(e,t,s,a,u){u-=Xr(t);var h=Zn(e,t),g=bl(t),m=0,y=t.text.length,C=!0,_=Hr(t,e.doc.direction);if(_){var k=(e.options.lineWrapping?pr:kt)(e,t,s,h,_,a,u);C=k.level!=1,m=C?k.from:k.to-1,y=C?k.to:k.from-1}var N=null,R=null,Z=kr(function(Re){var Pe=ai(e,h,Re);return Pe.top+=g,Pe.bottom+=g,ke(Pe,a,u,!1)?(Pe.top<=u&&Pe.left<=a&&(N=Re,R=Pe),!0):!1},m,y),J,le,fe=!1;if(R){var we=a-R.left<R.right-a,de=we==C;Z=N+(de?0:1),le=de?"after":"before",J=we?R.left:R.right}else{!C&&(Z==y||Z==m)&&Z++,le=Z==0?"after":Z==t.text.length?"before":ai(e,h,Z-(C?1:0)).bottom+g<=u==C?"after":"before";var ze=Vn(e,ie(s,Z,le),"line",t,h);J=ze.left,fe=u<ze.top?-1:u>=ze.bottom?1:0}return Z=dr(t.text,Z,1),Qi(s,Z,le,fe,a-J)}function kt(e,t,s,a,u,h,g){var m=kr(function(k){var N=u[k],R=N.level!=1;return ke(Vn(e,ie(s,R?N.to:N.from,R?"before":"after"),"line",t,a),h,g,!0)},0,u.length-1),y=u[m];if(m>0){var C=y.level!=1,_=Vn(e,ie(s,C?y.from:y.to,C?"after":"before"),"line",t,a);ke(_,h,g,!0)&&_.top>g&&(y=u[m-1])}return y}function pr(e,t,s,a,u,h,g){var m=K(e,t,a,g),y=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var _=null,k=null,N=0;N<u.length;N++){var R=u[N];if(!(R.from>=C||R.to<=y)){var Z=R.level!=1,J=ai(e,a,Z?Math.min(C,R.to)-1:Math.max(y,R.from)).right,le=J<h?h-J+1e9:J-h;(!_||k>le)&&(_=R,k=le)}}return _||(_=u[u.length-1]),_.from<y&&(_={from:y,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var wt;function Ji(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wt==null){wt=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wt.appendChild(document.createTextNode("x")),wt.appendChild(E("br"));wt.appendChild(document.createTextNode("x"))}W(e.measure,wt);var s=wt.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),it(e.measure),s||1}function Ca(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),s=E("pre",[t],"CodeMirror-line-like");W(e.measure,s);var a=t.getBoundingClientRect(),u=(a.right-a.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function sn(e){for(var t=e.display,s={},a={},u=t.gutters.clientLeft,h=t.gutters.firstChild,g=0;h;h=h.nextSibling,++g){var m=e.display.gutterSpecs[g].className;s[m]=h.offsetLeft+h.clientLeft+u,a[m]=h.clientWidth}return{fixedPos:wa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function wa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function bc(e){var t=Ji(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/Ca(e.display)-3);return function(u){if(Gt(e.doc,u))return 0;var h=0;if(u.widgets)for(var g=0;g<u.widgets.length;g++)u.widgets[g].height&&(h+=u.widgets[g].height);return s?h+(Math.ceil(u.text.length/a)||1)*t:h+t}}function eo(e){var t=e.doc,s=bc(e);t.iter(function(a){var u=s(a);u!=a.height&&nn(a,u)})}function si(e,t,s,a){var u=e.display;if(!s&&Zi(t).getAttribute("cm-not-content")=="true")return null;var h,g,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,g=t.clientY-m.top}catch{return null}var y=$(e,h,g),C;if(a&&y.xRel>0&&(C=Me(e.doc,y.line).text).length==y.ch){var _=Ft(C,C.length,e.options.tabSize)-C.length;y=ie(y.line,Math.max(0,Math.round((h-hl(e.display).left)/Ca(e.display))-_))}return y}function li(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(t-=s[a].size,t<0)return a}function rt(e,t,s,a){t==null&&(t=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var u=e.display;if(a&&s<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)ii&&cl(e.doc,t)<u.viewTo&&ki(e);else if(s<=u.viewFrom)ii&&rc(e.doc,s+a)>u.viewFrom?ki(e):(u.viewFrom+=a,u.viewTo+=a);else if(t<=u.viewFrom&&s>=u.viewTo)ki(e);else if(t<=u.viewFrom){var h=No(e,s,s+a,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=a):ki(e)}else if(s>=u.viewTo){var g=No(e,t,t,-1);g?(u.view=u.view.slice(0,g.index),u.viewTo=g.lineN):ki(e)}else{var m=No(e,t,t,-1),y=No(e,s,s+a,1);m&&y?(u.view=u.view.slice(0,m.index).concat(ma(e,m.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=a):ki(e)}var C=u.externalMeasured;C&&(s<C.lineN?C.lineN+=a:t<C.lineN+C.size&&(u.externalMeasured=null))}function to(e,t,s){e.curOp.viewChanged=!0;var a=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(a.externalMeasured=null),!(t<a.viewFrom||t>=a.viewTo)){var h=a.view[li(e,t)];if(h.node!=null){var g=h.changes||(h.changes=[]);_e(g,s)==-1&&g.push(s)}}}function ki(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function No(e,t,s,a){var u=li(e,t),h,g=e.display.view;if(!ii||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var m=e.display.viewFrom,y=0;y<u;y++)m+=g[y].size;if(m!=t){if(a>0){if(u==g.length-1)return null;h=m+g[u].size-t,u++}else h=m-t;t+=h,s+=h}for(;cl(e.doc,s)!=s;){if(u==(a<0?0:g.length-1))return null;s+=a*g[u-(a<0?1:0)].size,u+=a}return{index:u,lineN:s}}function Cf(e,t,s){var a=e.display,u=a.view;u.length==0||t>=a.viewTo||s<=a.viewFrom?(a.view=ma(e,t,s),a.viewFrom=t):(a.viewFrom>t?a.view=ma(e,t,a.viewFrom).concat(a.view):a.viewFrom<t&&(a.view=a.view.slice(li(e,t))),a.viewFrom=t,a.viewTo<s?a.view=a.view.concat(ma(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,li(e,s)))),a.viewTo=s}function mc(e){for(var t=e.display.view,s=0,a=0;a<t.length;a++){var u=t[a];!u.hidden&&(!u.node||u.changes)&&++s}return s}function vs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function bs(e,t){t===void 0&&(t=!0);for(var s=e.doc,a={},u=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),g=0;g<s.sel.ranges.length;g++)if(!(!t&&g==s.sel.primIndex)){var m=s.sel.ranges[g];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&Mi(e,m.head,u),y||yc(e,m,h)}}return a}function Mi(e,t,s){var a=Vn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=s.appendChild(E("div","\xA0","CodeMirror-cursor"));if(u.style.left=a.left+"px",u.style.top=a.top+"px",u.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=yl(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var g=s.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=a.other.left+"px",g.style.top=a.other.top+"px",g.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function $o(e,t){return e.top-t.top||e.left-t.left}function yc(e,t,s){var a=e.display,u=e.doc,h=document.createDocumentFragment(),g=hl(e.display),m=g.left,y=Math.max(a.sizerWidth,Ki(e)-a.sizer.offsetLeft)-g.right,C=u.direction=="ltr";function _(de,ze,Re,Pe){ze<0&&(ze=0),ze=Math.round(ze),Pe=Math.round(Pe),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+de+`px;
2205
+ top: `+ze+"px; width: "+(Re==null?y-de:Re)+`px;
2206
+ height: `+(Pe-ze)+"px"))}function k(de,ze,Re){var Pe=Me(u,de),lt=Pe.text.length,Ot,ur;function Rt(rr,Sr){return yl(e,ie(de,rr),"div",Pe,Sr)}function Ur(rr,Sr,gr){var It=Y(e,Pe,null,rr),Ht=Sr=="ltr"==(gr=="after")?"left":"right",Xt=gr=="after"?It.begin:It.end-(/\s/.test(Pe.text.charAt(It.end-1))?2:1);return Rt(Xt,Ht)[Ht]}var Yr=Hr(Pe,u.direction);return $n(Yr,ze||0,Re==null?lt:Re,function(rr,Sr,gr,It){var Ht=gr=="ltr",Xt=Rt(rr,Ht?"left":"right"),Zr=Rt(Sr-1,Ht?"right":"left"),Ya=ze==null&&rr==0,bo=Re==null&&Sr==lt,Rr=It==0,hi=!Yr||It==Yr.length-1;if(Zr.top-Xt.top<=3){var vr=(C?Ya:bo)&&Rr,c0=(C?bo:Ya)&&hi,Ei=vr?m:(Ht?Xt:Zr).left,Ko=c0?y:(Ht?Zr:Xt).right;_(Ei,Xt.top,Ko-Ei,Xt.bottom)}else{var Xo,Vr,Za,ql;Ht?(Xo=C&&Ya&&Rr?m:Xt.left,Vr=C?y:Ur(rr,gr,"before"),Za=C?m:Ur(Sr,gr,"after"),ql=C&&bo&&hi?y:Zr.right):(Xo=C?Ur(rr,gr,"before"):m,Vr=!C&&Ya&&Rr?y:Xt.right,Za=!C&&bo&&hi?m:Zr.left,ql=C?Ur(Sr,gr,"after"):y),_(Xo,Xt.top,Vr-Xo,Xt.bottom),Xt.bottom<Zr.top&&_(m,Xt.bottom,null,Zr.top),_(Za,Zr.top,ql-Za,Zr.bottom)}(!Ot||$o(Xt,Ot)<0)&&(Ot=Xt),$o(Zr,Ot)<0&&(Ot=Zr),(!ur||$o(Xt,ur)<0)&&(ur=Xt),$o(Zr,ur)<0&&(ur=Zr)}),{start:Ot,end:ur}}var N=t.from(),R=t.to();if(N.line==R.line)k(N.line,N.ch,R.ch);else{var Z=Me(u,N.line),J=Me(u,R.line),le=oi(Z)==oi(J),fe=k(N.line,N.ch,le?Z.text.length+1:null).end,we=k(R.line,le?0:null,R.ch).start;le&&(fe.top<we.top-2?(_(fe.right,fe.top,null,fe.bottom),_(m,we.top,we.left,we.bottom)):_(fe.right,fe.top,we.left-fe.right,fe.bottom)),fe.bottom<we.top&&_(m,fe.bottom,null,we.top)}s.appendChild(h)}function xa(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var s=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Ho(e),t.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Iu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||za(e))}function Cl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ho(e))},100)}function za(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ge(e,"focus",e,t),e.state.focused=!0,At(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e))}function Ho(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ge(e,"blur",e,t),e.state.focused=!1,Ce(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ro(e){for(var t=e.display,s=t.lineDiv.offsetTop,a=0;a<t.view.length;a++){var u=t.view[a],h=e.options.lineWrapping,g=void 0,m=0;if(!u.hidden){if(S&&O<8){var y=u.node.offsetTop+u.node.offsetHeight;g=y-s,s=y}else{var C=u.node.getBoundingClientRect();g=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var _=u.line.height-g;if((_>.005||_<-.005)&&(nn(u.line,g),no(u.line),u.rest))for(var k=0;k<u.rest.length;k++)no(u.rest[k]);if(m>e.display.sizerWidth){var N=Math.ceil(m/Ca(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function no(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var s=e.widgets[t],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Bo(e,t,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-ps(e));var u=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,h=Un(t,a),g=Un(t,u);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<h?(h=m,g=Un(t,Xr(Me(t,m))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=g&&(h=Un(t,Xr(Me(t,y))-e.wrapper.clientHeight),g=y)}return{from:h,to:Math.max(g,h+1)}}function wf(e,t){if(!ir(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),u=null;if(t.top+a.top<0?u=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!ye){var h=E("div","\u200B",null,`position: absolute;
2125
2207
  top: `+(t.top-s.viewOffset-ps(e.display))+`px;
2126
2208
  height: `+(t.bottom-t.top+an(e)+s.barHeight)+`px;
2127
- left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(u),e.display.lineSpace.removeChild(h)}}}function Cf(e,t,s,a){a==null&&(a=0);var u;!e.options.lineWrapping&&t==s&&(s=t.sticky=="before"?ie(t.line,t.ch+1,"before"):t,t=t.ch?ie(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var g=!1,m=Vn(e,t),y=!s||s==t?m:Vn(e,s);u={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=za(e,u),z=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(jt(e,C.scrollTop),Math.abs(e.doc.scrollTop-z)>1&&(g=!0)),C.scrollLeft!=null&&(Fo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(g=!0)),!g)break}return u}function wf(e,t){var s=za(e,t);s.scrollTop!=null&&jt(e,s.scrollTop),s.scrollLeft!=null&&Fo(e,s.scrollLeft)}function za(e,t){var s=e.display,a=Qi(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,h=hl(e),g={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Qr(s),y=t.top<a,C=t.bottom>m-a;if(t.top<u)g.scrollTop=y?0:t.top;else if(t.bottom>u+h){var z=Math.min(t.top,(C?m:t.bottom)-h);z!=u&&(g.scrollTop=z)}var M=e.options.fixedGutter?0:s.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-M,R=ji(e)-s.gutters.offsetWidth,Z=t.right-t.left>R;return Z&&(t.right=t.left+R),t.left<10?g.scrollLeft=0:t.left<N?g.scrollLeft=Math.max(0,t.left+M-(Z?0:10)):t.right>R+N-3&&(g.scrollLeft=t.right+(Z?0:10)-R),g}function Sa(e,t){t!=null&&(Cl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function no(e){Cl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ms(e,t,s){(t!=null||s!=null)&&Cl(e),t!=null&&(e.curOp.scrollLeft=t),s!=null&&(e.curOp.scrollTop=s)}function mc(e,t){Cl(e),e.curOp.scrollToPos=t}function Cl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var s=pc(e,t.from),a=pc(e,t.to);yc(e,s,a,t.margin)}}function yc(e,t,s,a){var u=za(e,{left:Math.min(t.left,s.left),top:Math.min(t.top,s.top)-a,right:Math.max(t.right,s.right),bottom:Math.max(t.bottom,s.bottom)+a});ms(e,u.scrollLeft,u.scrollTop)}function jt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Du(e,{top:t}),Pr(e,t,!0),f&&Du(e),ci(e,100))}function Pr(e,t,s){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!s)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fo(e,t,s,a){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)&&(e.doc.scrollLeft=t,Cc(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ys(e){var t=e.display,s=t.gutters.offsetWidth,a=Math.round(e.doc.height+Qr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+an(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:s}}var io=function(e,t,s){this.cm=s;var a=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=u.tabIndex=-1,e(a),e(u),$e(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),$e(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,S&&O<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};io.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var u=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:t?a:0}},io.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},io.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},io.prototype.zeroWidthHack=function(){var e=he&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},io.prototype.enableZeroWidthBar=function(e,t,s){e.style.pointerEvents="auto";function a(){var u=e.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);h!=e?e.style.pointerEvents="none":t.set(1e3,a)}t.set(1e3,a)},io.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Cs=function(){};Cs.prototype.update=function(){return{bottom:0,right:0}},Cs.prototype.setScrollLeft=function(){},Cs.prototype.setScrollTop=function(){},Cs.prototype.clear=function(){};function oo(e,t){t||(t=ys(e));var s=e.display.barWidth,a=e.display.barHeight;Ma(e,t);for(var u=0;u<4&&s!=e.display.barWidth||a!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&to(e),Ma(e,ys(e)),s=e.display.barWidth,a=e.display.barHeight}function Ma(e,t){var s=e.display,a=s.scrollbars.update(t);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&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=t.gutterWidth+"px"):s.gutterFiller.style.display=""}var wl={native:io,null:Cs};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),$e(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,s){s=="horizontal"?Fo(e,t):jt(e,t)},e),e.display.scrollbars.addClass&&At(e.display.wrapper,e.display.scrollbars.addClass)}var ws=0;function Gn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++ws,markArrays:null},qi(e.curOp)}function ui(e){var t=e.curOp;t&&hf(t,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ka(s)})}function ka(e){for(var t=e.ops,s=0;s<t.length;s++)xf(t[s]);for(var a=0;a<t.length;a++)Lf(t[a]);for(var u=0;u<t.length;u++)_f(t[u]);for(var h=0;h<t.length;h++)zf(t[h]);for(var g=0;g<t.length;g++)Sf(t[g])}function xf(e){var t=e.cm,s=t.display;bt(t),e.updateMaxLine&&ds(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Jr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Lf(e){e.updatedDisplay=e.mustUpdate&&Iu(e.cm,e.update)}function _f(e){var t=e.cm,s=t.display;e.updatedDisplay&&to(t),e.barMeasure=ys(t),s.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=lc(t,s.maxLine,s.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+an(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-ji(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function zf(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Fo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var s=e.focus&&e.focus==ot();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=t.doc.height)&&oo(t,e.barMeasure),e.updatedDisplay&&Nu(t,e.barMeasure),e.selectionChanged&&La(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),s&&Eu(e.cm)}function Sf(e){var t=e.cm,s=t.display,a=t.doc;if(e.updatedDisplay&&ao(t,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Pr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Fo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=Cf(t,be(a,e.scrollToPos.from),be(a,e.scrollToPos.to),e.scrollToPos.margin);yf(t,u)}var h=e.maybeHiddenMarkers,g=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ge(h[m],"hide");if(g)for(var y=0;y<g.length;++y)g[y].lines.length&&Ge(g[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ar(e,t){if(e.curOp)return t();Gn(e);try{return t()}finally{ui(e)}}function Kt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Gn(e);try{return t.apply(e,arguments)}finally{ui(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Gn(this);try{return e.apply(this,arguments)}finally{ui(this)}}}function L(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Gn(t);try{return e.apply(this,arguments)}finally{ui(t)}}}function ci(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,dn(xl,e))}function xl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=ma(e,t.highlightFrontier),u=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(a.line>=e.display.viewFrom){var g=h.styles,m=h.text.length>e.options.maxHighlightLength?gn(t.mode,a.state):null,y=Y0(e,h,a,!0);m&&(a.state=m),h.styles=y.styles;var C=h.styleClasses,z=y.classes;z?h.styleClasses=z:C&&(h.styleClasses=null);for(var M=!g||g.length!=h.styles.length||C!=z&&(!C||!z||C.bgClass!=z.bgClass||C.textClass!=z.textClass),N=0;!M&&N<g.length;++N)M=g[N]!=h.styles[N];M&&u.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=e.options.maxHighlightLength&&ls(e,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ci(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),u.length&&Ar(e,function(){for(var h=0;h<u.length;h++)eo(e,u[h],"text")})}}var Jr=function(e,t,s){var a=e.display;this.viewport=t,this.visible=Bo(a,e.doc,t),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=ji(e),this.force=s,this.dims=sn(e),this.events=[]};Jr.prototype.signal=function(e,t){wr(e,t)&&this.events.push(arguments)},Jr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ge.apply(null,this.events[e])};function bt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=an(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=an(e)+"px",t.scrollbarsClipped=!0)}function Mf(e){if(e.hasFocus())return null;var t=ot();if(!t||!ve(e.display.lineDiv,t))return null;var s={activeElt:t};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ve(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function kf(e){if(!(!e||!e.activeElt||e.activeElt==ot())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ve(document.body,e.anchorNode)&&ve(document.body,e.focusNode))){var t=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),t.removeAllRanges(),t.addRange(s),t.extend(e.focusNode,e.focusOffset)}}function Iu(e,t){var s=e.display,a=e.doc;if(t.editorIsHidden)return Si(e),!1;if(!t.force&&t.visible.from>=s.viewFrom&&t.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&vc(e)==0)return!1;fi(e)&&(Si(e),t.dims=sn(e));var u=a.first+a.size,h=Math.max(t.visible.from-e.options.viewportMargin,a.first),g=Math.min(u,t.visible.to+e.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>g&&s.viewTo-g<20&&(g=Math.min(u,s.viewTo)),ii&&(h=ul(e.doc,h),g=ec(e.doc,g));var m=h!=s.viewFrom||g!=s.viewTo||s.lastWrapHeight!=t.wrapperHeight||s.lastWrapWidth!=t.wrapperWidth;mf(e,h,g),s.viewOffset=Xr(ke(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=vc(e);if(!m&&y==0&&!t.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=Mf(e);return y>4&&(s.lineDiv.style.display="none"),Of(e,s.updateLineNumbers,t.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,kf(C),it(s.cursorDiv),it(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=t.wrapperHeight,s.lastWrapWidth=t.wrapperWidth,ci(e,400)),s.updateLineNumbers=null,!0}function ao(e,t){for(var s=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==ji(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Qr(e.display)-hl(e),s.top)}),t.visible=Bo(e.display,e.doc,s),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=Bo(e.display,e.doc,s));if(!Iu(e,t))break;to(e);var u=ys(e);vs(e),oo(e,u),Nu(e,u),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Du(e,t){var s=new Jr(e,t);if(Iu(e,s)){to(e),ao(e,s);var a=ys(e);vs(e),oo(e,a),Nu(e,a),s.finish()}}function Of(e,t,s){var a=e.display,u=e.options.lineNumbers,h=a.lineDiv,g=h.firstChild;function m(Z){var J=Z.nextSibling;return I&&he&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),J}for(var y=a.view,C=a.viewFrom,z=0;z<y.length;z++){var M=y[z];if(!M.hidden)if(!M.node||M.node.parentNode!=h){var N=Ou(e,M,C,s);h.insertBefore(N,g)}else{for(;g!=M.node;)g=m(g);var R=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(_e(M.changes,"gutter")>-1&&(R=!1),oc(e,M,C,s)),R&&(it(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(ba(e.options,C)))),g=M.node.nextSibling}C+=M.size}for(;g;)g=m(g)}function Ru(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",hr(e,"gutterChanged",e)}function Nu(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+an(e)+"px"}function Cc(e){var t=e.display,s=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var a=xa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=a+"px",g=0;g<s.length;g++)if(!s[g].hidden){e.options.fixedGutter&&(s[g].gutter&&(s[g].gutter.style.left=h),s[g].gutterBackground&&(s[g].gutterBackground.style.left=h));var m=s[g].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=a+u+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,s=ba(e.options,t.first+t.size-1),a=e.display;if(s.length!=a.lineNumChars){var u=a.measure.appendChild(E("div",[E("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,g=u.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-g)+1,a.lineNumWidth=a.lineNumInnerWidth+g,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Ru(e.display),!0}return!1}function $u(e,t){for(var s=[],a=!1,u=0;u<e.length;u++){var h=e[u],g=null;if(typeof h!="string"&&(g=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)a=!0;else continue;s.push({className:h,style:g})}return t&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function wc(e){var t=e.gutters,s=e.gutterSpecs;it(t),e.lineGutter=null;for(var a=0;a<s.length;++a){var u=s[a],h=u.className,g=u.style,m=t.appendChild(E("div",null,"CodeMirror-gutter "+h));g&&(m.style.cssText=g),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=s.length?"":"none",Ru(e)}function xs(e){wc(e.display),rt(e),Cc(e)}function Tf(e,t,s,a){var u=this;this.input=s,u.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=T("div",null,"CodeMirror-code"),u.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=E("div",null,"CodeMirror-cursors"),u.measure=E("div",null,"CodeMirror-measure"),u.lineMeasure=E("div",null,"CodeMirror-measure"),u.lineSpace=T("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=T("div",[u.lineSpace],"CodeMirror-lines");u.mover=E("div",[h],null,"position: relative"),u.sizer=E("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=E("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),u.gutters=E("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=E("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=E("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),S&&O<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!I&&!(f&&pe)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=t.first,u.reportedViewFrom=u.reportedViewTo=t.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=$u(a.gutters,a.lineNumbers),wc(u),s.init(u)}var Ll=0,or=null;S?or=-.53:f?or=15:q?or=-.7:ce&&(or=-1/3);function xc(e){var t=e.wheelDeltaX,s=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:t,y:s}}function Pf(e){var t=xc(e);return t.x*=or,t.y*=or,t}function Lc(e,t){var s=xc(t),a=s.x,u=s.y,h=e.display,g=h.scroller,m=g.scrollWidth>g.clientWidth,y=g.scrollHeight>g.clientHeight;if(!!(a&&m||u&&y)){if(u&&he&&I){e:for(var C=t.target,z=h.view;C!=g;C=C.parentNode)for(var M=0;M<z.length;M++)if(z[M].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!f&&!X&&or!=null){u&&y&&jt(e,Math.max(0,g.scrollTop+u*or)),Fo(e,Math.max(0,g.scrollLeft+a*or)),(!u||u&&y)&&xr(t),h.wheelStartX=null;return}if(u&&or!=null){var N=u*or,R=e.doc.scrollTop,Z=R+h.wrapper.clientHeight;N<0?R=Math.max(0,R+N-50):Z=Math.min(e.doc.height,Z+N+50),Du(e,{top:R,bottom:Z})}Ll<20&&(h.wheelStartX==null?(h.wheelStartX=g.scrollLeft,h.wheelStartY=g.scrollTop,h.wheelDX=a,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var J=g.scrollLeft-h.wheelStartX,le=g.scrollTop-h.wheelStartY,fe=le&&h.wheelDY&&le/h.wheelDY||J&&h.wheelDX&&J/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(or=(or*Ll+fe)/(Ll+1),++Ll)}},200)):(h.wheelDX+=a,h.wheelDY+=u))}}var mn=function(e,t){this.ranges=e,this.primIndex=t};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var s=this.ranges[t],a=e.ranges[t];if(!P(s.anchor,a.anchor)||!P(s.head,a.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new _t(j(this.ranges[t].anchor),j(this.ranges[t].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,t){t||(t=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(t,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var _t=function(e,t){this.anchor=e,this.head=t};_t.prototype.from=function(){return qe(this.anchor,this.head)},_t.prototype.to=function(){return ae(this.anchor,this.head)},_t.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ir(e,t,s){var a=e&&e.options.selectionsMayTouch,u=t[s];t.sort(function(N,R){return w(N.from(),R.from())}),s=_e(t,u);for(var h=1;h<t.length;h++){var g=t[h],m=t[h-1],y=w(m.to(),g.from());if(a&&!g.empty()?y>0:y>=0){var C=qe(m.from(),g.from()),z=ae(m.to(),g.to()),M=m.empty()?g.from()==g.head:m.from()==m.head;h<=s&&--s,t.splice(--h,2,new _t(M?z:C,M?C:z))}}return new mn(t,s)}function so(e,t){return new mn([new _t(e,t||e)],0)}function lo(e){return e.text?ie(e.from.line+e.text.length-1,Xe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Sn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return lo(t);var s=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=lo(t).ch-t.to.ch),ie(s,a)}function Hu(e,t){for(var s=[],a=0;a<e.sel.ranges.length;a++){var u=e.sel.ranges[a];s.push(new _t(Sn(u.anchor,t),Sn(u.head,t)))}return Ir(e.cm,s,e.sel.primIndex)}function _c(e,t,s){return e.line==t.line?ie(s.line,e.ch-t.ch+s.ch):ie(s.line+(e.line-t.line),e.ch)}function Af(e,t,s){for(var a=[],u=ie(e.first,0),h=u,g=0;g<t.length;g++){var m=t[g],y=_c(m.from,u,h),C=_c(lo(m),u,h);if(u=m.to,h=C,s=="around"){var z=e.sel.ranges[g],M=w(z.head,z.anchor)<0;a[g]=new _t(M?C:y,M?y:C)}else a[g]=new _t(y,y)}return new mn(a,e.sel.primIndex)}function Bu(e){e.doc.mode=va(e.options,e.doc.modeOption),Ls(e)}function Ls(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ci(e,100),e.state.modeGen++,e.curOp&&rt(e)}function Fu(e,t){return t.from.ch==0&&t.to.ch==0&&Xe(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _l(e,t,s,a){function u(Ce){return s?s[Ce]:null}function h(Ce,de,xe){tc(Ce,de,xe,a),hr(Ce,"change",Ce,t)}function g(Ce,de){for(var xe=[],Re=Ce;Re<de;++Re)xe.push(new Tr(C[Re],u(Re),a));return xe}var m=t.from,y=t.to,C=t.text,z=ke(e,m.line),M=ke(e,y.line),N=Xe(C),R=u(C.length-1),Z=y.line-m.line;if(t.full)e.insert(0,g(0,C.length)),e.remove(C.length,e.size-C.length);else if(Fu(e,t)){var J=g(0,C.length-1);h(M,M.text,R),Z&&e.remove(m.line,Z),J.length&&e.insert(m.line,J)}else if(z==M)if(C.length==1)h(z,z.text.slice(0,m.ch)+N+z.text.slice(y.ch),R);else{var le=g(1,C.length-1);le.push(new Tr(N+z.text.slice(y.ch),R,a)),h(z,z.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,le)}else if(C.length==1)h(z,z.text.slice(0,m.ch)+C[0]+M.text.slice(y.ch),u(0)),e.remove(m.line+1,Z);else{h(z,z.text.slice(0,m.ch)+C[0],u(0)),h(M,N+M.text.slice(y.ch),R);var fe=g(1,C.length-1);Z>1&&e.remove(m.line+1,Z-1),e.insert(m.line+1,fe)}hr(e,"change",e,t)}function uo(e,t,s){function a(u,h,g){if(u.linked)for(var m=0;m<u.linked.length;++m){var y=u.linked[m];if(y.doc!=h){var C=g&&y.sharedHist;s&&!C||(t(y.doc,C),a(y.doc,u,C))}}}a(e,null,!0)}function zc(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ji(e),Bu(e),zl(e),e.options.direction=t.direction,e.options.lineWrapping||ds(e),e.options.mode=t.modeOption,rt(e)}function zl(e){(e.doc.direction=="rtl"?At:ye)(e.display.lineDiv,"CodeMirror-rtl")}function _s(e){Ar(e,function(){zl(e),rt(e)})}function Uo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Wu(e,t){var s={from:j(t.from),to:lo(t),text:vn(e,t.from,t.to)};return Sc(e,s,t.from.line,t.to.line+1),uo(e,function(a){return Sc(a,s,t.from.line,t.to.line+1)},!0),s}function Uu(e){for(;e.length;){var t=Xe(e);if(t.ranges)e.pop();else break}}function Ef(e,t){if(t)return Uu(e.done),Xe(e.done);if(e.done.length&&!Xe(e.done).ranges)return Xe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Xe(e.done)}function di(e,t,s,a){var u=e.history;u.undone.length=0;var h=+new Date,g,m;if((u.lastOp==a||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(g=Ef(u,u.lastOp==a)))m=Xe(g.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=lo(t):g.changes.push(Wu(e,t));else{var y=Xe(u.done);for((!y||!y.ranges)&&en(e.sel,u.done),g={changes:[Wu(e,t)],generation:u.generation},u.done.push(g);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=a,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ge(e,"historyAdded")}function Yu(e,t,s,a){var u=t.charAt(0);return u=="*"||u=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Yo(e,t,s,a){var u=e.history,h=a&&a.origin;s==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||Yu(e,h,Xe(u.done),t))?u.done[u.done.length-1]=t:en(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=s,a&&a.clearRedo!==!1&&Uu(u.undone)}function en(e,t){var s=Xe(t);s&&s.ranges&&s.equals(e)||t.push(e)}function Sc(e,t,s,a){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(g){g.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=g.markedSpans),++h})}function Mc(e){if(!e)return null;for(var t,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?t||(t=e.slice(0,s)):t&&t.push(e[s]);return t?t.length?t:null:e}function kc(e,t){var s=t["spans_"+e.id];if(!s)return null;for(var a=[],u=0;u<t.text.length;++u)a.push(Mc(s[u]));return a}function Oa(e,t){var s=kc(e,t),a=Cu(e,t);if(!s)return a;if(!a)return s;for(var u=0;u<s.length;++u){var h=s[u],g=a[u];if(h&&g){e:for(var m=0;m<g.length;++m){for(var y=g[m],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else g&&(s[u]=g)}return s}function yn(e,t,s){for(var a=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){a.push(s?mn.prototype.deepCopy.call(h):h);continue}var g=h.changes,m=[];a.push({changes:m});for(var y=0;y<g.length;++y){var C=g[y],z=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(z=M.match(/^spans_(\d+)$/))&&_e(t,Number(z[1]))>-1&&(Xe(m)[M]=C[M],delete C[M])}}return a}function Sl(e,t,s,a){if(a){var u=e.anchor;if(s){var h=w(t,u)<0;h!=w(s,u)<0?(u=t,t=s):h!=w(t,s)<0&&(t=s)}return new _t(u,t)}else return new _t(s||t,t)}function Ml(e,t,s,a,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),Lr(e,new mn([Sl(e.sel.primary(),t,s,u)],0),a)}function zs(e,t,s){for(var a=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)a[h]=Sl(e.sel.ranges[h],t[h],null,u);var g=Ir(e.cm,a,e.sel.primIndex);Lr(e,g,s)}function Zu(e,t,s,a){var u=e.sel.ranges.slice(0);u[t]=s,Lr(e,Ir(e.cm,u,e.sel.primIndex),a)}function Vu(e,t,s,a){Lr(e,so(t,s),a)}function Dr(e,t,s){var a={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new _t(be(e,u[h].anchor),be(e,u[h].head))},origin:s&&s.origin};return Ge(e,"beforeSelectionChange",e,a),e.cm&&Ge(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=t.ranges?Ir(e.cm,a.ranges,a.ranges.length-1):t}function kl(e,t,s){var a=e.history.done,u=Xe(a);u&&u.ranges?(a[a.length-1]=t,Cn(e,t,s)):Lr(e,t,s)}function Lr(e,t,s){Cn(e,t,s),Yo(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function Cn(e,t,s){(wr(e,"beforeSelectionChange")||e.cm&&wr(e.cm,"beforeSelectionChange"))&&(t=Dr(e,t,s));var a=s&&s.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Ol(e,co(e,t,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&no(e.cm)}function Ol(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,pa(e.cm)),hr(e,"cursorActivity",e))}function Ss(e){Ol(e,co(e,e.sel,null,!1))}function co(e,t,s,a){for(var u,h=0;h<t.ranges.length;h++){var g=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=_r(e,g.anchor,m&&m.anchor,s,a),C=_r(e,g.head,m&&m.head,s,a);(u||y!=g.anchor||C!=g.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new _t(y,C))}return u?Ir(e.cm,u,t.primIndex):t}function Zo(e,t,s,a,u){var h=ke(e,t.line);if(h.markedSpans)for(var g=0;g<h.markedSpans.length;++g){var m=h.markedSpans[g],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,z="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(z?m.to>=t.ch:m.to>t.ch))){if(u&&(Ge(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--g;continue}else break;if(!y.atomic)continue;if(s){var M=y.find(a<0?1:-1),N=void 0;if((a<0?z:C)&&(M=Tl(e,M,-a,M&&M.line==t.line?h:null)),M&&M.line==t.line&&(N=w(M,s))&&(a<0?N<0:N>0))return Zo(e,M,t,a,u)}var R=y.find(a<0?-1:1);return(a<0?C:z)&&(R=Tl(e,R,a,R.line==t.line?h:null)),R?Zo(e,R,t,a,u):null}}return t}function _r(e,t,s,a,u){var h=a||1,g=Zo(e,t,s,h,u)||!u&&Zo(e,t,s,h,!0)||Zo(e,t,s,-h,u)||!u&&Zo(e,t,s,-h,!0);return g||(e.cantEdit=!0,ie(e.first,0))}function Tl(e,t,s,a){return s<0&&t.ch==0?t.line>e.first?be(e,ie(t.line-1)):null:s>0&&t.ch==(a||ke(e,t.line)).text.length?t.line<e.first+e.size-1?ie(t.line+1,0):null:new ie(t.line,t.ch+s)}function Oc(e){e.setSelection(ie(e.firstLine(),0),ie(e.lastLine()),at)}function Tc(e,t,s){var a={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(u,h,g,m){u&&(a.from=be(e,u)),h&&(a.to=be(e,h)),g&&(a.text=g),m!==void 0&&(a.origin=m)}),Ge(e,"beforeChange",e,a),e.cm&&Ge(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Ta(e,t,s){if(e.cm){if(!e.cm.curOp)return Kt(e.cm,Ta)(e,t,s);if(e.cm.state.suppressEdits)return}if(!((wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"))&&(t=Tc(e,t,!0),!t))){var a=yu&&!s&&wu(e,t.from,t.to);if(a)for(var u=a.length-1;u>=0;--u)Pl(e,{from:a[u].from,to:a[u].to,text:u?[""]:t.text,origin:t.origin});else Pl(e,t)}}function Pl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var s=Hu(e,t);di(e,t,s,e.cm?e.cm.curOp.id:NaN),Aa(e,t,s,Cu(e,t));var a=[];uo(e,function(u,h){!h&&_e(a,u.history)==-1&&(Ac(u.history,t),a.push(u.history)),Aa(u,t,null,Cu(u,t))})}}function Al(e,t,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var u=e.history,h,g=e.sel,m=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(s?h.ranges&&!h.equals(e.sel):!h.ranges));C++);if(C!=m.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(h=m.pop(),h.ranges){if(en(h,y),s&&!h.equals(e.sel)){Lr(e,h,{clearRedo:!1});return}g=h}else if(a){m.push(h);return}else break;var z=[];en(g,y),y.push({changes:z,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"),N=function(J){var le=h.changes[J];if(le.origin=t,M&&!Tc(e,le,!1))return m.length=0,{};z.push(Wu(e,le));var fe=J?Hu(e,le):Xe(m);Aa(e,le,fe,Oa(e,le)),!J&&e.cm&&e.cm.scrollIntoView({from:le.from,to:lo(le)});var Ce=[];uo(e,function(de,xe){!xe&&_e(Ce,de.history)==-1&&(Ac(de.history,le),Ce.push(de.history)),Aa(de,le,null,Oa(de,le))})},R=h.changes.length-1;R>=0;--R){var Z=N(R);if(Z)return Z.v}}}}function Pa(e,t){if(t!=0&&(e.first+=t,e.sel=new mn(yt(e.sel.ranges,function(u){return new _t(ie(u.anchor.line+t,u.anchor.ch),ie(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){rt(e.cm,e.first,e.first-t,t);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)eo(e.cm,a,"gutter")}}function Aa(e,t,s,a){if(e.cm&&!e.cm.curOp)return Kt(e.cm,Aa)(e,t,s,a);if(t.to.line<e.first){Pa(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var u=t.text.length-1-(e.first-t.from.line);Pa(e,u),t={from:ie(e.first,0),to:ie(t.to.line+u,t.to.ch),text:[Xe(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:ie(h,ke(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vn(e,t.from,t.to),s||(s=Hu(e,t)),e.cm?If(e.cm,t,a):_l(e,t,a),Cn(e,s,at),e.cantEdit&&_r(e,ie(e.firstLine(),0))&&(e.cantEdit=!1)}}function If(e,t,s){var a=e.doc,u=e.display,h=t.from,g=t.to,m=!1,y=h.line;e.options.lineWrapping||(y=Lt(oi(ke(a,h.line))),a.iter(y,g.line+1,function(R){if(R==u.maxLine)return m=!0,!0})),a.sel.contains(t.from,t.to)>-1&&pa(e),_l(a,t,s,gc(e)),e.options.lineWrapping||(a.iter(y,h.line+t.text.length,function(R){var Z=fs(R);Z>u.maxLineLength&&(u.maxLine=R,u.maxLineLength=Z,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),nf(a,h.line),ci(e,400);var C=t.text.length-(g.line-h.line)-1;t.full?rt(e):h.line==g.line&&t.text.length==1&&!Fu(e.doc,t)?eo(e,h.line,"text"):rt(e,h.line,g.line+1,C);var z=wr(e,"changes"),M=wr(e,"change");if(M||z){var N={from:h,to:g,text:t.text,removed:t.removed,origin:t.origin};M&&hr(e,"change",e,N),z&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Ea(e,t,s,a,u){var h;a||(a=s),w(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof t=="string"&&(t=e.splitLines(t)),Ta(e,{from:s,to:a,text:t,origin:u})}function Ia(e,t,s,a){s<e.line?e.line+=a:t<e.line&&(e.line=t,e.ch=0)}function Pc(e,t,s,a){for(var u=0;u<e.length;++u){var h=e[u],g=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)Ia(h.ranges[m].anchor,t,s,a),Ia(h.ranges[m].head,t,s,a);continue}for(var y=0;y<h.changes.length;++y){var C=h.changes[y];if(s<C.from.line)C.from=ie(C.from.line+a,C.from.ch),C.to=ie(C.to.line+a,C.to.ch);else if(t<=C.to.line){g=!1;break}}g||(e.splice(0,u+1),u=0)}}function Ac(e,t){var s=t.from.line,a=t.to.line,u=t.text.length-(a-s)-1;Pc(e.done,s,a,u),Pc(e.undone,s,a,u)}function Vo(e,t,s,a){var u=t,h=t;return typeof t=="number"?h=ke(e,vt(e,t)):u=Lt(t),u==null?null:(a(h,u)&&e.cm&&eo(e.cm,u,s),h)}function Da(e){this.lines=e,this.parent=null;for(var t=0,s=0;s<e.length;++s)e[s].parent=this,t+=e[s].height;this.height=t}Da.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var s=e,a=e+t;s<a;++s){var u=this.lines[s];this.height-=u.height,rc(u),hr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var a=0;a<t.length;++a)t[a].parent=this},iterN:function(e,t,s){for(var a=e+t;e<a;++e)if(s(this.lines[e]))return!0}};function Ms(e){this.children=e;for(var t=0,s=0,a=0;a<e.length;++a){var u=e[a];t+=u.chunkSize(),s+=u.height,u.parent=this}this.size=t,this.height=s,this.parent=null}Ms.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var s=0;s<this.children.length;++s){var a=this.children[s],u=a.chunkSize();if(e<u){var h=Math.min(t,u-e),g=a.height;if(a.removeInner(e,h),this.height-=g-a.height,u==h&&(this.children.splice(s--,1),a.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Da))){var m=[];this.collapse(m),this.children=[new Da(m)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,s){this.size+=t.length,this.height+=s;for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,s),u.lines&&u.lines.length>50){for(var g=u.lines.length%25+25,m=g;m<u.lines.length;){var y=new Da(u.lines.slice(m,m+=25));u.height-=y.height,this.children.splice(++a,0,y),y.parent=this}u.lines=u.lines.slice(0,g),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),s=new Ms(t);if(e.parent){e.size-=s.size,e.height-=s.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,s)}else{var a=new Ms(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,s){for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<h){var g=Math.min(t,h-e);if(u.iterN(e,g,s))return!0;if((t-=g)==0)break;e=0}else e-=h}}};var ks=function(e,t,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=t};ks.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,s=this.line,a=Lt(s);if(!(a==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(s.widgets=null);var h=Do(this);nn(s,Math.max(0,s.height-h)),e&&(Ar(e,function(){Ec(e,s,-h),eo(e,a,"widget")}),hr(e,"lineWidgetCleared",e,this,a))}},ks.prototype.changed=function(){var e=this,t=this.height,s=this.doc.cm,a=this.line;this.height=null;var u=Do(this)-t;!u||(qt(this.doc,a)||nn(a,a.height+u),s&&Ar(s,function(){s.curOp.forceUpdate=!0,Ec(s,a,u),hr(s,"lineWidgetChanged",s,e,Lt(a))}))},Bn(ks);function Ec(e,t,s){Xr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Sa(e,s)}function Ic(e,t,s,a){var u=new ks(e,s,a),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Vo(e,t,"widget",function(g){var m=g.widgets||(g.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=g,h&&!qt(e,g)){var y=Xr(g)<e.scrollTop;nn(g,g.height+Do(u)),y&&Sa(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&hr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:Lt(t)),u}var El=0,fo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++El};fo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gn(e),wr(this,"clear")){var s=this.find();s&&hr(this,"clear",s.from,s.to)}for(var a=null,u=null,h=0;h<this.lines.length;++h){var g=this.lines[h],m=us(g.markedSpans,this);e&&!this.collapsed?eo(e,Lt(g),"text"):e&&(m.to!=null&&(u=Lt(g)),m.from!=null&&(a=Lt(g))),g.markedSpans=of(g.markedSpans,m),m.from==null&&this.collapsed&&!qt(this.doc,g)&&e&&nn(g,Qi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=oi(this.lines[y]),z=fs(C);z>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=z,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&rt(e,a,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ss(e.doc)),e&&hr(e,"markerCleared",e,this,a,u),t&&ui(e),this.parent&&this.parent.clear()}},fo.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,u=0;u<this.lines.length;++u){var h=this.lines[u],g=us(h.markedSpans,this);if(g.from!=null&&(s=ie(t?h:Lt(h),g.from),e==-1))return s;if(g.to!=null&&(a=ie(t?h:Lt(h),g.to),e==1))return a}return s&&{from:s,to:a}},fo.prototype.changed=function(){var e=this,t=this.find(-1,!0),s=this,a=this.doc.cm;!t||!a||Ar(a,function(){var u=t.line,h=Lt(t.line),g=Au(a,h);if(g&&(fc(g),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!qt(s.doc,u)&&s.height!=null){var m=s.height;s.height=null;var y=Do(s)-m;y&&nn(u,u.height+y)}hr(a,"markerChanged",a,e)})},fo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||_e(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},fo.prototype.detachLine=function(e){if(this.lines.splice(_e(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Bn(fo);function ho(e,t,s,a,u){if(a&&a.shared)return Dc(e,t,s,a,u);if(e.cm&&!e.cm.curOp)return Kt(e.cm,ho)(e,t,s,a,u);var h=new fo(e,u),g=w(t,s);if(a&&er(a,h,!1),g>0||g==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=T("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(J0(e,t.line,t,s,h)||t.line!=s.line&&J0(e,s.line,t,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");q0()}h.addToHistory&&di(e,{from:t,to:s,origin:"markText"},e.sel,NaN);var m=t.line,y=e.cm,C;if(e.iter(m,s.line+1,function(M){y&&h.collapsed&&!y.options.lineWrapping&&oi(M)==y.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&nn(M,0),j0(M,new ol(h,m==t.line?t.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,s.line+1,function(M){qt(e,M)&&nn(M,0)}),h.clearOnEnter&&$e(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(G0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++El,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)rt(y,t.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=t.line;z<=s.line;z++)eo(y,z,"text");h.atomic&&Ss(y.doc),hr(y,"markerAdded",y,h)}return h}var Ra=function(e,t){this.markers=e,this.primary=t;for(var s=0;s<e.length;++s)e[s].parent=this};Ra.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();hr(this,"clear")}},Ra.prototype.find=function(e,t){return this.primary.find(e,t)},Bn(Ra);function Dc(e,t,s,a,u){a=er(a),a.shared=!1;var h=[ho(e,t,s,a,u)],g=h[0],m=a.widgetNode;return uo(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),h.push(ho(y,be(y,t),be(y,s),a,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;g=Xe(h)}),new Ra(h,g)}function Gu(e){return e.findMarks(ie(e.first,0),e.clipPos(ie(e.lastLine())),function(t){return t.parent})}function Il(e,t){for(var s=0;s<t.length;s++){var a=t[s],u=a.find(),h=e.clipPos(u.from),g=e.clipPos(u.to);if(w(h,g)){var m=ho(e,h,g,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function Df(e){for(var t=function(a){var u=e[a],h=[u.primary.doc];uo(u.primary.doc,function(y){return h.push(y)});for(var g=0;g<u.markers.length;g++){var m=u.markers[g];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(g--,1))}},s=0;s<e.length;s++)t(s)}var Rc=0,Br=function(e,t,s,a,u){if(!(this instanceof Br))return new Br(e,t,s,a,u);s==null&&(s=0),Ms.call(this,[new Da([new Tr("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=ie(s,0);this.sel=so(h),this.history=new Uo(null),this.id=++Rc,this.modeOption=t,this.lineSep=a,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_l(this,{from:h,to:h,text:e}),Lr(this,so(h),at)};Br.prototype=rn(Ms.prototype,{constructor:Br,iter:function(e,t,s){s?this.iterN(e-this.first,t-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var s=0,a=0;a<t.length;++a)s+=t[a].height;this.insertInner(e-this.first,t,s)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ss(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:L(function(e){var t=ie(this.first,0),s=this.first+this.size-1;Ta(this,{from:t,to:ie(s,ke(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ms(this.cm,0,0),Lr(this,so(t),at)}),replaceRange:function(e,t,s,a){t=be(this,t),s=s?be(this,s):t,Ea(this,e,t,s,a)},getRange:function(e,t,s){var a=vn(this,be(this,e),be(this,t));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Vi(this,e))return ke(this,e)},getLineNumber:function(e){return Lt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),oi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return be(this,e)},getCursor:function(e){var t=this.sel.primary(),s;return e==null||e=="head"?s=t.head:e=="anchor"?s=t.anchor:e=="end"||e=="to"||e===!1?s=t.to():s=t.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:L(function(e,t,s){Vu(this,be(this,typeof e=="number"?ie(e,t||0):e),null,s)}),setSelection:L(function(e,t,s){Vu(this,be(this,e),be(this,t||e),s)}),extendSelection:L(function(e,t,s){Ml(this,be(this,e),t&&be(this,t),s)}),extendSelections:L(function(e,t){zs(this,on(this,e),t)}),extendSelectionsBy:L(function(e,t){var s=yt(this.sel.ranges,e);zs(this,on(this,s),t)}),setSelections:L(function(e,t,s){if(!!e.length){for(var a=[],u=0;u<e.length;u++)a[u]=new _t(be(this,e[u].anchor),be(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Lr(this,Ir(this.cm,a,t),s)}}),addSelection:L(function(e,t,s){var a=this.sel.ranges.slice(0);a.push(new _t(be(this,e),be(this,t||e))),Lr(this,Ir(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var t=this.sel.ranges,s,a=0;a<t.length;a++){var u=vn(this,t[a].from(),t[a].to());s=s?s.concat(u):u}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],s=this.sel.ranges,a=0;a<s.length;a++){var u=vn(this,s[a].from(),s[a].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[a]=u}return t},replaceSelection:function(e,t,s){for(var a=[],u=0;u<this.sel.ranges.length;u++)a[u]=e;this.replaceSelections(a,t,s||"+input")},replaceSelections:L(function(e,t,s){for(var a=[],u=this.sel,h=0;h<u.ranges.length;h++){var g=u.ranges[h];a[h]={from:g.from(),to:g.to(),text:this.splitLines(e[h]),origin:s}}for(var m=t&&t!="end"&&Af(this,a,t),y=a.length-1;y>=0;y--)Ta(this,a[y]);m?kl(this,m):this.cm&&no(this.cm)}),undo:L(function(){Al(this,"undo")}),redo:L(function(){Al(this,"redo")}),undoSelection:L(function(){Al(this,"undo",!0)}),redoSelection:L(function(){Al(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++s;return{undo:t,redo:s}},clearHistory:function(){var e=this;this.history=new Uo(this.history),uo(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:yn(this.history.done),undone:yn(this.history.undone)}},setHistory:function(e){var t=this.history=new Uo(this.history);t.done=yn(e.done.slice(0),null,!0),t.undone=yn(e.undone.slice(0),null,!0)},setGutterMarker:L(function(e,t,s){return Vo(this,e,"gutter",function(a){var u=a.gutterMarkers||(a.gutterMarkers={});return u[t]=s,!s&&oe(u)&&(a.gutterMarkers=null),!0})}),clearGutter:L(function(e){var t=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Vo(t,s,"gutter",function(){return s.gutterMarkers[e]=null,oe(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Vi(this,e)||(t=e,e=ke(this,e),!e))return null}else if(t=Lt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:L(function(e,t,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!a[u])a[u]=s;else{if(ge(s).test(a[u]))return!1;a[u]+=" "+s}return!0})}),removeLineClass:L(function(e,t,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=a[u];if(h)if(s==null)a[u]=null;else{var g=h.match(ge(s));if(!g)return!1;var m=g.index+g[0].length;a[u]=h.slice(0,g.index)+(!g.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:L(function(e,t,s){return Ic(this,e,t,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,s){return ho(this,be(this,e),be(this,t),s,s&&s.type||"range")},setBookmark:function(e,t){var s={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=be(this,e),ho(this,e,e,s,"bookmark")},findMarksAt:function(e){e=be(this,e);var t=[],s=ke(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var u=s[a];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&t.push(u.marker.parent||u.marker)}return t},findMarks:function(e,t,s){e=be(this,e),t=be(this,t);var a=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var g=h.markedSpans;if(g)for(var m=0;m<g.length;m++){var y=g[m];!(y.to!=null&&u==e.line&&e.ch>=y.to||y.from==null&&u!=e.line||y.from!=null&&u==t.line&&y.from>=t.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++u}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var s=t.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var t,s=this.first,a=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+a;if(h>e)return t=e,!0;e-=h,++s}),be(this,ie(s,t))},indexFromPos:function(e){e=be(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){t+=a.text.length+s}),t},copy:function(e){var t=new Br(ss(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,s=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Br(ss(this,t,s),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Il(a,Gu(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var s=this.linked[t];if(s.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Df(Gu(this));break}}if(e.history==this.history){var a=[e.id];uo(e,function(u){return a.push(u.id)},!0),e.history=new Uo(null),e.history.done=yn(this.history.done,a),e.history.undone=yn(this.history.undone,a)}},iterLinkedDocs:function(e){uo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):To(e)},lineSeparator:function(){return this.lineSep||`
2128
- `},setDirection:L(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&_s(this.cm))})}),Br.prototype.eachLine=Br.prototype.iter;var Nc=0;function $c(e){var t=this;if(ju(t),!(ir(t,e)||zi(t.display,e))){xr(e),S&&(Nc=+new Date);var s=si(t,e,!0),a=e.dataTransfer.files;if(!(!s||t.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var u=a.length,h=Array(u),g=0,m=function(){++g==u&&Kt(t,function(){s=be(t.doc,s);var R={from:s,to:s,text:t.doc.splitLines(h.filter(function(Z){return Z!=null}).join(t.doc.lineSeparator())),origin:"paste"};Ta(t.doc,R),kl(t.doc,so(be(t.doc,s),be(t.doc,lo(R))))})()},y=function(R,Z){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,R.type)==-1){m();return}var J=new FileReader;J.onerror=function(){return m()},J.onload=function(){var le=J.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(le)){m();return}h[Z]=le,m()},J.readAsText(R)},C=0;C<a.length;C++)y(a[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(s)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var z=e.dataTransfer.getData("Text");if(z){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),Cn(t.doc,so(s,s)),M)for(var N=0;N<M.length;++N)Ea(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(z,"around","paste"),t.display.input.focus()}}catch{}}}}function Rf(e,t){if(S&&(!e.state.draggingText||+new Date-Nc<100)){ko(t);return}if(!(ir(e,t)||zi(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ce)){var s=E("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",X&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),t.dataTransfer.setDragImage(s,0,0),X&&s.parentNode.removeChild(s)}}function qu(e,t){var s=si(e,t);if(!!s){var a=document.createDocumentFragment();Mi(e,s,a),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),W(e.display.dragCursor,a)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Dl(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<t.length;a++){var u=t[a].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)e(s[h])})}}var Hc=!1;function Ku(){Hc||(ft(),Hc=!0)}function ft(){var e;$e(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Dl(Nf)},100))}),$e(window,"blur",function(){return Dl(Ho)})}function Nf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var po={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"},ki=0;ki<10;ki++)po[ki+48]=po[ki+96]=String(ki);for(var Os=65;Os<=90;Os++)po[Os]=String.fromCharCode(Os);for(var Ts=1;Ts<=12;Ts++)po[Ts+111]=po[Ts+63235]="F"+Ts;var Oi={};Oi.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"},Oi.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"},Oi.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"},Oi.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"]},Oi.default=he?Oi.macDefault:Oi.pcDefault;function Mn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var s,a,u,h,g=0;g<t.length-1;g++){var m=t[g];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function $f(e){var t={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var u=yt(s.split(" "),Mn),h=0;h<u.length;h++){var g=void 0,m=void 0;h==u.length-1?(m=u.join(" "),g=a):(m=u.slice(0,h+1).join(" "),g="...");var y=t[m];if(!y)t[m]=g;else if(y!=g)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in t)e[C]=t[C];return e}function Ti(e,t,s,a){t=Fr(t);var u=t.call?t.call(e,a):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&s(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Ti(e,t.fallthrough,s,a);for(var h=0;h<t.fallthrough.length;h++){var g=Ti(e,t.fallthrough[h],s,a);if(g)return g}}}function Rl(e){var t=typeof e=="string"?e:po[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Xu(e,t,s){var a=e;return t.altKey&&a!="Alt"&&(e="Alt-"+e),(et?t.metaKey:t.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(et?t.ctrlKey:t.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&t.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function Qu(e,t){if(X&&e.keyCode==34&&e.char)return!1;var s=po[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),Xu(s,e,t))}function Fr(e){return typeof e=="string"?Oi[e]:e}function wn(e,t){for(var s=e.doc.sel.ranges,a=[],u=0;u<s.length;u++){for(var h=t(s[u]);a.length&&w(h.from,Xe(a).to)<=0;){var g=a.pop();if(w(g.from,h.from)<0){h.from=g.from;break}}a.push(h)}Ar(e,function(){for(var m=a.length-1;m>=0;m--)Ea(e.doc,"",a[m].from,a[m].to,"+delete");no(e)})}function Ps(e,t,s){var a=dr(e.text,t+s,s);return a<0||a>e.text.length?null:a}function Nl(e,t,s){var a=Ps(e,t.ch,s);return a==null?null:new ie(t.line,a,s<0?"after":"before")}function Na(e,t,s,a,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Hr(s,t.doc.direction);if(h){var g=u<0?Xe(h):h[0],m=u<0==(g.level==1),y=m?"after":"before",C;if(g.level>0||t.doc.direction=="rtl"){var z=Zn(t,s);C=u<0?s.text.length-1:0;var M=ai(t,z,C).top;C=Mr(function(N){return ai(t,z,N).top==M},u<0==(g.level==1)?g.from:g.to-1,C),y=="before"&&(C=Ps(s,C,1))}else C=u<0?g.to:g.from;return new ie(a,C,y)}}return new ie(a,u<0?s.text.length:0,u<0?"before":"after")}function Bc(e,t,s,a){var u=Hr(t,e.doc.direction);if(!u)return Nl(t,s,a);s.ch>=t.text.length?(s.ch=t.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=Zt(u,s.ch,s.sticky),g=u[h];if(e.doc.direction=="ltr"&&g.level%2==0&&(a>0?g.to>s.ch:g.from<s.ch))return Nl(t,s,a);var m=function(fe,Ce){return Ps(t,fe instanceof ie?fe.ch:fe,Ce)},y,C=function(fe){return e.options.lineWrapping?(y=y||Zn(e,t),Y(e,t,y,fe)):{begin:0,end:t.text.length}},z=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||g.level==1){var M=g.level==1==a<0,N=m(s,M?1:-1);if(N!=null&&(M?N<=g.to&&N<=z.end:N>=g.from&&N>=z.begin)){var R=M?"before":"after";return new ie(s.line,N,R)}}var Z=function(fe,Ce,de){for(var xe=function(Ot,ur){return ur?new ie(s.line,m(Ot,1),"before"):new ie(s.line,Ot,"after")};fe>=0&&fe<u.length;fe+=Ce){var Re=u[fe],Pe=Ce>0==(Re.level!=1),lt=Pe?de.begin:m(de.end,-1);if(Re.from<=lt&&lt<Re.to||(lt=Pe?Re.from:m(Re.to,-1),de.begin<=lt&&lt<de.end))return xe(lt,Pe)}},J=Z(h+a,a,z);if(J)return J;var le=a>0?z.end:m(z.begin,-1);return le!=null&&!(a>0&&le==t.text.length)&&(J=Z(a>0?0:u.length-1,a,C(le)),J)?J:null}var Go={selectAll:Oc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),at)},killLine:function(e){return wn(e,function(t){if(t.empty()){var s=ke(e.doc,t.head.line).text.length;return t.head.ch==s&&t.head.line<e.lastLine()?{from:t.head,to:ie(t.head.line+1,0)}:{from:t.head,to:ie(t.head.line,s)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:be(e.doc,ie(t.to().line+1,0))}})},delLineLeft:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:t.from()}})},delWrappedLineRight:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:t.from(),to:a}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ie(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ie(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Ju(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return $l(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return e0(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},We)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},We)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?$l(e,t.head):a},We)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],s=e.listSelections(),a=e.options.tabSize,u=0;u<s.length;u++){var h=s[u].from(),g=Ft(e.getLine(h.line),h.ch,a);t.push(lr(a-g%a))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=[],a=0;a<t.length;a++)if(!!t[a].empty()){var u=t[a].head,h=ke(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new ie(u.line,u.ch-1)),u.ch>0)u=new ie(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),ie(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var g=ke(e.doc,u.line-1).text;g&&(u=new ie(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+g.charAt(g.length-1),ie(u.line-1,g.length-1),u,"+transpose"))}}s.push(new _t(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=t.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),t[s].anchor,t[s].head,"+input");t=e.listSelections();for(var a=0;a<t.length;a++)e.indentLine(t[a].from().line,null,!0);no(e)})},openLine:function(e){return e.replaceSelection(`
2129
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ju(e,t){var s=ke(e.doc,t),a=oi(s);return a!=s&&(t=Lt(a)),Na(!0,e,a,t,1)}function e0(e,t){var s=ke(e.doc,t),a=uf(s);return a!=s&&(t=Lt(a)),Na(!0,e,s,t,-1)}function $l(e,t){var s=Ju(e,t.line),a=ke(e.doc,s.line),u=Hr(a,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),g=t.line==s.line&&t.ch<=h&&t.ch;return ie(s.line,g?0:h,s.sticky)}return s}function qn(e,t,s){if(typeof t=="string"&&(t=Go[t],!t))return!1;e.display.input.ensurePolled();var a=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=t(e)!=Ze}finally{e.display.shift=a,e.state.suppressEdits=!1}return u}function Hf(e,t,s){for(var a=0;a<e.state.keyMaps.length;a++){var u=Ti(t,e.state.keyMaps[a],s,e);if(u)return u}return e.options.extraKeys&&Ti(t,e.options.extraKeys,s,e)||Ti(t,e.options.keyMap,s,e)}var go=new ut;function $a(e,t,s,a){var u=e.state.keySeq;if(u){if(Rl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:go.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),t0(e,u+" "+t,s,a))return!0}return t0(e,t,s,a)}function t0(e,t,s,a){var u=Hf(e,t,a);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&hr(e,"keyHandled",e,t,s),(u=="handled"||u=="multi")&&(xr(s),La(e)),!!u}function Hl(e,t){var s=Qu(t,!0);return s?t.shiftKey&&!e.state.keySeq?$a(e,"Shift-"+s,t,function(a){return qn(e,a,!0)})||$a(e,s,t,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return qn(e,a)}):$a(e,s,t,function(a){return qn(e,a)}):!1}function Bf(e,t,s){return $a(e,"'"+s+"'",t,function(a){return qn(e,a,!0)})}var r0=null;function Fc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ot(),!ir(t,e))){S&&O<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;t.display.shift=s==16||e.shiftKey;var a=Hl(t,e);X&&(r0=a?s:null,!a&&s==88&&!el&&(he?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!he&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Wc(t)}}function Wc(e){var t=e.display.lineDiv;At(t,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(ye(t,"CodeMirror-crosshair"),kr(document,"keyup",s),kr(document,"mouseover",s))}$e(document,"keyup",s),$e(document,"mouseover",s)}function n0(e){e.keyCode==16&&(this.doc.sel.shift=!1),ir(this,e)}function Uc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(zi(t.display,e)||ir(t,e)||e.ctrlKey&&!e.altKey||he&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(X&&s==r0){r0=null,xr(e);return}if(!(X&&(!e.which||e.which<10)&&Hl(t,e))){var u=String.fromCharCode(a==null?s:a);u!="\b"&&(Bf(t,e,u)||t.display.input.onKeyPress(e))}}}var Yc=400,Bl=function(e,t,s){this.time=e,this.pos=t,this.button=s};Bl.prototype.compare=function(e,t,s){return this.time+Yc>e&&w(t,this.pos)==0&&s==this.button};var zr,ln;function Ff(e,t){var s=+new Date;return ln&&ln.compare(s,e,t)?(zr=ln=null,"triple"):zr&&zr.compare(s,e,t)?(ln=new Bl(s,e,t),zr=null,"double"):(zr=new Bl(s,e,t),ln=null,"single")}function Zc(e){var t=this,s=t.display;if(!(ir(t,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,zi(s,e)){I||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!i0(t,e)){var a=si(t,e),u=rs(e),h=a?Ff(a,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(a&&Fl(t,u,a,h,e))&&(u==1?a?Vc(t,a,h,e):Yi(e)==s.scroller&&xr(e):u==2?(a&&Ml(t.doc,a),setTimeout(function(){return s.input.focus()},20)):u==3&&(nt?t.display.input.onContextMenu(e):yl(t)))}}}function Fl(e,t,s,a,u){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,$a(e,Xu(h,u),u,function(g){if(typeof g=="string"&&(g=Go[g]),!g)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=g(e,s)!=Ze}finally{e.state.suppressEdits=!1}return m})}function Ha(e,t,s){var a=e.getOption("configureMouse"),u=a?a(e,t,s):{};if(u.unit==null){var h=Te?s.shiftKey&&s.metaKey:s.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=he?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(he?s.altKey:s.ctrlKey)),u}function Vc(e,t,s,a){S?setTimeout(dn(Eu,e),0):e.curOp.focus=ot();var u=Ha(e,s,a),h=e.doc.sel,g;e.options.dragDrop&&ns&&!e.isReadOnly()&&s=="single"&&(g=h.contains(t))>-1&&(w((g=h.ranges[g]).from(),t)<0||t.xRel>0)&&(w(g.to(),t)>0||t.xRel<0)?Gc(e,a,t,u):jc(e,a,t,u)}function Gc(e,t,s,a){var u=e.display,h=!1,g=Kt(e,function(C){I&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:yl(e)),kr(u.wrapper.ownerDocument,"mouseup",g),kr(u.wrapper.ownerDocument,"mousemove",m),kr(u.scroller,"dragstart",y),kr(u.scroller,"drop",g),h||(xr(C),a.addNew||Ml(e.doc,s,null,null,a.extend),I&&!ce||S&&O==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),m=function(C){h=h||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return h=!0};I&&(u.scroller.draggable=!0),e.state.draggingText=g,g.copy=!a.moveOnDrag,$e(u.wrapper.ownerDocument,"mouseup",g),$e(u.wrapper.ownerDocument,"mousemove",m),$e(u.scroller,"dragstart",y),$e(u.scroller,"drop",g),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function qc(e,t,s){if(s=="char")return new _t(t,t);if(s=="word")return e.findWordAt(t);if(s=="line")return new _t(ie(t.line,0),be(e.doc,ie(t.line+1,0)));var a=s(e,t);return new _t(a.from,a.to)}function jc(e,t,s,a){S&&yl(e);var u=e.display,h=e.doc;xr(t);var g,m,y=h.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=h.sel.contains(s),m>-1?g=C[m]:g=new _t(s,s)):(g=h.sel.primary(),m=h.sel.primIndex),a.unit=="rectangle")a.addNew||(g=new _t(s,s)),s=si(e,t,!0,!0),m=-1;else{var z=qc(e,s,a.unit);a.extend?g=Sl(g,z.anchor,z.head,a.extend):g=z}a.addNew?m==-1?(m=C.length,Lr(h,Ir(e,C.concat([g]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(Lr(h,Ir(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):Zu(h,m,g,st):(m=0,Lr(h,new mn([g],0),st),y=h.sel);var M=s;function N(de){if(w(M,de)!=0)if(M=de,a.unit=="rectangle"){for(var xe=[],Re=e.options.tabSize,Pe=Ft(ke(h,s.line).text,s.ch,Re),lt=Ft(ke(h,de.line).text,de.ch,Re),Ot=Math.min(Pe,lt),ur=Math.max(Pe,lt),Rt=Math.min(s.line,de.line),Ur=Math.min(e.lastLine(),Math.max(s.line,de.line));Rt<=Ur;Rt++){var Yr=ke(h,Rt).text,rr=Gt(Yr,Ot,Re);Ot==ur?xe.push(new _t(ie(Rt,rr),ie(Rt,rr))):Yr.length>rr&&xe.push(new _t(ie(Rt,rr),ie(Rt,Gt(Yr,ur,Re))))}xe.length||xe.push(new _t(s,s)),Lr(h,Ir(e,y.ranges.slice(0,m).concat(xe),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(de)}else{var Sr=g,gr=qc(e,de,a.unit),It=Sr.anchor,Ht;w(gr.anchor,It)>0?(Ht=gr.head,It=qe(Sr.from(),gr.anchor)):(Ht=gr.anchor,It=ae(Sr.to(),gr.head));var Xt=y.ranges.slice(0);Xt[m]=Ba(e,new _t(be(h,It),Ht)),Lr(h,Ir(e,Xt,m),st)}}var R=u.wrapper.getBoundingClientRect(),Z=0;function J(de){var xe=++Z,Re=si(e,de,!0,a.unit=="rectangle");if(!!Re)if(w(Re,M)!=0){e.curOp.focus=ot(),N(Re);var Pe=Bo(u,h);(Re.line>=Pe.to||Re.line<Pe.from)&&setTimeout(Kt(e,function(){Z==xe&&J(de)}),150)}else{var lt=de.clientY<R.top?-20:de.clientY>R.bottom?20:0;lt&&setTimeout(Kt(e,function(){Z==xe&&(u.scroller.scrollTop+=lt,J(de))}),50)}}function le(de){e.state.selectingText=!1,Z=1/0,de&&(xr(de),u.input.focus()),kr(u.wrapper.ownerDocument,"mousemove",fe),kr(u.wrapper.ownerDocument,"mouseup",Ce),h.history.lastSelOrigin=null}var fe=Kt(e,function(de){de.buttons===0||!rs(de)?le(de):J(de)}),Ce=Kt(e,le);e.state.selectingText=Ce,$e(u.wrapper.ownerDocument,"mousemove",fe),$e(u.wrapper.ownerDocument,"mouseup",Ce)}function Ba(e,t){var s=t.anchor,a=t.head,u=ke(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return t;var h=Hr(u);if(!h)return t;var g=Zt(h,s.ch,s.sticky),m=h[g];if(m.from!=s.ch&&m.to!=s.ch)return t;var y=g+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==h.length)return t;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var z=Zt(h,a.ch,a.sticky),M=z-g||(a.ch-s.ch)*(m.level==1?-1:1);z==y-1||z==y?C=M<0:C=M>0}var N=h[y+(C?-1:0)],R=C==(N.level==1),Z=R?N.from:N.to,J=R?"after":"before";return s.ch==Z&&s.sticky==J?t:new _t(new ie(s.line,Z,J),a)}function Fa(e,t,s,a){var u,h;if(t.touches)u=t.touches[0].clientX,h=t.touches[0].clientY;else try{u=t.clientX,h=t.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&xr(t);var g=e.display,m=g.lineDiv.getBoundingClientRect();if(h>m.bottom||!wr(e,s))return hn(t);h-=m.top-g.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=g.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=u){var z=Un(e.doc,h),M=e.display.gutterSpecs[y];return Ge(e,s,e,z,M.className,t),hn(t)}}}function i0(e,t){return Fa(e,t,"gutterClick",!0)}function o0(e,t){zi(e.display,t)||Kc(e,t)||ir(e,t,"contextmenu")||nt||e.display.input.onContextMenu(t)}function Kc(e,t){return wr(e,"gutterContextMenu")?Fa(e,t,"gutterContextMenu",!1):!1}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gs(e)}var qo={toString:function(){return"CodeMirror.Init"}},Es={},Wa={};function Wl(e){var t=e.optionHandlers;function s(a,u,h,g){e.defaults[a]=u,h&&(t[a]=g?function(m,y,C){C!=qo&&h(m,y,C)}:h)}e.defineOption=s,e.Init=qo,s("value","",function(a,u){return a.setValue(u)},!0),s("mode",null,function(a,u){a.doc.modeOption=u,Bu(a)},!0),s("indentUnit",2,Bu,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Ls(a),gs(a),rt(a)},!0),s("lineSeparator",null,function(a,u){if(a.doc.lineSep=u,!!u){var h=[],g=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var z=y.text.indexOf(u,C);if(z==-1)break;C=z+u.length,h.push(ie(g,z))}g++});for(var m=h.length-1;m>=0;m--)Ea(a.doc,u,h[m],ie(h[m].line,h[m].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,u,h){a.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=qo&&a.refresh()}),s("specialCharPlaceholder",bn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,u){return a.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(a,u){return a.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(a,u){return a.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!He),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){As(a),xs(a)},!0),s("keyMap","default",function(a,u,h){var g=Fr(u),m=h!=qo&&Fr(h);m&&m.detach&&m.detach(a,g),g.attach&&g.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,Xc,!0),s("gutters",[],function(a,u){a.display.gutterSpecs=$u(u,a.options.lineNumbers),xs(a)},!0),s("fixedGutter",!0,function(a,u){a.display.gutters.style.left=u?xa(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return oo(a)},!0),s("scrollbarStyle","native",function(a){Wo(a),oo(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,u){a.display.gutterSpecs=$u(a.options.gutters,u),xs(a)},!0),s("firstLineNumber",1,xs,!0),s("lineNumberFormatter",function(a){return a},xs,!0),s("showCursorWhenSelecting",!1,vs,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,u){u=="nocursor"&&(Ho(a),a.display.input.blur()),a.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(a,u){u=u===""?null:u,a.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(a,u){u||a.display.input.reset()},!0),s("dragDrop",!0,Wf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,vs,!0),s("singleCursorHeightPerLine",!0,vs,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Ls,!0),s("addModeClass",!1,Ls,!0),s("pollInterval",100),s("undoDepth",200,function(a,u){return a.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Ls,!0),s("moveInputWithCursor",!0,function(a,u){u||a.display.input.resetPosition()}),s("tabindex",null,function(a,u){return a.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(a,u){return a.doc.setDirection(u)},!0),s("phrases",null)}function Wf(e,t,s){var a=s&&s!=qo;if(!t!=!a){var u=e.display.dragFunctions,h=t?$e:kr;h(e.display.scroller,"dragstart",u.start),h(e.display.scroller,"dragenter",u.enter),h(e.display.scroller,"dragover",u.over),h(e.display.scroller,"dragleave",u.leave),h(e.display.scroller,"drop",u.drop)}}function Xc(e){e.options.lineWrapping?(At(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),ds(e)),Ji(e),rt(e),gs(e),setTimeout(function(){return oo(e)},100)}function Dt(e,t){var s=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?er(t):{},er(Es,t,!1);var a=t.value;typeof a=="string"?a=new Br(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var u=new Dt.inputStyles[t.inputStyle](this),h=this.display=new Tf(e,a,u,t);h.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(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 ut,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),S&&O<11&&setTimeout(function(){return s.display.input.reset(!0)},20),Qc(this),Ku(),Gn(this),this.curOp.forceUpdate=!0,zc(this,a),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&_a(s)},20):Ho(this);for(var g in Wa)Wa.hasOwnProperty(g)&&Wa[g](this,t[g],qo);fi(this),t.finishInit&&t.finishInit(this);for(var m=0;m<Is.length;++m)Is[m](this);ui(this),I&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Dt.defaults=Es,Dt.optionHandlers=Wa;function Qc(e){var t=e.display;$e(t.scroller,"mousedown",Kt(e,Zc)),S&&O<11?$e(t.scroller,"dblclick",Kt(e,function(y){if(!ir(e,y)){var C=si(e,y);if(!(!C||i0(e,y)||zi(e.display,y))){xr(y);var z=e.findWordAt(C);Ml(e.doc,z.anchor,z.head)}}})):$e(t.scroller,"dblclick",function(y){return ir(e,y)||xr(y)}),$e(t.scroller,"contextmenu",function(y){return o0(e,y)}),$e(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||o0(e,y)});var s,a={end:0};function u(){t.activeTouch&&(s=setTimeout(function(){return t.activeTouch=null},1e3),a=t.activeTouch,a.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function g(y,C){if(C.left==null)return!0;var z=C.left-y.left,M=C.top-y.top;return z*z+M*M>20*20}$e(t.scroller,"touchstart",function(y){if(!ir(e,y)&&!h(y)&&!i0(e,y)){t.input.ensurePolled(),clearTimeout(s);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),$e(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),$e(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!zi(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var z=e.coordsChar(t.activeTouch,"page"),M;!C.prev||g(C,C.prev)?M=new _t(z,z):!C.prev.prev||g(C,C.prev.prev)?M=e.findWordAt(z):M=new _t(ie(z.line,0),be(e.doc,ie(z.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),xr(y)}u()}),$e(t.scroller,"touchcancel",u),$e(t.scroller,"scroll",function(){t.scroller.clientHeight&&(jt(e,t.scroller.scrollTop),Fo(e,t.scroller.scrollLeft,!0),Ge(e,"scroll",e))}),$e(t.scroller,"mousewheel",function(y){return Lc(e,y)}),$e(t.scroller,"DOMMouseScroll",function(y){return Lc(e,y)}),$e(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){ir(e,y)||ko(y)},over:function(y){ir(e,y)||(qu(e,y),ko(y))},start:function(y){return Rf(e,y)},drop:Kt(e,$c),leave:function(y){ir(e,y)||ju(e)}};var m=t.input.getField();$e(m,"keyup",function(y){return n0.call(e,y)}),$e(m,"keydown",Kt(e,Fc)),$e(m,"keypress",Kt(e,Uc)),$e(m,"focus",function(y){return _a(e,y)}),$e(m,"blur",function(y){return Ho(e,y)})}var Is=[];Dt.defineInitHook=function(e){return Is.push(e)};function Ds(e,t,s,a){var u=e.doc,h;s==null&&(s="add"),s=="smart"&&(u.mode.indent?h=ma(e,t).state:s="prev");var g=e.options.tabSize,m=ke(u,t),y=Ft(m.text,null,g);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],z;if(!a&&!/\S/.test(m.text))z=0,s="not";else if(s=="smart"&&(z=u.mode.indent(h,m.text.slice(C.length),m.text),z==Ze||z>150)){if(!a)return;s="prev"}s=="prev"?t>u.first?z=Ft(ke(u,t-1).text,null,g):z=0:s=="add"?z=y+e.options.indentUnit:s=="subtract"?z=y-e.options.indentUnit:typeof s=="number"&&(z=y+s),z=Math.max(0,z);var M="",N=0;if(e.options.indentWithTabs)for(var R=Math.floor(z/g);R;--R)N+=g,M+=" ";if(N<z&&(M+=lr(z-N)),M!=C)return Ea(u,M,ie(t,0),ie(t,C.length),"+input"),m.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var J=u.sel.ranges[Z];if(J.head.line==t&&J.head.ch<C.length){var le=ie(t,C.length);Zu(u,Z,new _t(le,le));break}}}var kn=null;function On(e){kn=e}function Ul(e,t,s,a,u){var h=e.doc;e.display.shift=!1,a||(a=h.sel);var g=+new Date-200,m=u=="paste"||e.state.pasteIncoming>g,y=To(t),C=null;if(m&&a.ranges.length>1)if(kn&&kn.text.join(`
2130
- `)==t){if(a.ranges.length%kn.text.length==0){C=[];for(var z=0;z<kn.text.length;z++)C.push(h.splitLines(kn.text[z]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=yt(y,function(fe){return[fe]}));for(var M=e.curOp.updateInput,N=a.ranges.length-1;N>=0;N--){var R=a.ranges[N],Z=R.from(),J=R.to();R.empty()&&(s&&s>0?Z=ie(Z.line,Z.ch-s):e.state.overwrite&&!m?J=ie(J.line,Math.min(ke(h,J.line).text.length,J.ch+Xe(y).length)):m&&kn&&kn.lineWise&&kn.text.join(`
2209
+ left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(u),e.display.lineSpace.removeChild(h)}}}function xf(e,t,s,a){a==null&&(a=0);var u;!e.options.lineWrapping&&t==s&&(s=t.sticky=="before"?ie(t.line,t.ch+1,"before"):t,t=t.ch?ie(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var g=!1,m=Vn(e,t),y=!s||s==t?m:Vn(e,s);u={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=La(e,u),_=e.doc.scrollTop,k=e.doc.scrollLeft;if(C.scrollTop!=null&&(jt(e,C.scrollTop),Math.abs(e.doc.scrollTop-_)>1&&(g=!0)),C.scrollLeft!=null&&(Fo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-k)>1&&(g=!0)),!g)break}return u}function zf(e,t){var s=La(e,t);s.scrollTop!=null&&jt(e,s.scrollTop),s.scrollLeft!=null&&Fo(e,s.scrollLeft)}function La(e,t){var s=e.display,a=Ji(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,h=pl(e),g={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Qr(s),y=t.top<a,C=t.bottom>m-a;if(t.top<u)g.scrollTop=y?0:t.top;else if(t.bottom>u+h){var _=Math.min(t.top,(C?m:t.bottom)-h);_!=u&&(g.scrollTop=_)}var k=e.options.fixedGutter?0:s.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-k,R=Ki(e)-s.gutters.offsetWidth,Z=t.right-t.left>R;return Z&&(t.right=t.left+R),t.left<10?g.scrollLeft=0:t.left<N?g.scrollLeft=Math.max(0,t.left+k-(Z?0:10)):t.right>R+N-3&&(g.scrollLeft=t.right+(Z?0:10)-R),g}function _a(e,t){t!=null&&(wl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function io(e){wl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ms(e,t,s){(t!=null||s!=null)&&wl(e),t!=null&&(e.curOp.scrollLeft=t),s!=null&&(e.curOp.scrollTop=s)}function Cc(e,t){wl(e),e.curOp.scrollToPos=t}function wl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var s=vc(e,t.from),a=vc(e,t.to);wc(e,s,a,t.margin)}}function wc(e,t,s,a){var u=La(e,{left:Math.min(t.left,s.left),top:Math.min(t.top,s.top)-a,right:Math.max(t.right,s.right),bottom:Math.max(t.bottom,s.bottom)+a});ms(e,u.scrollLeft,u.scrollTop)}function jt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Ru(e,{top:t}),Pr(e,t,!0),f&&Ru(e),ci(e,100))}function Pr(e,t,s){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!s)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fo(e,t,s,a){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)&&(e.doc.scrollLeft=t,xc(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ys(e){var t=e.display,s=t.gutters.offsetWidth,a=Math.round(e.doc.height+Qr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+an(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:s}}var oo=function(e,t,s){this.cm=s;var a=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=u.tabIndex=-1,e(a),e(u),$e(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),$e(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,S&&O<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};oo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var u=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:t?a:0}},oo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},oo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},oo.prototype.zeroWidthHack=function(){var e=he&&!xe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},oo.prototype.enableZeroWidthBar=function(e,t,s){e.style.pointerEvents="auto";function a(){var u=e.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);h!=e?e.style.pointerEvents="none":t.set(1e3,a)}t.set(1e3,a)},oo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Cs=function(){};Cs.prototype.update=function(){return{bottom:0,right:0}},Cs.prototype.setScrollLeft=function(){},Cs.prototype.setScrollTop=function(){},Cs.prototype.clear=function(){};function ao(e,t){t||(t=ys(e));var s=e.display.barWidth,a=e.display.barHeight;Sa(e,t);for(var u=0;u<4&&s!=e.display.barWidth||a!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&ro(e),Sa(e,ys(e)),s=e.display.barWidth,a=e.display.barHeight}function Sa(e,t){var s=e.display,a=s.scrollbars.update(t);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&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=t.gutterWidth+"px"):s.gutterFiller.style.display=""}var xl={native:oo,null:Cs};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Ce(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),$e(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,s){s=="horizontal"?Fo(e,t):jt(e,t)},e),e.display.scrollbars.addClass&&At(e.display.wrapper,e.display.scrollbars.addClass)}var ws=0;function Gn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++ws,markArrays:null},ji(e.curOp)}function ui(e){var t=e.curOp;t&&gf(t,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ka(s)})}function ka(e){for(var t=e.ops,s=0;s<t.length;s++)Lf(t[s]);for(var a=0;a<t.length;a++)_f(t[a]);for(var u=0;u<t.length;u++)Sf(t[u]);for(var h=0;h<t.length;h++)kf(t[h]);for(var g=0;g<t.length;g++)Mf(t[g])}function Lf(e){var t=e.cm,s=t.display;bt(t),e.updateMaxLine&&ds(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Jr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function _f(e){e.updatedDisplay=e.mustUpdate&&Du(e.cm,e.update)}function Sf(e){var t=e.cm,s=t.display;e.updatedDisplay&&ro(t),e.barMeasure=ys(t),s.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=cc(t,s.maxLine,s.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+an(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-Ki(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function kf(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Fo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var s=e.focus&&e.focus==ot();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=t.doc.height)&&ao(t,e.barMeasure),e.updatedDisplay&&$u(t,e.barMeasure),e.selectionChanged&&xa(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),s&&Iu(e.cm)}function Mf(e){var t=e.cm,s=t.display,a=t.doc;if(e.updatedDisplay&&so(t,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Pr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Fo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=xf(t,me(a,e.scrollToPos.from),me(a,e.scrollToPos.to),e.scrollToPos.margin);wf(t,u)}var h=e.maybeHiddenMarkers,g=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ge(h[m],"hide");if(g)for(var y=0;y<g.length;++y)g[y].lines.length&&Ge(g[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ar(e,t){if(e.curOp)return t();Gn(e);try{return t()}finally{ui(e)}}function Kt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Gn(e);try{return t.apply(e,arguments)}finally{ui(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Gn(this);try{return e.apply(this,arguments)}finally{ui(this)}}}function z(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Gn(t);try{return e.apply(this,arguments)}finally{ui(t)}}}function ci(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,dn(zl,e))}function zl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=ba(e,t.highlightFrontier),u=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(a.line>=e.display.viewFrom){var g=h.styles,m=h.text.length>e.options.maxHighlightLength?gn(t.mode,a.state):null,y=V0(e,h,a,!0);m&&(a.state=m),h.styles=y.styles;var C=h.styleClasses,_=y.classes;_?h.styleClasses=_:C&&(h.styleClasses=null);for(var k=!g||g.length!=h.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!k&&N<g.length;++N)k=g[N]!=h.styles[N];k&&u.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=e.options.maxHighlightLength&&ls(e,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ci(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),u.length&&Ar(e,function(){for(var h=0;h<u.length;h++)to(e,u[h],"text")})}}var Jr=function(e,t,s){var a=e.display;this.viewport=t,this.visible=Bo(a,e.doc,t),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Ki(e),this.force=s,this.dims=sn(e),this.events=[]};Jr.prototype.signal=function(e,t){wr(e,t)&&this.events.push(arguments)},Jr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ge.apply(null,this.events[e])};function bt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=an(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=an(e)+"px",t.scrollbarsClipped=!0)}function Of(e){if(e.hasFocus())return null;var t=ot();if(!t||!be(e.display.lineDiv,t))return null;var s={activeElt:t};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&be(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function Tf(e){if(!(!e||!e.activeElt||e.activeElt==ot())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&be(document.body,e.anchorNode)&&be(document.body,e.focusNode))){var t=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),t.removeAllRanges(),t.addRange(s),t.extend(e.focusNode,e.focusOffset)}}function Du(e,t){var s=e.display,a=e.doc;if(t.editorIsHidden)return ki(e),!1;if(!t.force&&t.visible.from>=s.viewFrom&&t.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&mc(e)==0)return!1;fi(e)&&(ki(e),t.dims=sn(e));var u=a.first+a.size,h=Math.max(t.visible.from-e.options.viewportMargin,a.first),g=Math.min(u,t.visible.to+e.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>g&&s.viewTo-g<20&&(g=Math.min(u,s.viewTo)),ii&&(h=cl(e.doc,h),g=rc(e.doc,g));var m=h!=s.viewFrom||g!=s.viewTo||s.lastWrapHeight!=t.wrapperHeight||s.lastWrapWidth!=t.wrapperWidth;Cf(e,h,g),s.viewOffset=Xr(Me(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=mc(e);if(!m&&y==0&&!t.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=Of(e);return y>4&&(s.lineDiv.style.display="none"),Pf(e,s.updateLineNumbers,t.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,Tf(C),it(s.cursorDiv),it(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=t.wrapperHeight,s.lastWrapWidth=t.wrapperWidth,ci(e,400)),s.updateLineNumbers=null,!0}function so(e,t){for(var s=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==Ki(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Qr(e.display)-pl(e),s.top)}),t.visible=Bo(e.display,e.doc,s),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=Bo(e.display,e.doc,s));if(!Du(e,t))break;ro(e);var u=ys(e);vs(e),ao(e,u),$u(e,u),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ru(e,t){var s=new Jr(e,t);if(Du(e,s)){ro(e),so(e,s);var a=ys(e);vs(e),ao(e,a),$u(e,a),s.finish()}}function Pf(e,t,s){var a=e.display,u=e.options.lineNumbers,h=a.lineDiv,g=h.firstChild;function m(Z){var J=Z.nextSibling;return I&&he&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),J}for(var y=a.view,C=a.viewFrom,_=0;_<y.length;_++){var k=y[_];if(!k.hidden)if(!k.node||k.node.parentNode!=h){var N=Tu(e,k,C,s);h.insertBefore(N,g)}else{for(;g!=k.node;)g=m(g);var R=u&&t!=null&&t<=C&&k.lineNumber;k.changes&&(_e(k.changes,"gutter")>-1&&(R=!1),sc(e,k,C,s)),R&&(it(k.lineNumber),k.lineNumber.appendChild(document.createTextNode(va(e.options,C)))),g=k.node.nextSibling}C+=k.size}for(;g;)g=m(g)}function Nu(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",hr(e,"gutterChanged",e)}function $u(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+an(e)+"px"}function xc(e){var t=e.display,s=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var a=wa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=a+"px",g=0;g<s.length;g++)if(!s[g].hidden){e.options.fixedGutter&&(s[g].gutter&&(s[g].gutter.style.left=h),s[g].gutterBackground&&(s[g].gutterBackground.style.left=h));var m=s[g].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=a+u+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,s=va(e.options,t.first+t.size-1),a=e.display;if(s.length!=a.lineNumChars){var u=a.measure.appendChild(E("div",[E("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,g=u.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-g)+1,a.lineNumWidth=a.lineNumInnerWidth+g,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Nu(e.display),!0}return!1}function Hu(e,t){for(var s=[],a=!1,u=0;u<e.length;u++){var h=e[u],g=null;if(typeof h!="string"&&(g=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)a=!0;else continue;s.push({className:h,style:g})}return t&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function zc(e){var t=e.gutters,s=e.gutterSpecs;it(t),e.lineGutter=null;for(var a=0;a<s.length;++a){var u=s[a],h=u.className,g=u.style,m=t.appendChild(E("div",null,"CodeMirror-gutter "+h));g&&(m.style.cssText=g),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=s.length?"":"none",Nu(e)}function xs(e){zc(e.display),rt(e),xc(e)}function Af(e,t,s,a){var u=this;this.input=s,u.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=T("div",null,"CodeMirror-code"),u.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=E("div",null,"CodeMirror-cursors"),u.measure=E("div",null,"CodeMirror-measure"),u.lineMeasure=E("div",null,"CodeMirror-measure"),u.lineSpace=T("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=T("div",[u.lineSpace],"CodeMirror-lines");u.mover=E("div",[h],null,"position: relative"),u.sizer=E("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=E("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),u.gutters=E("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=E("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=E("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),S&&O<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!I&&!(f&&pe)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=t.first,u.reportedViewFrom=u.reportedViewTo=t.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Hu(a.gutters,a.lineNumbers),zc(u),s.init(u)}var Ll=0,or=null;S?or=-.53:f?or=15:q?or=-.7:ce&&(or=-1/3);function Lc(e){var t=e.wheelDeltaX,s=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:t,y:s}}function Ef(e){var t=Lc(e);return t.x*=or,t.y*=or,t}function _c(e,t){var s=Lc(t),a=s.x,u=s.y,h=e.display,g=h.scroller,m=g.scrollWidth>g.clientWidth,y=g.scrollHeight>g.clientHeight;if(!!(a&&m||u&&y)){if(u&&he&&I){e:for(var C=t.target,_=h.view;C!=g;C=C.parentNode)for(var k=0;k<_.length;k++)if(_[k].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!f&&!X&&or!=null){u&&y&&jt(e,Math.max(0,g.scrollTop+u*or)),Fo(e,Math.max(0,g.scrollLeft+a*or)),(!u||u&&y)&&xr(t),h.wheelStartX=null;return}if(u&&or!=null){var N=u*or,R=e.doc.scrollTop,Z=R+h.wrapper.clientHeight;N<0?R=Math.max(0,R+N-50):Z=Math.min(e.doc.height,Z+N+50),Ru(e,{top:R,bottom:Z})}Ll<20&&(h.wheelStartX==null?(h.wheelStartX=g.scrollLeft,h.wheelStartY=g.scrollTop,h.wheelDX=a,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var J=g.scrollLeft-h.wheelStartX,le=g.scrollTop-h.wheelStartY,fe=le&&h.wheelDY&&le/h.wheelDY||J&&h.wheelDX&&J/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(or=(or*Ll+fe)/(Ll+1),++Ll)}},200)):(h.wheelDX+=a,h.wheelDY+=u))}}var mn=function(e,t){this.ranges=e,this.primIndex=t};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var s=this.ranges[t],a=e.ranges[t];if(!P(s.anchor,a.anchor)||!P(s.head,a.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Lt(j(this.ranges[t].anchor),j(this.ranges[t].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,t){t||(t=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(t,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var Lt=function(e,t){this.anchor=e,this.head=t};Lt.prototype.from=function(){return qe(this.anchor,this.head)},Lt.prototype.to=function(){return ae(this.anchor,this.head)},Lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ir(e,t,s){var a=e&&e.options.selectionsMayTouch,u=t[s];t.sort(function(N,R){return w(N.from(),R.from())}),s=_e(t,u);for(var h=1;h<t.length;h++){var g=t[h],m=t[h-1],y=w(m.to(),g.from());if(a&&!g.empty()?y>0:y>=0){var C=qe(m.from(),g.from()),_=ae(m.to(),g.to()),k=m.empty()?g.from()==g.head:m.from()==m.head;h<=s&&--s,t.splice(--h,2,new Lt(k?_:C,k?C:_))}}return new mn(t,s)}function lo(e,t){return new mn([new Lt(e,t||e)],0)}function uo(e){return e.text?ie(e.from.line+e.text.length-1,Xe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Sn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return uo(t);var s=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=uo(t).ch-t.to.ch),ie(s,a)}function Bu(e,t){for(var s=[],a=0;a<e.sel.ranges.length;a++){var u=e.sel.ranges[a];s.push(new Lt(Sn(u.anchor,t),Sn(u.head,t)))}return Ir(e.cm,s,e.sel.primIndex)}function Sc(e,t,s){return e.line==t.line?ie(s.line,e.ch-t.ch+s.ch):ie(s.line+(e.line-t.line),e.ch)}function If(e,t,s){for(var a=[],u=ie(e.first,0),h=u,g=0;g<t.length;g++){var m=t[g],y=Sc(m.from,u,h),C=Sc(uo(m),u,h);if(u=m.to,h=C,s=="around"){var _=e.sel.ranges[g],k=w(_.head,_.anchor)<0;a[g]=new Lt(k?C:y,k?y:C)}else a[g]=new Lt(y,y)}return new mn(a,e.sel.primIndex)}function Fu(e){e.doc.mode=ga(e.options,e.doc.modeOption),zs(e)}function zs(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ci(e,100),e.state.modeGen++,e.curOp&&rt(e)}function Wu(e,t){return t.from.ch==0&&t.to.ch==0&&Xe(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _l(e,t,s,a){function u(we){return s?s[we]:null}function h(we,de,ze){nc(we,de,ze,a),hr(we,"change",we,t)}function g(we,de){for(var ze=[],Re=we;Re<de;++Re)ze.push(new Tr(C[Re],u(Re),a));return ze}var m=t.from,y=t.to,C=t.text,_=Me(e,m.line),k=Me(e,y.line),N=Xe(C),R=u(C.length-1),Z=y.line-m.line;if(t.full)e.insert(0,g(0,C.length)),e.remove(C.length,e.size-C.length);else if(Wu(e,t)){var J=g(0,C.length-1);h(k,k.text,R),Z&&e.remove(m.line,Z),J.length&&e.insert(m.line,J)}else if(_==k)if(C.length==1)h(_,_.text.slice(0,m.ch)+N+_.text.slice(y.ch),R);else{var le=g(1,C.length-1);le.push(new Tr(N+_.text.slice(y.ch),R,a)),h(_,_.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,le)}else if(C.length==1)h(_,_.text.slice(0,m.ch)+C[0]+k.text.slice(y.ch),u(0)),e.remove(m.line+1,Z);else{h(_,_.text.slice(0,m.ch)+C[0],u(0)),h(k,N+k.text.slice(y.ch),R);var fe=g(1,C.length-1);Z>1&&e.remove(m.line+1,Z-1),e.insert(m.line+1,fe)}hr(e,"change",e,t)}function co(e,t,s){function a(u,h,g){if(u.linked)for(var m=0;m<u.linked.length;++m){var y=u.linked[m];if(y.doc!=h){var C=g&&y.sharedHist;s&&!C||(t(y.doc,C),a(y.doc,u,C))}}}a(e,null,!0)}function kc(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,eo(e),Fu(e),Sl(e),e.options.direction=t.direction,e.options.lineWrapping||ds(e),e.options.mode=t.modeOption,rt(e)}function Sl(e){(e.doc.direction=="rtl"?At:Ce)(e.display.lineDiv,"CodeMirror-rtl")}function Ls(e){Ar(e,function(){Sl(e),rt(e)})}function Uo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Uu(e,t){var s={from:j(t.from),to:uo(t),text:vn(e,t.from,t.to)};return Mc(e,s,t.from.line,t.to.line+1),co(e,function(a){return Mc(a,s,t.from.line,t.to.line+1)},!0),s}function Yu(e){for(;e.length;){var t=Xe(e);if(t.ranges)e.pop();else break}}function Df(e,t){if(t)return Yu(e.done),Xe(e.done);if(e.done.length&&!Xe(e.done).ranges)return Xe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Xe(e.done)}function di(e,t,s,a){var u=e.history;u.undone.length=0;var h=+new Date,g,m;if((u.lastOp==a||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(g=Df(u,u.lastOp==a)))m=Xe(g.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=uo(t):g.changes.push(Uu(e,t));else{var y=Xe(u.done);for((!y||!y.ranges)&&en(e.sel,u.done),g={changes:[Uu(e,t)],generation:u.generation},u.done.push(g);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=a,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ge(e,"historyAdded")}function Zu(e,t,s,a){var u=t.charAt(0);return u=="*"||u=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Yo(e,t,s,a){var u=e.history,h=a&&a.origin;s==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||Zu(e,h,Xe(u.done),t))?u.done[u.done.length-1]=t:en(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=s,a&&a.clearRedo!==!1&&Yu(u.undone)}function en(e,t){var s=Xe(t);s&&s.ranges&&s.equals(e)||t.push(e)}function Mc(e,t,s,a){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(g){g.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=g.markedSpans),++h})}function Oc(e){if(!e)return null;for(var t,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?t||(t=e.slice(0,s)):t&&t.push(e[s]);return t?t.length?t:null:e}function Tc(e,t){var s=t["spans_"+e.id];if(!s)return null;for(var a=[],u=0;u<t.text.length;++u)a.push(Oc(s[u]));return a}function Ma(e,t){var s=Tc(e,t),a=wu(e,t);if(!s)return a;if(!a)return s;for(var u=0;u<s.length;++u){var h=s[u],g=a[u];if(h&&g){e:for(var m=0;m<g.length;++m){for(var y=g[m],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else g&&(s[u]=g)}return s}function yn(e,t,s){for(var a=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){a.push(s?mn.prototype.deepCopy.call(h):h);continue}var g=h.changes,m=[];a.push({changes:m});for(var y=0;y<g.length;++y){var C=g[y],_=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var k in C)(_=k.match(/^spans_(\d+)$/))&&_e(t,Number(_[1]))>-1&&(Xe(m)[k]=C[k],delete C[k])}}return a}function kl(e,t,s,a){if(a){var u=e.anchor;if(s){var h=w(t,u)<0;h!=w(s,u)<0?(u=t,t=s):h!=w(t,s)<0&&(t=s)}return new Lt(u,t)}else return new Lt(s||t,t)}function Ml(e,t,s,a,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),zr(e,new mn([kl(e.sel.primary(),t,s,u)],0),a)}function _s(e,t,s){for(var a=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)a[h]=kl(e.sel.ranges[h],t[h],null,u);var g=Ir(e.cm,a,e.sel.primIndex);zr(e,g,s)}function Vu(e,t,s,a){var u=e.sel.ranges.slice(0);u[t]=s,zr(e,Ir(e.cm,u,e.sel.primIndex),a)}function Gu(e,t,s,a){zr(e,lo(t,s),a)}function Dr(e,t,s){var a={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new Lt(me(e,u[h].anchor),me(e,u[h].head))},origin:s&&s.origin};return Ge(e,"beforeSelectionChange",e,a),e.cm&&Ge(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=t.ranges?Ir(e.cm,a.ranges,a.ranges.length-1):t}function Ol(e,t,s){var a=e.history.done,u=Xe(a);u&&u.ranges?(a[a.length-1]=t,Cn(e,t,s)):zr(e,t,s)}function zr(e,t,s){Cn(e,t,s),Yo(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function Cn(e,t,s){(wr(e,"beforeSelectionChange")||e.cm&&wr(e.cm,"beforeSelectionChange"))&&(t=Dr(e,t,s));var a=s&&s.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Tl(e,fo(e,t,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&io(e.cm)}function Tl(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ha(e.cm)),hr(e,"cursorActivity",e))}function Ss(e){Tl(e,fo(e,e.sel,null,!1))}function fo(e,t,s,a){for(var u,h=0;h<t.ranges.length;h++){var g=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=Lr(e,g.anchor,m&&m.anchor,s,a),C=Lr(e,g.head,m&&m.head,s,a);(u||y!=g.anchor||C!=g.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new Lt(y,C))}return u?Ir(e.cm,u,t.primIndex):t}function Zo(e,t,s,a,u){var h=Me(e,t.line);if(h.markedSpans)for(var g=0;g<h.markedSpans.length;++g){var m=h.markedSpans[g],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,_="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(_?m.to>=t.ch:m.to>t.ch))){if(u&&(Ge(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--g;continue}else break;if(!y.atomic)continue;if(s){var k=y.find(a<0?1:-1),N=void 0;if((a<0?_:C)&&(k=Pl(e,k,-a,k&&k.line==t.line?h:null)),k&&k.line==t.line&&(N=w(k,s))&&(a<0?N<0:N>0))return Zo(e,k,t,a,u)}var R=y.find(a<0?-1:1);return(a<0?C:_)&&(R=Pl(e,R,a,R.line==t.line?h:null)),R?Zo(e,R,t,a,u):null}}return t}function Lr(e,t,s,a,u){var h=a||1,g=Zo(e,t,s,h,u)||!u&&Zo(e,t,s,h,!0)||Zo(e,t,s,-h,u)||!u&&Zo(e,t,s,-h,!0);return g||(e.cantEdit=!0,ie(e.first,0))}function Pl(e,t,s,a){return s<0&&t.ch==0?t.line>e.first?me(e,ie(t.line-1)):null:s>0&&t.ch==(a||Me(e,t.line)).text.length?t.line<e.first+e.size-1?ie(t.line+1,0):null:new ie(t.line,t.ch+s)}function Pc(e){e.setSelection(ie(e.firstLine(),0),ie(e.lastLine()),at)}function Ac(e,t,s){var a={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(u,h,g,m){u&&(a.from=me(e,u)),h&&(a.to=me(e,h)),g&&(a.text=g),m!==void 0&&(a.origin=m)}),Ge(e,"beforeChange",e,a),e.cm&&Ge(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Oa(e,t,s){if(e.cm){if(!e.cm.curOp)return Kt(e.cm,Oa)(e,t,s);if(e.cm.state.suppressEdits)return}if(!((wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"))&&(t=Ac(e,t,!0),!t))){var a=Cu&&!s&&xu(e,t.from,t.to);if(a)for(var u=a.length-1;u>=0;--u)Al(e,{from:a[u].from,to:a[u].to,text:u?[""]:t.text,origin:t.origin});else Al(e,t)}}function Al(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var s=Bu(e,t);di(e,t,s,e.cm?e.cm.curOp.id:NaN),Pa(e,t,s,wu(e,t));var a=[];co(e,function(u,h){!h&&_e(a,u.history)==-1&&(Ic(u.history,t),a.push(u.history)),Pa(u,t,null,wu(u,t))})}}function El(e,t,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var u=e.history,h,g=e.sel,m=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(s?h.ranges&&!h.equals(e.sel):!h.ranges));C++);if(C!=m.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(h=m.pop(),h.ranges){if(en(h,y),s&&!h.equals(e.sel)){zr(e,h,{clearRedo:!1});return}g=h}else if(a){m.push(h);return}else break;var _=[];en(g,y),y.push({changes:_,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var k=wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"),N=function(J){var le=h.changes[J];if(le.origin=t,k&&!Ac(e,le,!1))return m.length=0,{};_.push(Uu(e,le));var fe=J?Bu(e,le):Xe(m);Pa(e,le,fe,Ma(e,le)),!J&&e.cm&&e.cm.scrollIntoView({from:le.from,to:uo(le)});var we=[];co(e,function(de,ze){!ze&&_e(we,de.history)==-1&&(Ic(de.history,le),we.push(de.history)),Pa(de,le,null,Ma(de,le))})},R=h.changes.length-1;R>=0;--R){var Z=N(R);if(Z)return Z.v}}}}function Ta(e,t){if(t!=0&&(e.first+=t,e.sel=new mn(yt(e.sel.ranges,function(u){return new Lt(ie(u.anchor.line+t,u.anchor.ch),ie(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){rt(e.cm,e.first,e.first-t,t);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)to(e.cm,a,"gutter")}}function Pa(e,t,s,a){if(e.cm&&!e.cm.curOp)return Kt(e.cm,Pa)(e,t,s,a);if(t.to.line<e.first){Ta(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var u=t.text.length-1-(e.first-t.from.line);Ta(e,u),t={from:ie(e.first,0),to:ie(t.to.line+u,t.to.ch),text:[Xe(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:ie(h,Me(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vn(e,t.from,t.to),s||(s=Bu(e,t)),e.cm?Rf(e.cm,t,a):_l(e,t,a),Cn(e,s,at),e.cantEdit&&Lr(e,ie(e.firstLine(),0))&&(e.cantEdit=!1)}}function Rf(e,t,s){var a=e.doc,u=e.display,h=t.from,g=t.to,m=!1,y=h.line;e.options.lineWrapping||(y=zt(oi(Me(a,h.line))),a.iter(y,g.line+1,function(R){if(R==u.maxLine)return m=!0,!0})),a.sel.contains(t.from,t.to)>-1&&ha(e),_l(a,t,s,bc(e)),e.options.lineWrapping||(a.iter(y,h.line+t.text.length,function(R){var Z=fs(R);Z>u.maxLineLength&&(u.maxLine=R,u.maxLineLength=Z,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),af(a,h.line),ci(e,400);var C=t.text.length-(g.line-h.line)-1;t.full?rt(e):h.line==g.line&&t.text.length==1&&!Wu(e.doc,t)?to(e,h.line,"text"):rt(e,h.line,g.line+1,C);var _=wr(e,"changes"),k=wr(e,"change");if(k||_){var N={from:h,to:g,text:t.text,removed:t.removed,origin:t.origin};k&&hr(e,"change",e,N),_&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Aa(e,t,s,a,u){var h;a||(a=s),w(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof t=="string"&&(t=e.splitLines(t)),Oa(e,{from:s,to:a,text:t,origin:u})}function Ea(e,t,s,a){s<e.line?e.line+=a:t<e.line&&(e.line=t,e.ch=0)}function Ec(e,t,s,a){for(var u=0;u<e.length;++u){var h=e[u],g=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)Ea(h.ranges[m].anchor,t,s,a),Ea(h.ranges[m].head,t,s,a);continue}for(var y=0;y<h.changes.length;++y){var C=h.changes[y];if(s<C.from.line)C.from=ie(C.from.line+a,C.from.ch),C.to=ie(C.to.line+a,C.to.ch);else if(t<=C.to.line){g=!1;break}}g||(e.splice(0,u+1),u=0)}}function Ic(e,t){var s=t.from.line,a=t.to.line,u=t.text.length-(a-s)-1;Ec(e.done,s,a,u),Ec(e.undone,s,a,u)}function Vo(e,t,s,a){var u=t,h=t;return typeof t=="number"?h=Me(e,vt(e,t)):u=zt(t),u==null?null:(a(h,u)&&e.cm&&to(e.cm,u,s),h)}function Ia(e){this.lines=e,this.parent=null;for(var t=0,s=0;s<e.length;++s)e[s].parent=this,t+=e[s].height;this.height=t}Ia.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var s=e,a=e+t;s<a;++s){var u=this.lines[s];this.height-=u.height,ic(u),hr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var a=0;a<t.length;++a)t[a].parent=this},iterN:function(e,t,s){for(var a=e+t;e<a;++e)if(s(this.lines[e]))return!0}};function ks(e){this.children=e;for(var t=0,s=0,a=0;a<e.length;++a){var u=e[a];t+=u.chunkSize(),s+=u.height,u.parent=this}this.size=t,this.height=s,this.parent=null}ks.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var s=0;s<this.children.length;++s){var a=this.children[s],u=a.chunkSize();if(e<u){var h=Math.min(t,u-e),g=a.height;if(a.removeInner(e,h),this.height-=g-a.height,u==h&&(this.children.splice(s--,1),a.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Ia))){var m=[];this.collapse(m),this.children=[new Ia(m)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,s){this.size+=t.length,this.height+=s;for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,s),u.lines&&u.lines.length>50){for(var g=u.lines.length%25+25,m=g;m<u.lines.length;){var y=new Ia(u.lines.slice(m,m+=25));u.height-=y.height,this.children.splice(++a,0,y),y.parent=this}u.lines=u.lines.slice(0,g),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),s=new ks(t);if(e.parent){e.size-=s.size,e.height-=s.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,s)}else{var a=new ks(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,s){for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<h){var g=Math.min(t,h-e);if(u.iterN(e,g,s))return!0;if((t-=g)==0)break;e=0}else e-=h}}};var Ms=function(e,t,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=t};Ms.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,s=this.line,a=zt(s);if(!(a==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(s.widgets=null);var h=Do(this);nn(s,Math.max(0,s.height-h)),e&&(Ar(e,function(){Dc(e,s,-h),to(e,a,"widget")}),hr(e,"lineWidgetCleared",e,this,a))}},Ms.prototype.changed=function(){var e=this,t=this.height,s=this.doc.cm,a=this.line;this.height=null;var u=Do(this)-t;!u||(Gt(this.doc,a)||nn(a,a.height+u),s&&Ar(s,function(){s.curOp.forceUpdate=!0,Dc(s,a,u),hr(s,"lineWidgetChanged",s,e,zt(a))}))},Bn(Ms);function Dc(e,t,s){Xr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&_a(e,s)}function Rc(e,t,s,a){var u=new Ms(e,s,a),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Vo(e,t,"widget",function(g){var m=g.widgets||(g.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=g,h&&!Gt(e,g)){var y=Xr(g)<e.scrollTop;nn(g,g.height+Do(u)),y&&_a(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&hr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:zt(t)),u}var Il=0,ho=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Il};ho.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gn(e),wr(this,"clear")){var s=this.find();s&&hr(this,"clear",s.from,s.to)}for(var a=null,u=null,h=0;h<this.lines.length;++h){var g=this.lines[h],m=us(g.markedSpans,this);e&&!this.collapsed?to(e,zt(g),"text"):e&&(m.to!=null&&(u=zt(g)),m.from!=null&&(a=zt(g))),g.markedSpans=sf(g.markedSpans,m),m.from==null&&this.collapsed&&!Gt(this.doc,g)&&e&&nn(g,Ji(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=oi(this.lines[y]),_=fs(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&rt(e,a,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ss(e.doc)),e&&hr(e,"markerCleared",e,this,a,u),t&&ui(e),this.parent&&this.parent.clear()}},ho.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,u=0;u<this.lines.length;++u){var h=this.lines[u],g=us(h.markedSpans,this);if(g.from!=null&&(s=ie(t?h:zt(h),g.from),e==-1))return s;if(g.to!=null&&(a=ie(t?h:zt(h),g.to),e==1))return a}return s&&{from:s,to:a}},ho.prototype.changed=function(){var e=this,t=this.find(-1,!0),s=this,a=this.doc.cm;!t||!a||Ar(a,function(){var u=t.line,h=zt(t.line),g=Eu(a,h);if(g&&(hc(g),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Gt(s.doc,u)&&s.height!=null){var m=s.height;s.height=null;var y=Do(s)-m;y&&nn(u,u.height+y)}hr(a,"markerChanged",a,e)})},ho.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||_e(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ho.prototype.detachLine=function(e){if(this.lines.splice(_e(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Bn(ho);function po(e,t,s,a,u){if(a&&a.shared)return Nc(e,t,s,a,u);if(e.cm&&!e.cm.curOp)return Kt(e.cm,po)(e,t,s,a,u);var h=new ho(e,u),g=w(t,s);if(a&&er(a,h,!1),g>0||g==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=T("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(tc(e,t.line,t,s,h)||t.line!=s.line&&tc(e,s.line,t,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");K0()}h.addToHistory&&di(e,{from:t,to:s,origin:"markText"},e.sel,NaN);var m=t.line,y=e.cm,C;if(e.iter(m,s.line+1,function(k){y&&h.collapsed&&!y.options.lineWrapping&&oi(k)==y.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&nn(k,0),X0(k,new al(h,m==t.line?t.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,s.line+1,function(k){Gt(e,k)&&nn(k,0)}),h.clearOnEnter&&$e(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(j0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++Il,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)rt(y,t.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var _=t.line;_<=s.line;_++)to(y,_,"text");h.atomic&&Ss(y.doc),hr(y,"markerAdded",y,h)}return h}var Da=function(e,t){this.markers=e,this.primary=t;for(var s=0;s<e.length;++s)e[s].parent=this};Da.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();hr(this,"clear")}},Da.prototype.find=function(e,t){return this.primary.find(e,t)},Bn(Da);function Nc(e,t,s,a,u){a=er(a),a.shared=!1;var h=[po(e,t,s,a,u)],g=h[0],m=a.widgetNode;return co(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),h.push(po(y,me(y,t),me(y,s),a,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;g=Xe(h)}),new Da(h,g)}function qu(e){return e.findMarks(ie(e.first,0),e.clipPos(ie(e.lastLine())),function(t){return t.parent})}function Dl(e,t){for(var s=0;s<t.length;s++){var a=t[s],u=a.find(),h=e.clipPos(u.from),g=e.clipPos(u.to);if(w(h,g)){var m=po(e,h,g,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function Nf(e){for(var t=function(a){var u=e[a],h=[u.primary.doc];co(u.primary.doc,function(y){return h.push(y)});for(var g=0;g<u.markers.length;g++){var m=u.markers[g];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(g--,1))}},s=0;s<e.length;s++)t(s)}var $c=0,Br=function(e,t,s,a,u){if(!(this instanceof Br))return new Br(e,t,s,a,u);s==null&&(s=0),ks.call(this,[new Ia([new Tr("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=ie(s,0);this.sel=lo(h),this.history=new Uo(null),this.id=++$c,this.modeOption=t,this.lineSep=a,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_l(this,{from:h,to:h,text:e}),zr(this,lo(h),at)};Br.prototype=rn(ks.prototype,{constructor:Br,iter:function(e,t,s){s?this.iterN(e-this.first,t-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var s=0,a=0;a<t.length;++a)s+=t[a].height;this.insertInner(e-this.first,t,s)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ss(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:z(function(e){var t=ie(this.first,0),s=this.first+this.size-1;Oa(this,{from:t,to:ie(s,Me(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ms(this.cm,0,0),zr(this,lo(t),at)}),replaceRange:function(e,t,s,a){t=me(this,t),s=s?me(this,s):t,Aa(this,e,t,s,a)},getRange:function(e,t,s){var a=vn(this,me(this,e),me(this,t));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Gi(this,e))return Me(this,e)},getLineNumber:function(e){return zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Me(this,e)),oi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return me(this,e)},getCursor:function(e){var t=this.sel.primary(),s;return e==null||e=="head"?s=t.head:e=="anchor"?s=t.anchor:e=="end"||e=="to"||e===!1?s=t.to():s=t.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:z(function(e,t,s){Gu(this,me(this,typeof e=="number"?ie(e,t||0):e),null,s)}),setSelection:z(function(e,t,s){Gu(this,me(this,e),me(this,t||e),s)}),extendSelection:z(function(e,t,s){Ml(this,me(this,e),t&&me(this,t),s)}),extendSelections:z(function(e,t){_s(this,on(this,e),t)}),extendSelectionsBy:z(function(e,t){var s=yt(this.sel.ranges,e);_s(this,on(this,s),t)}),setSelections:z(function(e,t,s){if(!!e.length){for(var a=[],u=0;u<e.length;u++)a[u]=new Lt(me(this,e[u].anchor),me(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),zr(this,Ir(this.cm,a,t),s)}}),addSelection:z(function(e,t,s){var a=this.sel.ranges.slice(0);a.push(new Lt(me(this,e),me(this,t||e))),zr(this,Ir(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var t=this.sel.ranges,s,a=0;a<t.length;a++){var u=vn(this,t[a].from(),t[a].to());s=s?s.concat(u):u}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],s=this.sel.ranges,a=0;a<s.length;a++){var u=vn(this,s[a].from(),s[a].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[a]=u}return t},replaceSelection:function(e,t,s){for(var a=[],u=0;u<this.sel.ranges.length;u++)a[u]=e;this.replaceSelections(a,t,s||"+input")},replaceSelections:z(function(e,t,s){for(var a=[],u=this.sel,h=0;h<u.ranges.length;h++){var g=u.ranges[h];a[h]={from:g.from(),to:g.to(),text:this.splitLines(e[h]),origin:s}}for(var m=t&&t!="end"&&If(this,a,t),y=a.length-1;y>=0;y--)Oa(this,a[y]);m?Ol(this,m):this.cm&&io(this.cm)}),undo:z(function(){El(this,"undo")}),redo:z(function(){El(this,"redo")}),undoSelection:z(function(){El(this,"undo",!0)}),redoSelection:z(function(){El(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++s;return{undo:t,redo:s}},clearHistory:function(){var e=this;this.history=new Uo(this.history),co(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:yn(this.history.done),undone:yn(this.history.undone)}},setHistory:function(e){var t=this.history=new Uo(this.history);t.done=yn(e.done.slice(0),null,!0),t.undone=yn(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,s){return Vo(this,e,"gutter",function(a){var u=a.gutterMarkers||(a.gutterMarkers={});return u[t]=s,!s&&oe(u)&&(a.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Vo(t,s,"gutter",function(){return s.gutterMarkers[e]=null,oe(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Gi(this,e)||(t=e,e=Me(this,e),!e))return null}else if(t=zt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:z(function(e,t,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!a[u])a[u]=s;else{if(ve(s).test(a[u]))return!1;a[u]+=" "+s}return!0})}),removeLineClass:z(function(e,t,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=a[u];if(h)if(s==null)a[u]=null;else{var g=h.match(ve(s));if(!g)return!1;var m=g.index+g[0].length;a[u]=h.slice(0,g.index)+(!g.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,s){return Rc(this,e,t,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,s){return po(this,me(this,e),me(this,t),s,s&&s.type||"range")},setBookmark:function(e,t){var s={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=me(this,e),po(this,e,e,s,"bookmark")},findMarksAt:function(e){e=me(this,e);var t=[],s=Me(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var u=s[a];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&t.push(u.marker.parent||u.marker)}return t},findMarks:function(e,t,s){e=me(this,e),t=me(this,t);var a=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var g=h.markedSpans;if(g)for(var m=0;m<g.length;m++){var y=g[m];!(y.to!=null&&u==e.line&&e.ch>=y.to||y.from==null&&u!=e.line||y.from!=null&&u==t.line&&y.from>=t.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++u}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var s=t.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var t,s=this.first,a=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+a;if(h>e)return t=e,!0;e-=h,++s}),me(this,ie(s,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){t+=a.text.length+s}),t},copy:function(e){var t=new Br(ss(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,s=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Br(ss(this,t,s),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Dl(a,qu(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var s=this.linked[t];if(s.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Nf(qu(this));break}}if(e.history==this.history){var a=[e.id];co(e,function(u){return a.push(u.id)},!0),e.history=new Uo(null),e.history.done=yn(this.history.done,a),e.history.undone=yn(this.history.undone,a)}},iterLinkedDocs:function(e){co(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):To(e)},lineSeparator:function(){return this.lineSep||`
2210
+ `},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ls(this.cm))})}),Br.prototype.eachLine=Br.prototype.iter;var Hc=0;function Bc(e){var t=this;if(Ku(t),!(ir(t,e)||Si(t.display,e))){xr(e),S&&(Hc=+new Date);var s=si(t,e,!0),a=e.dataTransfer.files;if(!(!s||t.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var u=a.length,h=Array(u),g=0,m=function(){++g==u&&Kt(t,function(){s=me(t.doc,s);var R={from:s,to:s,text:t.doc.splitLines(h.filter(function(Z){return Z!=null}).join(t.doc.lineSeparator())),origin:"paste"};Oa(t.doc,R),Ol(t.doc,lo(me(t.doc,s),me(t.doc,uo(R))))})()},y=function(R,Z){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,R.type)==-1){m();return}var J=new FileReader;J.onerror=function(){return m()},J.onload=function(){var le=J.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(le)){m();return}h[Z]=le,m()},J.readAsText(R)},C=0;C<a.length;C++)y(a[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(s)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var _=e.dataTransfer.getData("Text");if(_){var k;if(t.state.draggingText&&!t.state.draggingText.copy&&(k=t.listSelections()),Cn(t.doc,lo(s,s)),k)for(var N=0;N<k.length;++N)Aa(t.doc,"",k[N].anchor,k[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function $f(e,t){if(S&&(!e.state.draggingText||+new Date-Hc<100)){Mo(t);return}if(!(ir(e,t)||Si(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ce)){var s=E("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",X&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),t.dataTransfer.setDragImage(s,0,0),X&&s.parentNode.removeChild(s)}}function ju(e,t){var s=si(e,t);if(!!s){var a=document.createDocumentFragment();Mi(e,s,a),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),W(e.display.dragCursor,a)}}function Ku(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Rl(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<t.length;a++){var u=t[a].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)e(s[h])})}}var Fc=!1;function Xu(){Fc||(ft(),Fc=!0)}function ft(){var e;$e(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Rl(Hf)},100))}),$e(window,"blur",function(){return Rl(Ho)})}function Hf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var go={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"},Oi=0;Oi<10;Oi++)go[Oi+48]=go[Oi+96]=String(Oi);for(var Os=65;Os<=90;Os++)go[Os]=String.fromCharCode(Os);for(var Ts=1;Ts<=12;Ts++)go[Ts+111]=go[Ts+63235]="F"+Ts;var Ti={};Ti.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"},Ti.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"},Ti.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"},Ti.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"]},Ti.default=he?Ti.macDefault:Ti.pcDefault;function kn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var s,a,u,h,g=0;g<t.length-1;g++){var m=t[g];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function Bf(e){var t={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var u=yt(s.split(" "),kn),h=0;h<u.length;h++){var g=void 0,m=void 0;h==u.length-1?(m=u.join(" "),g=a):(m=u.slice(0,h+1).join(" "),g="...");var y=t[m];if(!y)t[m]=g;else if(y!=g)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in t)e[C]=t[C];return e}function Pi(e,t,s,a){t=Fr(t);var u=t.call?t.call(e,a):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&s(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Pi(e,t.fallthrough,s,a);for(var h=0;h<t.fallthrough.length;h++){var g=Pi(e,t.fallthrough[h],s,a);if(g)return g}}}function Nl(e){var t=typeof e=="string"?e:go[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Qu(e,t,s){var a=e;return t.altKey&&a!="Alt"&&(e="Alt-"+e),(et?t.metaKey:t.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(et?t.ctrlKey:t.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&t.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function Ju(e,t){if(X&&e.keyCode==34&&e.char)return!1;var s=go[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),Qu(s,e,t))}function Fr(e){return typeof e=="string"?Ti[e]:e}function wn(e,t){for(var s=e.doc.sel.ranges,a=[],u=0;u<s.length;u++){for(var h=t(s[u]);a.length&&w(h.from,Xe(a).to)<=0;){var g=a.pop();if(w(g.from,h.from)<0){h.from=g.from;break}}a.push(h)}Ar(e,function(){for(var m=a.length-1;m>=0;m--)Aa(e.doc,"",a[m].from,a[m].to,"+delete");io(e)})}function Ps(e,t,s){var a=dr(e.text,t+s,s);return a<0||a>e.text.length?null:a}function $l(e,t,s){var a=Ps(e,t.ch,s);return a==null?null:new ie(t.line,a,s<0?"after":"before")}function Ra(e,t,s,a,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Hr(s,t.doc.direction);if(h){var g=u<0?Xe(h):h[0],m=u<0==(g.level==1),y=m?"after":"before",C;if(g.level>0||t.doc.direction=="rtl"){var _=Zn(t,s);C=u<0?s.text.length-1:0;var k=ai(t,_,C).top;C=kr(function(N){return ai(t,_,N).top==k},u<0==(g.level==1)?g.from:g.to-1,C),y=="before"&&(C=Ps(s,C,1))}else C=u<0?g.to:g.from;return new ie(a,C,y)}}return new ie(a,u<0?s.text.length:0,u<0?"before":"after")}function Wc(e,t,s,a){var u=Hr(t,e.doc.direction);if(!u)return $l(t,s,a);s.ch>=t.text.length?(s.ch=t.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=Zt(u,s.ch,s.sticky),g=u[h];if(e.doc.direction=="ltr"&&g.level%2==0&&(a>0?g.to>s.ch:g.from<s.ch))return $l(t,s,a);var m=function(fe,we){return Ps(t,fe instanceof ie?fe.ch:fe,we)},y,C=function(fe){return e.options.lineWrapping?(y=y||Zn(e,t),Y(e,t,y,fe)):{begin:0,end:t.text.length}},_=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||g.level==1){var k=g.level==1==a<0,N=m(s,k?1:-1);if(N!=null&&(k?N<=g.to&&N<=_.end:N>=g.from&&N>=_.begin)){var R=k?"before":"after";return new ie(s.line,N,R)}}var Z=function(fe,we,de){for(var ze=function(Ot,ur){return ur?new ie(s.line,m(Ot,1),"before"):new ie(s.line,Ot,"after")};fe>=0&&fe<u.length;fe+=we){var Re=u[fe],Pe=we>0==(Re.level!=1),lt=Pe?de.begin:m(de.end,-1);if(Re.from<=lt&&lt<Re.to||(lt=Pe?Re.from:m(Re.to,-1),de.begin<=lt&&lt<de.end))return ze(lt,Pe)}},J=Z(h+a,a,_);if(J)return J;var le=a>0?_.end:m(_.begin,-1);return le!=null&&!(a>0&&le==t.text.length)&&(J=Z(a>0?0:u.length-1,a,C(le)),J)?J:null}var Go={selectAll:Pc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),at)},killLine:function(e){return wn(e,function(t){if(t.empty()){var s=Me(e.doc,t.head.line).text.length;return t.head.ch==s&&t.head.line<e.lastLine()?{from:t.head,to:ie(t.head.line+1,0)}:{from:t.head,to:ie(t.head.line,s)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:me(e.doc,ie(t.to().line+1,0))}})},delLineLeft:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:t.from()}})},delWrappedLineRight:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:t.from(),to:a}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ie(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ie(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return e0(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Hl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return t0(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},We)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},We)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?Hl(e,t.head):a},We)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],s=e.listSelections(),a=e.options.tabSize,u=0;u<s.length;u++){var h=s[u].from(),g=Ft(e.getLine(h.line),h.ch,a);t.push(lr(a-g%a))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=[],a=0;a<t.length;a++)if(!!t[a].empty()){var u=t[a].head,h=Me(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new ie(u.line,u.ch-1)),u.ch>0)u=new ie(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),ie(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var g=Me(e.doc,u.line-1).text;g&&(u=new ie(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+g.charAt(g.length-1),ie(u.line-1,g.length-1),u,"+transpose"))}}s.push(new Lt(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=t.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),t[s].anchor,t[s].head,"+input");t=e.listSelections();for(var a=0;a<t.length;a++)e.indentLine(t[a].from().line,null,!0);io(e)})},openLine:function(e){return e.replaceSelection(`
2211
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function e0(e,t){var s=Me(e.doc,t),a=oi(s);return a!=s&&(t=zt(a)),Ra(!0,e,a,t,1)}function t0(e,t){var s=Me(e.doc,t),a=ff(s);return a!=s&&(t=zt(a)),Ra(!0,e,s,t,-1)}function Hl(e,t){var s=e0(e,t.line),a=Me(e.doc,s.line),u=Hr(a,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),g=t.line==s.line&&t.ch<=h&&t.ch;return ie(s.line,g?0:h,s.sticky)}return s}function qn(e,t,s){if(typeof t=="string"&&(t=Go[t],!t))return!1;e.display.input.ensurePolled();var a=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=t(e)!=Ze}finally{e.display.shift=a,e.state.suppressEdits=!1}return u}function Ff(e,t,s){for(var a=0;a<e.state.keyMaps.length;a++){var u=Pi(t,e.state.keyMaps[a],s,e);if(u)return u}return e.options.extraKeys&&Pi(t,e.options.extraKeys,s,e)||Pi(t,e.options.keyMap,s,e)}var vo=new ut;function Na(e,t,s,a){var u=e.state.keySeq;if(u){if(Nl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:vo.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),r0(e,u+" "+t,s,a))return!0}return r0(e,t,s,a)}function r0(e,t,s,a){var u=Ff(e,t,a);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&hr(e,"keyHandled",e,t,s),(u=="handled"||u=="multi")&&(xr(s),xa(e)),!!u}function Bl(e,t){var s=Ju(t,!0);return s?t.shiftKey&&!e.state.keySeq?Na(e,"Shift-"+s,t,function(a){return qn(e,a,!0)})||Na(e,s,t,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return qn(e,a)}):Na(e,s,t,function(a){return qn(e,a)}):!1}function Wf(e,t,s){return Na(e,"'"+s+"'",t,function(a){return qn(e,a,!0)})}var n0=null;function Uc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ot(),!ir(t,e))){S&&O<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;t.display.shift=s==16||e.shiftKey;var a=Bl(t,e);X&&(n0=a?s:null,!a&&s==88&&!tl&&(he?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!he&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Yc(t)}}function Yc(e){var t=e.display.lineDiv;At(t,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(Ce(t,"CodeMirror-crosshair"),Mr(document,"keyup",s),Mr(document,"mouseover",s))}$e(document,"keyup",s),$e(document,"mouseover",s)}function i0(e){e.keyCode==16&&(this.doc.sel.shift=!1),ir(this,e)}function Zc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Si(t.display,e)||ir(t,e)||e.ctrlKey&&!e.altKey||he&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(X&&s==n0){n0=null,xr(e);return}if(!(X&&(!e.which||e.which<10)&&Bl(t,e))){var u=String.fromCharCode(a==null?s:a);u!="\b"&&(Wf(t,e,u)||t.display.input.onKeyPress(e))}}}var Vc=400,Fl=function(e,t,s){this.time=e,this.pos=t,this.button=s};Fl.prototype.compare=function(e,t,s){return this.time+Vc>e&&w(t,this.pos)==0&&s==this.button};var _r,ln;function Uf(e,t){var s=+new Date;return ln&&ln.compare(s,e,t)?(_r=ln=null,"triple"):_r&&_r.compare(s,e,t)?(ln=new Fl(s,e,t),_r=null,"double"):(_r=new Fl(s,e,t),ln=null,"single")}function Gc(e){var t=this,s=t.display;if(!(ir(t,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,Si(s,e)){I||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!o0(t,e)){var a=si(t,e),u=rs(e),h=a?Uf(a,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(a&&Wl(t,u,a,h,e))&&(u==1?a?qc(t,a,h,e):Zi(e)==s.scroller&&xr(e):u==2?(a&&Ml(t.doc,a),setTimeout(function(){return s.input.focus()},20)):u==3&&(nt?t.display.input.onContextMenu(e):Cl(t)))}}}function Wl(e,t,s,a,u){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,Na(e,Qu(h,u),u,function(g){if(typeof g=="string"&&(g=Go[g]),!g)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=g(e,s)!=Ze}finally{e.state.suppressEdits=!1}return m})}function $a(e,t,s){var a=e.getOption("configureMouse"),u=a?a(e,t,s):{};if(u.unit==null){var h=Te?s.shiftKey&&s.metaKey:s.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=he?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(he?s.altKey:s.ctrlKey)),u}function qc(e,t,s,a){S?setTimeout(dn(Iu,e),0):e.curOp.focus=ot();var u=$a(e,s,a),h=e.doc.sel,g;e.options.dragDrop&&ns&&!e.isReadOnly()&&s=="single"&&(g=h.contains(t))>-1&&(w((g=h.ranges[g]).from(),t)<0||t.xRel>0)&&(w(g.to(),t)>0||t.xRel<0)?jc(e,a,t,u):Xc(e,a,t,u)}function jc(e,t,s,a){var u=e.display,h=!1,g=Kt(e,function(C){I&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Cl(e)),Mr(u.wrapper.ownerDocument,"mouseup",g),Mr(u.wrapper.ownerDocument,"mousemove",m),Mr(u.scroller,"dragstart",y),Mr(u.scroller,"drop",g),h||(xr(C),a.addNew||Ml(e.doc,s,null,null,a.extend),I&&!ce||S&&O==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),m=function(C){h=h||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return h=!0};I&&(u.scroller.draggable=!0),e.state.draggingText=g,g.copy=!a.moveOnDrag,$e(u.wrapper.ownerDocument,"mouseup",g),$e(u.wrapper.ownerDocument,"mousemove",m),$e(u.scroller,"dragstart",y),$e(u.scroller,"drop",g),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Kc(e,t,s){if(s=="char")return new Lt(t,t);if(s=="word")return e.findWordAt(t);if(s=="line")return new Lt(ie(t.line,0),me(e.doc,ie(t.line+1,0)));var a=s(e,t);return new Lt(a.from,a.to)}function Xc(e,t,s,a){S&&Cl(e);var u=e.display,h=e.doc;xr(t);var g,m,y=h.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=h.sel.contains(s),m>-1?g=C[m]:g=new Lt(s,s)):(g=h.sel.primary(),m=h.sel.primIndex),a.unit=="rectangle")a.addNew||(g=new Lt(s,s)),s=si(e,t,!0,!0),m=-1;else{var _=Kc(e,s,a.unit);a.extend?g=kl(g,_.anchor,_.head,a.extend):g=_}a.addNew?m==-1?(m=C.length,zr(h,Ir(e,C.concat([g]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(zr(h,Ir(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):Vu(h,m,g,st):(m=0,zr(h,new mn([g],0),st),y=h.sel);var k=s;function N(de){if(w(k,de)!=0)if(k=de,a.unit=="rectangle"){for(var ze=[],Re=e.options.tabSize,Pe=Ft(Me(h,s.line).text,s.ch,Re),lt=Ft(Me(h,de.line).text,de.ch,Re),Ot=Math.min(Pe,lt),ur=Math.max(Pe,lt),Rt=Math.min(s.line,de.line),Ur=Math.min(e.lastLine(),Math.max(s.line,de.line));Rt<=Ur;Rt++){var Yr=Me(h,Rt).text,rr=Vt(Yr,Ot,Re);Ot==ur?ze.push(new Lt(ie(Rt,rr),ie(Rt,rr))):Yr.length>rr&&ze.push(new Lt(ie(Rt,rr),ie(Rt,Vt(Yr,ur,Re))))}ze.length||ze.push(new Lt(s,s)),zr(h,Ir(e,y.ranges.slice(0,m).concat(ze),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(de)}else{var Sr=g,gr=Kc(e,de,a.unit),It=Sr.anchor,Ht;w(gr.anchor,It)>0?(Ht=gr.head,It=qe(Sr.from(),gr.anchor)):(Ht=gr.anchor,It=ae(Sr.to(),gr.head));var Xt=y.ranges.slice(0);Xt[m]=Ha(e,new Lt(me(h,It),Ht)),zr(h,Ir(e,Xt,m),st)}}var R=u.wrapper.getBoundingClientRect(),Z=0;function J(de){var ze=++Z,Re=si(e,de,!0,a.unit=="rectangle");if(!!Re)if(w(Re,k)!=0){e.curOp.focus=ot(),N(Re);var Pe=Bo(u,h);(Re.line>=Pe.to||Re.line<Pe.from)&&setTimeout(Kt(e,function(){Z==ze&&J(de)}),150)}else{var lt=de.clientY<R.top?-20:de.clientY>R.bottom?20:0;lt&&setTimeout(Kt(e,function(){Z==ze&&(u.scroller.scrollTop+=lt,J(de))}),50)}}function le(de){e.state.selectingText=!1,Z=1/0,de&&(xr(de),u.input.focus()),Mr(u.wrapper.ownerDocument,"mousemove",fe),Mr(u.wrapper.ownerDocument,"mouseup",we),h.history.lastSelOrigin=null}var fe=Kt(e,function(de){de.buttons===0||!rs(de)?le(de):J(de)}),we=Kt(e,le);e.state.selectingText=we,$e(u.wrapper.ownerDocument,"mousemove",fe),$e(u.wrapper.ownerDocument,"mouseup",we)}function Ha(e,t){var s=t.anchor,a=t.head,u=Me(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return t;var h=Hr(u);if(!h)return t;var g=Zt(h,s.ch,s.sticky),m=h[g];if(m.from!=s.ch&&m.to!=s.ch)return t;var y=g+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==h.length)return t;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var _=Zt(h,a.ch,a.sticky),k=_-g||(a.ch-s.ch)*(m.level==1?-1:1);_==y-1||_==y?C=k<0:C=k>0}var N=h[y+(C?-1:0)],R=C==(N.level==1),Z=R?N.from:N.to,J=R?"after":"before";return s.ch==Z&&s.sticky==J?t:new Lt(new ie(s.line,Z,J),a)}function Ba(e,t,s,a){var u,h;if(t.touches)u=t.touches[0].clientX,h=t.touches[0].clientY;else try{u=t.clientX,h=t.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&xr(t);var g=e.display,m=g.lineDiv.getBoundingClientRect();if(h>m.bottom||!wr(e,s))return hn(t);h-=m.top-g.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=g.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=u){var _=Un(e.doc,h),k=e.display.gutterSpecs[y];return Ge(e,s,e,_,k.className,t),hn(t)}}}function o0(e,t){return Ba(e,t,"gutterClick",!0)}function a0(e,t){Si(e.display,t)||Qc(e,t)||ir(e,t,"contextmenu")||nt||e.display.input.onContextMenu(t)}function Qc(e,t){return wr(e,"gutterContextMenu")?Ba(e,t,"gutterContextMenu",!1):!1}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gs(e)}var qo={toString:function(){return"CodeMirror.Init"}},Es={},Fa={};function Ul(e){var t=e.optionHandlers;function s(a,u,h,g){e.defaults[a]=u,h&&(t[a]=g?function(m,y,C){C!=qo&&h(m,y,C)}:h)}e.defineOption=s,e.Init=qo,s("value","",function(a,u){return a.setValue(u)},!0),s("mode",null,function(a,u){a.doc.modeOption=u,Fu(a)},!0),s("indentUnit",2,Fu,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){zs(a),gs(a),rt(a)},!0),s("lineSeparator",null,function(a,u){if(a.doc.lineSep=u,!!u){var h=[],g=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var _=y.text.indexOf(u,C);if(_==-1)break;C=_+u.length,h.push(ie(g,_))}g++});for(var m=h.length-1;m>=0;m--)Aa(a.doc,u,h[m],ie(h[m].line,h[m].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,u,h){a.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=qo&&a.refresh()}),s("specialCharPlaceholder",bn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,u){return a.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(a,u){return a.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(a,u){return a.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!He),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){As(a),xs(a)},!0),s("keyMap","default",function(a,u,h){var g=Fr(u),m=h!=qo&&Fr(h);m&&m.detach&&m.detach(a,g),g.attach&&g.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,Jc,!0),s("gutters",[],function(a,u){a.display.gutterSpecs=Hu(u,a.options.lineNumbers),xs(a)},!0),s("fixedGutter",!0,function(a,u){a.display.gutters.style.left=u?wa(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return ao(a)},!0),s("scrollbarStyle","native",function(a){Wo(a),ao(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,u){a.display.gutterSpecs=Hu(a.options.gutters,u),xs(a)},!0),s("firstLineNumber",1,xs,!0),s("lineNumberFormatter",function(a){return a},xs,!0),s("showCursorWhenSelecting",!1,vs,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,u){u=="nocursor"&&(Ho(a),a.display.input.blur()),a.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(a,u){u=u===""?null:u,a.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(a,u){u||a.display.input.reset()},!0),s("dragDrop",!0,Yf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,vs,!0),s("singleCursorHeightPerLine",!0,vs,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,zs,!0),s("addModeClass",!1,zs,!0),s("pollInterval",100),s("undoDepth",200,function(a,u){return a.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,zs,!0),s("moveInputWithCursor",!0,function(a,u){u||a.display.input.resetPosition()}),s("tabindex",null,function(a,u){return a.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(a,u){return a.doc.setDirection(u)},!0),s("phrases",null)}function Yf(e,t,s){var a=s&&s!=qo;if(!t!=!a){var u=e.display.dragFunctions,h=t?$e:Mr;h(e.display.scroller,"dragstart",u.start),h(e.display.scroller,"dragenter",u.enter),h(e.display.scroller,"dragover",u.over),h(e.display.scroller,"dragleave",u.leave),h(e.display.scroller,"drop",u.drop)}}function Jc(e){e.options.lineWrapping?(At(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Ce(e.display.wrapper,"CodeMirror-wrap"),ds(e)),eo(e),rt(e),gs(e),setTimeout(function(){return ao(e)},100)}function Dt(e,t){var s=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?er(t):{},er(Es,t,!1);var a=t.value;typeof a=="string"?a=new Br(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var u=new Dt.inputStyles[t.inputStyle](this),h=this.display=new Af(e,a,u,t);h.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(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 ut,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),S&&O<11&&setTimeout(function(){return s.display.input.reset(!0)},20),e1(this),Xu(),Gn(this),this.curOp.forceUpdate=!0,kc(this,a),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&za(s)},20):Ho(this);for(var g in Fa)Fa.hasOwnProperty(g)&&Fa[g](this,t[g],qo);fi(this),t.finishInit&&t.finishInit(this);for(var m=0;m<Is.length;++m)Is[m](this);ui(this),I&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Dt.defaults=Es,Dt.optionHandlers=Fa;function e1(e){var t=e.display;$e(t.scroller,"mousedown",Kt(e,Gc)),S&&O<11?$e(t.scroller,"dblclick",Kt(e,function(y){if(!ir(e,y)){var C=si(e,y);if(!(!C||o0(e,y)||Si(e.display,y))){xr(y);var _=e.findWordAt(C);Ml(e.doc,_.anchor,_.head)}}})):$e(t.scroller,"dblclick",function(y){return ir(e,y)||xr(y)}),$e(t.scroller,"contextmenu",function(y){return a0(e,y)}),$e(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||a0(e,y)});var s,a={end:0};function u(){t.activeTouch&&(s=setTimeout(function(){return t.activeTouch=null},1e3),a=t.activeTouch,a.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function g(y,C){if(C.left==null)return!0;var _=C.left-y.left,k=C.top-y.top;return _*_+k*k>20*20}$e(t.scroller,"touchstart",function(y){if(!ir(e,y)&&!h(y)&&!o0(e,y)){t.input.ensurePolled(),clearTimeout(s);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),$e(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),$e(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!Si(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var _=e.coordsChar(t.activeTouch,"page"),k;!C.prev||g(C,C.prev)?k=new Lt(_,_):!C.prev.prev||g(C,C.prev.prev)?k=e.findWordAt(_):k=new Lt(ie(_.line,0),me(e.doc,ie(_.line+1,0))),e.setSelection(k.anchor,k.head),e.focus(),xr(y)}u()}),$e(t.scroller,"touchcancel",u),$e(t.scroller,"scroll",function(){t.scroller.clientHeight&&(jt(e,t.scroller.scrollTop),Fo(e,t.scroller.scrollLeft,!0),Ge(e,"scroll",e))}),$e(t.scroller,"mousewheel",function(y){return _c(e,y)}),$e(t.scroller,"DOMMouseScroll",function(y){return _c(e,y)}),$e(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){ir(e,y)||Mo(y)},over:function(y){ir(e,y)||(ju(e,y),Mo(y))},start:function(y){return $f(e,y)},drop:Kt(e,Bc),leave:function(y){ir(e,y)||Ku(e)}};var m=t.input.getField();$e(m,"keyup",function(y){return i0.call(e,y)}),$e(m,"keydown",Kt(e,Uc)),$e(m,"keypress",Kt(e,Zc)),$e(m,"focus",function(y){return za(e,y)}),$e(m,"blur",function(y){return Ho(e,y)})}var Is=[];Dt.defineInitHook=function(e){return Is.push(e)};function Ds(e,t,s,a){var u=e.doc,h;s==null&&(s="add"),s=="smart"&&(u.mode.indent?h=ba(e,t).state:s="prev");var g=e.options.tabSize,m=Me(u,t),y=Ft(m.text,null,g);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],_;if(!a&&!/\S/.test(m.text))_=0,s="not";else if(s=="smart"&&(_=u.mode.indent(h,m.text.slice(C.length),m.text),_==Ze||_>150)){if(!a)return;s="prev"}s=="prev"?t>u.first?_=Ft(Me(u,t-1).text,null,g):_=0:s=="add"?_=y+e.options.indentUnit:s=="subtract"?_=y-e.options.indentUnit:typeof s=="number"&&(_=y+s),_=Math.max(0,_);var k="",N=0;if(e.options.indentWithTabs)for(var R=Math.floor(_/g);R;--R)N+=g,k+=" ";if(N<_&&(k+=lr(_-N)),k!=C)return Aa(u,k,ie(t,0),ie(t,C.length),"+input"),m.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var J=u.sel.ranges[Z];if(J.head.line==t&&J.head.ch<C.length){var le=ie(t,C.length);Vu(u,Z,new Lt(le,le));break}}}var Mn=null;function On(e){Mn=e}function Yl(e,t,s,a,u){var h=e.doc;e.display.shift=!1,a||(a=h.sel);var g=+new Date-200,m=u=="paste"||e.state.pasteIncoming>g,y=To(t),C=null;if(m&&a.ranges.length>1)if(Mn&&Mn.text.join(`
2212
+ `)==t){if(a.ranges.length%Mn.text.length==0){C=[];for(var _=0;_<Mn.text.length;_++)C.push(h.splitLines(Mn.text[_]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=yt(y,function(fe){return[fe]}));for(var k=e.curOp.updateInput,N=a.ranges.length-1;N>=0;N--){var R=a.ranges[N],Z=R.from(),J=R.to();R.empty()&&(s&&s>0?Z=ie(Z.line,Z.ch-s):e.state.overwrite&&!m?J=ie(J.line,Math.min(Me(h,J.line).text.length,J.ch+Xe(y).length)):m&&Mn&&Mn.lineWise&&Mn.text.join(`
2131
2213
  `)==y.join(`
2132
- `)&&(Z=J=ie(Z.line,0)));var le={from:Z,to:J,text:C?C[N%C.length]:y,origin:u||(m?"paste":e.state.cutIncoming>g?"cut":"+input")};Ta(e.doc,le),hr(e,"inputRead",e,le)}t&&!m&&Jc(e,t),no(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function a0(e,t){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ar(t,function(){return Ul(t,s,0,null,"paste")}),!0}function Jc(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var u=s.ranges[a];if(!(u.head.ch>100||a&&s.ranges[a-1].head.line==u.head.line)){var h=e.getModeAt(u.head),g=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){g=Ds(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(ke(e.doc,u.head.line).text.slice(0,u.head.ch))&&(g=Ds(e,u.head.line,"smart"));g&&hr(e,"electricInput",e,u.head.line)}}}function s0(e){for(var t=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var u=e.doc.sel.ranges[a].head.line,h={anchor:ie(u,0),head:ie(u+1,0)};s.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:s}}function e1(e,t,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!t)}function t1(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),Ae&&(e.style.border="1px solid black"),e1(e),t}function Pi(e){var t=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,u){var h=this.options,g=h[a];h[a]==u&&a!="mode"||(h[a]=u,t.hasOwnProperty(a)&&Kt(this,t[a])(this,u,g),Ge(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,u){this.state.keyMaps[u?"push":"unshift"](Fr(a))},removeKeyMap:function(a){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==a||u[h].name==a)return u.splice(h,1),!0},addOverlay:Er(function(a,u){var h=a.token?a:e.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:h,modeSpec:a,opaque:u&&u.opaque,priority:u&&u.priority||0},function(g){return g.priority}),this.state.modeGen++,rt(this)}),removeOverlay:Er(function(a){for(var u=this.state.overlays,h=0;h<u.length;++h){var g=u[h].modeSpec;if(g==a||typeof a=="string"&&g.name==a){u.splice(h,1),this.state.modeGen++,rt(this);return}}}),indentLine:Er(function(a,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Vi(this.doc,a)&&Ds(this,a,u,h)}),indentSelection:Er(function(a){for(var u=this.doc.sel.ranges,h=-1,g=0;g<u.length;g++){var m=u[g];if(m.empty())m.head.line>h&&(Ds(this,m.head.line,a,!0),h=m.head.line,g==this.doc.sel.primIndex&&no(this));else{var y=m.from(),C=m.to(),z=Math.max(h,y.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=z;M<h;++M)Ds(this,M,a);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[g].from().ch>0&&Zu(this.doc,g,new _t(y,N[g].to()),at)}}}),getTokenAt:function(a,u){return il(this,a,u)},getLineTokens:function(a,u){return il(this,ie(a),u,!0)},getTokenTypeAt:function(a){a=be(this.doc,a);var u=bu(this,ke(this.doc,a.line)),h=0,g=(u.length-1)/2,m=a.ch,y;if(m==0)y=u[2];else for(;;){var C=h+g>>1;if((C?u[C*2-1]:0)>=m)g=C;else if(u[C*2+1]<m)h=C+1;else{y=u[C*2+2];break}}var z=y?y.indexOf("overlay "):-1;return z<0?y:z==0?null:y.slice(0,z-1)},getModeAt:function(a){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(a).state).mode:u},getHelper:function(a,u){return this.getHelpers(a,u)[0]},getHelpers:function(a,u){var h=[];if(!s.hasOwnProperty(u))return h;var g=s[u],m=this.getModeAt(a);if(typeof m[u]=="string")g[m[u]]&&h.push(g[m[u]]);else if(m[u])for(var y=0;y<m[u].length;y++){var C=g[m[u][y]];C&&h.push(C)}else m.helperType&&g[m.helperType]?h.push(g[m.helperType]):g[m.name]&&h.push(g[m.name]);for(var z=0;z<g._global.length;z++){var M=g._global[z];M.pred(m,this)&&_e(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(a,u){var h=this.doc;return a=vt(h,a==null?h.first+h.size-1:a),ma(this,a+1,u).state},cursorCoords:function(a,u){var h,g=this.doc.sel.primary();return a==null?h=g.head:typeof a=="object"?h=be(this.doc,a):h=a?g.from():g.to(),Vn(this,h,u||"page")},charCoords:function(a,u){return ml(this,be(this.doc,a),u||"page")},coordsChar:function(a,u){return a=hc(this,a,u||"page"),$(this,a.left,a.top)},lineAtHeight:function(a,u){return a=hc(this,{top:a,left:0},u||"page").top,Un(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,u,h){var g=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,g=!0),m=ke(this.doc,a)}else m=a;return bl(this,m,{top:0,left:0},u||"page",h||g).top+(g?this.doc.height-Xr(m):0)},defaultTextHeight:function(){return Qi(this.display)},defaultCharWidth:function(){return wa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,u,h,g,m){var y=this.display;a=Vn(this,be(this.doc,a));var C=a.bottom,z=a.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),g=="over")C=a.top;else if(g=="above"||g=="near"){var M=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(g=="above"||a.bottom+u.offsetHeight>M)&&a.top>u.offsetHeight?C=a.top-u.offsetHeight:a.bottom+u.offsetHeight<=M&&(C=a.bottom),z+u.offsetWidth>N&&(z=N-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",m=="right"?(z=y.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(m=="left"?z=0:m=="middle"&&(z=(y.sizer.clientWidth-u.offsetWidth)/2),u.style.left=z+"px"),h&&wf(this,{left:z,top:C,right:z+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Er(Fc),triggerOnKeyPress:Er(Uc),triggerOnKeyUp:n0,triggerOnMouseDown:Er(Zc),execCommand:function(a){if(Go.hasOwnProperty(a))return Go[a].call(null,this)},triggerElectric:Er(function(a){Jc(this,a)}),findPosH:function(a,u,h,g){var m=1;u<0&&(m=-1,u=-u);for(var y=be(this.doc,a),C=0;C<u&&(y=Rs(this.doc,y,m,h,g),!y.hitSide);++C);return y},moveH:Er(function(a,u){var h=this;this.extendSelectionsBy(function(g){return h.display.shift||h.doc.extend||g.empty()?Rs(h.doc,g.head,a,u,h.options.rtlMoveVisually):a<0?g.from():g.to()},We)}),deleteH:Er(function(a,u){var h=this.doc.sel,g=this.doc;h.somethingSelected()?g.replaceSelection("",null,"+delete"):wn(this,function(m){var y=Rs(g,m.head,a,u,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,u,h,g){var m=1,y=g;u<0&&(m=-1,u=-u);for(var C=be(this.doc,a),z=0;z<u;++z){var M=Vn(this,C,"div");if(y==null?y=M.left:M.left=y,C=Yl(this,M,m,h),C.hitSide)break}return C},moveV:Er(function(a,u){var h=this,g=this.doc,m=[],y=!this.display.shift&&!g.extend&&g.sel.somethingSelected();if(g.extendSelectionsBy(function(z){if(y)return a<0?z.from():z.to();var M=Vn(h,z.head,"div");z.goalColumn!=null&&(M.left=z.goalColumn),m.push(M.left);var N=Yl(h,M,a,u);return u=="page"&&z==g.sel.primary()&&Sa(h,ml(h,N,"div").top-M.top),N},We),m.length)for(var C=0;C<g.sel.ranges.length;C++)g.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var u=this.doc,h=ke(u,a.line).text,g=a.ch,m=a.ch;if(h){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==h.length)&&g?--g:++m;for(var C=h.charAt(g),z=B(C,y)?function(M){return B(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!B(M)};g>0&&z(h.charAt(g-1));)--g;for(;m<h.length&&z(h.charAt(m));)++m}return new _t(ie(a.line,g),ie(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ot()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(a,u){ms(this,a,u)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-an(this)-this.display.barHeight,width:a.scrollWidth-an(this)-this.display.barWidth,clientHeight:hl(this),clientWidth:ji(this)}},scrollIntoView:Er(function(a,u){a==null?(a={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ie(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=u||0,a.from.line!=null?mc(this,a):yc(this,a.from,a.to,a.margin)}),setSize:Er(function(a,u){var h=this,g=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=g(a)),u!=null&&(this.display.wrapper.style.height=g(u)),this.options.lineWrapping&&dc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){eo(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ge(this,"refresh",this)}),operation:function(a){return Ar(this,a)},startOperation:function(){return Gn(this)},endOperation:function(){return ui(this)},refresh:Er(function(){var a=this.display.cachedTextHeight;rt(this),this.curOp.forceUpdate=!0,gs(this),ms(this,this.doc.scrollLeft,this.doc.scrollTop),Ru(this.display),(a==null||Math.abs(a-Qi(this.display))>.5||this.options.lineWrapping)&&Ji(this),Ge(this,"refresh",this)}),swapDoc:Er(function(a){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),zc(this,a),gs(this),this.display.input.reset(),ms(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,hr(this,"swapDoc",this,u),u}),phrase:function(a){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,a)?u[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}},Bn(e),e.registerHelper=function(a,u,h){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][u]=h},e.registerGlobalHelper=function(a,u,h,g){e.registerHelper(a,u,g),s[a]._global.push({pred:h,val:g})}}function Rs(e,t,s,a,u){var h=t,g=s,m=ke(e,t.line),y=u&&e.direction=="rtl"?-s:s;function C(){var Ce=t.line+y;return Ce<e.first||Ce>=e.first+e.size?!1:(t=new ie(Ce,t.ch,t.sticky),m=ke(e,Ce))}function z(Ce){var de;if(a=="codepoint"){var xe=m.text.charCodeAt(t.ch+(s>0?0:-1));if(isNaN(xe))de=null;else{var Re=s>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;de=new ie(t.line,Math.max(0,Math.min(m.text.length,t.ch+s*(Re?2:1))),-s)}}else u?de=Bc(e.cm,m,t,s):de=Nl(m,t,s);if(de==null)if(!Ce&&C())t=Na(u,e.cm,m,t.line,y);else return!1;else t=de;return!0}if(a=="char"||a=="codepoint")z();else if(a=="column")z(!0);else if(a=="word"||a=="group")for(var M=null,N=a=="group",R=e.cm&&e.cm.getHelper(t,"wordChars"),Z=!0;!(s<0&&!z(!Z));Z=!1){var J=m.text.charAt(t.ch)||`
2214
+ `)&&(Z=J=ie(Z.line,0)));var le={from:Z,to:J,text:C?C[N%C.length]:y,origin:u||(m?"paste":e.state.cutIncoming>g?"cut":"+input")};Oa(e.doc,le),hr(e,"inputRead",e,le)}t&&!m&&t1(e,t),io(e),e.curOp.updateInput<2&&(e.curOp.updateInput=k),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function s0(e,t){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ar(t,function(){return Yl(t,s,0,null,"paste")}),!0}function t1(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var u=s.ranges[a];if(!(u.head.ch>100||a&&s.ranges[a-1].head.line==u.head.line)){var h=e.getModeAt(u.head),g=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){g=Ds(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Me(e.doc,u.head.line).text.slice(0,u.head.ch))&&(g=Ds(e,u.head.line,"smart"));g&&hr(e,"electricInput",e,u.head.line)}}}function l0(e){for(var t=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var u=e.doc.sel.ranges[a].head.line,h={anchor:ie(u,0),head:ie(u+1,0)};s.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:s}}function r1(e,t,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!t)}function n1(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),Ae&&(e.style.border="1px solid black"),r1(e),t}function Ai(e){var t=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,u){var h=this.options,g=h[a];h[a]==u&&a!="mode"||(h[a]=u,t.hasOwnProperty(a)&&Kt(this,t[a])(this,u,g),Ge(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,u){this.state.keyMaps[u?"push":"unshift"](Fr(a))},removeKeyMap:function(a){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==a||u[h].name==a)return u.splice(h,1),!0},addOverlay:Er(function(a,u){var h=a.token?a:e.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");Mt(this.state.overlays,{mode:h,modeSpec:a,opaque:u&&u.opaque,priority:u&&u.priority||0},function(g){return g.priority}),this.state.modeGen++,rt(this)}),removeOverlay:Er(function(a){for(var u=this.state.overlays,h=0;h<u.length;++h){var g=u[h].modeSpec;if(g==a||typeof a=="string"&&g.name==a){u.splice(h,1),this.state.modeGen++,rt(this);return}}}),indentLine:Er(function(a,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Gi(this.doc,a)&&Ds(this,a,u,h)}),indentSelection:Er(function(a){for(var u=this.doc.sel.ranges,h=-1,g=0;g<u.length;g++){var m=u[g];if(m.empty())m.head.line>h&&(Ds(this,m.head.line,a,!0),h=m.head.line,g==this.doc.sel.primIndex&&io(this));else{var y=m.from(),C=m.to(),_=Math.max(h,y.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var k=_;k<h;++k)Ds(this,k,a);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[g].from().ch>0&&Vu(this.doc,g,new Lt(y,N[g].to()),at)}}}),getTokenAt:function(a,u){return ol(this,a,u)},getLineTokens:function(a,u){return ol(this,ie(a),u,!0)},getTokenTypeAt:function(a){a=me(this.doc,a);var u=mu(this,Me(this.doc,a.line)),h=0,g=(u.length-1)/2,m=a.ch,y;if(m==0)y=u[2];else for(;;){var C=h+g>>1;if((C?u[C*2-1]:0)>=m)g=C;else if(u[C*2+1]<m)h=C+1;else{y=u[C*2+2];break}}var _=y?y.indexOf("overlay "):-1;return _<0?y:_==0?null:y.slice(0,_-1)},getModeAt:function(a){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(a).state).mode:u},getHelper:function(a,u){return this.getHelpers(a,u)[0]},getHelpers:function(a,u){var h=[];if(!s.hasOwnProperty(u))return h;var g=s[u],m=this.getModeAt(a);if(typeof m[u]=="string")g[m[u]]&&h.push(g[m[u]]);else if(m[u])for(var y=0;y<m[u].length;y++){var C=g[m[u][y]];C&&h.push(C)}else m.helperType&&g[m.helperType]?h.push(g[m.helperType]):g[m.name]&&h.push(g[m.name]);for(var _=0;_<g._global.length;_++){var k=g._global[_];k.pred(m,this)&&_e(h,k.val)==-1&&h.push(k.val)}return h},getStateAfter:function(a,u){var h=this.doc;return a=vt(h,a==null?h.first+h.size-1:a),ba(this,a+1,u).state},cursorCoords:function(a,u){var h,g=this.doc.sel.primary();return a==null?h=g.head:typeof a=="object"?h=me(this.doc,a):h=a?g.from():g.to(),Vn(this,h,u||"page")},charCoords:function(a,u){return yl(this,me(this.doc,a),u||"page")},coordsChar:function(a,u){return a=gc(this,a,u||"page"),$(this,a.left,a.top)},lineAtHeight:function(a,u){return a=gc(this,{top:a,left:0},u||"page").top,Un(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,u,h){var g=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,g=!0),m=Me(this.doc,a)}else m=a;return ml(this,m,{top:0,left:0},u||"page",h||g).top+(g?this.doc.height-Xr(m):0)},defaultTextHeight:function(){return Ji(this.display)},defaultCharWidth:function(){return Ca(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,u,h,g,m){var y=this.display;a=Vn(this,me(this.doc,a));var C=a.bottom,_=a.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),g=="over")C=a.top;else if(g=="above"||g=="near"){var k=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(g=="above"||a.bottom+u.offsetHeight>k)&&a.top>u.offsetHeight?C=a.top-u.offsetHeight:a.bottom+u.offsetHeight<=k&&(C=a.bottom),_+u.offsetWidth>N&&(_=N-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",m=="right"?(_=y.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(m=="left"?_=0:m=="middle"&&(_=(y.sizer.clientWidth-u.offsetWidth)/2),u.style.left=_+"px"),h&&zf(this,{left:_,top:C,right:_+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Er(Uc),triggerOnKeyPress:Er(Zc),triggerOnKeyUp:i0,triggerOnMouseDown:Er(Gc),execCommand:function(a){if(Go.hasOwnProperty(a))return Go[a].call(null,this)},triggerElectric:Er(function(a){t1(this,a)}),findPosH:function(a,u,h,g){var m=1;u<0&&(m=-1,u=-u);for(var y=me(this.doc,a),C=0;C<u&&(y=Rs(this.doc,y,m,h,g),!y.hitSide);++C);return y},moveH:Er(function(a,u){var h=this;this.extendSelectionsBy(function(g){return h.display.shift||h.doc.extend||g.empty()?Rs(h.doc,g.head,a,u,h.options.rtlMoveVisually):a<0?g.from():g.to()},We)}),deleteH:Er(function(a,u){var h=this.doc.sel,g=this.doc;h.somethingSelected()?g.replaceSelection("",null,"+delete"):wn(this,function(m){var y=Rs(g,m.head,a,u,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,u,h,g){var m=1,y=g;u<0&&(m=-1,u=-u);for(var C=me(this.doc,a),_=0;_<u;++_){var k=Vn(this,C,"div");if(y==null?y=k.left:k.left=y,C=Zl(this,k,m,h),C.hitSide)break}return C},moveV:Er(function(a,u){var h=this,g=this.doc,m=[],y=!this.display.shift&&!g.extend&&g.sel.somethingSelected();if(g.extendSelectionsBy(function(_){if(y)return a<0?_.from():_.to();var k=Vn(h,_.head,"div");_.goalColumn!=null&&(k.left=_.goalColumn),m.push(k.left);var N=Zl(h,k,a,u);return u=="page"&&_==g.sel.primary()&&_a(h,yl(h,N,"div").top-k.top),N},We),m.length)for(var C=0;C<g.sel.ranges.length;C++)g.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var u=this.doc,h=Me(u,a.line).text,g=a.ch,m=a.ch;if(h){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==h.length)&&g?--g:++m;for(var C=h.charAt(g),_=B(C,y)?function(k){return B(k,y)}:/\s/.test(C)?function(k){return/\s/.test(k)}:function(k){return!/\s/.test(k)&&!B(k)};g>0&&_(h.charAt(g-1));)--g;for(;m<h.length&&_(h.charAt(m));)++m}return new Lt(ie(a.line,g),ie(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):Ce(this.display.cursorDiv,"CodeMirror-overwrite"),Ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ot()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(a,u){ms(this,a,u)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-an(this)-this.display.barHeight,width:a.scrollWidth-an(this)-this.display.barWidth,clientHeight:pl(this),clientWidth:Ki(this)}},scrollIntoView:Er(function(a,u){a==null?(a={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ie(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=u||0,a.from.line!=null?Cc(this,a):wc(this,a.from,a.to,a.margin)}),setSize:Er(function(a,u){var h=this,g=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=g(a)),u!=null&&(this.display.wrapper.style.height=g(u)),this.options.lineWrapping&&pc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){to(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ge(this,"refresh",this)}),operation:function(a){return Ar(this,a)},startOperation:function(){return Gn(this)},endOperation:function(){return ui(this)},refresh:Er(function(){var a=this.display.cachedTextHeight;rt(this),this.curOp.forceUpdate=!0,gs(this),ms(this,this.doc.scrollLeft,this.doc.scrollTop),Nu(this.display),(a==null||Math.abs(a-Ji(this.display))>.5||this.options.lineWrapping)&&eo(this),Ge(this,"refresh",this)}),swapDoc:Er(function(a){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),kc(this,a),gs(this),this.display.input.reset(),ms(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,hr(this,"swapDoc",this,u),u}),phrase:function(a){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,a)?u[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}},Bn(e),e.registerHelper=function(a,u,h){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][u]=h},e.registerGlobalHelper=function(a,u,h,g){e.registerHelper(a,u,g),s[a]._global.push({pred:h,val:g})}}function Rs(e,t,s,a,u){var h=t,g=s,m=Me(e,t.line),y=u&&e.direction=="rtl"?-s:s;function C(){var we=t.line+y;return we<e.first||we>=e.first+e.size?!1:(t=new ie(we,t.ch,t.sticky),m=Me(e,we))}function _(we){var de;if(a=="codepoint"){var ze=m.text.charCodeAt(t.ch+(s>0?0:-1));if(isNaN(ze))de=null;else{var Re=s>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;de=new ie(t.line,Math.max(0,Math.min(m.text.length,t.ch+s*(Re?2:1))),-s)}}else u?de=Wc(e.cm,m,t,s):de=$l(m,t,s);if(de==null)if(!we&&C())t=Ra(u,e.cm,m,t.line,y);else return!1;else t=de;return!0}if(a=="char"||a=="codepoint")_();else if(a=="column")_(!0);else if(a=="word"||a=="group")for(var k=null,N=a=="group",R=e.cm&&e.cm.getHelper(t,"wordChars"),Z=!0;!(s<0&&!_(!Z));Z=!1){var J=m.text.charAt(t.ch)||`
2133
2215
  `,le=B(J,R)?"w":N&&J==`
2134
- `?"n":!N||/\s/.test(J)?null:"p";if(N&&!Z&&!le&&(le="s"),M&&M!=le){s<0&&(s=1,z(),t.sticky="after");break}if(le&&(M=le),s>0&&!z(!Z))break}var fe=_r(e,t,h,g,!0);return P(h,fe)&&(fe.hitSide=!0),fe}function Yl(e,t,s,a){var u=e.doc,h=t.left,g;if(a=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Qi(e.display),3);g=(s>0?t.bottom:t.top)+s*y}else a=="line"&&(g=s>0?t.bottom+3:t.top-3);for(var C;C=$(e,h,g),!!C.outside;){if(s<0?g<=0:g>=u.height){C.hitSide=!0;break}g+=s*5}return C}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,s=this,a=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,e1(u,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(m){for(var y=m.target;y;y=y.parentNode){if(y==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}$e(u,"paste",function(m){!h(m)||ir(a,m)||a0(m,a)||O<=11&&setTimeout(Kt(a,function(){return t.updateFromDOM()}),20)}),$e(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),$e(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),$e(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),$e(u,"touchstart",function(){return s.forceCompositionEnd()}),$e(u,"input",function(){t.composing||t.readFromDOMSoon()});function g(m){if(!(!h(m)||ir(a,m))){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=s0(a);On({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,at),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=kn.text.join(`
2135
- `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var z=t1(),M=z.firstChild;a.display.lineSpace.insertBefore(z,a.display.lineSpace.firstChild),M.value=kn.text.join(`
2136
- `);var N=ot();Bt(M),setTimeout(function(){a.display.lineSpace.removeChild(z),N.focus(),N==u&&s.showPrimarySelection()},50)}}$e(u,"copy",g),$e(u,"cut",g)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=bs(this.cm,!1);return e.focus=ot()==this.div,e},zt.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,s=t.doc.sel.primary(),a=s.from(),u=s.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=Ya(t,e.anchorNode,e.anchorOffset),g=Ya(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&g&&!g.bad&&w(qe(h,g),a)==0&&w(ae(h,g),u)==0)){var m=t.display.view,y=a.line>=t.display.viewFrom&&Ns(t,a)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&Ns(t,u);if(!C){var z=m[m.length-1].measure,M=z.maps?z.maps[z.maps.length-1]:z.map;C={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!y||!C){e.removeAllRanges();return}var N=e.rangeCount&&e.getRangeAt(0),R;try{R=ne(y.node,y.offset,C.offset,C.node)}catch{}R&&(!f&&t.state.focused?(e.collapse(y.node,y.offset),R.collapsed||(e.removeAllRanges(),e.addRange(R))):(e.removeAllRanges(),e.addRange(R)),N&&e.anchorNode==null?e.addRange(N):f&&this.startGracePeriod()),this.rememberSelection()}},zt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},zt.prototype.showMultipleSelections=function(e){W(this.cm.display.cursorDiv,e.cursors),W(this.cm.display.selectionDiv,e.selection)},zt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},zt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return ve(this.div,t)},zt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ot()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zt.prototype.blur=function(){this.div.blur()},zt.prototype.getField=function(){return this.div},zt.prototype.supportsTouch=function(){return!0},zt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},zt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},zt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Ie&&q&&this.cm.display.gutterSpecs.length&&Ua(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ya(t,e.anchorNode,e.anchorOffset),a=Ya(t,e.focusNode,e.focusOffset);s&&a&&Ar(t,function(){Lr(t.doc,so(s,a),at),(s.bad||a.bad)&&(t.curOp.selectionChanged=!0)})}}},zt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,s=e.doc.sel.primary(),a=s.from(),u=s.to();if(a.ch==0&&a.line>e.firstLine()&&(a=ie(a.line-1,ke(e.doc,a.line-1).length)),u.ch==ke(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=ie(u.line+1,0)),a.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,g,m;a.line==t.viewFrom||(h=li(e,a.line))==0?(g=Lt(t.view[0].line),m=t.view[0].node):(g=Lt(t.view[h].line),m=t.view[h-1].node.nextSibling);var y=li(e,u.line),C,z;if(y==t.view.length-1?(C=t.viewTo-1,z=t.lineDiv.lastChild):(C=Lt(t.view[y+1].line)-1,z=t.view[y+1].node.previousSibling),!m)return!1;for(var M=e.doc.splitLines(Zl(e,m,z,g,C)),N=vn(e.doc,ie(g,0),ie(C,ke(e.doc,C).text.length));M.length>1&&N.length>1;)if(Xe(M)==Xe(N))M.pop(),N.pop(),C--;else if(M[0]==N[0])M.shift(),N.shift(),g++;else break;for(var R=0,Z=0,J=M[0],le=N[0],fe=Math.min(J.length,le.length);R<fe&&J.charCodeAt(R)==le.charCodeAt(R);)++R;for(var Ce=Xe(M),de=Xe(N),xe=Math.min(Ce.length-(M.length==1?R:0),de.length-(N.length==1?R:0));Z<xe&&Ce.charCodeAt(Ce.length-Z-1)==de.charCodeAt(de.length-Z-1);)++Z;if(M.length==1&&N.length==1&&g==a.line)for(;R&&R>a.ch&&Ce.charCodeAt(Ce.length-Z-1)==de.charCodeAt(de.length-Z-1);)R--,Z++;M[M.length-1]=Ce.slice(0,Ce.length-Z).replace(/^\u200b+/,""),M[0]=M[0].slice(R).replace(/\u200b+$/,"");var Re=ie(g,R),Pe=ie(C,N.length?Xe(N).length-Z:0);if(M.length>1||M[0]||w(Re,Pe))return Ea(e.doc,M,Re,Pe,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return rt(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Ul)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ns(e,t){var s=Au(e,t.line);if(!s||s.hidden)return null;var a=ke(e.doc,t.line),u=sc(s,a,t.line),h=Hr(a,e.doc.direction),g="left";if(h){var m=Zt(h,t.ch);g=m%2?"right":"left"}var y=pl(u.map,t.ch,g);return y.offset=y.collapse=="right"?y.end:y.start,y}function Ua(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Be(e,t){return t&&(e.bad=!0),e}function Zl(e,t,s,a,u){var h="",g=!1,m=e.doc.lineSeparator(),y=!1;function C(R){return function(Z){return Z.id==R}}function z(){g&&(h+=m,y&&(h+=m),g=y=!1)}function M(R){R&&(z(),h+=R)}function N(R){if(R.nodeType==1){var Z=R.getAttribute("cm-text");if(Z){M(Z);return}var J=R.getAttribute("cm-marker"),le;if(J){var fe=e.findMarks(ie(a,0),ie(u+1,0),C(+J));fe.length&&(le=fe[0].find(0))&&M(vn(e.doc,le.from,le.to).join(m));return}if(R.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;Ce&&z();for(var de=0;de<R.childNodes.length;de++)N(R.childNodes[de]);/^(pre|p)$/i.test(R.nodeName)&&(y=!0),Ce&&(g=!0)}else R.nodeType==3&&M(R.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=s;)t=t.nextSibling,y=!1;return h}function Ya(e,t,s){var a;if(t==e.display.lineDiv){if(a=e.display.lineDiv.childNodes[s],!a)return Be(e.clipPos(ie(e.display.viewTo-1)),!0);t=null,s=0}else for(a=t;;a=a.parentNode){if(!a||a==e.display.lineDiv)return null;if(a.parentNode&&a.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==a)return jo(h,t,s)}}function jo(e,t,s){var a=e.text.firstChild,u=!1;if(!t||!ve(a,t))return Be(ie(Lt(e.line),0),!0);if(t==a&&(u=!0,t=a.childNodes[s],s=0,!t)){var h=e.rest?Xe(e.rest):e.line;return Be(ie(Lt(h),h.text.length),u)}var g=t.nodeType==3?t:null,m=t;for(!g&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(g=t.firstChild,s&&(s=g.nodeValue.length));m.parentNode!=a;)m=m.parentNode;var y=e.measure,C=y.maps;function z(le,fe,Ce){for(var de=-1;de<(C?C.length:0);de++)for(var xe=de<0?y.map:C[de],Re=0;Re<xe.length;Re+=3){var Pe=xe[Re+2];if(Pe==le||Pe==fe){var lt=Lt(de<0?e.line:e.rest[de]),Ot=xe[Re]+Ce;return(Ce<0||Pe!=le)&&(Ot=xe[Re+(Ce?1:0)]),ie(lt,Ot)}}}var M=z(g,m,s);if(M)return Be(M,u);for(var N=m.nextSibling,R=g?g.nodeValue.length-s:0;N;N=N.nextSibling){if(M=z(N,N.firstChild,0),M)return Be(ie(M.line,M.ch-R),u);R+=N.textContent.length}for(var Z=m.previousSibling,J=s;Z;Z=Z.previousSibling){if(M=z(Z,Z.firstChild,-1),M)return Be(ie(M.line,M.ch+J),u);J+=Z.textContent.length}}var tr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};tr.prototype.init=function(e){var t=this,s=this,a=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ae&&(u.style.width="0px"),$e(u,"input",function(){S&&O>=9&&t.hasSelection&&(t.hasSelection=null),s.poll()}),$e(u,"paste",function(g){ir(a,g)||a0(g,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(g){if(!ir(a,g)){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var m=s0(a);On({lineWise:!0,text:m.text}),g.type=="cut"?a.setSelections(m.ranges,null,at):(s.prevInput="",u.value=m.text.join(`
2137
- `),Bt(u))}else return;g.type=="cut"&&(a.state.cutIncoming=+new Date)}}$e(u,"cut",h),$e(u,"copy",h),$e(e.scroller,"paste",function(g){if(!(zi(e,g)||ir(a,g))){if(!u.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var m=new Event("paste");m.clipboardData=g.clipboardData,u.dispatchEvent(m)}}),$e(e.lineSpace,"selectstart",function(g){zi(e,g)||xr(g)}),$e(u,"compositionstart",function(){var g=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:g,range:a.markText(g,a.getCursor("to"),{className:"CodeMirror-composing"})}}),$e(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},tr.prototype.createField=function(e){this.wrapper=t1(),this.textarea=this.wrapper.firstChild},tr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},tr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,s=e.doc,a=bs(e);if(e.options.moveInputWithCursor){var u=Vn(e,s.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),g=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+g.top-h.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+g.left-h.left))}return a},tr.prototype.showSelection=function(e){var t=this.cm,s=t.display;W(s.cursorDiv,e.cursors),W(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},tr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var s=t.getSelection();this.textarea.value=s,t.state.focused&&Bt(this.textarea),S&&O>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",S&&O>=9&&(this.hasSelection=null))}},tr.prototype.getField=function(){return this.textarea},tr.prototype.supportsTouch=function(){return!1},tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!pe||ot()!=this.textarea))try{this.textarea.focus()}catch{}},tr.prototype.blur=function(){this.textarea.blur()},tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tr.prototype.receivedFocus=function(){this.slowPoll()},tr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},tr.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function s(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,s)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,s)},tr.prototype.poll=function(){var e=this,t=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||Js(s)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=s.value;if(u==a&&!t.somethingSelected())return!1;if(S&&O>=9&&this.hasSelection===u||he&&/[\uf700-\uf7ff]/.test(u))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var h=u.charCodeAt(0);if(h==8203&&!a&&(a="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var g=0,m=Math.min(a.length,u.length);g<m&&a.charCodeAt(g)==u.charCodeAt(g);)++g;return Ar(t,function(){Ul(t,u.slice(g),a.length-g,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
2138
- `)>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tr.prototype.onKeyPress=function(){S&&O>=9&&(this.hasSelection=null),this.fastPoll()},tr.prototype.onContextMenu=function(e){var t=this,s=t.cm,a=s.display,u=t.textarea;t.contextMenuPending&&t.contextMenuPending();var h=si(s,e),g=a.scroller.scrollTop;if(!h||X)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(h)==-1&&Kt(s,Lr)(s.doc,so(h),at);var y=u.style.cssText,C=t.wrapper.style.cssText,z=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
2139
- top: `+(e.clientY-z.top-5)+"px; left: "+(e.clientX-z.left-5)+`px;
2216
+ `?"n":!N||/\s/.test(J)?null:"p";if(N&&!Z&&!le&&(le="s"),k&&k!=le){s<0&&(s=1,_(),t.sticky="after");break}if(le&&(k=le),s>0&&!_(!Z))break}var fe=Lr(e,t,h,g,!0);return P(h,fe)&&(fe.hitSide=!0),fe}function Zl(e,t,s,a){var u=e.doc,h=t.left,g;if(a=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Ji(e.display),3);g=(s>0?t.bottom:t.top)+s*y}else a=="line"&&(g=s>0?t.bottom+3:t.top-3);for(var C;C=$(e,h,g),!!C.outside;){if(s<0?g<=0:g>=u.height){C.hitSide=!0;break}g+=s*5}return C}var _t=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_t.prototype.init=function(e){var t=this,s=this,a=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,r1(u,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(m){for(var y=m.target;y;y=y.parentNode){if(y==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}$e(u,"paste",function(m){!h(m)||ir(a,m)||s0(m,a)||O<=11&&setTimeout(Kt(a,function(){return t.updateFromDOM()}),20)}),$e(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),$e(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),$e(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),$e(u,"touchstart",function(){return s.forceCompositionEnd()}),$e(u,"input",function(){t.composing||t.readFromDOMSoon()});function g(m){if(!(!h(m)||ir(a,m))){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=l0(a);On({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,at),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=Mn.text.join(`
2217
+ `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var _=n1(),k=_.firstChild;a.display.lineSpace.insertBefore(_,a.display.lineSpace.firstChild),k.value=Mn.text.join(`
2218
+ `);var N=ot();Bt(k),setTimeout(function(){a.display.lineSpace.removeChild(_),N.focus(),N==u&&s.showPrimarySelection()},50)}}$e(u,"copy",g),$e(u,"cut",g)},_t.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},_t.prototype.prepareSelection=function(){var e=bs(this.cm,!1);return e.focus=ot()==this.div,e},_t.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},_t.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_t.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,s=t.doc.sel.primary(),a=s.from(),u=s.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=Ua(t,e.anchorNode,e.anchorOffset),g=Ua(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&g&&!g.bad&&w(qe(h,g),a)==0&&w(ae(h,g),u)==0)){var m=t.display.view,y=a.line>=t.display.viewFrom&&Ns(t,a)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&Ns(t,u);if(!C){var _=m[m.length-1].measure,k=_.maps?_.maps[_.maps.length-1]:_.map;C={node:k[k.length-1],offset:k[k.length-2]-k[k.length-3]}}if(!y||!C){e.removeAllRanges();return}var N=e.rangeCount&&e.getRangeAt(0),R;try{R=ne(y.node,y.offset,C.offset,C.node)}catch{}R&&(!f&&t.state.focused?(e.collapse(y.node,y.offset),R.collapsed||(e.removeAllRanges(),e.addRange(R))):(e.removeAllRanges(),e.addRange(R)),N&&e.anchorNode==null?e.addRange(N):f&&this.startGracePeriod()),this.rememberSelection()}},_t.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},_t.prototype.showMultipleSelections=function(e){W(this.cm.display.cursorDiv,e.cursors),W(this.cm.display.selectionDiv,e.selection)},_t.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},_t.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return be(this.div,t)},_t.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ot()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_t.prototype.blur=function(){this.div.blur()},_t.prototype.getField=function(){return this.div},_t.prototype.supportsTouch=function(){return!0},_t.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},_t.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},_t.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Ie&&q&&this.cm.display.gutterSpecs.length&&Wa(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ua(t,e.anchorNode,e.anchorOffset),a=Ua(t,e.focusNode,e.focusOffset);s&&a&&Ar(t,function(){zr(t.doc,lo(s,a),at),(s.bad||a.bad)&&(t.curOp.selectionChanged=!0)})}}},_t.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,s=e.doc.sel.primary(),a=s.from(),u=s.to();if(a.ch==0&&a.line>e.firstLine()&&(a=ie(a.line-1,Me(e.doc,a.line-1).length)),u.ch==Me(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=ie(u.line+1,0)),a.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,g,m;a.line==t.viewFrom||(h=li(e,a.line))==0?(g=zt(t.view[0].line),m=t.view[0].node):(g=zt(t.view[h].line),m=t.view[h-1].node.nextSibling);var y=li(e,u.line),C,_;if(y==t.view.length-1?(C=t.viewTo-1,_=t.lineDiv.lastChild):(C=zt(t.view[y+1].line)-1,_=t.view[y+1].node.previousSibling),!m)return!1;for(var k=e.doc.splitLines(Vl(e,m,_,g,C)),N=vn(e.doc,ie(g,0),ie(C,Me(e.doc,C).text.length));k.length>1&&N.length>1;)if(Xe(k)==Xe(N))k.pop(),N.pop(),C--;else if(k[0]==N[0])k.shift(),N.shift(),g++;else break;for(var R=0,Z=0,J=k[0],le=N[0],fe=Math.min(J.length,le.length);R<fe&&J.charCodeAt(R)==le.charCodeAt(R);)++R;for(var we=Xe(k),de=Xe(N),ze=Math.min(we.length-(k.length==1?R:0),de.length-(N.length==1?R:0));Z<ze&&we.charCodeAt(we.length-Z-1)==de.charCodeAt(de.length-Z-1);)++Z;if(k.length==1&&N.length==1&&g==a.line)for(;R&&R>a.ch&&we.charCodeAt(we.length-Z-1)==de.charCodeAt(de.length-Z-1);)R--,Z++;k[k.length-1]=we.slice(0,we.length-Z).replace(/^\u200b+/,""),k[0]=k[0].slice(R).replace(/\u200b+$/,"");var Re=ie(g,R),Pe=ie(C,N.length?Xe(N).length-Z:0);if(k.length>1||k[0]||w(Re,Pe))return Aa(e.doc,k,Re,Pe,"+input"),!0},_t.prototype.ensurePolled=function(){this.forceCompositionEnd()},_t.prototype.reset=function(){this.forceCompositionEnd()},_t.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_t.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},_t.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return rt(e.cm)})},_t.prototype.setUneditable=function(e){e.contentEditable="false"},_t.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Yl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},_t.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},_t.prototype.onContextMenu=function(){},_t.prototype.resetPosition=function(){},_t.prototype.needsContentAttribute=!0;function Ns(e,t){var s=Eu(e,t.line);if(!s||s.hidden)return null;var a=Me(e.doc,t.line),u=uc(s,a,t.line),h=Hr(a,e.doc.direction),g="left";if(h){var m=Zt(h,t.ch);g=m%2?"right":"left"}var y=gl(u.map,t.ch,g);return y.offset=y.collapse=="right"?y.end:y.start,y}function Wa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Be(e,t){return t&&(e.bad=!0),e}function Vl(e,t,s,a,u){var h="",g=!1,m=e.doc.lineSeparator(),y=!1;function C(R){return function(Z){return Z.id==R}}function _(){g&&(h+=m,y&&(h+=m),g=y=!1)}function k(R){R&&(_(),h+=R)}function N(R){if(R.nodeType==1){var Z=R.getAttribute("cm-text");if(Z){k(Z);return}var J=R.getAttribute("cm-marker"),le;if(J){var fe=e.findMarks(ie(a,0),ie(u+1,0),C(+J));fe.length&&(le=fe[0].find(0))&&k(vn(e.doc,le.from,le.to).join(m));return}if(R.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;we&&_();for(var de=0;de<R.childNodes.length;de++)N(R.childNodes[de]);/^(pre|p)$/i.test(R.nodeName)&&(y=!0),we&&(g=!0)}else R.nodeType==3&&k(R.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=s;)t=t.nextSibling,y=!1;return h}function Ua(e,t,s){var a;if(t==e.display.lineDiv){if(a=e.display.lineDiv.childNodes[s],!a)return Be(e.clipPos(ie(e.display.viewTo-1)),!0);t=null,s=0}else for(a=t;;a=a.parentNode){if(!a||a==e.display.lineDiv)return null;if(a.parentNode&&a.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==a)return jo(h,t,s)}}function jo(e,t,s){var a=e.text.firstChild,u=!1;if(!t||!be(a,t))return Be(ie(zt(e.line),0),!0);if(t==a&&(u=!0,t=a.childNodes[s],s=0,!t)){var h=e.rest?Xe(e.rest):e.line;return Be(ie(zt(h),h.text.length),u)}var g=t.nodeType==3?t:null,m=t;for(!g&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(g=t.firstChild,s&&(s=g.nodeValue.length));m.parentNode!=a;)m=m.parentNode;var y=e.measure,C=y.maps;function _(le,fe,we){for(var de=-1;de<(C?C.length:0);de++)for(var ze=de<0?y.map:C[de],Re=0;Re<ze.length;Re+=3){var Pe=ze[Re+2];if(Pe==le||Pe==fe){var lt=zt(de<0?e.line:e.rest[de]),Ot=ze[Re]+we;return(we<0||Pe!=le)&&(Ot=ze[Re+(we?1:0)]),ie(lt,Ot)}}}var k=_(g,m,s);if(k)return Be(k,u);for(var N=m.nextSibling,R=g?g.nodeValue.length-s:0;N;N=N.nextSibling){if(k=_(N,N.firstChild,0),k)return Be(ie(k.line,k.ch-R),u);R+=N.textContent.length}for(var Z=m.previousSibling,J=s;Z;Z=Z.previousSibling){if(k=_(Z,Z.firstChild,-1),k)return Be(ie(k.line,k.ch+J),u);J+=Z.textContent.length}}var tr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};tr.prototype.init=function(e){var t=this,s=this,a=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ae&&(u.style.width="0px"),$e(u,"input",function(){S&&O>=9&&t.hasSelection&&(t.hasSelection=null),s.poll()}),$e(u,"paste",function(g){ir(a,g)||s0(g,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(g){if(!ir(a,g)){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var m=l0(a);On({lineWise:!0,text:m.text}),g.type=="cut"?a.setSelections(m.ranges,null,at):(s.prevInput="",u.value=m.text.join(`
2219
+ `),Bt(u))}else return;g.type=="cut"&&(a.state.cutIncoming=+new Date)}}$e(u,"cut",h),$e(u,"copy",h),$e(e.scroller,"paste",function(g){if(!(Si(e,g)||ir(a,g))){if(!u.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var m=new Event("paste");m.clipboardData=g.clipboardData,u.dispatchEvent(m)}}),$e(e.lineSpace,"selectstart",function(g){Si(e,g)||xr(g)}),$e(u,"compositionstart",function(){var g=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:g,range:a.markText(g,a.getCursor("to"),{className:"CodeMirror-composing"})}}),$e(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},tr.prototype.createField=function(e){this.wrapper=n1(),this.textarea=this.wrapper.firstChild},tr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},tr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,s=e.doc,a=bs(e);if(e.options.moveInputWithCursor){var u=Vn(e,s.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),g=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+g.top-h.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+g.left-h.left))}return a},tr.prototype.showSelection=function(e){var t=this.cm,s=t.display;W(s.cursorDiv,e.cursors),W(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},tr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var s=t.getSelection();this.textarea.value=s,t.state.focused&&Bt(this.textarea),S&&O>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",S&&O>=9&&(this.hasSelection=null))}},tr.prototype.getField=function(){return this.textarea},tr.prototype.supportsTouch=function(){return!1},tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!pe||ot()!=this.textarea))try{this.textarea.focus()}catch{}},tr.prototype.blur=function(){this.textarea.blur()},tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tr.prototype.receivedFocus=function(){this.slowPoll()},tr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},tr.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function s(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,s)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,s)},tr.prototype.poll=function(){var e=this,t=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||el(s)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=s.value;if(u==a&&!t.somethingSelected())return!1;if(S&&O>=9&&this.hasSelection===u||he&&/[\uf700-\uf7ff]/.test(u))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var h=u.charCodeAt(0);if(h==8203&&!a&&(a="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var g=0,m=Math.min(a.length,u.length);g<m&&a.charCodeAt(g)==u.charCodeAt(g);)++g;return Ar(t,function(){Yl(t,u.slice(g),a.length-g,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
2220
+ `)>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tr.prototype.onKeyPress=function(){S&&O>=9&&(this.hasSelection=null),this.fastPoll()},tr.prototype.onContextMenu=function(e){var t=this,s=t.cm,a=s.display,u=t.textarea;t.contextMenuPending&&t.contextMenuPending();var h=si(s,e),g=a.scroller.scrollTop;if(!h||X)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(h)==-1&&Kt(s,zr)(s.doc,lo(h),at);var y=u.style.cssText,C=t.wrapper.style.cssText,_=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
2221
+ top: `+(e.clientY-_.top-5)+"px; left: "+(e.clientX-_.left-5)+`px;
2140
2222
  z-index: 1000; background: `+(S?"rgba(255, 255, 255, .05)":"transparent")+`;
2141
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;I&&(M=window.scrollY),a.input.focus(),I&&window.scrollTo(null,M),a.input.reset(),s.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=R,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function N(){if(u.selectionStart!=null){var J=s.somethingSelected(),le="\u200B"+(J?u.value:"");u.value="\u21DA",u.value=le,t.prevInput=J?"":"\u200B",u.selectionStart=1,u.selectionEnd=le.length,a.selForContextMenu=s.doc.sel}}function R(){if(t.contextMenuPending==R&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,S&&O<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=g),u.selectionStart!=null)){(!S||S&&O<9)&&N();var J=0,le=function(){a.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Kt(s,Oc)(s):J++<10?a.detectingSelectAll=setTimeout(le,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(le,200)}}if(S&&O>=9&&N(),nt){ko(e);var Z=function(){kr(window,"mouseup",Z),setTimeout(R,20)};$e(window,"mouseup",Z)}else setTimeout(R,50)},tr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},tr.prototype.setUneditable=function(){},tr.prototype.needsContentAttribute=!1;function l0(e,t){if(t=t?er(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var s=ot();t.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var u;if(e.form&&($e(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var g=h.submit=function(){a(),h.submit=u,h.submit(),h.submit=g}}catch{}}t.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(kr(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return m}function r1(e){e.off=kr,e.on=$e,e.wheelEventPixels=Pf,e.Doc=Br,e.splitLines=To,e.countColumn=Ft,e.findColumn=Gt,e.isWordChar=tt,e.Pass=Ze,e.signal=Ge,e.Line=Tr,e.changeEnd=lo,e.scrollbarModel=wl,e.Pos=ie,e.cmpPos=w,e.modes=Ln,e.mimeModes=pn,e.resolveMode=Po,e.getMode=va,e.modeExtensions=Fn,e.extendMode=Wn,e.copyState=gn,e.startState=as,e.innerMode=os,e.commands=Go,e.keyMap=Oi,e.keyName=Qu,e.isModifierKey=Rl,e.lookupKey=Ti,e.normalizeKeyMap=$f,e.StringStream=Wt,e.SharedTextMarker=Ra,e.TextMarker=fo,e.LineWidget=ks,e.e_preventDefault=xr,e.e_stopPropagation=ga,e.e_stop=ko,e.addClass=At,e.contains=ve,e.rmClass=ye,e.keyNames=po}Wl(Dt),Pi(Dt);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Vl in Br.prototype)Br.prototype.hasOwnProperty(Vl)&&_e(Wr,Vl)<0&&(Dt.prototype[Vl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Br.prototype[Vl]));return Bn(Br),Dt.inputStyles={textarea:tr,contenteditable:zt},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),tl.apply(this,arguments)},Dt.defineMIME=Li,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,t){Dt.prototype[e]=t},Dt.defineDocExtension=function(e,t){Br.prototype[e]=t},Dt.fromTextArea=l0,r1(Dt),Dt.version="5.62.3",Dt})})(ca);const v0=ca.exports,J9=`.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}
2142
- `,e8=Se`
2223
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var k;I&&(k=window.scrollY),a.input.focus(),I&&window.scrollTo(null,k),a.input.reset(),s.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=R,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function N(){if(u.selectionStart!=null){var J=s.somethingSelected(),le="\u200B"+(J?u.value:"");u.value="\u21DA",u.value=le,t.prevInput=J?"":"\u200B",u.selectionStart=1,u.selectionEnd=le.length,a.selForContextMenu=s.doc.sel}}function R(){if(t.contextMenuPending==R&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,S&&O<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=g),u.selectionStart!=null)){(!S||S&&O<9)&&N();var J=0,le=function(){a.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Kt(s,Pc)(s):J++<10?a.detectingSelectAll=setTimeout(le,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(le,200)}}if(S&&O>=9&&N(),nt){Mo(e);var Z=function(){Mr(window,"mouseup",Z),setTimeout(R,20)};$e(window,"mouseup",Z)}else setTimeout(R,50)},tr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},tr.prototype.setUneditable=function(){},tr.prototype.needsContentAttribute=!1;function u0(e,t){if(t=t?er(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var s=ot();t.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var u;if(e.form&&($e(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var g=h.submit=function(){a(),h.submit=u,h.submit(),h.submit=g}}catch{}}t.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(Mr(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return m}function i1(e){e.off=Mr,e.on=$e,e.wheelEventPixels=Ef,e.Doc=Br,e.splitLines=To,e.countColumn=Ft,e.findColumn=Vt,e.isWordChar=tt,e.Pass=Ze,e.signal=Ge,e.Line=Tr,e.changeEnd=uo,e.scrollbarModel=xl,e.Pos=ie,e.cmpPos=w,e.modes=zn,e.mimeModes=pn,e.resolveMode=Po,e.getMode=ga,e.modeExtensions=Fn,e.extendMode=Wn,e.copyState=gn,e.startState=as,e.innerMode=os,e.commands=Go,e.keyMap=Ti,e.keyName=Ju,e.isModifierKey=Nl,e.lookupKey=Pi,e.normalizeKeyMap=Bf,e.StringStream=Wt,e.SharedTextMarker=Da,e.TextMarker=ho,e.LineWidget=Ms,e.e_preventDefault=xr,e.e_stopPropagation=pa,e.e_stop=Mo,e.addClass=At,e.contains=be,e.rmClass=Ce,e.keyNames=go}Ul(Dt),Ai(Dt);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Gl in Br.prototype)Br.prototype.hasOwnProperty(Gl)&&_e(Wr,Gl)<0&&(Dt.prototype[Gl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Br.prototype[Gl]));return Bn(Br),Dt.inputStyles={textarea:tr,contenteditable:_t},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),rl.apply(this,arguments)},Dt.defineMIME=Li,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,t){Dt.prototype[e]=t},Dt.defineDocExtension=function(e,t){Br.prototype[e]=t},Dt.fromTextArea=u0,i1(Dt),Dt.version="5.62.3",Dt})}(hd)),hd.exports}var b0=es();const s8=`.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}
2224
+ `,l8=ge`
2143
2225
  .cm-s-skedulo .cm-header {
2144
2226
  color: blue;
2145
2227
  }
@@ -2217,12 +2299,12 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,s=[],a=e.length;t<=a;){var u=e.
2217
2299
  .cm-invalidchar {
2218
2300
  color: #f00;
2219
2301
  }
2220
- `;(function(r,n){(function(o){o(ca.exports)})(function(o){o.overlayMode=function(c,f,p){return{startState:function(){return{base:o.startState(c),overlay:o.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:o.copyState(c,b.base),overlay:o.copyState(f,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,k){return(b!=k.streamSeen||Math.min(k.basePos,k.overlayPos)<b.start)&&(k.streamSeen=b,k.basePos=k.overlayPos=b.start),b.start==k.basePos&&(k.baseCur=c.token(b,k.base),k.basePos=b.pos),b.start==k.overlayPos&&(b.pos=b.start,k.overlayCur=f.token(b,k.overlay),k.overlayPos=b.pos),b.pos=Math.min(k.basePos,k.overlayPos),k.overlayCur==null?k.baseCur:k.baseCur!=null&&k.overlay.combineTokens||p&&k.overlay.combineTokens==null?k.baseCur+" "+k.overlayCur:k.overlayCur},indent:c.indent&&function(b,k,S){return c.indent(b.base,k,S)},electricChars:c.electricChars,innerMode:function(b){return{state:b.base,mode:c}},blankLine:function(b){var k,S;return c.blankLine&&(k=c.blankLine(b.base)),f.blankLine&&(S=f.blankLine(b.overlay)),S==null?k:p&&k!=null?k+" "+S:S}}}})})();(function(r,n){(function(o){o(ca.exports)})(function(o){o.defineMode("jinja2",function(){var c=["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"],f=/^[+\-*&%=<>!?|~^]/,p=/^[:\[\(\{]/,b=["true","false"],k=/^(\d[+\-\*\/])?\d+(\.\d+)?/;c=new RegExp("(("+c.join(")|(")+"))\\b"),b=new RegExp("(("+b.join(")|(")+"))\\b");function S(O,I){var U=O.peek();if(I.incomment)return O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(I.intag){if(I.operator){if(I.operator=!1,O.match(b))return"atom";if(O.match(k))return"number"}if(I.sign){if(I.sign=!1,O.match(b))return"atom";if(O.match(k))return"number"}if(I.instring)return U==I.instring&&(I.instring=!1),O.next(),"string";if(U=="'"||U=='"')return I.instring=U,O.next(),"string";if(O.match(I.intag+"}")||O.eat("-")&&O.match(I.intag+"}"))return I.intag=!1,"tag";if(O.match(f))return I.operator=!0,"operator";if(O.match(p))I.sign=!0;else if(O.eat(" ")||O.sol()){if(O.match(c))return"keyword";if(O.match(b))return"atom";if(O.match(k))return"number";O.sol()&&O.next()}else O.next();return"variable"}else if(O.eat("{")){if(O.eat("#"))return I.incomment=!0,O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(U=O.eat(/\{|%/))return I.intag=U,U=="{"&&(I.intag="}"),O.eat("-"),"tag"}O.next()}return{startState:function(){return{tokenize:S}},token:function(O,I){return I.tokenize(O,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();var t8={exports:{}};(function(r,n){(function(o){o(ca.exports)})(function(o){var c={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},f={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};o.defineMode("xml",function(p,b){var k=p.indentUnit,S={},O=b.htmlMode?c:f;for(var I in O)S[I]=O[I];for(var I in b)S[I]=b[I];var U,q;function X(E,T){function ne(At){return T.tokenize=At,At(E,T)}var ve=E.next();if(ve=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ne(me("atom","]]>")):null:E.match("--")?ne(me("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ne(Ae(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),T.tokenize=me("meta","?>"),"meta"):(U=E.eat("/")?"closeTag":"openTag",T.tokenize=ce,"tag bracket");if(ve=="&"){var ot;return E.eat("#")?E.eat("x")?ot=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):ot=E.eatWhile(/[\d]/)&&E.eat(";"):ot=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),ot?"atom":"error"}else return E.eatWhile(/[^&<]/),null}X.isInText=!0;function ce(E,T){var ne=E.next();if(ne==">"||ne=="/"&&E.eat(">"))return T.tokenize=X,U=ne==">"?"endTag":"selfcloseTag","tag bracket";if(ne=="=")return U="equals",null;if(ne=="<"){T.tokenize=X,T.state=Te,T.tagName=T.tagStart=null;var ve=T.tokenize(E,T);return ve?ve+" tag error":"tag error"}else return/[\'\"]/.test(ne)?(T.tokenize=we(ne),T.stringStartCol=E.column(),T.tokenize(E,T)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function we(E){var T=function(ne,ve){for(;!ne.eol();)if(ne.next()==E){ve.tokenize=ce;break}return"string"};return T.isInAttribute=!0,T}function me(E,T){return function(ne,ve){for(;!ne.eol();){if(ne.match(T)){ve.tokenize=X;break}ne.next()}return E}}function Ae(E){return function(T,ne){for(var ve;(ve=T.next())!=null;){if(ve=="<")return ne.tokenize=Ae(E+1),ne.tokenize(T,ne);if(ve==">")if(E==1){ne.tokenize=X;break}else return ne.tokenize=Ae(E-1),ne.tokenize(T,ne)}return"meta"}}function Ie(E,T,ne){this.prev=E.context,this.tagName=T||"",this.indent=E.indented,this.startOfLine=ne,(S.doNotIndent.hasOwnProperty(T)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function pe(E){E.context&&(E.context=E.context.prev)}function he(E,T){for(var ne;;){if(!E.context||(ne=E.context.tagName,!S.contextGrabbers.hasOwnProperty(ne)||!S.contextGrabbers[ne].hasOwnProperty(T)))return;pe(E)}}function Te(E,T,ne){return E=="openTag"?(ne.tagStart=T.column(),He):E=="closeTag"?Ye:Te}function He(E,T,ne){return E=="word"?(ne.tagName=T.current(),q="tag",ge):S.allowMissingTagName&&E=="endTag"?(q="tag bracket",ge(E,T,ne)):(q="error",He)}function Ye(E,T,ne){if(E=="word"){var ve=T.current();return ne.context&&ne.context.tagName!=ve&&S.implicitlyClosed.hasOwnProperty(ne.context.tagName)&&pe(ne),ne.context&&ne.context.tagName==ve||S.matchClosing===!1?(q="tag",et):(q="tag error",nt)}else return S.allowMissingTagName&&E=="endTag"?(q="tag bracket",et(E,T,ne)):(q="error",nt)}function et(E,T,ne){return E!="endTag"?(q="error",et):(pe(ne),Te)}function nt(E,T,ne){return q="error",et(E,T,ne)}function ge(E,T,ne){if(E=="word")return q="attribute",ye;if(E=="endTag"||E=="selfcloseTag"){var ve=ne.tagName,ot=ne.tagStart;return ne.tagName=ne.tagStart=null,E=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(ve)?he(ne,ve):(he(ne,ve),ne.context=new Ie(ne,ve,ot==ne.indented)),Te}return q="error",ge}function ye(E,T,ne){return E=="equals"?it:(S.allowMissing||(q="error"),ge(E,T,ne))}function it(E,T,ne){return E=="string"?W:E=="word"&&S.allowUnquoted?(q="string",ge):(q="error",ge(E,T,ne))}function W(E,T,ne){return E=="string"?W:ge(E,T,ne)}return{startState:function(E){var T={tokenize:X,state:Te,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(T.baseIndent=E),T},token:function(E,T){if(!T.tagName&&E.sol()&&(T.indented=E.indentation()),E.eatSpace())return null;U=null;var ne=T.tokenize(E,T);return(ne||U)&&ne!="comment"&&(q=null,T.state=T.state(U||ne,E,T),q&&(ne=q=="error"?ne+" error":q)),ne},indent:function(E,T,ne){var ve=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+k;if(ve&&ve.noIndent)return o.Pass;if(E.tokenize!=ce&&E.tokenize!=X)return ne?ne.match(/^(\s*)/)[0].length:0;if(E.tagName)return S.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+k*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/<!\[CDATA\[/.test(T))return 0;var ot=T&&/^<(\/)?([\w_:\.-]*)/.exec(T);if(ot&&ot[1])for(;ve;)if(ve.tagName==ot[2]){ve=ve.prev;break}else if(S.implicitlyClosed.hasOwnProperty(ve.tagName))ve=ve.prev;else break;else if(ot)for(;ve;){var At=S.contextGrabbers[ve.tagName];if(At&&At.hasOwnProperty(ot[2]))ve=ve.prev;else break}for(;ve&&ve.prev&&!ve.startOfLine;)ve=ve.prev;return ve?ve.indent+k:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(E){E.state==it&&(E.state=ge)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var T=[],ne=E.context;ne;ne=ne.prev)T.push(ne.tagName);return T.reverse()}}}),o.defineMIME("text/xml","xml"),o.defineMIME("application/xml","xml"),o.mimeModes.hasOwnProperty("text/html")||o.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var r8={exports:{}};(function(r,n){(function(o){o(ca.exports)})(function(o){o.defineMode("javascript",function(c,f){var p=c.indentUnit,b=f.statementIndent,k=f.jsonld,S=f.json||k,O=f.trackScope!==!1,I=f.typescript,U=f.wordCharacters||/[\w$\xa1-\uffff]/,q=function(){function w(Or){return{type:Or,style:"keyword"}}var P=w("keyword a"),j=w("keyword b"),ae=w("keyword c"),qe=w("keyword d"),vt=w("operator"),be={type:"atom",style:"atom"};return{if:w("if"),while:P,with:P,else:j,do:j,try:j,finally:j,return:qe,break:qe,continue:qe,new:w("new"),delete:ae,void:ae,throw:ae,debugger:w("debugger"),var:w("var"),const:w("var"),let:w("var"),function:w("function"),catch:w("catch"),for:w("for"),switch:w("switch"),case:w("case"),default:w("default"),in:vt,typeof:vt,instanceof:vt,true:be,false:be,null:be,undefined:be,NaN:be,Infinity:be,this:w("this"),class:w("class"),super:w("atom"),yield:ae,export:w("export"),import:w("import"),extends:ae,await:ae}}(),X=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function we(w){for(var P=!1,j,ae=!1;(j=w.next())!=null;){if(!P){if(j=="/"&&!ae)return;j=="["?ae=!0:ae&&j=="]"&&(ae=!1)}P=!P&&j=="\\"}}var me,Ae;function Ie(w,P,j){return me=w,Ae=j,P}function pe(w,P){var j=w.next();if(j=='"'||j=="'")return P.tokenize=he(j),P.tokenize(w,P);if(j=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(j=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(j))return Ie(j);if(j=="="&&w.eat(">"))return Ie("=>","operator");if(j=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(j))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(j=="/")return w.eat("*")?(P.tokenize=Te,Te(w,P)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ie(w,P,1)?(we(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(j=="`")return P.tokenize=He,He(w,P);if(j=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(j=="#"&&w.eatWhile(U))return Ie("variable","property");if(j=="<"&&w.match("!--")||j=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(X.test(j))return(j!=">"||!P.lexical||P.lexical.type!=">")&&(w.eat("=")?(j=="!"||j=="=")&&w.eat("="):/[<>*+\-|&?]/.test(j)&&(w.eat(j),j==">"&&w.eat(j))),j=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(U.test(j)){w.eatWhile(U);var ae=w.current();if(P.lastType!="."){if(q.propertyIsEnumerable(ae)){var qe=q[ae];return Ie(qe.type,qe.style,ae)}if(ae=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ae)}return Ie("variable","variable",ae)}}function he(w){return function(P,j){var ae=!1,qe;if(k&&P.peek()=="@"&&P.match(ce))return j.tokenize=pe,Ie("jsonld-keyword","meta");for(;(qe=P.next())!=null&&!(qe==w&&!ae);)ae=!ae&&qe=="\\";return ae||(j.tokenize=pe),Ie("string","string")}}function Te(w,P){for(var j=!1,ae;ae=w.next();){if(ae=="/"&&j){P.tokenize=pe;break}j=ae=="*"}return Ie("comment","comment")}function He(w,P){for(var j=!1,ae;(ae=w.next())!=null;){if(!j&&(ae=="`"||ae=="$"&&w.eat("{"))){P.tokenize=pe;break}j=!j&&ae=="\\"}return Ie("quasi","string-2",w.current())}var Ye="([{}])";function et(w,P){P.fatArrowAt&&(P.fatArrowAt=null);var j=w.string.indexOf("=>",w.start);if(!(j<0)){if(I){var ae=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,j));ae&&(j=ae.index)}for(var qe=0,vt=!1,be=j-1;be>=0;--be){var Or=w.string.charAt(be),on=Ye.indexOf(Or);if(on>=0&&on<3){if(!qe){++be;break}if(--qe==0){Or=="("&&(vt=!0);break}}else if(on>=3&&on<6)++qe;else if(U.test(Or))vt=!0;else if(/["'\/`]/.test(Or))for(;;--be){if(be==0)return;var _i=w.string.charAt(be-1);if(_i==Or&&w.string.charAt(be-2)!="\\"){be--;break}}else if(vt&&!qe){++be;break}}vt&&!qe&&(P.fatArrowAt=be)}}var nt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ge(w,P,j,ae,qe,vt){this.indented=w,this.column=P,this.type=j,this.prev=qe,this.info=vt,ae!=null&&(this.align=ae)}function ye(w,P){if(!O)return!1;for(var j=w.localVars;j;j=j.next)if(j.name==P)return!0;for(var ae=w.context;ae;ae=ae.prev)for(var j=ae.vars;j;j=j.next)if(j.name==P)return!0}function it(w,P,j,ae,qe){var vt=w.cc;for(W.state=w,W.stream=qe,W.marked=null,W.cc=vt,W.style=P,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var be=vt.length?vt.pop():S?We:at;if(be(j,ae)){for(;vt.length&&vt[vt.length-1].lex;)vt.pop()();return W.marked?W.marked:j=="variable"&&ye(w,ae)?"variable-2":P}}}var W={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)W.cc.push(arguments[w])}function T(){return E.apply(null,arguments),!0}function ne(w,P){for(var j=P;j;j=j.next)if(j.name==w)return!0;return!1}function ve(w){var P=W.state;if(W.marked="def",!!O){if(P.context){if(P.lexical.info=="var"&&P.context&&P.context.block){var j=ot(w,P.context);if(j!=null){P.context=j;return}}else if(!ne(w,P.localVars)){P.localVars=new Bt(w,P.localVars);return}}f.globalVars&&!ne(w,P.globalVars)&&(P.globalVars=new Bt(w,P.globalVars))}}function ot(w,P){if(P)if(P.block){var j=ot(w,P.prev);return j?j==P.prev?P:new sr(j,P.vars,!0):null}else return ne(w,P.vars)?P:new sr(P.prev,new Bt(w,P.vars),!1);else return null}function At(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function sr(w,P,j){this.prev=w,this.vars=P,this.block=j}function Bt(w,P){this.name=w,this.next=P}var dn=new Bt("this",new Bt("arguments",null));function er(){W.state.context=new sr(W.state.context,W.state.localVars,!1),W.state.localVars=dn}function Ft(){W.state.context=new sr(W.state.context,W.state.localVars,!0),W.state.localVars=null}function ut(){W.state.localVars=W.state.context.vars,W.state.context=W.state.context.prev}ut.lex=!0;function _e(w,P){var j=function(){var ae=W.state,qe=ae.indented;if(ae.lexical.type=="stat")qe=ae.lexical.indented;else for(var vt=ae.lexical;vt&&vt.type==")"&&vt.align;vt=vt.prev)qe=vt.indented;ae.lexical=new ge(qe,W.stream.column(),w,null,ae.lexical,P)};return j.lex=!0,j}function Fe(){var w=W.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Fe.lex=!0;function Ze(w){function P(j){return j==w?T():w==";"||j=="}"||j==")"||j=="]"?E():T(P)}return P}function at(w,P){return w=="var"?T(_e("vardef",P),ns,Ze(";"),Fe):w=="keyword a"?T(_e("form"),qr,at,Fe):w=="keyword b"?T(_e("form"),at,Fe):w=="keyword d"?W.stream.match(/^\s*$/,!1)?T():T(_e("stat"),Xe,Ze(";"),Fe):w=="debugger"?T(Ze(";")):w=="{"?T(_e("}"),Ft,Hr,Fe,ut):w==";"?T():w=="if"?(W.state.lexical.info=="else"&&W.state.cc[W.state.cc.length-1]==Fe&&W.state.cc.pop()(),T(_e("form"),qr,at,Fe,Js)):w=="function"?T(Ln):w=="for"?T(_e("form"),Ft,el,at,ut,Fe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form",w=="class"?w:P),va,Fe)):w=="variable"?I&&P=="declare"?(W.marked="keyword",T(at)):I&&(P=="module"||P=="enum"||P=="type")&&W.stream.match(/^\s*\w/,!1)?(W.marked="keyword",P=="enum"?T(Un):P=="type"?T(tl,Ze("operator"),Ge,Ze(";")):T(_e("form"),Kr,Ze("{"),_e("}"),Hr,Fe,Fe)):I&&P=="namespace"?(W.marked="keyword",T(_e("form"),We,at,Fe)):I&&P=="abstract"?(W.marked="keyword",T(at)):T(_e("stat"),Qe):w=="switch"?T(_e("form"),qr,Ze("{"),_e("}","switch"),Ft,Hr,Fe,Fe,ut):w=="case"?T(We,Ze(":")):w=="default"?T(Ze(":")):w=="catch"?T(_e("form"),er,st,at,Fe,ut):w=="export"?T(_e("stat"),os,Fe):w=="import"?T(_e("stat"),Wt,Fe):w=="async"?T(at):P=="@"?T(We,at):E(_e("stat"),We,Ze(";"),Fe)}function st(w){if(w=="(")return T(Li,Ze(")"))}function We(w,P){return lr(w,P,!1)}function Gt(w,P){return lr(w,P,!0)}function qr(w){return w!="("?E():T(_e(")"),Xe,Ze(")"),Fe)}function lr(w,P,j){if(W.state.fatArrowAt==W.stream.start){var ae=j?tt:fr;if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ze("=>"),ae,ut);if(w=="variable")return E(er,Kr,Ze("=>"),ae,ut)}var qe=j?kt:yt;return nt.hasOwnProperty(w)?T(qe):w=="function"?T(Ln,qe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form"),Po,Fe)):w=="keyword c"||w=="async"?T(j?Gt:We):w=="("?T(_e(")"),Xe,Ze(")"),Fe,qe):w=="operator"||w=="spread"?T(j?Gt:We):w=="["?T(_e("]"),Lt,Fe,qe):w=="{"?xi(Mr,"}",null,qe):w=="quasi"?E($r,qe):w=="new"?T(B(j)):T()}function Xe(w){return w.match(/[;\}\)\],]/)?E():E(We)}function yt(w,P){return w==","?T(Xe):kt(w,P,!1)}function kt(w,P,j){var ae=j==!1?yt:kt,qe=j==!1?We:Gt;if(w=="=>")return T(er,j?tt:fr,ut);if(w=="operator")return/\+\+|--/.test(P)||I&&P=="!"?T(ae):I&&P=="<"&&W.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(_e(">"),Zt(Ge,">"),Fe,ae):P=="?"?T(We,Ze(":"),qe):T(qe);if(w=="quasi")return E($r,ae);if(w!=";"){if(w=="(")return xi(Gt,")","call",ae);if(w==".")return T(dr,ae);if(w=="[")return T(_e("]"),Xe,Ze("]"),Fe,ae);if(I&&P=="as")return W.marked="keyword",T(Ge,ae);if(w=="regexp")return W.state.lastType=W.marked="operator",W.stream.backUp(W.stream.pos-W.stream.start-1),T(qe)}}function $r(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T($r):T(Xe,rn)}function rn(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T($r)}function fr(w){return et(W.stream,W.state),E(w=="{"?at:We)}function tt(w){return et(W.stream,W.state),E(w=="{"?at:Gt)}function B(w){return function(P){return P=="."?T(w?V:oe):P=="variable"&&I?T(ko,w?kt:yt):E(w?Gt:We)}}function oe(w,P){if(P=="target")return W.marked="keyword",T(yt)}function V(w,P){if(P=="target")return W.marked="keyword",T(kt)}function Qe(w){return w==":"?T(Fe,at):E(yt,Ze(";"),Fe)}function dr(w){if(w=="variable")return W.marked="property",T()}function Mr(w,P){if(w=="async")return W.marked="property",T(Mr);if(w=="variable"||W.style=="keyword"){if(W.marked="property",P=="get"||P=="set")return T($n);var j;return I&&W.state.fatArrowAt==W.stream.start&&(j=W.stream.match(/^\s*:\s*/,!1))&&(W.state.fatArrowAt=W.stream.pos+j[0].length),T(jr)}else{if(w=="number"||w=="string")return W.marked=k?"property":W.style+" property",T(jr);if(w=="jsonld-keyword")return T(jr);if(I&&At(P))return W.marked="keyword",T(Mr);if(w=="[")return T(We,Hn,Ze("]"),jr);if(w=="spread")return T(Gt,jr);if(P=="*")return W.marked="keyword",T(Mr);if(w==":")return E(jr)}}function $n(w){return w!="variable"?E(jr):(W.marked="property",T(Ln))}function jr(w){if(w==":")return T(Gt);if(w=="(")return E(Ln)}function Zt(w,P,j){function ae(qe,vt){if(j?j.indexOf(qe)>-1:qe==","){var be=W.state.lexical;return be.info=="call"&&(be.pos=(be.pos||0)+1),T(function(Or,on){return Or==P||on==P?E():E(w)},ae)}return qe==P||vt==P?T():j&&j.indexOf(";")>-1?E(w):T(Ze(P))}return function(qe,vt){return qe==P||vt==P?T():E(w,ae)}}function xi(w,P,j){for(var ae=3;ae<arguments.length;ae++)W.cc.push(arguments[ae]);return T(_e(P,j),Zt(w,P),Fe)}function Hr(w){return w=="}"?T():E(at,Hr)}function Hn(w,P){if(I){if(w==":")return T(Ge);if(P=="?")return T(Hn)}}function $e(w,P){if(I&&(w==":"||P=="in"))return T(Ge)}function Ui(w){if(I&&w==":")return W.stream.match(/^\s*\w+\s+is\b/,!1)?T(We,kr,Ge):T(Ge)}function kr(w,P){if(P=="is")return W.marked="keyword",T()}function Ge(w,P){if(P=="keyof"||P=="typeof"||P=="infer"||P=="readonly")return W.marked="keyword",T(P=="typeof"?Gt:Ge);if(w=="variable"||P=="void")return W.marked="type",T(hn);if(P=="|"||P=="&")return T(Ge);if(w=="string"||w=="number"||w=="atom")return T(hn);if(w=="[")return T(_e("]"),Zt(Ge,"]",","),Fe,hn);if(w=="{")return T(_e("}"),pa,Fe,hn);if(w=="(")return T(Zt(ga,")"),ir,hn);if(w=="<")return T(Zt(Ge,">"),Ge);if(w=="quasi")return E(Bn,hn)}function ir(w){if(w=="=>")return T(Ge)}function pa(w){return w.match(/[\}\)\]]/)?T():w==","||w==";"?T(pa):E(wr,pa)}function wr(w,P){if(w=="variable"||W.style=="keyword")return W.marked="property",T(wr);if(P=="?"||w=="number"||w=="string")return T(wr);if(w==":")return T(Ge);if(w=="[")return T(Ze("variable"),$e,Ze("]"),wr);if(w=="(")return E(pn,wr);if(!w.match(/[;\}\)\],]/))return T()}function Bn(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T(Bn):T(Ge,xr)}function xr(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T(Bn)}function ga(w,P){return w=="variable"&&W.stream.match(/^\s*[?:]/,!1)||P=="?"?T(ga):w==":"?T(Ge):w=="spread"?T(ga):E(Ge)}function hn(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn);if(P=="|"||w=="."||P=="&")return T(Ge);if(w=="[")return T(Ge,Ze("]"),hn);if(P=="extends"||P=="implements")return W.marked="keyword",T(Ge);if(P=="?")return T(Ge,Ze(":"),Ge)}function ko(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn)}function Yi(){return E(Ge,rs)}function rs(w,P){if(P=="=")return T(Ge)}function ns(w,P){return P=="enum"?(W.marked="keyword",T(Un)):E(Kr,Hn,ni,To)}function Kr(w,P){if(I&&At(P))return W.marked="keyword",T(Kr);if(w=="variable")return ve(P),T();if(w=="spread")return T(Kr);if(w=="[")return xi(Oo,"]");if(w=="{")return xi(Qs,"}")}function Qs(w,P){return w=="variable"&&!W.stream.match(/^\s*:/,!1)?(ve(P),T(ni)):(w=="variable"&&(W.marked="property"),w=="spread"?T(Kr):w=="}"?E():w=="["?T(We,Ze("]"),Ze(":"),Qs):T(Ze(":"),Kr,ni))}function Oo(){return E(Kr,ni)}function ni(w,P){if(P=="=")return T(Gt)}function To(w){if(w==",")return T(ns)}function Js(w,P){if(w=="keyword b"&&P=="else")return T(_e("form","else"),at,Fe)}function el(w,P){if(P=="await")return T(el);if(w=="(")return T(_e(")"),is,Fe)}function is(w){return w=="var"?T(ns,Zi):w=="variable"?T(Zi):E(Zi)}function Zi(w,P){return w==")"?T():w==";"?T(Zi):P=="in"||P=="of"?(W.marked="keyword",T(We,Zi)):E(We,Zi)}function Ln(w,P){if(P=="*")return W.marked="keyword",T(Ln);if(w=="variable")return ve(P),T(Ln);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ui,at,ut);if(I&&P=="<")return T(_e(">"),Zt(Yi,">"),Fe,Ln)}function pn(w,P){if(P=="*")return W.marked="keyword",T(pn);if(w=="variable")return ve(P),T(pn);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ui,ut);if(I&&P=="<")return T(_e(">"),Zt(Yi,">"),Fe,pn)}function tl(w,P){if(w=="keyword"||w=="variable")return W.marked="type",T(tl);if(P=="<")return T(_e(">"),Zt(Yi,">"),Fe)}function Li(w,P){return P=="@"&&T(We,Li),w=="spread"?T(Li):I&&At(P)?(W.marked="keyword",T(Li)):I&&w=="this"?T(Hn,ni):E(Kr,Hn,ni)}function Po(w,P){return w=="variable"?va(w,P):Fn(w,P)}function va(w,P){if(w=="variable")return ve(P),T(Fn)}function Fn(w,P){if(P=="<")return T(_e(">"),Zt(Yi,">"),Fe,Fn);if(P=="extends"||P=="implements"||I&&w==",")return P=="implements"&&(W.marked="keyword"),T(I?Ge:We,Fn);if(w=="{")return T(_e("}"),Wn,Fe)}function Wn(w,P){if(w=="async"||w=="variable"&&(P=="static"||P=="get"||P=="set"||I&&At(P))&&W.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return W.marked="keyword",T(Wn);if(w=="variable"||W.style=="keyword")return W.marked="property",T(gn,Wn);if(w=="number"||w=="string")return T(gn,Wn);if(w=="[")return T(We,Hn,Ze("]"),gn,Wn);if(P=="*")return W.marked="keyword",T(Wn);if(I&&w=="(")return E(pn,Wn);if(w==";"||w==",")return T(Wn);if(w=="}")return T();if(P=="@")return T(We,Wn)}function gn(w,P){if(P=="!"||P=="?")return T(gn);if(w==":")return T(Ge,ni);if(P=="=")return T(Gt);var j=W.state.lexical.prev,ae=j&&j.info=="interface";return E(ae?pn:Ln)}function os(w,P){return P=="*"?(W.marked="keyword",T(nn,Ze(";"))):P=="default"?(W.marked="keyword",T(We,Ze(";"))):w=="{"?T(Zt(as,"}"),nn,Ze(";")):E(at)}function as(w,P){if(P=="as")return W.marked="keyword",T(Ze("variable"));if(w=="variable")return E(Gt,as)}function Wt(w){return w=="string"?T():w=="("?E(We):w=="."?E(yt):E(ke,vn,nn)}function ke(w,P){return w=="{"?xi(ke,"}"):(w=="variable"&&ve(P),P=="*"&&(W.marked="keyword"),T(ss))}function vn(w){if(w==",")return T(ke,vn)}function ss(w,P){if(P=="as")return W.marked="keyword",T(ke)}function nn(w,P){if(P=="from")return W.marked="keyword",T(We)}function Lt(w){return w=="]"?T():E(Zt(Gt,"]"))}function Un(){return E(_e("form"),Kr,Ze("{"),_e("}"),Zt(Vi,"}"),Fe,Fe)}function Vi(){return E(Kr,ni)}function ba(w,P){return w.lastType=="operator"||w.lastType==","||X.test(P.charAt(0))||/[,.]/.test(P.charAt(0))}function ie(w,P,j){return P.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(P.lastType)||P.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(j||0)))}return{startState:function(w){var P={tokenize:pe,lastType:"sof",cc:[],lexical:new ge((w||0)-p,0,"block",!1),localVars:f.localVars,context:f.localVars&&new sr(null,null,!1),indented:w||0};return f.globalVars&&typeof f.globalVars=="object"&&(P.globalVars=f.globalVars),P},token:function(w,P){if(w.sol()&&(P.lexical.hasOwnProperty("align")||(P.lexical.align=!1),P.indented=w.indentation(),et(w,P)),P.tokenize!=Te&&w.eatSpace())return null;var j=P.tokenize(w,P);return me=="comment"?j:(P.lastType=me=="operator"&&(Ae=="++"||Ae=="--")?"incdec":me,it(P,j,me,Ae,w))},indent:function(w,P){if(w.tokenize==Te||w.tokenize==He)return o.Pass;if(w.tokenize!=pe)return 0;var j=P&&P.charAt(0),ae=w.lexical,qe;if(!/^\s*else\b/.test(P))for(var vt=w.cc.length-1;vt>=0;--vt){var be=w.cc[vt];if(be==Fe)ae=ae.prev;else if(be!=Js&&be!=ut)break}for(;(ae.type=="stat"||ae.type=="form")&&(j=="}"||(qe=w.cc[w.cc.length-1])&&(qe==yt||qe==kt)&&!/^[,\.=+\-*:?[\(]/.test(P));)ae=ae.prev;b&&ae.type==")"&&ae.prev.type=="stat"&&(ae=ae.prev);var Or=ae.type,on=j==Or;return Or=="vardef"?ae.indented+(w.lastType=="operator"||w.lastType==","?ae.info.length+1:0):Or=="form"&&j=="{"?ae.indented:Or=="form"?ae.indented+p:Or=="stat"?ae.indented+(ba(w,P)?b||p:0):ae.info=="switch"&&!on&&f.doubleIndentSwitch!=!1?ae.indented+(/^(?:case|default)\b/.test(P)?p:2*p):ae.align?ae.column+(on?0:1):ae.indented+(on?0:p)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:S?null:"/*",blockCommentEnd:S?null:"*/",blockCommentContinue:S?null:" * ",lineComment:S?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:S?"json":"javascript",jsonldMode:k,jsonMode:S,expressionAllowed:ie,skipExpression:function(w){it(w,"atom","atom","true",new o.StringStream("",2,null))}}}),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Mp={exports:{}},kp;function n8(){return kp||(kp=1,function(r,n){(function(o){o(ca.exports)})(function(o){o.defineMode("css",function(ge,ye){var it=ye.inline;ye.propertyKeywords||(ye=o.resolveMode("text/css"));var W=ge.indentUnit,E=ye.tokenHooks,T=ye.documentTypes||{},ne=ye.mediaTypes||{},ve=ye.mediaFeatures||{},ot=ye.mediaValueKeywords||{},At=ye.propertyKeywords||{},sr=ye.nonStandardPropertyKeywords||{},Bt=ye.fontProperties||{},dn=ye.counterDescriptors||{},er=ye.colorKeywords||{},Ft=ye.valueKeywords||{},ut=ye.allowNested,_e=ye.lineComment,Fe=ye.supportsAtComponent===!0,Ze=ge.highlightNonStandardPropertyKeywords!==!1,at,st;function We(B,oe){return at=oe,B}function Gt(B,oe){var V=B.next();if(E[V]){var Qe=E[V](B,oe);if(Qe!==!1)return Qe}if(V=="@")return B.eatWhile(/[\w\\\-]/),We("def",B.current());if(V=="="||(V=="~"||V=="|")&&B.eat("="))return We(null,"compare");if(V=='"'||V=="'")return oe.tokenize=qr(V),oe.tokenize(B,oe);if(V=="#")return B.eatWhile(/[\w\\\-]/),We("atom","hash");if(V=="!")return B.match(/^\s*\w*/),We("keyword","important");if(/\d/.test(V)||V=="."&&B.eat(/\d/))return B.eatWhile(/[\w.%]/),We("number","unit");if(V==="-"){if(/[\d.]/.test(B.peek()))return B.eatWhile(/[\w.%]/),We("number","unit");if(B.match(/^-[\w\\\-]*/))return B.eatWhile(/[\w\\\-]/),B.match(/^\s*:/,!1)?We("variable-2","variable-definition"):We("variable-2","variable");if(B.match(/^\w+-/))return We("meta","meta")}else return/[,+>*\/]/.test(V)?We(null,"select-op"):V=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)?We("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(V)?We(null,V):B.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(B.current())&&(oe.tokenize=lr),We("variable callee","variable")):/[\w\\\-]/.test(V)?(B.eatWhile(/[\w\\\-]/),We("property","word")):We(null,null)}function qr(B){return function(oe,V){for(var Qe=!1,dr;(dr=oe.next())!=null;){if(dr==B&&!Qe){B==")"&&oe.backUp(1);break}Qe=!Qe&&dr=="\\"}return(dr==B||!Qe&&B!=")")&&(V.tokenize=null),We("string","string")}}function lr(B,oe){return B.next(),B.match(/^\s*[\"\')]/,!1)?oe.tokenize=null:oe.tokenize=qr(")"),We(null,"(")}function Xe(B,oe,V){this.type=B,this.indent=oe,this.prev=V}function yt(B,oe,V,Qe){return B.context=new Xe(V,oe.indentation()+(Qe===!1?0:W),B.context),V}function kt(B){return B.context.prev&&(B.context=B.context.prev),B.context.type}function $r(B,oe,V){return tt[V.context.type](B,oe,V)}function rn(B,oe,V,Qe){for(var dr=Qe||1;dr>0;dr--)V.context=V.context.prev;return $r(B,oe,V)}function fr(B){var oe=B.current().toLowerCase();Ft.hasOwnProperty(oe)?st="atom":er.hasOwnProperty(oe)?st="keyword":st="variable"}var tt={};return tt.top=function(B,oe,V){if(B=="{")return yt(V,oe,"block");if(B=="}"&&V.context.prev)return kt(V);if(Fe&&/@component/i.test(B))return yt(V,oe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(B))return yt(V,oe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(B))return yt(V,oe,"atBlock");if(/^@(font-face|counter-style)/i.test(B))return V.stateArg=B,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(B))return"keyframes";if(B&&B.charAt(0)=="@")return yt(V,oe,"at");if(B=="hash")st="builtin";else if(B=="word")st="tag";else{if(B=="variable-definition")return"maybeprop";if(B=="interpolation")return yt(V,oe,"interpolation");if(B==":")return"pseudo";if(ut&&B=="(")return yt(V,oe,"parens")}return V.context.type},tt.block=function(B,oe,V){if(B=="word"){var Qe=oe.current().toLowerCase();return At.hasOwnProperty(Qe)?(st="property","maybeprop"):sr.hasOwnProperty(Qe)?(st=Ze?"string-2":"property","maybeprop"):ut?(st=oe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(st+=" error","maybeprop")}else return B=="meta"?"block":!ut&&(B=="hash"||B=="qualifier")?(st="error","block"):tt.top(B,oe,V)},tt.maybeprop=function(B,oe,V){return B==":"?yt(V,oe,"prop"):$r(B,oe,V)},tt.prop=function(B,oe,V){if(B==";")return kt(V);if(B=="{"&&ut)return yt(V,oe,"propBlock");if(B=="}"||B=="{")return rn(B,oe,V);if(B=="(")return yt(V,oe,"parens");if(B=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(oe.current()))st+=" error";else if(B=="word")fr(oe);else if(B=="interpolation")return yt(V,oe,"interpolation");return"prop"},tt.propBlock=function(B,oe,V){return B=="}"?kt(V):B=="word"?(st="property","maybeprop"):V.context.type},tt.parens=function(B,oe,V){return B=="{"||B=="}"?rn(B,oe,V):B==")"?kt(V):B=="("?yt(V,oe,"parens"):B=="interpolation"?yt(V,oe,"interpolation"):(B=="word"&&fr(oe),"parens")},tt.pseudo=function(B,oe,V){return B=="meta"?"pseudo":B=="word"?(st="variable-3",V.context.type):$r(B,oe,V)},tt.documentTypes=function(B,oe,V){return B=="word"&&T.hasOwnProperty(oe.current())?(st="tag",V.context.type):tt.atBlock(B,oe,V)},tt.atBlock=function(B,oe,V){if(B=="(")return yt(V,oe,"atBlock_parens");if(B=="}"||B==";")return rn(B,oe,V);if(B=="{")return kt(V)&&yt(V,oe,ut?"block":"top");if(B=="interpolation")return yt(V,oe,"interpolation");if(B=="word"){var Qe=oe.current().toLowerCase();Qe=="only"||Qe=="not"||Qe=="and"||Qe=="or"?st="keyword":ne.hasOwnProperty(Qe)?st="attribute":ve.hasOwnProperty(Qe)?st="property":ot.hasOwnProperty(Qe)?st="keyword":At.hasOwnProperty(Qe)?st="property":sr.hasOwnProperty(Qe)?st=Ze?"string-2":"property":Ft.hasOwnProperty(Qe)?st="atom":er.hasOwnProperty(Qe)?st="keyword":st="error"}return V.context.type},tt.atComponentBlock=function(B,oe,V){return B=="}"?rn(B,oe,V):B=="{"?kt(V)&&yt(V,oe,ut?"block":"top",!1):(B=="word"&&(st="error"),V.context.type)},tt.atBlock_parens=function(B,oe,V){return B==")"?kt(V):B=="{"||B=="}"?rn(B,oe,V,2):tt.atBlock(B,oe,V)},tt.restricted_atBlock_before=function(B,oe,V){return B=="{"?yt(V,oe,"restricted_atBlock"):B=="word"&&V.stateArg=="@counter-style"?(st="variable","restricted_atBlock_before"):$r(B,oe,V)},tt.restricted_atBlock=function(B,oe,V){return B=="}"?(V.stateArg=null,kt(V)):B=="word"?(V.stateArg=="@font-face"&&!Bt.hasOwnProperty(oe.current().toLowerCase())||V.stateArg=="@counter-style"&&!dn.hasOwnProperty(oe.current().toLowerCase())?st="error":st="property","maybeprop"):"restricted_atBlock"},tt.keyframes=function(B,oe,V){return B=="word"?(st="variable","keyframes"):B=="{"?yt(V,oe,"top"):$r(B,oe,V)},tt.at=function(B,oe,V){return B==";"?kt(V):B=="{"||B=="}"?rn(B,oe,V):(B=="word"?st="tag":B=="hash"&&(st="builtin"),"at")},tt.interpolation=function(B,oe,V){return B=="}"?kt(V):B=="{"||B==";"?rn(B,oe,V):(B=="word"?st="variable":B!="variable"&&B!="("&&B!=")"&&(st="error"),"interpolation")},{startState:function(B){return{tokenize:null,state:it?"block":"top",stateArg:null,context:new Xe(it?"block":"top",B||0,null)}},token:function(B,oe){if(!oe.tokenize&&B.eatSpace())return null;var V=(oe.tokenize||Gt)(B,oe);return V&&typeof V=="object"&&(at=V[1],V=V[0]),st=V,at!="comment"&&(oe.state=tt[oe.state](at,B,oe)),st},indent:function(B,oe){var V=B.context,Qe=oe&&oe.charAt(0),dr=V.indent;return V.type=="prop"&&(Qe=="}"||Qe==")")&&(V=V.prev),V.prev&&(Qe=="}"&&(V.type=="block"||V.type=="top"||V.type=="interpolation"||V.type=="restricted_atBlock")?(V=V.prev,dr=V.indent):(Qe==")"&&(V.type=="parens"||V.type=="atBlock_parens")||Qe=="{"&&(V.type=="at"||V.type=="atBlock"))&&(dr=Math.max(0,V.indent-W))),dr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function c(ge){for(var ye={},it=0;it<ge.length;++it)ye[ge[it].toLowerCase()]=!0;return ye}var f=["domain","regexp","url","url-prefix"],p=c(f),b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],k=c(b),S=["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"],O=c(S),I=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],U=c(I),q=["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"],X=c(q),ce=["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"],we=c(ce),me=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ae=c(me),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=c(Ie),he=["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"],Te=c(he),He=["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"],Ye=c(He),et=f.concat(b).concat(S).concat(I).concat(q).concat(ce).concat(he).concat(He);o.registerHelper("hintWords","css",et);function nt(ge,ye){for(var it=!1,W;(W=ge.next())!=null;){if(it&&W=="/"){ye.tokenize=null;break}it=W=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:p,mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,tokenHooks:{"/":function(ge,ye){return ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ge,ye){return ge.eat("/")?(ge.skipToEnd(),["comment","comment"]):ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):["operator","operator"]},":":function(ge){return ge.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ge){return ge.match(/^[\w-]+/),ge.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ge){return ge.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ge,ye){return ge.eat("/")?(ge.skipToEnd(),["comment","comment"]):ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):["operator","operator"]},"@":function(ge){return ge.eat("{")?[null,"interpolation"]:ge.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ge.eatWhile(/[\w\\\-]/),ge.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:p,mediaTypes:k,mediaFeatures:O,propertyKeywords:X,nonStandardPropertyKeywords:we,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,supportsAtComponent:!0,tokenHooks:{"/":function(ge,ye){return ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):!1}},name:"css",helperType:"gss"})})}()),Mp.exports}(function(r,n){(function(o){o(ca.exports,t8.exports,r8.exports,n8())})(function(o){var c={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 f(U,q,X){var ce=U.current(),we=ce.search(q);return we>-1?U.backUp(ce.length-we):ce.match(/<\/?$/)&&(U.backUp(ce.length),U.match(q,!1)||U.match(ce)),X}var p={};function b(U){var q=p[U];return q||(p[U]=new RegExp("\\s+"+U+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function k(U,q){var X=U.match(b(q));return X?/^\s*(.*?)\s*$/.exec(X[2])[1]:""}function S(U,q){return new RegExp((q?"^":"")+"</s*"+U+"s*>","i")}function O(U,q){for(var X in U)for(var ce=q[X]||(q[X]=[]),we=U[X],me=we.length-1;me>=0;me--)ce.unshift(we[me])}function I(U,q){for(var X=0;X<U.length;X++){var ce=U[X];if(!ce[0]||ce[1].test(k(q,ce[0])))return ce[2]}}o.defineMode("htmlmixed",function(U,q){var X=o.getMode(U,{name:"xml",htmlMode:!0,multilineTagIndentFactor:q.multilineTagIndentFactor,multilineTagIndentPastTag:q.multilineTagIndentPastTag,allowMissingTagName:q.allowMissingTagName}),ce={},we=q&&q.tags,me=q&&q.scriptTypes;if(O(c,ce),we&&O(we,ce),me)for(var Ae=me.length-1;Ae>=0;Ae--)ce.script.unshift(["type",me[Ae].matches,me[Ae].mode]);function Ie(pe,he){var Te=X.token(pe,he.htmlState),He=/\btag\b/.test(Te),Ye;if(He&&!/[<>\s\/]/.test(pe.current())&&(Ye=he.htmlState.tagName&&he.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(Ye))he.inTag=Ye+" ";else if(he.inTag&&He&&/>$/.test(pe.current())){var et=/^([\S]+) (.*)/.exec(he.inTag);he.inTag=null;var nt=pe.current()==">"&&I(ce[et[1]],et[2]),ge=o.getMode(U,nt),ye=S(et[1],!0),it=S(et[1],!1);he.token=function(W,E){return W.match(ye,!1)?(E.token=Ie,E.localState=E.localMode=null,null):f(W,it,E.localMode.token(W,E.localState))},he.localMode=ge,he.localState=o.startState(ge,X.indent(he.htmlState,"",""))}else he.inTag&&(he.inTag+=pe.current(),pe.eol()&&(he.inTag+=" "));return Te}return{startState:function(){var pe=o.startState(X);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var he;return pe.localState&&(he=o.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:he,htmlState:o.copyState(X,pe.htmlState)}},token:function(pe,he){return he.token(pe,he)},indent:function(pe,he,Te){return!pe.localMode||/^\s*<\//.test(he)?X.indent(pe.htmlState,he,Te):pe.localMode.indent?pe.localMode.indent(pe.localState,he,Te):o.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||X}}}},"xml","javascript","css"),o.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(o){o(ca.exports)})(function(o){o.defineOption("placeholder","",function(O,I,U){var q=U&&U!=o.Init;if(I&&!q)O.on("blur",b),O.on("change",k),O.on("swapDoc",k),o.on(O.getInputField(),"compositionupdate",O.state.placeholderCompose=function(){p(O)}),k(O);else if(!I&&q){O.off("blur",b),O.off("change",k),O.off("swapDoc",k),o.off(O.getInputField(),"compositionupdate",O.state.placeholderCompose),c(O);var X=O.getWrapperElement();X.className=X.className.replace(" CodeMirror-empty","")}I&&!O.hasFocus()&&b(O)});function c(O){O.state.placeholder&&(O.state.placeholder.parentNode.removeChild(O.state.placeholder),O.state.placeholder=null)}function f(O){c(O);var I=O.state.placeholder=document.createElement("pre");I.style.cssText="height: 0; overflow: visible",I.style.direction=O.getOption("direction"),I.className="CodeMirror-placeholder CodeMirror-line-like";var U=O.getOption("placeholder");typeof U=="string"&&(U=document.createTextNode(U)),I.appendChild(U),O.display.lineSpace.insertBefore(I,O.display.lineSpace.firstChild)}function p(O){setTimeout(function(){var I=!1;if(O.lineCount()==1){var U=O.getInputField();I=U.nodeName=="TEXTAREA"?!O.getLine(0).length:!/[^\u200b]/.test(U.querySelector(".CodeMirror-line").textContent)}I?f(O):c(O)},20)}function b(O){S(O)&&f(O)}function k(O){var I=O.getWrapperElement(),U=S(O);I.className=I.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?f(O):c(O)}function S(O){return O.lineCount()===1&&O.getLine(0)===""}})})();var i8=Object.defineProperty,o8=Object.getOwnPropertyDescriptor,hu=(r,n,o,c)=>{for(var f=c>1?void 0:c?o8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&i8(n,o,f),f};v0.defineMode("nunjucks",(r,n)=>v0.overlayMode(v0.getMode(r,n.backdrop||"text/html"),v0.getMode(r,"jinja2")));const F2=Ee("input-code"),a8={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks"};exports.InputCode=class extends Rn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(r){this.value=r.getValue(),this.dispatchChange()}updated(){var r,n;super.updated(),this.value!==this.editorValue&&(this.editorValue=this.value||""),this.readonly!==((r=this.editor)==null?void 0:r.isReadOnly())&&((n=this.editor)==null||n.setOption("readOnly",this.readonly)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()})}get editorValue(){var r;return((r=this.editor)==null?void 0:r.getDoc().getValue())||""}set editorValue(r){var n;(n=this.editor)==null||n.setValue(r)}firstUpdated(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");r&&(this.editor=v0.fromTextArea(r,{mode:a8[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:o=>{const c=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.editor)==null||r.off("change",this.changeHandler)}renderInput(){return ee`
2221
- <textarea class="editor" placeholder="${Vt(this.placeholder)}">
2302
+ `;(function(r,n){(function(o){o(es())})(function(o){o.overlayMode=function(c,f,p){return{startState:function(){return{base:o.startState(c),overlay:o.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:o.copyState(c,b.base),overlay:o.copyState(f,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,M){return(b!=M.streamSeen||Math.min(M.basePos,M.overlayPos)<b.start)&&(M.streamSeen=b,M.basePos=M.overlayPos=b.start),b.start==M.basePos&&(M.baseCur=c.token(b,M.base),M.basePos=b.pos),b.start==M.overlayPos&&(b.pos=b.start,M.overlayCur=f.token(b,M.overlay),M.overlayPos=b.pos),b.pos=Math.min(M.basePos,M.overlayPos),M.overlayCur==null?M.baseCur:M.baseCur!=null&&M.overlay.combineTokens||p&&M.overlay.combineTokens==null?M.baseCur+" "+M.overlayCur:M.overlayCur},indent:c.indent&&function(b,M,S){return c.indent(b.base,M,S)},electricChars:c.electricChars,innerMode:function(b){return{state:b.base,mode:c}},blankLine:function(b){var M,S;return c.blankLine&&(M=c.blankLine(b.base)),f.blankLine&&(S=f.blankLine(b.overlay)),S==null?M:p&&M!=null?M+" "+S:S}}}})})();(function(r,n){(function(o){o(es())})(function(o){o.defineMode("jinja2",function(){var c=["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"],f=/^[+\-*&%=<>!?|~^]/,p=/^[:\[\(\{]/,b=["true","false"],M=/^(\d[+\-\*\/])?\d+(\.\d+)?/;c=new RegExp("(("+c.join(")|(")+"))\\b"),b=new RegExp("(("+b.join(")|(")+"))\\b");function S(O,I){var U=O.peek();if(I.incomment)return O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(I.intag){if(I.operator){if(I.operator=!1,O.match(b))return"atom";if(O.match(M))return"number"}if(I.sign){if(I.sign=!1,O.match(b))return"atom";if(O.match(M))return"number"}if(I.instring)return U==I.instring&&(I.instring=!1),O.next(),"string";if(U=="'"||U=='"')return I.instring=U,O.next(),"string";if(O.match(I.intag+"}")||O.eat("-")&&O.match(I.intag+"}"))return I.intag=!1,"tag";if(O.match(f))return I.operator=!0,"operator";if(O.match(p))I.sign=!0;else if(O.eat(" ")||O.sol()){if(O.match(c))return"keyword";if(O.match(b))return"atom";if(O.match(M))return"number";O.sol()&&O.next()}else O.next();return"variable"}else if(O.eat("{")){if(O.eat("#"))return I.incomment=!0,O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(U=O.eat(/\{|%/))return I.intag=U,U=="{"&&(I.intag="}"),O.eat("-"),"tag"}O.next()}return{startState:function(){return{tokenize:S}},token:function(O,I){return I.tokenize(O,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();var u8={exports:{}};(function(r,n){(function(o){o(es())})(function(o){var c={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},f={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};o.defineMode("xml",function(p,b){var M=p.indentUnit,S={},O=b.htmlMode?c:f;for(var I in O)S[I]=O[I];for(var I in b)S[I]=b[I];var U,q;function X(E,T){function ne(At){return T.tokenize=At,At(E,T)}var be=E.next();if(be=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ne(ye("atom","]]>")):null:E.match("--")?ne(ye("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ne(Ae(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),T.tokenize=ye("meta","?>"),"meta"):(U=E.eat("/")?"closeTag":"openTag",T.tokenize=ce,"tag bracket");if(be=="&"){var ot;return E.eat("#")?E.eat("x")?ot=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):ot=E.eatWhile(/[\d]/)&&E.eat(";"):ot=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),ot?"atom":"error"}else return E.eatWhile(/[^&<]/),null}X.isInText=!0;function ce(E,T){var ne=E.next();if(ne==">"||ne=="/"&&E.eat(">"))return T.tokenize=X,U=ne==">"?"endTag":"selfcloseTag","tag bracket";if(ne=="=")return U="equals",null;if(ne=="<"){T.tokenize=X,T.state=Te,T.tagName=T.tagStart=null;var be=T.tokenize(E,T);return be?be+" tag error":"tag error"}else return/[\'\"]/.test(ne)?(T.tokenize=xe(ne),T.stringStartCol=E.column(),T.tokenize(E,T)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function xe(E){var T=function(ne,be){for(;!ne.eol();)if(ne.next()==E){be.tokenize=ce;break}return"string"};return T.isInAttribute=!0,T}function ye(E,T){return function(ne,be){for(;!ne.eol();){if(ne.match(T)){be.tokenize=X;break}ne.next()}return E}}function Ae(E){return function(T,ne){for(var be;(be=T.next())!=null;){if(be=="<")return ne.tokenize=Ae(E+1),ne.tokenize(T,ne);if(be==">")if(E==1){ne.tokenize=X;break}else return ne.tokenize=Ae(E-1),ne.tokenize(T,ne)}return"meta"}}function Ie(E,T,ne){this.prev=E.context,this.tagName=T||"",this.indent=E.indented,this.startOfLine=ne,(S.doNotIndent.hasOwnProperty(T)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function pe(E){E.context&&(E.context=E.context.prev)}function he(E,T){for(var ne;;){if(!E.context||(ne=E.context.tagName,!S.contextGrabbers.hasOwnProperty(ne)||!S.contextGrabbers[ne].hasOwnProperty(T)))return;pe(E)}}function Te(E,T,ne){return E=="openTag"?(ne.tagStart=T.column(),He):E=="closeTag"?Ye:Te}function He(E,T,ne){return E=="word"?(ne.tagName=T.current(),q="tag",ve):S.allowMissingTagName&&E=="endTag"?(q="tag bracket",ve(E,T,ne)):(q="error",He)}function Ye(E,T,ne){if(E=="word"){var be=T.current();return ne.context&&ne.context.tagName!=be&&S.implicitlyClosed.hasOwnProperty(ne.context.tagName)&&pe(ne),ne.context&&ne.context.tagName==be||S.matchClosing===!1?(q="tag",et):(q="tag error",nt)}else return S.allowMissingTagName&&E=="endTag"?(q="tag bracket",et(E,T,ne)):(q="error",nt)}function et(E,T,ne){return E!="endTag"?(q="error",et):(pe(ne),Te)}function nt(E,T,ne){return q="error",et(E,T,ne)}function ve(E,T,ne){if(E=="word")return q="attribute",Ce;if(E=="endTag"||E=="selfcloseTag"){var be=ne.tagName,ot=ne.tagStart;return ne.tagName=ne.tagStart=null,E=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(be)?he(ne,be):(he(ne,be),ne.context=new Ie(ne,be,ot==ne.indented)),Te}return q="error",ve}function Ce(E,T,ne){return E=="equals"?it:(S.allowMissing||(q="error"),ve(E,T,ne))}function it(E,T,ne){return E=="string"?W:E=="word"&&S.allowUnquoted?(q="string",ve):(q="error",ve(E,T,ne))}function W(E,T,ne){return E=="string"?W:ve(E,T,ne)}return{startState:function(E){var T={tokenize:X,state:Te,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(T.baseIndent=E),T},token:function(E,T){if(!T.tagName&&E.sol()&&(T.indented=E.indentation()),E.eatSpace())return null;U=null;var ne=T.tokenize(E,T);return(ne||U)&&ne!="comment"&&(q=null,T.state=T.state(U||ne,E,T),q&&(ne=q=="error"?ne+" error":q)),ne},indent:function(E,T,ne){var be=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+M;if(be&&be.noIndent)return o.Pass;if(E.tokenize!=ce&&E.tokenize!=X)return ne?ne.match(/^(\s*)/)[0].length:0;if(E.tagName)return S.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+M*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/<!\[CDATA\[/.test(T))return 0;var ot=T&&/^<(\/)?([\w_:\.-]*)/.exec(T);if(ot&&ot[1])for(;be;)if(be.tagName==ot[2]){be=be.prev;break}else if(S.implicitlyClosed.hasOwnProperty(be.tagName))be=be.prev;else break;else if(ot)for(;be;){var At=S.contextGrabbers[be.tagName];if(At&&At.hasOwnProperty(ot[2]))be=be.prev;else break}for(;be&&be.prev&&!be.startOfLine;)be=be.prev;return be?be.indent+M:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(E){E.state==it&&(E.state=ve)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var T=[],ne=E.context;ne;ne=ne.prev)T.push(ne.tagName);return T.reverse()}}}),o.defineMIME("text/xml","xml"),o.defineMIME("application/xml","xml"),o.mimeModes.hasOwnProperty("text/html")||o.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Pp={exports:{}},Ap;function q2(){return Ap||(Ap=1,function(r,n){(function(o){o(es())})(function(o){o.defineMode("javascript",function(c,f){var p=c.indentUnit,b=f.statementIndent,M=f.jsonld,S=f.json||M,O=f.trackScope!==!1,I=f.typescript,U=f.wordCharacters||/[\w$\xa1-\uffff]/,q=function(){function w(Or){return{type:Or,style:"keyword"}}var P=w("keyword a"),j=w("keyword b"),ae=w("keyword c"),qe=w("keyword d"),vt=w("operator"),me={type:"atom",style:"atom"};return{if:w("if"),while:P,with:P,else:j,do:j,try:j,finally:j,return:qe,break:qe,continue:qe,new:w("new"),delete:ae,void:ae,throw:ae,debugger:w("debugger"),var:w("var"),const:w("var"),let:w("var"),function:w("function"),catch:w("catch"),for:w("for"),switch:w("switch"),case:w("case"),default:w("default"),in:vt,typeof:vt,instanceof:vt,true:me,false:me,null:me,undefined:me,NaN:me,Infinity:me,this:w("this"),class:w("class"),super:w("atom"),yield:ae,export:w("export"),import:w("import"),extends:ae,await:ae}}(),X=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function xe(w){for(var P=!1,j,ae=!1;(j=w.next())!=null;){if(!P){if(j=="/"&&!ae)return;j=="["?ae=!0:ae&&j=="]"&&(ae=!1)}P=!P&&j=="\\"}}var ye,Ae;function Ie(w,P,j){return ye=w,Ae=j,P}function pe(w,P){var j=w.next();if(j=='"'||j=="'")return P.tokenize=he(j),P.tokenize(w,P);if(j=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(j=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(j))return Ie(j);if(j=="="&&w.eat(">"))return Ie("=>","operator");if(j=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(j))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(j=="/")return w.eat("*")?(P.tokenize=Te,Te(w,P)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ie(w,P,1)?(xe(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(j=="`")return P.tokenize=He,He(w,P);if(j=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(j=="#"&&w.eatWhile(U))return Ie("variable","property");if(j=="<"&&w.match("!--")||j=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(X.test(j))return(j!=">"||!P.lexical||P.lexical.type!=">")&&(w.eat("=")?(j=="!"||j=="=")&&w.eat("="):/[<>*+\-|&?]/.test(j)&&(w.eat(j),j==">"&&w.eat(j))),j=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(U.test(j)){w.eatWhile(U);var ae=w.current();if(P.lastType!="."){if(q.propertyIsEnumerable(ae)){var qe=q[ae];return Ie(qe.type,qe.style,ae)}if(ae=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ae)}return Ie("variable","variable",ae)}}function he(w){return function(P,j){var ae=!1,qe;if(M&&P.peek()=="@"&&P.match(ce))return j.tokenize=pe,Ie("jsonld-keyword","meta");for(;(qe=P.next())!=null&&!(qe==w&&!ae);)ae=!ae&&qe=="\\";return ae||(j.tokenize=pe),Ie("string","string")}}function Te(w,P){for(var j=!1,ae;ae=w.next();){if(ae=="/"&&j){P.tokenize=pe;break}j=ae=="*"}return Ie("comment","comment")}function He(w,P){for(var j=!1,ae;(ae=w.next())!=null;){if(!j&&(ae=="`"||ae=="$"&&w.eat("{"))){P.tokenize=pe;break}j=!j&&ae=="\\"}return Ie("quasi","string-2",w.current())}var Ye="([{}])";function et(w,P){P.fatArrowAt&&(P.fatArrowAt=null);var j=w.string.indexOf("=>",w.start);if(!(j<0)){if(I){var ae=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,j));ae&&(j=ae.index)}for(var qe=0,vt=!1,me=j-1;me>=0;--me){var Or=w.string.charAt(me),on=Ye.indexOf(Or);if(on>=0&&on<3){if(!qe){++me;break}if(--qe==0){Or=="("&&(vt=!0);break}}else if(on>=3&&on<6)++qe;else if(U.test(Or))vt=!0;else if(/["'\/`]/.test(Or))for(;;--me){if(me==0)return;var _i=w.string.charAt(me-1);if(_i==Or&&w.string.charAt(me-2)!="\\"){me--;break}}else if(vt&&!qe){++me;break}}vt&&!qe&&(P.fatArrowAt=me)}}var nt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ve(w,P,j,ae,qe,vt){this.indented=w,this.column=P,this.type=j,this.prev=qe,this.info=vt,ae!=null&&(this.align=ae)}function Ce(w,P){if(!O)return!1;for(var j=w.localVars;j;j=j.next)if(j.name==P)return!0;for(var ae=w.context;ae;ae=ae.prev)for(var j=ae.vars;j;j=j.next)if(j.name==P)return!0}function it(w,P,j,ae,qe){var vt=w.cc;for(W.state=w,W.stream=qe,W.marked=null,W.cc=vt,W.style=P,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var me=vt.length?vt.pop():S?We:at;if(me(j,ae)){for(;vt.length&&vt[vt.length-1].lex;)vt.pop()();return W.marked?W.marked:j=="variable"&&Ce(w,ae)?"variable-2":P}}}var W={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)W.cc.push(arguments[w])}function T(){return E.apply(null,arguments),!0}function ne(w,P){for(var j=P;j;j=j.next)if(j.name==w)return!0;return!1}function be(w){var P=W.state;if(W.marked="def",!!O){if(P.context){if(P.lexical.info=="var"&&P.context&&P.context.block){var j=ot(w,P.context);if(j!=null){P.context=j;return}}else if(!ne(w,P.localVars)){P.localVars=new Bt(w,P.localVars);return}}f.globalVars&&!ne(w,P.globalVars)&&(P.globalVars=new Bt(w,P.globalVars))}}function ot(w,P){if(P)if(P.block){var j=ot(w,P.prev);return j?j==P.prev?P:new sr(j,P.vars,!0):null}else return ne(w,P.vars)?P:new sr(P.prev,new Bt(w,P.vars),!1);else return null}function At(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function sr(w,P,j){this.prev=w,this.vars=P,this.block=j}function Bt(w,P){this.name=w,this.next=P}var dn=new Bt("this",new Bt("arguments",null));function er(){W.state.context=new sr(W.state.context,W.state.localVars,!1),W.state.localVars=dn}function Ft(){W.state.context=new sr(W.state.context,W.state.localVars,!0),W.state.localVars=null}function ut(){W.state.localVars=W.state.context.vars,W.state.context=W.state.context.prev}ut.lex=!0;function _e(w,P){var j=function(){var ae=W.state,qe=ae.indented;if(ae.lexical.type=="stat")qe=ae.lexical.indented;else for(var vt=ae.lexical;vt&&vt.type==")"&&vt.align;vt=vt.prev)qe=vt.indented;ae.lexical=new ve(qe,W.stream.column(),w,null,ae.lexical,P)};return j.lex=!0,j}function Fe(){var w=W.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Fe.lex=!0;function Ze(w){function P(j){return j==w?T():w==";"||j=="}"||j==")"||j=="]"?E():T(P)}return P}function at(w,P){return w=="var"?T(_e("vardef",P),ns,Ze(";"),Fe):w=="keyword a"?T(_e("form"),qr,at,Fe):w=="keyword b"?T(_e("form"),at,Fe):w=="keyword d"?W.stream.match(/^\s*$/,!1)?T():T(_e("stat"),Xe,Ze(";"),Fe):w=="debugger"?T(Ze(";")):w=="{"?T(_e("}"),Ft,Hr,Fe,ut):w==";"?T():w=="if"?(W.state.lexical.info=="else"&&W.state.cc[W.state.cc.length-1]==Fe&&W.state.cc.pop()(),T(_e("form"),qr,at,Fe,el)):w=="function"?T(zn):w=="for"?T(_e("form"),Ft,tl,at,ut,Fe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form",w=="class"?w:P),ga,Fe)):w=="variable"?I&&P=="declare"?(W.marked="keyword",T(at)):I&&(P=="module"||P=="enum"||P=="type")&&W.stream.match(/^\s*\w/,!1)?(W.marked="keyword",P=="enum"?T(Un):P=="type"?T(rl,Ze("operator"),Ge,Ze(";")):T(_e("form"),Kr,Ze("{"),_e("}"),Hr,Fe,Fe)):I&&P=="namespace"?(W.marked="keyword",T(_e("form"),We,at,Fe)):I&&P=="abstract"?(W.marked="keyword",T(at)):T(_e("stat"),Qe):w=="switch"?T(_e("form"),qr,Ze("{"),_e("}","switch"),Ft,Hr,Fe,Fe,ut):w=="case"?T(We,Ze(":")):w=="default"?T(Ze(":")):w=="catch"?T(_e("form"),er,st,at,Fe,ut):w=="export"?T(_e("stat"),os,Fe):w=="import"?T(_e("stat"),Wt,Fe):w=="async"?T(at):P=="@"?T(We,at):E(_e("stat"),We,Ze(";"),Fe)}function st(w){if(w=="(")return T(Li,Ze(")"))}function We(w,P){return lr(w,P,!1)}function Vt(w,P){return lr(w,P,!0)}function qr(w){return w!="("?E():T(_e(")"),Xe,Ze(")"),Fe)}function lr(w,P,j){if(W.state.fatArrowAt==W.stream.start){var ae=j?tt:fr;if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ze("=>"),ae,ut);if(w=="variable")return E(er,Kr,Ze("=>"),ae,ut)}var qe=j?Mt:yt;return nt.hasOwnProperty(w)?T(qe):w=="function"?T(zn,qe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form"),Po,Fe)):w=="keyword c"||w=="async"?T(j?Vt:We):w=="("?T(_e(")"),Xe,Ze(")"),Fe,qe):w=="operator"||w=="spread"?T(j?Vt:We):w=="["?T(_e("]"),zt,Fe,qe):w=="{"?zi(kr,"}",null,qe):w=="quasi"?E($r,qe):w=="new"?T(B(j)):T()}function Xe(w){return w.match(/[;\}\)\],]/)?E():E(We)}function yt(w,P){return w==","?T(Xe):Mt(w,P,!1)}function Mt(w,P,j){var ae=j==!1?yt:Mt,qe=j==!1?We:Vt;if(w=="=>")return T(er,j?tt:fr,ut);if(w=="operator")return/\+\+|--/.test(P)||I&&P=="!"?T(ae):I&&P=="<"&&W.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(_e(">"),Zt(Ge,">"),Fe,ae):P=="?"?T(We,Ze(":"),qe):T(qe);if(w=="quasi")return E($r,ae);if(w!=";"){if(w=="(")return zi(Vt,")","call",ae);if(w==".")return T(dr,ae);if(w=="[")return T(_e("]"),Xe,Ze("]"),Fe,ae);if(I&&P=="as")return W.marked="keyword",T(Ge,ae);if(w=="regexp")return W.state.lastType=W.marked="operator",W.stream.backUp(W.stream.pos-W.stream.start-1),T(qe)}}function $r(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T($r):T(Xe,rn)}function rn(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T($r)}function fr(w){return et(W.stream,W.state),E(w=="{"?at:We)}function tt(w){return et(W.stream,W.state),E(w=="{"?at:Vt)}function B(w){return function(P){return P=="."?T(w?V:oe):P=="variable"&&I?T(Mo,w?Mt:yt):E(w?Vt:We)}}function oe(w,P){if(P=="target")return W.marked="keyword",T(yt)}function V(w,P){if(P=="target")return W.marked="keyword",T(Mt)}function Qe(w){return w==":"?T(Fe,at):E(yt,Ze(";"),Fe)}function dr(w){if(w=="variable")return W.marked="property",T()}function kr(w,P){if(w=="async")return W.marked="property",T(kr);if(w=="variable"||W.style=="keyword"){if(W.marked="property",P=="get"||P=="set")return T($n);var j;return I&&W.state.fatArrowAt==W.stream.start&&(j=W.stream.match(/^\s*:\s*/,!1))&&(W.state.fatArrowAt=W.stream.pos+j[0].length),T(jr)}else{if(w=="number"||w=="string")return W.marked=M?"property":W.style+" property",T(jr);if(w=="jsonld-keyword")return T(jr);if(I&&At(P))return W.marked="keyword",T(kr);if(w=="[")return T(We,Hn,Ze("]"),jr);if(w=="spread")return T(Vt,jr);if(P=="*")return W.marked="keyword",T(kr);if(w==":")return E(jr)}}function $n(w){return w!="variable"?E(jr):(W.marked="property",T(zn))}function jr(w){if(w==":")return T(Vt);if(w=="(")return E(zn)}function Zt(w,P,j){function ae(qe,vt){if(j?j.indexOf(qe)>-1:qe==","){var me=W.state.lexical;return me.info=="call"&&(me.pos=(me.pos||0)+1),T(function(Or,on){return Or==P||on==P?E():E(w)},ae)}return qe==P||vt==P?T():j&&j.indexOf(";")>-1?E(w):T(Ze(P))}return function(qe,vt){return qe==P||vt==P?T():E(w,ae)}}function zi(w,P,j){for(var ae=3;ae<arguments.length;ae++)W.cc.push(arguments[ae]);return T(_e(P,j),Zt(w,P),Fe)}function Hr(w){return w=="}"?T():E(at,Hr)}function Hn(w,P){if(I){if(w==":")return T(Ge);if(P=="?")return T(Hn)}}function $e(w,P){if(I&&(w==":"||P=="in"))return T(Ge)}function Yi(w){if(I&&w==":")return W.stream.match(/^\s*\w+\s+is\b/,!1)?T(We,Mr,Ge):T(Ge)}function Mr(w,P){if(P=="is")return W.marked="keyword",T()}function Ge(w,P){if(P=="keyof"||P=="typeof"||P=="infer"||P=="readonly")return W.marked="keyword",T(P=="typeof"?Vt:Ge);if(w=="variable"||P=="void")return W.marked="type",T(hn);if(P=="|"||P=="&")return T(Ge);if(w=="string"||w=="number"||w=="atom")return T(hn);if(w=="[")return T(_e("]"),Zt(Ge,"]",","),Fe,hn);if(w=="{")return T(_e("}"),ha,Fe,hn);if(w=="(")return T(Zt(pa,")"),ir,hn);if(w=="<")return T(Zt(Ge,">"),Ge);if(w=="quasi")return E(Bn,hn)}function ir(w){if(w=="=>")return T(Ge)}function ha(w){return w.match(/[\}\)\]]/)?T():w==","||w==";"?T(ha):E(wr,ha)}function wr(w,P){if(w=="variable"||W.style=="keyword")return W.marked="property",T(wr);if(P=="?"||w=="number"||w=="string")return T(wr);if(w==":")return T(Ge);if(w=="[")return T(Ze("variable"),$e,Ze("]"),wr);if(w=="(")return E(pn,wr);if(!w.match(/[;\}\)\],]/))return T()}function Bn(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T(Bn):T(Ge,xr)}function xr(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T(Bn)}function pa(w,P){return w=="variable"&&W.stream.match(/^\s*[?:]/,!1)||P=="?"?T(pa):w==":"?T(Ge):w=="spread"?T(pa):E(Ge)}function hn(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn);if(P=="|"||w=="."||P=="&")return T(Ge);if(w=="[")return T(Ge,Ze("]"),hn);if(P=="extends"||P=="implements")return W.marked="keyword",T(Ge);if(P=="?")return T(Ge,Ze(":"),Ge)}function Mo(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn)}function Zi(){return E(Ge,rs)}function rs(w,P){if(P=="=")return T(Ge)}function ns(w,P){return P=="enum"?(W.marked="keyword",T(Un)):E(Kr,Hn,ni,To)}function Kr(w,P){if(I&&At(P))return W.marked="keyword",T(Kr);if(w=="variable")return be(P),T();if(w=="spread")return T(Kr);if(w=="[")return zi(Oo,"]");if(w=="{")return zi(Js,"}")}function Js(w,P){return w=="variable"&&!W.stream.match(/^\s*:/,!1)?(be(P),T(ni)):(w=="variable"&&(W.marked="property"),w=="spread"?T(Kr):w=="}"?E():w=="["?T(We,Ze("]"),Ze(":"),Js):T(Ze(":"),Kr,ni))}function Oo(){return E(Kr,ni)}function ni(w,P){if(P=="=")return T(Vt)}function To(w){if(w==",")return T(ns)}function el(w,P){if(w=="keyword b"&&P=="else")return T(_e("form","else"),at,Fe)}function tl(w,P){if(P=="await")return T(tl);if(w=="(")return T(_e(")"),is,Fe)}function is(w){return w=="var"?T(ns,Vi):w=="variable"?T(Vi):E(Vi)}function Vi(w,P){return w==")"?T():w==";"?T(Vi):P=="in"||P=="of"?(W.marked="keyword",T(We,Vi)):E(We,Vi)}function zn(w,P){if(P=="*")return W.marked="keyword",T(zn);if(w=="variable")return be(P),T(zn);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Yi,at,ut);if(I&&P=="<")return T(_e(">"),Zt(Zi,">"),Fe,zn)}function pn(w,P){if(P=="*")return W.marked="keyword",T(pn);if(w=="variable")return be(P),T(pn);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Yi,ut);if(I&&P=="<")return T(_e(">"),Zt(Zi,">"),Fe,pn)}function rl(w,P){if(w=="keyword"||w=="variable")return W.marked="type",T(rl);if(P=="<")return T(_e(">"),Zt(Zi,">"),Fe)}function Li(w,P){return P=="@"&&T(We,Li),w=="spread"?T(Li):I&&At(P)?(W.marked="keyword",T(Li)):I&&w=="this"?T(Hn,ni):E(Kr,Hn,ni)}function Po(w,P){return w=="variable"?ga(w,P):Fn(w,P)}function ga(w,P){if(w=="variable")return be(P),T(Fn)}function Fn(w,P){if(P=="<")return T(_e(">"),Zt(Zi,">"),Fe,Fn);if(P=="extends"||P=="implements"||I&&w==",")return P=="implements"&&(W.marked="keyword"),T(I?Ge:We,Fn);if(w=="{")return T(_e("}"),Wn,Fe)}function Wn(w,P){if(w=="async"||w=="variable"&&(P=="static"||P=="get"||P=="set"||I&&At(P))&&W.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return W.marked="keyword",T(Wn);if(w=="variable"||W.style=="keyword")return W.marked="property",T(gn,Wn);if(w=="number"||w=="string")return T(gn,Wn);if(w=="[")return T(We,Hn,Ze("]"),gn,Wn);if(P=="*")return W.marked="keyword",T(Wn);if(I&&w=="(")return E(pn,Wn);if(w==";"||w==",")return T(Wn);if(w=="}")return T();if(P=="@")return T(We,Wn)}function gn(w,P){if(P=="!"||P=="?")return T(gn);if(w==":")return T(Ge,ni);if(P=="=")return T(Vt);var j=W.state.lexical.prev,ae=j&&j.info=="interface";return E(ae?pn:zn)}function os(w,P){return P=="*"?(W.marked="keyword",T(nn,Ze(";"))):P=="default"?(W.marked="keyword",T(We,Ze(";"))):w=="{"?T(Zt(as,"}"),nn,Ze(";")):E(at)}function as(w,P){if(P=="as")return W.marked="keyword",T(Ze("variable"));if(w=="variable")return E(Vt,as)}function Wt(w){return w=="string"?T():w=="("?E(We):w=="."?E(yt):E(Me,vn,nn)}function Me(w,P){return w=="{"?zi(Me,"}"):(w=="variable"&&be(P),P=="*"&&(W.marked="keyword"),T(ss))}function vn(w){if(w==",")return T(Me,vn)}function ss(w,P){if(P=="as")return W.marked="keyword",T(Me)}function nn(w,P){if(P=="from")return W.marked="keyword",T(We)}function zt(w){return w=="]"?T():E(Zt(Vt,"]"))}function Un(){return E(_e("form"),Kr,Ze("{"),_e("}"),Zt(Gi,"}"),Fe,Fe)}function Gi(){return E(Kr,ni)}function va(w,P){return w.lastType=="operator"||w.lastType==","||X.test(P.charAt(0))||/[,.]/.test(P.charAt(0))}function ie(w,P,j){return P.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(P.lastType)||P.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(j||0)))}return{startState:function(w){var P={tokenize:pe,lastType:"sof",cc:[],lexical:new ve((w||0)-p,0,"block",!1),localVars:f.localVars,context:f.localVars&&new sr(null,null,!1),indented:w||0};return f.globalVars&&typeof f.globalVars=="object"&&(P.globalVars=f.globalVars),P},token:function(w,P){if(w.sol()&&(P.lexical.hasOwnProperty("align")||(P.lexical.align=!1),P.indented=w.indentation(),et(w,P)),P.tokenize!=Te&&w.eatSpace())return null;var j=P.tokenize(w,P);return ye=="comment"?j:(P.lastType=ye=="operator"&&(Ae=="++"||Ae=="--")?"incdec":ye,it(P,j,ye,Ae,w))},indent:function(w,P){if(w.tokenize==Te||w.tokenize==He)return o.Pass;if(w.tokenize!=pe)return 0;var j=P&&P.charAt(0),ae=w.lexical,qe;if(!/^\s*else\b/.test(P))for(var vt=w.cc.length-1;vt>=0;--vt){var me=w.cc[vt];if(me==Fe)ae=ae.prev;else if(me!=el&&me!=ut)break}for(;(ae.type=="stat"||ae.type=="form")&&(j=="}"||(qe=w.cc[w.cc.length-1])&&(qe==yt||qe==Mt)&&!/^[,\.=+\-*:?[\(]/.test(P));)ae=ae.prev;b&&ae.type==")"&&ae.prev.type=="stat"&&(ae=ae.prev);var Or=ae.type,on=j==Or;return Or=="vardef"?ae.indented+(w.lastType=="operator"||w.lastType==","?ae.info.length+1:0):Or=="form"&&j=="{"?ae.indented:Or=="form"?ae.indented+p:Or=="stat"?ae.indented+(va(w,P)?b||p:0):ae.info=="switch"&&!on&&f.doubleIndentSwitch!=!1?ae.indented+(/^(?:case|default)\b/.test(P)?p:2*p):ae.align?ae.column+(on?0:1):ae.indented+(on?0:p)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:S?null:"/*",blockCommentEnd:S?null:"*/",blockCommentContinue:S?null:" * ",lineComment:S?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:S?"json":"javascript",jsonldMode:M,jsonMode:S,expressionAllowed:ie,skipExpression:function(w){it(w,"atom","atom","true",new o.StringStream("",2,null))}}}),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Pp.exports}q2();var Ep={exports:{}},Ip;function c8(){return Ip||(Ip=1,function(r,n){(function(o){o(es())})(function(o){o.defineMode("css",function(ve,Ce){var it=Ce.inline;Ce.propertyKeywords||(Ce=o.resolveMode("text/css"));var W=ve.indentUnit,E=Ce.tokenHooks,T=Ce.documentTypes||{},ne=Ce.mediaTypes||{},be=Ce.mediaFeatures||{},ot=Ce.mediaValueKeywords||{},At=Ce.propertyKeywords||{},sr=Ce.nonStandardPropertyKeywords||{},Bt=Ce.fontProperties||{},dn=Ce.counterDescriptors||{},er=Ce.colorKeywords||{},Ft=Ce.valueKeywords||{},ut=Ce.allowNested,_e=Ce.lineComment,Fe=Ce.supportsAtComponent===!0,Ze=ve.highlightNonStandardPropertyKeywords!==!1,at,st;function We(B,oe){return at=oe,B}function Vt(B,oe){var V=B.next();if(E[V]){var Qe=E[V](B,oe);if(Qe!==!1)return Qe}if(V=="@")return B.eatWhile(/[\w\\\-]/),We("def",B.current());if(V=="="||(V=="~"||V=="|")&&B.eat("="))return We(null,"compare");if(V=='"'||V=="'")return oe.tokenize=qr(V),oe.tokenize(B,oe);if(V=="#")return B.eatWhile(/[\w\\\-]/),We("atom","hash");if(V=="!")return B.match(/^\s*\w*/),We("keyword","important");if(/\d/.test(V)||V=="."&&B.eat(/\d/))return B.eatWhile(/[\w.%]/),We("number","unit");if(V==="-"){if(/[\d.]/.test(B.peek()))return B.eatWhile(/[\w.%]/),We("number","unit");if(B.match(/^-[\w\\\-]*/))return B.eatWhile(/[\w\\\-]/),B.match(/^\s*:/,!1)?We("variable-2","variable-definition"):We("variable-2","variable");if(B.match(/^\w+-/))return We("meta","meta")}else return/[,+>*\/]/.test(V)?We(null,"select-op"):V=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)?We("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(V)?We(null,V):B.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(B.current())&&(oe.tokenize=lr),We("variable callee","variable")):/[\w\\\-]/.test(V)?(B.eatWhile(/[\w\\\-]/),We("property","word")):We(null,null)}function qr(B){return function(oe,V){for(var Qe=!1,dr;(dr=oe.next())!=null;){if(dr==B&&!Qe){B==")"&&oe.backUp(1);break}Qe=!Qe&&dr=="\\"}return(dr==B||!Qe&&B!=")")&&(V.tokenize=null),We("string","string")}}function lr(B,oe){return B.next(),B.match(/^\s*[\"\')]/,!1)?oe.tokenize=null:oe.tokenize=qr(")"),We(null,"(")}function Xe(B,oe,V){this.type=B,this.indent=oe,this.prev=V}function yt(B,oe,V,Qe){return B.context=new Xe(V,oe.indentation()+(Qe===!1?0:W),B.context),V}function Mt(B){return B.context.prev&&(B.context=B.context.prev),B.context.type}function $r(B,oe,V){return tt[V.context.type](B,oe,V)}function rn(B,oe,V,Qe){for(var dr=Qe||1;dr>0;dr--)V.context=V.context.prev;return $r(B,oe,V)}function fr(B){var oe=B.current().toLowerCase();Ft.hasOwnProperty(oe)?st="atom":er.hasOwnProperty(oe)?st="keyword":st="variable"}var tt={};return tt.top=function(B,oe,V){if(B=="{")return yt(V,oe,"block");if(B=="}"&&V.context.prev)return Mt(V);if(Fe&&/@component/i.test(B))return yt(V,oe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(B))return yt(V,oe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(B))return yt(V,oe,"atBlock");if(/^@(font-face|counter-style)/i.test(B))return V.stateArg=B,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(B))return"keyframes";if(B&&B.charAt(0)=="@")return yt(V,oe,"at");if(B=="hash")st="builtin";else if(B=="word")st="tag";else{if(B=="variable-definition")return"maybeprop";if(B=="interpolation")return yt(V,oe,"interpolation");if(B==":")return"pseudo";if(ut&&B=="(")return yt(V,oe,"parens")}return V.context.type},tt.block=function(B,oe,V){if(B=="word"){var Qe=oe.current().toLowerCase();return At.hasOwnProperty(Qe)?(st="property","maybeprop"):sr.hasOwnProperty(Qe)?(st=Ze?"string-2":"property","maybeprop"):ut?(st=oe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(st+=" error","maybeprop")}else return B=="meta"?"block":!ut&&(B=="hash"||B=="qualifier")?(st="error","block"):tt.top(B,oe,V)},tt.maybeprop=function(B,oe,V){return B==":"?yt(V,oe,"prop"):$r(B,oe,V)},tt.prop=function(B,oe,V){if(B==";")return Mt(V);if(B=="{"&&ut)return yt(V,oe,"propBlock");if(B=="}"||B=="{")return rn(B,oe,V);if(B=="(")return yt(V,oe,"parens");if(B=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(oe.current()))st+=" error";else if(B=="word")fr(oe);else if(B=="interpolation")return yt(V,oe,"interpolation");return"prop"},tt.propBlock=function(B,oe,V){return B=="}"?Mt(V):B=="word"?(st="property","maybeprop"):V.context.type},tt.parens=function(B,oe,V){return B=="{"||B=="}"?rn(B,oe,V):B==")"?Mt(V):B=="("?yt(V,oe,"parens"):B=="interpolation"?yt(V,oe,"interpolation"):(B=="word"&&fr(oe),"parens")},tt.pseudo=function(B,oe,V){return B=="meta"?"pseudo":B=="word"?(st="variable-3",V.context.type):$r(B,oe,V)},tt.documentTypes=function(B,oe,V){return B=="word"&&T.hasOwnProperty(oe.current())?(st="tag",V.context.type):tt.atBlock(B,oe,V)},tt.atBlock=function(B,oe,V){if(B=="(")return yt(V,oe,"atBlock_parens");if(B=="}"||B==";")return rn(B,oe,V);if(B=="{")return Mt(V)&&yt(V,oe,ut?"block":"top");if(B=="interpolation")return yt(V,oe,"interpolation");if(B=="word"){var Qe=oe.current().toLowerCase();Qe=="only"||Qe=="not"||Qe=="and"||Qe=="or"?st="keyword":ne.hasOwnProperty(Qe)?st="attribute":be.hasOwnProperty(Qe)?st="property":ot.hasOwnProperty(Qe)?st="keyword":At.hasOwnProperty(Qe)?st="property":sr.hasOwnProperty(Qe)?st=Ze?"string-2":"property":Ft.hasOwnProperty(Qe)?st="atom":er.hasOwnProperty(Qe)?st="keyword":st="error"}return V.context.type},tt.atComponentBlock=function(B,oe,V){return B=="}"?rn(B,oe,V):B=="{"?Mt(V)&&yt(V,oe,ut?"block":"top",!1):(B=="word"&&(st="error"),V.context.type)},tt.atBlock_parens=function(B,oe,V){return B==")"?Mt(V):B=="{"||B=="}"?rn(B,oe,V,2):tt.atBlock(B,oe,V)},tt.restricted_atBlock_before=function(B,oe,V){return B=="{"?yt(V,oe,"restricted_atBlock"):B=="word"&&V.stateArg=="@counter-style"?(st="variable","restricted_atBlock_before"):$r(B,oe,V)},tt.restricted_atBlock=function(B,oe,V){return B=="}"?(V.stateArg=null,Mt(V)):B=="word"?(V.stateArg=="@font-face"&&!Bt.hasOwnProperty(oe.current().toLowerCase())||V.stateArg=="@counter-style"&&!dn.hasOwnProperty(oe.current().toLowerCase())?st="error":st="property","maybeprop"):"restricted_atBlock"},tt.keyframes=function(B,oe,V){return B=="word"?(st="variable","keyframes"):B=="{"?yt(V,oe,"top"):$r(B,oe,V)},tt.at=function(B,oe,V){return B==";"?Mt(V):B=="{"||B=="}"?rn(B,oe,V):(B=="word"?st="tag":B=="hash"&&(st="builtin"),"at")},tt.interpolation=function(B,oe,V){return B=="}"?Mt(V):B=="{"||B==";"?rn(B,oe,V):(B=="word"?st="variable":B!="variable"&&B!="("&&B!=")"&&(st="error"),"interpolation")},{startState:function(B){return{tokenize:null,state:it?"block":"top",stateArg:null,context:new Xe(it?"block":"top",B||0,null)}},token:function(B,oe){if(!oe.tokenize&&B.eatSpace())return null;var V=(oe.tokenize||Vt)(B,oe);return V&&typeof V=="object"&&(at=V[1],V=V[0]),st=V,at!="comment"&&(oe.state=tt[oe.state](at,B,oe)),st},indent:function(B,oe){var V=B.context,Qe=oe&&oe.charAt(0),dr=V.indent;return V.type=="prop"&&(Qe=="}"||Qe==")")&&(V=V.prev),V.prev&&(Qe=="}"&&(V.type=="block"||V.type=="top"||V.type=="interpolation"||V.type=="restricted_atBlock")?(V=V.prev,dr=V.indent):(Qe==")"&&(V.type=="parens"||V.type=="atBlock_parens")||Qe=="{"&&(V.type=="at"||V.type=="atBlock"))&&(dr=Math.max(0,V.indent-W))),dr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function c(ve){for(var Ce={},it=0;it<ve.length;++it)Ce[ve[it].toLowerCase()]=!0;return Ce}var f=["domain","regexp","url","url-prefix"],p=c(f),b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],M=c(b),S=["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"],O=c(S),I=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],U=c(I),q=["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"],X=c(q),ce=["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"],xe=c(ce),ye=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ae=c(ye),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=c(Ie),he=["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"],Te=c(he),He=["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"],Ye=c(He),et=f.concat(b).concat(S).concat(I).concat(q).concat(ce).concat(he).concat(He);o.registerHelper("hintWords","css",et);function nt(ve,Ce){for(var it=!1,W;(W=ve.next())!=null;){if(it&&W=="/"){Ce.tokenize=null;break}it=W=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:p,mediaTypes:M,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,tokenHooks:{"/":function(ve,Ce){return ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:M,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,Ce){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):["operator","operator"]},":":function(ve){return ve.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ve){return ve.match(/^[\w-]+/),ve.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ve){return ve.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:M,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,Ce){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):["operator","operator"]},"@":function(ve){return ve.eat("{")?[null,"interpolation"]:ve.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ve.eatWhile(/[\w\\\-]/),ve.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:p,mediaTypes:M,mediaFeatures:O,propertyKeywords:X,nonStandardPropertyKeywords:xe,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,supportsAtComponent:!0,tokenHooks:{"/":function(ve,Ce){return ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):!1}},name:"css",helperType:"gss"})})}()),Ep.exports}(function(r,n){(function(o){o(es(),u8.exports,q2(),c8())})(function(o){var c={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 f(U,q,X){var ce=U.current(),xe=ce.search(q);return xe>-1?U.backUp(ce.length-xe):ce.match(/<\/?$/)&&(U.backUp(ce.length),U.match(q,!1)||U.match(ce)),X}var p={};function b(U){var q=p[U];return q||(p[U]=new RegExp("\\s+"+U+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function M(U,q){var X=U.match(b(q));return X?/^\s*(.*?)\s*$/.exec(X[2])[1]:""}function S(U,q){return new RegExp((q?"^":"")+"</s*"+U+"s*>","i")}function O(U,q){for(var X in U)for(var ce=q[X]||(q[X]=[]),xe=U[X],ye=xe.length-1;ye>=0;ye--)ce.unshift(xe[ye])}function I(U,q){for(var X=0;X<U.length;X++){var ce=U[X];if(!ce[0]||ce[1].test(M(q,ce[0])))return ce[2]}}o.defineMode("htmlmixed",function(U,q){var X=o.getMode(U,{name:"xml",htmlMode:!0,multilineTagIndentFactor:q.multilineTagIndentFactor,multilineTagIndentPastTag:q.multilineTagIndentPastTag,allowMissingTagName:q.allowMissingTagName}),ce={},xe=q&&q.tags,ye=q&&q.scriptTypes;if(O(c,ce),xe&&O(xe,ce),ye)for(var Ae=ye.length-1;Ae>=0;Ae--)ce.script.unshift(["type",ye[Ae].matches,ye[Ae].mode]);function Ie(pe,he){var Te=X.token(pe,he.htmlState),He=/\btag\b/.test(Te),Ye;if(He&&!/[<>\s\/]/.test(pe.current())&&(Ye=he.htmlState.tagName&&he.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(Ye))he.inTag=Ye+" ";else if(he.inTag&&He&&/>$/.test(pe.current())){var et=/^([\S]+) (.*)/.exec(he.inTag);he.inTag=null;var nt=pe.current()==">"&&I(ce[et[1]],et[2]),ve=o.getMode(U,nt),Ce=S(et[1],!0),it=S(et[1],!1);he.token=function(W,E){return W.match(Ce,!1)?(E.token=Ie,E.localState=E.localMode=null,null):f(W,it,E.localMode.token(W,E.localState))},he.localMode=ve,he.localState=o.startState(ve,X.indent(he.htmlState,"",""))}else he.inTag&&(he.inTag+=pe.current(),pe.eol()&&(he.inTag+=" "));return Te}return{startState:function(){var pe=o.startState(X);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var he;return pe.localState&&(he=o.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:he,htmlState:o.copyState(X,pe.htmlState)}},token:function(pe,he){return he.token(pe,he)},indent:function(pe,he,Te){return!pe.localMode||/^\s*<\//.test(he)?X.indent(pe.htmlState,he,Te):pe.localMode.indent?pe.localMode.indent(pe.localState,he,Te):o.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||X}}}},"xml","javascript","css"),o.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(o){o(es())})(function(o){o.defineOption("placeholder","",function(O,I,U){var q=U&&U!=o.Init;if(I&&!q)O.on("blur",b),O.on("change",M),O.on("swapDoc",M),o.on(O.getInputField(),"compositionupdate",O.state.placeholderCompose=function(){p(O)}),M(O);else if(!I&&q){O.off("blur",b),O.off("change",M),O.off("swapDoc",M),o.off(O.getInputField(),"compositionupdate",O.state.placeholderCompose),c(O);var X=O.getWrapperElement();X.className=X.className.replace(" CodeMirror-empty","")}I&&!O.hasFocus()&&b(O)});function c(O){O.state.placeholder&&(O.state.placeholder.parentNode.removeChild(O.state.placeholder),O.state.placeholder=null)}function f(O){c(O);var I=O.state.placeholder=document.createElement("pre");I.style.cssText="height: 0; overflow: visible",I.style.direction=O.getOption("direction"),I.className="CodeMirror-placeholder CodeMirror-line-like";var U=O.getOption("placeholder");typeof U=="string"&&(U=document.createTextNode(U)),I.appendChild(U),O.display.lineSpace.insertBefore(I,O.display.lineSpace.firstChild)}function p(O){setTimeout(function(){var I=!1;if(O.lineCount()==1){var U=O.getInputField();I=U.nodeName=="TEXTAREA"?!O.getLine(0).length:!/[^\u200b]/.test(U.querySelector(".CodeMirror-line").textContent)}I?f(O):c(O)},20)}function b(O){S(O)&&f(O)}function M(O){var I=O.getWrapperElement(),U=S(O);I.className=I.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?f(O):c(O)}function S(O){return O.lineCount()===1&&O.getLine(0)===""}})})();var f8=Object.defineProperty,d8=Object.getOwnPropertyDescriptor,pu=(r,n,o,c)=>{for(var f=c>1?void 0:c?d8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&f8(n,o,f),f};b0.defineMode("nunjucks",(r,n)=>b0.overlayMode(b0.getMode(r,n.backdrop||"text/html"),b0.getMode(r,"jinja2")));const j2=Ee("input-code"),h8={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks"};exports.InputCode=class extends Rn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(r){this.value=r.getValue(),this.dispatchChange()}updated(){var r,n;super.updated(),this.value!==this.editorValue&&(this.editorValue=this.value||""),this.readonly!==((r=this.editor)==null?void 0:r.isReadOnly())&&((n=this.editor)==null||n.setOption("readOnly",this.readonly)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()})}get editorValue(){var r;return((r=this.editor)==null?void 0:r.getDoc().getValue())||""}set editorValue(r){var n;(n=this.editor)==null||n.setValue(r)}firstUpdated(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");r&&(this.editor=b0.fromTextArea(r,{mode:h8[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:o=>{const c=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.editor)==null||r.off("change",this.changeHandler)}renderInput(){return ee`
2303
+ <textarea class="editor" placeholder="${qt(this.placeholder)}">
2222
2304
  ${this.value}</textarea
2223
2305
  >
2224
- `}};exports.InputCode.styles=[...Rn.styles,Se`
2225
- ${Np(J9)}
2306
+ `}};exports.InputCode.styles=[...Rn.styles,ge`
2307
+ ${Zs(s8)}
2226
2308
 
2227
2309
  :host([size="full"]) {
2228
2310
  width: 100%;
@@ -2272,17 +2354,17 @@ ${this.value}</textarea
2272
2354
  .CodeMirror pre.CodeMirror-placeholder {
2273
2355
  color: var(--brz-color-neutral-500);
2274
2356
  }
2275
- `,e8];hu([F()],exports.InputCode.prototype,"mode",2);hu([F({reflect:!0})],exports.InputCode.prototype,"size",2);hu([F({type:Number})],exports.InputCode.prototype,"height",2);hu([F({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);hu([pt()],exports.InputCode.prototype,"editor",2);exports.InputCode=hu([Q(F2)],exports.InputCode);var M0={exports:{}};/**
2357
+ `,l8];pu([F()],exports.InputCode.prototype,"mode",2);pu([F({reflect:!0})],exports.InputCode.prototype,"size",2);pu([F({type:Number})],exports.InputCode.prototype,"height",2);pu([F({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);pu([pt()],exports.InputCode.prototype,"editor",2);exports.InputCode=pu([Q(j2)],exports.InputCode);var M0={exports:{}};/**
2276
2358
  * @license
2277
2359
  * Lodash <https://lodash.com/>
2278
2360
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
2279
2361
  * Released under MIT license <https://lodash.com/license>
2280
2362
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2281
2363
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2282
- */(function(r,n){(function(){var o,c="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",k="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",O=500,I="__lodash_placeholder__",U=1,q=2,X=4,ce=1,we=2,me=1,Ae=2,Ie=4,pe=8,he=16,Te=32,He=64,Ye=128,et=256,nt=512,ge=30,ye="...",it=800,W=16,E=1,T=2,ne=3,ve=1/0,ot=9007199254740991,At=17976931348623157e292,sr=0/0,Bt=4294967295,dn=Bt-1,er=Bt>>>1,Ft=[["ary",Ye],["bind",me],["bindKey",Ae],["curry",pe],["curryRight",he],["flip",nt],["partial",Te],["partialRight",He],["rearg",et]],ut="[object Arguments]",_e="[object Array]",Fe="[object AsyncFunction]",Ze="[object Boolean]",at="[object Date]",st="[object DOMException]",We="[object Error]",Gt="[object Function]",qr="[object GeneratorFunction]",lr="[object Map]",Xe="[object Number]",yt="[object Null]",kt="[object Object]",$r="[object Promise]",rn="[object Proxy]",fr="[object RegExp]",tt="[object Set]",B="[object String]",oe="[object Symbol]",V="[object Undefined]",Qe="[object WeakMap]",dr="[object WeakSet]",Mr="[object ArrayBuffer]",$n="[object DataView]",jr="[object Float32Array]",Zt="[object Float64Array]",xi="[object Int8Array]",Hr="[object Int16Array]",Hn="[object Int32Array]",$e="[object Uint8Array]",Ui="[object Uint8ClampedArray]",kr="[object Uint16Array]",Ge="[object Uint32Array]",ir=/\b__p \+= '';/g,pa=/\b(__p \+=) '' \+/g,wr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,xr=/[&<>"']/g,ga=RegExp(Bn.source),hn=RegExp(xr.source),ko=/<%-([\s\S]+?)%>/g,Yi=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,ns=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/,Qs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oo=/[\\^$.*+?()[\]{}|]/g,ni=RegExp(Oo.source),To=/^\s+/,Js=/\s/,el=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,is=/\{\n\/\* \[wrapped with (.+)\] \*/,Zi=/,? & /,Ln=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,tl=/\\(\\)?/g,Li=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Po=/\w*$/,va=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,gn=/^0o[0-7]+$/i,os=/^(?:0|[1-9]\d*)$/,as=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wt=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ss="\\u0300-\\u036f",nn="\\ufe20-\\ufe2f",Lt="\\u20d0-\\u20ff",Un=ss+nn+Lt,Vi="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",ie="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P="\\u2000-\\u206f",j=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ae="A-Z\\xc0-\\xd6\\xd8-\\xde",qe="\\ufe0e\\ufe0f",vt=ie+w+P+j,be="['\u2019]",Or="["+vn+"]",on="["+vt+"]",_i="["+Un+"]",Yn="\\d+",Y0="["+Vi+"]",bu="["+ba+"]",ma="[^"+vn+vt+Yn+Vi+ba+ae+"]",ls="\\ud83c[\\udffb-\\udfff]",Z0="(?:"+_i+"|"+ls+")",rl="[^"+vn+"]",nl="(?:\\ud83c[\\udde6-\\uddff]){2}",il="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+ae+"]",mu="\\u200d",V0="(?:"+bu+"|"+ma+")",nf="(?:"+Ao+"|"+ma+")",yu="(?:"+be+"(?:d|ll|m|re|s|t|ve))?",ii="(?:"+be+"(?:D|LL|M|RE|S|T|VE))?",G0=Z0+"?",q0="["+qe+"]?",ol="(?:"+mu+"(?:"+[rl,nl,il].join("|")+")"+q0+G0+")*",us="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",j0=q0+G0+ol,af="(?:"+[Y0,nl,il].join("|")+")"+j0,sf="(?:"+[rl+_i+"?",_i,nl,il,Or].join("|")+")",Cu=RegExp(be,"g"),K0=RegExp(_i,"g"),wu=RegExp(ls+"(?="+ls+")|"+sf+j0,"g"),X0=RegExp([Ao+"?"+bu+"+"+yu+"(?="+[on,Ao,"$"].join("|")+")",nf+"+"+ii+"(?="+[on,Ao+V0,"$"].join("|")+")",Ao+"?"+V0+"+"+yu,Ao+"+"+ii,of,us,Yn,af].join("|"),"g"),Q0=RegExp("["+mu+vn+Un+qe+"]"),al=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xu=-1,Ut={};Ut[jr]=Ut[Zt]=Ut[xi]=Ut[Hr]=Ut[Hn]=Ut[$e]=Ut[Ui]=Ut[kr]=Ut[Ge]=!0,Ut[ut]=Ut[_e]=Ut[Mr]=Ut[Ze]=Ut[$n]=Ut[at]=Ut[We]=Ut[Gt]=Ut[lr]=Ut[Xe]=Ut[kt]=Ut[fr]=Ut[tt]=Ut[B]=Ut[Qe]=!1;var $t={};$t[ut]=$t[_e]=$t[Mr]=$t[$n]=$t[Ze]=$t[at]=$t[jr]=$t[Zt]=$t[xi]=$t[Hr]=$t[Hn]=$t[lr]=$t[Xe]=$t[kt]=$t[fr]=$t[tt]=$t[B]=$t[oe]=$t[$e]=$t[Ui]=$t[kr]=$t[Ge]=!0,$t[We]=$t[Gt]=$t[Qe]=!1;var ll={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},lf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},J0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},oi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uf=parseFloat,cf=parseInt,ul=typeof Ql=="object"&&Ql&&Ql.Object===Object&&Ql,ec=typeof self=="object"&&self&&self.Object===Object&&self,qt=ul||ec||Function("return this")(),cs=n&&!n.nodeType&&n,Xr=cs&&!0&&r&&!r.nodeType&&r,fs=Xr&&Xr.exports===cs,ds=fs&&ul.process,Tr=function(){try{var $=Xr&&Xr.require&&Xr.require("util").types;return $||ds&&ds.binding&&ds.binding("util")}catch{}}(),tc=Tr&&Tr.isArrayBuffer,rc=Tr&&Tr.isDate,nc=Tr&&Tr.isMap,ic=Tr&&Tr.isRegExp,Lu=Tr&&Tr.isSet,_u=Tr&&Tr.isTypedArray;function bn($,K,Y){switch(Y.length){case 0:return $.call(K);case 1:return $.call(K,Y[0]);case 2:return $.call(K,Y[0],Y[1]);case 3:return $.call(K,Y[0],Y[1],Y[2])}return $.apply(K,Y)}function ff($,K,Y,Me){for(var Je=-1,Mt=$==null?0:$.length;++Je<Mt;){var pr=$[Je];K(Me,pr,Y(pr),$)}return Me}function _n($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me&&K($[Y],Y,$)!==!1;);return $}function df($,K){for(var Y=$==null?0:$.length;Y--&&K($[Y],Y,$)!==!1;);return $}function zu($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me;)if(!K($[Y],Y,$))return!1;return!0}function Gi($,K){for(var Y=-1,Me=$==null?0:$.length,Je=0,Mt=[];++Y<Me;){var pr=$[Y];K(pr,Y,$)&&(Mt[Je++]=pr)}return Mt}function hs($,K){var Y=$==null?0:$.length;return!!Y&&Io($,K,0)>-1}function ya($,K,Y){for(var Me=-1,Je=$==null?0:$.length;++Me<Je;)if(Y(K,$[Me]))return!0;return!1}function Et($,K){for(var Y=-1,Me=$==null?0:$.length,Je=Array(Me);++Y<Me;)Je[Y]=K($[Y],Y,$);return Je}function qi($,K){for(var Y=-1,Me=K.length,Je=$.length;++Y<Me;)$[Je+Y]=K[Y];return $}function Su($,K,Y,Me){var Je=-1,Mt=$==null?0:$.length;for(Me&&Mt&&(Y=$[++Je]);++Je<Mt;)Y=K(Y,$[Je],Je,$);return Y}function hf($,K,Y,Me){var Je=$==null?0:$.length;for(Me&&Je&&(Y=$[--Je]);Je--;)Y=K(Y,$[Je],Je,$);return Y}function Eo($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me;)if(K($[Y],Y,$))return!0;return!1}var hr=ku("length");function pf($){return $.split("")}function oc($){return $.match(Ln)||[]}function Ca($,K,Y){var Me;return Y($,function(Je,Mt,pr){if(K(Je,Mt,pr))return Me=Mt,!1}),Me}function cl($,K,Y,Me){for(var Je=$.length,Mt=Y+(Me?1:-1);Me?Mt--:++Mt<Je;)if(K($[Mt],Mt,$))return Mt;return-1}function Io($,K,Y){return K===K?dc($,K,Y):cl($,fl,Y)}function gf($,K,Y,Me){for(var Je=Y-1,Mt=$.length;++Je<Mt;)if(Me($[Je],K))return Je;return-1}function fl($){return $!==$}function Mu($,K){var Y=$==null?0:$.length;return Y?Pu($,K)/Y:sr}function ku($){return function(K){return K==null?o:K[$]}}function Ou($){return function(K){return $==null?o:$[K]}}function Tu($,K,Y,Me,Je){return Je($,function(Mt,pr,wt){Y=Me?(Me=!1,Mt):K(Y,Mt,pr,wt)}),Y}function ac($,K){var Y=$.length;for($.sort(K);Y--;)$[Y]=$[Y].value;return $}function Pu($,K){for(var Y,Me=-1,Je=$.length;++Me<Je;){var Mt=K($[Me]);Mt!==o&&(Y=Y===o?Mt:Y+Mt)}return Y}function Do($,K){for(var Y=-1,Me=Array($);++Y<$;)Me[Y]=K(Y);return Me}function zi($,K){return Et(K,function(Y){return[Y,$[Y]]})}function ps($){return $&&$.slice(0,vl($)+1).replace(To,"")}function Qr($){return function(K){return $(K)}}function dl($,K){return Et(K,function(Y){return $[Y]})}function an($,K){return $.has(K)}function ji($,K){for(var Y=-1,Me=$.length;++Y<Me&&Io(K,$[Y],0)>-1;);return Y}function hl($,K){for(var Y=$.length;Y--&&Io(K,$[Y],0)>-1;);return Y}function vf($,K){for(var Y=$.length,Me=0;Y--;)$[Y]===K&&++Me;return Me}var sc=Ou(ll),bf=Ou(lf);function lc($){return"\\"+oi[$]}function Au($,K){return $==null?o:$[K]}function Zn($){return Q0.test($)}function ai($){return al.test($)}function uc($){for(var K,Y=[];!(K=$.next()).done;)Y.push(K.value);return Y}function pl($){var K=-1,Y=Array($.size);return $.forEach(function(Me,Je){Y[++K]=[Je,Me]}),Y}function cc($,K){return function(Y){return $(K(Y))}}function Ki($,K){for(var Y=-1,Me=$.length,Je=0,Mt=[];++Y<Me;){var pr=$[Y];(pr===K||pr===I)&&($[Y]=I,Mt[Je++]=Y)}return Mt}function gl($){var K=-1,Y=Array($.size);return $.forEach(function(Me){Y[++K]=Me}),Y}function fc($){var K=-1,Y=Array($.size);return $.forEach(function(Me){Y[++K]=[Me,Me]}),Y}function dc($,K,Y){for(var Me=Y-1,Je=$.length;++Me<Je;)if($[Me]===K)return Me;return-1}function gs($,K,Y){for(var Me=Y+1;Me--;)if($[Me]===K)return Me;return Me}function Ro($){return Zn($)?hc($):hr($)}function zn($){return Zn($)?ml($):pf($)}function vl($){for(var K=$.length;K--&&Js.test($.charAt(K)););return K}var bl=Ou(J0);function hc($){for(var K=wu.lastIndex=0;wu.test($);)++K;return K}function ml($){return $.match(wu)||[]}function Vn($){return $.match(X0)||[]}var pc=function $(K){K=K==null?qt:Xi.defaults(qt.Object(),K,Xi.pick(qt,sl));var Y=K.Array,Me=K.Date,Je=K.Error,Mt=K.Function,pr=K.Math,wt=K.Object,Qi=K.RegExp,wa=K.String,sn=K.TypeError,xa=Y.prototype,gc=Mt.prototype,Ji=wt.prototype,si=K["__core-js_shared__"],li=gc.toString,rt=Ji.hasOwnProperty,eo=0,Si=function(){var i=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),No=Ji.toString,mf=li.call(wt),vc=qt._,vs=Qi("^"+li.call(rt).replace(Oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bs=fs?K.Buffer:o,Mi=K.Symbol,$o=K.Uint8Array,bc=bs?bs.allocUnsafe:o,La=cc(wt.getPrototypeOf,wt),Eu=wt.create,yl=Ji.propertyIsEnumerable,_a=xa.splice,Ho=Mi?Mi.isConcatSpreadable:o,to=Mi?Mi.iterator:o,ro=Mi?Mi.toStringTag:o,Bo=function(){try{var i=jo(wt,"defineProperty");return i({},"",{}),i}catch{}}(),yf=K.clearTimeout!==qt.clearTimeout&&K.clearTimeout,Cf=Me&&Me.now!==qt.Date.now&&Me.now,wf=K.setTimeout!==qt.setTimeout&&K.setTimeout,za=pr.ceil,Sa=pr.floor,no=wt.getOwnPropertySymbols,ms=bs?bs.isBuffer:o,mc=K.isFinite,Cl=xa.join,yc=cc(wt.keys,wt),jt=pr.max,Pr=pr.min,Fo=Me.now,ys=K.parseInt,io=pr.random,Cs=xa.reverse,oo=jo(K,"DataView"),Ma=jo(K,"Map"),wl=jo(K,"Promise"),Wo=jo(K,"Set"),ws=jo(K,"WeakMap"),Gn=jo(wt,"create"),ui=ws&&new ws,ka={},xf=Ht(oo),Lf=Ht(Ma),_f=Ht(wl),zf=Ht(Wo),Sf=Ht(ws),Ar=Mi?Mi.prototype:o,Kt=Ar?Ar.valueOf:o,Er=Ar?Ar.toString:o;function L(i){if(cr(i)&&!ct(i)&&!(i instanceof bt)){if(i instanceof Jr)return i;if(rt.call(i,"__wrapped__"))return Zr(i)}return new Jr(i)}var ci=function(){function i(){}return function(l){if(!ar(l))return{};if(Eu)return Eu(l);i.prototype=l;var d=new i;return i.prototype=o,d}}();function xl(){}function Jr(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=o}L.templateSettings={escape:ko,evaluate:Yi,interpolate:rs,variable:"",imports:{_:L}},L.prototype=xl.prototype,L.prototype.constructor=L,Jr.prototype=ci(xl.prototype),Jr.prototype.constructor=Jr;function bt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bt,this.__views__=[]}function Mf(){var i=new bt(this.__wrapped__);return i.__actions__=zr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=zr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=zr(this.__views__),i}function kf(){if(this.__filtered__){var i=new bt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Iu(){var i=this.__wrapped__.value(),l=this.__dir__,d=ct(i),v=l<0,x=d?i.length:0,_=Vl(0,x,this.__views__),A=_.start,D=_.end,H=D-A,te=v?D:A-1,re=this.__iteratees__,se=re.length,Le=0,Ne=Pr(H,this.__takeCount__);if(!d||!v&&x==H&&Ne==H)return Bc(i,this.__actions__);var je=[];e:for(;H--&&Le<Ne;){te+=l;for(var gt=-1,Ke=i[te];++gt<se;){var Ct=re[gt],xt=Ct.iteratee,Kn=Ct.type,xn=xt(Ke);if(Kn==T)Ke=xn;else if(!xn){if(Kn==E)continue e;break e}}je[Le++]=Ke}return je}bt.prototype=ci(xl.prototype),bt.prototype.constructor=bt;function ao(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Du(){this.__data__=Gn?Gn(null):{},this.size=0}function Of(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Ru(i){var l=this.__data__;if(Gn){var d=l[i];return d===S?o:d}return rt.call(l,i)?l[i]:o}function Nu(i){var l=this.__data__;return Gn?l[i]!==o:rt.call(l,i)}function Cc(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Gn&&l===o?S:l,this}ao.prototype.clear=Du,ao.prototype.delete=Of,ao.prototype.get=Ru,ao.prototype.has=Nu,ao.prototype.set=Cc;function fi(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function $u(){this.__data__=[],this.size=0}function wc(i){var l=this.__data__,d=Uo(l,i);if(d<0)return!1;var v=l.length-1;return d==v?l.pop():_a.call(l,d,1),--this.size,!0}function xs(i){var l=this.__data__,d=Uo(l,i);return d<0?o:l[d][1]}function Tf(i){return Uo(this.__data__,i)>-1}function Ll(i,l){var d=this.__data__,v=Uo(d,i);return v<0?(++this.size,d.push([i,l])):d[v][1]=l,this}fi.prototype.clear=$u,fi.prototype.delete=wc,fi.prototype.get=xs,fi.prototype.has=Tf,fi.prototype.set=Ll;function or(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function xc(){this.size=0,this.__data__={hash:new ao,map:new(Ma||fi),string:new ao}}function Pf(i){var l=Zl(this,i).delete(i);return this.size-=l?1:0,l}function Lc(i){return Zl(this,i).get(i)}function mn(i){return Zl(this,i).has(i)}function _t(i,l){var d=Zl(this,i),v=d.size;return d.set(i,l),this.size+=d.size==v?0:1,this}or.prototype.clear=xc,or.prototype.delete=Pf,or.prototype.get=Lc,or.prototype.has=mn,or.prototype.set=_t;function Ir(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new or;++l<d;)this.add(i[l])}function so(i){return this.__data__.set(i,S),this}function lo(i){return this.__data__.has(i)}Ir.prototype.add=Ir.prototype.push=so,Ir.prototype.has=lo;function Sn(i){var l=this.__data__=new fi(i);this.size=l.size}function Hu(){this.__data__=new fi,this.size=0}function _c(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function Af(i){return this.__data__.get(i)}function Bu(i){return this.__data__.has(i)}function Ls(i,l){var d=this.__data__;if(d instanceof fi){var v=d.__data__;if(!Ma||v.length<f-1)return v.push([i,l]),this.size=++d.size,this;d=this.__data__=new or(v)}return d.set(i,l),this.size=d.size,this}Sn.prototype.clear=Hu,Sn.prototype.delete=_c,Sn.prototype.get=Af,Sn.prototype.has=Bu,Sn.prototype.set=Ls;function Fu(i,l){var d=ct(i),v=!d&&$s(i),x=!d&&!v&&Ga(i),_=!d&&!v&&!x&&ql(i),A=d||v||x||_,D=A?Do(i.length,wa):[],H=D.length;for(var te in i)(l||rt.call(i,te))&&!(A&&(te=="length"||x&&(te=="offset"||te=="parent")||_&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,H)))&&D.push(te);return D}function _l(i){var l=i.length;return l?i[Dl(0,l-1)]:o}function uo(i,l){return Sr(zr(i),Yo(l,0,i.length))}function zc(i){return Sr(zr(i))}function zl(i,l,d){(d!==o&&!Ei(i[l],d)||d===o&&!(l in i))&&di(i,l,d)}function _s(i,l,d){var v=i[l];(!(rt.call(i,l)&&Ei(v,d))||d===o&&!(l in i))&&di(i,l,d)}function Uo(i,l){for(var d=i.length;d--;)if(Ei(i[d][0],l))return d;return-1}function Wu(i,l,d,v){return yn(i,function(x,_,A){l(v,x,d(x),A)}),v}function Uu(i,l){return i&&ln(l,Gr(l),i)}function Ef(i,l){return i&&ln(l,Pn(l),i)}function di(i,l,d){l=="__proto__"&&Bo?Bo(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function Yu(i,l){for(var d=-1,v=l.length,x=Y(v),_=i==null;++d<v;)x[d]=_?o:jf(i,l[d]);return x}function Yo(i,l,d){return i===i&&(d!==o&&(i=i<=d?i:d),l!==o&&(i=i>=l?i:l)),i}function en(i,l,d,v,x,_){var A,D=l&U,H=l&q,te=l&X;if(d&&(A=x?d(i,v,x,_):d(i)),A!==o)return A;if(!ar(i))return i;var re=ct(i);if(re){if(A=s(i),!D)return zr(i,A)}else{var se=Wr(i),Le=se==Gt||se==qr;if(Ga(i))return t0(i,D);if(se==kt||se==ut||Le&&!x){if(A=H||Le?{}:a(i),!D)return H?Zc(i,Ef(A,i)):Ff(i,Uu(A,i))}else{if(!$t[se])return x?i:{};A=u(i,se,D)}}_||(_=new Sn);var Ne=_.get(i);if(Ne)return Ne;_.set(i,A),Uh(i)?i.forEach(function(Ke){A.add(en(Ke,l,d,Ke,i,_))}):Fh(i)&&i.forEach(function(Ke,Ct){A.set(Ct,en(Ke,l,d,Ct,i,_))});var je=te?H?Yl:Rs:H?Pn:Gr,gt=re?o:je(i);return _n(gt||i,function(Ke,Ct){gt&&(Ct=Ke,Ke=i[Ct]),_s(A,Ct,en(Ke,l,d,Ct,i,_))}),A}function Sc(i){var l=Gr(i);return function(d){return Mc(d,i,l)}}function Mc(i,l,d){var v=d.length;if(i==null)return!v;for(i=wt(i);v--;){var x=d[v],_=l[x],A=i[x];if(A===o&&!(x in i)||!_(A))return!1}return!0}function kc(i,l,d){if(typeof i!="function")throw new sn(b);return Rt(function(){i.apply(o,d)},l)}function Oa(i,l,d,v){var x=-1,_=hs,A=!0,D=i.length,H=[],te=l.length;if(!D)return H;d&&(l=Et(l,Qr(d))),v?(_=ya,A=!1):l.length>=f&&(_=an,A=!1,l=new Ir(l));e:for(;++x<D;){var re=i[x],se=d==null?re:d(re);if(re=v||re!==0?re:0,A&&se===se){for(var Le=te;Le--;)if(l[Le]===se)continue e;H.push(re)}else _(l,se,v)||H.push(re)}return H}var yn=Vc(Cn),Sl=Vc(Ol,!0);function Ml(i,l){var d=!0;return yn(i,function(v,x,_){return d=!!l(v,x,_),d}),d}function zs(i,l,d){for(var v=-1,x=i.length;++v<x;){var _=i[v],A=l(_);if(A!=null&&(D===o?A===A&&!jn(A):d(A,D)))var D=A,H=_}return H}function Zu(i,l,d,v){var x=i.length;for(d=dt(d),d<0&&(d=-d>x?0:x+d),v=v===o||v>x?x:dt(v),v<0&&(v+=x),v=d>v?0:Zh(v);d<v;)i[d++]=l;return i}function Vu(i,l){var d=[];return yn(i,function(v,x,_){l(v,x,_)&&d.push(v)}),d}function Dr(i,l,d,v,x){var _=-1,A=i.length;for(d||(d=g),x||(x=[]);++_<A;){var D=i[_];l>0&&d(D)?l>1?Dr(D,l-1,d,v,x):qi(x,D):v||(x[x.length]=D)}return x}var kl=Gc(),Lr=Gc(!0);function Cn(i,l){return i&&kl(i,l,Gr)}function Ol(i,l){return i&&Lr(i,l,Gr)}function Ss(i,l){return Gi(l,function(d){return Qo(i[d])})}function co(i,l){l=qn(l,i);for(var d=0,v=l.length;i!=null&&d<v;)i=i[It(l[d++])];return d&&d==v?i:o}function Zo(i,l,d){var v=l(i);return ct(i)?v:qi(v,d(i))}function _r(i){return i==null?i===o?V:yt:ro&&ro in wt(i)?tr(i):xe(i)}function Tl(i,l){return i>l}function Oc(i,l){return i!=null&&rt.call(i,l)}function Tc(i,l){return i!=null&&l in wt(i)}function Ta(i,l,d){return i>=Pr(l,d)&&i<jt(l,d)}function Pl(i,l,d){for(var v=d?ya:hs,x=i[0].length,_=i.length,A=_,D=Y(_),H=1/0,te=[];A--;){var re=i[A];A&&l&&(re=Et(re,Qr(l))),H=Pr(re.length,H),D[A]=!d&&(l||x>=120&&re.length>=120)?new Ir(A&&re):o}re=i[0];var se=-1,Le=D[0];e:for(;++se<x&&te.length<H;){var Ne=re[se],je=l?l(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(Le?an(Le,je):v(te,je,d))){for(A=_;--A;){var gt=D[A];if(!(gt?an(gt,je):v(i[A],je,d)))continue e}Le&&Le.push(je),te.push(Ne)}}return te}function Al(i,l,d,v){return Cn(i,function(x,_,A){l(v,d(x),_,A)}),v}function Pa(i,l,d){l=qn(l,i),i=Pe(i,l);var v=i==null?i:i[It(pi(l))];return v==null?o:bn(v,i,d)}function Aa(i){return cr(i)&&_r(i)==ut}function If(i){return cr(i)&&_r(i)==Mr}function Ea(i){return cr(i)&&_r(i)==at}function Ia(i,l,d,v,x){return i===l?!0:i==null||l==null||!cr(i)&&!cr(l)?i!==i&&l!==l:Pc(i,l,d,v,Ia,x)}function Pc(i,l,d,v,x,_){var A=ct(i),D=ct(l),H=A?_e:Wr(i),te=D?_e:Wr(l);H=H==ut?kt:H,te=te==ut?kt:te;var re=H==kt,se=te==kt,Le=H==te;if(Le&&Ga(i)){if(!Ga(l))return!1;A=!0,re=!1}if(Le&&!re)return _||(_=new Sn),A||ql(i)?s0(i,l,d,v,x,_):e1(i,l,H,d,v,x,_);if(!(d&ce)){var Ne=re&&rt.call(i,"__wrapped__"),je=se&&rt.call(l,"__wrapped__");if(Ne||je){var gt=Ne?i.value():i,Ke=je?l.value():l;return _||(_=new Sn),x(gt,Ke,d,v,_)}}return Le?(_||(_=new Sn),t1(i,l,d,v,x,_)):!1}function Ac(i){return cr(i)&&Wr(i)==lr}function Vo(i,l,d,v){var x=d.length,_=x,A=!v;if(i==null)return!_;for(i=wt(i);x--;){var D=d[x];if(A&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++x<_;){D=d[x];var H=D[0],te=i[H],re=D[1];if(A&&D[2]){if(te===o&&!(H in i))return!1}else{var se=new Sn;if(v)var Le=v(te,re,H,i,l,se);if(!(Le===o?Ia(re,te,ce|we,v,se):Le))return!1}}return!0}function Da(i){if(!ar(i)||N(i))return!1;var l=Qo(i)?vs:Wn;return l.test(Ht(i))}function Ms(i){return cr(i)&&_r(i)==fr}function ks(i){return cr(i)&&Wr(i)==tt}function Ec(i){return cr(i)&&l1(i.length)&&!!Ut[_r(i)]}function Ic(i){return typeof i=="function"?i:i==null?An:typeof i=="object"?ct(i)?Gu(i[0],i[1]):Dc(i):rp(i)}function El(i){if(!Z(i))return yc(i);var l=[];for(var d in wt(i))rt.call(i,d)&&d!="constructor"&&l.push(d);return l}function fo(i){if(!ar(i))return de(i);var l=Z(i),d=[];for(var v in i)v=="constructor"&&(l||!rt.call(i,v))||d.push(v);return d}function ho(i,l){return i<l}function Ra(i,l){var d=-1,v=Tn(i)?Y(i.length):[];return yn(i,function(x,_,A){v[++d]=l(x,_,A)}),v}function Dc(i){var l=Ya(i);return l.length==1&&l[0][2]?le(l[0][0],l[0][1]):function(d){return d===i||Vo(d,i,l)}}function Gu(i,l){return C(i)&&J(l)?le(It(i),l):function(d){var v=jf(d,i);return v===o&&v===l?Kf(d,i):Ia(l,v,ce|we)}}function Il(i,l,d,v,x){i!==l&&kl(l,function(_,A){if(x||(x=new Sn),ar(_))Df(i,l,A,d,Il,v,x);else{var D=v?v(Ot(i,A),_,A+"",i,l,x):o;D===o&&(D=_),zl(i,A,D)}},Pn)}function Df(i,l,d,v,x,_,A){var D=Ot(i,d),H=Ot(l,d),te=A.get(H);if(te){zl(i,d,te);return}var re=_?_(D,H,d+"",i,l,A):o,se=re===o;if(se){var Le=ct(H),Ne=!Le&&Ga(H),je=!Le&&!Ne&&ql(H);re=H,Le||Ne||je?ct(D)?re=D:br(D)?re=zr(D):Ne?(se=!1,re=t0(H,!0)):je?(se=!1,re=Wc(H,!0)):re=[]:c0(H)||$s(H)?(re=D,$s(D)?re=Vh(D):(!ar(D)||Qo(D))&&(re=a(H))):se=!1}se&&(A.set(H,re),x(re,H,v,_,A),A.delete(H)),zl(i,d,re)}function Rc(i,l){var d=i.length;if(!!d)return l+=l<0?d:0,m(l,d)?i[l]:o}function Br(i,l,d){l.length?l=Et(l,function(_){return ct(_)?function(A){return co(A,_.length===1?_[0]:_)}:_}):l=[An];var v=-1;l=Et(l,Qr(Be()));var x=Ra(i,function(_,A,D){var H=Et(l,function(te){return te(_)});return{criteria:H,index:++v,value:_}});return ac(x,function(_,A){return Uc(_,A,d)})}function Nc(i,l){return $c(i,l,function(d,v){return Kf(i,v)})}function $c(i,l,d){for(var v=-1,x=l.length,_={};++v<x;){var A=l[v],D=co(i,A);d(D,A)&&ki(_,qn(A,i),D)}return _}function Rf(i){return function(l){return co(l,i)}}function qu(i,l,d,v){var x=v?gf:Io,_=-1,A=l.length,D=i;for(i===l&&(l=zr(l)),d&&(D=Et(i,Qr(d)));++_<A;)for(var H=0,te=l[_],re=d?d(te):te;(H=x(D,re,H,v))>-1;)D!==i&&_a.call(D,H,1),_a.call(i,H,1);return i}function ju(i,l){for(var d=i?l.length:0,v=d-1;d--;){var x=l[d];if(d==v||x!==_){var _=x;m(x)?_a.call(i,x,1):Ps(i,x)}}return i}function Dl(i,l){return i+Sa(io()*(l-i+1))}function Hc(i,l,d,v){for(var x=-1,_=jt(za((l-i)/(d||1)),0),A=Y(_);_--;)A[v?_:++x]=i,i+=d;return A}function Ku(i,l){var d="";if(!i||l<1||l>ot)return d;do l%2&&(d+=i),l=Sa(l/2),l&&(i+=i);while(l);return d}function ft(i,l){return Ur(Re(i,l,An),i+"")}function Nf(i){return _l(jl(i))}function po(i,l){var d=jl(i);return Sr(d,Yo(l,0,d.length))}function ki(i,l,d,v){if(!ar(i))return i;l=qn(l,i);for(var x=-1,_=l.length,A=_-1,D=i;D!=null&&++x<_;){var H=It(l[x]),te=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(x!=A){var re=D[H];te=v?v(re,H,D):o,te===o&&(te=ar(re)?re:m(l[x+1])?[]:{})}_s(D,H,te),D=D[H]}return i}var Os=ui?function(i,l){return ui.set(i,l),i}:An,Ts=Bo?function(i,l){return Bo(i,"toString",{configurable:!0,enumerable:!1,value:Qf(l),writable:!0})}:An;function Oi(i){return Sr(jl(i))}function Mn(i,l,d){var v=-1,x=i.length;l<0&&(l=-l>x?0:x+l),d=d>x?x:d,d<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var _=Y(x);++v<x;)_[v]=i[v+l];return _}function $f(i,l){var d;return yn(i,function(v,x,_){return d=l(v,x,_),!d}),!!d}function Ti(i,l,d){var v=0,x=i==null?v:i.length;if(typeof l=="number"&&l===l&&x<=er){for(;v<x;){var _=v+x>>>1,A=i[_];A!==null&&!jn(A)&&(d?A<=l:A<l)?v=_+1:x=_}return x}return Rl(i,l,An,d)}function Rl(i,l,d,v){var x=0,_=i==null?0:i.length;if(_===0)return 0;l=d(l);for(var A=l!==l,D=l===null,H=jn(l),te=l===o;x<_;){var re=Sa((x+_)/2),se=d(i[re]),Le=se!==o,Ne=se===null,je=se===se,gt=jn(se);if(A)var Ke=v||je;else te?Ke=je&&(v||Le):D?Ke=je&&Le&&(v||!Ne):H?Ke=je&&Le&&!Ne&&(v||!gt):Ne||gt?Ke=!1:Ke=v?se<=l:se<l;Ke?x=re+1:_=re}return Pr(_,dn)}function Xu(i,l){for(var d=-1,v=i.length,x=0,_=[];++d<v;){var A=i[d],D=l?l(A):A;if(!d||!Ei(D,H)){var H=D;_[x++]=A===0?0:A}}return _}function Qu(i){return typeof i=="number"?i:jn(i)?sr:+i}function Fr(i){if(typeof i=="string")return i;if(ct(i))return Et(i,Fr)+"";if(jn(i))return Er?Er.call(i):"";var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function wn(i,l,d){var v=-1,x=hs,_=i.length,A=!0,D=[],H=D;if(d)A=!1,x=ya;else if(_>=f){var te=l?null:Ds(i);if(te)return gl(te);A=!1,x=an,H=new Ir}else H=l?[]:D;e:for(;++v<_;){var re=i[v],se=l?l(re):re;if(re=d||re!==0?re:0,A&&se===se){for(var Le=H.length;Le--;)if(H[Le]===se)continue e;l&&H.push(se),D.push(re)}else x(H,se,d)||(H!==D&&H.push(se),D.push(re))}return D}function Ps(i,l){return l=qn(l,i),i=Pe(i,l),i==null||delete i[It(pi(l))]}function Nl(i,l,d,v){return ki(i,l,d(co(i,l)),v)}function Na(i,l,d,v){for(var x=i.length,_=v?x:-1;(v?_--:++_<x)&&l(i[_],_,i););return d?Mn(i,v?0:_,v?_+1:x):Mn(i,v?_+1:0,v?x:_)}function Bc(i,l){var d=i;return d instanceof bt&&(d=d.value()),Su(l,function(v,x){return x.func.apply(x.thisArg,qi([v],x.args))},d)}function Go(i,l,d){var v=i.length;if(v<2)return v?wn(i[0]):[];for(var x=-1,_=Y(v);++x<v;)for(var A=i[x],D=-1;++D<v;)D!=x&&(_[x]=Oa(_[x]||A,i[D],l,d));return wn(Dr(_,1),l,d)}function Ju(i,l,d){for(var v=-1,x=i.length,_=l.length,A={};++v<x;){var D=v<_?l[v]:o;d(A,i[v],D)}return A}function e0(i){return br(i)?i:[]}function $l(i){return typeof i=="function"?i:An}function qn(i,l){return ct(i)?i:C(i,l)?[i]:gr(Nt(i))}var Hf=ft;function go(i,l,d){var v=i.length;return d=d===o?v:d,!l&&d>=v?i:Mn(i,l,d)}var $a=yf||function(i){return qt.clearTimeout(i)};function t0(i,l){if(l)return i.slice();var d=i.length,v=bc?bc(d):new i.constructor(d);return i.copy(v),v}function Hl(i){var l=new i.constructor(i.byteLength);return new $o(l).set(new $o(i)),l}function Bf(i,l){var d=l?Hl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function r0(i){var l=new i.constructor(i.source,Po.exec(i));return l.lastIndex=i.lastIndex,l}function Fc(i){return Kt?wt(Kt.call(i)):{}}function Wc(i,l){var d=l?Hl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function n0(i,l){if(i!==l){var d=i!==o,v=i===null,x=i===i,_=jn(i),A=l!==o,D=l===null,H=l===l,te=jn(l);if(!D&&!te&&!_&&i>l||_&&A&&H&&!D&&!te||v&&A&&H||!d&&H||!x)return 1;if(!v&&!_&&!te&&i<l||te&&d&&x&&!v&&!_||D&&d&&x||!A&&x||!H)return-1}return 0}function Uc(i,l,d){for(var v=-1,x=i.criteria,_=l.criteria,A=x.length,D=d.length;++v<A;){var H=n0(x[v],_[v]);if(H){if(v>=D)return H;var te=d[v];return H*(te=="desc"?-1:1)}}return i.index-l.index}function Yc(i,l,d,v){for(var x=-1,_=i.length,A=d.length,D=-1,H=l.length,te=jt(_-A,0),re=Y(H+te),se=!v;++D<H;)re[D]=l[D];for(;++x<A;)(se||x<_)&&(re[d[x]]=i[x]);for(;te--;)re[D++]=i[x++];return re}function Bl(i,l,d,v){for(var x=-1,_=i.length,A=-1,D=d.length,H=-1,te=l.length,re=jt(_-D,0),se=Y(re+te),Le=!v;++x<re;)se[x]=i[x];for(var Ne=x;++H<te;)se[Ne+H]=l[H];for(;++A<D;)(Le||x<_)&&(se[Ne+d[A]]=i[x++]);return se}function zr(i,l){var d=-1,v=i.length;for(l||(l=Y(v));++d<v;)l[d]=i[d];return l}function ln(i,l,d,v){var x=!d;d||(d={});for(var _=-1,A=l.length;++_<A;){var D=l[_],H=v?v(d[D],i[D],D,d,i):o;H===o&&(H=i[D]),x?di(d,D,H):_s(d,D,H)}return d}function Ff(i,l){return ln(i,l0(i),l)}function Zc(i,l){return ln(i,r1(i),l)}function Fl(i,l){return function(d,v){var x=ct(d)?ff:Wu,_=l?l():{};return x(d,i,Be(v,2),_)}}function Ha(i){return ft(function(l,d){var v=-1,x=d.length,_=x>1?d[x-1]:o,A=x>2?d[2]:o;for(_=i.length>3&&typeof _=="function"?(x--,_):o,A&&y(d[0],d[1],A)&&(_=x<3?o:_,x=1),l=wt(l);++v<x;){var D=d[v];D&&i(l,D,v,_)}return l})}function Vc(i,l){return function(d,v){if(d==null)return d;if(!Tn(d))return i(d,v);for(var x=d.length,_=l?x:-1,A=wt(d);(l?_--:++_<x)&&v(A[_],_,A)!==!1;);return d}}function Gc(i){return function(l,d,v){for(var x=-1,_=wt(l),A=v(l),D=A.length;D--;){var H=A[i?D:++x];if(d(_[H],H,_)===!1)break}return l}}function qc(i,l,d){var v=l&me,x=Fa(i);function _(){var A=this&&this!==qt&&this instanceof _?x:i;return A.apply(v?d:this,arguments)}return _}function jc(i){return function(l){l=Nt(l);var d=Zn(l)?zn(l):o,v=d?d[0]:l.charAt(0),x=d?go(d,1).join(""):l.slice(1);return v[i]()+x}}function Ba(i){return function(l){return Su(ep(Jh(l).replace(Cu,"")),i,"")}}function Fa(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ci(i.prototype),v=i.apply(d,l);return ar(v)?v:d}}function i0(i,l,d){var v=Fa(i);function x(){for(var _=arguments.length,A=Y(_),D=_,H=Ua(x);D--;)A[D]=arguments[D];var te=_<3&&A[0]!==H&&A[_-1]!==H?[]:Ki(A,H);if(_-=te.length,_<d)return Qc(i,l,As,x.placeholder,o,A,te,o,o,d-_);var re=this&&this!==qt&&this instanceof x?v:i;return bn(re,this,A)}return x}function o0(i){return function(l,d,v){var x=wt(l);if(!Tn(l)){var _=Be(d,3);l=Gr(l),d=function(D){return _(x[D],D,x)}}var A=i(l,d,v);return A>-1?x[_?l[A]:A]:o}}function Kc(i){return Pi(function(l){var d=l.length,v=d,x=Jr.prototype.thru;for(i&&l.reverse();v--;){var _=l[v];if(typeof _!="function")throw new sn(b);if(x&&!A&&Ns(_)=="wrapper")var A=new Jr([],!0)}for(v=A?v:d;++v<d;){_=l[v];var D=Ns(_),H=D=="wrapper"?zt(_):o;H&&M(H[0])&&H[1]==(Ye|pe|Te|et)&&!H[4].length&&H[9]==1?A=A[Ns(H[0])].apply(A,H[3]):A=_.length==1&&M(_)?A[D]():A.thru(_)}return function(){var te=arguments,re=te[0];if(A&&te.length==1&&ct(re))return A.plant(re).value();for(var se=0,Le=d?l[se].apply(this,te):re;++se<d;)Le=l[se].call(this,Le);return Le}})}function As(i,l,d,v,x,_,A,D,H,te){var re=l&Ye,se=l&me,Le=l&Ae,Ne=l&(pe|he),je=l&nt,gt=Le?o:Fa(i);function Ke(){for(var Ct=arguments.length,xt=Y(Ct),Kn=Ct;Kn--;)xt[Kn]=arguments[Kn];if(Ne)var xn=Ua(Ke),Xn=vf(xt,xn);if(v&&(xt=Yc(xt,v,x,Ne)),_&&(xt=Bl(xt,_,A,Ne)),Ct-=Xn,Ne&&Ct<te){var mr=Ki(xt,xn);return Qc(i,l,As,Ke.placeholder,d,xt,mr,D,H,te-Ct)}var Ii=se?d:this,ea=Le?Ii[i]:i;return Ct=xt.length,D?xt=lt(xt,D):je&&Ct>1&&xt.reverse(),re&&H<Ct&&(xt.length=H),this&&this!==qt&&this instanceof Ke&&(ea=gt||Fa(ea)),ea.apply(Ii,xt)}return Ke}function qo(i,l){return function(d,v){return Al(d,i,l(v),{})}}function Es(i,l){return function(d,v){var x;if(d===o&&v===o)return l;if(d!==o&&(x=d),v!==o){if(x===o)return v;typeof d=="string"||typeof v=="string"?(d=Fr(d),v=Fr(v)):(d=Qu(d),v=Qu(v)),x=i(d,v)}return x}}function Wa(i){return Pi(function(l){return l=Et(l,Qr(Be())),ft(function(d){var v=this;return i(l,function(x){return bn(x,v,d)})})})}function Wl(i,l){l=l===o?" ":Fr(l);var d=l.length;if(d<2)return d?Ku(l,i):l;var v=Ku(l,za(i/Ro(l)));return Zn(l)?go(zn(v),0,i).join(""):v.slice(0,i)}function Wf(i,l,d,v){var x=l&me,_=Fa(i);function A(){for(var D=-1,H=arguments.length,te=-1,re=v.length,se=Y(re+H),Le=this&&this!==qt&&this instanceof A?_:i;++te<re;)se[te]=v[te];for(;H--;)se[te++]=arguments[++D];return bn(Le,x?d:this,se)}return A}function Xc(i){return function(l,d,v){return v&&typeof v!="number"&&y(l,d,v)&&(d=v=o),l=Jo(l),d===o?(d=l,l=0):d=Jo(d),v=v===o?l<d?1:-1:Jo(v),Hc(l,d,v,i)}}function Dt(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gi(l),d=gi(d)),i(l,d)}}function Qc(i,l,d,v,x,_,A,D,H,te){var re=l&pe,se=re?A:o,Le=re?o:A,Ne=re?_:o,je=re?o:_;l|=re?Te:He,l&=~(re?He:Te),l&Ie||(l&=~(me|Ae));var gt=[i,l,x,Ne,se,je,Le,D,H,te],Ke=d.apply(o,gt);return M(i)&&ur(Ke,gt),Ke.placeholder=v,Yr(Ke,i,l)}function Is(i){var l=pr[i];return function(d,v){if(d=gi(d),v=v==null?0:Pr(dt(v),292),v&&mc(d)){var x=(Nt(d)+"e").split("e"),_=l(x[0]+"e"+(+x[1]+v));return x=(Nt(_)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return l(d)}}var Ds=Wo&&1/gl(new Wo([,-0]))[1]==ve?function(i){return new Wo(i)}:td;function kn(i){return function(l){var d=Wr(l);return d==lr?pl(l):d==tt?fc(l):zi(l,i(l))}}function On(i,l,d,v,x,_,A,D){var H=l&Ae;if(!H&&typeof i!="function")throw new sn(b);var te=v?v.length:0;if(te||(l&=~(Te|He),v=x=o),A=A===o?A:jt(dt(A),0),D=D===o?D:dt(D),te-=x?x.length:0,l&He){var re=v,se=x;v=x=o}var Le=H?o:zt(i),Ne=[i,l,d,v,x,re,se,_,A,D];if(Le&&Ce(Ne,Le),i=Ne[0],l=Ne[1],d=Ne[2],v=Ne[3],x=Ne[4],D=Ne[9]=Ne[9]===o?H?0:i.length:jt(Ne[9]-te,0),!D&&l&(pe|he)&&(l&=~(pe|he)),!l||l==me)var je=qc(i,l,d);else l==pe||l==he?je=i0(i,l,D):(l==Te||l==(me|Te))&&!x.length?je=Wf(i,l,d,v):je=As.apply(o,Ne);var gt=Le?Os:ur;return Yr(gt(je,Ne),i,l)}function Ul(i,l,d,v){return i===o||Ei(i,Ji[d])&&!rt.call(v,d)?l:i}function a0(i,l,d,v,x,_){return ar(i)&&ar(l)&&(_.set(l,i),Il(i,l,o,a0,_),_.delete(l)),i}function Jc(i){return c0(i)?o:i}function s0(i,l,d,v,x,_){var A=d&ce,D=i.length,H=l.length;if(D!=H&&!(A&&H>D))return!1;var te=_.get(i),re=_.get(l);if(te&&re)return te==l&&re==i;var se=-1,Le=!0,Ne=d&we?new Ir:o;for(_.set(i,l),_.set(l,i);++se<D;){var je=i[se],gt=l[se];if(v)var Ke=A?v(gt,je,se,l,i,_):v(je,gt,se,i,l,_);if(Ke!==o){if(Ke)continue;Le=!1;break}if(Ne){if(!Eo(l,function(Ct,xt){if(!an(Ne,xt)&&(je===Ct||x(je,Ct,d,v,_)))return Ne.push(xt)})){Le=!1;break}}else if(!(je===gt||x(je,gt,d,v,_))){Le=!1;break}}return _.delete(i),_.delete(l),Le}function e1(i,l,d,v,x,_,A){switch(d){case $n:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case Mr:return!(i.byteLength!=l.byteLength||!_(new $o(i),new $o(l)));case Ze:case at:case Xe:return Ei(+i,+l);case We:return i.name==l.name&&i.message==l.message;case fr:case B:return i==l+"";case lr:var D=pl;case tt:var H=v&ce;if(D||(D=gl),i.size!=l.size&&!H)return!1;var te=A.get(i);if(te)return te==l;v|=we,A.set(i,l);var re=s0(D(i),D(l),v,x,_,A);return A.delete(i),re;case oe:if(Kt)return Kt.call(i)==Kt.call(l)}return!1}function t1(i,l,d,v,x,_){var A=d&ce,D=Rs(i),H=D.length,te=Rs(l),re=te.length;if(H!=re&&!A)return!1;for(var se=H;se--;){var Le=D[se];if(!(A?Le in l:rt.call(l,Le)))return!1}var Ne=_.get(i),je=_.get(l);if(Ne&&je)return Ne==l&&je==i;var gt=!0;_.set(i,l),_.set(l,i);for(var Ke=A;++se<H;){Le=D[se];var Ct=i[Le],xt=l[Le];if(v)var Kn=A?v(xt,Ct,Le,l,i,_):v(Ct,xt,Le,i,l,_);if(!(Kn===o?Ct===xt||x(Ct,xt,d,v,_):Kn)){gt=!1;break}Ke||(Ke=Le=="constructor")}if(gt&&!Ke){var xn=i.constructor,Xn=l.constructor;xn!=Xn&&"constructor"in i&&"constructor"in l&&!(typeof xn=="function"&&xn instanceof xn&&typeof Xn=="function"&&Xn instanceof Xn)&&(gt=!1)}return _.delete(i),_.delete(l),gt}function Pi(i){return Ur(Re(i,o,Sh),i+"")}function Rs(i){return Zo(i,Gr,l0)}function Yl(i){return Zo(i,Pn,r1)}var zt=ui?function(i){return ui.get(i)}:td;function Ns(i){for(var l=i.name+"",d=ka[l],v=rt.call(ka,l)?d.length:0;v--;){var x=d[v],_=x.func;if(_==null||_==i)return x.name}return l}function Ua(i){var l=rt.call(L,"placeholder")?L:i;return l.placeholder}function Be(){var i=L.iteratee||Jf;return i=i===Jf?Ic:i,arguments.length?i(arguments[0],arguments[1]):i}function Zl(i,l){var d=i.__data__;return z(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Ya(i){for(var l=Gr(i),d=l.length;d--;){var v=l[d],x=i[v];l[d]=[v,x,J(x)]}return l}function jo(i,l){var d=Au(i,l);return Da(d)?d:o}function tr(i){var l=rt.call(i,ro),d=i[ro];try{i[ro]=o;var v=!0}catch{}var x=No.call(i);return v&&(l?i[ro]=d:delete i[ro]),x}var l0=no?function(i){return i==null?[]:(i=wt(i),Gi(no(i),function(l){return yl.call(i,l)}))}:rd,r1=no?function(i){for(var l=[];i;)qi(l,l0(i)),i=La(i);return l}:rd,Wr=_r;(oo&&Wr(new oo(new ArrayBuffer(1)))!=$n||Ma&&Wr(new Ma)!=lr||wl&&Wr(wl.resolve())!=$r||Wo&&Wr(new Wo)!=tt||ws&&Wr(new ws)!=Qe)&&(Wr=function(i){var l=_r(i),d=l==kt?i.constructor:o,v=d?Ht(d):"";if(v)switch(v){case xf:return $n;case Lf:return lr;case _f:return $r;case zf:return tt;case Sf:return Qe}return l});function Vl(i,l,d){for(var v=-1,x=d.length;++v<x;){var _=d[v],A=_.size;switch(_.type){case"drop":i+=A;break;case"dropRight":l-=A;break;case"take":l=Pr(l,i+A);break;case"takeRight":i=jt(i,l-A);break}}return{start:i,end:l}}function e(i){var l=i.match(is);return l?l[1].split(Zi):[]}function t(i,l,d){l=qn(l,i);for(var v=-1,x=l.length,_=!1;++v<x;){var A=It(l[v]);if(!(_=i!=null&&d(i,A)))break;i=i[A]}return _||++v!=x?_:(x=i==null?0:i.length,!!x&&l1(x)&&m(A,x)&&(ct(i)||$s(i)))}function s(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&rt.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function a(i){return typeof i.constructor=="function"&&!Z(i)?ci(La(i)):{}}function u(i,l,d){var v=i.constructor;switch(l){case Mr:return Hl(i);case Ze:case at:return new v(+i);case $n:return Bf(i,d);case jr:case Zt:case xi:case Hr:case Hn:case $e:case Ui:case kr:case Ge:return Wc(i,d);case lr:return new v;case Xe:case B:return new v(i);case fr:return r0(i);case tt:return new v;case oe:return Fc(i)}}function h(i,l){var d=l.length;if(!d)return i;var v=d-1;return l[v]=(d>1?"& ":"")+l[v],l=l.join(d>2?", ":" "),i.replace(el,`{
2364
+ */(function(r,n){(function(){var o,c="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",M="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",O=500,I="__lodash_placeholder__",U=1,q=2,X=4,ce=1,xe=2,ye=1,Ae=2,Ie=4,pe=8,he=16,Te=32,He=64,Ye=128,et=256,nt=512,ve=30,Ce="...",it=800,W=16,E=1,T=2,ne=3,be=1/0,ot=9007199254740991,At=17976931348623157e292,sr=0/0,Bt=4294967295,dn=Bt-1,er=Bt>>>1,Ft=[["ary",Ye],["bind",ye],["bindKey",Ae],["curry",pe],["curryRight",he],["flip",nt],["partial",Te],["partialRight",He],["rearg",et]],ut="[object Arguments]",_e="[object Array]",Fe="[object AsyncFunction]",Ze="[object Boolean]",at="[object Date]",st="[object DOMException]",We="[object Error]",Vt="[object Function]",qr="[object GeneratorFunction]",lr="[object Map]",Xe="[object Number]",yt="[object Null]",Mt="[object Object]",$r="[object Promise]",rn="[object Proxy]",fr="[object RegExp]",tt="[object Set]",B="[object String]",oe="[object Symbol]",V="[object Undefined]",Qe="[object WeakMap]",dr="[object WeakSet]",kr="[object ArrayBuffer]",$n="[object DataView]",jr="[object Float32Array]",Zt="[object Float64Array]",zi="[object Int8Array]",Hr="[object Int16Array]",Hn="[object Int32Array]",$e="[object Uint8Array]",Yi="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Ge="[object Uint32Array]",ir=/\b__p \+= '';/g,ha=/\b(__p \+=) '' \+/g,wr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,xr=/[&<>"']/g,pa=RegExp(Bn.source),hn=RegExp(xr.source),Mo=/<%-([\s\S]+?)%>/g,Zi=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,ns=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/,Js=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oo=/[\\^$.*+?()[\]{}|]/g,ni=RegExp(Oo.source),To=/^\s+/,el=/\s/,tl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,is=/\{\n\/\* \[wrapped with (.+)\] \*/,Vi=/,? & /,zn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,rl=/\\(\\)?/g,Li=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Po=/\w*$/,ga=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,gn=/^0o[0-7]+$/i,os=/^(?:0|[1-9]\d*)$/,as=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wt=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ss="\\u0300-\\u036f",nn="\\ufe20-\\ufe2f",zt="\\u20d0-\\u20ff",Un=ss+nn+zt,Gi="\\u2700-\\u27bf",va="a-z\\xdf-\\xf6\\xf8-\\xff",ie="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P="\\u2000-\\u206f",j=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ae="A-Z\\xc0-\\xd6\\xd8-\\xde",qe="\\ufe0e\\ufe0f",vt=ie+w+P+j,me="['\u2019]",Or="["+vn+"]",on="["+vt+"]",_i="["+Un+"]",Yn="\\d+",V0="["+Gi+"]",mu="["+va+"]",ba="[^"+vn+vt+Yn+Gi+va+ae+"]",ls="\\ud83c[\\udffb-\\udfff]",G0="(?:"+_i+"|"+ls+")",nl="[^"+vn+"]",il="(?:\\ud83c[\\udde6-\\uddff]){2}",ol="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+ae+"]",yu="\\u200d",q0="(?:"+mu+"|"+ba+")",af="(?:"+Ao+"|"+ba+")",Cu="(?:"+me+"(?:d|ll|m|re|s|t|ve))?",ii="(?:"+me+"(?:D|LL|M|RE|S|T|VE))?",j0=G0+"?",K0="["+qe+"]?",al="(?:"+yu+"(?:"+[nl,il,ol].join("|")+")"+K0+j0+")*",us="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",X0=K0+j0+al,lf="(?:"+[V0,il,ol].join("|")+")"+X0,uf="(?:"+[nl+_i+"?",_i,il,ol,Or].join("|")+")",wu=RegExp(me,"g"),Q0=RegExp(_i,"g"),xu=RegExp(ls+"(?="+ls+")|"+uf+X0,"g"),J0=RegExp([Ao+"?"+mu+"+"+Cu+"(?="+[on,Ao,"$"].join("|")+")",af+"+"+ii+"(?="+[on,Ao+q0,"$"].join("|")+")",Ao+"?"+q0+"+"+Cu,Ao+"+"+ii,sf,us,Yn,lf].join("|"),"g"),ec=RegExp("["+yu+vn+Un+qe+"]"),sl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ll=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zu=-1,Ut={};Ut[jr]=Ut[Zt]=Ut[zi]=Ut[Hr]=Ut[Hn]=Ut[$e]=Ut[Yi]=Ut[Mr]=Ut[Ge]=!0,Ut[ut]=Ut[_e]=Ut[kr]=Ut[Ze]=Ut[$n]=Ut[at]=Ut[We]=Ut[Vt]=Ut[lr]=Ut[Xe]=Ut[Mt]=Ut[fr]=Ut[tt]=Ut[B]=Ut[Qe]=!1;var $t={};$t[ut]=$t[_e]=$t[kr]=$t[$n]=$t[Ze]=$t[at]=$t[jr]=$t[Zt]=$t[zi]=$t[Hr]=$t[Hn]=$t[lr]=$t[Xe]=$t[Mt]=$t[fr]=$t[tt]=$t[B]=$t[oe]=$t[$e]=$t[Yi]=$t[Mr]=$t[Ge]=!0,$t[We]=$t[Vt]=$t[Qe]=!1;var ul={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},cf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},oi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ff=parseFloat,df=parseInt,cl=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,rc=typeof self=="object"&&self&&self.Object===Object&&self,Gt=cl||rc||Function("return this")(),cs=n&&!n.nodeType&&n,Xr=cs&&!0&&r&&!r.nodeType&&r,fs=Xr&&Xr.exports===cs,ds=fs&&cl.process,Tr=function(){try{var $=Xr&&Xr.require&&Xr.require("util").types;return $||ds&&ds.binding&&ds.binding("util")}catch{}}(),nc=Tr&&Tr.isArrayBuffer,ic=Tr&&Tr.isDate,oc=Tr&&Tr.isMap,ac=Tr&&Tr.isRegExp,Lu=Tr&&Tr.isSet,_u=Tr&&Tr.isTypedArray;function bn($,K,Y){switch(Y.length){case 0:return $.call(K);case 1:return $.call(K,Y[0]);case 2:return $.call(K,Y[0],Y[1]);case 3:return $.call(K,Y[0],Y[1],Y[2])}return $.apply(K,Y)}function hf($,K,Y,ke){for(var Je=-1,kt=$==null?0:$.length;++Je<kt;){var pr=$[Je];K(ke,pr,Y(pr),$)}return ke}function Ln($,K){for(var Y=-1,ke=$==null?0:$.length;++Y<ke&&K($[Y],Y,$)!==!1;);return $}function pf($,K){for(var Y=$==null?0:$.length;Y--&&K($[Y],Y,$)!==!1;);return $}function Su($,K){for(var Y=-1,ke=$==null?0:$.length;++Y<ke;)if(!K($[Y],Y,$))return!1;return!0}function qi($,K){for(var Y=-1,ke=$==null?0:$.length,Je=0,kt=[];++Y<ke;){var pr=$[Y];K(pr,Y,$)&&(kt[Je++]=pr)}return kt}function hs($,K){var Y=$==null?0:$.length;return!!Y&&Io($,K,0)>-1}function ma($,K,Y){for(var ke=-1,Je=$==null?0:$.length;++ke<Je;)if(Y(K,$[ke]))return!0;return!1}function Et($,K){for(var Y=-1,ke=$==null?0:$.length,Je=Array(ke);++Y<ke;)Je[Y]=K($[Y],Y,$);return Je}function ji($,K){for(var Y=-1,ke=K.length,Je=$.length;++Y<ke;)$[Je+Y]=K[Y];return $}function ku($,K,Y,ke){var Je=-1,kt=$==null?0:$.length;for(ke&&kt&&(Y=$[++Je]);++Je<kt;)Y=K(Y,$[Je],Je,$);return Y}function gf($,K,Y,ke){var Je=$==null?0:$.length;for(ke&&Je&&(Y=$[--Je]);Je--;)Y=K(Y,$[Je],Je,$);return Y}function Eo($,K){for(var Y=-1,ke=$==null?0:$.length;++Y<ke;)if(K($[Y],Y,$))return!0;return!1}var hr=Ou("length");function vf($){return $.split("")}function sc($){return $.match(zn)||[]}function ya($,K,Y){var ke;return Y($,function(Je,kt,pr){if(K(Je,kt,pr))return ke=kt,!1}),ke}function fl($,K,Y,ke){for(var Je=$.length,kt=Y+(ke?1:-1);ke?kt--:++kt<Je;)if(K($[kt],kt,$))return kt;return-1}function Io($,K,Y){return K===K?pc($,K,Y):fl($,dl,Y)}function bf($,K,Y,ke){for(var Je=Y-1,kt=$.length;++Je<kt;)if(ke($[Je],K))return Je;return-1}function dl($){return $!==$}function Mu($,K){var Y=$==null?0:$.length;return Y?Au($,K)/Y:sr}function Ou($){return function(K){return K==null?o:K[$]}}function Tu($){return function(K){return $==null?o:$[K]}}function Pu($,K,Y,ke,Je){return Je($,function(kt,pr,wt){Y=ke?(ke=!1,kt):K(Y,kt,pr,wt)}),Y}function lc($,K){var Y=$.length;for($.sort(K);Y--;)$[Y]=$[Y].value;return $}function Au($,K){for(var Y,ke=-1,Je=$.length;++ke<Je;){var kt=K($[ke]);kt!==o&&(Y=Y===o?kt:Y+kt)}return Y}function Do($,K){for(var Y=-1,ke=Array($);++Y<$;)ke[Y]=K(Y);return ke}function Si($,K){return Et(K,function(Y){return[Y,$[Y]]})}function ps($){return $&&$.slice(0,bl($)+1).replace(To,"")}function Qr($){return function(K){return $(K)}}function hl($,K){return Et(K,function(Y){return $[Y]})}function an($,K){return $.has(K)}function Ki($,K){for(var Y=-1,ke=$.length;++Y<ke&&Io(K,$[Y],0)>-1;);return Y}function pl($,K){for(var Y=$.length;Y--&&Io(K,$[Y],0)>-1;);return Y}function mf($,K){for(var Y=$.length,ke=0;Y--;)$[Y]===K&&++ke;return ke}var uc=Tu(ul),yf=Tu(cf);function cc($){return"\\"+oi[$]}function Eu($,K){return $==null?o:$[K]}function Zn($){return ec.test($)}function ai($){return sl.test($)}function fc($){for(var K,Y=[];!(K=$.next()).done;)Y.push(K.value);return Y}function gl($){var K=-1,Y=Array($.size);return $.forEach(function(ke,Je){Y[++K]=[Je,ke]}),Y}function dc($,K){return function(Y){return $(K(Y))}}function Xi($,K){for(var Y=-1,ke=$.length,Je=0,kt=[];++Y<ke;){var pr=$[Y];(pr===K||pr===I)&&($[Y]=I,kt[Je++]=Y)}return kt}function vl($){var K=-1,Y=Array($.size);return $.forEach(function(ke){Y[++K]=ke}),Y}function hc($){var K=-1,Y=Array($.size);return $.forEach(function(ke){Y[++K]=[ke,ke]}),Y}function pc($,K,Y){for(var ke=Y-1,Je=$.length;++ke<Je;)if($[ke]===K)return ke;return-1}function gs($,K,Y){for(var ke=Y+1;ke--;)if($[ke]===K)return ke;return ke}function Ro($){return Zn($)?gc($):hr($)}function _n($){return Zn($)?yl($):vf($)}function bl($){for(var K=$.length;K--&&el.test($.charAt(K)););return K}var ml=Tu(tc);function gc($){for(var K=xu.lastIndex=0;xu.test($);)++K;return K}function yl($){return $.match(xu)||[]}function Vn($){return $.match(J0)||[]}var vc=function $(K){K=K==null?Gt:Qi.defaults(Gt.Object(),K,Qi.pick(Gt,ll));var Y=K.Array,ke=K.Date,Je=K.Error,kt=K.Function,pr=K.Math,wt=K.Object,Ji=K.RegExp,Ca=K.String,sn=K.TypeError,wa=Y.prototype,bc=kt.prototype,eo=wt.prototype,si=K["__core-js_shared__"],li=bc.toString,rt=eo.hasOwnProperty,to=0,ki=function(){var i=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),No=eo.toString,Cf=li.call(wt),mc=Gt._,vs=Ji("^"+li.call(rt).replace(Oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bs=fs?K.Buffer:o,Mi=K.Symbol,$o=K.Uint8Array,yc=bs?bs.allocUnsafe:o,xa=dc(wt.getPrototypeOf,wt),Iu=wt.create,Cl=eo.propertyIsEnumerable,za=wa.splice,Ho=Mi?Mi.isConcatSpreadable:o,ro=Mi?Mi.iterator:o,no=Mi?Mi.toStringTag:o,Bo=function(){try{var i=jo(wt,"defineProperty");return i({},"",{}),i}catch{}}(),wf=K.clearTimeout!==Gt.clearTimeout&&K.clearTimeout,xf=ke&&ke.now!==Gt.Date.now&&ke.now,zf=K.setTimeout!==Gt.setTimeout&&K.setTimeout,La=pr.ceil,_a=pr.floor,io=wt.getOwnPropertySymbols,ms=bs?bs.isBuffer:o,Cc=K.isFinite,wl=wa.join,wc=dc(wt.keys,wt),jt=pr.max,Pr=pr.min,Fo=ke.now,ys=K.parseInt,oo=pr.random,Cs=wa.reverse,ao=jo(K,"DataView"),Sa=jo(K,"Map"),xl=jo(K,"Promise"),Wo=jo(K,"Set"),ws=jo(K,"WeakMap"),Gn=jo(wt,"create"),ui=ws&&new ws,ka={},Lf=Ht(ao),_f=Ht(Sa),Sf=Ht(xl),kf=Ht(Wo),Mf=Ht(ws),Ar=Mi?Mi.prototype:o,Kt=Ar?Ar.valueOf:o,Er=Ar?Ar.toString:o;function z(i){if(cr(i)&&!ct(i)&&!(i instanceof bt)){if(i instanceof Jr)return i;if(rt.call(i,"__wrapped__"))return Zr(i)}return new Jr(i)}var ci=function(){function i(){}return function(l){if(!ar(l))return{};if(Iu)return Iu(l);i.prototype=l;var d=new i;return i.prototype=o,d}}();function zl(){}function Jr(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=o}z.templateSettings={escape:Mo,evaluate:Zi,interpolate:rs,variable:"",imports:{_:z}},z.prototype=zl.prototype,z.prototype.constructor=z,Jr.prototype=ci(zl.prototype),Jr.prototype.constructor=Jr;function bt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bt,this.__views__=[]}function Of(){var i=new bt(this.__wrapped__);return i.__actions__=_r(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=_r(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=_r(this.__views__),i}function Tf(){if(this.__filtered__){var i=new bt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Du(){var i=this.__wrapped__.value(),l=this.__dir__,d=ct(i),v=l<0,x=d?i.length:0,L=Gl(0,x,this.__views__),A=L.start,D=L.end,H=D-A,te=v?D:A-1,re=this.__iteratees__,se=re.length,Le=0,Ne=Pr(H,this.__takeCount__);if(!d||!v&&x==H&&Ne==H)return Wc(i,this.__actions__);var je=[];e:for(;H--&&Le<Ne;){te+=l;for(var gt=-1,Ke=i[te];++gt<se;){var Ct=re[gt],xt=Ct.iteratee,Kn=Ct.type,xn=xt(Ke);if(Kn==T)Ke=xn;else if(!xn){if(Kn==E)continue e;break e}}je[Le++]=Ke}return je}bt.prototype=ci(zl.prototype),bt.prototype.constructor=bt;function so(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Ru(){this.__data__=Gn?Gn(null):{},this.size=0}function Pf(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Nu(i){var l=this.__data__;if(Gn){var d=l[i];return d===S?o:d}return rt.call(l,i)?l[i]:o}function $u(i){var l=this.__data__;return Gn?l[i]!==o:rt.call(l,i)}function xc(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Gn&&l===o?S:l,this}so.prototype.clear=Ru,so.prototype.delete=Pf,so.prototype.get=Nu,so.prototype.has=$u,so.prototype.set=xc;function fi(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Hu(){this.__data__=[],this.size=0}function zc(i){var l=this.__data__,d=Uo(l,i);if(d<0)return!1;var v=l.length-1;return d==v?l.pop():za.call(l,d,1),--this.size,!0}function xs(i){var l=this.__data__,d=Uo(l,i);return d<0?o:l[d][1]}function Af(i){return Uo(this.__data__,i)>-1}function Ll(i,l){var d=this.__data__,v=Uo(d,i);return v<0?(++this.size,d.push([i,l])):d[v][1]=l,this}fi.prototype.clear=Hu,fi.prototype.delete=zc,fi.prototype.get=xs,fi.prototype.has=Af,fi.prototype.set=Ll;function or(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Lc(){this.size=0,this.__data__={hash:new so,map:new(Sa||fi),string:new so}}function Ef(i){var l=Vl(this,i).delete(i);return this.size-=l?1:0,l}function _c(i){return Vl(this,i).get(i)}function mn(i){return Vl(this,i).has(i)}function Lt(i,l){var d=Vl(this,i),v=d.size;return d.set(i,l),this.size+=d.size==v?0:1,this}or.prototype.clear=Lc,or.prototype.delete=Ef,or.prototype.get=_c,or.prototype.has=mn,or.prototype.set=Lt;function Ir(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new or;++l<d;)this.add(i[l])}function lo(i){return this.__data__.set(i,S),this}function uo(i){return this.__data__.has(i)}Ir.prototype.add=Ir.prototype.push=lo,Ir.prototype.has=uo;function Sn(i){var l=this.__data__=new fi(i);this.size=l.size}function Bu(){this.__data__=new fi,this.size=0}function Sc(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function If(i){return this.__data__.get(i)}function Fu(i){return this.__data__.has(i)}function zs(i,l){var d=this.__data__;if(d instanceof fi){var v=d.__data__;if(!Sa||v.length<f-1)return v.push([i,l]),this.size=++d.size,this;d=this.__data__=new or(v)}return d.set(i,l),this.size=d.size,this}Sn.prototype.clear=Bu,Sn.prototype.delete=Sc,Sn.prototype.get=If,Sn.prototype.has=Fu,Sn.prototype.set=zs;function Wu(i,l){var d=ct(i),v=!d&&$s(i),x=!d&&!v&&Va(i),L=!d&&!v&&!x&&jl(i),A=d||v||x||L,D=A?Do(i.length,Ca):[],H=D.length;for(var te in i)(l||rt.call(i,te))&&!(A&&(te=="length"||x&&(te=="offset"||te=="parent")||L&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,H)))&&D.push(te);return D}function _l(i){var l=i.length;return l?i[Rl(0,l-1)]:o}function co(i,l){return Sr(_r(i),Yo(l,0,i.length))}function kc(i){return Sr(_r(i))}function Sl(i,l,d){(d!==o&&!Ii(i[l],d)||d===o&&!(l in i))&&di(i,l,d)}function Ls(i,l,d){var v=i[l];(!(rt.call(i,l)&&Ii(v,d))||d===o&&!(l in i))&&di(i,l,d)}function Uo(i,l){for(var d=i.length;d--;)if(Ii(i[d][0],l))return d;return-1}function Uu(i,l,d,v){return yn(i,function(x,L,A){l(v,x,d(x),A)}),v}function Yu(i,l){return i&&ln(l,Gr(l),i)}function Df(i,l){return i&&ln(l,Pn(l),i)}function di(i,l,d){l=="__proto__"&&Bo?Bo(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function Zu(i,l){for(var d=-1,v=l.length,x=Y(v),L=i==null;++d<v;)x[d]=L?o:Xf(i,l[d]);return x}function Yo(i,l,d){return i===i&&(d!==o&&(i=i<=d?i:d),l!==o&&(i=i>=l?i:l)),i}function en(i,l,d,v,x,L){var A,D=l&U,H=l&q,te=l&X;if(d&&(A=x?d(i,v,x,L):d(i)),A!==o)return A;if(!ar(i))return i;var re=ct(i);if(re){if(A=s(i),!D)return _r(i,A)}else{var se=Wr(i),Le=se==Vt||se==qr;if(Va(i))return r0(i,D);if(se==Mt||se==ut||Le&&!x){if(A=H||Le?{}:a(i),!D)return H?Gc(i,Df(A,i)):Uf(i,Yu(A,i))}else{if(!$t[se])return x?i:{};A=u(i,se,D)}}L||(L=new Sn);var Ne=L.get(i);if(Ne)return Ne;L.set(i,A),Vh(i)?i.forEach(function(Ke){A.add(en(Ke,l,d,Ke,i,L))}):Yh(i)&&i.forEach(function(Ke,Ct){A.set(Ct,en(Ke,l,d,Ct,i,L))});var je=te?H?Zl:Rs:H?Pn:Gr,gt=re?o:je(i);return Ln(gt||i,function(Ke,Ct){gt&&(Ct=Ke,Ke=i[Ct]),Ls(A,Ct,en(Ke,l,d,Ct,i,L))}),A}function Mc(i){var l=Gr(i);return function(d){return Oc(d,i,l)}}function Oc(i,l,d){var v=d.length;if(i==null)return!v;for(i=wt(i);v--;){var x=d[v],L=l[x],A=i[x];if(A===o&&!(x in i)||!L(A))return!1}return!0}function Tc(i,l,d){if(typeof i!="function")throw new sn(b);return Rt(function(){i.apply(o,d)},l)}function Ma(i,l,d,v){var x=-1,L=hs,A=!0,D=i.length,H=[],te=l.length;if(!D)return H;d&&(l=Et(l,Qr(d))),v?(L=ma,A=!1):l.length>=f&&(L=an,A=!1,l=new Ir(l));e:for(;++x<D;){var re=i[x],se=d==null?re:d(re);if(re=v||re!==0?re:0,A&&se===se){for(var Le=te;Le--;)if(l[Le]===se)continue e;H.push(re)}else L(l,se,v)||H.push(re)}return H}var yn=qc(Cn),kl=qc(Tl,!0);function Ml(i,l){var d=!0;return yn(i,function(v,x,L){return d=!!l(v,x,L),d}),d}function _s(i,l,d){for(var v=-1,x=i.length;++v<x;){var L=i[v],A=l(L);if(A!=null&&(D===o?A===A&&!jn(A):d(A,D)))var D=A,H=L}return H}function Vu(i,l,d,v){var x=i.length;for(d=dt(d),d<0&&(d=-d>x?0:x+d),v=v===o||v>x?x:dt(v),v<0&&(v+=x),v=d>v?0:qh(v);d<v;)i[d++]=l;return i}function Gu(i,l){var d=[];return yn(i,function(v,x,L){l(v,x,L)&&d.push(v)}),d}function Dr(i,l,d,v,x){var L=-1,A=i.length;for(d||(d=g),x||(x=[]);++L<A;){var D=i[L];l>0&&d(D)?l>1?Dr(D,l-1,d,v,x):ji(x,D):v||(x[x.length]=D)}return x}var Ol=jc(),zr=jc(!0);function Cn(i,l){return i&&Ol(i,l,Gr)}function Tl(i,l){return i&&zr(i,l,Gr)}function Ss(i,l){return qi(l,function(d){return Qo(i[d])})}function fo(i,l){l=qn(l,i);for(var d=0,v=l.length;i!=null&&d<v;)i=i[It(l[d++])];return d&&d==v?i:o}function Zo(i,l,d){var v=l(i);return ct(i)?v:ji(v,d(i))}function Lr(i){return i==null?i===o?V:yt:no&&no in wt(i)?tr(i):ze(i)}function Pl(i,l){return i>l}function Pc(i,l){return i!=null&&rt.call(i,l)}function Ac(i,l){return i!=null&&l in wt(i)}function Oa(i,l,d){return i>=Pr(l,d)&&i<jt(l,d)}function Al(i,l,d){for(var v=d?ma:hs,x=i[0].length,L=i.length,A=L,D=Y(L),H=1/0,te=[];A--;){var re=i[A];A&&l&&(re=Et(re,Qr(l))),H=Pr(re.length,H),D[A]=!d&&(l||x>=120&&re.length>=120)?new Ir(A&&re):o}re=i[0];var se=-1,Le=D[0];e:for(;++se<x&&te.length<H;){var Ne=re[se],je=l?l(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(Le?an(Le,je):v(te,je,d))){for(A=L;--A;){var gt=D[A];if(!(gt?an(gt,je):v(i[A],je,d)))continue e}Le&&Le.push(je),te.push(Ne)}}return te}function El(i,l,d,v){return Cn(i,function(x,L,A){l(v,d(x),L,A)}),v}function Ta(i,l,d){l=qn(l,i),i=Pe(i,l);var v=i==null?i:i[It(pi(l))];return v==null?o:bn(v,i,d)}function Pa(i){return cr(i)&&Lr(i)==ut}function Rf(i){return cr(i)&&Lr(i)==kr}function Aa(i){return cr(i)&&Lr(i)==at}function Ea(i,l,d,v,x){return i===l?!0:i==null||l==null||!cr(i)&&!cr(l)?i!==i&&l!==l:Ec(i,l,d,v,Ea,x)}function Ec(i,l,d,v,x,L){var A=ct(i),D=ct(l),H=A?_e:Wr(i),te=D?_e:Wr(l);H=H==ut?Mt:H,te=te==ut?Mt:te;var re=H==Mt,se=te==Mt,Le=H==te;if(Le&&Va(i)){if(!Va(l))return!1;A=!0,re=!1}if(Le&&!re)return L||(L=new Sn),A||jl(i)?l0(i,l,d,v,x,L):r1(i,l,H,d,v,x,L);if(!(d&ce)){var Ne=re&&rt.call(i,"__wrapped__"),je=se&&rt.call(l,"__wrapped__");if(Ne||je){var gt=Ne?i.value():i,Ke=je?l.value():l;return L||(L=new Sn),x(gt,Ke,d,v,L)}}return Le?(L||(L=new Sn),n1(i,l,d,v,x,L)):!1}function Ic(i){return cr(i)&&Wr(i)==lr}function Vo(i,l,d,v){var x=d.length,L=x,A=!v;if(i==null)return!L;for(i=wt(i);x--;){var D=d[x];if(A&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++x<L;){D=d[x];var H=D[0],te=i[H],re=D[1];if(A&&D[2]){if(te===o&&!(H in i))return!1}else{var se=new Sn;if(v)var Le=v(te,re,H,i,l,se);if(!(Le===o?Ea(re,te,ce|xe,v,se):Le))return!1}}return!0}function Ia(i){if(!ar(i)||N(i))return!1;var l=Qo(i)?vs:Wn;return l.test(Ht(i))}function ks(i){return cr(i)&&Lr(i)==fr}function Ms(i){return cr(i)&&Wr(i)==tt}function Dc(i){return cr(i)&&c1(i.length)&&!!Ut[Lr(i)]}function Rc(i){return typeof i=="function"?i:i==null?An:typeof i=="object"?ct(i)?qu(i[0],i[1]):Nc(i):op(i)}function Il(i){if(!Z(i))return wc(i);var l=[];for(var d in wt(i))rt.call(i,d)&&d!="constructor"&&l.push(d);return l}function ho(i){if(!ar(i))return de(i);var l=Z(i),d=[];for(var v in i)v=="constructor"&&(l||!rt.call(i,v))||d.push(v);return d}function po(i,l){return i<l}function Da(i,l){var d=-1,v=Tn(i)?Y(i.length):[];return yn(i,function(x,L,A){v[++d]=l(x,L,A)}),v}function Nc(i){var l=Ua(i);return l.length==1&&l[0][2]?le(l[0][0],l[0][1]):function(d){return d===i||Vo(d,i,l)}}function qu(i,l){return C(i)&&J(l)?le(It(i),l):function(d){var v=Xf(d,i);return v===o&&v===l?Qf(d,i):Ea(l,v,ce|xe)}}function Dl(i,l,d,v,x){i!==l&&Ol(l,function(L,A){if(x||(x=new Sn),ar(L))Nf(i,l,A,d,Dl,v,x);else{var D=v?v(Ot(i,A),L,A+"",i,l,x):o;D===o&&(D=L),Sl(i,A,D)}},Pn)}function Nf(i,l,d,v,x,L,A){var D=Ot(i,d),H=Ot(l,d),te=A.get(H);if(te){Sl(i,d,te);return}var re=L?L(D,H,d+"",i,l,A):o,se=re===o;if(se){var Le=ct(H),Ne=!Le&&Va(H),je=!Le&&!Ne&&jl(H);re=H,Le||Ne||je?ct(D)?re=D:br(D)?re=_r(D):Ne?(se=!1,re=r0(H,!0)):je?(se=!1,re=Yc(H,!0)):re=[]:f0(H)||$s(H)?(re=D,$s(D)?re=jh(D):(!ar(D)||Qo(D))&&(re=a(H))):se=!1}se&&(A.set(H,re),x(re,H,v,L,A),A.delete(H)),Sl(i,d,re)}function $c(i,l){var d=i.length;if(!!d)return l+=l<0?d:0,m(l,d)?i[l]:o}function Br(i,l,d){l.length?l=Et(l,function(L){return ct(L)?function(A){return fo(A,L.length===1?L[0]:L)}:L}):l=[An];var v=-1;l=Et(l,Qr(Be()));var x=Da(i,function(L,A,D){var H=Et(l,function(te){return te(L)});return{criteria:H,index:++v,value:L}});return lc(x,function(L,A){return Zc(L,A,d)})}function Hc(i,l){return Bc(i,l,function(d,v){return Qf(i,v)})}function Bc(i,l,d){for(var v=-1,x=l.length,L={};++v<x;){var A=l[v],D=fo(i,A);d(D,A)&&Oi(L,qn(A,i),D)}return L}function $f(i){return function(l){return fo(l,i)}}function ju(i,l,d,v){var x=v?bf:Io,L=-1,A=l.length,D=i;for(i===l&&(l=_r(l)),d&&(D=Et(i,Qr(d)));++L<A;)for(var H=0,te=l[L],re=d?d(te):te;(H=x(D,re,H,v))>-1;)D!==i&&za.call(D,H,1),za.call(i,H,1);return i}function Ku(i,l){for(var d=i?l.length:0,v=d-1;d--;){var x=l[d];if(d==v||x!==L){var L=x;m(x)?za.call(i,x,1):Ps(i,x)}}return i}function Rl(i,l){return i+_a(oo()*(l-i+1))}function Fc(i,l,d,v){for(var x=-1,L=jt(La((l-i)/(d||1)),0),A=Y(L);L--;)A[v?L:++x]=i,i+=d;return A}function Xu(i,l){var d="";if(!i||l<1||l>ot)return d;do l%2&&(d+=i),l=_a(l/2),l&&(i+=i);while(l);return d}function ft(i,l){return Ur(Re(i,l,An),i+"")}function Hf(i){return _l(Kl(i))}function go(i,l){var d=Kl(i);return Sr(d,Yo(l,0,d.length))}function Oi(i,l,d,v){if(!ar(i))return i;l=qn(l,i);for(var x=-1,L=l.length,A=L-1,D=i;D!=null&&++x<L;){var H=It(l[x]),te=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(x!=A){var re=D[H];te=v?v(re,H,D):o,te===o&&(te=ar(re)?re:m(l[x+1])?[]:{})}Ls(D,H,te),D=D[H]}return i}var Os=ui?function(i,l){return ui.set(i,l),i}:An,Ts=Bo?function(i,l){return Bo(i,"toString",{configurable:!0,enumerable:!1,value:ed(l),writable:!0})}:An;function Ti(i){return Sr(Kl(i))}function kn(i,l,d){var v=-1,x=i.length;l<0&&(l=-l>x?0:x+l),d=d>x?x:d,d<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var L=Y(x);++v<x;)L[v]=i[v+l];return L}function Bf(i,l){var d;return yn(i,function(v,x,L){return d=l(v,x,L),!d}),!!d}function Pi(i,l,d){var v=0,x=i==null?v:i.length;if(typeof l=="number"&&l===l&&x<=er){for(;v<x;){var L=v+x>>>1,A=i[L];A!==null&&!jn(A)&&(d?A<=l:A<l)?v=L+1:x=L}return x}return Nl(i,l,An,d)}function Nl(i,l,d,v){var x=0,L=i==null?0:i.length;if(L===0)return 0;l=d(l);for(var A=l!==l,D=l===null,H=jn(l),te=l===o;x<L;){var re=_a((x+L)/2),se=d(i[re]),Le=se!==o,Ne=se===null,je=se===se,gt=jn(se);if(A)var Ke=v||je;else te?Ke=je&&(v||Le):D?Ke=je&&Le&&(v||!Ne):H?Ke=je&&Le&&!Ne&&(v||!gt):Ne||gt?Ke=!1:Ke=v?se<=l:se<l;Ke?x=re+1:L=re}return Pr(L,dn)}function Qu(i,l){for(var d=-1,v=i.length,x=0,L=[];++d<v;){var A=i[d],D=l?l(A):A;if(!d||!Ii(D,H)){var H=D;L[x++]=A===0?0:A}}return L}function Ju(i){return typeof i=="number"?i:jn(i)?sr:+i}function Fr(i){if(typeof i=="string")return i;if(ct(i))return Et(i,Fr)+"";if(jn(i))return Er?Er.call(i):"";var l=i+"";return l=="0"&&1/i==-be?"-0":l}function wn(i,l,d){var v=-1,x=hs,L=i.length,A=!0,D=[],H=D;if(d)A=!1,x=ma;else if(L>=f){var te=l?null:Ds(i);if(te)return vl(te);A=!1,x=an,H=new Ir}else H=l?[]:D;e:for(;++v<L;){var re=i[v],se=l?l(re):re;if(re=d||re!==0?re:0,A&&se===se){for(var Le=H.length;Le--;)if(H[Le]===se)continue e;l&&H.push(se),D.push(re)}else x(H,se,d)||(H!==D&&H.push(se),D.push(re))}return D}function Ps(i,l){return l=qn(l,i),i=Pe(i,l),i==null||delete i[It(pi(l))]}function $l(i,l,d,v){return Oi(i,l,d(fo(i,l)),v)}function Ra(i,l,d,v){for(var x=i.length,L=v?x:-1;(v?L--:++L<x)&&l(i[L],L,i););return d?kn(i,v?0:L,v?L+1:x):kn(i,v?L+1:0,v?x:L)}function Wc(i,l){var d=i;return d instanceof bt&&(d=d.value()),ku(l,function(v,x){return x.func.apply(x.thisArg,ji([v],x.args))},d)}function Go(i,l,d){var v=i.length;if(v<2)return v?wn(i[0]):[];for(var x=-1,L=Y(v);++x<v;)for(var A=i[x],D=-1;++D<v;)D!=x&&(L[x]=Ma(L[x]||A,i[D],l,d));return wn(Dr(L,1),l,d)}function e0(i,l,d){for(var v=-1,x=i.length,L=l.length,A={};++v<x;){var D=v<L?l[v]:o;d(A,i[v],D)}return A}function t0(i){return br(i)?i:[]}function Hl(i){return typeof i=="function"?i:An}function qn(i,l){return ct(i)?i:C(i,l)?[i]:gr(Nt(i))}var Ff=ft;function vo(i,l,d){var v=i.length;return d=d===o?v:d,!l&&d>=v?i:kn(i,l,d)}var Na=wf||function(i){return Gt.clearTimeout(i)};function r0(i,l){if(l)return i.slice();var d=i.length,v=yc?yc(d):new i.constructor(d);return i.copy(v),v}function Bl(i){var l=new i.constructor(i.byteLength);return new $o(l).set(new $o(i)),l}function Wf(i,l){var d=l?Bl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function n0(i){var l=new i.constructor(i.source,Po.exec(i));return l.lastIndex=i.lastIndex,l}function Uc(i){return Kt?wt(Kt.call(i)):{}}function Yc(i,l){var d=l?Bl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function i0(i,l){if(i!==l){var d=i!==o,v=i===null,x=i===i,L=jn(i),A=l!==o,D=l===null,H=l===l,te=jn(l);if(!D&&!te&&!L&&i>l||L&&A&&H&&!D&&!te||v&&A&&H||!d&&H||!x)return 1;if(!v&&!L&&!te&&i<l||te&&d&&x&&!v&&!L||D&&d&&x||!A&&x||!H)return-1}return 0}function Zc(i,l,d){for(var v=-1,x=i.criteria,L=l.criteria,A=x.length,D=d.length;++v<A;){var H=i0(x[v],L[v]);if(H){if(v>=D)return H;var te=d[v];return H*(te=="desc"?-1:1)}}return i.index-l.index}function Vc(i,l,d,v){for(var x=-1,L=i.length,A=d.length,D=-1,H=l.length,te=jt(L-A,0),re=Y(H+te),se=!v;++D<H;)re[D]=l[D];for(;++x<A;)(se||x<L)&&(re[d[x]]=i[x]);for(;te--;)re[D++]=i[x++];return re}function Fl(i,l,d,v){for(var x=-1,L=i.length,A=-1,D=d.length,H=-1,te=l.length,re=jt(L-D,0),se=Y(re+te),Le=!v;++x<re;)se[x]=i[x];for(var Ne=x;++H<te;)se[Ne+H]=l[H];for(;++A<D;)(Le||x<L)&&(se[Ne+d[A]]=i[x++]);return se}function _r(i,l){var d=-1,v=i.length;for(l||(l=Y(v));++d<v;)l[d]=i[d];return l}function ln(i,l,d,v){var x=!d;d||(d={});for(var L=-1,A=l.length;++L<A;){var D=l[L],H=v?v(d[D],i[D],D,d,i):o;H===o&&(H=i[D]),x?di(d,D,H):Ls(d,D,H)}return d}function Uf(i,l){return ln(i,u0(i),l)}function Gc(i,l){return ln(i,i1(i),l)}function Wl(i,l){return function(d,v){var x=ct(d)?hf:Uu,L=l?l():{};return x(d,i,Be(v,2),L)}}function $a(i){return ft(function(l,d){var v=-1,x=d.length,L=x>1?d[x-1]:o,A=x>2?d[2]:o;for(L=i.length>3&&typeof L=="function"?(x--,L):o,A&&y(d[0],d[1],A)&&(L=x<3?o:L,x=1),l=wt(l);++v<x;){var D=d[v];D&&i(l,D,v,L)}return l})}function qc(i,l){return function(d,v){if(d==null)return d;if(!Tn(d))return i(d,v);for(var x=d.length,L=l?x:-1,A=wt(d);(l?L--:++L<x)&&v(A[L],L,A)!==!1;);return d}}function jc(i){return function(l,d,v){for(var x=-1,L=wt(l),A=v(l),D=A.length;D--;){var H=A[i?D:++x];if(d(L[H],H,L)===!1)break}return l}}function Kc(i,l,d){var v=l&ye,x=Ba(i);function L(){var A=this&&this!==Gt&&this instanceof L?x:i;return A.apply(v?d:this,arguments)}return L}function Xc(i){return function(l){l=Nt(l);var d=Zn(l)?_n(l):o,v=d?d[0]:l.charAt(0),x=d?vo(d,1).join(""):l.slice(1);return v[i]()+x}}function Ha(i){return function(l){return ku(np(rp(l).replace(wu,"")),i,"")}}function Ba(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ci(i.prototype),v=i.apply(d,l);return ar(v)?v:d}}function o0(i,l,d){var v=Ba(i);function x(){for(var L=arguments.length,A=Y(L),D=L,H=Wa(x);D--;)A[D]=arguments[D];var te=L<3&&A[0]!==H&&A[L-1]!==H?[]:Xi(A,H);if(L-=te.length,L<d)return e1(i,l,As,x.placeholder,o,A,te,o,o,d-L);var re=this&&this!==Gt&&this instanceof x?v:i;return bn(re,this,A)}return x}function a0(i){return function(l,d,v){var x=wt(l);if(!Tn(l)){var L=Be(d,3);l=Gr(l),d=function(D){return L(x[D],D,x)}}var A=i(l,d,v);return A>-1?x[L?l[A]:A]:o}}function Qc(i){return Ai(function(l){var d=l.length,v=d,x=Jr.prototype.thru;for(i&&l.reverse();v--;){var L=l[v];if(typeof L!="function")throw new sn(b);if(x&&!A&&Ns(L)=="wrapper")var A=new Jr([],!0)}for(v=A?v:d;++v<d;){L=l[v];var D=Ns(L),H=D=="wrapper"?_t(L):o;H&&k(H[0])&&H[1]==(Ye|pe|Te|et)&&!H[4].length&&H[9]==1?A=A[Ns(H[0])].apply(A,H[3]):A=L.length==1&&k(L)?A[D]():A.thru(L)}return function(){var te=arguments,re=te[0];if(A&&te.length==1&&ct(re))return A.plant(re).value();for(var se=0,Le=d?l[se].apply(this,te):re;++se<d;)Le=l[se].call(this,Le);return Le}})}function As(i,l,d,v,x,L,A,D,H,te){var re=l&Ye,se=l&ye,Le=l&Ae,Ne=l&(pe|he),je=l&nt,gt=Le?o:Ba(i);function Ke(){for(var Ct=arguments.length,xt=Y(Ct),Kn=Ct;Kn--;)xt[Kn]=arguments[Kn];if(Ne)var xn=Wa(Ke),Xn=mf(xt,xn);if(v&&(xt=Vc(xt,v,x,Ne)),L&&(xt=Fl(xt,L,A,Ne)),Ct-=Xn,Ne&&Ct<te){var mr=Xi(xt,xn);return e1(i,l,As,Ke.placeholder,d,xt,mr,D,H,te-Ct)}var Di=se?d:this,ea=Le?Di[i]:i;return Ct=xt.length,D?xt=lt(xt,D):je&&Ct>1&&xt.reverse(),re&&H<Ct&&(xt.length=H),this&&this!==Gt&&this instanceof Ke&&(ea=gt||Ba(ea)),ea.apply(Di,xt)}return Ke}function qo(i,l){return function(d,v){return El(d,i,l(v),{})}}function Es(i,l){return function(d,v){var x;if(d===o&&v===o)return l;if(d!==o&&(x=d),v!==o){if(x===o)return v;typeof d=="string"||typeof v=="string"?(d=Fr(d),v=Fr(v)):(d=Ju(d),v=Ju(v)),x=i(d,v)}return x}}function Fa(i){return Ai(function(l){return l=Et(l,Qr(Be())),ft(function(d){var v=this;return i(l,function(x){return bn(x,v,d)})})})}function Ul(i,l){l=l===o?" ":Fr(l);var d=l.length;if(d<2)return d?Xu(l,i):l;var v=Xu(l,La(i/Ro(l)));return Zn(l)?vo(_n(v),0,i).join(""):v.slice(0,i)}function Yf(i,l,d,v){var x=l&ye,L=Ba(i);function A(){for(var D=-1,H=arguments.length,te=-1,re=v.length,se=Y(re+H),Le=this&&this!==Gt&&this instanceof A?L:i;++te<re;)se[te]=v[te];for(;H--;)se[te++]=arguments[++D];return bn(Le,x?d:this,se)}return A}function Jc(i){return function(l,d,v){return v&&typeof v!="number"&&y(l,d,v)&&(d=v=o),l=Jo(l),d===o?(d=l,l=0):d=Jo(d),v=v===o?l<d?1:-1:Jo(v),Fc(l,d,v,i)}}function Dt(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gi(l),d=gi(d)),i(l,d)}}function e1(i,l,d,v,x,L,A,D,H,te){var re=l&pe,se=re?A:o,Le=re?o:A,Ne=re?L:o,je=re?o:L;l|=re?Te:He,l&=~(re?He:Te),l&Ie||(l&=~(ye|Ae));var gt=[i,l,x,Ne,se,je,Le,D,H,te],Ke=d.apply(o,gt);return k(i)&&ur(Ke,gt),Ke.placeholder=v,Yr(Ke,i,l)}function Is(i){var l=pr[i];return function(d,v){if(d=gi(d),v=v==null?0:Pr(dt(v),292),v&&Cc(d)){var x=(Nt(d)+"e").split("e"),L=l(x[0]+"e"+(+x[1]+v));return x=(Nt(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return l(d)}}var Ds=Wo&&1/vl(new Wo([,-0]))[1]==be?function(i){return new Wo(i)}:nd;function Mn(i){return function(l){var d=Wr(l);return d==lr?gl(l):d==tt?hc(l):Si(l,i(l))}}function On(i,l,d,v,x,L,A,D){var H=l&Ae;if(!H&&typeof i!="function")throw new sn(b);var te=v?v.length:0;if(te||(l&=~(Te|He),v=x=o),A=A===o?A:jt(dt(A),0),D=D===o?D:dt(D),te-=x?x.length:0,l&He){var re=v,se=x;v=x=o}var Le=H?o:_t(i),Ne=[i,l,d,v,x,re,se,L,A,D];if(Le&&we(Ne,Le),i=Ne[0],l=Ne[1],d=Ne[2],v=Ne[3],x=Ne[4],D=Ne[9]=Ne[9]===o?H?0:i.length:jt(Ne[9]-te,0),!D&&l&(pe|he)&&(l&=~(pe|he)),!l||l==ye)var je=Kc(i,l,d);else l==pe||l==he?je=o0(i,l,D):(l==Te||l==(ye|Te))&&!x.length?je=Yf(i,l,d,v):je=As.apply(o,Ne);var gt=Le?Os:ur;return Yr(gt(je,Ne),i,l)}function Yl(i,l,d,v){return i===o||Ii(i,eo[d])&&!rt.call(v,d)?l:i}function s0(i,l,d,v,x,L){return ar(i)&&ar(l)&&(L.set(l,i),Dl(i,l,o,s0,L),L.delete(l)),i}function t1(i){return f0(i)?o:i}function l0(i,l,d,v,x,L){var A=d&ce,D=i.length,H=l.length;if(D!=H&&!(A&&H>D))return!1;var te=L.get(i),re=L.get(l);if(te&&re)return te==l&&re==i;var se=-1,Le=!0,Ne=d&xe?new Ir:o;for(L.set(i,l),L.set(l,i);++se<D;){var je=i[se],gt=l[se];if(v)var Ke=A?v(gt,je,se,l,i,L):v(je,gt,se,i,l,L);if(Ke!==o){if(Ke)continue;Le=!1;break}if(Ne){if(!Eo(l,function(Ct,xt){if(!an(Ne,xt)&&(je===Ct||x(je,Ct,d,v,L)))return Ne.push(xt)})){Le=!1;break}}else if(!(je===gt||x(je,gt,d,v,L))){Le=!1;break}}return L.delete(i),L.delete(l),Le}function r1(i,l,d,v,x,L,A){switch(d){case $n:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case kr:return!(i.byteLength!=l.byteLength||!L(new $o(i),new $o(l)));case Ze:case at:case Xe:return Ii(+i,+l);case We:return i.name==l.name&&i.message==l.message;case fr:case B:return i==l+"";case lr:var D=gl;case tt:var H=v&ce;if(D||(D=vl),i.size!=l.size&&!H)return!1;var te=A.get(i);if(te)return te==l;v|=xe,A.set(i,l);var re=l0(D(i),D(l),v,x,L,A);return A.delete(i),re;case oe:if(Kt)return Kt.call(i)==Kt.call(l)}return!1}function n1(i,l,d,v,x,L){var A=d&ce,D=Rs(i),H=D.length,te=Rs(l),re=te.length;if(H!=re&&!A)return!1;for(var se=H;se--;){var Le=D[se];if(!(A?Le in l:rt.call(l,Le)))return!1}var Ne=L.get(i),je=L.get(l);if(Ne&&je)return Ne==l&&je==i;var gt=!0;L.set(i,l),L.set(l,i);for(var Ke=A;++se<H;){Le=D[se];var Ct=i[Le],xt=l[Le];if(v)var Kn=A?v(xt,Ct,Le,l,i,L):v(Ct,xt,Le,i,l,L);if(!(Kn===o?Ct===xt||x(Ct,xt,d,v,L):Kn)){gt=!1;break}Ke||(Ke=Le=="constructor")}if(gt&&!Ke){var xn=i.constructor,Xn=l.constructor;xn!=Xn&&"constructor"in i&&"constructor"in l&&!(typeof xn=="function"&&xn instanceof xn&&typeof Xn=="function"&&Xn instanceof Xn)&&(gt=!1)}return L.delete(i),L.delete(l),gt}function Ai(i){return Ur(Re(i,o,Oh),i+"")}function Rs(i){return Zo(i,Gr,u0)}function Zl(i){return Zo(i,Pn,i1)}var _t=ui?function(i){return ui.get(i)}:nd;function Ns(i){for(var l=i.name+"",d=ka[l],v=rt.call(ka,l)?d.length:0;v--;){var x=d[v],L=x.func;if(L==null||L==i)return x.name}return l}function Wa(i){var l=rt.call(z,"placeholder")?z:i;return l.placeholder}function Be(){var i=z.iteratee||td;return i=i===td?Rc:i,arguments.length?i(arguments[0],arguments[1]):i}function Vl(i,l){var d=i.__data__;return _(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Ua(i){for(var l=Gr(i),d=l.length;d--;){var v=l[d],x=i[v];l[d]=[v,x,J(x)]}return l}function jo(i,l){var d=Eu(i,l);return Ia(d)?d:o}function tr(i){var l=rt.call(i,no),d=i[no];try{i[no]=o;var v=!0}catch{}var x=No.call(i);return v&&(l?i[no]=d:delete i[no]),x}var u0=io?function(i){return i==null?[]:(i=wt(i),qi(io(i),function(l){return Cl.call(i,l)}))}:id,i1=io?function(i){for(var l=[];i;)ji(l,u0(i)),i=xa(i);return l}:id,Wr=Lr;(ao&&Wr(new ao(new ArrayBuffer(1)))!=$n||Sa&&Wr(new Sa)!=lr||xl&&Wr(xl.resolve())!=$r||Wo&&Wr(new Wo)!=tt||ws&&Wr(new ws)!=Qe)&&(Wr=function(i){var l=Lr(i),d=l==Mt?i.constructor:o,v=d?Ht(d):"";if(v)switch(v){case Lf:return $n;case _f:return lr;case Sf:return $r;case kf:return tt;case Mf:return Qe}return l});function Gl(i,l,d){for(var v=-1,x=d.length;++v<x;){var L=d[v],A=L.size;switch(L.type){case"drop":i+=A;break;case"dropRight":l-=A;break;case"take":l=Pr(l,i+A);break;case"takeRight":i=jt(i,l-A);break}}return{start:i,end:l}}function e(i){var l=i.match(is);return l?l[1].split(Vi):[]}function t(i,l,d){l=qn(l,i);for(var v=-1,x=l.length,L=!1;++v<x;){var A=It(l[v]);if(!(L=i!=null&&d(i,A)))break;i=i[A]}return L||++v!=x?L:(x=i==null?0:i.length,!!x&&c1(x)&&m(A,x)&&(ct(i)||$s(i)))}function s(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&rt.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function a(i){return typeof i.constructor=="function"&&!Z(i)?ci(xa(i)):{}}function u(i,l,d){var v=i.constructor;switch(l){case kr:return Bl(i);case Ze:case at:return new v(+i);case $n:return Wf(i,d);case jr:case Zt:case zi:case Hr:case Hn:case $e:case Yi:case Mr:case Ge:return Yc(i,d);case lr:return new v;case Xe:case B:return new v(i);case fr:return n0(i);case tt:return new v;case oe:return Uc(i)}}function h(i,l){var d=l.length;if(!d)return i;var v=d-1;return l[v]=(d>1?"& ":"")+l[v],l=l.join(d>2?", ":" "),i.replace(tl,`{
2283
2365
  /* [wrapped with `+l+`] */
2284
- `)}function g(i){return ct(i)||$s(i)||!!(Ho&&i&&i[Ho])}function m(i,l){var d=typeof i;return l=l==null?ot:l,!!l&&(d=="number"||d!="symbol"&&os.test(i))&&i>-1&&i%1==0&&i<l}function y(i,l,d){if(!ar(d))return!1;var v=typeof l;return(v=="number"?Tn(d)&&m(l,d.length):v=="string"&&l in d)?Ei(d[l],i):!1}function C(i,l){if(ct(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||jn(i)?!0:Kr.test(i)||!ns.test(i)||l!=null&&i in wt(l)}function z(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function M(i){var l=Ns(i),d=L[l];if(typeof d!="function"||!(l in bt.prototype))return!1;if(i===d)return!0;var v=zt(d);return!!v&&i===v[0]}function N(i){return!!Si&&Si in i}var R=si?Qo:nd;function Z(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||Ji;return i===d}function J(i){return i===i&&!ar(i)}function le(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==o||i in wt(d))}}function fe(i){var l=a1(i,function(v){return d.size===O&&d.clear(),v}),d=l.cache;return l}function Ce(i,l){var d=i[1],v=l[1],x=d|v,_=x<(me|Ae|Ye),A=v==Ye&&d==pe||v==Ye&&d==et&&i[7].length<=l[8]||v==(Ye|et)&&l[7].length<=l[8]&&d==pe;if(!(_||A))return i;v&me&&(i[2]=l[2],x|=d&me?0:Ie);var D=l[3];if(D){var H=i[3];i[3]=H?Yc(H,D,l[4]):D,i[4]=H?Ki(i[3],I):l[4]}return D=l[5],D&&(H=i[5],i[5]=H?Bl(H,D,l[6]):D,i[6]=H?Ki(i[5],I):l[6]),D=l[7],D&&(i[7]=D),v&Ye&&(i[8]=i[8]==null?l[8]:Pr(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=x,i}function de(i){var l=[];if(i!=null)for(var d in wt(i))l.push(d);return l}function xe(i){return No.call(i)}function Re(i,l,d){return l=jt(l===o?i.length-1:l,0),function(){for(var v=arguments,x=-1,_=jt(v.length-l,0),A=Y(_);++x<_;)A[x]=v[l+x];x=-1;for(var D=Y(l+1);++x<l;)D[x]=v[x];return D[l]=d(A),bn(i,this,D)}}function Pe(i,l){return l.length<2?i:co(i,Mn(l,0,-1))}function lt(i,l){for(var d=i.length,v=Pr(l.length,d),x=zr(i);v--;){var _=l[v];i[v]=m(_,d)?x[_]:o}return i}function Ot(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var ur=rr(Os),Rt=wf||function(i,l){return qt.setTimeout(i,l)},Ur=rr(Ts);function Yr(i,l,d){var v=l+"";return Ur(i,h(v,Xt(e(v),d)))}function rr(i){var l=0,d=0;return function(){var v=Fo(),x=W-(v-d);if(d=v,x>0){if(++l>=it)return arguments[0]}else l=0;return i.apply(o,arguments)}}function Sr(i,l){var d=-1,v=i.length,x=v-1;for(l=l===o?v:l;++d<l;){var _=Dl(d,x),A=i[_];i[_]=i[d],i[d]=A}return i.length=l,i}var gr=fe(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Qs,function(d,v,x,_){l.push(x?_.replace(tl,"$1"):v||d)}),l});function It(i){if(typeof i=="string"||jn(i))return i;var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function Ht(i){if(i!=null){try{return li.call(i)}catch{}try{return i+""}catch{}}return""}function Xt(i,l){return _n(Ft,function(d){var v="_."+d[0];l&d[1]&&!hs(i,v)&&i.push(v)}),i.sort()}function Zr(i){if(i instanceof bt)return i.clone();var l=new Jr(i.__wrapped__,i.__chain__);return l.__actions__=zr(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function Za(i,l,d){(d?y(i,l,d):l===o)?l=1:l=jt(dt(l),0);var v=i==null?0:i.length;if(!v||l<1)return[];for(var x=0,_=0,A=Y(za(v/l));x<v;)A[_++]=Mn(i,x,x+=l);return A}function vo(i){for(var l=-1,d=i==null?0:i.length,v=0,x=[];++l<d;){var _=i[l];_&&(x[v++]=_)}return x}function Rr(){var i=arguments.length;if(!i)return[];for(var l=Y(i-1),d=arguments[0],v=i;v--;)l[v-1]=arguments[v];return qi(ct(d)?zr(d):[d],Dr(l,1))}var hi=ft(function(i,l){return br(i)?Oa(i,Dr(l,1,br,!0)):[]}),vr=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Oa(i,Dr(l,1,br,!0),Be(d,2)):[]}),u0=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Oa(i,Dr(l,1,br,!0),o,d):[]});function Ai(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),Mn(i,l<0?0:l,v)):[]}function Ko(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,Mn(i,0,l<0?0:l)):[]}function Xo(i,l){return i&&i.length?Na(i,Be(l,3),!0,!0):[]}function Vr(i,l){return i&&i.length?Na(i,Be(l,3),!0):[]}function Va(i,l,d,v){var x=i==null?0:i.length;return x?(d&&typeof d!="number"&&y(i,l,d)&&(d=0,v=x),Zu(i,l,d,v)):[]}function Gl(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),cl(i,Be(l,3),x)}function zh(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v-1;return d!==o&&(x=dt(d),x=d<0?jt(v+x,0):Pr(x,v-1)),cl(i,Be(l,3),x,!0)}function Sh(i){var l=i==null?0:i.length;return l?Dr(i,1):[]}function g5(i){var l=i==null?0:i.length;return l?Dr(i,ve):[]}function v5(i,l){var d=i==null?0:i.length;return d?(l=l===o?1:dt(l),Dr(i,l)):[]}function b5(i){for(var l=-1,d=i==null?0:i.length,v={};++l<d;){var x=i[l];v[x[0]]=x[1]}return v}function Mh(i){return i&&i.length?i[0]:o}function m5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),Io(i,l,x)}function y5(i){var l=i==null?0:i.length;return l?Mn(i,0,-1):[]}var C5=ft(function(i){var l=Et(i,e0);return l.length&&l[0]===i[0]?Pl(l):[]}),w5=ft(function(i){var l=pi(i),d=Et(i,e0);return l===pi(d)?l=o:d.pop(),d.length&&d[0]===i[0]?Pl(d,Be(l,2)):[]}),x5=ft(function(i){var l=pi(i),d=Et(i,e0);return l=typeof l=="function"?l:o,l&&d.pop(),d.length&&d[0]===i[0]?Pl(d,o,l):[]});function L5(i,l){return i==null?"":Cl.call(i,l)}function pi(i){var l=i==null?0:i.length;return l?i[l-1]:o}function _5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v;return d!==o&&(x=dt(d),x=x<0?jt(v+x,0):Pr(x,v-1)),l===l?gs(i,l,x):cl(i,fl,x,!0)}function z5(i,l){return i&&i.length?Rc(i,dt(l)):o}var S5=ft(kh);function kh(i,l){return i&&i.length&&l&&l.length?qu(i,l):i}function M5(i,l,d){return i&&i.length&&l&&l.length?qu(i,l,Be(d,2)):i}function k5(i,l,d){return i&&i.length&&l&&l.length?qu(i,l,o,d):i}var O5=Pi(function(i,l){var d=i==null?0:i.length,v=Yu(i,l);return ju(i,Et(l,function(x){return m(x,d)?+x:x}).sort(n0)),v});function T5(i,l){var d=[];if(!(i&&i.length))return d;var v=-1,x=[],_=i.length;for(l=Be(l,3);++v<_;){var A=i[v];l(A,v,i)&&(d.push(A),x.push(v))}return ju(i,x),d}function Uf(i){return i==null?i:Cs.call(i)}function P5(i,l,d){var v=i==null?0:i.length;return v?(d&&typeof d!="number"&&y(i,l,d)?(l=0,d=v):(l=l==null?0:dt(l),d=d===o?v:dt(d)),Mn(i,l,d)):[]}function A5(i,l){return Ti(i,l)}function E5(i,l,d){return Rl(i,l,Be(d,2))}function I5(i,l){var d=i==null?0:i.length;if(d){var v=Ti(i,l);if(v<d&&Ei(i[v],l))return v}return-1}function D5(i,l){return Ti(i,l,!0)}function R5(i,l,d){return Rl(i,l,Be(d,2),!0)}function N5(i,l){var d=i==null?0:i.length;if(d){var v=Ti(i,l,!0)-1;if(Ei(i[v],l))return v}return-1}function $5(i){return i&&i.length?Xu(i):[]}function H5(i,l){return i&&i.length?Xu(i,Be(l,2)):[]}function B5(i){var l=i==null?0:i.length;return l?Mn(i,1,l):[]}function F5(i,l,d){return i&&i.length?(l=d||l===o?1:dt(l),Mn(i,0,l<0?0:l)):[]}function W5(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,Mn(i,l<0?0:l,v)):[]}function U5(i,l){return i&&i.length?Na(i,Be(l,3),!1,!0):[]}function Y5(i,l){return i&&i.length?Na(i,Be(l,3)):[]}var Z5=ft(function(i){return wn(Dr(i,1,br,!0))}),V5=ft(function(i){var l=pi(i);return br(l)&&(l=o),wn(Dr(i,1,br,!0),Be(l,2))}),G5=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,wn(Dr(i,1,br,!0),o,l)});function q5(i){return i&&i.length?wn(i):[]}function j5(i,l){return i&&i.length?wn(i,Be(l,2)):[]}function K5(i,l){return l=typeof l=="function"?l:o,i&&i.length?wn(i,o,l):[]}function Yf(i){if(!(i&&i.length))return[];var l=0;return i=Gi(i,function(d){if(br(d))return l=jt(d.length,l),!0}),Do(l,function(d){return Et(i,ku(d))})}function Oh(i,l){if(!(i&&i.length))return[];var d=Yf(i);return l==null?d:Et(d,function(v){return bn(l,o,v)})}var X5=ft(function(i,l){return br(i)?Oa(i,l):[]}),Q5=ft(function(i){return Go(Gi(i,br))}),J5=ft(function(i){var l=pi(i);return br(l)&&(l=o),Go(Gi(i,br),Be(l,2))}),e6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,Go(Gi(i,br),o,l)}),t6=ft(Yf);function r6(i,l){return Ju(i||[],l||[],_s)}function n6(i,l){return Ju(i||[],l||[],ki)}var i6=ft(function(i){var l=i.length,d=l>1?i[l-1]:o;return d=typeof d=="function"?(i.pop(),d):o,Oh(i,d)});function Th(i){var l=L(i);return l.__chain__=!0,l}function o6(i,l){return l(i),i}function n1(i,l){return l(i)}var a6=Pi(function(i){var l=i.length,d=l?i[0]:0,v=this.__wrapped__,x=function(_){return Yu(_,i)};return l>1||this.__actions__.length||!(v instanceof bt)||!m(d)?this.thru(x):(v=v.slice(d,+d+(l?1:0)),v.__actions__.push({func:n1,args:[x],thisArg:o}),new Jr(v,this.__chain__).thru(function(_){return l&&!_.length&&_.push(o),_}))});function s6(){return Th(this)}function l6(){return new Jr(this.value(),this.__chain__)}function u6(){this.__values__===o&&(this.__values__=Yh(this.value()));var i=this.__index__>=this.__values__.length,l=i?o:this.__values__[this.__index__++];return{done:i,value:l}}function c6(){return this}function f6(i){for(var l,d=this;d instanceof xl;){var v=Zr(d);v.__index__=0,v.__values__=o,l?x.__wrapped__=v:l=v;var x=v;d=d.__wrapped__}return x.__wrapped__=i,l}function d6(){var i=this.__wrapped__;if(i instanceof bt){var l=i;return this.__actions__.length&&(l=new bt(this)),l=l.reverse(),l.__actions__.push({func:n1,args:[Uf],thisArg:o}),new Jr(l,this.__chain__)}return this.thru(Uf)}function h6(){return Bc(this.__wrapped__,this.__actions__)}var p6=Fl(function(i,l,d){rt.call(i,d)?++i[d]:di(i,d,1)});function g6(i,l,d){var v=ct(i)?zu:Ml;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}function v6(i,l){var d=ct(i)?Gi:Vu;return d(i,Be(l,3))}var b6=o0(Gl),m6=o0(zh);function y6(i,l){return Dr(i1(i,l),1)}function C6(i,l){return Dr(i1(i,l),ve)}function w6(i,l,d){return d=d===o?1:dt(d),Dr(i1(i,l),d)}function Ph(i,l){var d=ct(i)?_n:yn;return d(i,Be(l,3))}function Ah(i,l){var d=ct(i)?df:Sl;return d(i,Be(l,3))}var x6=Fl(function(i,l,d){rt.call(i,d)?i[d].push(l):di(i,d,[l])});function L6(i,l,d,v){i=Tn(i)?i:jl(i),d=d&&!v?dt(d):0;var x=i.length;return d<0&&(d=jt(x+d,0)),u1(i)?d<=x&&i.indexOf(l,d)>-1:!!x&&Io(i,l,d)>-1}var _6=ft(function(i,l,d){var v=-1,x=typeof l=="function",_=Tn(i)?Y(i.length):[];return yn(i,function(A){_[++v]=x?bn(l,A,d):Pa(A,l,d)}),_}),z6=Fl(function(i,l,d){di(i,d,l)});function i1(i,l){var d=ct(i)?Et:Ra;return d(i,Be(l,3))}function S6(i,l,d,v){return i==null?[]:(ct(l)||(l=l==null?[]:[l]),d=v?o:d,ct(d)||(d=d==null?[]:[d]),Br(i,l,d))}var M6=Fl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function k6(i,l,d){var v=ct(i)?Su:Tu,x=arguments.length<3;return v(i,Be(l,4),d,x,yn)}function O6(i,l,d){var v=ct(i)?hf:Tu,x=arguments.length<3;return v(i,Be(l,4),d,x,Sl)}function T6(i,l){var d=ct(i)?Gi:Vu;return d(i,s1(Be(l,3)))}function P6(i){var l=ct(i)?_l:Nf;return l(i)}function A6(i,l,d){(d?y(i,l,d):l===o)?l=1:l=dt(l);var v=ct(i)?uo:po;return v(i,l)}function E6(i){var l=ct(i)?zc:Oi;return l(i)}function I6(i){if(i==null)return 0;if(Tn(i))return u1(i)?Ro(i):i.length;var l=Wr(i);return l==lr||l==tt?i.size:El(i).length}function D6(i,l,d){var v=ct(i)?Eo:$f;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}var R6=ft(function(i,l){if(i==null)return[];var d=l.length;return d>1&&y(i,l[0],l[1])?l=[]:d>2&&y(l[0],l[1],l[2])&&(l=[l[0]]),Br(i,Dr(l,1),[])}),o1=Cf||function(){return qt.Date.now()};function N6(i,l){if(typeof l!="function")throw new sn(b);return i=dt(i),function(){if(--i<1)return l.apply(this,arguments)}}function Eh(i,l,d){return l=d?o:l,l=i&&l==null?i.length:l,On(i,Ye,o,o,o,o,l)}function Ih(i,l){var d;if(typeof l!="function")throw new sn(b);return i=dt(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=o),d}}var Zf=ft(function(i,l,d){var v=me;if(d.length){var x=Ki(d,Ua(Zf));v|=Te}return On(i,v,l,d,x)}),Dh=ft(function(i,l,d){var v=me|Ae;if(d.length){var x=Ki(d,Ua(Dh));v|=Te}return On(l,v,i,d,x)});function Rh(i,l,d){l=d?o:l;var v=On(i,pe,o,o,o,o,o,l);return v.placeholder=Rh.placeholder,v}function Nh(i,l,d){l=d?o:l;var v=On(i,he,o,o,o,o,o,l);return v.placeholder=Nh.placeholder,v}function $h(i,l,d){var v,x,_,A,D,H,te=0,re=!1,se=!1,Le=!0;if(typeof i!="function")throw new sn(b);l=gi(l)||0,ar(d)&&(re=!!d.leading,se="maxWait"in d,_=se?jt(gi(d.maxWait)||0,l):_,Le="trailing"in d?!!d.trailing:Le);function Ne(mr){var Ii=v,ea=x;return v=x=o,te=mr,A=i.apply(ea,Ii),A}function je(mr){return te=mr,D=Rt(Ct,l),re?Ne(mr):A}function gt(mr){var Ii=mr-H,ea=mr-te,np=l-Ii;return se?Pr(np,_-ea):np}function Ke(mr){var Ii=mr-H,ea=mr-te;return H===o||Ii>=l||Ii<0||se&&ea>=_}function Ct(){var mr=o1();if(Ke(mr))return xt(mr);D=Rt(Ct,gt(mr))}function xt(mr){return D=o,Le&&v?Ne(mr):(v=x=o,A)}function Kn(){D!==o&&$a(D),te=0,v=H=x=D=o}function xn(){return D===o?A:xt(o1())}function Xn(){var mr=o1(),Ii=Ke(mr);if(v=arguments,x=this,H=mr,Ii){if(D===o)return je(H);if(se)return $a(D),D=Rt(Ct,l),Ne(H)}return D===o&&(D=Rt(Ct,l)),A}return Xn.cancel=Kn,Xn.flush=xn,Xn}var $6=ft(function(i,l){return kc(i,1,l)}),H6=ft(function(i,l,d){return kc(i,gi(l)||0,d)});function B6(i){return On(i,nt)}function a1(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new sn(b);var d=function(){var v=arguments,x=l?l.apply(this,v):v[0],_=d.cache;if(_.has(x))return _.get(x);var A=i.apply(this,v);return d.cache=_.set(x,A)||_,A};return d.cache=new(a1.Cache||or),d}a1.Cache=or;function s1(i){if(typeof i!="function")throw new sn(b);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function F6(i){return Ih(2,i)}var W6=Hf(function(i,l){l=l.length==1&&ct(l[0])?Et(l[0],Qr(Be())):Et(Dr(l,1),Qr(Be()));var d=l.length;return ft(function(v){for(var x=-1,_=Pr(v.length,d);++x<_;)v[x]=l[x].call(this,v[x]);return bn(i,this,v)})}),Vf=ft(function(i,l){var d=Ki(l,Ua(Vf));return On(i,Te,o,l,d)}),Hh=ft(function(i,l){var d=Ki(l,Ua(Hh));return On(i,He,o,l,d)}),U6=Pi(function(i,l){return On(i,et,o,o,o,l)});function Y6(i,l){if(typeof i!="function")throw new sn(b);return l=l===o?l:dt(l),ft(i,l)}function Z6(i,l){if(typeof i!="function")throw new sn(b);return l=l==null?0:jt(dt(l),0),ft(function(d){var v=d[l],x=go(d,0,l);return v&&qi(x,v),bn(i,this,x)})}function V6(i,l,d){var v=!0,x=!0;if(typeof i!="function")throw new sn(b);return ar(d)&&(v="leading"in d?!!d.leading:v,x="trailing"in d?!!d.trailing:x),$h(i,l,{leading:v,maxWait:l,trailing:x})}function G6(i){return Eh(i,1)}function q6(i,l){return Vf($l(l),i)}function j6(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function K6(i){return en(i,X)}function X6(i,l){return l=typeof l=="function"?l:o,en(i,X,l)}function Q6(i){return en(i,U|X)}function J6(i,l){return l=typeof l=="function"?l:o,en(i,U|X,l)}function e3(i,l){return l==null||Mc(i,l,Gr(l))}function Ei(i,l){return i===l||i!==i&&l!==l}var t3=Dt(Tl),r3=Dt(function(i,l){return i>=l}),$s=Aa(function(){return arguments}())?Aa:function(i){return cr(i)&&rt.call(i,"callee")&&!yl.call(i,"callee")},ct=Y.isArray,n3=tc?Qr(tc):If;function Tn(i){return i!=null&&l1(i.length)&&!Qo(i)}function br(i){return cr(i)&&Tn(i)}function i3(i){return i===!0||i===!1||cr(i)&&_r(i)==Ze}var Ga=ms||nd,o3=rc?Qr(rc):Ea;function a3(i){return cr(i)&&i.nodeType===1&&!c0(i)}function s3(i){if(i==null)return!0;if(Tn(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Ga(i)||ql(i)||$s(i)))return!i.length;var l=Wr(i);if(l==lr||l==tt)return!i.size;if(Z(i))return!El(i).length;for(var d in i)if(rt.call(i,d))return!1;return!0}function l3(i,l){return Ia(i,l)}function u3(i,l,d){d=typeof d=="function"?d:o;var v=d?d(i,l):o;return v===o?Ia(i,l,o,d):!!v}function Gf(i){if(!cr(i))return!1;var l=_r(i);return l==We||l==st||typeof i.message=="string"&&typeof i.name=="string"&&!c0(i)}function c3(i){return typeof i=="number"&&mc(i)}function Qo(i){if(!ar(i))return!1;var l=_r(i);return l==Gt||l==qr||l==Fe||l==rn}function Bh(i){return typeof i=="number"&&i==dt(i)}function l1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ot}function ar(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function cr(i){return i!=null&&typeof i=="object"}var Fh=nc?Qr(nc):Ac;function f3(i,l){return i===l||Vo(i,l,Ya(l))}function d3(i,l,d){return d=typeof d=="function"?d:o,Vo(i,l,Ya(l),d)}function h3(i){return Wh(i)&&i!=+i}function p3(i){if(R(i))throw new Je(p);return Da(i)}function g3(i){return i===null}function v3(i){return i==null}function Wh(i){return typeof i=="number"||cr(i)&&_r(i)==Xe}function c0(i){if(!cr(i)||_r(i)!=kt)return!1;var l=La(i);if(l===null)return!0;var d=rt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&li.call(d)==mf}var qf=ic?Qr(ic):Ms;function b3(i){return Bh(i)&&i>=-ot&&i<=ot}var Uh=Lu?Qr(Lu):ks;function u1(i){return typeof i=="string"||!ct(i)&&cr(i)&&_r(i)==B}function jn(i){return typeof i=="symbol"||cr(i)&&_r(i)==oe}var ql=_u?Qr(_u):Ec;function m3(i){return i===o}function y3(i){return cr(i)&&Wr(i)==Qe}function C3(i){return cr(i)&&_r(i)==dr}var w3=Dt(ho),x3=Dt(function(i,l){return i<=l});function Yh(i){if(!i)return[];if(Tn(i))return u1(i)?zn(i):zr(i);if(to&&i[to])return uc(i[to]());var l=Wr(i),d=l==lr?pl:l==tt?gl:jl;return d(i)}function Jo(i){if(!i)return i===0?i:0;if(i=gi(i),i===ve||i===-ve){var l=i<0?-1:1;return l*At}return i===i?i:0}function dt(i){var l=Jo(i),d=l%1;return l===l?d?l-d:l:0}function Zh(i){return i?Yo(dt(i),0,Bt):0}function gi(i){if(typeof i=="number")return i;if(jn(i))return sr;if(ar(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=ar(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=ps(i);var d=Fn.test(i);return d||gn.test(i)?cf(i.slice(2),d?2:8):va.test(i)?sr:+i}function Vh(i){return ln(i,Pn(i))}function L3(i){return i?Yo(dt(i),-ot,ot):i===0?i:0}function Nt(i){return i==null?"":Fr(i)}var _3=Ha(function(i,l){if(Z(l)||Tn(l)){ln(l,Gr(l),i);return}for(var d in l)rt.call(l,d)&&_s(i,d,l[d])}),Gh=Ha(function(i,l){ln(l,Pn(l),i)}),c1=Ha(function(i,l,d,v){ln(l,Pn(l),i,v)}),z3=Ha(function(i,l,d,v){ln(l,Gr(l),i,v)}),S3=Pi(Yu);function M3(i,l){var d=ci(i);return l==null?d:Uu(d,l)}var k3=ft(function(i,l){i=wt(i);var d=-1,v=l.length,x=v>2?l[2]:o;for(x&&y(l[0],l[1],x)&&(v=1);++d<v;)for(var _=l[d],A=Pn(_),D=-1,H=A.length;++D<H;){var te=A[D],re=i[te];(re===o||Ei(re,Ji[te])&&!rt.call(i,te))&&(i[te]=_[te])}return i}),O3=ft(function(i){return i.push(o,a0),bn(qh,o,i)});function T3(i,l){return Ca(i,Be(l,3),Cn)}function P3(i,l){return Ca(i,Be(l,3),Ol)}function A3(i,l){return i==null?i:kl(i,Be(l,3),Pn)}function E3(i,l){return i==null?i:Lr(i,Be(l,3),Pn)}function I3(i,l){return i&&Cn(i,Be(l,3))}function D3(i,l){return i&&Ol(i,Be(l,3))}function R3(i){return i==null?[]:Ss(i,Gr(i))}function N3(i){return i==null?[]:Ss(i,Pn(i))}function jf(i,l,d){var v=i==null?o:co(i,l);return v===o?d:v}function $3(i,l){return i!=null&&t(i,l,Oc)}function Kf(i,l){return i!=null&&t(i,l,Tc)}var H3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),i[l]=d},Qf(An)),B3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),rt.call(i,l)?i[l].push(d):i[l]=[d]},Be),F3=ft(Pa);function Gr(i){return Tn(i)?Fu(i):El(i)}function Pn(i){return Tn(i)?Fu(i,!0):fo(i)}function W3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,_){di(d,l(v,x,_),v)}),d}function U3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,_){di(d,x,l(v,x,_))}),d}var Y3=Ha(function(i,l,d){Il(i,l,d)}),qh=Ha(function(i,l,d,v){Il(i,l,d,v)}),Z3=Pi(function(i,l){var d={};if(i==null)return d;var v=!1;l=Et(l,function(_){return _=qn(_,i),v||(v=_.length>1),_}),ln(i,Yl(i),d),v&&(d=en(d,U|q|X,Jc));for(var x=l.length;x--;)Ps(d,l[x]);return d});function V3(i,l){return jh(i,s1(Be(l)))}var G3=Pi(function(i,l){return i==null?{}:Nc(i,l)});function jh(i,l){if(i==null)return{};var d=Et(Yl(i),function(v){return[v]});return l=Be(l),$c(i,d,function(v,x){return l(v,x[0])})}function q3(i,l,d){l=qn(l,i);var v=-1,x=l.length;for(x||(x=1,i=o);++v<x;){var _=i==null?o:i[It(l[v])];_===o&&(v=x,_=d),i=Qo(_)?_.call(i):_}return i}function j3(i,l,d){return i==null?i:ki(i,l,d)}function K3(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:ki(i,l,d,v)}var Kh=kn(Gr),Xh=kn(Pn);function X3(i,l,d){var v=ct(i),x=v||Ga(i)||ql(i);if(l=Be(l,4),d==null){var _=i&&i.constructor;x?d=v?new _:[]:ar(i)?d=Qo(_)?ci(La(i)):{}:d={}}return(x?_n:Cn)(i,function(A,D,H){return l(d,A,D,H)}),d}function Q3(i,l){return i==null?!0:Ps(i,l)}function J3(i,l,d){return i==null?i:Nl(i,l,$l(d))}function e7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:Nl(i,l,$l(d),v)}function jl(i){return i==null?[]:dl(i,Gr(i))}function t7(i){return i==null?[]:dl(i,Pn(i))}function r7(i,l,d){return d===o&&(d=l,l=o),d!==o&&(d=gi(d),d=d===d?d:0),l!==o&&(l=gi(l),l=l===l?l:0),Yo(gi(i),l,d)}function n7(i,l,d){return l=Jo(l),d===o?(d=l,l=0):d=Jo(d),i=gi(i),Ta(i,l,d)}function i7(i,l,d){if(d&&typeof d!="boolean"&&y(i,l,d)&&(l=d=o),d===o&&(typeof l=="boolean"?(d=l,l=o):typeof i=="boolean"&&(d=i,i=o)),i===o&&l===o?(i=0,l=1):(i=Jo(i),l===o?(l=i,i=0):l=Jo(l)),i>l){var v=i;i=l,l=v}if(d||i%1||l%1){var x=io();return Pr(i+x*(l-i+uf("1e-"+((x+"").length-1))),l)}return Dl(i,l)}var o7=Ba(function(i,l,d){return l=l.toLowerCase(),i+(d?Qh(l):l)});function Qh(i){return Xf(Nt(i).toLowerCase())}function Jh(i){return i=Nt(i),i&&i.replace(as,sc).replace(K0,"")}function a7(i,l,d){i=Nt(i),l=Fr(l);var v=i.length;d=d===o?v:Yo(dt(d),0,v);var x=d;return d-=l.length,d>=0&&i.slice(d,x)==l}function s7(i){return i=Nt(i),i&&hn.test(i)?i.replace(xr,bf):i}function l7(i){return i=Nt(i),i&&ni.test(i)?i.replace(Oo,"\\$&"):i}var u7=Ba(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),c7=Ba(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),f7=jc("toLowerCase");function d7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;if(!l||v>=l)return i;var x=(l-v)/2;return Wl(Sa(x),d)+i+Wl(za(x),d)}function h7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?i+Wl(l-v,d):i}function p7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?Wl(l-v,d)+i:i}function g7(i,l,d){return d||l==null?l=0:l&&(l=+l),ys(Nt(i).replace(To,""),l||0)}function v7(i,l,d){return(d?y(i,l,d):l===o)?l=1:l=dt(l),Ku(Nt(i),l)}function b7(){var i=arguments,l=Nt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var m7=Ba(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function y7(i,l,d){return d&&typeof d!="number"&&y(i,l,d)&&(l=d=o),d=d===o?Bt:d>>>0,d?(i=Nt(i),i&&(typeof l=="string"||l!=null&&!qf(l))&&(l=Fr(l),!l&&Zn(i))?go(zn(i),0,d):i.split(l,d)):[]}var C7=Ba(function(i,l,d){return i+(d?" ":"")+Xf(l)});function w7(i,l,d){return i=Nt(i),d=d==null?0:Yo(dt(d),0,i.length),l=Fr(l),i.slice(d,d+l.length)==l}function x7(i,l,d){var v=L.templateSettings;d&&y(i,l,d)&&(l=o),i=Nt(i),l=c1({},l,v,Ul);var x=c1({},l.imports,v.imports,Ul),_=Gr(x),A=dl(x,_),D,H,te=0,re=l.interpolate||Wt,se="__p += '",Le=Qi((l.escape||Wt).source+"|"+re.source+"|"+(re===rs?Li:Wt).source+"|"+(l.evaluate||Wt).source+"|$","g"),Ne="//# sourceURL="+(rt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xu+"]")+`
2285
- `;i.replace(Le,function(Ke,Ct,xt,Kn,xn,Xn){return xt||(xt=Kn),se+=i.slice(te,Xn).replace(ke,lc),Ct&&(D=!0,se+=`' +
2366
+ `)}function g(i){return ct(i)||$s(i)||!!(Ho&&i&&i[Ho])}function m(i,l){var d=typeof i;return l=l==null?ot:l,!!l&&(d=="number"||d!="symbol"&&os.test(i))&&i>-1&&i%1==0&&i<l}function y(i,l,d){if(!ar(d))return!1;var v=typeof l;return(v=="number"?Tn(d)&&m(l,d.length):v=="string"&&l in d)?Ii(d[l],i):!1}function C(i,l){if(ct(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||jn(i)?!0:Kr.test(i)||!ns.test(i)||l!=null&&i in wt(l)}function _(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function k(i){var l=Ns(i),d=z[l];if(typeof d!="function"||!(l in bt.prototype))return!1;if(i===d)return!0;var v=_t(d);return!!v&&i===v[0]}function N(i){return!!ki&&ki in i}var R=si?Qo:od;function Z(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||eo;return i===d}function J(i){return i===i&&!ar(i)}function le(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==o||i in wt(d))}}function fe(i){var l=l1(i,function(v){return d.size===O&&d.clear(),v}),d=l.cache;return l}function we(i,l){var d=i[1],v=l[1],x=d|v,L=x<(ye|Ae|Ye),A=v==Ye&&d==pe||v==Ye&&d==et&&i[7].length<=l[8]||v==(Ye|et)&&l[7].length<=l[8]&&d==pe;if(!(L||A))return i;v&ye&&(i[2]=l[2],x|=d&ye?0:Ie);var D=l[3];if(D){var H=i[3];i[3]=H?Vc(H,D,l[4]):D,i[4]=H?Xi(i[3],I):l[4]}return D=l[5],D&&(H=i[5],i[5]=H?Fl(H,D,l[6]):D,i[6]=H?Xi(i[5],I):l[6]),D=l[7],D&&(i[7]=D),v&Ye&&(i[8]=i[8]==null?l[8]:Pr(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=x,i}function de(i){var l=[];if(i!=null)for(var d in wt(i))l.push(d);return l}function ze(i){return No.call(i)}function Re(i,l,d){return l=jt(l===o?i.length-1:l,0),function(){for(var v=arguments,x=-1,L=jt(v.length-l,0),A=Y(L);++x<L;)A[x]=v[l+x];x=-1;for(var D=Y(l+1);++x<l;)D[x]=v[x];return D[l]=d(A),bn(i,this,D)}}function Pe(i,l){return l.length<2?i:fo(i,kn(l,0,-1))}function lt(i,l){for(var d=i.length,v=Pr(l.length,d),x=_r(i);v--;){var L=l[v];i[v]=m(L,d)?x[L]:o}return i}function Ot(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var ur=rr(Os),Rt=zf||function(i,l){return Gt.setTimeout(i,l)},Ur=rr(Ts);function Yr(i,l,d){var v=l+"";return Ur(i,h(v,Xt(e(v),d)))}function rr(i){var l=0,d=0;return function(){var v=Fo(),x=W-(v-d);if(d=v,x>0){if(++l>=it)return arguments[0]}else l=0;return i.apply(o,arguments)}}function Sr(i,l){var d=-1,v=i.length,x=v-1;for(l=l===o?v:l;++d<l;){var L=Rl(d,x),A=i[L];i[L]=i[d],i[d]=A}return i.length=l,i}var gr=fe(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Js,function(d,v,x,L){l.push(x?L.replace(rl,"$1"):v||d)}),l});function It(i){if(typeof i=="string"||jn(i))return i;var l=i+"";return l=="0"&&1/i==-be?"-0":l}function Ht(i){if(i!=null){try{return li.call(i)}catch{}try{return i+""}catch{}}return""}function Xt(i,l){return Ln(Ft,function(d){var v="_."+d[0];l&d[1]&&!hs(i,v)&&i.push(v)}),i.sort()}function Zr(i){if(i instanceof bt)return i.clone();var l=new Jr(i.__wrapped__,i.__chain__);return l.__actions__=_r(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function Ya(i,l,d){(d?y(i,l,d):l===o)?l=1:l=jt(dt(l),0);var v=i==null?0:i.length;if(!v||l<1)return[];for(var x=0,L=0,A=Y(La(v/l));x<v;)A[L++]=kn(i,x,x+=l);return A}function bo(i){for(var l=-1,d=i==null?0:i.length,v=0,x=[];++l<d;){var L=i[l];L&&(x[v++]=L)}return x}function Rr(){var i=arguments.length;if(!i)return[];for(var l=Y(i-1),d=arguments[0],v=i;v--;)l[v-1]=arguments[v];return ji(ct(d)?_r(d):[d],Dr(l,1))}var hi=ft(function(i,l){return br(i)?Ma(i,Dr(l,1,br,!0)):[]}),vr=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Ma(i,Dr(l,1,br,!0),Be(d,2)):[]}),c0=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Ma(i,Dr(l,1,br,!0),o,d):[]});function Ei(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),kn(i,l<0?0:l,v)):[]}function Ko(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,kn(i,0,l<0?0:l)):[]}function Xo(i,l){return i&&i.length?Ra(i,Be(l,3),!0,!0):[]}function Vr(i,l){return i&&i.length?Ra(i,Be(l,3),!0):[]}function Za(i,l,d,v){var x=i==null?0:i.length;return x?(d&&typeof d!="number"&&y(i,l,d)&&(d=0,v=x),Vu(i,l,d,v)):[]}function ql(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),fl(i,Be(l,3),x)}function Mh(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v-1;return d!==o&&(x=dt(d),x=d<0?jt(v+x,0):Pr(x,v-1)),fl(i,Be(l,3),x,!0)}function Oh(i){var l=i==null?0:i.length;return l?Dr(i,1):[]}function z5(i){var l=i==null?0:i.length;return l?Dr(i,be):[]}function L5(i,l){var d=i==null?0:i.length;return d?(l=l===o?1:dt(l),Dr(i,l)):[]}function _5(i){for(var l=-1,d=i==null?0:i.length,v={};++l<d;){var x=i[l];v[x[0]]=x[1]}return v}function Th(i){return i&&i.length?i[0]:o}function S5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),Io(i,l,x)}function k5(i){var l=i==null?0:i.length;return l?kn(i,0,-1):[]}var M5=ft(function(i){var l=Et(i,t0);return l.length&&l[0]===i[0]?Al(l):[]}),O5=ft(function(i){var l=pi(i),d=Et(i,t0);return l===pi(d)?l=o:d.pop(),d.length&&d[0]===i[0]?Al(d,Be(l,2)):[]}),T5=ft(function(i){var l=pi(i),d=Et(i,t0);return l=typeof l=="function"?l:o,l&&d.pop(),d.length&&d[0]===i[0]?Al(d,o,l):[]});function P5(i,l){return i==null?"":wl.call(i,l)}function pi(i){var l=i==null?0:i.length;return l?i[l-1]:o}function A5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v;return d!==o&&(x=dt(d),x=x<0?jt(v+x,0):Pr(x,v-1)),l===l?gs(i,l,x):fl(i,dl,x,!0)}function E5(i,l){return i&&i.length?$c(i,dt(l)):o}var I5=ft(Ph);function Ph(i,l){return i&&i.length&&l&&l.length?ju(i,l):i}function D5(i,l,d){return i&&i.length&&l&&l.length?ju(i,l,Be(d,2)):i}function R5(i,l,d){return i&&i.length&&l&&l.length?ju(i,l,o,d):i}var N5=Ai(function(i,l){var d=i==null?0:i.length,v=Zu(i,l);return Ku(i,Et(l,function(x){return m(x,d)?+x:x}).sort(i0)),v});function $5(i,l){var d=[];if(!(i&&i.length))return d;var v=-1,x=[],L=i.length;for(l=Be(l,3);++v<L;){var A=i[v];l(A,v,i)&&(d.push(A),x.push(v))}return Ku(i,x),d}function Zf(i){return i==null?i:Cs.call(i)}function H5(i,l,d){var v=i==null?0:i.length;return v?(d&&typeof d!="number"&&y(i,l,d)?(l=0,d=v):(l=l==null?0:dt(l),d=d===o?v:dt(d)),kn(i,l,d)):[]}function B5(i,l){return Pi(i,l)}function F5(i,l,d){return Nl(i,l,Be(d,2))}function W5(i,l){var d=i==null?0:i.length;if(d){var v=Pi(i,l);if(v<d&&Ii(i[v],l))return v}return-1}function U5(i,l){return Pi(i,l,!0)}function Y5(i,l,d){return Nl(i,l,Be(d,2),!0)}function Z5(i,l){var d=i==null?0:i.length;if(d){var v=Pi(i,l,!0)-1;if(Ii(i[v],l))return v}return-1}function V5(i){return i&&i.length?Qu(i):[]}function G5(i,l){return i&&i.length?Qu(i,Be(l,2)):[]}function q5(i){var l=i==null?0:i.length;return l?kn(i,1,l):[]}function j5(i,l,d){return i&&i.length?(l=d||l===o?1:dt(l),kn(i,0,l<0?0:l)):[]}function K5(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,kn(i,l<0?0:l,v)):[]}function X5(i,l){return i&&i.length?Ra(i,Be(l,3),!1,!0):[]}function Q5(i,l){return i&&i.length?Ra(i,Be(l,3)):[]}var J5=ft(function(i){return wn(Dr(i,1,br,!0))}),e6=ft(function(i){var l=pi(i);return br(l)&&(l=o),wn(Dr(i,1,br,!0),Be(l,2))}),t6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,wn(Dr(i,1,br,!0),o,l)});function r6(i){return i&&i.length?wn(i):[]}function n6(i,l){return i&&i.length?wn(i,Be(l,2)):[]}function i6(i,l){return l=typeof l=="function"?l:o,i&&i.length?wn(i,o,l):[]}function Vf(i){if(!(i&&i.length))return[];var l=0;return i=qi(i,function(d){if(br(d))return l=jt(d.length,l),!0}),Do(l,function(d){return Et(i,Ou(d))})}function Ah(i,l){if(!(i&&i.length))return[];var d=Vf(i);return l==null?d:Et(d,function(v){return bn(l,o,v)})}var o6=ft(function(i,l){return br(i)?Ma(i,l):[]}),a6=ft(function(i){return Go(qi(i,br))}),s6=ft(function(i){var l=pi(i);return br(l)&&(l=o),Go(qi(i,br),Be(l,2))}),l6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,Go(qi(i,br),o,l)}),u6=ft(Vf);function c6(i,l){return e0(i||[],l||[],Ls)}function f6(i,l){return e0(i||[],l||[],Oi)}var d6=ft(function(i){var l=i.length,d=l>1?i[l-1]:o;return d=typeof d=="function"?(i.pop(),d):o,Ah(i,d)});function Eh(i){var l=z(i);return l.__chain__=!0,l}function h6(i,l){return l(i),i}function o1(i,l){return l(i)}var p6=Ai(function(i){var l=i.length,d=l?i[0]:0,v=this.__wrapped__,x=function(L){return Zu(L,i)};return l>1||this.__actions__.length||!(v instanceof bt)||!m(d)?this.thru(x):(v=v.slice(d,+d+(l?1:0)),v.__actions__.push({func:o1,args:[x],thisArg:o}),new Jr(v,this.__chain__).thru(function(L){return l&&!L.length&&L.push(o),L}))});function g6(){return Eh(this)}function v6(){return new Jr(this.value(),this.__chain__)}function b6(){this.__values__===o&&(this.__values__=Gh(this.value()));var i=this.__index__>=this.__values__.length,l=i?o:this.__values__[this.__index__++];return{done:i,value:l}}function m6(){return this}function y6(i){for(var l,d=this;d instanceof zl;){var v=Zr(d);v.__index__=0,v.__values__=o,l?x.__wrapped__=v:l=v;var x=v;d=d.__wrapped__}return x.__wrapped__=i,l}function C6(){var i=this.__wrapped__;if(i instanceof bt){var l=i;return this.__actions__.length&&(l=new bt(this)),l=l.reverse(),l.__actions__.push({func:o1,args:[Zf],thisArg:o}),new Jr(l,this.__chain__)}return this.thru(Zf)}function w6(){return Wc(this.__wrapped__,this.__actions__)}var x6=Wl(function(i,l,d){rt.call(i,d)?++i[d]:di(i,d,1)});function z6(i,l,d){var v=ct(i)?Su:Ml;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}function L6(i,l){var d=ct(i)?qi:Gu;return d(i,Be(l,3))}var _6=a0(ql),S6=a0(Mh);function k6(i,l){return Dr(a1(i,l),1)}function M6(i,l){return Dr(a1(i,l),be)}function O6(i,l,d){return d=d===o?1:dt(d),Dr(a1(i,l),d)}function Ih(i,l){var d=ct(i)?Ln:yn;return d(i,Be(l,3))}function Dh(i,l){var d=ct(i)?pf:kl;return d(i,Be(l,3))}var T6=Wl(function(i,l,d){rt.call(i,d)?i[d].push(l):di(i,d,[l])});function P6(i,l,d,v){i=Tn(i)?i:Kl(i),d=d&&!v?dt(d):0;var x=i.length;return d<0&&(d=jt(x+d,0)),f1(i)?d<=x&&i.indexOf(l,d)>-1:!!x&&Io(i,l,d)>-1}var A6=ft(function(i,l,d){var v=-1,x=typeof l=="function",L=Tn(i)?Y(i.length):[];return yn(i,function(A){L[++v]=x?bn(l,A,d):Ta(A,l,d)}),L}),E6=Wl(function(i,l,d){di(i,d,l)});function a1(i,l){var d=ct(i)?Et:Da;return d(i,Be(l,3))}function I6(i,l,d,v){return i==null?[]:(ct(l)||(l=l==null?[]:[l]),d=v?o:d,ct(d)||(d=d==null?[]:[d]),Br(i,l,d))}var D6=Wl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function R6(i,l,d){var v=ct(i)?ku:Pu,x=arguments.length<3;return v(i,Be(l,4),d,x,yn)}function N6(i,l,d){var v=ct(i)?gf:Pu,x=arguments.length<3;return v(i,Be(l,4),d,x,kl)}function $6(i,l){var d=ct(i)?qi:Gu;return d(i,u1(Be(l,3)))}function H6(i){var l=ct(i)?_l:Hf;return l(i)}function B6(i,l,d){(d?y(i,l,d):l===o)?l=1:l=dt(l);var v=ct(i)?co:go;return v(i,l)}function F6(i){var l=ct(i)?kc:Ti;return l(i)}function W6(i){if(i==null)return 0;if(Tn(i))return f1(i)?Ro(i):i.length;var l=Wr(i);return l==lr||l==tt?i.size:Il(i).length}function U6(i,l,d){var v=ct(i)?Eo:Bf;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}var Y6=ft(function(i,l){if(i==null)return[];var d=l.length;return d>1&&y(i,l[0],l[1])?l=[]:d>2&&y(l[0],l[1],l[2])&&(l=[l[0]]),Br(i,Dr(l,1),[])}),s1=xf||function(){return Gt.Date.now()};function Z6(i,l){if(typeof l!="function")throw new sn(b);return i=dt(i),function(){if(--i<1)return l.apply(this,arguments)}}function Rh(i,l,d){return l=d?o:l,l=i&&l==null?i.length:l,On(i,Ye,o,o,o,o,l)}function Nh(i,l){var d;if(typeof l!="function")throw new sn(b);return i=dt(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=o),d}}var Gf=ft(function(i,l,d){var v=ye;if(d.length){var x=Xi(d,Wa(Gf));v|=Te}return On(i,v,l,d,x)}),$h=ft(function(i,l,d){var v=ye|Ae;if(d.length){var x=Xi(d,Wa($h));v|=Te}return On(l,v,i,d,x)});function Hh(i,l,d){l=d?o:l;var v=On(i,pe,o,o,o,o,o,l);return v.placeholder=Hh.placeholder,v}function Bh(i,l,d){l=d?o:l;var v=On(i,he,o,o,o,o,o,l);return v.placeholder=Bh.placeholder,v}function Fh(i,l,d){var v,x,L,A,D,H,te=0,re=!1,se=!1,Le=!0;if(typeof i!="function")throw new sn(b);l=gi(l)||0,ar(d)&&(re=!!d.leading,se="maxWait"in d,L=se?jt(gi(d.maxWait)||0,l):L,Le="trailing"in d?!!d.trailing:Le);function Ne(mr){var Di=v,ea=x;return v=x=o,te=mr,A=i.apply(ea,Di),A}function je(mr){return te=mr,D=Rt(Ct,l),re?Ne(mr):A}function gt(mr){var Di=mr-H,ea=mr-te,ap=l-Di;return se?Pr(ap,L-ea):ap}function Ke(mr){var Di=mr-H,ea=mr-te;return H===o||Di>=l||Di<0||se&&ea>=L}function Ct(){var mr=s1();if(Ke(mr))return xt(mr);D=Rt(Ct,gt(mr))}function xt(mr){return D=o,Le&&v?Ne(mr):(v=x=o,A)}function Kn(){D!==o&&Na(D),te=0,v=H=x=D=o}function xn(){return D===o?A:xt(s1())}function Xn(){var mr=s1(),Di=Ke(mr);if(v=arguments,x=this,H=mr,Di){if(D===o)return je(H);if(se)return Na(D),D=Rt(Ct,l),Ne(H)}return D===o&&(D=Rt(Ct,l)),A}return Xn.cancel=Kn,Xn.flush=xn,Xn}var V6=ft(function(i,l){return Tc(i,1,l)}),G6=ft(function(i,l,d){return Tc(i,gi(l)||0,d)});function q6(i){return On(i,nt)}function l1(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new sn(b);var d=function(){var v=arguments,x=l?l.apply(this,v):v[0],L=d.cache;if(L.has(x))return L.get(x);var A=i.apply(this,v);return d.cache=L.set(x,A)||L,A};return d.cache=new(l1.Cache||or),d}l1.Cache=or;function u1(i){if(typeof i!="function")throw new sn(b);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function j6(i){return Nh(2,i)}var K6=Ff(function(i,l){l=l.length==1&&ct(l[0])?Et(l[0],Qr(Be())):Et(Dr(l,1),Qr(Be()));var d=l.length;return ft(function(v){for(var x=-1,L=Pr(v.length,d);++x<L;)v[x]=l[x].call(this,v[x]);return bn(i,this,v)})}),qf=ft(function(i,l){var d=Xi(l,Wa(qf));return On(i,Te,o,l,d)}),Wh=ft(function(i,l){var d=Xi(l,Wa(Wh));return On(i,He,o,l,d)}),X6=Ai(function(i,l){return On(i,et,o,o,o,l)});function Q6(i,l){if(typeof i!="function")throw new sn(b);return l=l===o?l:dt(l),ft(i,l)}function J6(i,l){if(typeof i!="function")throw new sn(b);return l=l==null?0:jt(dt(l),0),ft(function(d){var v=d[l],x=vo(d,0,l);return v&&ji(x,v),bn(i,this,x)})}function e3(i,l,d){var v=!0,x=!0;if(typeof i!="function")throw new sn(b);return ar(d)&&(v="leading"in d?!!d.leading:v,x="trailing"in d?!!d.trailing:x),Fh(i,l,{leading:v,maxWait:l,trailing:x})}function t3(i){return Rh(i,1)}function r3(i,l){return qf(Hl(l),i)}function n3(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function i3(i){return en(i,X)}function o3(i,l){return l=typeof l=="function"?l:o,en(i,X,l)}function a3(i){return en(i,U|X)}function s3(i,l){return l=typeof l=="function"?l:o,en(i,U|X,l)}function l3(i,l){return l==null||Oc(i,l,Gr(l))}function Ii(i,l){return i===l||i!==i&&l!==l}var u3=Dt(Pl),c3=Dt(function(i,l){return i>=l}),$s=Pa(function(){return arguments}())?Pa:function(i){return cr(i)&&rt.call(i,"callee")&&!Cl.call(i,"callee")},ct=Y.isArray,f3=nc?Qr(nc):Rf;function Tn(i){return i!=null&&c1(i.length)&&!Qo(i)}function br(i){return cr(i)&&Tn(i)}function d3(i){return i===!0||i===!1||cr(i)&&Lr(i)==Ze}var Va=ms||od,h3=ic?Qr(ic):Aa;function p3(i){return cr(i)&&i.nodeType===1&&!f0(i)}function g3(i){if(i==null)return!0;if(Tn(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Va(i)||jl(i)||$s(i)))return!i.length;var l=Wr(i);if(l==lr||l==tt)return!i.size;if(Z(i))return!Il(i).length;for(var d in i)if(rt.call(i,d))return!1;return!0}function v3(i,l){return Ea(i,l)}function b3(i,l,d){d=typeof d=="function"?d:o;var v=d?d(i,l):o;return v===o?Ea(i,l,o,d):!!v}function jf(i){if(!cr(i))return!1;var l=Lr(i);return l==We||l==st||typeof i.message=="string"&&typeof i.name=="string"&&!f0(i)}function m3(i){return typeof i=="number"&&Cc(i)}function Qo(i){if(!ar(i))return!1;var l=Lr(i);return l==Vt||l==qr||l==Fe||l==rn}function Uh(i){return typeof i=="number"&&i==dt(i)}function c1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ot}function ar(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function cr(i){return i!=null&&typeof i=="object"}var Yh=oc?Qr(oc):Ic;function y3(i,l){return i===l||Vo(i,l,Ua(l))}function C3(i,l,d){return d=typeof d=="function"?d:o,Vo(i,l,Ua(l),d)}function w3(i){return Zh(i)&&i!=+i}function x3(i){if(R(i))throw new Je(p);return Ia(i)}function z3(i){return i===null}function L3(i){return i==null}function Zh(i){return typeof i=="number"||cr(i)&&Lr(i)==Xe}function f0(i){if(!cr(i)||Lr(i)!=Mt)return!1;var l=xa(i);if(l===null)return!0;var d=rt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&li.call(d)==Cf}var Kf=ac?Qr(ac):ks;function _3(i){return Uh(i)&&i>=-ot&&i<=ot}var Vh=Lu?Qr(Lu):Ms;function f1(i){return typeof i=="string"||!ct(i)&&cr(i)&&Lr(i)==B}function jn(i){return typeof i=="symbol"||cr(i)&&Lr(i)==oe}var jl=_u?Qr(_u):Dc;function S3(i){return i===o}function k3(i){return cr(i)&&Wr(i)==Qe}function M3(i){return cr(i)&&Lr(i)==dr}var O3=Dt(po),T3=Dt(function(i,l){return i<=l});function Gh(i){if(!i)return[];if(Tn(i))return f1(i)?_n(i):_r(i);if(ro&&i[ro])return fc(i[ro]());var l=Wr(i),d=l==lr?gl:l==tt?vl:Kl;return d(i)}function Jo(i){if(!i)return i===0?i:0;if(i=gi(i),i===be||i===-be){var l=i<0?-1:1;return l*At}return i===i?i:0}function dt(i){var l=Jo(i),d=l%1;return l===l?d?l-d:l:0}function qh(i){return i?Yo(dt(i),0,Bt):0}function gi(i){if(typeof i=="number")return i;if(jn(i))return sr;if(ar(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=ar(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=ps(i);var d=Fn.test(i);return d||gn.test(i)?df(i.slice(2),d?2:8):ga.test(i)?sr:+i}function jh(i){return ln(i,Pn(i))}function P3(i){return i?Yo(dt(i),-ot,ot):i===0?i:0}function Nt(i){return i==null?"":Fr(i)}var A3=$a(function(i,l){if(Z(l)||Tn(l)){ln(l,Gr(l),i);return}for(var d in l)rt.call(l,d)&&Ls(i,d,l[d])}),Kh=$a(function(i,l){ln(l,Pn(l),i)}),d1=$a(function(i,l,d,v){ln(l,Pn(l),i,v)}),E3=$a(function(i,l,d,v){ln(l,Gr(l),i,v)}),I3=Ai(Zu);function D3(i,l){var d=ci(i);return l==null?d:Yu(d,l)}var R3=ft(function(i,l){i=wt(i);var d=-1,v=l.length,x=v>2?l[2]:o;for(x&&y(l[0],l[1],x)&&(v=1);++d<v;)for(var L=l[d],A=Pn(L),D=-1,H=A.length;++D<H;){var te=A[D],re=i[te];(re===o||Ii(re,eo[te])&&!rt.call(i,te))&&(i[te]=L[te])}return i}),N3=ft(function(i){return i.push(o,s0),bn(Xh,o,i)});function $3(i,l){return ya(i,Be(l,3),Cn)}function H3(i,l){return ya(i,Be(l,3),Tl)}function B3(i,l){return i==null?i:Ol(i,Be(l,3),Pn)}function F3(i,l){return i==null?i:zr(i,Be(l,3),Pn)}function W3(i,l){return i&&Cn(i,Be(l,3))}function U3(i,l){return i&&Tl(i,Be(l,3))}function Y3(i){return i==null?[]:Ss(i,Gr(i))}function Z3(i){return i==null?[]:Ss(i,Pn(i))}function Xf(i,l,d){var v=i==null?o:fo(i,l);return v===o?d:v}function V3(i,l){return i!=null&&t(i,l,Pc)}function Qf(i,l){return i!=null&&t(i,l,Ac)}var G3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),i[l]=d},ed(An)),q3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),rt.call(i,l)?i[l].push(d):i[l]=[d]},Be),j3=ft(Ta);function Gr(i){return Tn(i)?Wu(i):Il(i)}function Pn(i){return Tn(i)?Wu(i,!0):ho(i)}function K3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,L){di(d,l(v,x,L),v)}),d}function X3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,L){di(d,x,l(v,x,L))}),d}var Q3=$a(function(i,l,d){Dl(i,l,d)}),Xh=$a(function(i,l,d,v){Dl(i,l,d,v)}),J3=Ai(function(i,l){var d={};if(i==null)return d;var v=!1;l=Et(l,function(L){return L=qn(L,i),v||(v=L.length>1),L}),ln(i,Zl(i),d),v&&(d=en(d,U|q|X,t1));for(var x=l.length;x--;)Ps(d,l[x]);return d});function e7(i,l){return Qh(i,u1(Be(l)))}var t7=Ai(function(i,l){return i==null?{}:Hc(i,l)});function Qh(i,l){if(i==null)return{};var d=Et(Zl(i),function(v){return[v]});return l=Be(l),Bc(i,d,function(v,x){return l(v,x[0])})}function r7(i,l,d){l=qn(l,i);var v=-1,x=l.length;for(x||(x=1,i=o);++v<x;){var L=i==null?o:i[It(l[v])];L===o&&(v=x,L=d),i=Qo(L)?L.call(i):L}return i}function n7(i,l,d){return i==null?i:Oi(i,l,d)}function i7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:Oi(i,l,d,v)}var Jh=Mn(Gr),ep=Mn(Pn);function o7(i,l,d){var v=ct(i),x=v||Va(i)||jl(i);if(l=Be(l,4),d==null){var L=i&&i.constructor;x?d=v?new L:[]:ar(i)?d=Qo(L)?ci(xa(i)):{}:d={}}return(x?Ln:Cn)(i,function(A,D,H){return l(d,A,D,H)}),d}function a7(i,l){return i==null?!0:Ps(i,l)}function s7(i,l,d){return i==null?i:$l(i,l,Hl(d))}function l7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:$l(i,l,Hl(d),v)}function Kl(i){return i==null?[]:hl(i,Gr(i))}function u7(i){return i==null?[]:hl(i,Pn(i))}function c7(i,l,d){return d===o&&(d=l,l=o),d!==o&&(d=gi(d),d=d===d?d:0),l!==o&&(l=gi(l),l=l===l?l:0),Yo(gi(i),l,d)}function f7(i,l,d){return l=Jo(l),d===o?(d=l,l=0):d=Jo(d),i=gi(i),Oa(i,l,d)}function d7(i,l,d){if(d&&typeof d!="boolean"&&y(i,l,d)&&(l=d=o),d===o&&(typeof l=="boolean"?(d=l,l=o):typeof i=="boolean"&&(d=i,i=o)),i===o&&l===o?(i=0,l=1):(i=Jo(i),l===o?(l=i,i=0):l=Jo(l)),i>l){var v=i;i=l,l=v}if(d||i%1||l%1){var x=oo();return Pr(i+x*(l-i+ff("1e-"+((x+"").length-1))),l)}return Rl(i,l)}var h7=Ha(function(i,l,d){return l=l.toLowerCase(),i+(d?tp(l):l)});function tp(i){return Jf(Nt(i).toLowerCase())}function rp(i){return i=Nt(i),i&&i.replace(as,uc).replace(Q0,"")}function p7(i,l,d){i=Nt(i),l=Fr(l);var v=i.length;d=d===o?v:Yo(dt(d),0,v);var x=d;return d-=l.length,d>=0&&i.slice(d,x)==l}function g7(i){return i=Nt(i),i&&hn.test(i)?i.replace(xr,yf):i}function v7(i){return i=Nt(i),i&&ni.test(i)?i.replace(Oo,"\\$&"):i}var b7=Ha(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),m7=Ha(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),y7=Xc("toLowerCase");function C7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;if(!l||v>=l)return i;var x=(l-v)/2;return Ul(_a(x),d)+i+Ul(La(x),d)}function w7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?i+Ul(l-v,d):i}function x7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?Ul(l-v,d)+i:i}function z7(i,l,d){return d||l==null?l=0:l&&(l=+l),ys(Nt(i).replace(To,""),l||0)}function L7(i,l,d){return(d?y(i,l,d):l===o)?l=1:l=dt(l),Xu(Nt(i),l)}function _7(){var i=arguments,l=Nt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var S7=Ha(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function k7(i,l,d){return d&&typeof d!="number"&&y(i,l,d)&&(l=d=o),d=d===o?Bt:d>>>0,d?(i=Nt(i),i&&(typeof l=="string"||l!=null&&!Kf(l))&&(l=Fr(l),!l&&Zn(i))?vo(_n(i),0,d):i.split(l,d)):[]}var M7=Ha(function(i,l,d){return i+(d?" ":"")+Jf(l)});function O7(i,l,d){return i=Nt(i),d=d==null?0:Yo(dt(d),0,i.length),l=Fr(l),i.slice(d,d+l.length)==l}function T7(i,l,d){var v=z.templateSettings;d&&y(i,l,d)&&(l=o),i=Nt(i),l=d1({},l,v,Yl);var x=d1({},l.imports,v.imports,Yl),L=Gr(x),A=hl(x,L),D,H,te=0,re=l.interpolate||Wt,se="__p += '",Le=Ji((l.escape||Wt).source+"|"+re.source+"|"+(re===rs?Li:Wt).source+"|"+(l.evaluate||Wt).source+"|$","g"),Ne="//# sourceURL="+(rt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zu+"]")+`
2367
+ `;i.replace(Le,function(Ke,Ct,xt,Kn,xn,Xn){return xt||(xt=Kn),se+=i.slice(te,Xn).replace(Me,cc),Ct&&(D=!0,se+=`' +
2286
2368
  __e(`+Ct+`) +
2287
2369
  '`),xn&&(H=!0,se+=`';
2288
2370
  `+xn+`;
@@ -2292,42 +2374,42 @@ __p += '`),xt&&(se+=`' +
2292
2374
  `;var je=rt.call(l,"variable")&&l.variable;if(!je)se=`with (obj) {
2293
2375
  `+se+`
2294
2376
  }
2295
- `;else if(pn.test(je))throw new Je(k);se=(H?se.replace(ir,""):se).replace(pa,"$1").replace(wr,"$1;"),se="function("+(je||"obj")+`) {
2377
+ `;else if(pn.test(je))throw new Je(M);se=(H?se.replace(ir,""):se).replace(ha,"$1").replace(wr,"$1;"),se="function("+(je||"obj")+`) {
2296
2378
  `+(je?"":`obj || (obj = {});
2297
2379
  `)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
2298
2380
  function print() { __p += __j.call(arguments, '') }
2299
2381
  `:`;
2300
2382
  `)+se+`return __p
2301
- }`;var gt=tp(function(){return Mt(_,Ne+"return "+se).apply(o,A)});if(gt.source=se,Gf(gt))throw gt;return gt}function L7(i){return Nt(i).toLowerCase()}function _7(i){return Nt(i).toUpperCase()}function z7(i,l,d){if(i=Nt(i),i&&(d||l===o))return ps(i);if(!i||!(l=Fr(l)))return i;var v=zn(i),x=zn(l),_=ji(v,x),A=hl(v,x)+1;return go(v,_,A).join("")}function S7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.slice(0,vl(i)+1);if(!i||!(l=Fr(l)))return i;var v=zn(i),x=hl(v,zn(l))+1;return go(v,0,x).join("")}function M7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.replace(To,"");if(!i||!(l=Fr(l)))return i;var v=zn(i),x=ji(v,zn(l));return go(v,x).join("")}function k7(i,l){var d=ge,v=ye;if(ar(l)){var x="separator"in l?l.separator:x;d="length"in l?dt(l.length):d,v="omission"in l?Fr(l.omission):v}i=Nt(i);var _=i.length;if(Zn(i)){var A=zn(i);_=A.length}if(d>=_)return i;var D=d-Ro(v);if(D<1)return v;var H=A?go(A,0,D).join(""):i.slice(0,D);if(x===o)return H+v;if(A&&(D+=H.length-D),qf(x)){if(i.slice(D).search(x)){var te,re=H;for(x.global||(x=Qi(x.source,Nt(Po.exec(x))+"g")),x.lastIndex=0;te=x.exec(re);)var se=te.index;H=H.slice(0,se===o?D:se)}}else if(i.indexOf(Fr(x),D)!=D){var Le=H.lastIndexOf(x);Le>-1&&(H=H.slice(0,Le))}return H+v}function O7(i){return i=Nt(i),i&&ga.test(i)?i.replace(Bn,bl):i}var T7=Ba(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),Xf=jc("toUpperCase");function ep(i,l,d){return i=Nt(i),l=d?o:l,l===o?ai(i)?Vn(i):oc(i):i.match(l)||[]}var tp=ft(function(i,l){try{return bn(i,o,l)}catch(d){return Gf(d)?d:new Je(d)}}),P7=Pi(function(i,l){return _n(l,function(d){d=It(d),di(i,d,Zf(i[d],i))}),i});function A7(i){var l=i==null?0:i.length,d=Be();return i=l?Et(i,function(v){if(typeof v[1]!="function")throw new sn(b);return[d(v[0]),v[1]]}):[],ft(function(v){for(var x=-1;++x<l;){var _=i[x];if(bn(_[0],this,v))return bn(_[1],this,v)}})}function E7(i){return Sc(en(i,U))}function Qf(i){return function(){return i}}function I7(i,l){return i==null||i!==i?l:i}var D7=Kc(),R7=Kc(!0);function An(i){return i}function Jf(i){return Ic(typeof i=="function"?i:en(i,U))}function N7(i){return Dc(en(i,U))}function $7(i,l){return Gu(i,en(l,U))}var H7=ft(function(i,l){return function(d){return Pa(d,i,l)}}),B7=ft(function(i,l){return function(d){return Pa(i,d,l)}});function ed(i,l,d){var v=Gr(l),x=Ss(l,v);d==null&&!(ar(l)&&(x.length||!v.length))&&(d=l,l=i,i=this,x=Ss(l,Gr(l)));var _=!(ar(d)&&"chain"in d)||!!d.chain,A=Qo(i);return _n(x,function(D){var H=l[D];i[D]=H,A&&(i.prototype[D]=function(){var te=this.__chain__;if(_||te){var re=i(this.__wrapped__),se=re.__actions__=zr(this.__actions__);return se.push({func:H,args:arguments,thisArg:i}),re.__chain__=te,re}return H.apply(i,qi([this.value()],arguments))})}),i}function F7(){return qt._===this&&(qt._=vc),this}function td(){}function W7(i){return i=dt(i),ft(function(l){return Rc(l,i)})}var U7=Wa(Et),Y7=Wa(zu),Z7=Wa(Eo);function rp(i){return C(i)?ku(It(i)):Rf(i)}function V7(i){return function(l){return i==null?o:co(i,l)}}var G7=Xc(),q7=Xc(!0);function rd(){return[]}function nd(){return!1}function j7(){return{}}function K7(){return""}function X7(){return!0}function Q7(i,l){if(i=dt(i),i<1||i>ot)return[];var d=Bt,v=Pr(i,Bt);l=Be(l),i-=Bt;for(var x=Do(v,l);++d<i;)l(d);return x}function J7(i){return ct(i)?Et(i,It):jn(i)?[i]:zr(gr(Nt(i)))}function eg(i){var l=++eo;return Nt(i)+l}var tg=Es(function(i,l){return i+l},0),rg=Is("ceil"),ng=Es(function(i,l){return i/l},1),ig=Is("floor");function og(i){return i&&i.length?zs(i,An,Tl):o}function ag(i,l){return i&&i.length?zs(i,Be(l,2),Tl):o}function sg(i){return Mu(i,An)}function lg(i,l){return Mu(i,Be(l,2))}function ug(i){return i&&i.length?zs(i,An,ho):o}function cg(i,l){return i&&i.length?zs(i,Be(l,2),ho):o}var fg=Es(function(i,l){return i*l},1),dg=Is("round"),hg=Es(function(i,l){return i-l},0);function pg(i){return i&&i.length?Pu(i,An):0}function gg(i,l){return i&&i.length?Pu(i,Be(l,2)):0}return L.after=N6,L.ary=Eh,L.assign=_3,L.assignIn=Gh,L.assignInWith=c1,L.assignWith=z3,L.at=S3,L.before=Ih,L.bind=Zf,L.bindAll=P7,L.bindKey=Dh,L.castArray=j6,L.chain=Th,L.chunk=Za,L.compact=vo,L.concat=Rr,L.cond=A7,L.conforms=E7,L.constant=Qf,L.countBy=p6,L.create=M3,L.curry=Rh,L.curryRight=Nh,L.debounce=$h,L.defaults=k3,L.defaultsDeep=O3,L.defer=$6,L.delay=H6,L.difference=hi,L.differenceBy=vr,L.differenceWith=u0,L.drop=Ai,L.dropRight=Ko,L.dropRightWhile=Xo,L.dropWhile=Vr,L.fill=Va,L.filter=v6,L.flatMap=y6,L.flatMapDeep=C6,L.flatMapDepth=w6,L.flatten=Sh,L.flattenDeep=g5,L.flattenDepth=v5,L.flip=B6,L.flow=D7,L.flowRight=R7,L.fromPairs=b5,L.functions=R3,L.functionsIn=N3,L.groupBy=x6,L.initial=y5,L.intersection=C5,L.intersectionBy=w5,L.intersectionWith=x5,L.invert=H3,L.invertBy=B3,L.invokeMap=_6,L.iteratee=Jf,L.keyBy=z6,L.keys=Gr,L.keysIn=Pn,L.map=i1,L.mapKeys=W3,L.mapValues=U3,L.matches=N7,L.matchesProperty=$7,L.memoize=a1,L.merge=Y3,L.mergeWith=qh,L.method=H7,L.methodOf=B7,L.mixin=ed,L.negate=s1,L.nthArg=W7,L.omit=Z3,L.omitBy=V3,L.once=F6,L.orderBy=S6,L.over=U7,L.overArgs=W6,L.overEvery=Y7,L.overSome=Z7,L.partial=Vf,L.partialRight=Hh,L.partition=M6,L.pick=G3,L.pickBy=jh,L.property=rp,L.propertyOf=V7,L.pull=S5,L.pullAll=kh,L.pullAllBy=M5,L.pullAllWith=k5,L.pullAt=O5,L.range=G7,L.rangeRight=q7,L.rearg=U6,L.reject=T6,L.remove=T5,L.rest=Y6,L.reverse=Uf,L.sampleSize=A6,L.set=j3,L.setWith=K3,L.shuffle=E6,L.slice=P5,L.sortBy=R6,L.sortedUniq=$5,L.sortedUniqBy=H5,L.split=y7,L.spread=Z6,L.tail=B5,L.take=F5,L.takeRight=W5,L.takeRightWhile=U5,L.takeWhile=Y5,L.tap=o6,L.throttle=V6,L.thru=n1,L.toArray=Yh,L.toPairs=Kh,L.toPairsIn=Xh,L.toPath=J7,L.toPlainObject=Vh,L.transform=X3,L.unary=G6,L.union=Z5,L.unionBy=V5,L.unionWith=G5,L.uniq=q5,L.uniqBy=j5,L.uniqWith=K5,L.unset=Q3,L.unzip=Yf,L.unzipWith=Oh,L.update=J3,L.updateWith=e7,L.values=jl,L.valuesIn=t7,L.without=X5,L.words=ep,L.wrap=q6,L.xor=Q5,L.xorBy=J5,L.xorWith=e6,L.zip=t6,L.zipObject=r6,L.zipObjectDeep=n6,L.zipWith=i6,L.entries=Kh,L.entriesIn=Xh,L.extend=Gh,L.extendWith=c1,ed(L,L),L.add=tg,L.attempt=tp,L.camelCase=o7,L.capitalize=Qh,L.ceil=rg,L.clamp=r7,L.clone=K6,L.cloneDeep=Q6,L.cloneDeepWith=J6,L.cloneWith=X6,L.conformsTo=e3,L.deburr=Jh,L.defaultTo=I7,L.divide=ng,L.endsWith=a7,L.eq=Ei,L.escape=s7,L.escapeRegExp=l7,L.every=g6,L.find=b6,L.findIndex=Gl,L.findKey=T3,L.findLast=m6,L.findLastIndex=zh,L.findLastKey=P3,L.floor=ig,L.forEach=Ph,L.forEachRight=Ah,L.forIn=A3,L.forInRight=E3,L.forOwn=I3,L.forOwnRight=D3,L.get=jf,L.gt=t3,L.gte=r3,L.has=$3,L.hasIn=Kf,L.head=Mh,L.identity=An,L.includes=L6,L.indexOf=m5,L.inRange=n7,L.invoke=F3,L.isArguments=$s,L.isArray=ct,L.isArrayBuffer=n3,L.isArrayLike=Tn,L.isArrayLikeObject=br,L.isBoolean=i3,L.isBuffer=Ga,L.isDate=o3,L.isElement=a3,L.isEmpty=s3,L.isEqual=l3,L.isEqualWith=u3,L.isError=Gf,L.isFinite=c3,L.isFunction=Qo,L.isInteger=Bh,L.isLength=l1,L.isMap=Fh,L.isMatch=f3,L.isMatchWith=d3,L.isNaN=h3,L.isNative=p3,L.isNil=v3,L.isNull=g3,L.isNumber=Wh,L.isObject=ar,L.isObjectLike=cr,L.isPlainObject=c0,L.isRegExp=qf,L.isSafeInteger=b3,L.isSet=Uh,L.isString=u1,L.isSymbol=jn,L.isTypedArray=ql,L.isUndefined=m3,L.isWeakMap=y3,L.isWeakSet=C3,L.join=L5,L.kebabCase=u7,L.last=pi,L.lastIndexOf=_5,L.lowerCase=c7,L.lowerFirst=f7,L.lt=w3,L.lte=x3,L.max=og,L.maxBy=ag,L.mean=sg,L.meanBy=lg,L.min=ug,L.minBy=cg,L.stubArray=rd,L.stubFalse=nd,L.stubObject=j7,L.stubString=K7,L.stubTrue=X7,L.multiply=fg,L.nth=z5,L.noConflict=F7,L.noop=td,L.now=o1,L.pad=d7,L.padEnd=h7,L.padStart=p7,L.parseInt=g7,L.random=i7,L.reduce=k6,L.reduceRight=O6,L.repeat=v7,L.replace=b7,L.result=q3,L.round=dg,L.runInContext=$,L.sample=P6,L.size=I6,L.snakeCase=m7,L.some=D6,L.sortedIndex=A5,L.sortedIndexBy=E5,L.sortedIndexOf=I5,L.sortedLastIndex=D5,L.sortedLastIndexBy=R5,L.sortedLastIndexOf=N5,L.startCase=C7,L.startsWith=w7,L.subtract=hg,L.sum=pg,L.sumBy=gg,L.template=x7,L.times=Q7,L.toFinite=Jo,L.toInteger=dt,L.toLength=Zh,L.toLower=L7,L.toNumber=gi,L.toSafeInteger=L3,L.toString=Nt,L.toUpper=_7,L.trim=z7,L.trimEnd=S7,L.trimStart=M7,L.truncate=k7,L.unescape=O7,L.uniqueId=eg,L.upperCase=T7,L.upperFirst=Xf,L.each=Ph,L.eachRight=Ah,L.first=Mh,ed(L,function(){var i={};return Cn(L,function(l,d){rt.call(L.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),L.VERSION=c,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){L[i].placeholder=L}),_n(["drop","take"],function(i,l){bt.prototype[i]=function(d){d=d===o?1:jt(dt(d),0);var v=this.__filtered__&&!l?new bt(this):this.clone();return v.__filtered__?v.__takeCount__=Pr(d,v.__takeCount__):v.__views__.push({size:Pr(d,Bt),type:i+(v.__dir__<0?"Right":"")}),v},bt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),_n(["filter","map","takeWhile"],function(i,l){var d=l+1,v=d==E||d==ne;bt.prototype[i]=function(x){var _=this.clone();return _.__iteratees__.push({iteratee:Be(x,3),type:d}),_.__filtered__=_.__filtered__||v,_}}),_n(["head","last"],function(i,l){var d="take"+(l?"Right":"");bt.prototype[i]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");bt.prototype[i]=function(){return this.__filtered__?new bt(this):this[d](1)}}),bt.prototype.compact=function(){return this.filter(An)},bt.prototype.find=function(i){return this.filter(i).head()},bt.prototype.findLast=function(i){return this.reverse().find(i)},bt.prototype.invokeMap=ft(function(i,l){return typeof i=="function"?new bt(this):this.map(function(d){return Pa(d,i,l)})}),bt.prototype.reject=function(i){return this.filter(s1(Be(i)))},bt.prototype.slice=function(i,l){i=dt(i);var d=this;return d.__filtered__&&(i>0||l<0)?new bt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==o&&(l=dt(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},bt.prototype.toArray=function(){return this.take(Bt)},Cn(bt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),x=L[v?"take"+(l=="last"?"Right":""):l],_=v||/^find/.test(l);!x||(L.prototype[l]=function(){var A=this.__wrapped__,D=v?[1]:arguments,H=A instanceof bt,te=D[0],re=H||ct(A),se=function(Ct){var xt=x.apply(L,qi([Ct],D));return v&&Le?xt[0]:xt};re&&d&&typeof te=="function"&&te.length!=1&&(H=re=!1);var Le=this.__chain__,Ne=!!this.__actions__.length,je=_&&!Le,gt=H&&!Ne;if(!_&&re){A=gt?A:new bt(this);var Ke=i.apply(A,D);return Ke.__actions__.push({func:n1,args:[se],thisArg:o}),new Jr(Ke,Le)}return je&&gt?i.apply(this,D):(Ke=this.thru(se),je?v?Ke.value()[0]:Ke.value():Ke)})}),_n(["pop","push","shift","sort","splice","unshift"],function(i){var l=xa[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",v=/^(?:pop|shift)$/.test(i);L.prototype[i]=function(){var x=arguments;if(v&&!this.__chain__){var _=this.value();return l.apply(ct(_)?_:[],x)}return this[d](function(A){return l.apply(ct(A)?A:[],x)})}}),Cn(bt.prototype,function(i,l){var d=L[l];if(d){var v=d.name+"";rt.call(ka,v)||(ka[v]=[]),ka[v].push({name:l,func:d})}}),ka[As(o,Ae).name]=[{name:"wrapper",func:o}],bt.prototype.clone=Mf,bt.prototype.reverse=kf,bt.prototype.value=Iu,L.prototype.at=a6,L.prototype.chain=s6,L.prototype.commit=l6,L.prototype.next=u6,L.prototype.plant=f6,L.prototype.reverse=d6,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=h6,L.prototype.first=L.prototype.head,to&&(L.prototype[to]=c6),L},Xi=pc();Xr?((Xr.exports=Xi)._=Xi,cs._=Xi):qt._=Xi}).call(Ql)})(M0,M0.exports);const s8=M0.exports,l8=vg({__proto__:null,default:s8},[M0.exports]);let u8=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((n,o)=>(o&=63,o<36?n+=o.toString(36):o<62?n+=(o-26).toString(36).toUpperCase():o>62?n+="-":n+="_",n),"");/**
2383
+ }`;var gt=ip(function(){return kt(L,Ne+"return "+se).apply(o,A)});if(gt.source=se,jf(gt))throw gt;return gt}function P7(i){return Nt(i).toLowerCase()}function A7(i){return Nt(i).toUpperCase()}function E7(i,l,d){if(i=Nt(i),i&&(d||l===o))return ps(i);if(!i||!(l=Fr(l)))return i;var v=_n(i),x=_n(l),L=Ki(v,x),A=pl(v,x)+1;return vo(v,L,A).join("")}function I7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.slice(0,bl(i)+1);if(!i||!(l=Fr(l)))return i;var v=_n(i),x=pl(v,_n(l))+1;return vo(v,0,x).join("")}function D7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.replace(To,"");if(!i||!(l=Fr(l)))return i;var v=_n(i),x=Ki(v,_n(l));return vo(v,x).join("")}function R7(i,l){var d=ve,v=Ce;if(ar(l)){var x="separator"in l?l.separator:x;d="length"in l?dt(l.length):d,v="omission"in l?Fr(l.omission):v}i=Nt(i);var L=i.length;if(Zn(i)){var A=_n(i);L=A.length}if(d>=L)return i;var D=d-Ro(v);if(D<1)return v;var H=A?vo(A,0,D).join(""):i.slice(0,D);if(x===o)return H+v;if(A&&(D+=H.length-D),Kf(x)){if(i.slice(D).search(x)){var te,re=H;for(x.global||(x=Ji(x.source,Nt(Po.exec(x))+"g")),x.lastIndex=0;te=x.exec(re);)var se=te.index;H=H.slice(0,se===o?D:se)}}else if(i.indexOf(Fr(x),D)!=D){var Le=H.lastIndexOf(x);Le>-1&&(H=H.slice(0,Le))}return H+v}function N7(i){return i=Nt(i),i&&pa.test(i)?i.replace(Bn,ml):i}var $7=Ha(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),Jf=Xc("toUpperCase");function np(i,l,d){return i=Nt(i),l=d?o:l,l===o?ai(i)?Vn(i):sc(i):i.match(l)||[]}var ip=ft(function(i,l){try{return bn(i,o,l)}catch(d){return jf(d)?d:new Je(d)}}),H7=Ai(function(i,l){return Ln(l,function(d){d=It(d),di(i,d,Gf(i[d],i))}),i});function B7(i){var l=i==null?0:i.length,d=Be();return i=l?Et(i,function(v){if(typeof v[1]!="function")throw new sn(b);return[d(v[0]),v[1]]}):[],ft(function(v){for(var x=-1;++x<l;){var L=i[x];if(bn(L[0],this,v))return bn(L[1],this,v)}})}function F7(i){return Mc(en(i,U))}function ed(i){return function(){return i}}function W7(i,l){return i==null||i!==i?l:i}var U7=Qc(),Y7=Qc(!0);function An(i){return i}function td(i){return Rc(typeof i=="function"?i:en(i,U))}function Z7(i){return Nc(en(i,U))}function V7(i,l){return qu(i,en(l,U))}var G7=ft(function(i,l){return function(d){return Ta(d,i,l)}}),q7=ft(function(i,l){return function(d){return Ta(i,d,l)}});function rd(i,l,d){var v=Gr(l),x=Ss(l,v);d==null&&!(ar(l)&&(x.length||!v.length))&&(d=l,l=i,i=this,x=Ss(l,Gr(l)));var L=!(ar(d)&&"chain"in d)||!!d.chain,A=Qo(i);return Ln(x,function(D){var H=l[D];i[D]=H,A&&(i.prototype[D]=function(){var te=this.__chain__;if(L||te){var re=i(this.__wrapped__),se=re.__actions__=_r(this.__actions__);return se.push({func:H,args:arguments,thisArg:i}),re.__chain__=te,re}return H.apply(i,ji([this.value()],arguments))})}),i}function j7(){return Gt._===this&&(Gt._=mc),this}function nd(){}function K7(i){return i=dt(i),ft(function(l){return $c(l,i)})}var X7=Fa(Et),Q7=Fa(Su),J7=Fa(Eo);function op(i){return C(i)?Ou(It(i)):$f(i)}function eg(i){return function(l){return i==null?o:fo(i,l)}}var tg=Jc(),rg=Jc(!0);function id(){return[]}function od(){return!1}function ng(){return{}}function ig(){return""}function og(){return!0}function ag(i,l){if(i=dt(i),i<1||i>ot)return[];var d=Bt,v=Pr(i,Bt);l=Be(l),i-=Bt;for(var x=Do(v,l);++d<i;)l(d);return x}function sg(i){return ct(i)?Et(i,It):jn(i)?[i]:_r(gr(Nt(i)))}function lg(i){var l=++to;return Nt(i)+l}var ug=Es(function(i,l){return i+l},0),cg=Is("ceil"),fg=Es(function(i,l){return i/l},1),dg=Is("floor");function hg(i){return i&&i.length?_s(i,An,Pl):o}function pg(i,l){return i&&i.length?_s(i,Be(l,2),Pl):o}function gg(i){return Mu(i,An)}function vg(i,l){return Mu(i,Be(l,2))}function bg(i){return i&&i.length?_s(i,An,po):o}function mg(i,l){return i&&i.length?_s(i,Be(l,2),po):o}var yg=Es(function(i,l){return i*l},1),Cg=Is("round"),wg=Es(function(i,l){return i-l},0);function xg(i){return i&&i.length?Au(i,An):0}function zg(i,l){return i&&i.length?Au(i,Be(l,2)):0}return z.after=Z6,z.ary=Rh,z.assign=A3,z.assignIn=Kh,z.assignInWith=d1,z.assignWith=E3,z.at=I3,z.before=Nh,z.bind=Gf,z.bindAll=H7,z.bindKey=$h,z.castArray=n3,z.chain=Eh,z.chunk=Ya,z.compact=bo,z.concat=Rr,z.cond=B7,z.conforms=F7,z.constant=ed,z.countBy=x6,z.create=D3,z.curry=Hh,z.curryRight=Bh,z.debounce=Fh,z.defaults=R3,z.defaultsDeep=N3,z.defer=V6,z.delay=G6,z.difference=hi,z.differenceBy=vr,z.differenceWith=c0,z.drop=Ei,z.dropRight=Ko,z.dropRightWhile=Xo,z.dropWhile=Vr,z.fill=Za,z.filter=L6,z.flatMap=k6,z.flatMapDeep=M6,z.flatMapDepth=O6,z.flatten=Oh,z.flattenDeep=z5,z.flattenDepth=L5,z.flip=q6,z.flow=U7,z.flowRight=Y7,z.fromPairs=_5,z.functions=Y3,z.functionsIn=Z3,z.groupBy=T6,z.initial=k5,z.intersection=M5,z.intersectionBy=O5,z.intersectionWith=T5,z.invert=G3,z.invertBy=q3,z.invokeMap=A6,z.iteratee=td,z.keyBy=E6,z.keys=Gr,z.keysIn=Pn,z.map=a1,z.mapKeys=K3,z.mapValues=X3,z.matches=Z7,z.matchesProperty=V7,z.memoize=l1,z.merge=Q3,z.mergeWith=Xh,z.method=G7,z.methodOf=q7,z.mixin=rd,z.negate=u1,z.nthArg=K7,z.omit=J3,z.omitBy=e7,z.once=j6,z.orderBy=I6,z.over=X7,z.overArgs=K6,z.overEvery=Q7,z.overSome=J7,z.partial=qf,z.partialRight=Wh,z.partition=D6,z.pick=t7,z.pickBy=Qh,z.property=op,z.propertyOf=eg,z.pull=I5,z.pullAll=Ph,z.pullAllBy=D5,z.pullAllWith=R5,z.pullAt=N5,z.range=tg,z.rangeRight=rg,z.rearg=X6,z.reject=$6,z.remove=$5,z.rest=Q6,z.reverse=Zf,z.sampleSize=B6,z.set=n7,z.setWith=i7,z.shuffle=F6,z.slice=H5,z.sortBy=Y6,z.sortedUniq=V5,z.sortedUniqBy=G5,z.split=k7,z.spread=J6,z.tail=q5,z.take=j5,z.takeRight=K5,z.takeRightWhile=X5,z.takeWhile=Q5,z.tap=h6,z.throttle=e3,z.thru=o1,z.toArray=Gh,z.toPairs=Jh,z.toPairsIn=ep,z.toPath=sg,z.toPlainObject=jh,z.transform=o7,z.unary=t3,z.union=J5,z.unionBy=e6,z.unionWith=t6,z.uniq=r6,z.uniqBy=n6,z.uniqWith=i6,z.unset=a7,z.unzip=Vf,z.unzipWith=Ah,z.update=s7,z.updateWith=l7,z.values=Kl,z.valuesIn=u7,z.without=o6,z.words=np,z.wrap=r3,z.xor=a6,z.xorBy=s6,z.xorWith=l6,z.zip=u6,z.zipObject=c6,z.zipObjectDeep=f6,z.zipWith=d6,z.entries=Jh,z.entriesIn=ep,z.extend=Kh,z.extendWith=d1,rd(z,z),z.add=ug,z.attempt=ip,z.camelCase=h7,z.capitalize=tp,z.ceil=cg,z.clamp=c7,z.clone=i3,z.cloneDeep=a3,z.cloneDeepWith=s3,z.cloneWith=o3,z.conformsTo=l3,z.deburr=rp,z.defaultTo=W7,z.divide=fg,z.endsWith=p7,z.eq=Ii,z.escape=g7,z.escapeRegExp=v7,z.every=z6,z.find=_6,z.findIndex=ql,z.findKey=$3,z.findLast=S6,z.findLastIndex=Mh,z.findLastKey=H3,z.floor=dg,z.forEach=Ih,z.forEachRight=Dh,z.forIn=B3,z.forInRight=F3,z.forOwn=W3,z.forOwnRight=U3,z.get=Xf,z.gt=u3,z.gte=c3,z.has=V3,z.hasIn=Qf,z.head=Th,z.identity=An,z.includes=P6,z.indexOf=S5,z.inRange=f7,z.invoke=j3,z.isArguments=$s,z.isArray=ct,z.isArrayBuffer=f3,z.isArrayLike=Tn,z.isArrayLikeObject=br,z.isBoolean=d3,z.isBuffer=Va,z.isDate=h3,z.isElement=p3,z.isEmpty=g3,z.isEqual=v3,z.isEqualWith=b3,z.isError=jf,z.isFinite=m3,z.isFunction=Qo,z.isInteger=Uh,z.isLength=c1,z.isMap=Yh,z.isMatch=y3,z.isMatchWith=C3,z.isNaN=w3,z.isNative=x3,z.isNil=L3,z.isNull=z3,z.isNumber=Zh,z.isObject=ar,z.isObjectLike=cr,z.isPlainObject=f0,z.isRegExp=Kf,z.isSafeInteger=_3,z.isSet=Vh,z.isString=f1,z.isSymbol=jn,z.isTypedArray=jl,z.isUndefined=S3,z.isWeakMap=k3,z.isWeakSet=M3,z.join=P5,z.kebabCase=b7,z.last=pi,z.lastIndexOf=A5,z.lowerCase=m7,z.lowerFirst=y7,z.lt=O3,z.lte=T3,z.max=hg,z.maxBy=pg,z.mean=gg,z.meanBy=vg,z.min=bg,z.minBy=mg,z.stubArray=id,z.stubFalse=od,z.stubObject=ng,z.stubString=ig,z.stubTrue=og,z.multiply=yg,z.nth=E5,z.noConflict=j7,z.noop=nd,z.now=s1,z.pad=C7,z.padEnd=w7,z.padStart=x7,z.parseInt=z7,z.random=d7,z.reduce=R6,z.reduceRight=N6,z.repeat=L7,z.replace=_7,z.result=r7,z.round=Cg,z.runInContext=$,z.sample=H6,z.size=W6,z.snakeCase=S7,z.some=U6,z.sortedIndex=B5,z.sortedIndexBy=F5,z.sortedIndexOf=W5,z.sortedLastIndex=U5,z.sortedLastIndexBy=Y5,z.sortedLastIndexOf=Z5,z.startCase=M7,z.startsWith=O7,z.subtract=wg,z.sum=xg,z.sumBy=zg,z.template=T7,z.times=ag,z.toFinite=Jo,z.toInteger=dt,z.toLength=qh,z.toLower=P7,z.toNumber=gi,z.toSafeInteger=P3,z.toString=Nt,z.toUpper=A7,z.trim=E7,z.trimEnd=I7,z.trimStart=D7,z.truncate=R7,z.unescape=N7,z.uniqueId=lg,z.upperCase=$7,z.upperFirst=Jf,z.each=Ih,z.eachRight=Dh,z.first=Th,rd(z,function(){var i={};return Cn(z,function(l,d){rt.call(z.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),z.VERSION=c,Ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){z[i].placeholder=z}),Ln(["drop","take"],function(i,l){bt.prototype[i]=function(d){d=d===o?1:jt(dt(d),0);var v=this.__filtered__&&!l?new bt(this):this.clone();return v.__filtered__?v.__takeCount__=Pr(d,v.__takeCount__):v.__views__.push({size:Pr(d,Bt),type:i+(v.__dir__<0?"Right":"")}),v},bt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),Ln(["filter","map","takeWhile"],function(i,l){var d=l+1,v=d==E||d==ne;bt.prototype[i]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Be(x,3),type:d}),L.__filtered__=L.__filtered__||v,L}}),Ln(["head","last"],function(i,l){var d="take"+(l?"Right":"");bt.prototype[i]=function(){return this[d](1).value()[0]}}),Ln(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");bt.prototype[i]=function(){return this.__filtered__?new bt(this):this[d](1)}}),bt.prototype.compact=function(){return this.filter(An)},bt.prototype.find=function(i){return this.filter(i).head()},bt.prototype.findLast=function(i){return this.reverse().find(i)},bt.prototype.invokeMap=ft(function(i,l){return typeof i=="function"?new bt(this):this.map(function(d){return Ta(d,i,l)})}),bt.prototype.reject=function(i){return this.filter(u1(Be(i)))},bt.prototype.slice=function(i,l){i=dt(i);var d=this;return d.__filtered__&&(i>0||l<0)?new bt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==o&&(l=dt(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},bt.prototype.toArray=function(){return this.take(Bt)},Cn(bt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),x=z[v?"take"+(l=="last"?"Right":""):l],L=v||/^find/.test(l);!x||(z.prototype[l]=function(){var A=this.__wrapped__,D=v?[1]:arguments,H=A instanceof bt,te=D[0],re=H||ct(A),se=function(Ct){var xt=x.apply(z,ji([Ct],D));return v&&Le?xt[0]:xt};re&&d&&typeof te=="function"&&te.length!=1&&(H=re=!1);var Le=this.__chain__,Ne=!!this.__actions__.length,je=L&&!Le,gt=H&&!Ne;if(!L&&re){A=gt?A:new bt(this);var Ke=i.apply(A,D);return Ke.__actions__.push({func:o1,args:[se],thisArg:o}),new Jr(Ke,Le)}return je&&gt?i.apply(this,D):(Ke=this.thru(se),je?v?Ke.value()[0]:Ke.value():Ke)})}),Ln(["pop","push","shift","sort","splice","unshift"],function(i){var l=wa[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",v=/^(?:pop|shift)$/.test(i);z.prototype[i]=function(){var x=arguments;if(v&&!this.__chain__){var L=this.value();return l.apply(ct(L)?L:[],x)}return this[d](function(A){return l.apply(ct(A)?A:[],x)})}}),Cn(bt.prototype,function(i,l){var d=z[l];if(d){var v=d.name+"";rt.call(ka,v)||(ka[v]=[]),ka[v].push({name:l,func:d})}}),ka[As(o,Ae).name]=[{name:"wrapper",func:o}],bt.prototype.clone=Of,bt.prototype.reverse=Tf,bt.prototype.value=Du,z.prototype.at=p6,z.prototype.chain=g6,z.prototype.commit=v6,z.prototype.next=b6,z.prototype.plant=y6,z.prototype.reverse=C6,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=w6,z.prototype.first=z.prototype.head,ro&&(z.prototype[ro]=m6),z},Qi=vc();Xr?((Xr.exports=Qi)._=Qi,cs._=Qi):Gt._=Qi}).call(Jl)})(M0,M0.exports);const p8=M0.exports,g8=Lg({__proto__:null,default:p8},[M0.exports]);let v8=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((n,o)=>(o&=63,o<36?n+=o.toString(36):o<62?n+=(o-26).toString(36).toUpperCase():o>62?n+="-":n+="_",n),"");/**
2302
2384
  * @license
2303
2385
  * Copyright 2020 Google LLC
2304
2386
  * SPDX-License-Identifier: BSD-3-Clause
2305
- */const{I:c8}=wg,Op=()=>document.createComment(""),h0=(r,n,o)=>{var c;const f=r._$AA.parentNode,p=n===void 0?r._$AB:n._$AA;if(o===void 0){const b=f.insertBefore(Op(),p),k=f.insertBefore(Op(),p);o=new c8(b,k,r,r.options)}else{const b=o._$AB.nextSibling,k=o._$AM,S=k!==r;if(S){let O;(c=o._$AQ)===null||c===void 0||c.call(o,r),o._$AM=r,o._$AP!==void 0&&(O=r._$AU)!==k._$AU&&o._$AP(O)}if(b!==p||S){let O=o._$AA;for(;O!==b;){const I=O.nextSibling;f.insertBefore(O,p),O=I}}}return o},Fs=(r,n,o=r)=>(r._$AI(n,o),r),f8={},d8=(r,n=f8)=>r._$AH=n,h8=r=>r._$AH,fd=r=>{var n;(n=r._$AP)===null||n===void 0||n.call(r,!1,!0);let o=r._$AA;const c=r._$AB.nextSibling;for(;o!==c;){const f=o.nextSibling;o.remove(),o=f}};/**
2387
+ */const{I:b8}=Og,Dp=()=>document.createComment(""),p0=(r,n,o)=>{var c;const f=r._$AA.parentNode,p=n===void 0?r._$AB:n._$AA;if(o===void 0){const b=f.insertBefore(Dp(),p),M=f.insertBefore(Dp(),p);o=new b8(b,M,r,r.options)}else{const b=o._$AB.nextSibling,M=o._$AM,S=M!==r;if(S){let O;(c=o._$AQ)===null||c===void 0||c.call(o,r),o._$AM=r,o._$AP!==void 0&&(O=r._$AU)!==M._$AU&&o._$AP(O)}if(b!==p||S){let O=o._$AA;for(;O!==b;){const I=O.nextSibling;f.insertBefore(O,p),O=I}}}return o},Fs=(r,n,o=r)=>(r._$AI(n,o),r),m8={},y8=(r,n=m8)=>r._$AH=n,C8=r=>r._$AH,pd=r=>{var n;(n=r._$AP)===null||n===void 0||n.call(r,!1,!0);let o=r._$AA;const c=r._$AB.nextSibling;for(;o!==c;){const f=o.nextSibling;o.remove(),o=f}};/**
2306
2388
  * @license
2307
2389
  * Copyright 2017 Google LLC
2308
2390
  * SPDX-License-Identifier: BSD-3-Clause
2309
- */const Tp=(r,n,o)=>{const c=new Map;for(let f=n;f<=o;f++)c.set(r[f],f);return c},p8=A1(class extends E1{constructor(r){if(super(r),r.type!==P1.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,n,o){let c;o===void 0?o=n:n!==void 0&&(c=n);const f=[],p=[];let b=0;for(const k of r)f[b]=c?c(k,b):b,p[b]=o(k,b),b++;return{values:p,keys:f}}render(r,n,o){return this.ht(r,n,o).values}update(r,[n,o,c]){var f;const p=h8(r),{values:b,keys:k}=this.ht(n,o,c);if(!Array.isArray(p))return this.ut=k,b;const S=(f=this.ut)!==null&&f!==void 0?f:this.ut=[],O=[];let I,U,q=0,X=p.length-1,ce=0,we=b.length-1;for(;q<=X&&ce<=we;)if(p[q]===null)q++;else if(p[X]===null)X--;else if(S[q]===k[ce])O[ce]=Fs(p[q],b[ce]),q++,ce++;else if(S[X]===k[we])O[we]=Fs(p[X],b[we]),X--,we--;else if(S[q]===k[we])O[we]=Fs(p[q],b[we]),h0(r,O[we+1],p[q]),q++,we--;else if(S[X]===k[ce])O[ce]=Fs(p[X],b[ce]),h0(r,p[q],p[X]),X--,ce++;else if(I===void 0&&(I=Tp(k,ce,we),U=Tp(S,q,X)),I.has(S[q]))if(I.has(S[X])){const me=U.get(k[ce]),Ae=me!==void 0?p[me]:null;if(Ae===null){const Ie=h0(r,p[q]);Fs(Ie,b[ce]),O[ce]=Ie}else O[ce]=Fs(Ae,b[ce]),h0(r,p[q],Ae),p[me]=null;ce++}else fd(p[X]),X--;else fd(p[q]),q++;for(;ce<=we;){const me=h0(r,O[we+1]);Fs(me,b[ce]),O[ce++]=me}for(;q<=X;){const me=p[q++];me!==null&&fd(me)}return this.ut=k,d8(r,O),mo}});/**
2391
+ */const Rp=(r,n,o)=>{const c=new Map;for(let f=n;f<=o;f++)c.set(r[f],f);return c},w8=I1(class extends D1{constructor(r){if(super(r),r.type!==E1.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,n,o){let c;o===void 0?o=n:n!==void 0&&(c=n);const f=[],p=[];let b=0;for(const M of r)f[b]=c?c(M,b):b,p[b]=o(M,b),b++;return{values:p,keys:f}}render(r,n,o){return this.ht(r,n,o).values}update(r,[n,o,c]){var f;const p=C8(r),{values:b,keys:M}=this.ht(n,o,c);if(!Array.isArray(p))return this.ut=M,b;const S=(f=this.ut)!==null&&f!==void 0?f:this.ut=[],O=[];let I,U,q=0,X=p.length-1,ce=0,xe=b.length-1;for(;q<=X&&ce<=xe;)if(p[q]===null)q++;else if(p[X]===null)X--;else if(S[q]===M[ce])O[ce]=Fs(p[q],b[ce]),q++,ce++;else if(S[X]===M[xe])O[xe]=Fs(p[X],b[xe]),X--,xe--;else if(S[q]===M[xe])O[xe]=Fs(p[q],b[xe]),p0(r,O[xe+1],p[q]),q++,xe--;else if(S[X]===M[ce])O[ce]=Fs(p[X],b[ce]),p0(r,p[q],p[X]),X--,ce++;else if(I===void 0&&(I=Rp(M,ce,xe),U=Rp(S,q,X)),I.has(S[q]))if(I.has(S[X])){const ye=U.get(M[ce]),Ae=ye!==void 0?p[ye]:null;if(Ae===null){const Ie=p0(r,p[q]);Fs(Ie,b[ce]),O[ce]=Ie}else O[ce]=Fs(Ae,b[ce]),p0(r,p[q],Ae),p[ye]=null;ce++}else pd(p[X]),X--;else pd(p[q]),q++;for(;ce<=xe;){const ye=p0(r,O[xe+1]);Fs(ye,b[ce]),O[ce++]=ye}for(;q<=X;){const ye=p[q++];ye!==null&&pd(ye)}return this.ut=M,y8(r,O),yo}});/**
2310
2392
  * @license
2311
2393
  * Copyright 2018 Google LLC
2312
2394
  * SPDX-License-Identifier: BSD-3-Clause
2313
- */const g8=A1(class extends E1{constructor(r){var n;if(super(r),r.type!==P1.ATTRIBUTE||r.name!=="style"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((n,o)=>{const c=r[o];return c==null?n:n+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${c};`},"")}update(r,[n]){const{style:o}=r.element;if(this.vt===void 0){this.vt=new Set;for(const c in n)this.vt.add(c);return this.render(n)}this.vt.forEach(c=>{n[c]==null&&(this.vt.delete(c),c.includes("-")?o.removeProperty(c):o[c]="")});for(const c in n){const f=n[c];f!=null&&(this.vt.add(c),c.includes("-")?o.setProperty(c,f):o[c]=f)}return mo}});var v8=Object.defineProperty,b8=Object.getOwnPropertyDescriptor,ei=(r,n,o,c)=>{for(var f=c>1?void 0:c?b8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&v8(n,o,f),f};const Kd=Ee("virtual-list");exports.VirtualList=class extends Ue{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(r,n)=>ee`
2395
+ */const x8=I1(class extends D1{constructor(r){var n;if(super(r),r.type!==E1.ATTRIBUTE||r.name!=="style"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((n,o)=>{const c=r[o];return c==null?n:n+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${c};`},"")}update(r,[n]){const{style:o}=r.element;if(this.vt===void 0){this.vt=new Set;for(const c in n)this.vt.add(c);return this.render(n)}this.vt.forEach(c=>{n[c]==null&&(this.vt.delete(c),c.includes("-")?o.removeProperty(c):o[c]="")});for(const c in n){const f=n[c];f!=null&&(this.vt.add(c),c.includes("-")?o.setProperty(c,f):o[c]=f)}return yo}});var z8=Object.defineProperty,L8=Object.getOwnPropertyDescriptor,ei=(r,n,o,c)=>{for(var f=c>1?void 0:c?L8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&z8(n,o,f),f};const Jd=Ee("virtual-list");exports.VirtualList=class extends Ue{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(r,n)=>ee`
2314
2396
  <div
2315
2397
  class="default-render-item"
2316
2398
  style="min-height: ${this.itemMinHeight}px"
2317
2399
  >
2318
2400
  Item ${n}: ${JSON.stringify(r)}
2319
2401
  </div>
2320
- `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}async connectedCallback(){super.connectedCallback(),this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(r){super.updated(r),this.canSync(r)&&this.syncVisibleItems()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.max(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((r,n)=>r+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const r={};let n=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{r[c]?r[c]++:r[c]=1,r[c]>o&&(n=c,o=r[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(r){return["items","renderItem"].reduce((n,o)=>n||r.has(o),!1)}syncVisibleItems(){this.resetItems();for(let r=this.rollingStartIndex;r<=this.rollingEndIndex;r++){const n={position:"absolute",top:`${r*this.itemHeights[r]}px`,width:"100%"},o=this.renderItem(this.items[r],r);if(!this.itemIdentifier){const p=jp(o,new DocumentFragment).parentNode.firstElementChild,b=p==null?void 0:p.tagName.toLowerCase(),k=p==null?void 0:p.className;this.itemIdentifier=`${b}${k?`.${k}`:""}`}const c=ee`
2321
- <div class="item-wrapper" style=${g8(n)}>
2402
+ `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}async connectedCallback(){super.connectedCallback(),this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(r){super.updated(r),this.canSync(r)&&this.syncVisibleItems()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.max(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((r,n)=>r+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const r={};let n=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{r[c]?r[c]++:r[c]=1,r[c]>o&&(n=c,o=r[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(r){return["items","renderItem"].reduce((n,o)=>n||r.has(o),!1)}syncVisibleItems(){this.resetItems();for(let r=this.rollingStartIndex;r<=this.rollingEndIndex;r++){const n={position:"absolute",top:`${r*this.itemHeights[r]}px`,width:"100%"},o=this.renderItem(this.items[r],r);if(!this.itemIdentifier){const p=e2(o,new DocumentFragment).parentNode.firstElementChild,b=p==null?void 0:p.tagName.toLowerCase(),M=p==null?void 0:p.className;this.itemIdentifier=`${b}${M?`.${M}`:""}`}const c=ee`
2403
+ <div class="item-wrapper" style=${x8(n)}>
2322
2404
  ${o}
2323
2405
  </div>
2324
2406
  `;this.visibleItems.push({index:r,item:c})}this.updateItemHeights()}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:r},n)=>{var o,c;this.itemHeights[r]=((c=(o=this.visibleItemElements)==null?void 0:o[n])==null?void 0:c.getBoundingClientRect().height)||this.itemHeights[r]})}get visibleItemElements(){var r;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(r=this.shadowRoot)==null?void 0:r.querySelectorAll(this.itemIdentifier)}handleScroll(r){var n;this.currentScrollTop=(n=r.currentTarget)==null?void 0:n.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const r=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),n=Math.min(this.overscan,r);return r-n}get rollingEndIndex(){const r=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),n=Math.min(this.overscan,this.endIndex-r);return r+n}get containerHeight(){return this.getBoundingClientRect().height}render(){return ee`
2325
2407
  <div class="container" @scroll=${this.handleScroll}>
2326
2408
  <div class="list" style="height: ${this.innerHeight}px">
2327
- ${p8(this.visibleItems,({index:r})=>r,({item:r})=>r)}
2409
+ ${w8(this.visibleItems,({index:r})=>r,({item:r})=>r)}
2328
2410
  </div>
2329
2411
  </div>
2330
- `}};exports.VirtualList.styles=[Se`
2412
+ `}};exports.VirtualList.styles=[ge`
2331
2413
  :host {
2332
2414
  width: 100%;
2333
2415
  }
@@ -2341,7 +2423,7 @@ function print() { __p += __j.call(arguments, '') }
2341
2423
  .list {
2342
2424
  position: relative;
2343
2425
  }
2344
- `];ei([F({type:Array})],exports.VirtualList.prototype,"items",2);ei([F({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);ei([F({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);ei([F({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);ei([pt()],exports.VirtualList.prototype,"currentScrollTop",2);ei([pt()],exports.VirtualList.prototype,"endIndex",2);ei([pt()],exports.VirtualList.prototype,"innerHeight",2);ei([pt()],exports.VirtualList.prototype,"itemHeights",2);ei([pt()],exports.VirtualList.prototype,"itemIdentifier",2);ei([pt()],exports.VirtualList.prototype,"originalItemsCount",2);ei([pt()],exports.VirtualList.prototype,"currentItemsCount",2);ei([pt()],exports.VirtualList.prototype,"visibleItems",2);exports.VirtualList=ei([Q(Kd)],exports.VirtualList);var m8=Object.defineProperty,y8=Object.getOwnPropertyDescriptor,Nn=(r,n,o,c)=>{for(var f=c>1?void 0:c?y8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&m8(n,o,f),f};const W2=Ee("menu"),y0=Ee("menu-item"),Xd="noResults";class ti extends Rn{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.selectedIndex=-1,this.innerOptions=[],this.options=[],this.keyBindings={Tab:this.handleTab.bind(this),Enter:this.handleEnterKey.bind(this),ArrowUp:this.handleUpDownKey.bind(this),ArrowDown:this.handleUpDownKey.bind(this)}}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(n=>({...n,id:`option-${u8()}`,toggleable:this.isMulti}))]:[]}firstUpdated(){this.setInnerOptions(),this.value&&this.updateComplete.then(()=>{this.handleValueChange()})}updated(n){n.has("value")&&this.handleValueChange(),super.updated()}handleUpDownKey(n){n.preventDefault();const{key:o}=n;this.openDropdown();const c=({before:p,after:b})=>(k,S)=>k.hidden?!1:p===void 0&&b===void 0||p!==void 0&&S<p||b!==void 0&&S>b;this.clearKeySelectedItem();const f=this.getItems();if(this.selectedIndex===-1){this.selectedIndex=0,f[this.selectedIndex].selected=!0;return}o==="ArrowUp"&&(this.selectedIndex=M0.exports.findLastIndex(f,c({before:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=f.length-1)),o==="ArrowDown"&&(this.selectedIndex=f.findIndex(c({after:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=0)),f[this.selectedIndex].selected=!0}handleEnterKey(){if(!this.isDropdownOpen()){this.openDropdown();return}const n=this.getItems()[this.selectedIndex];n&&n.value&&!n.disabled&&this.setValue(n.value),!(n&&n.disabled)&&this.closeDropdown()}handleTab(){this.isDropdownOpen()&&this.closeDropdown()}clearKeySelectedItem(){if(this.selectedIndex===-1)return;const n=this.getItems()[this.selectedIndex];if(!n){this.selectedIndex=-1;return}n.selected=!1}closeDropdown(){const n=this.getDropdown();n&&n.close()}getDropdown(){var n,o;return((n=this.renderRoot)==null?void 0:n.querySelector("brz-popover"))||((o=this.renderRoot)==null?void 0:o.querySelector("sp-popover"))}getItemLabel(n){var o,c;return n?n instanceof exports.MenuItem?(c=(o=n.textContent)==null?void 0:o.trim())!=null?c:"":n.label:""}get keyboardFocusedItem(){var n,o;return((n=this.optionElementsRenderRoot)==null?void 0:n.querySelector(`${y0}[selected]`))||((o=this.optionElementsRenderRoot)==null?void 0:o.querySelector("sp-menu-item[selected]"))}handleKeydown(n){if(this.readonly)return;const o=this.keyBindings[n.key];o&&o(n)}get defaultSlot(){var n,o;return(o=(n=this.renderRoot)==null?void 0:n.querySelector("slot:not([name])"))==null?void 0:o.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var n;return this.isDataDriven?(n=this.virtualListElement)==null?void 0:n.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Kd)}getOptionElement(n){return this.optionElements.find(o=>o.id===n)}get optionElements(){var o,c,f;const n=(o=this.optionElementsRenderRoot)!=null&&o.querySelectorAll(y0).length?(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll(y0):(f=this.optionElementsRenderRoot)==null?void 0:f.querySelectorAll("sp-menu-item");return Array.from(n!=null?n:[])}isDropdownOpen(){const n=this.getDropdown();return n==null?void 0:n.isOpen}openDropdown(){const n=this.getDropdown();n&&n.open()}setValue(n){this.value=n,this.handleValueChange(),this.dispatchChange()}renderInput(){return this.updateComplete.then(()=>{var n,o;(n=this.keyboardFocusedItem)==null||n.scrollIntoView({block:"center"}),(o=this.getDropdown())==null||o.updatePosition()}),this.readonly?this.renderReferenceElement():ee`
2426
+ `];ei([F({type:Array})],exports.VirtualList.prototype,"items",2);ei([F({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);ei([F({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);ei([F({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);ei([pt()],exports.VirtualList.prototype,"currentScrollTop",2);ei([pt()],exports.VirtualList.prototype,"endIndex",2);ei([pt()],exports.VirtualList.prototype,"innerHeight",2);ei([pt()],exports.VirtualList.prototype,"itemHeights",2);ei([pt()],exports.VirtualList.prototype,"itemIdentifier",2);ei([pt()],exports.VirtualList.prototype,"originalItemsCount",2);ei([pt()],exports.VirtualList.prototype,"currentItemsCount",2);ei([pt()],exports.VirtualList.prototype,"visibleItems",2);exports.VirtualList=ei([Q(Jd)],exports.VirtualList);var _8=Object.defineProperty,S8=Object.getOwnPropertyDescriptor,Nn=(r,n,o,c)=>{for(var f=c>1?void 0:c?S8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_8(n,o,f),f};const K2=Ee("menu"),C0=Ee("menu-item"),eh="noResults";class ti extends Rn{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.selectedIndex=-1,this.innerOptions=[],this.options=[],this.keyBindings={Tab:this.handleTab.bind(this),Enter:this.handleEnterKey.bind(this),ArrowUp:this.handleUpDownKey.bind(this),ArrowDown:this.handleUpDownKey.bind(this)}}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(n=>({...n,id:`option-${v8()}`,toggleable:this.isMulti}))]:[]}firstUpdated(){this.setInnerOptions(),this.value&&this.updateComplete.then(()=>{this.handleValueChange()})}updated(n){n.has("value")&&this.handleValueChange(),super.updated()}handleUpDownKey(n){n.preventDefault();const{key:o}=n;this.openDropdown();const c=({before:p,after:b})=>(M,S)=>M.hidden?!1:p===void 0&&b===void 0||p!==void 0&&S<p||b!==void 0&&S>b;this.clearKeySelectedItem();const f=this.getItems();if(this.selectedIndex===-1){this.selectedIndex=0,f[this.selectedIndex].selected=!0;return}o==="ArrowUp"&&(this.selectedIndex=M0.exports.findLastIndex(f,c({before:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=f.length-1)),o==="ArrowDown"&&(this.selectedIndex=f.findIndex(c({after:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=0)),f[this.selectedIndex].selected=!0}handleEnterKey(){if(!this.isDropdownOpen()){this.openDropdown();return}const n=this.getItems()[this.selectedIndex];n&&n.value&&!n.disabled&&this.setValue(n.value),!(n&&n.disabled)&&this.closeDropdown()}handleTab(){this.isDropdownOpen()&&this.closeDropdown()}clearKeySelectedItem(){if(this.selectedIndex===-1)return;const n=this.getItems()[this.selectedIndex];if(!n){this.selectedIndex=-1;return}n.selected=!1}closeDropdown(){const n=this.getDropdown();n&&n.close()}getDropdown(){var n,o;return((n=this.renderRoot)==null?void 0:n.querySelector("brz-popover"))||((o=this.renderRoot)==null?void 0:o.querySelector("sp-popover"))}getItemLabel(n){var o,c;return n?n instanceof exports.MenuItem?(c=(o=n.textContent)==null?void 0:o.trim())!=null?c:"":n.label:""}get keyboardFocusedItem(){var n,o;return((n=this.optionElementsRenderRoot)==null?void 0:n.querySelector(`${C0}[selected]`))||((o=this.optionElementsRenderRoot)==null?void 0:o.querySelector("sp-menu-item[selected]"))}handleKeydown(n){if(this.readonly)return;const o=this.keyBindings[n.key];o&&o(n)}get defaultSlot(){var n,o;return(o=(n=this.renderRoot)==null?void 0:n.querySelector("slot:not([name])"))==null?void 0:o.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var n;return this.isDataDriven?(n=this.virtualListElement)==null?void 0:n.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Jd)}getOptionElement(n){return this.optionElements.find(o=>o.id===n)}get optionElements(){var o,c,f;const n=(o=this.optionElementsRenderRoot)!=null&&o.querySelectorAll(C0).length?(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll(C0):(f=this.optionElementsRenderRoot)==null?void 0:f.querySelectorAll("sp-menu-item");return Array.from(n!=null?n:[])}isDropdownOpen(){const n=this.getDropdown();return n==null?void 0:n.isOpen}openDropdown(){const n=this.getDropdown();n&&n.open()}setValue(n){this.value=n,this.handleValueChange(),this.dispatchChange()}renderInput(){return this.updateComplete.then(()=>{var n,o;(n=this.keyboardFocusedItem)==null||n.scrollIntoView({block:"center"}),(o=this.getDropdown())==null||o.updatePosition()}),this.readonly?this.renderReferenceElement():ee`
2345
2427
  <brz-popover
2346
2428
  role="menu"
2347
2429
  trigger="click"
@@ -2360,25 +2442,25 @@ function print() { __p += __j.call(arguments, '') }
2360
2442
  ${this.renderDropdownContent()}
2361
2443
  </brz-menu>
2362
2444
  </brz-popover>
2363
- `}renderNoResultsMessage(){return ee`<brz-menu-item id=${Xd} disabled
2445
+ `}renderNoResultsMessage(){return ee`<brz-menu-item id=${eh} disabled
2364
2446
  >No results found</brz-menu-item
2365
2447
  >`}renderReferenceElement(){return ee``}renderDropdownContent(){return ee``}renderOptionsData(n=this.innerOptions){return n!=null&&n.length?ee`
2366
2448
  <brz-virtual-list
2367
2449
  .items=${n.filter(({hidden:o})=>!o)}
2368
- .renderItem=${({id:o,label:c,value:f,disabled:p,selected:b,toggleable:k,toggled:S})=>ee`
2450
+ .renderItem=${({id:o,label:c,value:f,disabled:p,selected:b,toggleable:M,toggled:S})=>ee`
2369
2451
  <brz-menu-item
2370
2452
  id=${o}
2371
2453
  value=${f}
2372
2454
  ?disabled=${p}
2373
2455
  ?selected=${b}
2374
- ?toggleable=${k}
2456
+ ?toggleable=${M}
2375
2457
  ?toggled=${S}
2376
2458
  >
2377
2459
  ${c}
2378
2460
  </brz-menu-item>
2379
2461
  `}
2380
2462
  ></brz-virtual-list>
2381
- `:null}isQueryMatch(n){return this.query?this.getItemLabel(n).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(n):!1}isCustomQueryMatch(n){return!1}handleCloseDropdown(){}handleSelect(n){}handleValueChange(){}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var n;return!!((n=this.options)!=null&&n.length)}get isMulti(){return Array.isArray(this.value)}}ti.styles=[...Rn.styles,Se`
2463
+ `:null}isQueryMatch(n){return this.query?this.getItemLabel(n).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(n):!1}isCustomQueryMatch(n){return!1}handleCloseDropdown(){}handleSelect(n){}handleValueChange(){}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var n;return!!((n=this.options)!=null&&n.length)}get isMulti(){return Array.isArray(this.value)}}ti.styles=[...Rn.styles,ge`
2382
2464
  :host {
2383
2465
  /** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
2384
2466
  --dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
@@ -2394,7 +2476,50 @@ function print() { __p += __j.call(arguments, '') }
2394
2476
  .wrapper {
2395
2477
  cursor: pointer;
2396
2478
  }
2397
- `];Nn([F({attribute:"can-search",type:Boolean,reflect:!0})],ti.prototype,"canSearch",2);Nn([F({type:String,reflect:!0,attribute:"trailing-icon"})],ti.prototype,"trailingIcon",2);Nn([pt()],ti.prototype,"selectedIndex",2);Nn([pt()],ti.prototype,"hasResults",2);Nn([pt()],ti.prototype,"query",2);Nn([pt()],ti.prototype,"innerOptions",2);Nn([F({type:Array})],ti.prototype,"options",2);exports.Menu=class extends Ue{render(){return ee` <slot></slot> `}};exports.Menu.styles=[Se`
2479
+
2480
+ input:focus-visible + brz-menu,
2481
+ .wrapper:focus-visible + brz-menu {
2482
+ outline: var(--brz-outline-color) var(--brz-outline-style)
2483
+ var(--brz-outline-width);
2484
+ outline-offset: var(--brz-outline-offset);
2485
+ transition: var(--brz-outline-transition);
2486
+ }
2487
+
2488
+ input[type='search']::-webkit-search-decoration,
2489
+ input[type='search']::-webkit-search-cancel-button,
2490
+ input[type='search']::-webkit-search-results-button,
2491
+ input[type='search']::-webkit-search-results-decoration {
2492
+ -webkit-appearance: none;
2493
+ }
2494
+
2495
+ input[type='search'] {
2496
+ border: none;
2497
+ display: inline;
2498
+ width: unset;
2499
+ min-width: 100px;
2500
+ flex-grow: 1;
2501
+ padding: calc(var(--brz-spacing-1) / 2) 0;
2502
+ }
2503
+
2504
+ .wrapper:hover {
2505
+ border-color: var(--input-hover-border-color);
2506
+ }
2507
+
2508
+ :host([readonly]) .wrapper {
2509
+ background-color: var(--input-readonly-background-color);
2510
+ border-color: var(--input-readonly-border-color);
2511
+ }
2512
+
2513
+ :host([invalid]) .wrapper:not(:focus):not(:focus-within) {
2514
+ border-color: var(--input-invalid-border-color);
2515
+ }
2516
+
2517
+ .wrapper:focus-within,
2518
+ .wrapper:focus {
2519
+ border-color: var(--input-focus-border-color);
2520
+ outline: none;
2521
+ }
2522
+ `];Nn([F({attribute:"can-search",type:Boolean,reflect:!0})],ti.prototype,"canSearch",2);Nn([F({type:String,reflect:!0,attribute:"trailing-icon"})],ti.prototype,"trailingIcon",2);Nn([pt()],ti.prototype,"selectedIndex",2);Nn([pt()],ti.prototype,"hasResults",2);Nn([pt()],ti.prototype,"query",2);Nn([pt()],ti.prototype,"innerOptions",2);Nn([F({type:Array})],ti.prototype,"options",2);exports.Menu=class extends Ue{render(){return ee` <slot></slot> `}};exports.Menu.styles=[ge`
2398
2523
  :host {
2399
2524
  --brz-list-max-height: 14rem;
2400
2525
  --brz-list-padding-y: var(--brz-spacing-1);
@@ -2414,7 +2539,7 @@ function print() { __p += __j.call(arguments, '') }
2414
2539
  overflow: hidden;
2415
2540
  overflow-y: auto;
2416
2541
  }
2417
- `];exports.Menu=Nn([Q(W2)],exports.Menu);exports.MenuItem=class extends Ue{constructor(){super(),this.disabled=!1,this.selected=!1,this.handleSelected=this.handleSelected.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleSelected)}handleSelected(r){this.disabled||(U2(this,"brz-select",{detail:{item:this}}),this.toggleable&&r.stopPropagation())}get labelTemplate(){return ee` <div class="label"><slot></slot></div> `}render(){return ee`
2542
+ `];exports.Menu=Nn([Q(K2)],exports.Menu);exports.MenuItem=class extends Ue{constructor(){super(),this.disabled=!1,this.selected=!1,this.handleSelected=this.handleSelected.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleSelected)}handleSelected(r){this.disabled||(X2(this,"brz-select",{detail:{item:this}}),this.toggleable&&r.stopPropagation())}get labelTemplate(){return ee` <div class="label"><slot></slot></div> `}render(){return ee`
2418
2543
  <div class="wrapper">
2419
2544
  ${this.toggleable?ee`
2420
2545
  <brz-input-checkbox
@@ -2426,7 +2551,7 @@ function print() { __p += __j.call(arguments, '') }
2426
2551
  </brz-input-checkbox>
2427
2552
  `:this.labelTemplate}
2428
2553
  </div>
2429
- `}};exports.MenuItem.styles=[Se`
2554
+ `}};exports.MenuItem.styles=[ge`
2430
2555
  :host {
2431
2556
  --menu-item-min-height: var(--brz-spacing-8);
2432
2557
  --menu-item-padding-y: calc(1.5 * var(--brz-spacing-1));
@@ -2450,7 +2575,7 @@ function print() { __p += __j.call(arguments, '') }
2450
2575
  padding: 0 var(--brz-spacing-3);
2451
2576
  }
2452
2577
 
2453
- .wrapper:hover,
2578
+ :host(:not([disabled])) .wrapper:hover,
2454
2579
  :host([selected]) .wrapper {
2455
2580
  background-color: var(--brz-color-neutral-250);
2456
2581
  }
@@ -2459,30 +2584,39 @@ function print() { __p += __j.call(arguments, '') }
2459
2584
  flex-basis: 100%;
2460
2585
  padding: var(--menu-item-padding-y) 0;
2461
2586
  }
2462
- `];Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Nn([F({type:String})],exports.MenuItem.prototype,"value",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=Nn([Q(y0)],exports.MenuItem);const U2=(r,n,o)=>{const c=new CustomEvent(n,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},o));return r.dispatchEvent(c),c};var C8=Object.defineProperty,w8=Object.getOwnPropertyDescriptor,R0=(r,n,o,c)=>{for(var f=c>1?void 0:c?w8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&C8(n,o,f),f};const Y2=Ee("input-select");exports.InputSelect=class extends ti{constructor(){super(...arguments),this.query="",this.hasResults=!1}handleChangeSearch(r){const n=r.target;this.query&&n.value===this.query||(this.isDropdownOpen()||this.openDropdown(),this.selectedIndex=0,this.query=n==null?void 0:n.value)}handleCloseDropdown(){window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.clearKeySelectedItem(),this.selectedIndex=-1},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(r){this.setValue(r.detail.item.value),this.closeDropdown()}get queryInput(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("input#selectSearch")}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}renderReferenceElement(){var r;return this.search(),this.canSearch?ee`<input
2463
- id="selectSearch"
2464
- type="text"
2465
- placeholder=${Vt(this.placeholder)}
2466
- @input="${this.handleChangeSearch}"
2467
- @keydown="${this.handleKeydown}"
2468
- ?readonly=${this.readonly}
2469
- value=${(r=this.valueLabel)!=null?r:""}
2470
- aria-invalid=${Vt(this.invalid?this.invalid:void 0)}
2471
- />`:ee`<div
2472
- class="wrapper"
2473
- aria-invalid=${Vt(this.invalid?this.invalid:void 0)}
2474
- @keydown="${this.handleKeydown}"
2475
- tabindex="0"
2476
- >
2477
- ${this.value?ee`<span>${this.valueLabel}</span>`:this.placeholder?ee`<span class="placeholder">${this.placeholder}</span>`:null}
2478
- </div>`}renderDropdownContent(){return ee`
2587
+ `];Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Nn([F({type:String})],exports.MenuItem.prototype,"value",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=Nn([Q(C0)],exports.MenuItem);const X2=(r,n,o)=>{const c=new CustomEvent(n,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},o));return r.dispatchEvent(c),c};var k8=Object.defineProperty,M8=Object.getOwnPropertyDescriptor,$0=(r,n,o,c)=>{for(var f=c>1?void 0:c?M8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&k8(n,o,f),f};const Q2=Ee("input-select");exports.InputSelect=class extends ti{constructor(){super(...arguments),this.query="",this.hasResults=!1}handleChangeSearch(r){const n=r.target;this.query&&n.value===this.query||(this.isDropdownOpen()||this.openDropdown(),this.selectedIndex=0,this.query=n==null?void 0:n.value)}handleCloseDropdown(){window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.clearKeySelectedItem(),this.selectedIndex=-1},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(r){this.setValue(r.detail.item.value),this.closeDropdown()}get queryInput(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("input#selectSearch")}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}renderReferenceElement(){var r;return this.search(),ee`
2588
+ <div class="wrapper" @keydown="${this.handleKeydown}" tabindex="0">
2589
+ ${this.canSearch?null:ee`
2590
+ <span class=${this.value?"":"placeholder"}>
2591
+ ${this.valueLabel||this.placeholder}
2592
+ </span>
2593
+ `}
2594
+ ${!this.readonly&&this.canSearch?ee`
2595
+ <input
2596
+ id="selectSearch"
2597
+ type="search"
2598
+ placeholder=${qt(this.placeholder)}
2599
+ @input="${this.handleChangeSearch}"
2600
+ @keydown="${this.handleKeydown}"
2601
+ ?readonly=${this.readonly}
2602
+ value=${(r=this.valueLabel)!=null?r:""}
2603
+ aria-invalid=${qt(this.invalid?this.invalid:void 0)}
2604
+ class="search-area"
2605
+ />
2606
+ `:null}
2607
+ </div>
2608
+ `}renderDropdownContent(){return ee`
2479
2609
  ${this.hasQueryResults?null:this.renderNoResultsMessage()}
2480
2610
  ${this.isDataDriven?this.renderOptionsData():ee`<slot @slotchange=${this.handleValueChange}></slot>`}
2481
- `}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{var f;if("id"in o&&o.id===Xd)return;if(!r||r===((f=this.valueLabel)==null?void 0:f.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}disconnectedCallback(){var r;(r=this.selectedOptionObserver)==null||r.disconnect(),super.disconnectedCallback()}syncValueLabel(r){var o,c;if((o=this.selectedOptionObserver)==null||o.disconnect(),this.isDataDriven&&this.readonly){this.valueLabel=(c=this.innerOptions.find(f=>f.value===r))==null?void 0:c.label;return}const n=this.optionElements.find(f=>f.value===r);n&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(n),this.resetSearch()}),n instanceof Node&&this.selectedOptionObserver.observe(n,{characterData:!1,childList:!0,attributes:!1}),this.valueLabel=this.getItemLabel(n))}};exports.InputSelect.styles=[...ti.styles,Se`
2611
+ `}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{var f;if("id"in o&&o.id===eh)return;if(!r||r===((f=this.valueLabel)==null?void 0:f.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}disconnectedCallback(){var r;(r=this.selectedOptionObserver)==null||r.disconnect(),super.disconnectedCallback()}syncValueLabel(r){var o,c;if((o=this.selectedOptionObserver)==null||o.disconnect(),this.isDataDriven&&this.readonly){this.valueLabel=(c=this.innerOptions.find(f=>f.value===r))==null?void 0:c.label;return}const n=this.optionElements.find(f=>f.value===r);n&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(n),this.resetSearch()}),n instanceof Node&&this.selectedOptionObserver.observe(n,{characterData:!1,childList:!0,attributes:!1}),this.valueLabel=this.getItemLabel(n))}};exports.InputSelect.styles=[...ti.styles,ge`
2482
2612
  input {
2483
2613
  text-overflow: ellipsis;
2484
2614
  }
2485
2615
 
2616
+ input:hover {
2617
+ cursor: text;
2618
+ }
2619
+
2486
2620
  .wrapper {
2487
2621
  position: relative;
2488
2622
  height: 36px;
@@ -2505,29 +2639,10 @@ function print() { __p += __j.call(arguments, '') }
2505
2639
  white-space: nowrap;
2506
2640
  }
2507
2641
 
2508
- .wrapper:hover {
2509
- border-color: var(--input-hover-border-color);
2510
- }
2511
-
2512
- :host([readonly]) .wrapper {
2513
- background-color: var(--input-readonly-background-color);
2514
- border-color: transparent;
2515
- }
2516
-
2517
- :host([invalid]) .wrapper {
2518
- border-color: var(--input-invalid-border-color);
2519
- }
2520
-
2521
- .wrapper:focus-within,
2522
- .wrapper:focus {
2523
- border-color: var(--input-focus-border-color);
2524
- outline: none;
2525
- }
2526
-
2527
2642
  .placeholder {
2528
2643
  color: var(--input-placeholder-font-color);
2529
2644
  }
2530
- `];R0([F({type:String})],exports.InputSelect.prototype,"value",2);R0([pt()],exports.InputSelect.prototype,"query",2);R0([pt()],exports.InputSelect.prototype,"valueLabel",2);R0([pt()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=R0([Q(Y2)],exports.InputSelect);var x8=Object.defineProperty,L8=Object.getOwnPropertyDescriptor,Fi=(r,n,o,c)=>{for(var f=c>1?void 0:c?L8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&x8(n,o,f),f};const Z2=Ee("lozenge"),_8=["neutral","green","orange","red","cyan","purple","sapphire"],z8=["solid","subtle","border"],S8=["small","medium","large"];class V2 extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Ue{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(r){r.stopPropagation(),this.dispatchEvent(new V2)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var r;return this.updateComplete.then(()=>this.checkOverflow()),ee`
2645
+ `];$0([F({type:String})],exports.InputSelect.prototype,"value",2);$0([pt()],exports.InputSelect.prototype,"query",2);$0([pt()],exports.InputSelect.prototype,"valueLabel",2);$0([pt()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=$0([Q(Q2)],exports.InputSelect);var O8=Object.defineProperty,T8=Object.getOwnPropertyDescriptor,Wi=(r,n,o,c)=>{for(var f=c>1?void 0:c?T8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&O8(n,o,f),f};const J2=Ee("lozenge"),P8=["neutral","green","orange","red","cyan","purple","sapphire"],A8=["solid","subtle","border"],E8=["small","medium","large"];class e4 extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Ue{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(r){r.stopPropagation(),this.dispatchEvent(new e4)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var r;return this.updateComplete.then(()=>this.checkOverflow()),ee`
2531
2646
  <brz-tooltip
2532
2647
  content=${(r=this.defaultSlot[0])==null?void 0:r.textContent}
2533
2648
  ?disabled=${!this.isOverflowing}
@@ -2542,18 +2657,22 @@ function print() { __p += __j.call(arguments, '') }
2542
2657
 
2543
2658
  ${this.canDelete?ee`
2544
2659
  <button
2660
+ type="button"
2545
2661
  class="close"
2662
+ aria-label="Remove"
2546
2663
  ?disabled=${this.disabled}
2547
2664
  @click=${this.disabled?null:this._handleDeleteClick}
2548
2665
  >
2549
- <brz-icon size="8" icon="remove"></brz-icon>
2666
+ <brz-icon size="20" icon="remove"></brz-icon>
2550
2667
  </button>
2551
2668
  `:null}
2552
2669
  </div>
2553
2670
  </brz-tooltip>
2554
- `}};exports.Lozenge.styles=Se`
2671
+ `}};exports.Lozenge.styles=ge`
2555
2672
  :host {
2556
2673
  --brz-lozenge-max-width: calc(3 * var(--brz-spacing-16));
2674
+ --brz-lozenge-color-primary: var(--brz-color-neutral-750);
2675
+ --brz-lozenge-color-muted: var(--brz-color-neutral-250);
2557
2676
 
2558
2677
  display: inline-flex;
2559
2678
  vertical-align: middle;
@@ -2561,8 +2680,10 @@ function print() { __p += __j.call(arguments, '') }
2561
2680
 
2562
2681
  :host .lozenge {
2563
2682
  align-items: center;
2683
+ background-color: var(--brz-lozenge-background-color);
2564
2684
  border-radius: var(--brz-border-radius-default);
2565
2685
  box-sizing: border-box;
2686
+ color: var(--brz-lozenge-color);
2566
2687
  column-gap: var(--brz-spacing-1);
2567
2688
  display: flex;
2568
2689
  font-size: var(--brz-lozenge-font-size);
@@ -2578,76 +2699,64 @@ function print() { __p += __j.call(arguments, '') }
2578
2699
  --brz-lozenge-max-width: auto;
2579
2700
  }
2580
2701
 
2581
- :host([color='green']) .lozenge {
2582
- --primary: var(--brz-color-green-600);
2583
- --muted: var(--brz-color-green-100);
2584
- }
2585
-
2586
- :host([color='orange']) .lozenge {
2587
- --primary: var(--brz-color-orange-600);
2588
- --muted: var(--brz-color-orange-100);
2702
+ :host([color='green']) {
2703
+ --brz-lozenge-color-primary: var(--brz-color-green-600);
2704
+ --brz-lozenge-color-muted: var(--brz-color-green-100);
2589
2705
  }
2590
2706
 
2591
- :host([color='red']) .lozenge {
2592
- --primary: var(--brz-color-red-600);
2593
- --muted: var(--brz-color-red-100);
2707
+ :host([color='orange']) {
2708
+ --brz-lozenge-color-primary: var(--brz-color-orange-600);
2709
+ --brz-lozenge-color-muted: var(--brz-color-orange-100);
2594
2710
  }
2595
2711
 
2596
- :host([color='cyan']) .lozenge {
2597
- --primary: var(--brz-color-cyan-600);
2598
- --muted: var(--brz-color-cyan-100);
2712
+ :host([color='red']) {
2713
+ --brz-lozenge-color-primary: var(--brz-color-red-600);
2714
+ --brz-lozenge-color-muted: var(--brz-color-red-100);
2599
2715
  }
2600
2716
 
2601
- :host([color='sapphire']) .lozenge {
2602
- --primary: var(--brz-color-sapphire-600);
2603
- --muted: var(--brz-color-sapphire-100);
2717
+ :host([color='cyan']) {
2718
+ --brz-lozenge-color-primary: var(--brz-color-cyan-600);
2719
+ --brz-lozenge-color-muted: var(--brz-color-cyan-100);
2604
2720
  }
2605
2721
 
2606
- :host([color='purple']) .lozenge {
2607
- --primary: var(--brz-color-purple-600);
2608
- --muted: var(--brz-color-purple-100);
2722
+ :host([color='sapphire']) {
2723
+ --brz-lozenge-color-primary: var(--brz-color-sapphire-600);
2724
+ --brz-lozenge-color-muted: var(--brz-color-sapphire-100);
2609
2725
  }
2610
2726
 
2611
- :host([color='neutral']) .lozenge {
2612
- --primary: var(--brz-color-neutral-750);
2613
- --muted: var(--brz-color-neutral-250);
2727
+ :host([color='purple']) {
2728
+ --brz-lozenge-color-primary: var(--brz-color-purple-600);
2729
+ --brz-lozenge-color-muted: var(--brz-color-purple-100);
2614
2730
  }
2615
2731
 
2616
- :host([can-delete]) .lozenge {
2617
- --primary: var(--brz-color-neutral-750);
2732
+ :host([color='neutral']) {
2733
+ --brz-lozenge-color-primary: var(--brz-color-neutral-750);
2734
+ --brz-lozenge-color-muted: var(--brz-color-neutral-250);
2618
2735
  }
2619
2736
 
2620
- :host([theme='subtle']) .lozenge,
2621
- :host([can-delete]) + :host([theme='subtle']) .lozenge {
2622
- color: var(--primary);
2623
- background-color: var(--muted);
2737
+ :host([theme='solid']) {
2738
+ --brz-lozenge-background-color: var(--brz-lozenge-color-primary);
2739
+ --brz-lozenge-color: var(--brz-color-white);
2740
+ --brz-outline-color: var(--brz-color-white);
2624
2741
  }
2625
2742
 
2626
- :host([theme='subtle']) .lozenge .close {
2627
- color: var(--brz-color-neutral-550);
2743
+ :host([theme='subtle']) {
2744
+ --brz-lozenge-background-color: var(--brz-lozenge-color-muted);
2745
+ --brz-lozenge-color: var(--brz-lozenge-color-primary);
2628
2746
  }
2629
2747
 
2630
- :host([theme='subtle']) .lozenge .close:hover {
2631
- color: var(--brz-color-neutral-700);
2748
+ :host([theme='border']) {
2749
+ --brz-lozenge-background-color: transparent;
2750
+ --brz-lozenge-color: var(--brz-lozenge-color-primary);
2632
2751
  }
2633
2752
 
2634
2753
  :host([theme='border']) .lozenge {
2635
- border: 1px solid var(--primary);
2636
- color: var(--primary);
2754
+ border: 1px solid var(--brz-lozenge-color-primary);
2637
2755
  }
2638
2756
 
2639
- :host([theme='solid']) .lozenge,
2640
- :host([can-delete]) + :host([theme='solid']) .lozenge {
2641
- background-color: var(--primary);
2642
- color: var(--brz-color-white);
2643
- }
2644
-
2645
- :host([theme='solid']):host(:not([disabled])) .lozenge .close {
2646
- color: var(--brz-color-neutral-350);
2647
- }
2648
-
2649
- :host([theme='solid']):host(:not([disabled])) .lozenge .close:hover {
2650
- color: var(--brz-color-neutral-0);
2757
+ :host([disabled]) {
2758
+ --brz-lozenge-background-color: var(--brz-color-neutral-250);
2759
+ --brz-lozenge-color: var(--brz-color-neutral-650);
2651
2760
  }
2652
2761
 
2653
2762
  :host([size='small']) {
@@ -2685,50 +2794,53 @@ function print() { __p += __j.call(arguments, '') }
2685
2794
  margin-right: var(--brz-spacing-2);
2686
2795
  }
2687
2796
 
2688
- .close {
2689
- background: none;
2690
- border: none;
2691
- color: var(--brz-color-neutral-450);
2692
- cursor: pointer;
2693
- display: inline-flex;
2694
- font: inherit;
2695
- margin-left: calc(var(--brz-spacing-3) / 2);
2696
- outline: inherit;
2697
- padding: 0;
2797
+ ${n2(".close",ge`
2798
+ margin-right: calc(0px - var(--brz-spacing-1));
2799
+ `)}
2800
+
2801
+ :host([theme='solid'][color="neutral"]):host(:not([disabled])) .lozenge .close {
2802
+ color: var(--brz-color-neutral-350);
2698
2803
  }
2699
2804
 
2700
- :host([disabled]) .lozenge {
2701
- background-color: var(--brz-color-neutral-250);
2702
- color: var(--brz-color-neutral-650);
2805
+ :host([theme='solid'][color='neutral']):host(:not([disabled]))
2806
+ .lozenge
2807
+ .close:hover {
2808
+ color: var(--brz-color-neutral-0);
2703
2809
  }
2704
2810
 
2705
- :host(:not([disabled])).close:hover {
2706
- color: var(--brz-color-white);
2811
+ :host([disabled]) .close {
2812
+ color: var(--brz-color-neutral-550);
2813
+ cursor: unset;
2707
2814
  }
2708
- `;Fi([F({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Fi([F({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Fi([F({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Fi([F({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Fi([F({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Fi([F({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Fi([F({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Fi([Sg()],exports.Lozenge.prototype,"defaultSlot",2);Fi([Lg(".message")],exports.Lozenge.prototype,"message",2);Fi([pt()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Fi([Q(Z2)],exports.Lozenge);var M8=Object.defineProperty,k8=Object.getOwnPropertyDescriptor,N0=(r,n,o,c)=>{for(var f=c>1?void 0:c?k8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&M8(n,o,f),f};const G2=Ee("input-multiselect"),ta="selectAll";exports.InputMultiselect=class extends ti{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}connectedCallback(){super.connectedCallback(),this.keyBindings.Backspace=r=>{var n;!((n=r.target)!=null&&n.value)&&!this.readonly&&this.removeLastValue()},this.keyBindings.Enter=()=>{if(!this.isDropdownOpen()){this.openDropdown();return}const r=this.getItems()[this.selectedIndex];if(r.id===ta){this.toggleAllSelected();return}r&&!r.disabled&&this.toggleSelection(r.value),r&&r.disabled}}firstUpdated(){super.firstUpdated(),this.isDataDriven&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:r,toggled:n}=[...this.getItems()].reduce((o,c)=>c.id===ta?o:{enabled:c.disabled?o.enabled:o.enabled+1,toggled:c.toggled?o.toggled+1:o.toggled},{enabled:0,toggled:0});return r===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){window.setTimeout(()=>{this.clearKeySelectedItem(),this.resetSearch(),this.selectedIndex=-1},200)}handleValueChange(){this.syncValueLabels()}handleSelect(r){if(r.detail.item.id===ta){this.toggleAllSelected();return}this.toggleSelection(r.detail.item.value)}toggleAllSelected(){const r=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==ta&&r.push(n.value)}),this.setValue(r)}toggleSelection(r){const n=this.value?[...this.value]:[],o=n.indexOf(r);o>-1&&n.splice(o,1),o===-1&&n.push(r),this.setValue(n)}applyToggleStatusToChildren(){this.getItems().forEach(r=>{r.toggleable=!0;const n=this.value&&this.value.includes(r.value);r.toggled=r.id===ta?this.allSelected:n})}onQueryChange({target:r}){this.isDropdownOpen()||this.openDropdown(),this.query=r==null?void 0:r.value}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?ee`<span class="truncation"
2815
+ `;Wi([F({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Wi([F({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Wi([F({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Wi([F({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Wi([F({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Wi([F({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Wi([F({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Wi([t2()],exports.Lozenge.prototype,"defaultSlot",2);Wi([Pg(".message")],exports.Lozenge.prototype,"message",2);Wi([pt()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Wi([Q(J2)],exports.Lozenge);var I8=Object.defineProperty,D8=Object.getOwnPropertyDescriptor,H0=(r,n,o,c)=>{for(var f=c>1?void 0:c?D8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&I8(n,o,f),f};const t4=Ee("input-multiselect"),ta="selectAll";exports.InputMultiselect=class extends ti{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}connectedCallback(){super.connectedCallback(),this.keyBindings.Backspace=r=>{var n;!((n=r.target)!=null&&n.value)&&!this.readonly&&this.removeLastValue()},this.keyBindings.Enter=()=>{if(!this.isDropdownOpen()){this.openDropdown();return}const r=this.getItems()[this.selectedIndex];if(r.id===ta){this.toggleAllSelected();return}r&&!r.disabled&&this.toggleSelection(r.value),r&&r.disabled}}firstUpdated(){super.firstUpdated(),this.isDataDriven&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:r,toggled:n}=[...this.getItems()].reduce((o,c)=>c.id===ta?o:{enabled:c.disabled?o.enabled:o.enabled+1,toggled:c.toggled?o.toggled+1:o.toggled},{enabled:0,toggled:0});return r===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){window.setTimeout(()=>{this.clearKeySelectedItem(),this.resetSearch(),this.selectedIndex=-1},200)}handleValueChange(){this.syncValueLabels()}handleSelect(r){if(r.detail.item.id===ta){this.toggleAllSelected();return}this.toggleSelection(r.detail.item.value)}toggleAllSelected(){const r=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==ta&&r.push(n.value)}),this.setValue(r)}toggleSelection(r){const n=this.value?[...this.value]:[],o=n.indexOf(r);o>-1&&n.splice(o,1),o===-1&&n.push(r),this.setValue(n)}applyToggleStatusToChildren(){this.getItems().forEach(r=>{r.toggleable=!0;const n=this.value&&this.value.includes(r.value);r.toggled=r.id===ta?this.allSelected:n})}onQueryChange({target:r}){this.isDropdownOpen()||this.openDropdown(),this.query=r==null?void 0:r.value}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?ee`<span class="truncation"
2709
2816
  >+${this.value.length-this.truncateValuesAfter} more</span
2710
- >`:null}renderReferenceElement(){return this.applyToggleStatusToChildren(),this.search(),ee` <div
2711
- class="wrapper"
2712
- @keydown="${this.handleKeydown}"
2713
- tabindex="0"
2714
- >
2715
- ${!this.canSearch&&this.valueLabels.length===0?ee`<div class="placeholder">${this.placeholder}</div>`:void 0}
2716
- ${this.valueLabels.map(({value:r,label:n})=>ee`<brz-lozenge
2717
- size="small"
2718
- color="neutral"
2719
- theme="subtle"
2720
- @brz-lozenge-delete="${()=>{this.readonly||this.toggleSelection(r)}}"
2721
- can-delete
2722
- >${n}</brz-lozenge
2723
- >`)}
2724
- ${this.truncation}
2725
- ${!this.readonly&&this.canSearch?ee`<input
2726
- value=${this.query}
2727
- @input=${this.onQueryChange}
2728
- placeholder="${Vt(this.placeholder)}"
2729
- class="search-area"
2730
- />`:null}
2731
- </div>`}get selectAllOption(){return{id:ta,value:ta,label:"Select all",toggleable:!0,toggled:this.allSelected}}get selectAllOptionElement(){const{id:r,value:n,label:o,toggleable:c,toggled:f}=this.selectAllOption;return ee`
2817
+ >`:null}renderReferenceElement(){return this.applyToggleStatusToChildren(),this.search(),ee`
2818
+ <div class="wrapper" @keydown="${this.handleKeydown}" tabindex="0">
2819
+ ${!this.canSearch&&this.valueLabels.length===0?ee` <div class="placeholder">${this.placeholder}</div> `:void 0}
2820
+ ${this.valueLabels.map(({value:r,label:n})=>ee`
2821
+ <brz-lozenge
2822
+ size="small"
2823
+ color="neutral"
2824
+ theme="subtle"
2825
+ ?disabled=${this.readonly}
2826
+ @brz-lozenge-delete="${()=>{this.readonly||this.toggleSelection(r)}}"
2827
+ can-delete
2828
+ >
2829
+ ${n}
2830
+ </brz-lozenge>
2831
+ `)}
2832
+ ${this.truncation}
2833
+ ${!this.readonly&&this.canSearch?ee`
2834
+ <input
2835
+ type="search"
2836
+ value=${this.query}
2837
+ @input=${this.onQueryChange}
2838
+ placeholder="${qt(this.placeholder)}"
2839
+ class="search-area"
2840
+ />
2841
+ `:null}
2842
+ </div>
2843
+ `}get selectAllOption(){return{id:ta,value:ta,label:"Select all",toggleable:!0,toggled:this.allSelected}}get selectAllOptionElement(){const{id:r,value:n,label:o,toggleable:c,toggled:f}=this.selectAllOption;return ee`
2732
2844
  <brz-menu-item
2733
2845
  id=${r}
2734
2846
  ?toggleable=${c}
@@ -2740,74 +2852,67 @@ function print() { __p += __j.call(arguments, '') }
2740
2852
  `}renderDropdownContent(){return ee`
2741
2853
  ${this.hasQueryResults?null:this.renderNoResultsMessage()}
2742
2854
  ${this.isDataDriven?this.renderOptionsData():ee` ${this.selectAllOptionElement} <slot></slot> `}
2743
- `}removeLastValue(){var r;(r=this.value)==null||r.pop(),this.handleValueChange()}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{if(!r){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}getItems(){var n,o;const r=super.getItems();return this.isDataDriven?r:[((n=this.renderRoot)==null?void 0:n.querySelector(`brz-menu-item#${ta}`))||((o=this.renderRoot)==null?void 0:o.querySelector(`sp-menu-item#${ta}`))||{},...r]}syncValueLabels(){const r=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(n=>({label:this.getItemLabel(r.find(o=>o.value===n)),value:n})):[],this.render()}};exports.InputMultiselect.styles=[...ti.styles,Se`
2855
+ `}removeLastValue(){var r;(r=this.value)==null||r.pop(),this.handleValueChange()}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{if(!r){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}getItems(){var n,o;const r=super.getItems();return this.isDataDriven?r:[((n=this.renderRoot)==null?void 0:n.querySelector(`brz-menu-item#${ta}`))||((o=this.renderRoot)==null?void 0:o.querySelector(`sp-menu-item#${ta}`))||{},...r]}syncValueLabels(){const r=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(n=>({label:this.getItemLabel(r.find(o=>o.value===n)),value:n})):[],this.render()}};exports.InputMultiselect.styles=[...ti.styles,ge`
2856
+ :host {
2857
+ --brz-input-multiselect-padding-y: calc(
2858
+ (var(--brz-spacing-3) / 2) - var(--input-border-width)
2859
+ );
2860
+ }
2861
+
2744
2862
  .wrapper {
2745
2863
  position: relative;
2746
2864
  min-height: 36px;
2747
-
2748
2865
  box-sizing: border-box;
2749
-
2750
- padding: var(--brz-spacing-1);
2866
+ padding-top: var(--brz-input-multiselect-padding-y);
2867
+ padding-bottom: var(--brz-input-multiselect-padding-y);
2868
+ padding-left: var(--brz-spacing-2);
2869
+ /** TODO: It would be nice if we could support this decorator behaviour on all input fields */
2870
+ padding-right: var(--dropdown-decorator-offset);
2751
2871
  border: var(--input-border);
2752
2872
  border-radius: var(--brz-border-radius-default);
2753
2873
  font-size: var(--brz-font-size);
2754
2874
  font-family: var(--input-font);
2755
2875
  color: var(--input-text-color);
2756
-
2757
- /** TODO: It would be nice if we could support this decorator behaviour on all input fields **/
2758
- padding-right: var(--dropdown-decorator-offset);
2759
-
2760
2876
  display: flex;
2761
2877
  grid-gap: var(--brz-spacing-1);
2762
2878
  flex-wrap: wrap;
2763
2879
  }
2764
2880
 
2765
- .wrapper:hover {
2766
- border-color: var(--input-hover-border-color);
2767
- }
2768
-
2769
- :host([readonly]) .wrapper {
2770
- background-color: var(--input-readonly-background-color);
2771
- border: var(--input-readonly-border);
2772
- }
2773
-
2774
- :host([invalid]) .wrapper {
2775
- border-color: var(--input-invalid-border-color);
2776
- }
2777
-
2778
- .wrapper:focus-within,
2779
- .wrapper:focus {
2780
- border-color: var(--input-focus-border-color);
2781
- outline: none;
2881
+ input:hover {
2882
+ cursor: text;
2782
2883
  }
2783
2884
 
2784
- .search-area,
2785
2885
  .truncation {
2786
2886
  border: none;
2787
2887
  display: inline;
2788
2888
  width: unset;
2789
2889
  min-width: 100px;
2790
2890
  flex-grow: 1;
2791
- padding: var(--brz-spacing-1);
2891
+ padding: calc(var(--brz-spacing-1) / 2) 0;
2792
2892
  }
2793
2893
 
2794
2894
  .placeholder {
2795
- padding: var(--brz-spacing-1);
2895
+ padding: calc(var(--brz-spacing-1) / 2) 0;
2796
2896
  color: var(--input-placeholder-font-color);
2797
2897
  }
2798
- `];N0([F({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);N0([F({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);N0([F({type:Array})],exports.InputMultiselect.prototype,"value",2);N0([pt()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=N0([Q(G2)],exports.InputMultiselect);//! moment.js
2898
+
2899
+ brz-lozenge {
2900
+ --brz-lozenge-background-color: var(--brz-color-neutral-300);
2901
+ --brz-lozenge-color: var(--brz-color-neutral-850);
2902
+ }
2903
+ `];H0([F({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);H0([F({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);H0([F({type:Array})],exports.InputMultiselect.prototype,"value",2);H0([pt()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=H0([Q(t4)],exports.InputMultiselect);//! moment.js
2799
2904
  //! version : 2.29.4
2800
2905
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
2801
2906
  //! license : MIT
2802
2907
  //! momentjs.com
2803
- var q2;function ze(){return q2.apply(null,arguments)}function O8(r){q2=r}function Hi(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Vs(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Tt(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function Qd(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var n;for(n in r)if(Tt(r,n))return!1;return!0}function En(r){return r===void 0}function la(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function $0(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function j2(r,n){var o=[],c,f=r.length;for(c=0;c<f;++c)o.push(n(r[c],c));return o}function ja(r,n){for(var o in n)Tt(n,o)&&(r[o]=n[o]);return Tt(n,"toString")&&(r.toString=n.toString),Tt(n,"valueOf")&&(r.valueOf=n.valueOf),r}function zo(r,n,o,c){return y4(r,n,o,c,!0).utc()}function T8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ht(r){return r._pf==null&&(r._pf=T8()),r._pf}var _d;Array.prototype.some?_d=Array.prototype.some:_d=function(r){var n=Object(this),o=n.length>>>0,c;for(c=0;c<o;c++)if(c in n&&r.call(this,n[c],c,n))return!0;return!1};function Jd(r){if(r._isValid==null){var n=ht(r),o=_d.call(n.parsedDateParts,function(f){return f!=null}),c=!isNaN(r._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&o);if(r._strict&&(c=c&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=c;else return c}return r._isValid}function B1(r){var n=zo(NaN);return r!=null?ja(ht(n),r):ht(n).userInvalidated=!0,n}var Pp=ze.momentProperties=[],dd=!1;function eh(r,n){var o,c,f,p=Pp.length;if(En(n._isAMomentObject)||(r._isAMomentObject=n._isAMomentObject),En(n._i)||(r._i=n._i),En(n._f)||(r._f=n._f),En(n._l)||(r._l=n._l),En(n._strict)||(r._strict=n._strict),En(n._tzm)||(r._tzm=n._tzm),En(n._isUTC)||(r._isUTC=n._isUTC),En(n._offset)||(r._offset=n._offset),En(n._pf)||(r._pf=ht(n)),En(n._locale)||(r._locale=n._locale),p>0)for(o=0;o<p;o++)c=Pp[o],f=n[c],En(f)||(r[c]=f);return r}function H0(r){eh(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),dd===!1&&(dd=!0,ze.updateOffset(this),dd=!1)}function Bi(r){return r instanceof H0||r!=null&&r._isAMomentObject!=null}function K2(r){ze.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function Ci(r,n){var o=!0;return ja(function(){if(ze.deprecationHandler!=null&&ze.deprecationHandler(null,r),o){var c=[],f,p,b,k=arguments.length;for(p=0;p<k;p++){if(f="",typeof arguments[p]=="object"){f+=`
2804
- [`+p+"] ";for(b in arguments[0])Tt(arguments[0],b)&&(f+=b+": "+arguments[0][b]+", ");f=f.slice(0,-2)}else f=arguments[p];c.push(f)}K2(r+`
2908
+ var r4;function Se(){return r4.apply(null,arguments)}function R8(r){r4=r}function Bi(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Gs(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Tt(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function th(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var n;for(n in r)if(Tt(r,n))return!1;return!0}function En(r){return r===void 0}function la(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function B0(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function n4(r,n){var o=[],c,f=r.length;for(c=0;c<f;++c)o.push(n(r[c],c));return o}function qa(r,n){for(var o in n)Tt(n,o)&&(r[o]=n[o]);return Tt(n,"toString")&&(r.toString=n.toString),Tt(n,"valueOf")&&(r.valueOf=n.valueOf),r}function _o(r,n,o,c){return k4(r,n,o,c,!0).utc()}function N8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ht(r){return r._pf==null&&(r._pf=N8()),r._pf}var kd;Array.prototype.some?kd=Array.prototype.some:kd=function(r){var n=Object(this),o=n.length>>>0,c;for(c=0;c<o;c++)if(c in n&&r.call(this,n[c],c,n))return!0;return!1};function rh(r){if(r._isValid==null){var n=ht(r),o=kd.call(n.parsedDateParts,function(f){return f!=null}),c=!isNaN(r._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&o);if(r._strict&&(c=c&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=c;else return c}return r._isValid}function W1(r){var n=_o(NaN);return r!=null?qa(ht(n),r):ht(n).userInvalidated=!0,n}var Np=Se.momentProperties=[],gd=!1;function nh(r,n){var o,c,f,p=Np.length;if(En(n._isAMomentObject)||(r._isAMomentObject=n._isAMomentObject),En(n._i)||(r._i=n._i),En(n._f)||(r._f=n._f),En(n._l)||(r._l=n._l),En(n._strict)||(r._strict=n._strict),En(n._tzm)||(r._tzm=n._tzm),En(n._isUTC)||(r._isUTC=n._isUTC),En(n._offset)||(r._offset=n._offset),En(n._pf)||(r._pf=ht(n)),En(n._locale)||(r._locale=n._locale),p>0)for(o=0;o<p;o++)c=Np[o],f=n[c],En(f)||(r[c]=f);return r}function F0(r){nh(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),gd===!1&&(gd=!0,Se.updateOffset(this),gd=!1)}function Fi(r){return r instanceof F0||r!=null&&r._isAMomentObject!=null}function i4(r){Se.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function wi(r,n){var o=!0;return qa(function(){if(Se.deprecationHandler!=null&&Se.deprecationHandler(null,r),o){var c=[],f,p,b,M=arguments.length;for(p=0;p<M;p++){if(f="",typeof arguments[p]=="object"){f+=`
2909
+ [`+p+"] ";for(b in arguments[0])Tt(arguments[0],b)&&(f+=b+": "+arguments[0][b]+", ");f=f.slice(0,-2)}else f=arguments[p];c.push(f)}i4(r+`
2805
2910
  Arguments: `+Array.prototype.slice.call(c).join("")+`
2806
- `+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var Ap={};function X2(r,n){ze.deprecationHandler!=null&&ze.deprecationHandler(r,n),Ap[r]||(K2(n),Ap[r]=!0)}ze.suppressDeprecationWarnings=!1;ze.deprecationHandler=null;function So(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function P8(r){var n,o;for(o in r)Tt(r,o)&&(n=r[o],So(n)?this[o]=n:this["_"+o]=n);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function zd(r,n){var o=ja({},r),c;for(c in n)Tt(n,c)&&(Vs(r[c])&&Vs(n[c])?(o[c]={},ja(o[c],r[c]),ja(o[c],n[c])):n[c]!=null?o[c]=n[c]:delete o[c]);for(c in r)Tt(r,c)&&!Tt(n,c)&&Vs(r[c])&&(o[c]=ja({},o[c]));return o}function th(r){r!=null&&this.set(r)}var Sd;Object.keys?Sd=Object.keys:Sd=function(r){var n,o=[];for(n in r)Tt(r,n)&&o.push(n);return o};var A8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function E8(r,n,o){var c=this._calendar[r]||this._calendar.sameElse;return So(c)?c.call(n,o):c}function Co(r,n,o){var c=""+Math.abs(r),f=n-c.length,p=r>=0;return(p?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+c}var rh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,d1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hd={},ru={};function Ve(r,n,o,c){var f=c;typeof c=="string"&&(f=function(){return this[c]()}),r&&(ru[r]=f),n&&(ru[n[0]]=function(){return Co(f.apply(this,arguments),n[1],n[2])}),o&&(ru[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function I8(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function D8(r){var n=r.match(rh),o,c;for(o=0,c=n.length;o<c;o++)ru[n[o]]?n[o]=ru[n[o]]:n[o]=I8(n[o]);return function(f){var p="",b;for(b=0;b<c;b++)p+=So(n[b])?n[b].call(f,r):n[b];return p}}function v1(r,n){return r.isValid()?(n=Q2(n,r.localeData()),hd[n]=hd[n]||D8(n),hd[n](r)):r.localeData().invalidDate()}function Q2(r,n){var o=5;function c(f){return n.longDateFormat(f)||f}for(d1.lastIndex=0;o>=0&&d1.test(r);)r=r.replace(d1,c),d1.lastIndex=0,o-=1;return r}var R8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function N8(r){var n=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return n||!o?n:(this._longDateFormat[r]=o.match(rh).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[r])}var $8="Invalid date";function H8(){return this._invalidDate}var B8="%d",F8=/\d{1,2}/;function W8(r){return this._ordinal.replace("%d",r)}var U8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Y8(r,n,o,c){var f=this._relativeTime[o];return So(f)?f(r,n,o,c):f.replace(/%d/i,r)}function Z8(r,n){var o=this._relativeTime[r>0?"future":"past"];return So(o)?o(n):o.replace(/%s/i,n)}var C0={};function cn(r,n){var o=r.toLowerCase();C0[o]=C0[o+"s"]=C0[n]=r}function wi(r){return typeof r=="string"?C0[r]||C0[r.toLowerCase()]:void 0}function nh(r){var n={},o,c;for(c in r)Tt(r,c)&&(o=wi(c),o&&(n[o]=r[c]));return n}var J2={};function fn(r,n){J2[r]=n}function V8(r){var n=[],o;for(o in r)Tt(r,o)&&n.push({unit:o,priority:J2[o]});return n.sort(function(c,f){return c.priority-f.priority}),n}function F1(r){return r%4===0&&r%100!==0||r%400===0}function vi(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function mt(r){var n=+r,o=0;return n!==0&&isFinite(n)&&(o=vi(n)),o}function pu(r,n){return function(o){return o!=null?(e4(this,r,o),ze.updateOffset(this,n),this):z1(this,r)}}function z1(r,n){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+n]():NaN}function e4(r,n,o){r.isValid()&&!isNaN(o)&&(n==="FullYear"&&F1(r.year())&&r.month()===1&&r.date()===29?(o=mt(o),r._d["set"+(r._isUTC?"UTC":"")+n](o,r.month(),G1(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+n](o))}function G8(r){return r=wi(r),So(this[r])?this[r]():this}function q8(r,n){if(typeof r=="object"){r=nh(r);var o=V8(r),c,f=o.length;for(c=0;c<f;c++)this[o[c].unit](r[o[c].unit])}else if(r=wi(r),So(this[r]))return this[r](n);return this}var t4=/\d/,ri=/\d\d/,r4=/\d{3}/,ih=/\d{4}/,W1=/[+-]?\d{6}/,Jt=/\d\d?/,n4=/\d\d\d\d?/,i4=/\d\d\d\d\d\d?/,U1=/\d{1,3}/,oh=/\d{1,4}/,Y1=/[+-]?\d{1,6}/,gu=/\d+/,Z1=/[+-]?\d+/,j8=/Z|[+-]\d\d:?\d\d/gi,V1=/Z|[+-]\d\d(?::?\d\d)?/gi,K8=/[+-]?\d+(\.\d{1,3})?/,B0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,S1;S1={};function Oe(r,n,o){S1[r]=So(n)?n:function(c,f){return c&&o?o:n}}function X8(r,n){return Tt(S1,r)?S1[r](n._strict,n._locale):new RegExp(Q8(r))}function Q8(r){return Qn(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,c,f,p){return o||c||f||p}))}function Qn(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Md={};function Yt(r,n){var o,c=n,f;for(typeof r=="string"&&(r=[r]),la(n)&&(c=function(p,b){b[n]=mt(p)}),f=r.length,o=0;o<f;o++)Md[r[o]]=c}function F0(r,n){Yt(r,function(o,c,f,p){f._w=f._w||{},n(o,f._w,f,p)})}function J8(r,n,o){n!=null&&Tt(Md,r)&&Md[r](n,o._a,o,r)}var un=0,oa=1,bo=2,Nr=3,Ri=4,aa=5,Ys=6,eb=7,tb=8;function rb(r,n){return(r%n+n)%n}var yr;Array.prototype.indexOf?yr=Array.prototype.indexOf:yr=function(r){var n;for(n=0;n<this.length;++n)if(this[n]===r)return n;return-1};function G1(r,n){if(isNaN(r)||isNaN(n))return NaN;var o=rb(n,12);return r+=(n-o)/12,o===1?F1(r)?29:28:31-o%7%2}Ve("M",["MM",2],"Mo",function(){return this.month()+1});Ve("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Ve("MMMM",0,0,function(r){return this.localeData().months(this,r)});cn("month","M");fn("month",8);Oe("M",Jt);Oe("MM",Jt,ri);Oe("MMM",function(r,n){return n.monthsShortRegex(r)});Oe("MMMM",function(r,n){return n.monthsRegex(r)});Yt(["M","MM"],function(r,n){n[oa]=mt(r)-1});Yt(["MMM","MMMM"],function(r,n,o,c){var f=o._locale.monthsParse(r,c,o._strict);f!=null?n[oa]=f:ht(o).invalidMonth=r});var nb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),o4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),a4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ib=B0,ob=B0;function ab(r,n){return r?Hi(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||a4).test(n)?"format":"standalone"][r.month()]:Hi(this._months)?this._months:this._months.standalone}function sb(r,n){return r?Hi(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[a4.test(n)?"format":"standalone"][r.month()]:Hi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lb(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)p=zo([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(p,"").toLocaleLowerCase();return o?n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null):(f=yr.call(this._longMonthsParse,b),f!==-1?f:null):n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:(f=yr.call(this._longMonthsParse,b),f!==-1?f:null)):(f=yr.call(this._longMonthsParse,b),f!==-1?f:(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null))}function ub(r,n,o){var c,f,p;if(this._monthsParseExact)return lb.call(this,r,n,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(f=zo([2e3,c]),o&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),!o&&!this._monthsParse[c]&&(p="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="MMMM"&&this._longMonthsParse[c].test(r))return c;if(o&&n==="MMM"&&this._shortMonthsParse[c].test(r))return c;if(!o&&this._monthsParse[c].test(r))return c}}function s4(r,n){var o;if(!r.isValid())return r;if(typeof n=="string"){if(/^\d+$/.test(n))n=mt(n);else if(n=r.localeData().monthsParse(n),!la(n))return r}return o=Math.min(r.date(),G1(r.year(),n)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](n,o),r}function l4(r){return r!=null?(s4(this,r),ze.updateOffset(this,!0),this):z1(this,"Month")}function cb(){return G1(this.year(),this.month())}function fb(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||u4.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Tt(this,"_monthsShortRegex")||(this._monthsShortRegex=ib),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function db(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||u4.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Tt(this,"_monthsRegex")||(this._monthsRegex=ob),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function u4(){function r(b,k){return k.length-b.length}var n=[],o=[],c=[],f,p;for(f=0;f<12;f++)p=zo([2e3,f]),n.push(this.monthsShort(p,"")),o.push(this.months(p,"")),c.push(this.months(p,"")),c.push(this.monthsShort(p,""));for(n.sort(r),o.sort(r),c.sort(r),f=0;f<12;f++)n[f]=Qn(n[f]),o[f]=Qn(o[f]);for(f=0;f<24;f++)c[f]=Qn(c[f]);this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}Ve("Y",0,0,function(){var r=this.year();return r<=9999?Co(r,4):"+"+r});Ve(0,["YY",2],0,function(){return this.year()%100});Ve(0,["YYYY",4],0,"year");Ve(0,["YYYYY",5],0,"year");Ve(0,["YYYYYY",6,!0],0,"year");cn("year","y");fn("year",1);Oe("Y",Z1);Oe("YY",Jt,ri);Oe("YYYY",oh,ih);Oe("YYYYY",Y1,W1);Oe("YYYYYY",Y1,W1);Yt(["YYYYY","YYYYYY"],un);Yt("YYYY",function(r,n){n[un]=r.length===2?ze.parseTwoDigitYear(r):mt(r)});Yt("YY",function(r,n){n[un]=ze.parseTwoDigitYear(r)});Yt("Y",function(r,n){n[un]=parseInt(r,10)});function w0(r){return F1(r)?366:365}ze.parseTwoDigitYear=function(r){return mt(r)+(mt(r)>68?1900:2e3)};var c4=pu("FullYear",!0);function hb(){return F1(this.year())}function pb(r,n,o,c,f,p,b){var k;return r<100&&r>=0?(k=new Date(r+400,n,o,c,f,p,b),isFinite(k.getFullYear())&&k.setFullYear(r)):k=new Date(r,n,o,c,f,p,b),k}function k0(r){var n,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,n=new Date(Date.UTC.apply(null,o)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(r)):n=new Date(Date.UTC.apply(null,arguments)),n}function M1(r,n,o){var c=7+n-o,f=(7+k0(r,0,c).getUTCDay()-n)%7;return-f+c-1}function f4(r,n,o,c,f){var p=(7+o-c)%7,b=M1(r,c,f),k=1+7*(n-1)+p+b,S,O;return k<=0?(S=r-1,O=w0(S)+k):k>w0(r)?(S=r+1,O=k-w0(r)):(S=r,O=k),{year:S,dayOfYear:O}}function O0(r,n,o){var c=M1(r.year(),n,o),f=Math.floor((r.dayOfYear()-c-1)/7)+1,p,b;return f<1?(b=r.year()-1,p=f+sa(b,n,o)):f>sa(r.year(),n,o)?(p=f-sa(r.year(),n,o),b=r.year()+1):(b=r.year(),p=f),{week:p,year:b}}function sa(r,n,o){var c=M1(r,n,o),f=M1(r+1,n,o);return(w0(r)-c+f)/7}Ve("w",["ww",2],"wo","week");Ve("W",["WW",2],"Wo","isoWeek");cn("week","w");cn("isoWeek","W");fn("week",5);fn("isoWeek",5);Oe("w",Jt);Oe("ww",Jt,ri);Oe("W",Jt);Oe("WW",Jt,ri);F0(["w","ww","W","WW"],function(r,n,o,c){n[c.substr(0,1)]=mt(r)});function gb(r){return O0(r,this._week.dow,this._week.doy).week}var vb={dow:0,doy:6};function bb(){return this._week.dow}function mb(){return this._week.doy}function yb(r){var n=this.localeData().week(this);return r==null?n:this.add((r-n)*7,"d")}function Cb(r){var n=O0(this,1,4).week;return r==null?n:this.add((r-n)*7,"d")}Ve("d",0,"do","day");Ve("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Ve("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Ve("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Ve("e",0,0,"weekday");Ve("E",0,0,"isoWeekday");cn("day","d");cn("weekday","e");cn("isoWeekday","E");fn("day",11);fn("weekday",11);fn("isoWeekday",11);Oe("d",Jt);Oe("e",Jt);Oe("E",Jt);Oe("dd",function(r,n){return n.weekdaysMinRegex(r)});Oe("ddd",function(r,n){return n.weekdaysShortRegex(r)});Oe("dddd",function(r,n){return n.weekdaysRegex(r)});F0(["dd","ddd","dddd"],function(r,n,o,c){var f=o._locale.weekdaysParse(r,c,o._strict);f!=null?n.d=f:ht(o).invalidWeekday=r});F0(["d","e","E"],function(r,n,o,c){n[c]=mt(r)});function wb(r,n){return typeof r!="string"?r:isNaN(r)?(r=n.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function xb(r,n){return typeof r=="string"?n.weekdaysParse(r)%7||7:isNaN(r)?null:r}function ah(r,n){return r.slice(n,7).concat(r.slice(0,n))}var Lb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),d4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_b="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zb=B0,Sb=B0,Mb=B0;function kb(r,n){var o=Hi(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return r===!0?ah(o,this._week.dow):r?o[r.day()]:o}function Ob(r){return r===!0?ah(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Tb(r){return r===!0?ah(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function Pb(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)p=zo([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(p,"").toLocaleLowerCase();return o?n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1?f:null):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null):(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null):n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1||(f=yr.call(this._shortWeekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):(f=yr.call(this._minWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null))}function Ab(r,n,o){var c,f,p;if(this._weekdaysParseExact)return Pb.call(this,r,n,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(f=zo([2e3,1]).day(c),o&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(p="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="dddd"&&this._fullWeekdaysParse[c].test(r))return c;if(o&&n==="ddd"&&this._shortWeekdaysParse[c].test(r))return c;if(o&&n==="dd"&&this._minWeekdaysParse[c].test(r))return c;if(!o&&this._weekdaysParse[c].test(r))return c}}function Eb(r){if(!this.isValid())return r!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=wb(r,this.localeData()),this.add(r-n,"d")):n}function Ib(r){if(!this.isValid())return r!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return r==null?n:this.add(r-n,"d")}function Db(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var n=xb(r,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function Rb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Tt(this,"_weekdaysRegex")||(this._weekdaysRegex=zb),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Nb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Tt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sb),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $b(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Tt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Mb),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sh(){function r(I,U){return U.length-I.length}var n=[],o=[],c=[],f=[],p,b,k,S,O;for(p=0;p<7;p++)b=zo([2e3,1]).day(p),k=Qn(this.weekdaysMin(b,"")),S=Qn(this.weekdaysShort(b,"")),O=Qn(this.weekdays(b,"")),n.push(k),o.push(S),c.push(O),f.push(k),f.push(S),f.push(O);n.sort(r),o.sort(r),c.sort(r),f.sort(r),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function lh(){return this.hours()%12||12}function Hb(){return this.hours()||24}Ve("H",["HH",2],0,"hour");Ve("h",["hh",2],0,lh);Ve("k",["kk",2],0,Hb);Ve("hmm",0,0,function(){return""+lh.apply(this)+Co(this.minutes(),2)});Ve("hmmss",0,0,function(){return""+lh.apply(this)+Co(this.minutes(),2)+Co(this.seconds(),2)});Ve("Hmm",0,0,function(){return""+this.hours()+Co(this.minutes(),2)});Ve("Hmmss",0,0,function(){return""+this.hours()+Co(this.minutes(),2)+Co(this.seconds(),2)});function h4(r,n){Ve(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}h4("a",!0);h4("A",!1);cn("hour","h");fn("hour",13);function p4(r,n){return n._meridiemParse}Oe("a",p4);Oe("A",p4);Oe("H",Jt);Oe("h",Jt);Oe("k",Jt);Oe("HH",Jt,ri);Oe("hh",Jt,ri);Oe("kk",Jt,ri);Oe("hmm",n4);Oe("hmmss",i4);Oe("Hmm",n4);Oe("Hmmss",i4);Yt(["H","HH"],Nr);Yt(["k","kk"],function(r,n,o){var c=mt(r);n[Nr]=c===24?0:c});Yt(["a","A"],function(r,n,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Yt(["h","hh"],function(r,n,o){n[Nr]=mt(r),ht(o).bigHour=!0});Yt("hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c)),ht(o).bigHour=!0});Yt("hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f)),ht(o).bigHour=!0});Yt("Hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c))});Yt("Hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f))});function Bb(r){return(r+"").toLowerCase().charAt(0)==="p"}var Fb=/[ap]\.?m?\.?/i,Wb=pu("Hours",!0);function Ub(r,n,o){return r>11?o?"pm":"PM":o?"am":"AM"}var g4={calendar:A8,longDateFormat:R8,invalidDate:$8,ordinal:B8,dayOfMonthOrdinalParse:F8,relativeTime:U8,months:nb,monthsShort:o4,week:vb,weekdays:Lb,weekdaysMin:_b,weekdaysShort:d4,meridiemParse:Fb},nr={},p0={},T0;function Yb(r,n){var o,c=Math.min(r.length,n.length);for(o=0;o<c;o+=1)if(r[o]!==n[o])return o;return c}function Ep(r){return r&&r.toLowerCase().replace("_","-")}function Zb(r){for(var n=0,o,c,f,p;n<r.length;){for(p=Ep(r[n]).split("-"),o=p.length,c=Ep(r[n+1]),c=c?c.split("-"):null;o>0;){if(f=q1(p.slice(0,o).join("-")),f)return f;if(c&&c.length>=o&&Yb(p,c)>=o-1)break;o--}n++}return T0}function Vb(r){return r.match("^[^/\\\\]*$")!=null}function q1(r){var n=null,o;if(nr[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&Vb(r))try{n=T0._abbr,o=require,o("./locale/"+r),Xa(n)}catch{nr[r]=null}return nr[r]}function Xa(r,n){var o;return r&&(En(n)?o=fa(r):o=uh(r,n),o?T0=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),T0._abbr}function uh(r,n){if(n!==null){var o,c=g4;if(n.abbr=r,nr[r]!=null)X2("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=nr[r]._config;else if(n.parentLocale!=null)if(nr[n.parentLocale]!=null)c=nr[n.parentLocale]._config;else if(o=q1(n.parentLocale),o!=null)c=o._config;else return p0[n.parentLocale]||(p0[n.parentLocale]=[]),p0[n.parentLocale].push({name:r,config:n}),null;return nr[r]=new th(zd(c,n)),p0[r]&&p0[r].forEach(function(f){uh(f.name,f.config)}),Xa(r),nr[r]}else return delete nr[r],null}function Gb(r,n){if(n!=null){var o,c,f=g4;nr[r]!=null&&nr[r].parentLocale!=null?nr[r].set(zd(nr[r]._config,n)):(c=q1(r),c!=null&&(f=c._config),n=zd(f,n),c==null&&(n.abbr=r),o=new th(n),o.parentLocale=nr[r],nr[r]=o),Xa(r)}else nr[r]!=null&&(nr[r].parentLocale!=null?(nr[r]=nr[r].parentLocale,r===Xa()&&Xa(r)):nr[r]!=null&&delete nr[r]);return nr[r]}function fa(r){var n;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return T0;if(!Hi(r)){if(n=q1(r),n)return n;r=[r]}return Zb(r)}function qb(){return Sd(nr)}function ch(r){var n,o=r._a;return o&&ht(r).overflow===-2&&(n=o[oa]<0||o[oa]>11?oa:o[bo]<1||o[bo]>G1(o[un],o[oa])?bo:o[Nr]<0||o[Nr]>24||o[Nr]===24&&(o[Ri]!==0||o[aa]!==0||o[Ys]!==0)?Nr:o[Ri]<0||o[Ri]>59?Ri:o[aa]<0||o[aa]>59?aa:o[Ys]<0||o[Ys]>999?Ys:-1,ht(r)._overflowDayOfYear&&(n<un||n>bo)&&(n=bo),ht(r)._overflowWeeks&&n===-1&&(n=eb),ht(r)._overflowWeekday&&n===-1&&(n=tb),ht(r).overflow=n),r}var jb=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kb=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xb=/Z|[+-]\d\d(?::?\d\d)?/,h1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qb=/^\/?Date\((-?\d+)/i,Jb=/^(?:(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{4}))$/,em={UT:0,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 v4(r){var n,o,c=r._i,f=jb.exec(c)||Kb.exec(c),p,b,k,S,O=h1.length,I=pd.length;if(f){for(ht(r).iso=!0,n=0,o=O;n<o;n++)if(h1[n][1].exec(f[1])){b=h1[n][0],p=h1[n][2]!==!1;break}if(b==null){r._isValid=!1;return}if(f[3]){for(n=0,o=I;n<o;n++)if(pd[n][1].exec(f[3])){k=(f[2]||" ")+pd[n][0];break}if(k==null){r._isValid=!1;return}}if(!p&&k!=null){r._isValid=!1;return}if(f[4])if(Xb.exec(f[4]))S="Z";else{r._isValid=!1;return}r._f=b+(k||"")+(S||""),dh(r)}else r._isValid=!1}function tm(r,n,o,c,f,p){var b=[rm(r),o4.indexOf(n),parseInt(o,10),parseInt(c,10),parseInt(f,10)];return p&&b.push(parseInt(p,10)),b}function rm(r){var n=parseInt(r,10);return n<=49?2e3+n:n<=999?1900+n:n}function nm(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function im(r,n,o){if(r){var c=d4.indexOf(r),f=new Date(n[0],n[1],n[2]).getDay();if(c!==f)return ht(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function om(r,n,o){if(r)return em[r];if(n)return 0;var c=parseInt(o,10),f=c%100,p=(c-f)/100;return p*60+f}function b4(r){var n=Jb.exec(nm(r._i)),o;if(n){if(o=tm(n[4],n[3],n[2],n[5],n[6],n[7]),!im(n[1],o,r))return;r._a=o,r._tzm=om(n[8],n[9],n[10]),r._d=k0.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ht(r).rfc2822=!0}else r._isValid=!1}function am(r){var n=Qb.exec(r._i);if(n!==null){r._d=new Date(+n[1]);return}if(v4(r),r._isValid===!1)delete r._isValid;else return;if(b4(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:ze.createFromInputFallback(r)}ze.createFromInputFallback=Ci("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function Jl(r,n,o){return r!=null?r:n!=null?n:o}function sm(r){var n=new Date(ze.now());return r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function fh(r){var n,o,c=[],f,p,b;if(!r._d){for(f=sm(r),r._w&&r._a[bo]==null&&r._a[oa]==null&&lm(r),r._dayOfYear!=null&&(b=Jl(r._a[un],f[un]),(r._dayOfYear>w0(b)||r._dayOfYear===0)&&(ht(r)._overflowDayOfYear=!0),o=k0(b,0,r._dayOfYear),r._a[oa]=o.getUTCMonth(),r._a[bo]=o.getUTCDate()),n=0;n<3&&r._a[n]==null;++n)r._a[n]=c[n]=f[n];for(;n<7;n++)r._a[n]=c[n]=r._a[n]==null?n===2?1:0:r._a[n];r._a[Nr]===24&&r._a[Ri]===0&&r._a[aa]===0&&r._a[Ys]===0&&(r._nextDay=!0,r._a[Nr]=0),r._d=(r._useUTC?k0:pb).apply(null,c),p=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Nr]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==p&&(ht(r).weekdayMismatch=!0)}}function lm(r){var n,o,c,f,p,b,k,S,O;n=r._w,n.GG!=null||n.W!=null||n.E!=null?(p=1,b=4,o=Jl(n.GG,r._a[un],O0(Qt(),1,4).year),c=Jl(n.W,1),f=Jl(n.E,1),(f<1||f>7)&&(S=!0)):(p=r._locale._week.dow,b=r._locale._week.doy,O=O0(Qt(),p,b),o=Jl(n.gg,r._a[un],O.year),c=Jl(n.w,O.week),n.d!=null?(f=n.d,(f<0||f>6)&&(S=!0)):n.e!=null?(f=n.e+p,(n.e<0||n.e>6)&&(S=!0)):f=p),c<1||c>sa(o,p,b)?ht(r)._overflowWeeks=!0:S!=null?ht(r)._overflowWeekday=!0:(k=f4(o,c,f,p,b),r._a[un]=k.year,r._dayOfYear=k.dayOfYear)}ze.ISO_8601=function(){};ze.RFC_2822=function(){};function dh(r){if(r._f===ze.ISO_8601){v4(r);return}if(r._f===ze.RFC_2822){b4(r);return}r._a=[],ht(r).empty=!0;var n=""+r._i,o,c,f,p,b,k=n.length,S=0,O,I;for(f=Q2(r._f,r._locale).match(rh)||[],I=f.length,o=0;o<I;o++)p=f[o],c=(n.match(X8(p,r))||[])[0],c&&(b=n.substr(0,n.indexOf(c)),b.length>0&&ht(r).unusedInput.push(b),n=n.slice(n.indexOf(c)+c.length),S+=c.length),ru[p]?(c?ht(r).empty=!1:ht(r).unusedTokens.push(p),J8(p,c,r)):r._strict&&!c&&ht(r).unusedTokens.push(p);ht(r).charsLeftOver=k-S,n.length>0&&ht(r).unusedInput.push(n),r._a[Nr]<=12&&ht(r).bigHour===!0&&r._a[Nr]>0&&(ht(r).bigHour=void 0),ht(r).parsedDateParts=r._a.slice(0),ht(r).meridiem=r._meridiem,r._a[Nr]=um(r._locale,r._a[Nr],r._meridiem),O=ht(r).era,O!==null&&(r._a[un]=r._locale.erasConvertYear(O,r._a[un])),fh(r),ch(r)}function um(r,n,o){var c;return o==null?n:r.meridiemHour!=null?r.meridiemHour(n,o):(r.isPM!=null&&(c=r.isPM(o),c&&n<12&&(n+=12),!c&&n===12&&(n=0)),n)}function cm(r){var n,o,c,f,p,b,k=!1,S=r._f.length;if(S===0){ht(r).invalidFormat=!0,r._d=new Date(NaN);return}for(f=0;f<S;f++)p=0,b=!1,n=eh({},r),r._useUTC!=null&&(n._useUTC=r._useUTC),n._f=r._f[f],dh(n),Jd(n)&&(b=!0),p+=ht(n).charsLeftOver,p+=ht(n).unusedTokens.length*10,ht(n).score=p,k?p<c&&(c=p,o=n):(c==null||p<c||b)&&(c=p,o=n,b&&(k=!0));ja(r,o||n)}function fm(r){if(!r._d){var n=nh(r._i),o=n.day===void 0?n.date:n.day;r._a=j2([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),fh(r)}}function dm(r){var n=new H0(ch(m4(r)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function m4(r){var n=r._i,o=r._f;return r._locale=r._locale||fa(r._l),n===null||o===void 0&&n===""?B1({nullInput:!0}):(typeof n=="string"&&(r._i=n=r._locale.preparse(n)),Bi(n)?new H0(ch(n)):($0(n)?r._d=n:Hi(o)?cm(r):o?dh(r):hm(r),Jd(r)||(r._d=null),r))}function hm(r){var n=r._i;En(n)?r._d=new Date(ze.now()):$0(n)?r._d=new Date(n.valueOf()):typeof n=="string"?am(r):Hi(n)?(r._a=j2(n.slice(0),function(o){return parseInt(o,10)}),fh(r)):Vs(n)?fm(r):la(n)?r._d=new Date(n):ze.createFromInputFallback(r)}function y4(r,n,o,c,f){var p={};return(n===!0||n===!1)&&(c=n,n=void 0),(o===!0||o===!1)&&(c=o,o=void 0),(Vs(r)&&Qd(r)||Hi(r)&&r.length===0)&&(r=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=f,p._l=o,p._i=r,p._f=n,p._strict=c,dm(p)}function Qt(r,n,o,c){return y4(r,n,o,c,!1)}var pm=Ci("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:B1()}),gm=Ci("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:B1()});function C4(r,n){var o,c;if(n.length===1&&Hi(n[0])&&(n=n[0]),!n.length)return Qt();for(o=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][r](o))&&(o=n[c]);return o}function vm(){var r=[].slice.call(arguments,0);return C4("isBefore",r)}function bm(){var r=[].slice.call(arguments,0);return C4("isAfter",r)}var mm=function(){return Date.now?Date.now():+new Date},g0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ym(r){var n,o=!1,c,f=g0.length;for(n in r)if(Tt(r,n)&&!(yr.call(g0,n)!==-1&&(r[n]==null||!isNaN(r[n]))))return!1;for(c=0;c<f;++c)if(r[g0[c]]){if(o)return!1;parseFloat(r[g0[c]])!==mt(r[g0[c]])&&(o=!0)}return!0}function Cm(){return this._isValid}function wm(){return Wi(NaN)}function j1(r){var n=nh(r),o=n.year||0,c=n.quarter||0,f=n.month||0,p=n.week||n.isoWeek||0,b=n.day||0,k=n.hour||0,S=n.minute||0,O=n.second||0,I=n.millisecond||0;this._isValid=ym(n),this._milliseconds=+I+O*1e3+S*6e4+k*1e3*60*60,this._days=+b+p*7,this._months=+f+c*3+o*12,this._data={},this._locale=fa(),this._bubble()}function b1(r){return r instanceof j1}function kd(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function xm(r,n,o){var c=Math.min(r.length,n.length),f=Math.abs(r.length-n.length),p=0,b;for(b=0;b<c;b++)(o&&r[b]!==n[b]||!o&&mt(r[b])!==mt(n[b]))&&p++;return p+f}function w4(r,n){Ve(r,0,0,function(){var o=this.utcOffset(),c="+";return o<0&&(o=-o,c="-"),c+Co(~~(o/60),2)+n+Co(~~o%60,2)})}w4("Z",":");w4("ZZ","");Oe("Z",V1);Oe("ZZ",V1);Yt(["Z","ZZ"],function(r,n,o){o._useUTC=!0,o._tzm=hh(V1,r)});var Lm=/([\+\-]|\d\d)/gi;function hh(r,n){var o=(n||"").match(r),c,f,p;return o===null?null:(c=o[o.length-1]||[],f=(c+"").match(Lm)||["-",0,0],p=+(f[1]*60)+mt(f[2]),p===0?0:f[0]==="+"?p:-p)}function ph(r,n){var o,c;return n._isUTC?(o=n.clone(),c=(Bi(r)||$0(r)?r.valueOf():Qt(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+c),ze.updateOffset(o,!1),o):Qt(r).local()}function Od(r){return-Math.round(r._d.getTimezoneOffset())}ze.updateOffset=function(){};function _m(r,n,o){var c=this._offset||0,f;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=hh(V1,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&n&&(f=Od(this)),this._offset=r,this._isUTC=!0,f!=null&&this.add(f,"m"),c!==r&&(!n||this._changeInProgress?_4(this,Wi(r-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ze.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Od(this)}function zm(r,n){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,n),this):-this.utcOffset()}function Sm(r){return this.utcOffset(0,r)}function Mm(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(Od(this),"m")),this}function km(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=hh(j8,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Om(r){return this.isValid()?(r=r?Qt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Tm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pm(){if(!En(this._isDSTShifted))return this._isDSTShifted;var r={},n;return eh(r,this),r=m4(r),r._a?(n=r._isUTC?zo(r._a):Qt(r._a),this._isDSTShifted=this.isValid()&&xm(r._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Am(){return this.isValid()?!this._isUTC:!1}function Em(){return this.isValid()?this._isUTC:!1}function x4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Im=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wi(r,n){var o=r,c=null,f,p,b;return b1(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:la(r)||!isNaN(+r)?(o={},n?o[n]=+r:o.milliseconds=+r):(c=Im.exec(r))?(f=c[1]==="-"?-1:1,o={y:0,d:mt(c[bo])*f,h:mt(c[Nr])*f,m:mt(c[Ri])*f,s:mt(c[aa])*f,ms:mt(kd(c[Ys]*1e3))*f}):(c=Dm.exec(r))?(f=c[1]==="-"?-1:1,o={y:Ws(c[2],f),M:Ws(c[3],f),w:Ws(c[4],f),d:Ws(c[5],f),h:Ws(c[6],f),m:Ws(c[7],f),s:Ws(c[8],f)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(b=Rm(Qt(o.from),Qt(o.to)),o={},o.ms=b.milliseconds,o.M=b.months),p=new j1(o),b1(r)&&Tt(r,"_locale")&&(p._locale=r._locale),b1(r)&&Tt(r,"_isValid")&&(p._isValid=r._isValid),p}Wi.fn=j1.prototype;Wi.invalid=wm;function Ws(r,n){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*n}function Ip(r,n){var o={};return o.months=n.month()-r.month()+(n.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(n)&&--o.months,o.milliseconds=+n-+r.clone().add(o.months,"M"),o}function Rm(r,n){var o;return r.isValid()&&n.isValid()?(n=ph(n,r),r.isBefore(n)?o=Ip(r,n):(o=Ip(n,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function L4(r,n){return function(o,c){var f,p;return c!==null&&!isNaN(+c)&&(X2(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=o,o=c,c=p),f=Wi(o,c),_4(this,f,r),this}}function _4(r,n,o,c){var f=n._milliseconds,p=kd(n._days),b=kd(n._months);!r.isValid()||(c=c==null?!0:c,b&&s4(r,z1(r,"Month")+b*o),p&&e4(r,"Date",z1(r,"Date")+p*o),f&&r._d.setTime(r._d.valueOf()+f*o),c&&ze.updateOffset(r,p||b))}var Nm=L4(1,"add"),$m=L4(-1,"subtract");function z4(r){return typeof r=="string"||r instanceof String}function Hm(r){return Bi(r)||$0(r)||z4(r)||la(r)||Fm(r)||Bm(r)||r===null||r===void 0}function Bm(r){var n=Vs(r)&&!Qd(r),o=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,p,b=c.length;for(f=0;f<b;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function Fm(r){var n=Hi(r),o=!1;return n&&(o=r.filter(function(c){return!la(c)&&z4(r)}).length===0),n&&o}function Wm(r){var n=Vs(r)&&!Qd(r),o=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,p;for(f=0;f<c.length;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function Um(r,n){var o=r.diff(n,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function Ym(r,n){arguments.length===1&&(arguments[0]?Hm(arguments[0])?(r=arguments[0],n=void 0):Wm(arguments[0])&&(n=arguments[0],r=void 0):(r=void 0,n=void 0));var o=r||Qt(),c=ph(o,this).startOf("day"),f=ze.calendarFormat(this,c)||"sameElse",p=n&&(So(n[f])?n[f].call(this,o):n[f]);return this.format(p||this.localeData().calendar(f,this,Qt(o)))}function Zm(){return new H0(this)}function Vm(r,n){var o=Bi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function Gm(r,n){var o=Bi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function qm(r,n,o,c){var f=Bi(r)?r:Qt(r),p=Bi(n)?n:Qt(n);return this.isValid()&&f.isValid()&&p.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(f,o):!this.isBefore(f,o))&&(c[1]===")"?this.isBefore(p,o):!this.isAfter(p,o))):!1}function jm(r,n){var o=Bi(r)?r:Qt(r),c;return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()===o.valueOf():(c=o.valueOf(),this.clone().startOf(n).valueOf()<=c&&c<=this.clone().endOf(n).valueOf())):!1}function Km(r,n){return this.isSame(r,n)||this.isAfter(r,n)}function Xm(r,n){return this.isSame(r,n)||this.isBefore(r,n)}function Qm(r,n,o){var c,f,p;if(!this.isValid())return NaN;if(c=ph(r,this),!c.isValid())return NaN;switch(f=(c.utcOffset()-this.utcOffset())*6e4,n=wi(n),n){case"year":p=m1(this,c)/12;break;case"month":p=m1(this,c);break;case"quarter":p=m1(this,c)/3;break;case"second":p=(this-c)/1e3;break;case"minute":p=(this-c)/6e4;break;case"hour":p=(this-c)/36e5;break;case"day":p=(this-c-f)/864e5;break;case"week":p=(this-c-f)/6048e5;break;default:p=this-c}return o?p:vi(p)}function m1(r,n){if(r.date()<n.date())return-m1(n,r);var o=(n.year()-r.year())*12+(n.month()-r.month()),c=r.clone().add(o,"months"),f,p;return n-c<0?(f=r.clone().add(o-1,"months"),p=(n-c)/(c-f)):(f=r.clone().add(o+1,"months"),p=(n-c)/(f-c)),-(o+p)||0}ze.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ze.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Jm(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ey(r){if(!this.isValid())return null;var n=r!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?v1(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):So(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",v1(o,"Z")):v1(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ty(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",n="",o,c,f,p;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),o="["+r+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",p=n+'[")]',this.format(o+c+f+p)}function ry(r){r||(r=this.isUtc()?ze.defaultFormatUtc:ze.defaultFormat);var n=v1(this,r);return this.localeData().postformat(n)}function ny(r,n){return this.isValid()&&(Bi(r)&&r.isValid()||Qt(r).isValid())?Wi({to:this,from:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function iy(r){return this.from(Qt(),r)}function oy(r,n){return this.isValid()&&(Bi(r)&&r.isValid()||Qt(r).isValid())?Wi({from:this,to:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function ay(r){return this.to(Qt(),r)}function S4(r){var n;return r===void 0?this._locale._abbr:(n=fa(r),n!=null&&(this._locale=n),this)}var M4=Ci("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function k4(){return this._locale}var k1=1e3,nu=60*k1,O1=60*nu,O4=(365*400+97)*24*O1;function iu(r,n){return(r%n+n)%n}function T4(r,n,o){return r<100&&r>=0?new Date(r+400,n,o)-O4:new Date(r,n,o).valueOf()}function P4(r,n,o){return r<100&&r>=0?Date.UTC(r+400,n,o)-O4:Date.UTC(r,n,o)}function sy(r){var n,o;if(r=wi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?P4:T4,r){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=iu(n+(this._isUTC?0:this.utcOffset()*nu),O1);break;case"minute":n=this._d.valueOf(),n-=iu(n,nu);break;case"second":n=this._d.valueOf(),n-=iu(n,k1);break}return this._d.setTime(n),ze.updateOffset(this,!0),this}function ly(r){var n,o;if(r=wi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?P4:T4,r){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=O1-iu(n+(this._isUTC?0:this.utcOffset()*nu),O1)-1;break;case"minute":n=this._d.valueOf(),n+=nu-iu(n,nu)-1;break;case"second":n=this._d.valueOf(),n+=k1-iu(n,k1)-1;break}return this._d.setTime(n),ze.updateOffset(this,!0),this}function uy(){return this._d.valueOf()-(this._offset||0)*6e4}function cy(){return Math.floor(this.valueOf()/1e3)}function fy(){return new Date(this.valueOf())}function dy(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function hy(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function py(){return this.isValid()?this.toISOString():null}function gy(){return Jd(this)}function vy(){return ja({},ht(this))}function by(){return ht(this).overflow}function my(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ve("N",0,0,"eraAbbr");Ve("NN",0,0,"eraAbbr");Ve("NNN",0,0,"eraAbbr");Ve("NNNN",0,0,"eraName");Ve("NNNNN",0,0,"eraNarrow");Ve("y",["y",1],"yo","eraYear");Ve("y",["yy",2],0,"eraYear");Ve("y",["yyy",3],0,"eraYear");Ve("y",["yyyy",4],0,"eraYear");Oe("N",gh);Oe("NN",gh);Oe("NNN",gh);Oe("NNNN",Oy);Oe("NNNNN",Ty);Yt(["N","NN","NNN","NNNN","NNNNN"],function(r,n,o,c){var f=o._locale.erasParse(r,c,o._strict);f?ht(o).era=f:ht(o).invalidEra=r});Oe("y",gu);Oe("yy",gu);Oe("yyy",gu);Oe("yyyy",gu);Oe("yo",Py);Yt(["y","yy","yyy","yyyy"],un);Yt(["yo"],function(r,n,o,c){var f;o._locale._eraYearOrdinalRegex&&(f=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[un]=o._locale.eraYearOrdinalParse(r,f):n[un]=parseInt(r,10)});function yy(r,n){var o,c,f,p=this._eras||fa("en")._eras;for(o=0,c=p.length;o<c;++o){switch(typeof p[o].since){case"string":f=ze(p[o].since).startOf("day"),p[o].since=f.valueOf();break}switch(typeof p[o].until){case"undefined":p[o].until=1/0;break;case"string":f=ze(p[o].until).startOf("day").valueOf(),p[o].until=f.valueOf();break}}return p}function Cy(r,n,o){var c,f,p=this.eras(),b,k,S;for(r=r.toUpperCase(),c=0,f=p.length;c<f;++c)if(b=p[c].name.toUpperCase(),k=p[c].abbr.toUpperCase(),S=p[c].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(k===r)return p[c];break;case"NNNN":if(b===r)return p[c];break;case"NNNNN":if(S===r)return p[c];break}else if([b,k,S].indexOf(r)>=0)return p[c]}function wy(r,n){var o=r.since<=r.until?1:-1;return n===void 0?ze(r.since).year():ze(r.since).year()+(n-r.offset)*o}function xy(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].name;return""}function Ly(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].narrow;return""}function _y(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].abbr;return""}function zy(){var r,n,o,c,f=this.localeData().eras();for(r=0,n=f.length;r<n;++r)if(o=f[r].since<=f[r].until?1:-1,c=this.clone().startOf("day").valueOf(),f[r].since<=c&&c<=f[r].until||f[r].until<=c&&c<=f[r].since)return(this.year()-ze(f[r].since).year())*o+f[r].offset;return this.year()}function Sy(r){return Tt(this,"_erasNameRegex")||vh.call(this),r?this._erasNameRegex:this._erasRegex}function My(r){return Tt(this,"_erasAbbrRegex")||vh.call(this),r?this._erasAbbrRegex:this._erasRegex}function ky(r){return Tt(this,"_erasNarrowRegex")||vh.call(this),r?this._erasNarrowRegex:this._erasRegex}function gh(r,n){return n.erasAbbrRegex(r)}function Oy(r,n){return n.erasNameRegex(r)}function Ty(r,n){return n.erasNarrowRegex(r)}function Py(r,n){return n._eraYearOrdinalRegex||gu}function vh(){var r=[],n=[],o=[],c=[],f,p,b=this.eras();for(f=0,p=b.length;f<p;++f)n.push(Qn(b[f].name)),r.push(Qn(b[f].abbr)),o.push(Qn(b[f].narrow)),c.push(Qn(b[f].name)),c.push(Qn(b[f].abbr)),c.push(Qn(b[f].narrow));this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}Ve(0,["gg",2],0,function(){return this.weekYear()%100});Ve(0,["GG",2],0,function(){return this.isoWeekYear()%100});function K1(r,n){Ve(0,[r,r.length],0,n)}K1("gggg","weekYear");K1("ggggg","weekYear");K1("GGGG","isoWeekYear");K1("GGGGG","isoWeekYear");cn("weekYear","gg");cn("isoWeekYear","GG");fn("weekYear",1);fn("isoWeekYear",1);Oe("G",Z1);Oe("g",Z1);Oe("GG",Jt,ri);Oe("gg",Jt,ri);Oe("GGGG",oh,ih);Oe("gggg",oh,ih);Oe("GGGGG",Y1,W1);Oe("ggggg",Y1,W1);F0(["gggg","ggggg","GGGG","GGGGG"],function(r,n,o,c){n[c.substr(0,2)]=mt(r)});F0(["gg","GG"],function(r,n,o,c){n[c]=ze.parseTwoDigitYear(r)});function Ay(r){return A4.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ey(r){return A4.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Iy(){return sa(this.year(),1,4)}function Dy(){return sa(this.isoWeekYear(),1,4)}function Ry(){var r=this.localeData()._week;return sa(this.year(),r.dow,r.doy)}function Ny(){var r=this.localeData()._week;return sa(this.weekYear(),r.dow,r.doy)}function A4(r,n,o,c,f){var p;return r==null?O0(this,c,f).year:(p=sa(r,c,f),n>p&&(n=p),$y.call(this,r,n,o,c,f))}function $y(r,n,o,c,f){var p=f4(r,n,o,c,f),b=k0(p.year,0,p.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}Ve("Q",0,"Qo","quarter");cn("quarter","Q");fn("quarter",7);Oe("Q",t4);Yt("Q",function(r,n){n[oa]=(mt(r)-1)*3});function Hy(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Ve("D",["DD",2],"Do","date");cn("date","D");fn("date",9);Oe("D",Jt);Oe("DD",Jt,ri);Oe("Do",function(r,n){return r?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Yt(["D","DD"],bo);Yt("Do",function(r,n){n[bo]=mt(r.match(Jt)[0])});var E4=pu("Date",!0);Ve("DDD",["DDDD",3],"DDDo","dayOfYear");cn("dayOfYear","DDD");fn("dayOfYear",4);Oe("DDD",U1);Oe("DDDD",r4);Yt(["DDD","DDDD"],function(r,n,o){o._dayOfYear=mt(r)});function By(r){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?n:this.add(r-n,"d")}Ve("m",["mm",2],0,"minute");cn("minute","m");fn("minute",14);Oe("m",Jt);Oe("mm",Jt,ri);Yt(["m","mm"],Ri);var Fy=pu("Minutes",!1);Ve("s",["ss",2],0,"second");cn("second","s");fn("second",15);Oe("s",Jt);Oe("ss",Jt,ri);Yt(["s","ss"],aa);var Wy=pu("Seconds",!1);Ve("S",0,0,function(){return~~(this.millisecond()/100)});Ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ve(0,["SSS",3],0,"millisecond");Ve(0,["SSSS",4],0,function(){return this.millisecond()*10});Ve(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});cn("millisecond","ms");fn("millisecond",16);Oe("S",U1,t4);Oe("SS",U1,ri);Oe("SSS",U1,r4);var Ka,I4;for(Ka="SSSS";Ka.length<=9;Ka+="S")Oe(Ka,gu);function Uy(r,n){n[Ys]=mt(("0."+r)*1e3)}for(Ka="S";Ka.length<=9;Ka+="S")Yt(Ka,Uy);I4=pu("Milliseconds",!1);Ve("z",0,0,"zoneAbbr");Ve("zz",0,0,"zoneName");function Yy(){return this._isUTC?"UTC":""}function Zy(){return this._isUTC?"Coordinated Universal Time":""}var ue=H0.prototype;ue.add=Nm;ue.calendar=Ym;ue.clone=Zm;ue.diff=Qm;ue.endOf=ly;ue.format=ry;ue.from=ny;ue.fromNow=iy;ue.to=oy;ue.toNow=ay;ue.get=G8;ue.invalidAt=by;ue.isAfter=Vm;ue.isBefore=Gm;ue.isBetween=qm;ue.isSame=jm;ue.isSameOrAfter=Km;ue.isSameOrBefore=Xm;ue.isValid=gy;ue.lang=M4;ue.locale=S4;ue.localeData=k4;ue.max=gm;ue.min=pm;ue.parsingFlags=vy;ue.set=q8;ue.startOf=sy;ue.subtract=$m;ue.toArray=dy;ue.toObject=hy;ue.toDate=fy;ue.toISOString=ey;ue.inspect=ty;typeof Symbol!="undefined"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=py;ue.toString=Jm;ue.unix=cy;ue.valueOf=uy;ue.creationData=my;ue.eraName=xy;ue.eraNarrow=Ly;ue.eraAbbr=_y;ue.eraYear=zy;ue.year=c4;ue.isLeapYear=hb;ue.weekYear=Ay;ue.isoWeekYear=Ey;ue.quarter=ue.quarters=Hy;ue.month=l4;ue.daysInMonth=cb;ue.week=ue.weeks=yb;ue.isoWeek=ue.isoWeeks=Cb;ue.weeksInYear=Ry;ue.weeksInWeekYear=Ny;ue.isoWeeksInYear=Iy;ue.isoWeeksInISOWeekYear=Dy;ue.date=E4;ue.day=ue.days=Eb;ue.weekday=Ib;ue.isoWeekday=Db;ue.dayOfYear=By;ue.hour=ue.hours=Wb;ue.minute=ue.minutes=Fy;ue.second=ue.seconds=Wy;ue.millisecond=ue.milliseconds=I4;ue.utcOffset=_m;ue.utc=Sm;ue.local=Mm;ue.parseZone=km;ue.hasAlignedHourOffset=Om;ue.isDST=Tm;ue.isLocal=Am;ue.isUtcOffset=Em;ue.isUtc=x4;ue.isUTC=x4;ue.zoneAbbr=Yy;ue.zoneName=Zy;ue.dates=Ci("dates accessor is deprecated. Use date instead.",E4);ue.months=Ci("months accessor is deprecated. Use month instead",l4);ue.years=Ci("years accessor is deprecated. Use year instead",c4);ue.zone=Ci("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zm);ue.isDSTShifted=Ci("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pm);function Vy(r){return Qt(r*1e3)}function Gy(){return Qt.apply(null,arguments).parseZone()}function D4(r){return r}var Pt=th.prototype;Pt.calendar=E8;Pt.longDateFormat=N8;Pt.invalidDate=H8;Pt.ordinal=W8;Pt.preparse=D4;Pt.postformat=D4;Pt.relativeTime=Y8;Pt.pastFuture=Z8;Pt.set=P8;Pt.eras=yy;Pt.erasParse=Cy;Pt.erasConvertYear=wy;Pt.erasAbbrRegex=My;Pt.erasNameRegex=Sy;Pt.erasNarrowRegex=ky;Pt.months=ab;Pt.monthsShort=sb;Pt.monthsParse=ub;Pt.monthsRegex=db;Pt.monthsShortRegex=fb;Pt.week=gb;Pt.firstDayOfYear=mb;Pt.firstDayOfWeek=bb;Pt.weekdays=kb;Pt.weekdaysMin=Tb;Pt.weekdaysShort=Ob;Pt.weekdaysParse=Ab;Pt.weekdaysRegex=Rb;Pt.weekdaysShortRegex=Nb;Pt.weekdaysMinRegex=$b;Pt.isPM=Bb;Pt.meridiem=Ub;function T1(r,n,o,c){var f=fa(),p=zo().set(c,n);return f[o](p,r)}function R4(r,n,o){if(la(r)&&(n=r,r=void 0),r=r||"",n!=null)return T1(r,n,o,"month");var c,f=[];for(c=0;c<12;c++)f[c]=T1(r,c,o,"month");return f}function bh(r,n,o,c){typeof r=="boolean"?(la(n)&&(o=n,n=void 0),n=n||""):(n=r,o=n,r=!1,la(n)&&(o=n,n=void 0),n=n||"");var f=fa(),p=r?f._week.dow:0,b,k=[];if(o!=null)return T1(n,(o+p)%7,c,"day");for(b=0;b<7;b++)k[b]=T1(n,(b+p)%7,c,"day");return k}function qy(r,n){return R4(r,n,"months")}function jy(r,n){return R4(r,n,"monthsShort")}function Ky(r,n,o){return bh(r,n,o,"weekdays")}function Xy(r,n,o){return bh(r,n,o,"weekdaysShort")}function Qy(r,n,o){return bh(r,n,o,"weekdaysMin")}Xa("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var n=r%10,o=mt(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return r+o}});ze.lang=Ci("moment.lang is deprecated. Use moment.locale instead.",Xa);ze.langData=Ci("moment.langData is deprecated. Use moment.localeData instead.",fa);var ra=Math.abs;function Jy(){var r=this._data;return this._milliseconds=ra(this._milliseconds),this._days=ra(this._days),this._months=ra(this._months),r.milliseconds=ra(r.milliseconds),r.seconds=ra(r.seconds),r.minutes=ra(r.minutes),r.hours=ra(r.hours),r.months=ra(r.months),r.years=ra(r.years),this}function N4(r,n,o,c){var f=Wi(n,o);return r._milliseconds+=c*f._milliseconds,r._days+=c*f._days,r._months+=c*f._months,r._bubble()}function eC(r,n){return N4(this,r,n,1)}function tC(r,n){return N4(this,r,n,-1)}function Dp(r){return r<0?Math.floor(r):Math.ceil(r)}function rC(){var r=this._milliseconds,n=this._days,o=this._months,c=this._data,f,p,b,k,S;return r>=0&&n>=0&&o>=0||r<=0&&n<=0&&o<=0||(r+=Dp(Td(o)+n)*864e5,n=0,o=0),c.milliseconds=r%1e3,f=vi(r/1e3),c.seconds=f%60,p=vi(f/60),c.minutes=p%60,b=vi(p/60),c.hours=b%24,n+=vi(b/24),S=vi($4(n)),o+=S,n-=Dp(Td(S)),k=vi(o/12),o%=12,c.days=n,c.months=o,c.years=k,this}function $4(r){return r*4800/146097}function Td(r){return r*146097/4800}function nC(r){if(!this.isValid())return NaN;var n,o,c=this._milliseconds;if(r=wi(r),r==="month"||r==="quarter"||r==="year")switch(n=this._days+c/864e5,o=this._months+$4(n),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(n=this._days+Math.round(Td(this._months)),r){case"week":return n/7+c/6048e5;case"day":return n+c/864e5;case"hour":return n*24+c/36e5;case"minute":return n*1440+c/6e4;case"second":return n*86400+c/1e3;case"millisecond":return Math.floor(n*864e5)+c;default:throw new Error("Unknown unit "+r)}}function iC(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+mt(this._months/12)*31536e6:NaN}function da(r){return function(){return this.as(r)}}var oC=da("ms"),aC=da("s"),sC=da("m"),lC=da("h"),uC=da("d"),cC=da("w"),fC=da("M"),dC=da("Q"),hC=da("y");function pC(){return Wi(this)}function gC(r){return r=wi(r),this.isValid()?this[r+"s"]():NaN}function Xs(r){return function(){return this.isValid()?this._data[r]:NaN}}var vC=Xs("milliseconds"),bC=Xs("seconds"),mC=Xs("minutes"),yC=Xs("hours"),CC=Xs("days"),wC=Xs("months"),xC=Xs("years");function LC(){return vi(this.days()/7)}var na=Math.round,eu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _C(r,n,o,c,f){return f.relativeTime(n||1,!!o,r,c)}function zC(r,n,o,c){var f=Wi(r).abs(),p=na(f.as("s")),b=na(f.as("m")),k=na(f.as("h")),S=na(f.as("d")),O=na(f.as("M")),I=na(f.as("w")),U=na(f.as("y")),q=p<=o.ss&&["s",p]||p<o.s&&["ss",p]||b<=1&&["m"]||b<o.m&&["mm",b]||k<=1&&["h"]||k<o.h&&["hh",k]||S<=1&&["d"]||S<o.d&&["dd",S];return o.w!=null&&(q=q||I<=1&&["w"]||I<o.w&&["ww",I]),q=q||O<=1&&["M"]||O<o.M&&["MM",O]||U<=1&&["y"]||["yy",U],q[2]=n,q[3]=+r>0,q[4]=c,_C.apply(null,q)}function SC(r){return r===void 0?na:typeof r=="function"?(na=r,!0):!1}function MC(r,n){return eu[r]===void 0?!1:n===void 0?eu[r]:(eu[r]=n,r==="s"&&(eu.ss=n-1),!0)}function kC(r,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,c=eu,f,p;return typeof r=="object"&&(n=r,r=!1),typeof r=="boolean"&&(o=r),typeof n=="object"&&(c=Object.assign({},eu,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),f=this.localeData(),p=zC(this,!o,c,f),o&&(p=f.pastFuture(+this,p)),f.postformat(p)}var gd=Math.abs;function Kl(r){return(r>0)-(r<0)||+r}function X1(){if(!this.isValid())return this.localeData().invalidDate();var r=gd(this._milliseconds)/1e3,n=gd(this._days),o=gd(this._months),c,f,p,b,k=this.asSeconds(),S,O,I,U;return k?(c=vi(r/60),f=vi(c/60),r%=60,c%=60,p=vi(o/12),o%=12,b=r?r.toFixed(3).replace(/\.?0+$/,""):"",S=k<0?"-":"",O=Kl(this._months)!==Kl(k)?"-":"",I=Kl(this._days)!==Kl(k)?"-":"",U=Kl(this._milliseconds)!==Kl(k)?"-":"",S+"P"+(p?O+p+"Y":"")+(o?O+o+"M":"")+(n?I+n+"D":"")+(f||c||r?"T":"")+(f?U+f+"H":"")+(c?U+c+"M":"")+(r?U+b+"S":"")):"P0D"}var St=j1.prototype;St.isValid=Cm;St.abs=Jy;St.add=eC;St.subtract=tC;St.as=nC;St.asMilliseconds=oC;St.asSeconds=aC;St.asMinutes=sC;St.asHours=lC;St.asDays=uC;St.asWeeks=cC;St.asMonths=fC;St.asQuarters=dC;St.asYears=hC;St.valueOf=iC;St._bubble=rC;St.clone=pC;St.get=gC;St.milliseconds=vC;St.seconds=bC;St.minutes=mC;St.hours=yC;St.days=CC;St.weeks=LC;St.months=wC;St.years=xC;St.humanize=kC;St.toISOString=X1;St.toString=X1;St.toJSON=X1;St.locale=S4;St.localeData=k4;St.toIsoString=Ci("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",X1);St.lang=M4;Ve("X",0,0,"unix");Ve("x",0,0,"valueOf");Oe("x",Z1);Oe("X",K8);Yt("X",function(r,n,o){o._d=new Date(parseFloat(r)*1e3)});Yt("x",function(r,n,o){o._d=new Date(mt(r))});//! moment.js
2807
- ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.unix=Vy;ze.months=qy;ze.isDate=$0;ze.locale=Xa;ze.invalid=B1;ze.duration=Wi;ze.isMoment=Bi;ze.weekdays=Ky;ze.parseZone=Gy;ze.localeData=fa;ze.isDuration=b1;ze.monthsShort=jy;ze.weekdaysMin=Qy;ze.defineLocale=uh;ze.updateLocale=Gb;ze.locales=qb;ze.weekdaysShort=Xy;ze.normalizeUnits=wi;ze.relativeTimeRounding=SC;ze.relativeTimeThreshold=MC;ze.calendarFormat=Um;ze.prototype=ue;ze.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var OC=Object.defineProperty,TC=Object.getOwnPropertyDescriptor,ts=(r,n,o,c)=>{for(var f=c>1?void 0:c?TC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&OC(n,o,f),f};const H4=Ee("input-time"),B4="h:mma",F4=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,W4=/^(1[3-9]|2[0-3]).*/,U4=/^(\d\d?)(am?|pm?)/,Y4=(r,n)=>({label:`${r}${n?` (${n})`:""}`,value:r}),PC=(r,n)=>{const c=Math.ceil(1440/r),f=ze().startOf("day");return Array(c).fill(null).map((p,b)=>{const S=(b>0?f.add(r,"minutes"):f).format(B4);return Y4(S,n)})},AC=(r,n)=>{const o=r.trim(),c=r.match(F4);if(!o||!c)return[];const[,f,p,b]=c,k=parseInt(f,10),S=k>12?`${k-12}`:`${k}`,O=`${p}${b||0}`,I=`${S}:${O}`;return["am","pm"].map(U=>Y4(`${I}${U}`,n))},EC=(r,{value:n})=>{const o=r.match(W4);if(!o||!n)return!1;const[,c]=o,f=`${parseInt(c,10)-12}`,p=r.substring(c.length).replace(":",""),b=`${f}:${p}`;return n.startsWith(b)&&n.endsWith("pm")},IC=(r,{value:n})=>{const o=r.match(U4);if(!o)return!1;const[,c,f]=o;return!!(n!=null&&n.replace(":00","").startsWith(`${c}${f}`))},DC=(...r)=>IC(...r)||EC(...r);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=PC(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var r;this.valueLabel=(r=this.getItems().find(({value:n})=>n===this.value))==null?void 0:r.label,this.resetSearch()}isCustomQueryMatch(r){return this.query?DC(this.query,r):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=AC(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return ee`
2911
+ `+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var $p={};function o4(r,n){Se.deprecationHandler!=null&&Se.deprecationHandler(r,n),$p[r]||(i4(n),$p[r]=!0)}Se.suppressDeprecationWarnings=!1;Se.deprecationHandler=null;function So(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function $8(r){var n,o;for(o in r)Tt(r,o)&&(n=r[o],So(n)?this[o]=n:this["_"+o]=n);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Md(r,n){var o=qa({},r),c;for(c in n)Tt(n,c)&&(Gs(r[c])&&Gs(n[c])?(o[c]={},qa(o[c],r[c]),qa(o[c],n[c])):n[c]!=null?o[c]=n[c]:delete o[c]);for(c in r)Tt(r,c)&&!Tt(n,c)&&Gs(r[c])&&(o[c]=qa({},o[c]));return o}function ih(r){r!=null&&this.set(r)}var Od;Object.keys?Od=Object.keys:Od=function(r){var n,o=[];for(n in r)Tt(r,n)&&o.push(n);return o};var H8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function B8(r,n,o){var c=this._calendar[r]||this._calendar.sameElse;return So(c)?c.call(n,o):c}function wo(r,n,o){var c=""+Math.abs(r),f=n-c.length,p=r>=0;return(p?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+c}var oh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,p1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vd={},nu={};function Ve(r,n,o,c){var f=c;typeof c=="string"&&(f=function(){return this[c]()}),r&&(nu[r]=f),n&&(nu[n[0]]=function(){return wo(f.apply(this,arguments),n[1],n[2])}),o&&(nu[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function F8(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function W8(r){var n=r.match(oh),o,c;for(o=0,c=n.length;o<c;o++)nu[n[o]]?n[o]=nu[n[o]]:n[o]=F8(n[o]);return function(f){var p="",b;for(b=0;b<c;b++)p+=So(n[b])?n[b].call(f,r):n[b];return p}}function m1(r,n){return r.isValid()?(n=a4(n,r.localeData()),vd[n]=vd[n]||W8(n),vd[n](r)):r.localeData().invalidDate()}function a4(r,n){var o=5;function c(f){return n.longDateFormat(f)||f}for(p1.lastIndex=0;o>=0&&p1.test(r);)r=r.replace(p1,c),p1.lastIndex=0,o-=1;return r}var U8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y8(r){var n=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return n||!o?n:(this._longDateFormat[r]=o.match(oh).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[r])}var Z8="Invalid date";function V8(){return this._invalidDate}var G8="%d",q8=/\d{1,2}/;function j8(r){return this._ordinal.replace("%d",r)}var K8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function X8(r,n,o,c){var f=this._relativeTime[o];return So(f)?f(r,n,o,c):f.replace(/%d/i,r)}function Q8(r,n){var o=this._relativeTime[r>0?"future":"past"];return So(o)?o(n):o.replace(/%s/i,n)}var w0={};function cn(r,n){var o=r.toLowerCase();w0[o]=w0[o+"s"]=w0[n]=r}function xi(r){return typeof r=="string"?w0[r]||w0[r.toLowerCase()]:void 0}function ah(r){var n={},o,c;for(c in r)Tt(r,c)&&(o=xi(c),o&&(n[o]=r[c]));return n}var s4={};function fn(r,n){s4[r]=n}function J8(r){var n=[],o;for(o in r)Tt(r,o)&&n.push({unit:o,priority:s4[o]});return n.sort(function(c,f){return c.priority-f.priority}),n}function U1(r){return r%4===0&&r%100!==0||r%400===0}function vi(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function mt(r){var n=+r,o=0;return n!==0&&isFinite(n)&&(o=vi(n)),o}function gu(r,n){return function(o){return o!=null?(l4(this,r,o),Se.updateOffset(this,n),this):k1(this,r)}}function k1(r,n){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+n]():NaN}function l4(r,n,o){r.isValid()&&!isNaN(o)&&(n==="FullYear"&&U1(r.year())&&r.month()===1&&r.date()===29?(o=mt(o),r._d["set"+(r._isUTC?"UTC":"")+n](o,r.month(),j1(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+n](o))}function eb(r){return r=xi(r),So(this[r])?this[r]():this}function tb(r,n){if(typeof r=="object"){r=ah(r);var o=J8(r),c,f=o.length;for(c=0;c<f;c++)this[o[c].unit](r[o[c].unit])}else if(r=xi(r),So(this[r]))return this[r](n);return this}var u4=/\d/,ri=/\d\d/,c4=/\d{3}/,sh=/\d{4}/,Y1=/[+-]?\d{6}/,Jt=/\d\d?/,f4=/\d\d\d\d?/,d4=/\d\d\d\d\d\d?/,Z1=/\d{1,3}/,lh=/\d{1,4}/,V1=/[+-]?\d{1,6}/,vu=/\d+/,G1=/[+-]?\d+/,rb=/Z|[+-]\d\d:?\d\d/gi,q1=/Z|[+-]\d\d(?::?\d\d)?/gi,nb=/[+-]?\d+(\.\d{1,3})?/,W0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,M1;M1={};function Oe(r,n,o){M1[r]=So(n)?n:function(c,f){return c&&o?o:n}}function ib(r,n){return Tt(M1,r)?M1[r](n._strict,n._locale):new RegExp(ob(r))}function ob(r){return Qn(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,c,f,p){return o||c||f||p}))}function Qn(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Td={};function Yt(r,n){var o,c=n,f;for(typeof r=="string"&&(r=[r]),la(n)&&(c=function(p,b){b[n]=mt(p)}),f=r.length,o=0;o<f;o++)Td[r[o]]=c}function U0(r,n){Yt(r,function(o,c,f,p){f._w=f._w||{},n(o,f._w,f,p)})}function ab(r,n,o){n!=null&&Tt(Td,r)&&Td[r](n,o._a,o,r)}var un=0,oa=1,mo=2,Nr=3,Ni=4,aa=5,Ys=6,sb=7,lb=8;function ub(r,n){return(r%n+n)%n}var yr;Array.prototype.indexOf?yr=Array.prototype.indexOf:yr=function(r){var n;for(n=0;n<this.length;++n)if(this[n]===r)return n;return-1};function j1(r,n){if(isNaN(r)||isNaN(n))return NaN;var o=ub(n,12);return r+=(n-o)/12,o===1?U1(r)?29:28:31-o%7%2}Ve("M",["MM",2],"Mo",function(){return this.month()+1});Ve("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Ve("MMMM",0,0,function(r){return this.localeData().months(this,r)});cn("month","M");fn("month",8);Oe("M",Jt);Oe("MM",Jt,ri);Oe("MMM",function(r,n){return n.monthsShortRegex(r)});Oe("MMMM",function(r,n){return n.monthsRegex(r)});Yt(["M","MM"],function(r,n){n[oa]=mt(r)-1});Yt(["MMM","MMMM"],function(r,n,o,c){var f=o._locale.monthsParse(r,c,o._strict);f!=null?n[oa]=f:ht(o).invalidMonth=r});var cb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),h4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),p4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fb=W0,db=W0;function hb(r,n){return r?Bi(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||p4).test(n)?"format":"standalone"][r.month()]:Bi(this._months)?this._months:this._months.standalone}function pb(r,n){return r?Bi(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[p4.test(n)?"format":"standalone"][r.month()]:Bi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gb(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)p=_o([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(p,"").toLocaleLowerCase();return o?n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null):(f=yr.call(this._longMonthsParse,b),f!==-1?f:null):n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:(f=yr.call(this._longMonthsParse,b),f!==-1?f:null)):(f=yr.call(this._longMonthsParse,b),f!==-1?f:(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null))}function vb(r,n,o){var c,f,p;if(this._monthsParseExact)return gb.call(this,r,n,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(f=_o([2e3,c]),o&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),!o&&!this._monthsParse[c]&&(p="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="MMMM"&&this._longMonthsParse[c].test(r))return c;if(o&&n==="MMM"&&this._shortMonthsParse[c].test(r))return c;if(!o&&this._monthsParse[c].test(r))return c}}function g4(r,n){var o;if(!r.isValid())return r;if(typeof n=="string"){if(/^\d+$/.test(n))n=mt(n);else if(n=r.localeData().monthsParse(n),!la(n))return r}return o=Math.min(r.date(),j1(r.year(),n)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](n,o),r}function v4(r){return r!=null?(g4(this,r),Se.updateOffset(this,!0),this):k1(this,"Month")}function bb(){return j1(this.year(),this.month())}function mb(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||b4.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Tt(this,"_monthsShortRegex")||(this._monthsShortRegex=fb),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function yb(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||b4.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Tt(this,"_monthsRegex")||(this._monthsRegex=db),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function b4(){function r(b,M){return M.length-b.length}var n=[],o=[],c=[],f,p;for(f=0;f<12;f++)p=_o([2e3,f]),n.push(this.monthsShort(p,"")),o.push(this.months(p,"")),c.push(this.months(p,"")),c.push(this.monthsShort(p,""));for(n.sort(r),o.sort(r),c.sort(r),f=0;f<12;f++)n[f]=Qn(n[f]),o[f]=Qn(o[f]);for(f=0;f<24;f++)c[f]=Qn(c[f]);this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}Ve("Y",0,0,function(){var r=this.year();return r<=9999?wo(r,4):"+"+r});Ve(0,["YY",2],0,function(){return this.year()%100});Ve(0,["YYYY",4],0,"year");Ve(0,["YYYYY",5],0,"year");Ve(0,["YYYYYY",6,!0],0,"year");cn("year","y");fn("year",1);Oe("Y",G1);Oe("YY",Jt,ri);Oe("YYYY",lh,sh);Oe("YYYYY",V1,Y1);Oe("YYYYYY",V1,Y1);Yt(["YYYYY","YYYYYY"],un);Yt("YYYY",function(r,n){n[un]=r.length===2?Se.parseTwoDigitYear(r):mt(r)});Yt("YY",function(r,n){n[un]=Se.parseTwoDigitYear(r)});Yt("Y",function(r,n){n[un]=parseInt(r,10)});function x0(r){return U1(r)?366:365}Se.parseTwoDigitYear=function(r){return mt(r)+(mt(r)>68?1900:2e3)};var m4=gu("FullYear",!0);function Cb(){return U1(this.year())}function wb(r,n,o,c,f,p,b){var M;return r<100&&r>=0?(M=new Date(r+400,n,o,c,f,p,b),isFinite(M.getFullYear())&&M.setFullYear(r)):M=new Date(r,n,o,c,f,p,b),M}function O0(r){var n,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,n=new Date(Date.UTC.apply(null,o)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(r)):n=new Date(Date.UTC.apply(null,arguments)),n}function O1(r,n,o){var c=7+n-o,f=(7+O0(r,0,c).getUTCDay()-n)%7;return-f+c-1}function y4(r,n,o,c,f){var p=(7+o-c)%7,b=O1(r,c,f),M=1+7*(n-1)+p+b,S,O;return M<=0?(S=r-1,O=x0(S)+M):M>x0(r)?(S=r+1,O=M-x0(r)):(S=r,O=M),{year:S,dayOfYear:O}}function T0(r,n,o){var c=O1(r.year(),n,o),f=Math.floor((r.dayOfYear()-c-1)/7)+1,p,b;return f<1?(b=r.year()-1,p=f+sa(b,n,o)):f>sa(r.year(),n,o)?(p=f-sa(r.year(),n,o),b=r.year()+1):(b=r.year(),p=f),{week:p,year:b}}function sa(r,n,o){var c=O1(r,n,o),f=O1(r+1,n,o);return(x0(r)-c+f)/7}Ve("w",["ww",2],"wo","week");Ve("W",["WW",2],"Wo","isoWeek");cn("week","w");cn("isoWeek","W");fn("week",5);fn("isoWeek",5);Oe("w",Jt);Oe("ww",Jt,ri);Oe("W",Jt);Oe("WW",Jt,ri);U0(["w","ww","W","WW"],function(r,n,o,c){n[c.substr(0,1)]=mt(r)});function xb(r){return T0(r,this._week.dow,this._week.doy).week}var zb={dow:0,doy:6};function Lb(){return this._week.dow}function _b(){return this._week.doy}function Sb(r){var n=this.localeData().week(this);return r==null?n:this.add((r-n)*7,"d")}function kb(r){var n=T0(this,1,4).week;return r==null?n:this.add((r-n)*7,"d")}Ve("d",0,"do","day");Ve("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Ve("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Ve("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Ve("e",0,0,"weekday");Ve("E",0,0,"isoWeekday");cn("day","d");cn("weekday","e");cn("isoWeekday","E");fn("day",11);fn("weekday",11);fn("isoWeekday",11);Oe("d",Jt);Oe("e",Jt);Oe("E",Jt);Oe("dd",function(r,n){return n.weekdaysMinRegex(r)});Oe("ddd",function(r,n){return n.weekdaysShortRegex(r)});Oe("dddd",function(r,n){return n.weekdaysRegex(r)});U0(["dd","ddd","dddd"],function(r,n,o,c){var f=o._locale.weekdaysParse(r,c,o._strict);f!=null?n.d=f:ht(o).invalidWeekday=r});U0(["d","e","E"],function(r,n,o,c){n[c]=mt(r)});function Mb(r,n){return typeof r!="string"?r:isNaN(r)?(r=n.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function Ob(r,n){return typeof r=="string"?n.weekdaysParse(r)%7||7:isNaN(r)?null:r}function uh(r,n){return r.slice(n,7).concat(r.slice(0,n))}var Tb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),C4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ab=W0,Eb=W0,Ib=W0;function Db(r,n){var o=Bi(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return r===!0?uh(o,this._week.dow):r?o[r.day()]:o}function Rb(r){return r===!0?uh(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Nb(r){return r===!0?uh(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function $b(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)p=_o([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(p,"").toLocaleLowerCase();return o?n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1?f:null):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null):(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null):n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1||(f=yr.call(this._shortWeekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):(f=yr.call(this._minWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null))}function Hb(r,n,o){var c,f,p;if(this._weekdaysParseExact)return $b.call(this,r,n,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(f=_o([2e3,1]).day(c),o&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(p="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="dddd"&&this._fullWeekdaysParse[c].test(r))return c;if(o&&n==="ddd"&&this._shortWeekdaysParse[c].test(r))return c;if(o&&n==="dd"&&this._minWeekdaysParse[c].test(r))return c;if(!o&&this._weekdaysParse[c].test(r))return c}}function Bb(r){if(!this.isValid())return r!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=Mb(r,this.localeData()),this.add(r-n,"d")):n}function Fb(r){if(!this.isValid())return r!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return r==null?n:this.add(r-n,"d")}function Wb(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var n=Ob(r,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function Ub(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Tt(this,"_weekdaysRegex")||(this._weekdaysRegex=Ab),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Tt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Eb),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Tt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ib),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ch(){function r(I,U){return U.length-I.length}var n=[],o=[],c=[],f=[],p,b,M,S,O;for(p=0;p<7;p++)b=_o([2e3,1]).day(p),M=Qn(this.weekdaysMin(b,"")),S=Qn(this.weekdaysShort(b,"")),O=Qn(this.weekdays(b,"")),n.push(M),o.push(S),c.push(O),f.push(M),f.push(S),f.push(O);n.sort(r),o.sort(r),c.sort(r),f.sort(r),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function fh(){return this.hours()%12||12}function Vb(){return this.hours()||24}Ve("H",["HH",2],0,"hour");Ve("h",["hh",2],0,fh);Ve("k",["kk",2],0,Vb);Ve("hmm",0,0,function(){return""+fh.apply(this)+wo(this.minutes(),2)});Ve("hmmss",0,0,function(){return""+fh.apply(this)+wo(this.minutes(),2)+wo(this.seconds(),2)});Ve("Hmm",0,0,function(){return""+this.hours()+wo(this.minutes(),2)});Ve("Hmmss",0,0,function(){return""+this.hours()+wo(this.minutes(),2)+wo(this.seconds(),2)});function w4(r,n){Ve(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}w4("a",!0);w4("A",!1);cn("hour","h");fn("hour",13);function x4(r,n){return n._meridiemParse}Oe("a",x4);Oe("A",x4);Oe("H",Jt);Oe("h",Jt);Oe("k",Jt);Oe("HH",Jt,ri);Oe("hh",Jt,ri);Oe("kk",Jt,ri);Oe("hmm",f4);Oe("hmmss",d4);Oe("Hmm",f4);Oe("Hmmss",d4);Yt(["H","HH"],Nr);Yt(["k","kk"],function(r,n,o){var c=mt(r);n[Nr]=c===24?0:c});Yt(["a","A"],function(r,n,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Yt(["h","hh"],function(r,n,o){n[Nr]=mt(r),ht(o).bigHour=!0});Yt("hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c)),ht(o).bigHour=!0});Yt("hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f)),ht(o).bigHour=!0});Yt("Hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c))});Yt("Hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f))});function Gb(r){return(r+"").toLowerCase().charAt(0)==="p"}var qb=/[ap]\.?m?\.?/i,jb=gu("Hours",!0);function Kb(r,n,o){return r>11?o?"pm":"PM":o?"am":"AM"}var z4={calendar:H8,longDateFormat:U8,invalidDate:Z8,ordinal:G8,dayOfMonthOrdinalParse:q8,relativeTime:K8,months:cb,monthsShort:h4,week:zb,weekdays:Tb,weekdaysMin:Pb,weekdaysShort:C4,meridiemParse:qb},nr={},g0={},P0;function Xb(r,n){var o,c=Math.min(r.length,n.length);for(o=0;o<c;o+=1)if(r[o]!==n[o])return o;return c}function Hp(r){return r&&r.toLowerCase().replace("_","-")}function Qb(r){for(var n=0,o,c,f,p;n<r.length;){for(p=Hp(r[n]).split("-"),o=p.length,c=Hp(r[n+1]),c=c?c.split("-"):null;o>0;){if(f=K1(p.slice(0,o).join("-")),f)return f;if(c&&c.length>=o&&Xb(p,c)>=o-1)break;o--}n++}return P0}function Jb(r){return r.match("^[^/\\\\]*$")!=null}function K1(r){var n=null,o;if(nr[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&Jb(r))try{n=P0._abbr,o=require,o("./locale/"+r),Ka(n)}catch{nr[r]=null}return nr[r]}function Ka(r,n){var o;return r&&(En(n)?o=ca(r):o=dh(r,n),o?P0=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),P0._abbr}function dh(r,n){if(n!==null){var o,c=z4;if(n.abbr=r,nr[r]!=null)o4("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=nr[r]._config;else if(n.parentLocale!=null)if(nr[n.parentLocale]!=null)c=nr[n.parentLocale]._config;else if(o=K1(n.parentLocale),o!=null)c=o._config;else return g0[n.parentLocale]||(g0[n.parentLocale]=[]),g0[n.parentLocale].push({name:r,config:n}),null;return nr[r]=new ih(Md(c,n)),g0[r]&&g0[r].forEach(function(f){dh(f.name,f.config)}),Ka(r),nr[r]}else return delete nr[r],null}function em(r,n){if(n!=null){var o,c,f=z4;nr[r]!=null&&nr[r].parentLocale!=null?nr[r].set(Md(nr[r]._config,n)):(c=K1(r),c!=null&&(f=c._config),n=Md(f,n),c==null&&(n.abbr=r),o=new ih(n),o.parentLocale=nr[r],nr[r]=o),Ka(r)}else nr[r]!=null&&(nr[r].parentLocale!=null?(nr[r]=nr[r].parentLocale,r===Ka()&&Ka(r)):nr[r]!=null&&delete nr[r]);return nr[r]}function ca(r){var n;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return P0;if(!Bi(r)){if(n=K1(r),n)return n;r=[r]}return Qb(r)}function tm(){return Od(nr)}function hh(r){var n,o=r._a;return o&&ht(r).overflow===-2&&(n=o[oa]<0||o[oa]>11?oa:o[mo]<1||o[mo]>j1(o[un],o[oa])?mo:o[Nr]<0||o[Nr]>24||o[Nr]===24&&(o[Ni]!==0||o[aa]!==0||o[Ys]!==0)?Nr:o[Ni]<0||o[Ni]>59?Ni:o[aa]<0||o[aa]>59?aa:o[Ys]<0||o[Ys]>999?Ys:-1,ht(r)._overflowDayOfYear&&(n<un||n>mo)&&(n=mo),ht(r)._overflowWeeks&&n===-1&&(n=sb),ht(r)._overflowWeekday&&n===-1&&(n=lb),ht(r).overflow=n),r}var rm=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nm=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,im=/Z|[+-]\d\d(?::?\d\d)?/,g1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],om=/^\/?Date\((-?\d+)/i,am=/^(?:(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{4}))$/,sm={UT:0,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 L4(r){var n,o,c=r._i,f=rm.exec(c)||nm.exec(c),p,b,M,S,O=g1.length,I=bd.length;if(f){for(ht(r).iso=!0,n=0,o=O;n<o;n++)if(g1[n][1].exec(f[1])){b=g1[n][0],p=g1[n][2]!==!1;break}if(b==null){r._isValid=!1;return}if(f[3]){for(n=0,o=I;n<o;n++)if(bd[n][1].exec(f[3])){M=(f[2]||" ")+bd[n][0];break}if(M==null){r._isValid=!1;return}}if(!p&&M!=null){r._isValid=!1;return}if(f[4])if(im.exec(f[4]))S="Z";else{r._isValid=!1;return}r._f=b+(M||"")+(S||""),gh(r)}else r._isValid=!1}function lm(r,n,o,c,f,p){var b=[um(r),h4.indexOf(n),parseInt(o,10),parseInt(c,10),parseInt(f,10)];return p&&b.push(parseInt(p,10)),b}function um(r){var n=parseInt(r,10);return n<=49?2e3+n:n<=999?1900+n:n}function cm(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fm(r,n,o){if(r){var c=C4.indexOf(r),f=new Date(n[0],n[1],n[2]).getDay();if(c!==f)return ht(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function dm(r,n,o){if(r)return sm[r];if(n)return 0;var c=parseInt(o,10),f=c%100,p=(c-f)/100;return p*60+f}function _4(r){var n=am.exec(cm(r._i)),o;if(n){if(o=lm(n[4],n[3],n[2],n[5],n[6],n[7]),!fm(n[1],o,r))return;r._a=o,r._tzm=dm(n[8],n[9],n[10]),r._d=O0.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ht(r).rfc2822=!0}else r._isValid=!1}function hm(r){var n=om.exec(r._i);if(n!==null){r._d=new Date(+n[1]);return}if(L4(r),r._isValid===!1)delete r._isValid;else return;if(_4(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:Se.createFromInputFallback(r)}Se.createFromInputFallback=wi("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function eu(r,n,o){return r!=null?r:n!=null?n:o}function pm(r){var n=new Date(Se.now());return r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ph(r){var n,o,c=[],f,p,b;if(!r._d){for(f=pm(r),r._w&&r._a[mo]==null&&r._a[oa]==null&&gm(r),r._dayOfYear!=null&&(b=eu(r._a[un],f[un]),(r._dayOfYear>x0(b)||r._dayOfYear===0)&&(ht(r)._overflowDayOfYear=!0),o=O0(b,0,r._dayOfYear),r._a[oa]=o.getUTCMonth(),r._a[mo]=o.getUTCDate()),n=0;n<3&&r._a[n]==null;++n)r._a[n]=c[n]=f[n];for(;n<7;n++)r._a[n]=c[n]=r._a[n]==null?n===2?1:0:r._a[n];r._a[Nr]===24&&r._a[Ni]===0&&r._a[aa]===0&&r._a[Ys]===0&&(r._nextDay=!0,r._a[Nr]=0),r._d=(r._useUTC?O0:wb).apply(null,c),p=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Nr]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==p&&(ht(r).weekdayMismatch=!0)}}function gm(r){var n,o,c,f,p,b,M,S,O;n=r._w,n.GG!=null||n.W!=null||n.E!=null?(p=1,b=4,o=eu(n.GG,r._a[un],T0(Qt(),1,4).year),c=eu(n.W,1),f=eu(n.E,1),(f<1||f>7)&&(S=!0)):(p=r._locale._week.dow,b=r._locale._week.doy,O=T0(Qt(),p,b),o=eu(n.gg,r._a[un],O.year),c=eu(n.w,O.week),n.d!=null?(f=n.d,(f<0||f>6)&&(S=!0)):n.e!=null?(f=n.e+p,(n.e<0||n.e>6)&&(S=!0)):f=p),c<1||c>sa(o,p,b)?ht(r)._overflowWeeks=!0:S!=null?ht(r)._overflowWeekday=!0:(M=y4(o,c,f,p,b),r._a[un]=M.year,r._dayOfYear=M.dayOfYear)}Se.ISO_8601=function(){};Se.RFC_2822=function(){};function gh(r){if(r._f===Se.ISO_8601){L4(r);return}if(r._f===Se.RFC_2822){_4(r);return}r._a=[],ht(r).empty=!0;var n=""+r._i,o,c,f,p,b,M=n.length,S=0,O,I;for(f=a4(r._f,r._locale).match(oh)||[],I=f.length,o=0;o<I;o++)p=f[o],c=(n.match(ib(p,r))||[])[0],c&&(b=n.substr(0,n.indexOf(c)),b.length>0&&ht(r).unusedInput.push(b),n=n.slice(n.indexOf(c)+c.length),S+=c.length),nu[p]?(c?ht(r).empty=!1:ht(r).unusedTokens.push(p),ab(p,c,r)):r._strict&&!c&&ht(r).unusedTokens.push(p);ht(r).charsLeftOver=M-S,n.length>0&&ht(r).unusedInput.push(n),r._a[Nr]<=12&&ht(r).bigHour===!0&&r._a[Nr]>0&&(ht(r).bigHour=void 0),ht(r).parsedDateParts=r._a.slice(0),ht(r).meridiem=r._meridiem,r._a[Nr]=vm(r._locale,r._a[Nr],r._meridiem),O=ht(r).era,O!==null&&(r._a[un]=r._locale.erasConvertYear(O,r._a[un])),ph(r),hh(r)}function vm(r,n,o){var c;return o==null?n:r.meridiemHour!=null?r.meridiemHour(n,o):(r.isPM!=null&&(c=r.isPM(o),c&&n<12&&(n+=12),!c&&n===12&&(n=0)),n)}function bm(r){var n,o,c,f,p,b,M=!1,S=r._f.length;if(S===0){ht(r).invalidFormat=!0,r._d=new Date(NaN);return}for(f=0;f<S;f++)p=0,b=!1,n=nh({},r),r._useUTC!=null&&(n._useUTC=r._useUTC),n._f=r._f[f],gh(n),rh(n)&&(b=!0),p+=ht(n).charsLeftOver,p+=ht(n).unusedTokens.length*10,ht(n).score=p,M?p<c&&(c=p,o=n):(c==null||p<c||b)&&(c=p,o=n,b&&(M=!0));qa(r,o||n)}function mm(r){if(!r._d){var n=ah(r._i),o=n.day===void 0?n.date:n.day;r._a=n4([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),ph(r)}}function ym(r){var n=new F0(hh(S4(r)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function S4(r){var n=r._i,o=r._f;return r._locale=r._locale||ca(r._l),n===null||o===void 0&&n===""?W1({nullInput:!0}):(typeof n=="string"&&(r._i=n=r._locale.preparse(n)),Fi(n)?new F0(hh(n)):(B0(n)?r._d=n:Bi(o)?bm(r):o?gh(r):Cm(r),rh(r)||(r._d=null),r))}function Cm(r){var n=r._i;En(n)?r._d=new Date(Se.now()):B0(n)?r._d=new Date(n.valueOf()):typeof n=="string"?hm(r):Bi(n)?(r._a=n4(n.slice(0),function(o){return parseInt(o,10)}),ph(r)):Gs(n)?mm(r):la(n)?r._d=new Date(n):Se.createFromInputFallback(r)}function k4(r,n,o,c,f){var p={};return(n===!0||n===!1)&&(c=n,n=void 0),(o===!0||o===!1)&&(c=o,o=void 0),(Gs(r)&&th(r)||Bi(r)&&r.length===0)&&(r=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=f,p._l=o,p._i=r,p._f=n,p._strict=c,ym(p)}function Qt(r,n,o,c){return k4(r,n,o,c,!1)}var wm=wi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:W1()}),xm=wi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:W1()});function M4(r,n){var o,c;if(n.length===1&&Bi(n[0])&&(n=n[0]),!n.length)return Qt();for(o=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][r](o))&&(o=n[c]);return o}function zm(){var r=[].slice.call(arguments,0);return M4("isBefore",r)}function Lm(){var r=[].slice.call(arguments,0);return M4("isAfter",r)}var _m=function(){return Date.now?Date.now():+new Date},v0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Sm(r){var n,o=!1,c,f=v0.length;for(n in r)if(Tt(r,n)&&!(yr.call(v0,n)!==-1&&(r[n]==null||!isNaN(r[n]))))return!1;for(c=0;c<f;++c)if(r[v0[c]]){if(o)return!1;parseFloat(r[v0[c]])!==mt(r[v0[c]])&&(o=!0)}return!0}function km(){return this._isValid}function Mm(){return Ui(NaN)}function X1(r){var n=ah(r),o=n.year||0,c=n.quarter||0,f=n.month||0,p=n.week||n.isoWeek||0,b=n.day||0,M=n.hour||0,S=n.minute||0,O=n.second||0,I=n.millisecond||0;this._isValid=Sm(n),this._milliseconds=+I+O*1e3+S*6e4+M*1e3*60*60,this._days=+b+p*7,this._months=+f+c*3+o*12,this._data={},this._locale=ca(),this._bubble()}function y1(r){return r instanceof X1}function Pd(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function Om(r,n,o){var c=Math.min(r.length,n.length),f=Math.abs(r.length-n.length),p=0,b;for(b=0;b<c;b++)(o&&r[b]!==n[b]||!o&&mt(r[b])!==mt(n[b]))&&p++;return p+f}function O4(r,n){Ve(r,0,0,function(){var o=this.utcOffset(),c="+";return o<0&&(o=-o,c="-"),c+wo(~~(o/60),2)+n+wo(~~o%60,2)})}O4("Z",":");O4("ZZ","");Oe("Z",q1);Oe("ZZ",q1);Yt(["Z","ZZ"],function(r,n,o){o._useUTC=!0,o._tzm=vh(q1,r)});var Tm=/([\+\-]|\d\d)/gi;function vh(r,n){var o=(n||"").match(r),c,f,p;return o===null?null:(c=o[o.length-1]||[],f=(c+"").match(Tm)||["-",0,0],p=+(f[1]*60)+mt(f[2]),p===0?0:f[0]==="+"?p:-p)}function bh(r,n){var o,c;return n._isUTC?(o=n.clone(),c=(Fi(r)||B0(r)?r.valueOf():Qt(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+c),Se.updateOffset(o,!1),o):Qt(r).local()}function Ad(r){return-Math.round(r._d.getTimezoneOffset())}Se.updateOffset=function(){};function Pm(r,n,o){var c=this._offset||0,f;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=vh(q1,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&n&&(f=Ad(this)),this._offset=r,this._isUTC=!0,f!=null&&this.add(f,"m"),c!==r&&(!n||this._changeInProgress?A4(this,Ui(r-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Se.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Ad(this)}function Am(r,n){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,n),this):-this.utcOffset()}function Em(r){return this.utcOffset(0,r)}function Im(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(Ad(this),"m")),this}function Dm(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=vh(rb,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Rm(r){return this.isValid()?(r=r?Qt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Nm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $m(){if(!En(this._isDSTShifted))return this._isDSTShifted;var r={},n;return nh(r,this),r=S4(r),r._a?(n=r._isUTC?_o(r._a):Qt(r._a),this._isDSTShifted=this.isValid()&&Om(r._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Hm(){return this.isValid()?!this._isUTC:!1}function Bm(){return this.isValid()?this._isUTC:!1}function T4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Fm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ui(r,n){var o=r,c=null,f,p,b;return y1(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:la(r)||!isNaN(+r)?(o={},n?o[n]=+r:o.milliseconds=+r):(c=Fm.exec(r))?(f=c[1]==="-"?-1:1,o={y:0,d:mt(c[mo])*f,h:mt(c[Nr])*f,m:mt(c[Ni])*f,s:mt(c[aa])*f,ms:mt(Pd(c[Ys]*1e3))*f}):(c=Wm.exec(r))?(f=c[1]==="-"?-1:1,o={y:Ws(c[2],f),M:Ws(c[3],f),w:Ws(c[4],f),d:Ws(c[5],f),h:Ws(c[6],f),m:Ws(c[7],f),s:Ws(c[8],f)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(b=Um(Qt(o.from),Qt(o.to)),o={},o.ms=b.milliseconds,o.M=b.months),p=new X1(o),y1(r)&&Tt(r,"_locale")&&(p._locale=r._locale),y1(r)&&Tt(r,"_isValid")&&(p._isValid=r._isValid),p}Ui.fn=X1.prototype;Ui.invalid=Mm;function Ws(r,n){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*n}function Bp(r,n){var o={};return o.months=n.month()-r.month()+(n.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(n)&&--o.months,o.milliseconds=+n-+r.clone().add(o.months,"M"),o}function Um(r,n){var o;return r.isValid()&&n.isValid()?(n=bh(n,r),r.isBefore(n)?o=Bp(r,n):(o=Bp(n,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function P4(r,n){return function(o,c){var f,p;return c!==null&&!isNaN(+c)&&(o4(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=o,o=c,c=p),f=Ui(o,c),A4(this,f,r),this}}function A4(r,n,o,c){var f=n._milliseconds,p=Pd(n._days),b=Pd(n._months);!r.isValid()||(c=c==null?!0:c,b&&g4(r,k1(r,"Month")+b*o),p&&l4(r,"Date",k1(r,"Date")+p*o),f&&r._d.setTime(r._d.valueOf()+f*o),c&&Se.updateOffset(r,p||b))}var Ym=P4(1,"add"),Zm=P4(-1,"subtract");function E4(r){return typeof r=="string"||r instanceof String}function Vm(r){return Fi(r)||B0(r)||E4(r)||la(r)||qm(r)||Gm(r)||r===null||r===void 0}function Gm(r){var n=Gs(r)&&!th(r),o=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,p,b=c.length;for(f=0;f<b;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function qm(r){var n=Bi(r),o=!1;return n&&(o=r.filter(function(c){return!la(c)&&E4(r)}).length===0),n&&o}function jm(r){var n=Gs(r)&&!th(r),o=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,p;for(f=0;f<c.length;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function Km(r,n){var o=r.diff(n,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function Xm(r,n){arguments.length===1&&(arguments[0]?Vm(arguments[0])?(r=arguments[0],n=void 0):jm(arguments[0])&&(n=arguments[0],r=void 0):(r=void 0,n=void 0));var o=r||Qt(),c=bh(o,this).startOf("day"),f=Se.calendarFormat(this,c)||"sameElse",p=n&&(So(n[f])?n[f].call(this,o):n[f]);return this.format(p||this.localeData().calendar(f,this,Qt(o)))}function Qm(){return new F0(this)}function Jm(r,n){var o=Fi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function ey(r,n){var o=Fi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function ty(r,n,o,c){var f=Fi(r)?r:Qt(r),p=Fi(n)?n:Qt(n);return this.isValid()&&f.isValid()&&p.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(f,o):!this.isBefore(f,o))&&(c[1]===")"?this.isBefore(p,o):!this.isAfter(p,o))):!1}function ry(r,n){var o=Fi(r)?r:Qt(r),c;return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()===o.valueOf():(c=o.valueOf(),this.clone().startOf(n).valueOf()<=c&&c<=this.clone().endOf(n).valueOf())):!1}function ny(r,n){return this.isSame(r,n)||this.isAfter(r,n)}function iy(r,n){return this.isSame(r,n)||this.isBefore(r,n)}function oy(r,n,o){var c,f,p;if(!this.isValid())return NaN;if(c=bh(r,this),!c.isValid())return NaN;switch(f=(c.utcOffset()-this.utcOffset())*6e4,n=xi(n),n){case"year":p=C1(this,c)/12;break;case"month":p=C1(this,c);break;case"quarter":p=C1(this,c)/3;break;case"second":p=(this-c)/1e3;break;case"minute":p=(this-c)/6e4;break;case"hour":p=(this-c)/36e5;break;case"day":p=(this-c-f)/864e5;break;case"week":p=(this-c-f)/6048e5;break;default:p=this-c}return o?p:vi(p)}function C1(r,n){if(r.date()<n.date())return-C1(n,r);var o=(n.year()-r.year())*12+(n.month()-r.month()),c=r.clone().add(o,"months"),f,p;return n-c<0?(f=r.clone().add(o-1,"months"),p=(n-c)/(c-f)):(f=r.clone().add(o+1,"months"),p=(n-c)/(f-c)),-(o+p)||0}Se.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Se.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ay(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function sy(r){if(!this.isValid())return null;var n=r!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?m1(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):So(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",m1(o,"Z")):m1(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ly(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",n="",o,c,f,p;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),o="["+r+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",p=n+'[")]',this.format(o+c+f+p)}function uy(r){r||(r=this.isUtc()?Se.defaultFormatUtc:Se.defaultFormat);var n=m1(this,r);return this.localeData().postformat(n)}function cy(r,n){return this.isValid()&&(Fi(r)&&r.isValid()||Qt(r).isValid())?Ui({to:this,from:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function fy(r){return this.from(Qt(),r)}function dy(r,n){return this.isValid()&&(Fi(r)&&r.isValid()||Qt(r).isValid())?Ui({from:this,to:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function hy(r){return this.to(Qt(),r)}function I4(r){var n;return r===void 0?this._locale._abbr:(n=ca(r),n!=null&&(this._locale=n),this)}var D4=wi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function R4(){return this._locale}var T1=1e3,iu=60*T1,P1=60*iu,N4=(365*400+97)*24*P1;function ou(r,n){return(r%n+n)%n}function $4(r,n,o){return r<100&&r>=0?new Date(r+400,n,o)-N4:new Date(r,n,o).valueOf()}function H4(r,n,o){return r<100&&r>=0?Date.UTC(r+400,n,o)-N4:Date.UTC(r,n,o)}function py(r){var n,o;if(r=xi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?H4:$4,r){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=ou(n+(this._isUTC?0:this.utcOffset()*iu),P1);break;case"minute":n=this._d.valueOf(),n-=ou(n,iu);break;case"second":n=this._d.valueOf(),n-=ou(n,T1);break}return this._d.setTime(n),Se.updateOffset(this,!0),this}function gy(r){var n,o;if(r=xi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?H4:$4,r){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=P1-ou(n+(this._isUTC?0:this.utcOffset()*iu),P1)-1;break;case"minute":n=this._d.valueOf(),n+=iu-ou(n,iu)-1;break;case"second":n=this._d.valueOf(),n+=T1-ou(n,T1)-1;break}return this._d.setTime(n),Se.updateOffset(this,!0),this}function vy(){return this._d.valueOf()-(this._offset||0)*6e4}function by(){return Math.floor(this.valueOf()/1e3)}function my(){return new Date(this.valueOf())}function yy(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function Cy(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function wy(){return this.isValid()?this.toISOString():null}function xy(){return rh(this)}function zy(){return qa({},ht(this))}function Ly(){return ht(this).overflow}function _y(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ve("N",0,0,"eraAbbr");Ve("NN",0,0,"eraAbbr");Ve("NNN",0,0,"eraAbbr");Ve("NNNN",0,0,"eraName");Ve("NNNNN",0,0,"eraNarrow");Ve("y",["y",1],"yo","eraYear");Ve("y",["yy",2],0,"eraYear");Ve("y",["yyy",3],0,"eraYear");Ve("y",["yyyy",4],0,"eraYear");Oe("N",mh);Oe("NN",mh);Oe("NNN",mh);Oe("NNNN",Ry);Oe("NNNNN",Ny);Yt(["N","NN","NNN","NNNN","NNNNN"],function(r,n,o,c){var f=o._locale.erasParse(r,c,o._strict);f?ht(o).era=f:ht(o).invalidEra=r});Oe("y",vu);Oe("yy",vu);Oe("yyy",vu);Oe("yyyy",vu);Oe("yo",$y);Yt(["y","yy","yyy","yyyy"],un);Yt(["yo"],function(r,n,o,c){var f;o._locale._eraYearOrdinalRegex&&(f=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[un]=o._locale.eraYearOrdinalParse(r,f):n[un]=parseInt(r,10)});function Sy(r,n){var o,c,f,p=this._eras||ca("en")._eras;for(o=0,c=p.length;o<c;++o){switch(typeof p[o].since){case"string":f=Se(p[o].since).startOf("day"),p[o].since=f.valueOf();break}switch(typeof p[o].until){case"undefined":p[o].until=1/0;break;case"string":f=Se(p[o].until).startOf("day").valueOf(),p[o].until=f.valueOf();break}}return p}function ky(r,n,o){var c,f,p=this.eras(),b,M,S;for(r=r.toUpperCase(),c=0,f=p.length;c<f;++c)if(b=p[c].name.toUpperCase(),M=p[c].abbr.toUpperCase(),S=p[c].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(M===r)return p[c];break;case"NNNN":if(b===r)return p[c];break;case"NNNNN":if(S===r)return p[c];break}else if([b,M,S].indexOf(r)>=0)return p[c]}function My(r,n){var o=r.since<=r.until?1:-1;return n===void 0?Se(r.since).year():Se(r.since).year()+(n-r.offset)*o}function Oy(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].name;return""}function Ty(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].narrow;return""}function Py(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].abbr;return""}function Ay(){var r,n,o,c,f=this.localeData().eras();for(r=0,n=f.length;r<n;++r)if(o=f[r].since<=f[r].until?1:-1,c=this.clone().startOf("day").valueOf(),f[r].since<=c&&c<=f[r].until||f[r].until<=c&&c<=f[r].since)return(this.year()-Se(f[r].since).year())*o+f[r].offset;return this.year()}function Ey(r){return Tt(this,"_erasNameRegex")||yh.call(this),r?this._erasNameRegex:this._erasRegex}function Iy(r){return Tt(this,"_erasAbbrRegex")||yh.call(this),r?this._erasAbbrRegex:this._erasRegex}function Dy(r){return Tt(this,"_erasNarrowRegex")||yh.call(this),r?this._erasNarrowRegex:this._erasRegex}function mh(r,n){return n.erasAbbrRegex(r)}function Ry(r,n){return n.erasNameRegex(r)}function Ny(r,n){return n.erasNarrowRegex(r)}function $y(r,n){return n._eraYearOrdinalRegex||vu}function yh(){var r=[],n=[],o=[],c=[],f,p,b=this.eras();for(f=0,p=b.length;f<p;++f)n.push(Qn(b[f].name)),r.push(Qn(b[f].abbr)),o.push(Qn(b[f].narrow)),c.push(Qn(b[f].name)),c.push(Qn(b[f].abbr)),c.push(Qn(b[f].narrow));this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}Ve(0,["gg",2],0,function(){return this.weekYear()%100});Ve(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Q1(r,n){Ve(0,[r,r.length],0,n)}Q1("gggg","weekYear");Q1("ggggg","weekYear");Q1("GGGG","isoWeekYear");Q1("GGGGG","isoWeekYear");cn("weekYear","gg");cn("isoWeekYear","GG");fn("weekYear",1);fn("isoWeekYear",1);Oe("G",G1);Oe("g",G1);Oe("GG",Jt,ri);Oe("gg",Jt,ri);Oe("GGGG",lh,sh);Oe("gggg",lh,sh);Oe("GGGGG",V1,Y1);Oe("ggggg",V1,Y1);U0(["gggg","ggggg","GGGG","GGGGG"],function(r,n,o,c){n[c.substr(0,2)]=mt(r)});U0(["gg","GG"],function(r,n,o,c){n[c]=Se.parseTwoDigitYear(r)});function Hy(r){return B4.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function By(r){return B4.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Fy(){return sa(this.year(),1,4)}function Wy(){return sa(this.isoWeekYear(),1,4)}function Uy(){var r=this.localeData()._week;return sa(this.year(),r.dow,r.doy)}function Yy(){var r=this.localeData()._week;return sa(this.weekYear(),r.dow,r.doy)}function B4(r,n,o,c,f){var p;return r==null?T0(this,c,f).year:(p=sa(r,c,f),n>p&&(n=p),Zy.call(this,r,n,o,c,f))}function Zy(r,n,o,c,f){var p=y4(r,n,o,c,f),b=O0(p.year,0,p.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}Ve("Q",0,"Qo","quarter");cn("quarter","Q");fn("quarter",7);Oe("Q",u4);Yt("Q",function(r,n){n[oa]=(mt(r)-1)*3});function Vy(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Ve("D",["DD",2],"Do","date");cn("date","D");fn("date",9);Oe("D",Jt);Oe("DD",Jt,ri);Oe("Do",function(r,n){return r?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Yt(["D","DD"],mo);Yt("Do",function(r,n){n[mo]=mt(r.match(Jt)[0])});var F4=gu("Date",!0);Ve("DDD",["DDDD",3],"DDDo","dayOfYear");cn("dayOfYear","DDD");fn("dayOfYear",4);Oe("DDD",Z1);Oe("DDDD",c4);Yt(["DDD","DDDD"],function(r,n,o){o._dayOfYear=mt(r)});function Gy(r){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?n:this.add(r-n,"d")}Ve("m",["mm",2],0,"minute");cn("minute","m");fn("minute",14);Oe("m",Jt);Oe("mm",Jt,ri);Yt(["m","mm"],Ni);var qy=gu("Minutes",!1);Ve("s",["ss",2],0,"second");cn("second","s");fn("second",15);Oe("s",Jt);Oe("ss",Jt,ri);Yt(["s","ss"],aa);var jy=gu("Seconds",!1);Ve("S",0,0,function(){return~~(this.millisecond()/100)});Ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ve(0,["SSS",3],0,"millisecond");Ve(0,["SSSS",4],0,function(){return this.millisecond()*10});Ve(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});cn("millisecond","ms");fn("millisecond",16);Oe("S",Z1,u4);Oe("SS",Z1,ri);Oe("SSS",Z1,c4);var ja,W4;for(ja="SSSS";ja.length<=9;ja+="S")Oe(ja,vu);function Ky(r,n){n[Ys]=mt(("0."+r)*1e3)}for(ja="S";ja.length<=9;ja+="S")Yt(ja,Ky);W4=gu("Milliseconds",!1);Ve("z",0,0,"zoneAbbr");Ve("zz",0,0,"zoneName");function Xy(){return this._isUTC?"UTC":""}function Qy(){return this._isUTC?"Coordinated Universal Time":""}var ue=F0.prototype;ue.add=Ym;ue.calendar=Xm;ue.clone=Qm;ue.diff=oy;ue.endOf=gy;ue.format=uy;ue.from=cy;ue.fromNow=fy;ue.to=dy;ue.toNow=hy;ue.get=eb;ue.invalidAt=Ly;ue.isAfter=Jm;ue.isBefore=ey;ue.isBetween=ty;ue.isSame=ry;ue.isSameOrAfter=ny;ue.isSameOrBefore=iy;ue.isValid=xy;ue.lang=D4;ue.locale=I4;ue.localeData=R4;ue.max=xm;ue.min=wm;ue.parsingFlags=zy;ue.set=tb;ue.startOf=py;ue.subtract=Zm;ue.toArray=yy;ue.toObject=Cy;ue.toDate=my;ue.toISOString=sy;ue.inspect=ly;typeof Symbol!="undefined"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=wy;ue.toString=ay;ue.unix=by;ue.valueOf=vy;ue.creationData=_y;ue.eraName=Oy;ue.eraNarrow=Ty;ue.eraAbbr=Py;ue.eraYear=Ay;ue.year=m4;ue.isLeapYear=Cb;ue.weekYear=Hy;ue.isoWeekYear=By;ue.quarter=ue.quarters=Vy;ue.month=v4;ue.daysInMonth=bb;ue.week=ue.weeks=Sb;ue.isoWeek=ue.isoWeeks=kb;ue.weeksInYear=Uy;ue.weeksInWeekYear=Yy;ue.isoWeeksInYear=Fy;ue.isoWeeksInISOWeekYear=Wy;ue.date=F4;ue.day=ue.days=Bb;ue.weekday=Fb;ue.isoWeekday=Wb;ue.dayOfYear=Gy;ue.hour=ue.hours=jb;ue.minute=ue.minutes=qy;ue.second=ue.seconds=jy;ue.millisecond=ue.milliseconds=W4;ue.utcOffset=Pm;ue.utc=Em;ue.local=Im;ue.parseZone=Dm;ue.hasAlignedHourOffset=Rm;ue.isDST=Nm;ue.isLocal=Hm;ue.isUtcOffset=Bm;ue.isUtc=T4;ue.isUTC=T4;ue.zoneAbbr=Xy;ue.zoneName=Qy;ue.dates=wi("dates accessor is deprecated. Use date instead.",F4);ue.months=wi("months accessor is deprecated. Use month instead",v4);ue.years=wi("years accessor is deprecated. Use year instead",m4);ue.zone=wi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Am);ue.isDSTShifted=wi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$m);function Jy(r){return Qt(r*1e3)}function eC(){return Qt.apply(null,arguments).parseZone()}function U4(r){return r}var Pt=ih.prototype;Pt.calendar=B8;Pt.longDateFormat=Y8;Pt.invalidDate=V8;Pt.ordinal=j8;Pt.preparse=U4;Pt.postformat=U4;Pt.relativeTime=X8;Pt.pastFuture=Q8;Pt.set=$8;Pt.eras=Sy;Pt.erasParse=ky;Pt.erasConvertYear=My;Pt.erasAbbrRegex=Iy;Pt.erasNameRegex=Ey;Pt.erasNarrowRegex=Dy;Pt.months=hb;Pt.monthsShort=pb;Pt.monthsParse=vb;Pt.monthsRegex=yb;Pt.monthsShortRegex=mb;Pt.week=xb;Pt.firstDayOfYear=_b;Pt.firstDayOfWeek=Lb;Pt.weekdays=Db;Pt.weekdaysMin=Nb;Pt.weekdaysShort=Rb;Pt.weekdaysParse=Hb;Pt.weekdaysRegex=Ub;Pt.weekdaysShortRegex=Yb;Pt.weekdaysMinRegex=Zb;Pt.isPM=Gb;Pt.meridiem=Kb;function A1(r,n,o,c){var f=ca(),p=_o().set(c,n);return f[o](p,r)}function Y4(r,n,o){if(la(r)&&(n=r,r=void 0),r=r||"",n!=null)return A1(r,n,o,"month");var c,f=[];for(c=0;c<12;c++)f[c]=A1(r,c,o,"month");return f}function Ch(r,n,o,c){typeof r=="boolean"?(la(n)&&(o=n,n=void 0),n=n||""):(n=r,o=n,r=!1,la(n)&&(o=n,n=void 0),n=n||"");var f=ca(),p=r?f._week.dow:0,b,M=[];if(o!=null)return A1(n,(o+p)%7,c,"day");for(b=0;b<7;b++)M[b]=A1(n,(b+p)%7,c,"day");return M}function tC(r,n){return Y4(r,n,"months")}function rC(r,n){return Y4(r,n,"monthsShort")}function nC(r,n,o){return Ch(r,n,o,"weekdays")}function iC(r,n,o){return Ch(r,n,o,"weekdaysShort")}function oC(r,n,o){return Ch(r,n,o,"weekdaysMin")}Ka("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var n=r%10,o=mt(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return r+o}});Se.lang=wi("moment.lang is deprecated. Use moment.locale instead.",Ka);Se.langData=wi("moment.langData is deprecated. Use moment.localeData instead.",ca);var ra=Math.abs;function aC(){var r=this._data;return this._milliseconds=ra(this._milliseconds),this._days=ra(this._days),this._months=ra(this._months),r.milliseconds=ra(r.milliseconds),r.seconds=ra(r.seconds),r.minutes=ra(r.minutes),r.hours=ra(r.hours),r.months=ra(r.months),r.years=ra(r.years),this}function Z4(r,n,o,c){var f=Ui(n,o);return r._milliseconds+=c*f._milliseconds,r._days+=c*f._days,r._months+=c*f._months,r._bubble()}function sC(r,n){return Z4(this,r,n,1)}function lC(r,n){return Z4(this,r,n,-1)}function Fp(r){return r<0?Math.floor(r):Math.ceil(r)}function uC(){var r=this._milliseconds,n=this._days,o=this._months,c=this._data,f,p,b,M,S;return r>=0&&n>=0&&o>=0||r<=0&&n<=0&&o<=0||(r+=Fp(Ed(o)+n)*864e5,n=0,o=0),c.milliseconds=r%1e3,f=vi(r/1e3),c.seconds=f%60,p=vi(f/60),c.minutes=p%60,b=vi(p/60),c.hours=b%24,n+=vi(b/24),S=vi(V4(n)),o+=S,n-=Fp(Ed(S)),M=vi(o/12),o%=12,c.days=n,c.months=o,c.years=M,this}function V4(r){return r*4800/146097}function Ed(r){return r*146097/4800}function cC(r){if(!this.isValid())return NaN;var n,o,c=this._milliseconds;if(r=xi(r),r==="month"||r==="quarter"||r==="year")switch(n=this._days+c/864e5,o=this._months+V4(n),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(n=this._days+Math.round(Ed(this._months)),r){case"week":return n/7+c/6048e5;case"day":return n+c/864e5;case"hour":return n*24+c/36e5;case"minute":return n*1440+c/6e4;case"second":return n*86400+c/1e3;case"millisecond":return Math.floor(n*864e5)+c;default:throw new Error("Unknown unit "+r)}}function fC(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+mt(this._months/12)*31536e6:NaN}function fa(r){return function(){return this.as(r)}}var dC=fa("ms"),hC=fa("s"),pC=fa("m"),gC=fa("h"),vC=fa("d"),bC=fa("w"),mC=fa("M"),yC=fa("Q"),CC=fa("y");function wC(){return Ui(this)}function xC(r){return r=xi(r),this.isValid()?this[r+"s"]():NaN}function Qs(r){return function(){return this.isValid()?this._data[r]:NaN}}var zC=Qs("milliseconds"),LC=Qs("seconds"),_C=Qs("minutes"),SC=Qs("hours"),kC=Qs("days"),MC=Qs("months"),OC=Qs("years");function TC(){return vi(this.days()/7)}var na=Math.round,tu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function PC(r,n,o,c,f){return f.relativeTime(n||1,!!o,r,c)}function AC(r,n,o,c){var f=Ui(r).abs(),p=na(f.as("s")),b=na(f.as("m")),M=na(f.as("h")),S=na(f.as("d")),O=na(f.as("M")),I=na(f.as("w")),U=na(f.as("y")),q=p<=o.ss&&["s",p]||p<o.s&&["ss",p]||b<=1&&["m"]||b<o.m&&["mm",b]||M<=1&&["h"]||M<o.h&&["hh",M]||S<=1&&["d"]||S<o.d&&["dd",S];return o.w!=null&&(q=q||I<=1&&["w"]||I<o.w&&["ww",I]),q=q||O<=1&&["M"]||O<o.M&&["MM",O]||U<=1&&["y"]||["yy",U],q[2]=n,q[3]=+r>0,q[4]=c,PC.apply(null,q)}function EC(r){return r===void 0?na:typeof r=="function"?(na=r,!0):!1}function IC(r,n){return tu[r]===void 0?!1:n===void 0?tu[r]:(tu[r]=n,r==="s"&&(tu.ss=n-1),!0)}function DC(r,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,c=tu,f,p;return typeof r=="object"&&(n=r,r=!1),typeof r=="boolean"&&(o=r),typeof n=="object"&&(c=Object.assign({},tu,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),f=this.localeData(),p=AC(this,!o,c,f),o&&(p=f.pastFuture(+this,p)),f.postformat(p)}var md=Math.abs;function Xl(r){return(r>0)-(r<0)||+r}function J1(){if(!this.isValid())return this.localeData().invalidDate();var r=md(this._milliseconds)/1e3,n=md(this._days),o=md(this._months),c,f,p,b,M=this.asSeconds(),S,O,I,U;return M?(c=vi(r/60),f=vi(c/60),r%=60,c%=60,p=vi(o/12),o%=12,b=r?r.toFixed(3).replace(/\.?0+$/,""):"",S=M<0?"-":"",O=Xl(this._months)!==Xl(M)?"-":"",I=Xl(this._days)!==Xl(M)?"-":"",U=Xl(this._milliseconds)!==Xl(M)?"-":"",S+"P"+(p?O+p+"Y":"")+(o?O+o+"M":"")+(n?I+n+"D":"")+(f||c||r?"T":"")+(f?U+f+"H":"")+(c?U+c+"M":"")+(r?U+b+"S":"")):"P0D"}var St=X1.prototype;St.isValid=km;St.abs=aC;St.add=sC;St.subtract=lC;St.as=cC;St.asMilliseconds=dC;St.asSeconds=hC;St.asMinutes=pC;St.asHours=gC;St.asDays=vC;St.asWeeks=bC;St.asMonths=mC;St.asQuarters=yC;St.asYears=CC;St.valueOf=fC;St._bubble=uC;St.clone=wC;St.get=xC;St.milliseconds=zC;St.seconds=LC;St.minutes=_C;St.hours=SC;St.days=kC;St.weeks=TC;St.months=MC;St.years=OC;St.humanize=DC;St.toISOString=J1;St.toString=J1;St.toJSON=J1;St.locale=I4;St.localeData=R4;St.toIsoString=wi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",J1);St.lang=D4;Ve("X",0,0,"unix");Ve("x",0,0,"valueOf");Oe("x",G1);Oe("X",nb);Yt("X",function(r,n,o){o._d=new Date(parseFloat(r)*1e3)});Yt("x",function(r,n,o){o._d=new Date(mt(r))});//! moment.js
2912
+ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.unix=Jy;Se.months=tC;Se.isDate=B0;Se.locale=Ka;Se.invalid=W1;Se.duration=Ui;Se.isMoment=Fi;Se.weekdays=nC;Se.parseZone=eC;Se.localeData=ca;Se.isDuration=y1;Se.monthsShort=rC;Se.weekdaysMin=oC;Se.defineLocale=dh;Se.updateLocale=em;Se.locales=tm;Se.weekdaysShort=iC;Se.normalizeUnits=xi;Se.relativeTimeRounding=EC;Se.relativeTimeThreshold=IC;Se.calendarFormat=Km;Se.prototype=ue;Se.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var RC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,ts=(r,n,o,c)=>{for(var f=c>1?void 0:c?NC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&RC(n,o,f),f};const G4=Ee("input-time"),q4="h:mma",j4=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,K4=/^(1[3-9]|2[0-3]).*/,X4=/^(\d\d?)(am?|pm?)/,Q4=(r,n)=>({label:`${r}${n?` (${n})`:""}`,value:r}),$C=(r,n)=>{const c=Math.ceil(1440/r),f=Se().startOf("day");return Array(c).fill(null).map((p,b)=>{const S=(b>0?f.add(r,"minutes"):f).format(q4);return Q4(S,n)})},HC=(r,n)=>{const o=r.trim(),c=r.match(j4);if(!o||!c)return[];const[,f,p,b]=c,M=parseInt(f,10),S=M>12?`${M-12}`:`${M}`,O=`${p}${b||0}`,I=`${S}:${O}`;return["am","pm"].map(U=>Q4(`${I}${U}`,n))},BC=(r,{value:n})=>{const o=r.match(K4);if(!o||!n)return!1;const[,c]=o,f=`${parseInt(c,10)-12}`,p=r.substring(c.length).replace(":",""),b=`${f}:${p}`;return n.startsWith(b)&&n.endsWith("pm")},FC=(r,{value:n})=>{const o=r.match(X4);if(!o)return!1;const[,c,f]=o;return!!(n!=null&&n.replace(":00","").startsWith(`${c}${f}`))},WC=(...r)=>FC(...r)||BC(...r);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=$C(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var r;this.valueLabel=(r=this.getItems().find(({value:n})=>n===this.value))==null?void 0:r.label,this.resetSearch()}isCustomQueryMatch(r){return this.query?WC(this.query,r):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=HC(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return ee`
2808
2913
  ${this.handleNoResults()} ${this.renderOptionsData()}
2809
2914
  ${this.renderFreeformOptions()}
2810
- `}};ts([F({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);ts([F({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);ts([F({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);ts([F({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);ts([F({type:String})],exports.InputTime.prototype,"placeholder",2);ts([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);ts([pt()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=ts([Q(H4)],exports.InputTime);var RC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,mh=(r,n,o,c)=>{for(var f=c>1?void 0:c?NC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&RC(n,o,f),f};const Z4=Ee("heading");exports.Heading=class extends Ue{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 n;const r=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return ee`<h1 class=${r}><slot></slot></h1>`;case 2:return ee`<h2 class=${r}><slot></slot></h2>`;case 3:return ee`<h3 class=${r}><slot></slot></h3>`;case 4:return ee`<h4 class=${r}><slot></slot></h4>`;case 5:return ee`<h5 class=${r}><slot></slot></h5>`;case 6:return ee`<h6 class=${r}><slot></slot></h6>`}}};exports.Heading.styles=Se`
2915
+ `}};ts([F({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);ts([F({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);ts([F({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);ts([F({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);ts([F({type:String})],exports.InputTime.prototype,"placeholder",2);ts([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);ts([pt()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=ts([Q(G4)],exports.InputTime);var UC=Object.defineProperty,YC=Object.getOwnPropertyDescriptor,wh=(r,n,o,c)=>{for(var f=c>1?void 0:c?YC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&UC(n,o,f),f};const J4=Ee("heading");exports.Heading=class extends Ue{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 n;const r=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return ee`<h1 class=${r}><slot></slot></h1>`;case 2:return ee`<h2 class=${r}><slot></slot></h2>`;case 3:return ee`<h3 class=${r}><slot></slot></h3>`;case 4:return ee`<h4 class=${r}><slot></slot></h4>`;case 5:return ee`<h5 class=${r}><slot></slot></h5>`;case 6:return ee`<h6 class=${r}><slot></slot></h6>`}}};exports.Heading.styles=ge`
2811
2916
  h1,
2812
2917
  h2,
2813
2918
  h3,
@@ -2852,7 +2957,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
2852
2957
  :host {
2853
2958
  display: block;
2854
2959
  }
2855
- `;mh([F({type:String})],exports.Heading.prototype,"size",2);mh([F({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=mh([Q(Z4)],exports.Heading);var $C=Object.defineProperty,HC=Object.getOwnPropertyDescriptor,ha=(r,n,o,c)=>{for(var f=c>1?void 0:c?HC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&$C(n,o,f),f};const V4=Ee("link"),G4=Ee("link-button"),q4=Se`
2960
+ `;wh([F({type:String})],exports.Heading.prototype,"size",2);wh([F({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=wh([Q(J4)],exports.Heading);var ZC=Object.defineProperty,VC=Object.getOwnPropertyDescriptor,da=(r,n,o,c)=>{for(var f=c>1?void 0:c?VC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&ZC(n,o,f),f};const e5=Ee("link"),t5=Ee("link-button"),r5=ge`
2856
2961
  :host {
2857
2962
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
2858
2963
  align-items: center;
@@ -2860,6 +2965,10 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
2860
2965
  font-weight: var(--brz-font-weight-medium);
2861
2966
  }
2862
2967
 
2968
+ ${E0("a",ge`
2969
+ border-radius: var(--brz-outline-border-radius);
2970
+ `)}
2971
+
2863
2972
  :host brz-icon {
2864
2973
  padding-left: var(--brz-spacing-1);
2865
2974
  }
@@ -2878,12 +2987,12 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
2878
2987
  :host([link-type='secondary']:hover) {
2879
2988
  text-decoration: none;
2880
2989
  }
2881
- `,BC=Se`
2990
+ `,GC=ge`
2882
2991
  a {
2883
2992
  color: inherit;
2884
2993
  text-decoration: inherit;
2885
2994
  }
2886
- `,FC=Se`
2995
+ `,qC=ge`
2887
2996
  button {
2888
2997
  font-family: inherit;
2889
2998
  font-size: inherit;
@@ -2897,15 +3006,15 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
2897
3006
  }
2898
3007
  `;exports.Link=class extends Ue{constructor(){super(...arguments),this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(r){this.virtual&&r.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}render(){return ee`
2899
3008
  <a
2900
- href="${Vt(this.href)}"
2901
- target="${Vt(this.target)}"
2902
- rel="${Vt(this.rel)}"
3009
+ href="${qt(this.href)}"
3010
+ target="${qt(this.target)}"
3011
+ rel="${qt(this.rel)}"
2903
3012
  @click="${this.handleClick}"
2904
3013
  >
2905
3014
  <slot></slot>
2906
3015
  </a>
2907
3016
  ${this.isExternal?ee`<brz-icon icon="openLink" size="12"></brz-icon>`:""}
2908
- `}};exports.Link.styles=[BC,q4];ha([F({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);ha([F({type:String,reflect:!0})],exports.Link.prototype,"href",2);ha([F({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);ha([F({type:String,reflect:!0})],exports.Link.prototype,"target",2);ha([F({type:String,reflect:!0})],exports.Link.prototype,"rel",2);ha([F({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=ha([Q(V4)],exports.Link);exports.LinkButton=class extends Ue{constructor(){super(...arguments),this.linkType="primary"}render(){return ee` <button><slot></slot></button>`}};exports.LinkButton.styles=[FC,q4];ha([F({type:String,attribute:"link-type",reflect:!0})],exports.LinkButton.prototype,"linkType",2);exports.LinkButton=ha([Q(G4)],exports.LinkButton);var WC=Object.defineProperty,UC=Object.getOwnPropertyDescriptor,W0=(r,n,o,c)=>{for(var f=c>1?void 0:c?UC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&WC(n,o,f),f};const j4=Ee("side-navigation-item"),YC=Se`
3017
+ `}};exports.Link.styles=[GC,r5];da([F({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);da([F({type:String,reflect:!0})],exports.Link.prototype,"href",2);da([F({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);da([F({type:String,reflect:!0})],exports.Link.prototype,"target",2);da([F({type:String,reflect:!0})],exports.Link.prototype,"rel",2);da([F({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=da([Q(e5)],exports.Link);exports.LinkButton=class extends Ue{constructor(){super(...arguments),this.linkType="primary"}render(){return ee` <button><slot></slot></button>`}};exports.LinkButton.styles=[qC,r5];da([F({type:String,attribute:"link-type",reflect:!0})],exports.LinkButton.prototype,"linkType",2);exports.LinkButton=da([Q(t5)],exports.LinkButton);var jC=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,Y0=(r,n,o,c)=>{for(var f=c>1?void 0:c?KC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&jC(n,o,f),f};const n5=Ee("side-navigation-item"),XC=ge`
2909
3018
  :host li {
2910
3019
  list-style: none;
2911
3020
  padding: var(--brz-spacing-2) 0;
@@ -2934,14 +3043,14 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
2934
3043
  `;exports.SideNavigationItem=class extends Ue{render(){return ee`
2935
3044
  <li>
2936
3045
  <a
2937
- href="${Vt(this.href)}"
2938
- target="${Vt(this.target)}"
2939
- rel="${Vt(this.rel)}"
3046
+ href="${qt(this.href)}"
3047
+ target="${qt(this.target)}"
3048
+ rel="${qt(this.rel)}"
2940
3049
  >
2941
3050
  <slot></slot>
2942
3051
  </a>
2943
3052
  </li>
2944
- `}};exports.SideNavigationItem.styles=[YC];W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);W0([F({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=W0([Q(j4)],exports.SideNavigationItem);var ZC=Object.defineProperty,VC=Object.getOwnPropertyDescriptor,GC=(r,n,o,c)=>{for(var f=c>1?void 0:c?VC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&ZC(n,o,f),f};const K4=Ee("side-navigation"),qC=Se`
3053
+ `}};exports.SideNavigationItem.styles=[XC];Y0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Y0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Y0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Y0([F({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Y0([Q(n5)],exports.SideNavigationItem);var QC=Object.defineProperty,JC=Object.getOwnPropertyDescriptor,ew=(r,n,o,c)=>{for(var f=c>1?void 0:c?JC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&QC(n,o,f),f};const i5=Ee("side-navigation"),tw=ge`
2945
3054
  :host {
2946
3055
  display: block;
2947
3056
  height: 100%;
@@ -2955,12 +3064,12 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
2955
3064
  }
2956
3065
  `;exports.SideNavigation=class extends Ue{render(){return ee`<ul>
2957
3066
  <slot></slot>
2958
- </ul>`}};exports.SideNavigation.styles=[qC];exports.SideNavigation=GC([Q(K4)],exports.SideNavigation);var jC=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,X4=(r,n,o,c)=>{for(var f=c>1?void 0:c?KC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&jC(n,o,f),f};const Q4=Ee("record-row"),J4=Ee("record-row-label");exports.RecordRow=class extends Ue{render(){return ee`
3067
+ </ul>`}};exports.SideNavigation.styles=[tw];exports.SideNavigation=ew([Q(i5)],exports.SideNavigation);var rw=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,o5=(r,n,o,c)=>{for(var f=c>1?void 0:c?nw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&rw(n,o,f),f};const a5=Ee("record-row"),s5=Ee("record-row-label");exports.RecordRow=class extends Ue{render(){return ee`
2959
3068
  <div id="row">
2960
3069
  <brz-record-row-label><slot name="label"></slot></brz-record-row-label>
2961
3070
  <div id="value"><slot></slot></div>
2962
3071
  </div>
2963
- `}};exports.RecordRow.styles=Se`
3072
+ `}};exports.RecordRow.styles=ge`
2964
3073
  #row {
2965
3074
  display: flex;
2966
3075
  flex-direction: row;
@@ -2980,25 +3089,25 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
2980
3089
  /* Bit of a hack, but means lozenges nicely align with the label */
2981
3090
  margin-top: -2px;
2982
3091
  }
2983
- `;exports.RecordRow=X4([Q(Q4)],exports.RecordRow);exports.RecordRowLabel=class extends Ue{render(){return ee`<div id="label"><slot></slot></div>`}};exports.RecordRowLabel.styles=Se`
3092
+ `;exports.RecordRow=o5([Q(a5)],exports.RecordRow);exports.RecordRowLabel=class extends Ue{render(){return ee`<div id="label"><slot></slot></div>`}};exports.RecordRowLabel.styles=ge`
2984
3093
  #label {
2985
3094
  width: 10rem;
2986
3095
  color: var(--brz-color-label-text);
2987
3096
  font-size: var(--brz-font-size);
2988
3097
  line-height: var(--brz-line-height);
2989
3098
  }
2990
- `;exports.RecordRowLabel=X4([Q(J4)],exports.RecordRowLabel);var XC=Object.defineProperty,QC=Object.getOwnPropertyDescriptor,yh=(r,n,o,c)=>{for(var f=c>1?void 0:c?QC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&XC(n,o,f),f};const e5=Ee("tab-panel");exports.TabPanel=class extends Ue{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return ee`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=Se`
3099
+ `;exports.RecordRowLabel=o5([Q(s5)],exports.RecordRowLabel);var iw=Object.defineProperty,ow=Object.getOwnPropertyDescriptor,xh=(r,n,o,c)=>{for(var f=c>1?void 0:c?ow(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&iw(n,o,f),f};const l5=Ee("tab-panel");exports.TabPanel=class extends Ue{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return ee`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=ge`
2991
3100
  :host(:not([shown])) #panel {
2992
3101
  display: none;
2993
3102
  }
2994
- `;yh([F({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);yh([F({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=yh([Q(e5)],exports.TabPanel);class Q1 extends CustomEvent{constructor(n){super("brz-tab-selected",{bubbles:!0,detail:{name:n}})}}class JC extends CustomEvent{constructor(n){super("brz-tab-deselected",{bubbles:!0,detail:{name:n}})}}var ew=Object.defineProperty,tw=Object.getOwnPropertyDescriptor,J1=(r,n,o,c)=>{for(var f=c>1?void 0:c?tw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&ew(n,o,f),f};const t5=Ee("tab");exports.Tab=class extends Ue{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(r){const n=r.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new Q1(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new JC(this.name)),super.updated(r)}render(){return this.link?ee`<a href=${this.link} id="tab"><slot></slot></a>`:ee`<div
3103
+ `;xh([F({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);xh([F({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=xh([Q(l5)],exports.TabPanel);class ef extends CustomEvent{constructor(n){super("brz-tab-selected",{bubbles:!0,detail:{name:n}})}}class aw extends CustomEvent{constructor(n){super("brz-tab-deselected",{bubbles:!0,detail:{name:n}})}}var sw=Object.defineProperty,lw=Object.getOwnPropertyDescriptor,tf=(r,n,o,c)=>{for(var f=c>1?void 0:c?lw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&sw(n,o,f),f};const u5=Ee("tab");exports.Tab=class extends Ue{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(r){const n=r.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new ef(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new aw(this.name)),super.updated(r)}render(){return this.link?ee`<a href=${this.link} id="tab"><slot></slot></a>`:ee`<div
2995
3104
  tabindex="0"
2996
3105
  role="tab"
2997
3106
  aria-selected=${this.selected}
2998
3107
  id="tab"
2999
3108
  >
3000
3109
  <slot></slot>
3001
- </div>`}};exports.Tab.styles=Se`
3110
+ </div>`}};exports.Tab.styles=ge`
3002
3111
  #tab {
3003
3112
  display: block;
3004
3113
  font-size: 1rem;
@@ -3019,11 +3128,11 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3019
3128
  #tab:hover {
3020
3129
  color: var(--brz-color-neutral-850);
3021
3130
  }
3022
- `;J1([F({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);J1([F({type:String,reflect:!0})],exports.Tab.prototype,"name",2);J1([F({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=J1([Q(t5)],exports.Tab);var rw=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,ef=(r,n,o,c)=>{for(var f=c>1?void 0:c?nw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&rw(n,o,f),f};const r5=Ee("tab-bar");exports.TabBar=class extends Ue{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,c,f;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!r){this.tabs=[];return}let n=Array.from(r.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(p=>p instanceof exports.Tab&&!!p.name),this.controlled||(this.selected||(this.selected=(f=(c=this.tabs.find(p=>p.selected))==null?void 0:c.name)!=null?f:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(r){if(r.target instanceof exports.Tab){const{name:n}=r.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new Q1(n)))}}updated(r){r.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(r=>{const n=r.name===this.selected;n!==r.selected&&(r.selected=n)})}render(){return ee`
3131
+ `;tf([F({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);tf([F({type:String,reflect:!0})],exports.Tab.prototype,"name",2);tf([F({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=tf([Q(u5)],exports.Tab);var uw=Object.defineProperty,cw=Object.getOwnPropertyDescriptor,rf=(r,n,o,c)=>{for(var f=c>1?void 0:c?cw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&uw(n,o,f),f};const c5=Ee("tab-bar");exports.TabBar=class extends Ue{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,c,f;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!r){this.tabs=[];return}let n=Array.from(r.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(p=>p instanceof exports.Tab&&!!p.name),this.controlled||(this.selected||(this.selected=(f=(c=this.tabs.find(p=>p.selected))==null?void 0:c.name)!=null?f:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(r){if(r.target instanceof exports.Tab){const{name:n}=r.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new ef(n)))}}updated(r){r.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(r=>{const n=r.name===this.selected;n!==r.selected&&(r.selected=n)})}render(){return ee`
3023
3132
  <brz-row id="tabbar" @click=${this.handleClick}>
3024
3133
  <slot @slotchange=${this.handleSlotChange}></slot>
3025
3134
  </brz-row>
3026
- `}};exports.TabBar.styles=Se`
3135
+ `}};exports.TabBar.styles=ge`
3027
3136
  #tabbar {
3028
3137
  display: flex;
3029
3138
  flex-direction: row;
@@ -3041,7 +3150,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3041
3150
  top: 0;
3042
3151
  z-index: 1;
3043
3152
  }
3044
- `;ef([F({type:Boolean})],exports.TabBar.prototype,"controlled",2);ef([F({type:String})],exports.TabBar.prototype,"selected",2);ef([pt()],exports.TabBar.prototype,"tabs",2);exports.TabBar=ef([Q(r5)],exports.TabBar);var iw=Object.defineProperty,ow=Object.getOwnPropertyDescriptor,Ch=(r,n,o,c)=>{for(var f=c>1?void 0:c?ow(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&iw(n,o,f),f};const n5=Ee("tabs");exports.Tabs=class extends Ue{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,o,c;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!r){for(const f of r.assignedElements())if(f instanceof exports.TabPanel)this.panels.push(f);else{const p=f.querySelectorAll("brz-tab-panel"),b=f.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(p.length?p:b))}this.selected||(this.selected=(c=(o=this.panels.find(f=>f.shown))==null?void 0:o.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(r=>{const n=r.name===this.selected;n!==r.shown&&(r.shown=n)})}handleTabSelected(r){this.selected=r.detail.name,this.updatePanelVisibility(),r.stopPropagation(),this.dispatchEvent(new Q1(this.selected))}render(){return ee`
3153
+ `;rf([F({type:Boolean})],exports.TabBar.prototype,"controlled",2);rf([F({type:String})],exports.TabBar.prototype,"selected",2);rf([pt()],exports.TabBar.prototype,"tabs",2);exports.TabBar=rf([Q(c5)],exports.TabBar);var fw=Object.defineProperty,dw=Object.getOwnPropertyDescriptor,zh=(r,n,o,c)=>{for(var f=c>1?void 0:c?dw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&fw(n,o,f),f};const f5=Ee("tabs");exports.Tabs=class extends Ue{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,o,c;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!r){for(const f of r.assignedElements())if(f instanceof exports.TabPanel)this.panels.push(f);else{const p=f.querySelectorAll("brz-tab-panel"),b=f.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(p.length?p:b))}this.selected||(this.selected=(c=(o=this.panels.find(f=>f.shown))==null?void 0:o.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(r=>{const n=r.name===this.selected;n!==r.shown&&(r.shown=n)})}handleTabSelected(r){this.selected=r.detail.name,this.updatePanelVisibility(),r.stopPropagation(),this.dispatchEvent(new ef(this.selected))}render(){return ee`
3045
3154
  <brz-tab-bar
3046
3155
  controlled
3047
3156
  selected=${this.selected}
@@ -3050,14 +3159,14 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3050
3159
  <slot name="tabs"></slot>
3051
3160
  </brz-tab-bar>
3052
3161
  <slot @slotchange=${this.handleSlotChange}></slot>
3053
- `}};exports.Tabs.styles=Se`
3162
+ `}};exports.Tabs.styles=ge`
3054
3163
  :host {
3055
3164
  background-color: var(--brz-color-white);
3056
3165
  }
3057
- `;Ch([F({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Ch([pt()],exports.Tabs.prototype,"panels",2);exports.Tabs=Ch([Q(n5)],exports.Tabs);var aw=Object.defineProperty,sw=Object.getOwnPropertyDescriptor,vu=(r,n,o,c)=>{for(var f=c>1?void 0:c?sw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&aw(n,o,f),f};const i5=Ee("badge");exports.Badge=class extends Ue{constructor(){super(...arguments),this.limit=0,this.content="",this.deafultCharacterLimit=5,this.deafultNumberLimit=99}connectedCallback(){super.connectedCallback(),!this.limit&&(typeof this.content=="number"||this.isNumeric(this.content)?this.limit=this.deafultNumberLimit:this.limit=this.deafultCharacterLimit)}isNumeric(r){return/^-?\d+$/.test(r)}generateContent(){return typeof this.content=="number"||this.isNumeric(this.content)?parseInt(this.content)>this.limit?`${this.limit}+`:this.content:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return ee`<span
3058
- class=${Qa({"extra-wide":this.content.length>1})}
3166
+ `;zh([F({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);zh([pt()],exports.Tabs.prototype,"panels",2);exports.Tabs=zh([Q(f5)],exports.Tabs);var hw=Object.defineProperty,pw=Object.getOwnPropertyDescriptor,bu=(r,n,o,c)=>{for(var f=c>1?void 0:c?pw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&hw(n,o,f),f};const d5=Ee("badge");exports.Badge=class extends Ue{constructor(){super(...arguments),this.limit=0,this.content="",this.deafultCharacterLimit=5,this.deafultNumberLimit=99}connectedCallback(){super.connectedCallback(),!this.limit&&(typeof this.content=="number"||this.isNumeric(this.content)?this.limit=this.deafultNumberLimit:this.limit=this.deafultCharacterLimit)}isNumeric(r){return/^-?\d+$/.test(r)}generateContent(){return typeof this.content=="number"||this.isNumeric(this.content)?parseInt(this.content)>this.limit?`${this.limit}+`:this.content:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return ee`<span
3167
+ class=${Xa({"extra-wide":this.content.length>1})}
3059
3168
  >${this.generateContent()}</span
3060
- >`}};exports.Badge.styles=Se`
3169
+ >`}};exports.Badge.styles=ge`
3061
3170
  :host {
3062
3171
  min-width: 19px;
3063
3172
  height: 20px;
@@ -3090,7 +3199,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3090
3199
  .extra-wide {
3091
3200
  padding: 0 6px;
3092
3201
  }
3093
- `;vu([F({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);vu([F({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);vu([F({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);vu([pt()],exports.Badge.prototype,"deafultCharacterLimit",2);vu([pt()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=vu([Q(i5)],exports.Badge);const{range:tf}=l8;function lw(r,n,o){return[1,null,...tf(r-n,r+n+1),null,o]}function uw(r,n){return[1,null,...tf(r-(n-3),r+1)]}function cw(r,n){return[...tf(1,n-1),null,r]}function fw(r,n,o){return r>1+1+n*2&&r<o-1-n*2}function dw(r,n=1,o=1){const c=5+o*2;if(r<=c)return tf(1,r+1);if(fw(n,o,r))return lw(n,o,r);if(n+(c-3)>=r)return uw(r,c);if(n<c)return cw(r,c)}var hw=Object.defineProperty,pw=Object.getOwnPropertyDescriptor,Mo=(r,n,o,c)=>{for(var f=c>1?void 0:c?pw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&hw(n,o,f),f};const wh=Ee("basic-pagination"),xh=Ee("pagination");class gw extends CustomEvent{constructor(n){super(`${wh}-${n}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(r){this.dispatchEvent(new gw(r))}handlePageChange(r){this.emit(`${r}-page`)}render(){return ee`
3202
+ `;bu([F({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);bu([F({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);bu([F({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);bu([pt()],exports.Badge.prototype,"deafultCharacterLimit",2);bu([pt()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=bu([Q(d5)],exports.Badge);const{range:nf}=g8;function gw(r,n,o){return[1,null,...nf(r-n,r+n+1),null,o]}function vw(r,n){return[1,null,...nf(r-(n-3),r+1)]}function bw(r,n){return[...nf(1,n-1),null,r]}function mw(r,n,o){return r>1+1+n*2&&r<o-1-n*2}function yw(r,n=1,o=1){const c=5+o*2;if(r<=c)return nf(1,r+1);if(mw(n,o,r))return gw(n,o,r);if(n+(c-3)>=r)return vw(r,c);if(n<c)return bw(r,c)}var Cw=Object.defineProperty,ww=Object.getOwnPropertyDescriptor,ko=(r,n,o,c)=>{for(var f=c>1?void 0:c?ww(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Cw(n,o,f),f};const Lh=Ee("basic-pagination"),_h=Ee("pagination");class xw extends CustomEvent{constructor(n){super(`${Lh}-${n}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(r){this.dispatchEvent(new xw(r))}handlePageChange(r){this.emit(`${r}-page`)}render(){return ee`
3094
3203
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
3095
3204
  <brz-button
3096
3205
  compact
@@ -3112,11 +3221,11 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3112
3221
  leading-icon="chevronRight"
3113
3222
  ></brz-button>
3114
3223
  </brz-button-group>
3115
- `}};exports.BasicPagination.styles=Se`
3224
+ `}};exports.BasicPagination.styles=ge`
3116
3225
  brz-button-group {
3117
3226
  --brz-spacing-2: var(--brz-spacing-1);
3118
3227
  }
3119
- `;Mo([F({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Mo([F({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Mo([Q(wh)],exports.BasicPagination);class vw extends CustomEvent{constructor(n,o){super(`${xh}-${n}`,{bubbles:!0,composed:!0,detail:{page:o}})}}exports.Pagination=class extends Ue{constructor(){super(...arguments),this.currentPageSiblings=1}emit(r,n){this.dispatchEvent(new vw(r,n))}onPageChange(r){this.emit("page-change",r)}isCurrentPage(r){return r===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 r;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=dw(this.totalPages,this.currentPage,this.currentPageSiblings),ee`
3228
+ `;ko([F({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);ko([F({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=ko([Q(Lh)],exports.BasicPagination);class zw extends CustomEvent{constructor(n,o){super(`${_h}-${n}`,{bubbles:!0,composed:!0,detail:{page:o}})}}exports.Pagination=class extends Ue{constructor(){super(...arguments),this.currentPageSiblings=1}emit(r,n){this.dispatchEvent(new zw(r,n))}onPageChange(r){this.emit("page-change",r)}isCurrentPage(r){return r===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 r;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=yw(this.totalPages,this.currentPage,this.currentPageSiblings),ee`
3120
3229
  <brz-row role="navigation" aria-label="Pagination Navigation">
3121
3230
  <button
3122
3231
  role="link"
@@ -3129,7 +3238,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3129
3238
  </div>
3130
3239
  </button>
3131
3240
  ${(r=this.pages)==null?void 0:r.map(n=>n?ee`<button
3132
- class=${Qa({page:n,selected:this.isCurrentPage(n)})}
3241
+ class=${Xa({page:n,selected:this.isCurrentPage(n)})}
3133
3242
  role="link"
3134
3243
  aria-label=${`${this.isCurrentPage(n)?`Current Page, Page ${n}`:`Go to page ${n}`}`}
3135
3244
  aria-current=${`${this.isCurrentPage(n)}`}
@@ -3152,7 +3261,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3152
3261
  </div>
3153
3262
  </button>
3154
3263
  </brz-row>
3155
- `}};exports.Pagination.styles=Se`
3264
+ `}};exports.Pagination.styles=ge`
3156
3265
  brz-row {
3157
3266
  --brz-row-spacing: 0;
3158
3267
  }
@@ -3217,22 +3326,38 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3217
3326
  .page {
3218
3327
  padding: 0 var(--brz-spacing-2);
3219
3328
  }
3220
- `;Mo([F({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Mo([F({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Mo([F({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Mo([pt()],exports.Pagination.prototype,"currentPageSiblings",2);Mo([pt()],exports.Pagination.prototype,"totalPages",2);Mo([pt()],exports.Pagination.prototype,"pages",2);exports.Pagination=Mo([Q(xh)],exports.Pagination);var bw=Object.defineProperty,mw=Object.getOwnPropertyDescriptor,U0=(r,n,o,c)=>{for(var f=c>1?void 0:c?mw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&bw(n,o,f),f};const yw=["info","success","warning","error"],o5=Ee("alert");class Cw extends CustomEvent{constructor(n){super(n,{bubbles:!0,composed:!0})}}exports.Alert=class extends Ue{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 Cw("brz-alert-cleared"))}render(){return this.cleared?null:ee`<div class="alert-container">
3329
+ `;ko([F({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);ko([F({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);ko([F({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);ko([pt()],exports.Pagination.prototype,"currentPageSiblings",2);ko([pt()],exports.Pagination.prototype,"totalPages",2);ko([pt()],exports.Pagination.prototype,"pages",2);exports.Pagination=ko([Q(_h)],exports.Pagination);var Lw=Object.defineProperty,_w=Object.getOwnPropertyDescriptor,Z0=(r,n,o,c)=>{for(var f=c>1?void 0:c?_w(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Lw(n,o,f),f};const Sw=["info","success","warning","error"],h5=Ee("alert");class kw extends CustomEvent{constructor(n){super(n,{bubbles:!0,composed:!0})}}exports.Alert=class extends Ue{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 kw("brz-alert-cleared"))}render(){return this.cleared?null:ee`<div class="alert-container">
3221
3330
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
3222
3331
  <div role="alert">
3223
3332
  ${this.title?ee`<div><brz-heading>${this.title}</brz-heading></div>`:ee``}
3224
3333
  <div><slot /></div>
3225
3334
  </div>
3226
- ${this.clearable?ee`<button class="clear-button" @click=${this.clear}>
3227
- <brz-icon class="close-icon" size="10" icon="close"></brz-icon>
3228
- </button>`:""}
3229
- </div>`}};exports.Alert.styles=Se`
3230
- .alert-container {
3335
+ ${this.clearable?ee`
3336
+ <button
3337
+ type="button"
3338
+ class="clear-button"
3339
+ aria-label="Dismiss"
3340
+ @click=${this.clear}
3341
+ >
3342
+ <brz-icon
3343
+ class="close-icon"
3344
+ size="20"
3345
+ icon="remove"
3346
+ ></brz-icon>
3347
+ </button>
3348
+ `:""}
3349
+ </div>`}};exports.Alert.styles=ge`
3350
+ :host {
3351
+ --brz-alert-border-width: var(--brz-spacing-px);
3352
+ }
3353
+
3354
+ :host .alert-container {
3231
3355
  align-items: center;
3232
3356
  display: flex;
3233
- border: 1px solid;
3357
+ border: var(--brz-alert-border-width) solid;
3234
3358
  border-radius: var(--brz-border-radius-medium);
3235
- padding: 11px 13px;
3359
+ padding: calc(var(--brz-spacing-2) + var(--brz-alert-border-width))
3360
+ calc(var(--brz-spacing-3) - var(--brz-alert-border-width));
3236
3361
  }
3237
3362
 
3238
3363
  :host([type='info']) .alert-container {
@@ -3273,25 +3398,20 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3273
3398
 
3274
3399
  .type-icon {
3275
3400
  align-self: flex-start;
3276
- margin-right: 13px;
3401
+ margin-right: var(--brz-spacing-3);
3277
3402
  padding-top: 1px;
3278
3403
  }
3279
3404
 
3280
- .clear-button {
3281
- align-self: start;
3282
- background: none;
3283
- border: 0;
3284
- cursor: pointer;
3285
- color: var(--brz-color-neutral-750);
3286
- margin-left: auto;
3287
- padding: 0;
3288
- padding-top: 1px;
3289
- }
3405
+ ${n2(".clear-button",ge`
3406
+ align-self: start;
3407
+ margin-left: auto;
3408
+ margin-right: calc(0px - var(--brz-spacing-1));
3409
+ `)}
3290
3410
 
3291
3411
  .clear-button brz-icon {
3292
3412
  vertical-align: middle;
3293
3413
  }
3294
- `;U0([F({type:String,reflect:!0})],exports.Alert.prototype,"type",2);U0([F({type:Boolean})],exports.Alert.prototype,"clearable",2);U0([F()],exports.Alert.prototype,"title",2);U0([pt()],exports.Alert.prototype,"cleared",2);exports.Alert=U0([Q(o5)],exports.Alert);const Lh={resources:G`
3414
+ `;Z0([F({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Z0([F({type:Boolean})],exports.Alert.prototype,"clearable",2);Z0([F()],exports.Alert.prototype,"title",2);Z0([pt()],exports.Alert.prototype,"cleared",2);exports.Alert=Z0([Q(h5)],exports.Alert);const Sh={resources:G`
3295
3415
  <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"/>
3296
3416
  <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"/>
3297
3417
  <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"/>
@@ -3385,7 +3505,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3385
3505
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
3386
3506
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
3387
3507
  <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"/>
3388
- <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"/>`},ww=Object.keys(Lh);var xw=Object.defineProperty,Lw=Object.getOwnPropertyDescriptor,rf=(r,n,o,c)=>{for(var f=c>1?void 0:c?Lw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&xw(n,o,f),f};const a5=Ee("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const r=Lh[this.illustration],n=Math.floor(Math.random()*100),o=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!r){console.warn(`Can't find illustration ${this.illustration}`);return}return ee`<svg
3508
+ <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"/>`},Mw=Object.keys(Sh);var Ow=Object.defineProperty,Tw=Object.getOwnPropertyDescriptor,of=(r,n,o,c)=>{for(var f=c>1?void 0:c?Tw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ow(n,o,f),f};const p5=Ee("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const r=Sh[this.illustration],n=Math.floor(Math.random()*100),o=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!r){console.warn(`Can't find illustration ${this.illustration}`);return}return ee`<svg
3389
3509
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
3390
3510
  role="img"
3391
3511
  aria-labelledby=${`${o} ${c}`}
@@ -3396,24 +3516,24 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3396
3516
  <title id=${o}>${this.altTitle}</title>
3397
3517
  <desc id=${c}>${this.altDescription}</desc>
3398
3518
  ${r}
3399
- </svg>`}};exports.Illustration.styles=Se`
3519
+ </svg>`}};exports.Illustration.styles=ge`
3400
3520
  :host {
3401
3521
  /* to get rid of extra height caused by white space */
3402
3522
  line-height: 0;
3403
3523
  }
3404
- `;rf([F({type:String})],exports.Illustration.prototype,"illustration",2);rf([F({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);rf([F({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=rf([Q(a5)],exports.Illustration);var _w=Object.defineProperty,zw=Object.getOwnPropertyDescriptor,Sw=(r,n,o,c)=>{for(var f=c>1?void 0:c?zw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_w(n,o,f),f};const s5=Ee("header");exports.Header=class extends Ue{render(){return ee`<slot></slot>`}};exports.Header.styles=Se`
3524
+ `;of([F({type:String})],exports.Illustration.prototype,"illustration",2);of([F({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);of([F({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=of([Q(p5)],exports.Illustration);var Pw=Object.defineProperty,Aw=Object.getOwnPropertyDescriptor,Ew=(r,n,o,c)=>{for(var f=c>1?void 0:c?Aw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Pw(n,o,f),f};const g5=Ee("header");exports.Header=class extends Ue{render(){return ee`<slot></slot>`}};exports.Header.styles=ge`
3405
3525
  :host {
3406
3526
  display: block;
3407
3527
  padding: var(--brz-spacing-5);
3408
3528
  margin-bottom: var(--brz-spacing-4);
3409
3529
  }
3410
- `;exports.Header=Sw([Q(s5)],exports.Header);var Mw=Object.defineProperty,kw=Object.getOwnPropertyDescriptor,Ow=(r,n,o,c)=>{for(var f=c>1?void 0:c?kw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Mw(n,o,f),f};const l5=Ee("header-footer-page");exports.HeaderFooterPage=class extends Ue{render(){return ee`
3530
+ `;exports.Header=Ew([Q(g5)],exports.Header);var Iw=Object.defineProperty,Dw=Object.getOwnPropertyDescriptor,Rw=(r,n,o,c)=>{for(var f=c>1?void 0:c?Dw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Iw(n,o,f),f};const v5=Ee("header-footer-page");exports.HeaderFooterPage=class extends Ue{render(){return ee`
3411
3531
  <div id="container">
3412
3532
  <div id="header"><slot name="header"></slot></div>
3413
3533
  <div id="body"><slot></slot></div>
3414
3534
  <div id="footer"><slot name="footer"></slot></div>
3415
3535
  </div>
3416
- `}};exports.HeaderFooterPage.styles=Se`
3536
+ `}};exports.HeaderFooterPage.styles=ge`
3417
3537
  :host {
3418
3538
  width: 100%;
3419
3539
  height: 100%;
@@ -3431,7 +3551,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3431
3551
  flex: 1 1;
3432
3552
  overflow-y: auto;
3433
3553
  }
3434
- `;exports.HeaderFooterPage=Ow([Q(l5)],exports.HeaderFooterPage);var Tw=Object.defineProperty,Pw=Object.getOwnPropertyDescriptor,Aw=(r,n,o,c)=>{for(var f=c>1?void 0:c?Pw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Tw(n,o,f),f};const u5=Ee("responsive-columns");exports.ResponsiveColumns=class extends Ue{render(){return ee`<slot></slot>`}};exports.ResponsiveColumns.styles=Se`
3554
+ `;exports.HeaderFooterPage=Rw([Q(v5)],exports.HeaderFooterPage);var Nw=Object.defineProperty,$w=Object.getOwnPropertyDescriptor,Hw=(r,n,o,c)=>{for(var f=c>1?void 0:c?$w(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Nw(n,o,f),f};const b5=Ee("responsive-columns");exports.ResponsiveColumns=class extends Ue{render(){return ee`<slot></slot>`}};exports.ResponsiveColumns.styles=ge`
3435
3555
  :host {
3436
3556
  display: flex;
3437
3557
  flex-direction: row;
@@ -3463,18 +3583,18 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3463
3583
  margin-bottom: var(--brz-padding, var(--brz-spacing-8));
3464
3584
  }
3465
3585
  }
3466
- `;exports.ResponsiveColumns=Aw([Q(u5)],exports.ResponsiveColumns);var Ew=Object.defineProperty,Iw=Object.getOwnPropertyDescriptor,Dw=(r,n,o,c)=>{for(var f=c>1?void 0:c?Iw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ew(n,o,f),f};const c5=Ee("footer");exports.Footer=class extends Ue{render(){return ee`<div class="container">
3586
+ `;exports.ResponsiveColumns=Hw([Q(b5)],exports.ResponsiveColumns);var Bw=Object.defineProperty,Fw=Object.getOwnPropertyDescriptor,Ww=(r,n,o,c)=>{for(var f=c>1?void 0:c?Fw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Bw(n,o,f),f};const m5=Ee("footer");exports.Footer=class extends Ue{render(){return ee`<div class="container">
3467
3587
  <slot name="left"></slot>
3468
3588
  <slot name="middle"></slot>
3469
3589
  <slot name="right"></slot>
3470
- </div> `}};exports.Footer.styles=Se`
3590
+ </div> `}};exports.Footer.styles=ge`
3471
3591
  .container {
3472
3592
  border-top: 1px solid var(--brz-color-neutral-400);
3473
3593
  display: flex;
3474
3594
  justify-content: space-between;
3475
3595
  padding: var(--brz-spacing-3) var(--brz-spacing-4);
3476
3596
  }
3477
- `;exports.Footer=Dw([Q(c5)],exports.Footer);var Rw=Object.defineProperty,Nw=Object.getOwnPropertyDescriptor,f5=(r,n,o,c)=>{for(var f=c>1?void 0:c?Nw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Rw(n,o,f),f};const d5=Ee("page-header");exports.PageHeader=class extends Ue{render(){return ee`
3597
+ `;exports.Footer=Ww([Q(m5)],exports.Footer);var Uw=Object.defineProperty,Yw=Object.getOwnPropertyDescriptor,y5=(r,n,o,c)=>{for(var f=c>1?void 0:c?Yw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Uw(n,o,f),f};const C5=Ee("page-header");exports.PageHeader=class extends Ue{render(){return ee`
3478
3598
  <header>
3479
3599
  <slot name="decorator"></slot>
3480
3600
 
@@ -3490,7 +3610,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3490
3610
 
3491
3611
  <slot name="actions"></slot>
3492
3612
  </header>
3493
- `}};exports.PageHeader.styles=Se`
3613
+ `}};exports.PageHeader.styles=ge`
3494
3614
  :host {
3495
3615
  display: flex;
3496
3616
  }
@@ -3523,14 +3643,14 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3523
3643
  line-height: var(--brz-line-height);
3524
3644
  margin-top: var(--brz-spacing-2);
3525
3645
  }
3526
- `;f5([F({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);exports.PageHeader=f5([Q(d5)],exports.PageHeader);const $w=Se`
3646
+ `;y5([F({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);exports.PageHeader=y5([Q(C5)],exports.PageHeader);const Zw=ge`
3527
3647
  :host {
3528
3648
  --brz-border-radius-default: 2px;
3529
3649
  --brz-border-radius-medium: 3px;
3530
3650
 
3531
3651
  --brz-border-divider: 1px solid var(--brz-color-neutral-400);
3532
3652
  }
3533
- `,Hw=Se`
3653
+ `,Vw=ge`
3534
3654
  :host {
3535
3655
  --brz-color-neutral-900: #1b263a;
3536
3656
  --brz-color-neutral-850: #223049;
@@ -3720,7 +3840,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3720
3840
 
3721
3841
  --brz-color-text-on-color: var(--brz-color-white);
3722
3842
  }
3723
- `,Bw=Se`
3843
+ `,Gw=ge`
3724
3844
  :host {
3725
3845
  --sp-border-radius-default: var(--brz-border-radius-default);
3726
3846
  --sp-border-radius-medium: var(--brz-border-radius-medium)
@@ -3985,14 +4105,14 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
3985
4105
  --sp-z-index-dropdown: var(--brz-z-index-dropdown);
3986
4106
  --sp-z-index-tooltip: var(--brz-z-index-tooltip);
3987
4107
  }
3988
- `,Fw=Se`
4108
+ `,qw=ge`
3989
4109
  :host {
3990
4110
  // TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
3991
4111
  --brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
3992
4112
  --brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
3993
4113
  --brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
3994
4114
  }
3995
- `,Ww=Se`
4115
+ `,jw=ge`
3996
4116
  :host {
3997
4117
  --brz-spacing-px: 1px;
3998
4118
  --brz-spacing-0: 0;
@@ -4021,7 +4141,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
4021
4141
  /* 80px */
4022
4142
  --brz-spacing-20: 5rem;
4023
4143
  }
4024
- `,Uw=Se`
4144
+ `,Kw=ge`
4025
4145
  :host {
4026
4146
  --brz-font-family: Inter, sofiapro;
4027
4147
  --brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
@@ -4062,15 +4182,22 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
4062
4182
  --brz-color-text-light: var(--brz-color-neutral-700);
4063
4183
  --brz-color-text-placeholder: var(--brz-color-neutral-600);
4064
4184
  }
4065
- `,Yw=Se`
4185
+ `,Xw=ge`
4066
4186
  :host {
4067
4187
  --brz-z-index-navigation: 1000;
4068
4188
  --brz-z-index-dialog: 1100;
4069
4189
  --brz-z-index-dropdown: 1200;
4070
4190
  --brz-z-index-tooltip: 1300;
4071
4191
  }
4072
- `;var Zw=Object.defineProperty,Vw=Object.getOwnPropertyDescriptor,Gw=(r,n,o,c)=>{for(var f=c>1?void 0:c?Vw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Zw(n,o,f),f};const h5=Ee("global-styles");exports.GlobalStyles=class extends Ue{render(){return ee`<slot></slot>`}};exports.GlobalStyles.styles=[Hw,Ww,Uw,$w,Fw,Yw,Bw,Se`
4192
+ `;var Qw=Object.defineProperty,Jw=Object.getOwnPropertyDescriptor,ex=(r,n,o,c)=>{for(var f=c>1?void 0:c?Jw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Qw(n,o,f),f};const w5=Ee("global-styles");exports.GlobalStyles=class extends Ue{render(){return ee`<slot></slot>`}};exports.GlobalStyles.styles=[Vw,jw,Kw,Zw,qw,Xw,Gw,ge`
4073
4193
  :host {
4194
+ --brz-outline-color: var(--brz-color-primary-600);
4195
+ --brz-outline-style: solid;
4196
+ --brz-outline-width: calc(2 * var(--brz-spacing-px));
4197
+ --brz-outline-offset: var(--brz-spacing-px);
4198
+ --brz-outline-transition: outline-color 200ms linear;
4199
+ --brz-outline-border-radius: var(--brz-border-radius-medium);
4200
+
4074
4201
  /* --- Global styles --- */
4075
4202
  font-family: var(--brz-font-family), var(--brz-font-family-fallback);
4076
4203
  font-size: var(--brz-font-size);
@@ -4078,7 +4205,7 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
4078
4205
  font-weight: var(--brz-font-weight-normal);
4079
4206
  color: var(--brz-color-text);
4080
4207
  }
4081
- `];exports.GlobalStyles=Gw([Q(h5)],exports.GlobalStyles);var qw=Object.defineProperty,jw=Object.getOwnPropertyDescriptor,_h=(r,n,o,c)=>{for(var f=c>1?void 0:c?jw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&qw(n,o,f),f};const p5=Ee("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return ee` <div class="container"><slot></slot></div> `}};exports.Paper.styles=Se`
4208
+ `];exports.GlobalStyles=ex([Q(w5)],exports.GlobalStyles);var tx=Object.defineProperty,rx=Object.getOwnPropertyDescriptor,kh=(r,n,o,c)=>{for(var f=c>1?void 0:c?rx(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&tx(n,o,f),f};const x5=Ee("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return ee` <div class="container"><slot></slot></div> `}};exports.Paper.styles=ge`
4082
4209
  :host {
4083
4210
  display: block;
4084
4211
  position: relative;
@@ -4102,4 +4229,4 @@ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.u
4102
4229
  :host([has-border]) .container {
4103
4230
  border: 1px solid var(--brz-color-neutral-300);
4104
4231
  }
4105
- `;_h([F({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);_h([F({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=_h([Q(p5)],exports.Paper);var Kw=Object.defineProperty,Xw=Object.getOwnPropertyDescriptor,De=(r,n,o,c)=>{for(var f=c>1?void 0:c?Xw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Kw(n,o,f),f};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=De([Q("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=De([Q("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=De([Q("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=De([Q("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=De([Q("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=De([Q("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=De([Q("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=De([Q("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=De([Q("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=De([Q("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=De([Q("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=De([Q("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=De([Q("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=De([Q("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=De([Q("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=De([Q("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=De([Q("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=De([Q("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=De([Q("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=De([Q("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=De([Q("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=De([Q("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=De([Q("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=De([Q("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=De([Q("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=De([Q("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=De([Q("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=De([Q("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=De([Q("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=De([Q("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=De([Q("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=De([Q("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=De([Q("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=De([Q("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=De([Q("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=De([Q("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=De([Q("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=De([Q("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=De([Q("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=De([Q("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=De([Q("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=De([Q("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=De([Q("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=De([Q("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=De([Q("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=De([Q("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=De([Q("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=De([Q("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends _1{};exports.LegacyInputGuide=De([Q("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=De([Q("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=De([Q("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=De([Q("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=De([Q("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=De([Q("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=De([Q("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=De([Q("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=De([Q("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=De([Q("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=De([Q("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=De([Q("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=De([Q("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=C2;exports.ALERT=o5;exports.AVATAR=u2;exports.AVATAR_GROUP=c2;exports.BADGE=i5;exports.BASIC_PAGINATION=wh;exports.BUTTON=Yd;exports.BUTTON_GROUP=g2;exports.COLUMN=d2;exports.COMBO_BOX=v2;exports.COMBO_BOX_OPTION=b2;exports.CONFIRMATION_DIALOG=M2;exports.ConfirmationDialogCancel=k2;exports.ConfirmationDialogConfirm=O2;exports.DeleteLozengeEvent=V2;exports.FADE_IN_OUT=Kp;exports.FOOTER=c5;exports.GLOBAL_STYLES=h5;exports.HEADER=s5;exports.HEADER_FOOTER_PAGE=l5;exports.HEADING=Z4;exports.ICON=x2;exports.ILLUSTRATION=a5;exports.INPUT_CHECKBOX=T2;exports.INPUT_CODE=F2;exports.INPUT_ERROR=P2;exports.INPUT_LABEL=E2;exports.INPUT_MULTISELECT=G2;exports.INPUT_NUMBER=R2;exports.INPUT_RADIO_GROUP=H2;exports.INPUT_RADIO_OPTION=B2;exports.INPUT_SELECT=Y2;exports.INPUT_TEXT=I2;exports.INPUT_TEXTAREA=D2;exports.INPUT_TIME=H4;exports.InputBase=_o;exports.InputSelectBase=ti;exports.LABELED_INPUT=A2;exports.LINK=V4;exports.LINK_BUTTON=G4;exports.LOADING_SPINNER=p2;exports.LOZENGE=Z2;exports.MENU=W2;exports.MENU_ITEM=y0;exports.MODAL=m2;exports.MODAL_BODY=_2;exports.MODAL_FOOTER=z2;exports.MODAL_HEADER=L2;exports.ModalCloseEvent=Vd;exports.NO_RESULTS_ID=Xd;exports.PAGE_HEADER=d5;exports.PAGINATION=xh;exports.PAPER=p5;exports.POPOVER=Wd;exports.POPOVER_LISTENABLE_EVENT_TYPES=L1;exports.POPOVER_ROLES=Ud;exports.POPOVER_TRIGGERS=s2;exports.PURE_POPOVER=a2;exports.RECORD_ROW=Q4;exports.RECORD_ROW_LABEL=J4;exports.RESPONSIVE_COLUMNS=u5;exports.ROW=f2;exports.SIDE_NAVIGATION=K4;exports.SIDE_NAVIGATION_ITEM=j4;exports.SPLIT_ROW=y2;exports.TAB=t5;exports.TABS=n5;exports.TAB_BAR=r5;exports.TAB_PANEL=e5;exports.TIME_FORMAT=B4;exports.TIME_REGEX_12H=U4;exports.TIME_REGEX_24H=W4;exports.TIME_REGEX_LOOSE=F4;exports.TOOLTIP=l2;exports.TabSelectedEvent=Q1;exports.VIRTUAL_LIST=Kd;exports.alertTypes=yw;exports.buttonTypes=i9;exports.click=x1;exports.emit=U2;exports.focus=Us;exports.hover=Cd;exports.iconNames=p9;exports.icons=Gd;exports.illustrationNames=ww;exports.illustrations=Lh;exports.lozengeColors=_8;exports.lozengeSizes=S8;exports.lozengeThemes=z8;exports.transformIcon=w2;
4232
+ `;kh([F({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);kh([F({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=kh([Q(x5)],exports.Paper);var nx=Object.defineProperty,ix=Object.getOwnPropertyDescriptor,De=(r,n,o,c)=>{for(var f=c>1?void 0:c?ix(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&nx(n,o,f),f};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=De([Q("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=De([Q("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=De([Q("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=De([Q("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=De([Q("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=De([Q("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=De([Q("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=De([Q("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=De([Q("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=De([Q("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=De([Q("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=De([Q("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=De([Q("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=De([Q("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=De([Q("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=De([Q("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=De([Q("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=De([Q("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=De([Q("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=De([Q("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=De([Q("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=De([Q("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=De([Q("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=De([Q("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=De([Q("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=De([Q("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=De([Q("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=De([Q("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=De([Q("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=De([Q("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=De([Q("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=De([Q("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=De([Q("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=De([Q("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=De([Q("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=De([Q("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=De([Q("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=De([Q("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=De([Q("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=De([Q("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=De([Q("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=De([Q("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=De([Q("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=De([Q("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=De([Q("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=De([Q("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=De([Q("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=De([Q("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends S1{};exports.LegacyInputGuide=De([Q("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=De([Q("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=De([Q("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=De([Q("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=De([Q("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=De([Q("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=De([Q("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=De([Q("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=De([Q("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=De([Q("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=De([Q("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=De([Q("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=De([Q("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=k2;exports.ALERT=h5;exports.AVATAR=v2;exports.AVATAR_GROUP=b2;exports.BADGE=d5;exports.BASIC_PAGINATION=Lh;exports.BUTTON=Gd;exports.BUTTON_GROUP=x2;exports.COLUMN=y2;exports.COMBO_BOX=z2;exports.COMBO_BOX_OPTION=L2;exports.CONFIRMATION_DIALOG=I2;exports.ConfirmationDialogCancel=D2;exports.ConfirmationDialogConfirm=R2;exports.DeleteLozengeEvent=e4;exports.FADE_IN_OUT=r2;exports.FOOTER=m5;exports.GLOBAL_STYLES=w5;exports.HEADER=g5;exports.HEADER_FOOTER_PAGE=v5;exports.HEADING=J4;exports.ICON=O2;exports.ILLUSTRATION=p5;exports.INPUT_CHECKBOX=N2;exports.INPUT_CODE=j2;exports.INPUT_ERROR=$2;exports.INPUT_LABEL=B2;exports.INPUT_MULTISELECT=t4;exports.INPUT_NUMBER=U2;exports.INPUT_RADIO_GROUP=V2;exports.INPUT_RADIO_OPTION=G2;exports.INPUT_SELECT=Q2;exports.INPUT_TEXT=F2;exports.INPUT_TEXTAREA=W2;exports.INPUT_TIME=G4;exports.InputBase=Lo;exports.InputSelectBase=ti;exports.LABELED_INPUT=H2;exports.LINK=e5;exports.LINK_BUTTON=t5;exports.LOADING_SPINNER=w2;exports.LOZENGE=J2;exports.MENU=K2;exports.MENU_ITEM=C0;exports.MODAL=_2;exports.MODAL_BODY=P2;exports.MODAL_FOOTER=A2;exports.MODAL_HEADER=T2;exports.ModalCloseEvent=jd;exports.NO_RESULTS_ID=eh;exports.PAGE_HEADER=C5;exports.PAGINATION=_h;exports.PAPER=x5;exports.POPOVER=Zd;exports.POPOVER_LISTENABLE_EVENT_TYPES=_1;exports.POPOVER_ROLES=Vd;exports.POPOVER_TRIGGERS=p2;exports.PURE_POPOVER=h2;exports.RECORD_ROW=a5;exports.RECORD_ROW_LABEL=s5;exports.RESPONSIVE_COLUMNS=b5;exports.ROW=m2;exports.SIDE_NAVIGATION=i5;exports.SIDE_NAVIGATION_ITEM=n5;exports.SPLIT_ROW=S2;exports.TAB=u5;exports.TABS=f5;exports.TAB_BAR=c5;exports.TAB_PANEL=l5;exports.TIME_FORMAT=q4;exports.TIME_REGEX_12H=X4;exports.TIME_REGEX_24H=K4;exports.TIME_REGEX_LOOSE=j4;exports.TOOLTIP=g2;exports.TabSelectedEvent=ef;exports.VIRTUAL_LIST=Jd;exports.alertTypes=Sw;exports.buttonTypes=d9;exports.click=L1;exports.emit=X2;exports.focus=Us;exports.hover=zd;exports.iconNames=x9;exports.icons=Kd;exports.illustrationNames=Mw;exports.illustrations=Sh;exports.lozengeColors=P8;exports.lozengeSizes=E8;exports.lozengeThemes=A8;exports.transformIcon=M2;