@skedulo/breeze-ui 0.4.4 → 0.5.0
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 +362 -339
- package/lib/breeze-ui.js +17841 -17616
- package/package.json +1 -1
- package/types/components/buttons.d.ts +11 -0
- package/types/components/buttons.d.ts.map +1 -1
- package/types/components/combo-box.d.ts +8 -18
- package/types/components/combo-box.d.ts.map +1 -1
- package/types/components/form-elements/input-multiselect.d.ts +15 -4
- package/types/components/form-elements/input-multiselect.d.ts.map +1 -1
- package/types/components/form-elements/input-select-base.d.ts +35 -124
- package/types/components/form-elements/input-select-base.d.ts.map +1 -1
- package/types/components/form-elements/input-select.d.ts +4 -10
- package/types/components/form-elements/input-select.d.ts.map +1 -1
- package/types/components/form-elements/input-time.d.ts +2 -1
- package/types/components/form-elements/input-time.d.ts.map +1 -1
- package/types/components/index.d.ts +1 -0
- package/types/components/index.d.ts.map +1 -1
- package/types/components/legacy-scoped-components.d.ts +3 -3
- package/types/components/legacy-scoped-components.d.ts.map +1 -1
- package/types/components/menu/dropdown-menu.d.ts +120 -0
- package/types/components/menu/dropdown-menu.d.ts.map +1 -0
- package/types/components/menu/index.d.ts +4 -0
- package/types/components/menu/index.d.ts.map +1 -0
- package/types/components/menu/menu-item.d.ts +103 -0
- package/types/components/menu/menu-item.d.ts.map +1 -0
- package/types/components/menu/menu.d.ts +189 -0
- package/types/components/menu/menu.d.ts.map +1 -0
- package/types/components/virtual-list.d.ts +15 -1
- package/types/components/virtual-list.d.ts.map +1 -1
package/lib/breeze-ui.cjs
CHANGED
|
@@ -1,52 +1,56 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function X6(u,a){for(var l=0;l<a.length;l++){const h=a[l];if(typeof h!="string"&&!Array.isArray(h)){for(const c in h)if(c!=="default"&&!(c in u)){const v=Object.getOwnPropertyDescriptor(h,c);v&&Object.defineProperty(u,c,v.get?v:{enumerable:!0,get:()=>h[c]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
5
|
+
*/const pc=window,cf=pc.ShadowRoot&&(pc.ShadyCSS===void 0||pc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ff=Symbol(),vd=new WeakMap;class Yd{constructor(a,l,h){if(this._$cssResult$=!0,h!==ff)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=a,this.t=l}get styleSheet(){let a=this.o;const l=this.t;if(cf&&a===void 0){const h=l!==void 0&&l.length===1;h&&(a=vd.get(l)),a===void 0&&((this.o=a=new CSSStyleSheet).replaceSync(this.cssText),h&&vd.set(l,a))}return a}toString(){return this.cssText}}const sl=u=>new Yd(typeof u=="string"?u:u+"",void 0,ff),me=(u,...a)=>{const l=u.length===1?u[0]:a.reduce((h,c,v)=>h+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(c)+u[v+1],u[0]);return new Yd(l,u,ff)},Q6=(u,a)=>{cf?u.adoptedStyleSheets=a.map(l=>l instanceof CSSStyleSheet?l:l.styleSheet):a.forEach(l=>{const h=document.createElement("style"),c=pc.litNonce;c!==void 0&&h.setAttribute("nonce",c),h.textContent=l.cssText,u.appendChild(h)})},bd=cf?u=>u:u=>u instanceof CSSStyleSheet?(a=>{let l="";for(const h of a.cssRules)l+=h.cssText;return sl(l)})(u):u;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var
|
|
9
|
+
*/var Z1;const mc=window,md=mc.trustedTypes,J6=md?md.emptyScript:"",yd=mc.reactiveElementPolyfillSupport,ef={toAttribute(u,a){switch(a){case Boolean:u=u?J6:null;break;case Object:case Array:u=u==null?u:JSON.stringify(u)}return u},fromAttribute(u,a){let l=u;switch(a){case Boolean:l=u!==null;break;case Number:l=u===null?null:Number(u);break;case Object:case Array:try{l=JSON.parse(u)}catch{l=null}}return l}},Xd=(u,a)=>a!==u&&(a==a||u==u),V1={attribute:!0,type:String,converter:ef,reflect:!1,hasChanged:Xd};class ps extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(a){var l;this.finalize(),((l=this.h)!==null&&l!==void 0?l:this.h=[]).push(a)}static get observedAttributes(){this.finalize();const a=[];return this.elementProperties.forEach((l,h)=>{const c=this._$Ep(h,l);c!==void 0&&(this._$Ev.set(c,h),a.push(c))}),a}static createProperty(a,l=V1){if(l.state&&(l.attribute=!1),this.finalize(),this.elementProperties.set(a,l),!l.noAccessor&&!this.prototype.hasOwnProperty(a)){const h=typeof a=="symbol"?Symbol():"__"+a,c=this.getPropertyDescriptor(a,h,l);c!==void 0&&Object.defineProperty(this.prototype,a,c)}}static getPropertyDescriptor(a,l,h){return{get(){return this[l]},set(c){const v=this[a];this[l]=c,this.requestUpdate(a,v,h)},configurable:!0,enumerable:!0}}static getPropertyOptions(a){return this.elementProperties.get(a)||V1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const a=Object.getPrototypeOf(this);if(a.finalize(),a.h!==void 0&&(this.h=[...a.h]),this.elementProperties=new Map(a.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const l=this.properties,h=[...Object.getOwnPropertyNames(l),...Object.getOwnPropertySymbols(l)];for(const c of h)this.createProperty(c,l[c])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(a){const l=[];if(Array.isArray(a)){const h=new Set(a.flat(1/0).reverse());for(const c of h)l.unshift(bd(c))}else a!==void 0&&l.push(bd(a));return l}static _$Ep(a,l){const h=l.attribute;return h===!1?void 0:typeof h=="string"?h:typeof a=="string"?a.toLowerCase():void 0}u(){var a;this._$E_=new Promise(l=>this.enableUpdating=l),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(a=this.constructor.h)===null||a===void 0||a.forEach(l=>l(this))}addController(a){var l,h;((l=this._$ES)!==null&&l!==void 0?l:this._$ES=[]).push(a),this.renderRoot!==void 0&&this.isConnected&&((h=a.hostConnected)===null||h===void 0||h.call(a))}removeController(a){var l;(l=this._$ES)===null||l===void 0||l.splice(this._$ES.indexOf(a)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((a,l)=>{this.hasOwnProperty(l)&&(this._$Ei.set(l,this[l]),delete this[l])})}createRenderRoot(){var a;const l=(a=this.shadowRoot)!==null&&a!==void 0?a:this.attachShadow(this.constructor.shadowRootOptions);return Q6(l,this.constructor.elementStyles),l}connectedCallback(){var a;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(a=this._$ES)===null||a===void 0||a.forEach(l=>{var h;return(h=l.hostConnected)===null||h===void 0?void 0:h.call(l)})}enableUpdating(a){}disconnectedCallback(){var a;(a=this._$ES)===null||a===void 0||a.forEach(l=>{var h;return(h=l.hostDisconnected)===null||h===void 0?void 0:h.call(l)})}attributeChangedCallback(a,l,h){this._$AK(a,h)}_$EO(a,l,h=V1){var c;const v=this.constructor._$Ep(a,h);if(v!==void 0&&h.reflect===!0){const m=(((c=h.converter)===null||c===void 0?void 0:c.toAttribute)!==void 0?h.converter:ef).toAttribute(l,h.type);this._$El=a,m==null?this.removeAttribute(v):this.setAttribute(v,m),this._$El=null}}_$AK(a,l){var h;const c=this.constructor,v=c._$Ev.get(a);if(v!==void 0&&this._$El!==v){const m=c.getPropertyOptions(v),A=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)===null||h===void 0?void 0:h.fromAttribute)!==void 0?m.converter:ef;this._$El=v,this[v]=A.fromAttribute(l,m.type),this._$El=null}}requestUpdate(a,l,h){let c=!0;a!==void 0&&(((h=h||this.constructor.getPropertyOptions(a)).hasChanged||Xd)(this[a],l)?(this._$AL.has(a)||this._$AL.set(a,l),h.reflect===!0&&this._$El!==a&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(a,h))):c=!1),!this.isUpdatePending&&c&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(l){Promise.reject(l)}const a=this.scheduleUpdate();return a!=null&&await a,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var a;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((c,v)=>this[v]=c),this._$Ei=void 0);let l=!1;const h=this._$AL;try{l=this.shouldUpdate(h),l?(this.willUpdate(h),(a=this._$ES)===null||a===void 0||a.forEach(c=>{var v;return(v=c.hostUpdate)===null||v===void 0?void 0:v.call(c)}),this.update(h)):this._$Ek()}catch(c){throw l=!1,this._$Ek(),c}l&&this._$AE(h)}willUpdate(a){}_$AE(a){var l;(l=this._$ES)===null||l===void 0||l.forEach(h=>{var c;return(c=h.hostUpdated)===null||c===void 0?void 0:c.call(h)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(a)),this.updated(a)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(a){return!0}update(a){this._$EC!==void 0&&(this._$EC.forEach((l,h)=>this._$EO(h,this[h],l)),this._$EC=void 0),this._$Ek()}updated(a){}firstUpdated(a){}}ps.finalized=!0,ps.elementProperties=new Map,ps.elementStyles=[],ps.shadowRootOptions={mode:"open"},yd==null||yd({ReactiveElement:ps}),((Z1=mc.reactiveElementVersions)!==null&&Z1!==void 0?Z1:mc.reactiveElementVersions=[]).push("1.4.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var
|
|
13
|
+
*/var G1;const yc=window,bs=yc.trustedTypes,Cd=bs?bs.createPolicy("lit-html",{createHTML:u=>u}):void 0,So=`lit$${(Math.random()+"").slice(9)}$`,df="?"+So,e3=`<${df}>`,ms=document,Pu=(u="")=>ms.createComment(u),Eu=u=>u===null||typeof u!="object"&&typeof u!="function",Qd=Array.isArray,Jd=u=>Qd(u)||typeof(u==null?void 0:u[Symbol.iterator])=="function",zu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wd=/-->/g,xd=/>/g,nl=RegExp(`>|[
|
|
14
14
|
\f\r](?:([^\\s"'>=/]+)([
|
|
15
15
|
\f\r]*=[
|
|
16
16
|
\f\r]*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),zd=/'/g,Ld=/"/g,eh=/^(?:script|style|textarea|title)$/i,th=u=>(a,...l)=>({_$litType$:u,strings:a,values:l}),J=th(1),j=th(2),Gi=Symbol.for("lit-noChange"),Jt=Symbol.for("lit-nothing"),_d=new WeakMap,vs=ms.createTreeWalker(ms,129,null,!1),rh=(u,a)=>{const l=u.length-1,h=[];let c,v=a===2?"<svg>":"",m=zu;for(let T=0;T<l;T++){const k=u[T];let I,H,U=-1,Z=0;for(;Z<k.length&&(m.lastIndex=Z,H=m.exec(k),H!==null);)Z=m.lastIndex,m===zu?H[1]==="!--"?m=wd:H[1]!==void 0?m=xd:H[2]!==void 0?(eh.test(H[2])&&(c=RegExp("</"+H[2],"g")),m=nl):H[3]!==void 0&&(m=nl):m===nl?H[0]===">"?(m=c!=null?c:zu,U=-1):H[1]===void 0?U=-2:(U=m.lastIndex-H[2].length,I=H[1],m=H[3]===void 0?nl:H[3]==='"'?Ld:zd):m===Ld||m===zd?m=nl:m===wd||m===xd?m=zu:(m=nl,c=void 0);const re=m===nl&&u[T+1].startsWith("/>")?" ":"";v+=m===zu?k+e3:U>=0?(h.push(I),k.slice(0,U)+"$lit$"+k.slice(U)+So+re):k+So+(U===-2?(h.push(void 0),T):re)}const A=v+(u[l]||"<?>")+(a===2?"</svg>":"");if(!Array.isArray(u)||!u.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Cd!==void 0?Cd.createHTML(A):A,h]};class Au{constructor({strings:a,_$litType$:l},h){let c;this.parts=[];let v=0,m=0;const A=a.length-1,T=this.parts,[k,I]=rh(a,l);if(this.el=Au.createElement(k,h),vs.currentNode=this.el.content,l===2){const H=this.el.content,U=H.firstChild;U.remove(),H.append(...U.childNodes)}for(;(c=vs.nextNode())!==null&&T.length<A;){if(c.nodeType===1){if(c.hasAttributes()){const H=[];for(const U of c.getAttributeNames())if(U.endsWith("$lit$")||U.startsWith(So)){const Z=I[m++];if(H.push(U),Z!==void 0){const re=c.getAttribute(Z.toLowerCase()+"$lit$").split(So),ge=/([.?@])?(.*)/.exec(Z);T.push({type:1,index:v,name:ge[2],strings:re,ctor:ge[1]==="."?ih:ge[1]==="?"?oh:ge[1]==="@"?ah:Nu})}else T.push({type:6,index:v})}for(const U of H)c.removeAttribute(U)}if(eh.test(c.tagName)){const H=c.textContent.split(So),U=H.length-1;if(U>0){c.textContent=bs?bs.emptyScript:"";for(let Z=0;Z<U;Z++)c.append(H[Z],Pu()),vs.nextNode(),T.push({type:2,index:++v});c.append(H[U],Pu())}}}else if(c.nodeType===8)if(c.data===df)T.push({type:2,index:v});else{let H=-1;for(;(H=c.data.indexOf(So,H+1))!==-1;)T.push({type:7,index:v}),H+=So.length-1}v++}}static createElement(a,l){const h=ms.createElement("template");return h.innerHTML=a,h}}function cl(u,a,l=u,h){var c,v,m,A;if(a===Gi)return a;let T=h!==void 0?(c=l._$Co)===null||c===void 0?void 0:c[h]:l._$Cl;const k=Eu(a)?void 0:a._$litDirective$;return(T==null?void 0:T.constructor)!==k&&((v=T==null?void 0:T._$AO)===null||v===void 0||v.call(T,!1),k===void 0?T=void 0:(T=new k(u),T._$AT(u,l,h)),h!==void 0?((m=(A=l)._$Co)!==null&&m!==void 0?m:A._$Co=[])[h]=T:l._$Cl=T),T!==void 0&&(a=cl(u,T._$AS(u,a.values),T,h)),a}class nh{constructor(a,l){this.u=[],this._$AN=void 0,this._$AD=a,this._$AM=l}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(a){var l;const{el:{content:h},parts:c}=this._$AD,v=((l=a==null?void 0:a.creationScope)!==null&&l!==void 0?l:ms).importNode(h,!0);vs.currentNode=v;let m=vs.nextNode(),A=0,T=0,k=c[0];for(;k!==void 0;){if(A===k.index){let I;k.type===2?I=new zs(m,m.nextSibling,this,a):k.type===1?I=new k.ctor(m,k.name,k.strings,this,a):k.type===6&&(I=new lh(m,this,a)),this.u.push(I),k=c[++T]}A!==(k==null?void 0:k.index)&&(m=vs.nextNode(),A++)}return v}p(a){let l=0;for(const h of this.u)h!==void 0&&(h.strings!==void 0?(h._$AI(a,h,l),l+=h.strings.length-2):h._$AI(a[l])),l++}}class zs{constructor(a,l,h,c){var v;this.type=2,this._$AH=Jt,this._$AN=void 0,this._$AA=a,this._$AB=l,this._$AM=h,this.options=c,this._$Cm=(v=c==null?void 0:c.isConnected)===null||v===void 0||v}get _$AU(){var a,l;return(l=(a=this._$AM)===null||a===void 0?void 0:a._$AU)!==null&&l!==void 0?l:this._$Cm}get parentNode(){let a=this._$AA.parentNode;const l=this._$AM;return l!==void 0&&a.nodeType===11&&(a=l.parentNode),a}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(a,l=this){a=cl(this,a,l),Eu(a)?a===Jt||a==null||a===""?(this._$AH!==Jt&&this._$AR(),this._$AH=Jt):a!==this._$AH&&a!==Gi&&this.g(a):a._$litType$!==void 0?this.$(a):a.nodeType!==void 0?this.T(a):Jd(a)?this.k(a):this.g(a)}O(a,l=this._$AB){return this._$AA.parentNode.insertBefore(a,l)}T(a){this._$AH!==a&&(this._$AR(),this._$AH=this.O(a))}g(a){this._$AH!==Jt&&Eu(this._$AH)?this._$AA.nextSibling.data=a:this.T(ms.createTextNode(a)),this._$AH=a}$(a){var l;const{values:h,_$litType$:c}=a,v=typeof c=="number"?this._$AC(a):(c.el===void 0&&(c.el=Au.createElement(c.h,this.options)),c);if(((l=this._$AH)===null||l===void 0?void 0:l._$AD)===v)this._$AH.p(h);else{const m=new nh(v,this),A=m.v(this.options);m.p(h),this.T(A),this._$AH=m}}_$AC(a){let l=_d.get(a.strings);return l===void 0&&_d.set(a.strings,l=new Au(a)),l}k(a){Qd(this._$AH)||(this._$AH=[],this._$AR());const l=this._$AH;let h,c=0;for(const v of a)c===l.length?l.push(h=new zs(this.O(Pu()),this.O(Pu()),this,this.options)):h=l[c],h._$AI(v),c++;c<l.length&&(this._$AR(h&&h._$AB.nextSibling,c),l.length=c)}_$AR(a=this._$AA.nextSibling,l){var h;for((h=this._$AP)===null||h===void 0||h.call(this,!1,!0,l);a&&a!==this._$AB;){const c=a.nextSibling;a.remove(),a=c}}setConnected(a){var l;this._$AM===void 0&&(this._$Cm=a,(l=this._$AP)===null||l===void 0||l.call(this,a))}}class Nu{constructor(a,l,h,c,v){this.type=1,this._$AH=Jt,this._$AN=void 0,this.element=a,this.name=l,this._$AM=c,this.options=v,h.length>2||h[0]!==""||h[1]!==""?(this._$AH=Array(h.length-1).fill(new String),this.strings=h):this._$AH=Jt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(a,l=this,h,c){const v=this.strings;let m=!1;if(v===void 0)a=cl(this,a,l,0),m=!Eu(a)||a!==this._$AH&&a!==Gi,m&&(this._$AH=a);else{const A=a;let T,k;for(a=v[0],T=0;T<v.length-1;T++)k=cl(this,A[h+T],l,T),k===Gi&&(k=this._$AH[T]),m||(m=!Eu(k)||k!==this._$AH[T]),k===Jt?a=Jt:a!==Jt&&(a+=(k!=null?k:"")+v[T+1]),this._$AH[T]=k}m&&!c&&this.j(a)}j(a){a===Jt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,a!=null?a:"")}}class ih extends Nu{constructor(){super(...arguments),this.type=3}j(a){this.element[this.name]=a===Jt?void 0:a}}const t3=bs?bs.emptyScript:"";class oh extends Nu{constructor(){super(...arguments),this.type=4}j(a){a&&a!==Jt?this.element.setAttribute(this.name,t3):this.element.removeAttribute(this.name)}}class ah extends Nu{constructor(a,l,h,c,v){super(a,l,h,c,v),this.type=5}_$AI(a,l=this){var h;if((a=(h=cl(this,a,l,0))!==null&&h!==void 0?h:Jt)===Gi)return;const c=this._$AH,v=a===Jt&&c!==Jt||a.capture!==c.capture||a.once!==c.once||a.passive!==c.passive,m=a!==Jt&&(c===Jt||v);v&&this.element.removeEventListener(this.name,this,c),m&&this.element.addEventListener(this.name,this,a),this._$AH=a}handleEvent(a){var l,h;typeof this._$AH=="function"?this._$AH.call((h=(l=this.options)===null||l===void 0?void 0:l.host)!==null&&h!==void 0?h:this.element,a):this._$AH.handleEvent(a)}}class lh{constructor(a,l,h){this.element=a,this.type=6,this._$AN=void 0,this._$AM=l,this.options=h}get _$AU(){return this._$AM._$AU}_$AI(a){cl(this,a)}}const r3={P:"$lit$",A:So,M:df,C:1,L:rh,R:nh,D:Jd,V:cl,I:zs,H:Nu,N:oh,U:ah,B:ih,F:lh},Sd=yc.litHtmlPolyfillSupport;Sd==null||Sd(Au,zs),((G1=yc.litHtmlVersions)!==null&&G1!==void 0?G1:yc.litHtmlVersions=[]).push("2.4.0");const sh=(u,a,l)=>{var h,c;const v=(h=l==null?void 0:l.renderBefore)!==null&&h!==void 0?h:a;let m=v._$litPart$;if(m===void 0){const A=(c=l==null?void 0:l.renderBefore)!==null&&c!==void 0?c:null;v._$litPart$=m=new zs(a.insertBefore(Pu(),A),A,void 0,l!=null?l:{})}return m._$AI(u),m};/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var
|
|
21
|
+
*/var q1,K1;class We extends ps{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var a,l;const h=super.createRenderRoot();return(a=(l=this.renderOptions).renderBefore)!==null&&a!==void 0||(l.renderBefore=h.firstChild),h}update(a){const l=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(a),this._$Do=sh(l,this.renderRoot,this.renderOptions)}connectedCallback(){var a;super.connectedCallback(),(a=this._$Do)===null||a===void 0||a.setConnected(!0)}disconnectedCallback(){var a;super.disconnectedCallback(),(a=this._$Do)===null||a===void 0||a.setConnected(!1)}render(){return Gi}}We.finalized=!0,We._$litElement$=!0,(q1=globalThis.litElementHydrateSupport)===null||q1===void 0||q1.call(globalThis,{LitElement:We});const Md=globalThis.litElementPolyfillSupport;Md==null||Md({LitElement:We});((K1=globalThis.litElementVersions)!==null&&K1!==void 0?K1:globalThis.litElementVersions=[]).push("3.2.2");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const Q=u=>a=>typeof a=="function"?((l,h)=>(customElements.define(l,h),h))(u,a):((l,h)=>{const{kind:
|
|
25
|
+
*/const Q=u=>a=>typeof a=="function"?((l,h)=>(customElements.define(l,h),h))(u,a):((l,h)=>{const{kind:c,elements:v}=h;return{kind:c,elements:v,finisher(m){customElements.define(l,m)}}})(u,a);/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/const
|
|
29
|
+
*/const n3=(u,a)=>a.kind==="method"&&a.descriptor&&!("value"in a.descriptor)?{...a,finisher(l){l.createProperty(a.key,u)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:a.key,initializer(){typeof a.initializer=="function"&&(this[a.key]=a.initializer.call(this))},finisher(l){l.createProperty(a.key,u)}};function W(u){return(a,l)=>l!==void 0?((h,c,v)=>{c.constructor.createProperty(v,h)})(u,a,l):n3(u,a)}/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/function
|
|
33
|
+
*/function lt(u){return W({...u,state:!0})}/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/const
|
|
37
|
+
*/const Mc=({finisher:u,descriptor:a})=>(l,h)=>{var c;if(h===void 0){const v=(c=l.originalKey)!==null&&c!==void 0?c:l.key,m=a!=null?{kind:"method",placement:"prototype",key:v,descriptor:a(l.key)}:{...l,key:v};return u!=null&&(m.finisher=function(A){u(A,v)}),m}{const v=l.constructor;a!==void 0&&Object.defineProperty(l,h,a(h)),u==null||u(v,h)}};/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/function
|
|
41
|
+
*/function Ls(u,a){return Mc({descriptor:l=>{const h={get(){var c,v;return(v=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(u))!==null&&v!==void 0?v:null},enumerable:!0,configurable:!0};if(a){const c=typeof l=="symbol"?Symbol():"__"+l;h.get=function(){var v,m;return this[c]===void 0&&(this[c]=(m=(v=this.renderRoot)===null||v===void 0?void 0:v.querySelector(u))!==null&&m!==void 0?m:null),this[c]}}return h}})}/**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright 2017 Google LLC
|
|
44
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
+
*/function i3(u){return Mc({descriptor:a=>({async get(){var l;return await this.updateComplete,(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(u)},enumerable:!0,configurable:!0})})}/**
|
|
42
46
|
* @license
|
|
43
47
|
* Copyright 2021 Google LLC
|
|
44
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
-
*/var
|
|
49
|
+
*/var j1;const o3=((j1=window.HTMLSlotElement)===null||j1===void 0?void 0:j1.prototype.assignedElements)!=null?(u,a)=>u.assignedElements(a):(u,a)=>u.assignedNodes(a).filter(l=>l.nodeType===Node.ELEMENT_NODE);function hf(u){const{slot:a,selector:l}=u!=null?u:{};return Mc({descriptor:h=>({get(){var c;const v="slot"+(a?`[name=${a}]`:":not([name])"),m=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(v),A=m!=null?o3(m,u):[];return l?A.filter(T=>T.matches(l)):A},enumerable:!0,configurable:!0})})}/**
|
|
46
50
|
* @license
|
|
47
51
|
* Copyright 2017 Google LLC
|
|
48
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/function
|
|
53
|
+
*/function uh(u,a,l){let h,c=u;return typeof u=="object"?(c=u.slot,h=u):h={flatten:a},l?hf({slot:c,flatten:a,selector:l}):Mc({descriptor:v=>({get(){var m,A;const T="slot"+(c?`[name=${c}]`:":not([name])"),k=(m=this.renderRoot)===null||m===void 0?void 0:m.querySelector(T);return(A=k==null?void 0:k.assignedNodes(h))!==null&&A!==void 0?A:[]},enumerable:!0,configurable:!0})})}const Ee=u=>`brz-${u.toLowerCase()}`;var a3=Object.defineProperty,l3=Object.getOwnPropertyDescriptor,pf=(u,a,l,h)=>{for(var c=h>1?void 0:h?l3(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&a3(a,l,c),c};const ch=Ee("fade-in-out");exports.FadeInOut=class extends We{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(u){u.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?J``:J`<slot></slot>`}};exports.FadeInOut.styles=me`
|
|
50
54
|
:host {
|
|
51
55
|
opacity: 0;
|
|
52
56
|
animation: fade-in 0.3s ease;
|
|
@@ -63,39 +67,39 @@
|
|
|
63
67
|
opacity: 1;
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
|
-
`;
|
|
70
|
+
`;pf([W({type:Boolean})],exports.FadeInOut.prototype,"shown",2);pf([W({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=pf([Q(ch)],exports.FadeInOut);/**
|
|
67
71
|
* @license
|
|
68
72
|
* Copyright 2017 Google LLC
|
|
69
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/const
|
|
74
|
+
*/const kc={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Oc=u=>(...a)=>({_$litDirective$:u,values:a});class Tc{constructor(a){}get _$AU(){return this._$AM._$AU}_$AT(a,l,h){this._$Ct=a,this._$AM=l,this._$Ci=h}_$AS(a,l){return this.update(a,l)}update(a,l){return this.render(...l)}}/**
|
|
71
75
|
* @license
|
|
72
76
|
* Copyright 2018 Google LLC
|
|
73
77
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
-
*/const
|
|
78
|
+
*/const pa=Oc(class extends Tc{constructor(u){var a;if(super(u),u.type!==kc.ATTRIBUTE||u.name!=="class"||((a=u.strings)===null||a===void 0?void 0:a.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(u){return" "+Object.keys(u).filter(a=>u[a]).join(" ")+" "}update(u,[a]){var l,h;if(this.nt===void 0){this.nt=new Set,u.strings!==void 0&&(this.st=new Set(u.strings.join(" ").split(/\s/).filter(v=>v!=="")));for(const v in a)a[v]&&!(!((l=this.st)===null||l===void 0)&&l.has(v))&&this.nt.add(v);return this.render(a)}const c=u.element.classList;this.nt.forEach(v=>{v in a||(c.remove(v),this.nt.delete(v))});for(const v in a){const m=!!a[v];m===this.nt.has(v)||((h=this.st)===null||h===void 0?void 0:h.has(v))||(m?(c.add(v),this.nt.add(v)):(c.remove(v),this.nt.delete(v)))}return Gi}});/**
|
|
75
79
|
* @license
|
|
76
80
|
* Copyright 2018 Google LLC
|
|
77
81
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
|
-
*/const $t=u=>u!=null?u:
|
|
82
|
+
*/const $t=u=>u!=null?u:Jt,_s=(u,a=me``)=>{const l=me`
|
|
79
83
|
outline: var(--brz-outline-color) var(--brz-outline-style)
|
|
80
84
|
var(--brz-outline-width);
|
|
81
85
|
outline-offset: var(--brz-outline-offset);
|
|
82
86
|
transition: var(--brz-outline-transition);
|
|
83
87
|
${a};
|
|
84
88
|
`;return me`
|
|
85
|
-
:host ${
|
|
89
|
+
:host ${sl(u)} {
|
|
86
90
|
outline-color: transparent;
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
:host ${
|
|
93
|
+
:host ${sl(u)}:focus-visible {
|
|
90
94
|
${l};
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
@supports not selector(:focus-visible) {
|
|
94
|
-
:host ${
|
|
98
|
+
:host ${sl(u)}:focus {
|
|
95
99
|
${l};
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
|
-
`},
|
|
102
|
+
`},gf=me`
|
|
99
103
|
background: none;
|
|
100
104
|
border: 0;
|
|
101
105
|
border-radius: var(--brz-border-radius-default);
|
|
@@ -105,22 +109,22 @@
|
|
|
105
109
|
font: inherit;
|
|
106
110
|
margin: 0;
|
|
107
111
|
padding: 0;
|
|
108
|
-
`,
|
|
109
|
-
:host ${
|
|
110
|
-
${
|
|
112
|
+
`,fh=(u,a=me``)=>me`
|
|
113
|
+
:host ${sl(u)} {
|
|
114
|
+
${gf};
|
|
111
115
|
${a};
|
|
112
116
|
}
|
|
113
117
|
|
|
114
|
-
:host ${
|
|
118
|
+
:host ${sl(u)}:hover {
|
|
115
119
|
color: var(--brz-color-neutral-850);
|
|
116
120
|
}
|
|
117
121
|
|
|
118
|
-
${
|
|
119
|
-
`;var yn="top",Xn="bottom",Qn="right",Cn="left",
|
|
122
|
+
${_s(u)}
|
|
123
|
+
`;var yn="top",Xn="bottom",Qn="right",Cn="left",Pc="auto",Ru=[yn,Xn,Qn,Cn],ys="start",Iu="end",s3="clippingParents",dh="viewport",Lu="popper",u3="reference",kd=Ru.reduce(function(u,a){return u.concat([a+"-"+ys,a+"-"+Iu])},[]),hh=[].concat(Ru,[Pc]).reduce(function(u,a){return u.concat([a,a+"-"+ys,a+"-"+Iu])},[]),c3="beforeRead",f3="read",d3="afterRead",h3="beforeMain",p3="main",g3="afterMain",v3="beforeWrite",b3="write",m3="afterWrite",tf=[c3,f3,d3,h3,p3,g3,v3,b3,m3];function qi(u){return u?(u.nodeName||"").toLowerCase():null}function Jn(u){if(u==null)return window;if(u.toString()!=="[object Window]"){var a=u.ownerDocument;return a&&a.defaultView||window}return u}function fl(u){var a=Jn(u).Element;return u instanceof a||u instanceof Element}function $n(u){var a=Jn(u).HTMLElement;return u instanceof a||u instanceof HTMLElement}function vf(u){if(typeof ShadowRoot=="undefined")return!1;var a=Jn(u).ShadowRoot;return u instanceof a||u instanceof ShadowRoot}function y3(u){var a=u.state;Object.keys(a.elements).forEach(function(l){var h=a.styles[l]||{},c=a.attributes[l]||{},v=a.elements[l];!$n(v)||!qi(v)||(Object.assign(v.style,h),Object.keys(c).forEach(function(m){var A=c[m];A===!1?v.removeAttribute(m):v.setAttribute(m,A===!0?"":A)}))})}function C3(u){var a=u.state,l={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,l.popper),a.styles=l,a.elements.arrow&&Object.assign(a.elements.arrow.style,l.arrow),function(){Object.keys(a.elements).forEach(function(h){var c=a.elements[h],v=a.attributes[h]||{},m=Object.keys(a.styles.hasOwnProperty(h)?a.styles[h]:l[h]),A=m.reduce(function(T,k){return T[k]="",T},{});!$n(c)||!qi(c)||(Object.assign(c.style,A),Object.keys(v).forEach(function(T){c.removeAttribute(T)}))})}}const w3={name:"applyStyles",enabled:!0,phase:"write",fn:y3,effect:C3,requires:["computeStyles"]};function pi(u){return u.split("-")[0]}var ul=Math.max,Cc=Math.min,Cs=Math.round;function rf(){var u=navigator.userAgentData;return u!=null&&u.brands?u.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function ph(){return!/^((?!chrome|android).)*safari/i.test(rf())}function ws(u,a,l){a===void 0&&(a=!1),l===void 0&&(l=!1);var h=u.getBoundingClientRect(),c=1,v=1;a&&$n(u)&&(c=u.offsetWidth>0&&Cs(h.width)/u.offsetWidth||1,v=u.offsetHeight>0&&Cs(h.height)/u.offsetHeight||1);var m=fl(u)?Jn(u):window,A=m.visualViewport,T=!ph()&&l,k=(h.left+(T&&A?A.offsetLeft:0))/c,I=(h.top+(T&&A?A.offsetTop:0))/v,H=h.width/c,U=h.height/v;return{width:H,height:U,top:I,right:k+H,bottom:I+U,left:k,x:k,y:I}}function bf(u){var a=ws(u),l=u.offsetWidth,h=u.offsetHeight;return Math.abs(a.width-l)<=1&&(l=a.width),Math.abs(a.height-h)<=1&&(h=a.height),{x:u.offsetLeft,y:u.offsetTop,width:l,height:h}}function gh(u,a){var l=a.getRootNode&&a.getRootNode();if(u.contains(a))return!0;if(l&&vf(l)){var h=a;do{if(h&&u.isSameNode(h))return!0;h=h.parentNode||h.host}while(h)}return!1}function gi(u){return Jn(u).getComputedStyle(u)}function x3(u){return["table","td","th"].indexOf(qi(u))>=0}function va(u){return((fl(u)?u.ownerDocument:u.document)||window.document).documentElement}function Ec(u){return qi(u)==="html"?u:u.assignedSlot||u.parentNode||(vf(u)?u.host:null)||va(u)}function Od(u){return!$n(u)||gi(u).position==="fixed"?null:u.offsetParent}function z3(u){var a=/firefox/i.test(rf()),l=/Trident/i.test(rf());if(l&&$n(u)){var h=gi(u);if(h.position==="fixed")return null}var c=Ec(u);for(vf(c)&&(c=c.host);$n(c)&&["html","body"].indexOf(qi(c))<0;){var v=gi(c);if(v.transform!=="none"||v.perspective!=="none"||v.contain==="paint"||["transform","perspective"].indexOf(v.willChange)!==-1||a&&v.willChange==="filter"||a&&v.filter&&v.filter!=="none")return c;c=c.parentNode}return null}function Hu(u){for(var a=Jn(u),l=Od(u);l&&x3(l)&&gi(l).position==="static";)l=Od(l);return l&&(qi(l)==="html"||qi(l)==="body"&&gi(l).position==="static")?a:l||z3(u)||a}function mf(u){return["top","bottom"].indexOf(u)>=0?"x":"y"}function Ou(u,a,l){return ul(u,Cc(a,l))}function L3(u,a,l){var h=Ou(u,a,l);return h>l?l:h}function vh(){return{top:0,right:0,bottom:0,left:0}}function bh(u){return Object.assign({},vh(),u)}function mh(u,a){return a.reduce(function(l,h){return l[h]=u,l},{})}var _3=function(a,l){return a=typeof a=="function"?a(Object.assign({},l.rects,{placement:l.placement})):a,bh(typeof a!="number"?a:mh(a,Ru))};function S3(u){var a,l=u.state,h=u.name,c=u.options,v=l.elements.arrow,m=l.modifiersData.popperOffsets,A=pi(l.placement),T=mf(A),k=[Cn,Qn].indexOf(A)>=0,I=k?"height":"width";if(!(!v||!m)){var H=_3(c.padding,l),U=bf(v),Z=T==="y"?yn:Cn,re=T==="y"?Xn:Qn,ge=l.rects.reference[I]+l.rects.reference[T]-m[T]-l.rects.popper[I],pe=m[T]-l.rects.reference[T],Se=Hu(v),Oe=Se?T==="y"?Se.clientHeight||0:Se.clientWidth||0:0,he=ge/2-pe/2,ce=H[Z],Me=Oe-U[I]-H[re],Te=Oe/2-U[I]/2+he,Ae=Ou(ce,Te,Me),qe=T;l.modifiersData[h]=(a={},a[qe]=Ae,a.centerOffset=Ae-Te,a)}}function M3(u){var a=u.state,l=u.options,h=l.element,c=h===void 0?"[data-popper-arrow]":h;if(c!=null&&!(typeof c=="string"&&(c=a.elements.popper.querySelector(c),!c))){if({}.NODE_ENV!=="production"&&($n(c)||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(" "))),!gh(a.elements.popper,c)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}a.elements.arrow=c}}const k3={name:"arrow",enabled:!0,phase:"main",fn:S3,effect:M3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xs(u){return u.split("-")[1]}var O3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function T3(u){var a=u.x,l=u.y,h=window,c=h.devicePixelRatio||1;return{x:Cs(a*c)/c||0,y:Cs(l*c)/c||0}}function Td(u){var a,l=u.popper,h=u.popperRect,c=u.placement,v=u.variation,m=u.offsets,A=u.position,T=u.gpuAcceleration,k=u.adaptive,I=u.roundOffsets,H=u.isFixed,U=m.x,Z=U===void 0?0:U,re=m.y,ge=re===void 0?0:re,pe=typeof I=="function"?I({x:Z,y:ge}):{x:Z,y:ge};Z=pe.x,ge=pe.y;var Se=m.hasOwnProperty("x"),Oe=m.hasOwnProperty("y"),he=Cn,ce=yn,Me=window;if(k){var Te=Hu(l),Ae="clientHeight",qe="clientWidth";if(Te===Jn(l)&&(Te=va(l),gi(Te).position!=="static"&&A==="absolute"&&(Ae="scrollHeight",qe="scrollWidth")),Te=Te,c===yn||(c===Cn||c===Qn)&&v===Iu){ce=Xn;var je=H&&Te===Me&&Me.visualViewport?Me.visualViewport.height:Te[Ae];ge-=je-h.height,ge*=T?1:-1}if(c===Cn||(c===yn||c===Xn)&&v===Iu){he=Qn;var ve=H&&Te===Me&&Me.visualViewport?Me.visualViewport.width:Te[qe];Z-=ve-h.width,Z*=T?1:-1}}var ye=Object.assign({position:A},k&&O3),Xe=I===!0?T3({x:Z,y:ge}):{x:Z,y:ge};if(Z=Xe.x,ge=Xe.y,T){var V;return Object.assign({},ye,(V={},V[ce]=Oe?"0":"",V[he]=Se?"0":"",V.transform=(Me.devicePixelRatio||1)<=1?"translate("+Z+"px, "+ge+"px)":"translate3d("+Z+"px, "+ge+"px, 0)",V))}return Object.assign({},ye,(a={},a[ce]=Oe?ge+"px":"",a[he]=Se?Z+"px":"",a.transform="",a))}function P3(u){var a=u.state,l=u.options,h=l.gpuAcceleration,c=h===void 0?!0:h,v=l.adaptive,m=v===void 0?!0:v,A=l.roundOffsets,T=A===void 0?!0:A;if({}.NODE_ENV!=="production"){var k=gi(a.elements.popper).transitionProperty||"";m&&["transform","top","right","bottom","left"].some(function(H){return k.indexOf(H)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
120
124
|
|
|
121
125
|
`,'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.",`
|
|
122
126
|
|
|
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:gi(a.placement),variation:ys(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:f,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,_d(Object.assign({},I,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:y,roundOffsets:T})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,_d(Object.assign({},I,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:T})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})}const z3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x3,data:{}};var cc={passive:!0};function L3(u){var a=u.state,l=u.instance,h=u.options,f=h.scroll,v=f===void 0?!0:f,y=h.resize,A=y===void 0?!0:y,T=Jn(a.elements.popper),k=[].concat(a.scrollParents.reference,a.scrollParents.popper);return v&&k.forEach(function(I){I.addEventListener("scroll",l.update,cc)}),A&&T.addEventListener("resize",l.update,cc),function(){v&&k.forEach(function(I){I.removeEventListener("scroll",l.update,cc)}),A&&T.removeEventListener("resize",l.update,cc)}}const _3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:L3,data:{}};var S3={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(u){return u.replace(/left|right|bottom|top/g,function(a){return S3[a]})}var M3={start:"end",end:"start"};function Sd(u){return u.replace(/start|end/g,function(a){return M3[a]})}function hf(u){var a=Jn(u),l=a.pageXOffset,h=a.pageYOffset;return{scrollLeft:l,scrollTop:h}}function pf(u){return ms(ga(u)).left+hf(u).scrollLeft}function k3(u,a){var l=Jn(u),h=ga(u),f=l.visualViewport,v=h.clientWidth,y=h.clientHeight,A=0,T=0;if(f){v=f.width,y=f.height;var k=uh();(k||!k&&a==="fixed")&&(A=f.offsetLeft,T=f.offsetTop)}return{width:v,height:y,x:A+pf(u),y:T}}function O3(u){var a,l=ga(u),h=hf(u),f=(a=u.ownerDocument)==null?void 0:a.body,v=ll(l.scrollWidth,l.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),y=ll(l.scrollHeight,l.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),A=-h.scrollLeft+pf(u),T=-h.scrollTop;return vi(f||l).direction==="rtl"&&(A+=ll(l.clientWidth,f?f.clientWidth:0)-v),{width:v,height:y,x:A,y:T}}function gf(u){var a=vi(u),l=a.overflow,h=a.overflowX,f=a.overflowY;return/auto|scroll|overlay|hidden/.test(l+f+h)}function ph(u){return["html","body","#document"].indexOf(qi(u))>=0?u.ownerDocument.body:$n(u)&&gf(u)?u:ph(Mc(u))}function _u(u,a){var l;a===void 0&&(a=[]);var h=ph(u),f=h===((l=u.ownerDocument)==null?void 0:l.body),v=Jn(h),y=f?[v].concat(v.visualViewport||[],gf(h)?h:[]):h,A=a.concat(y);return f?A:A.concat(_u(Mc(y)))}function Q1(u){return Object.assign({},u,{left:u.x,top:u.y,right:u.x+u.width,bottom:u.y+u.height})}function T3(u,a){var l=ms(u,!1,a==="fixed");return l.top=l.top+u.clientTop,l.left=l.left+u.clientLeft,l.bottom=l.top+u.clientHeight,l.right=l.left+u.clientWidth,l.width=u.clientWidth,l.height=u.clientHeight,l.x=l.left,l.y=l.top,l}function Md(u,a,l){return a===lh?Q1(k3(u,l)):ul(a)?T3(a,l):Q1(O3(ga(u)))}function P3(u){var a=_u(Mc(u)),l=["absolute","fixed"].indexOf(vi(u).position)>=0,h=l&&$n(u)?$u(u):u;return ul(h)?a.filter(function(f){return ul(f)&&ch(f,h)&&qi(f)!=="body"}):[]}function E3(u,a,l,h){var f=a==="clippingParents"?P3(u):[].concat(a),v=[].concat(f,[l]),y=v[0],A=v.reduce(function(T,k){var I=Md(u,k,h);return T.top=ll(I.top,T.top),T.right=bc(I.right,T.right),T.bottom=bc(I.bottom,T.bottom),T.left=ll(I.left,T.left),T},Md(u,y,h));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function gh(u){var a=u.reference,l=u.element,h=u.placement,f=h?gi(h):null,v=h?ys(h):null,y=a.x+a.width/2-l.width/2,A=a.y+a.height/2-l.height/2,T;switch(f){case yn:T={x:y,y:a.y-l.height};break;case Xn:T={x:y,y:a.y+a.height};break;case Qn:T={x:a.x+a.width,y:A};break;case Cn:T={x:a.x-l.width,y:A};break;default:T={x:a.x,y:a.y}}var k=f?df(f):null;if(k!=null){var I=k==="y"?"height":"width";switch(v){case vs:T[k]=T[k]-(a[I]/2-l[I]/2);break;case Tu:T[k]=T[k]+(a[I]/2-l[I]/2);break}}return T}function Pu(u,a){a===void 0&&(a={});var l=a,h=l.placement,f=h===void 0?u.placement:h,v=l.strategy,y=v===void 0?u.strategy:v,A=l.boundary,T=A===void 0?J6:A,k=l.rootBoundary,I=k===void 0?lh:k,H=l.elementContext,W=H===void 0?yu:H,Z=l.altBoundary,re=Z===void 0?!1:Z,ge=l.padding,pe=ge===void 0?0:ge,Se=dh(typeof pe!="number"?pe:hh(pe,Du)),Oe=W===yu?e3:yu,he=u.rects.popper,ce=u.elements[re?Oe:W],Me=E3(ul(ce)?ce:ce.contextElement||ga(u.elements.popper),T,I,y),Te=ms(u.elements.reference),Ae=gh({reference:Te,element:he,strategy:"absolute",placement:f}),qe=Q1(Object.assign({},he,Ae)),je=W===yu?qe:Te,ve={top:Me.top-je.top+Se.top,bottom:je.bottom-Me.bottom+Se.bottom,left:Me.left-je.left+Se.left,right:je.right-Me.right+Se.right},ye=u.modifiersData.offset;if(W===yu&&ye){var Xe=ye[f];Object.keys(ve).forEach(function(V){var E=[Qn,Xn].indexOf(V)>=0?1:-1,S=[yn,Xn].indexOf(V)>=0?"y":"x";ve[V]+=Xe[S]*E})}return ve}function A3(u,a){a===void 0&&(a={});var l=a,h=l.placement,f=l.boundary,v=l.rootBoundary,y=l.padding,A=l.flipVariations,T=l.allowedAutoPlacements,k=T===void 0?sh:T,I=ys(h),H=I?A?zd:zd.filter(function(re){return ys(re)===I}):Du,W=H.filter(function(re){return k.indexOf(re)>=0});W.length===0&&(W=H,{}.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 Z=W.reduce(function(re,ge){return re[ge]=Pu(u,{placement:ge,boundary:f,rootBoundary:v,padding:y})[gi(ge)],re},{});return Object.keys(Z).sort(function(re,ge){return Z[re]-Z[ge]})}function I3(u){if(gi(u)===Sc)return[];var a=dc(u);return[Sd(u),a,Sd(a)]}function D3(u){var a=u.state,l=u.options,h=u.name;if(!a.modifiersData[h]._skip){for(var f=l.mainAxis,v=f===void 0?!0:f,y=l.altAxis,A=y===void 0?!0:y,T=l.fallbackPlacements,k=l.padding,I=l.boundary,H=l.rootBoundary,W=l.altBoundary,Z=l.flipVariations,re=Z===void 0?!0:Z,ge=l.allowedAutoPlacements,pe=a.options.placement,Se=gi(pe),Oe=Se===pe,he=T||(Oe||!re?[dc(pe)]:I3(pe)),ce=[pe].concat(he).reduce(function(At,ot){return At.concat(gi(ot)===Sc?A3(a,{placement:ot,boundary:I,rootBoundary:H,padding:k,flipVariations:re,allowedAutoPlacements:ge}):ot)},[]),Me=a.rects.reference,Te=a.rects.popper,Ae=new Map,qe=!0,je=ce[0],ve=0;ve<ce.length;ve++){var ye=ce[ve],Xe=gi(ye),V=ys(ye)===vs,E=[yn,Xn].indexOf(Xe)>=0,S=E?"width":"height",ee=Pu(a,{placement:ye,boundary:I,rootBoundary:H,altBoundary:W,padding:k}),be=E?V?Qn:Cn:V?Xn:yn;Me[S]>Te[S]&&(be=dc(be));var tt=dc(be),zt=[];if(v&&zt.push(ee[Xe]<=0),A&&zt.push(ee[be]<=0,ee[tt]<=0),zt.every(function(At){return At})){je=ye,qe=!1;break}Ae.set(ye,zt)}if(qe)for(var jt=re?3:1,Et=function(ot){var Le=ce.find(function(He){var We=Ae.get(He);if(We)return We.slice(0,ot).every(function(rt){return rt})});if(Le)return je=Le,"break"},Yr=jt;Yr>0;Yr--){var Ut=Et(Yr);if(Ut==="break")break}a.placement!==je&&(a.modifiersData[h]._skip=!0,a.placement=je,a.reset=!0)}}const $3={name:"flip",enabled:!0,phase:"main",fn:D3,requiresIfExists:["offset"],data:{_skip:!1}};function kd(u,a,l){return l===void 0&&(l={x:0,y:0}),{top:u.top-a.height-l.y,right:u.right-a.width+l.x,bottom:u.bottom-a.height+l.y,left:u.left-a.width-l.x}}function Od(u){return[yn,Qn,Xn,Cn].some(function(a){return u[a]>=0})}function N3(u){var a=u.state,l=u.name,h=a.rects.reference,f=a.rects.popper,v=a.modifiersData.preventOverflow,y=Pu(a,{elementContext:"reference"}),A=Pu(a,{altBoundary:!0}),T=kd(y,h),k=kd(A,f,v),I=Od(T),H=Od(k);a.modifiersData[l]={referenceClippingOffsets:T,popperEscapeOffsets:k,isReferenceHidden:I,hasPopperEscaped:H},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":H})}const R3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N3};function H3(u,a,l){var h=gi(u),f=[Cn,yn].indexOf(h)>=0?-1:1,v=typeof l=="function"?l(Object.assign({},a,{placement:u})):l,y=v[0],A=v[1];return y=y||0,A=(A||0)*f,[Cn,Qn].indexOf(h)>=0?{x:A,y}:{x:y,y:A}}function B3(u){var a=u.state,l=u.options,h=u.name,f=l.offset,v=f===void 0?[0,0]:f,y=sh.reduce(function(I,H){return I[H]=H3(H,a.rects,v),I},{}),A=y[a.placement],T=A.x,k=A.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=T,a.modifiersData.popperOffsets.y+=k),a.modifiersData[h]=y}const F3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:B3};function W3(u){var a=u.state,l=u.name;a.modifiersData[l]=gh({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})}const U3={name:"popperOffsets",enabled:!0,phase:"read",fn:W3,data:{}};function Z3(u){return u==="x"?"y":"x"}function V3(u){var a=u.state,l=u.options,h=u.name,f=l.mainAxis,v=f===void 0?!0:f,y=l.altAxis,A=y===void 0?!1:y,T=l.boundary,k=l.rootBoundary,I=l.altBoundary,H=l.padding,W=l.tether,Z=W===void 0?!0:W,re=l.tetherOffset,ge=re===void 0?0:re,pe=Pu(a,{boundary:T,rootBoundary:k,padding:H,altBoundary:I}),Se=gi(a.placement),Oe=ys(a.placement),he=!Oe,ce=df(Se),Me=Z3(ce),Te=a.modifiersData.popperOffsets,Ae=a.rects.reference,qe=a.rects.popper,je=typeof ge=="function"?ge(Object.assign({},a.rects,{placement:a.placement})):ge,ve=typeof je=="number"?{mainAxis:je,altAxis:je}:Object.assign({mainAxis:0,altAxis:0},je),ye=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,Xe={x:0,y:0};if(!!Te){if(v){var V,E=ce==="y"?yn:Cn,S=ce==="y"?Xn:Qn,ee=ce==="y"?"height":"width",be=Te[ce],tt=be+pe[E],zt=be-pe[S],jt=Z?-qe[ee]/2:0,Et=Oe===vs?Ae[ee]:qe[ee],Yr=Oe===vs?-qe[ee]:-Ae[ee],Ut=a.elements.arrow,At=Z&&Ut?ff(Ut):{width:0,height:0},ot=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:fh(),Le=ot[E],He=ot[S],We=Lu(0,Ae[ee],At[ee]),rt=he?Ae[ee]/2-jt-We-Le-ve.mainAxis:Et-We-Le-ve.mainAxis,nt=he?-Ae[ee]/2+jt+We+He+ve.mainAxis:Yr+We+He+ve.mainAxis,Be=a.elements.arrow&&$u(a.elements.arrow),Rt=Be?ce==="y"?Be.clientTop||0:Be.clientLeft||0:0,Ir=(V=ye==null?void 0:ye[ce])!=null?V:0,Yt=be+rt-Ir-Rt,Ke=be+nt-Ir,ht=Lu(Z?bc(tt,Yt):tt,be,Z?ll(zt,Ke):zt);Te[ce]=ht,Xe[ce]=ht-be}if(A){var wt,Lr=ce==="x"?yn:Cn,Ur=ce==="x"?Xn:Qn,Jt=Te[Me],Je=Me==="y"?"height":"width",F=Jt+pe[Lr],ae=Jt-pe[Ur],K=[yn,Cn].indexOf(Se)!==-1,Ye=(wt=ye==null?void 0:ye[Me])!=null?wt:0,er=K?F:Jt-Ae[Je]-qe[Je]-Ye+ve.altAxis,pr=K?Jt+Ae[Je]+qe[Je]-Ye-ve.altAxis:ae,xn=Z&&K?g3(er,Jt,pr):Lu(Z?er:F,Jt,Z?pr:ae);Te[Me]=xn,Xe[Me]=xn-Jt}a.modifiersData[h]=Xe}}const G3={name:"preventOverflow",enabled:!0,phase:"main",fn:V3,requiresIfExists:["offset"]};function q3(u){return{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}}function K3(u){return u===Jn(u)||!$n(u)?hf(u):q3(u)}function j3(u){var a=u.getBoundingClientRect(),l=bs(a.width)/u.offsetWidth||1,h=bs(a.height)/u.offsetHeight||1;return l!==1||h!==1}function Y3(u,a,l){l===void 0&&(l=!1);var h=$n(a),f=$n(a)&&j3(a),v=ga(a),y=ms(u,f,l),A={scrollLeft:0,scrollTop:0},T={x:0,y:0};return(h||!h&&!l)&&((qi(a)!=="body"||gf(v))&&(A=K3(a)),$n(a)?(T=ms(a,!0),T.x+=a.clientLeft,T.y+=a.clientTop):v&&(T.x=pf(v))),{x:y.left+A.scrollLeft-T.x,y:y.top+A.scrollTop-T.y,width:y.width,height:y.height}}function X3(u){var a=new Map,l=new Set,h=[];u.forEach(function(v){a.set(v.name,v)});function f(v){l.add(v.name);var y=[].concat(v.requires||[],v.requiresIfExists||[]);y.forEach(function(A){if(!l.has(A)){var T=a.get(A);T&&f(T)}}),h.push(v)}return u.forEach(function(v){l.has(v.name)||f(v)}),h}function Q3(u){var a=X3(u);return Y1.reduce(function(l,h){return l.concat(a.filter(function(f){return f.phase===h}))},[])}function J3(u){var a;return function(){return a||(a=new Promise(function(l){Promise.resolve().then(function(){a=void 0,l(u())})})),a}}function fa(u){for(var a=arguments.length,l=new Array(a>1?a-1:0),h=1;h<a;h++)l[h-1]=arguments[h];return[].concat(l).reduce(function(f,v){return f.replace(/%s/,v)},u)}var rl='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',e7='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Td=["name","enabled","phase","fn","effect","requires","options"];function t7(u){u.forEach(function(a){[].concat(Object.keys(a),Td).filter(function(l,h,f){return f.indexOf(l)===h}).forEach(function(l){switch(l){case"name":typeof a.name!="string"&&console.error(fa(rl,String(a.name),'"name"','"string"','"'+String(a.name)+'"'));break;case"enabled":typeof a.enabled!="boolean"&&console.error(fa(rl,a.name,'"enabled"','"boolean"','"'+String(a.enabled)+'"'));break;case"phase":Y1.indexOf(a.phase)<0&&console.error(fa(rl,a.name,'"phase"',"either "+Y1.join(", "),'"'+String(a.phase)+'"'));break;case"fn":typeof a.fn!="function"&&console.error(fa(rl,a.name,'"fn"','"function"','"'+String(a.fn)+'"'));break;case"effect":a.effect!=null&&typeof a.effect!="function"&&console.error(fa(rl,a.name,'"effect"','"function"','"'+String(a.fn)+'"'));break;case"requires":a.requires!=null&&!Array.isArray(a.requires)&&console.error(fa(rl,a.name,'"requires"','"array"','"'+String(a.requires)+'"'));break;case"requiresIfExists":Array.isArray(a.requiresIfExists)||console.error(fa(rl,a.name,'"requiresIfExists"','"array"','"'+String(a.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+a.name+'" modifier, valid properties are '+Td.map(function(h){return'"'+h+'"'}).join(", ")+'; but "'+l+'" was provided.')}a.requires&&a.requires.forEach(function(h){u.find(function(f){return f.name===h})==null&&console.error(fa(e7,String(a.name),h,h))})})})}function r7(u,a){var l=new Set;return u.filter(function(h){var f=a(h);if(!l.has(f))return l.add(f),!0})}function n7(u){var a=u.reduce(function(l,h){var f=l[h.name];return l[h.name]=f?Object.assign({},f,h,{options:Object.assign({},f.options,h.options),data:Object.assign({},f.data,h.data)}):h,l},{});return Object.keys(a).map(function(l){return a[l]})}var Pd="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",i7="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ed={placement:"bottom",modifiers:[],strategy:"absolute"};function Ad(){for(var u=arguments.length,a=new Array(u),l=0;l<u;l++)a[l]=arguments[l];return!a.some(function(h){return!(h&&typeof h.getBoundingClientRect=="function")})}function o7(u){u===void 0&&(u={});var a=u,l=a.defaultModifiers,h=l===void 0?[]:l,f=a.defaultOptions,v=f===void 0?Ed:f;return function(A,T,k){k===void 0&&(k=v);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ed,v),modifiersData:{},elements:{reference:A,popper:T},attributes:{},styles:{}},H=[],W=!1,Z={state:I,setOptions:function(Se){var Oe=typeof Se=="function"?Se(I.options):Se;ge(),I.options=Object.assign({},v,I.options,Oe),I.scrollParents={reference:ul(A)?_u(A):A.contextElement?_u(A.contextElement):[],popper:_u(T)};var he=Q3(n7([].concat(h,I.options.modifiers)));if(I.orderedModifiers=he.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var ce=r7([].concat(he,I.options.modifiers),function(ye){var Xe=ye.name;return Xe});if(t7(ce),gi(I.options.placement)===Sc){var Me=I.orderedModifiers.find(function(ye){var Xe=ye.name;return Xe==="flip"});Me||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var Te=vi(T),Ae=Te.marginTop,qe=Te.marginRight,je=Te.marginBottom,ve=Te.marginLeft;[Ae,qe,je,ve].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 re(),Z.update()},forceUpdate:function(){if(!W){var Se=I.elements,Oe=Se.reference,he=Se.popper;if(!Ad(Oe,he)){({}).NODE_ENV!=="production"&&console.error(Pd);return}I.rects={reference:Y3(Oe,$u(he),I.options.strategy==="fixed"),popper:ff(he)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(ye){return I.modifiersData[ye.name]=Object.assign({},ye.data)});for(var ce=0,Me=0;Me<I.orderedModifiers.length;Me++){if({}.NODE_ENV!=="production"&&(ce+=1,ce>100)){console.error(i7);break}if(I.reset===!0){I.reset=!1,Me=-1;continue}var Te=I.orderedModifiers[Me],Ae=Te.fn,qe=Te.options,je=qe===void 0?{}:qe,ve=Te.name;typeof Ae=="function"&&(I=Ae({state:I,options:je,name:ve,instance:Z})||I)}}},update:J3(function(){return new Promise(function(pe){Z.forceUpdate(),pe(I)})}),destroy:function(){ge(),W=!0}};if(!Ad(A,T))return{}.NODE_ENV!=="production"&&console.error(Pd),Z;Z.setOptions(k).then(function(pe){!W&&k.onFirstUpdate&&k.onFirstUpdate(pe)});function re(){I.orderedModifiers.forEach(function(pe){var Se=pe.name,Oe=pe.options,he=Oe===void 0?{}:Oe,ce=pe.effect;if(typeof ce=="function"){var Me=ce({state:I,name:Se,instance:Z,options:he}),Te=function(){};H.push(Me||Te)}})}function ge(){H.forEach(function(pe){return pe()}),H=[]}return Z}}var a7=[_3,U3,z3,d3,F3,$3,G3,y3,R3],l7=o7({defaultModifiers:a7}),s7=Object.defineProperty,u7=Object.getOwnPropertyDescriptor,Fr=(u,a,l,h)=>{for(var f=h>1?void 0:h?u7(a,l):a,v=u.length-1,y;v>=0;v--)(y=u[v])&&(f=(h?y(a,l,f):y(f))||f);return h&&f&&s7(a,l,f),f};let c7=0;const vf=Ee("popover"),vh=Ee("pure-popover"),bh=["click","hover","focus"],[mc,J1,ol]=bh,bf=["dialog","tooltip","menu"],[f7]=bf;class d7 extends CustomEvent{constructor(a){super(`${vf}-${a}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Fe{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=f7,this.disabled=!1,this.popoverId=`popover-${++c7}`,this.delayTimeout=0}disconnectedCallback(){var u;super.disconnectedCallback(),(u=this.popperInstance)==null||u.destroy()}updatePosition(){var u;(u=this.popperInstance)==null||u.update()}async updated(u){super.updated(u),this.popperInstance=this.popperInstance||l7(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 a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector("slot");return u==null?void 0:u.assignedElements({flatten:!0})[0]}get contentElement(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector("slot[name=content]");return u==null?void 0:u.assignedNodes({flatten:!0})[0]}get popoverElement(){var u;return(u=this.shadowRoot)==null?void 0:u.querySelector(".popover-container")}emit(u){this.dispatchEvent(new d7(u))}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 J`
|
|
127
|
+
`,"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:pi(a.placement),variation:xs(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:c,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,Td(Object.assign({},I,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:m,roundOffsets:T})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,Td(Object.assign({},I,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:T})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})}const E3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:P3,data:{}};var hc={passive:!0};function A3(u){var a=u.state,l=u.instance,h=u.options,c=h.scroll,v=c===void 0?!0:c,m=h.resize,A=m===void 0?!0:m,T=Jn(a.elements.popper),k=[].concat(a.scrollParents.reference,a.scrollParents.popper);return v&&k.forEach(function(I){I.addEventListener("scroll",l.update,hc)}),A&&T.addEventListener("resize",l.update,hc),function(){v&&k.forEach(function(I){I.removeEventListener("scroll",l.update,hc)}),A&&T.removeEventListener("resize",l.update,hc)}}const I3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:A3,data:{}};var D3={left:"right",right:"left",bottom:"top",top:"bottom"};function gc(u){return u.replace(/left|right|bottom|top/g,function(a){return D3[a]})}var $3={start:"end",end:"start"};function Pd(u){return u.replace(/start|end/g,function(a){return $3[a]})}function yf(u){var a=Jn(u),l=a.pageXOffset,h=a.pageYOffset;return{scrollLeft:l,scrollTop:h}}function Cf(u){return ws(va(u)).left+yf(u).scrollLeft}function N3(u,a){var l=Jn(u),h=va(u),c=l.visualViewport,v=h.clientWidth,m=h.clientHeight,A=0,T=0;if(c){v=c.width,m=c.height;var k=ph();(k||!k&&a==="fixed")&&(A=c.offsetLeft,T=c.offsetTop)}return{width:v,height:m,x:A+Cf(u),y:T}}function R3(u){var a,l=va(u),h=yf(u),c=(a=u.ownerDocument)==null?void 0:a.body,v=ul(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),m=ul(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),A=-h.scrollLeft+Cf(u),T=-h.scrollTop;return gi(c||l).direction==="rtl"&&(A+=ul(l.clientWidth,c?c.clientWidth:0)-v),{width:v,height:m,x:A,y:T}}function wf(u){var a=gi(u),l=a.overflow,h=a.overflowX,c=a.overflowY;return/auto|scroll|overlay|hidden/.test(l+c+h)}function yh(u){return["html","body","#document"].indexOf(qi(u))>=0?u.ownerDocument.body:$n(u)&&wf(u)?u:yh(Ec(u))}function Tu(u,a){var l;a===void 0&&(a=[]);var h=yh(u),c=h===((l=u.ownerDocument)==null?void 0:l.body),v=Jn(h),m=c?[v].concat(v.visualViewport||[],wf(h)?h:[]):h,A=a.concat(m);return c?A:A.concat(Tu(Ec(m)))}function nf(u){return Object.assign({},u,{left:u.x,top:u.y,right:u.x+u.width,bottom:u.y+u.height})}function H3(u,a){var l=ws(u,!1,a==="fixed");return l.top=l.top+u.clientTop,l.left=l.left+u.clientLeft,l.bottom=l.top+u.clientHeight,l.right=l.left+u.clientWidth,l.width=u.clientWidth,l.height=u.clientHeight,l.x=l.left,l.y=l.top,l}function Ed(u,a,l){return a===dh?nf(N3(u,l)):fl(a)?H3(a,l):nf(R3(va(u)))}function B3(u){var a=Tu(Ec(u)),l=["absolute","fixed"].indexOf(gi(u).position)>=0,h=l&&$n(u)?Hu(u):u;return fl(h)?a.filter(function(c){return fl(c)&&gh(c,h)&&qi(c)!=="body"}):[]}function F3(u,a,l,h){var c=a==="clippingParents"?B3(u):[].concat(a),v=[].concat(c,[l]),m=v[0],A=v.reduce(function(T,k){var I=Ed(u,k,h);return T.top=ul(I.top,T.top),T.right=Cc(I.right,T.right),T.bottom=Cc(I.bottom,T.bottom),T.left=ul(I.left,T.left),T},Ed(u,m,h));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function Ch(u){var a=u.reference,l=u.element,h=u.placement,c=h?pi(h):null,v=h?xs(h):null,m=a.x+a.width/2-l.width/2,A=a.y+a.height/2-l.height/2,T;switch(c){case yn:T={x:m,y:a.y-l.height};break;case Xn:T={x:m,y:a.y+a.height};break;case Qn:T={x:a.x+a.width,y:A};break;case Cn:T={x:a.x-l.width,y:A};break;default:T={x:a.x,y:a.y}}var k=c?mf(c):null;if(k!=null){var I=k==="y"?"height":"width";switch(v){case ys:T[k]=T[k]-(a[I]/2-l[I]/2);break;case Iu:T[k]=T[k]+(a[I]/2-l[I]/2);break}}return T}function Du(u,a){a===void 0&&(a={});var l=a,h=l.placement,c=h===void 0?u.placement:h,v=l.strategy,m=v===void 0?u.strategy:v,A=l.boundary,T=A===void 0?s3:A,k=l.rootBoundary,I=k===void 0?dh:k,H=l.elementContext,U=H===void 0?Lu:H,Z=l.altBoundary,re=Z===void 0?!1:Z,ge=l.padding,pe=ge===void 0?0:ge,Se=bh(typeof pe!="number"?pe:mh(pe,Ru)),Oe=U===Lu?u3:Lu,he=u.rects.popper,ce=u.elements[re?Oe:U],Me=F3(fl(ce)?ce:ce.contextElement||va(u.elements.popper),T,I,m),Te=ws(u.elements.reference),Ae=Ch({reference:Te,element:he,strategy:"absolute",placement:c}),qe=nf(Object.assign({},he,Ae)),je=U===Lu?qe:Te,ve={top:Me.top-je.top+Se.top,bottom:je.bottom-Me.bottom+Se.bottom,left:Me.left-je.left+Se.left,right:je.right-Me.right+Se.right},ye=u.modifiersData.offset;if(U===Lu&&ye){var Xe=ye[c];Object.keys(ve).forEach(function(V){var E=[Qn,Xn].indexOf(V)>=0?1:-1,S=[yn,Xn].indexOf(V)>=0?"y":"x";ve[V]+=Xe[S]*E})}return ve}function W3(u,a){a===void 0&&(a={});var l=a,h=l.placement,c=l.boundary,v=l.rootBoundary,m=l.padding,A=l.flipVariations,T=l.allowedAutoPlacements,k=T===void 0?hh:T,I=xs(h),H=I?A?kd:kd.filter(function(re){return xs(re)===I}):Ru,U=H.filter(function(re){return k.indexOf(re)>=0});U.length===0&&(U=H,{}.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 Z=U.reduce(function(re,ge){return re[ge]=Du(u,{placement:ge,boundary:c,rootBoundary:v,padding:m})[pi(ge)],re},{});return Object.keys(Z).sort(function(re,ge){return Z[re]-Z[ge]})}function U3(u){if(pi(u)===Pc)return[];var a=gc(u);return[Pd(u),a,Pd(a)]}function Z3(u){var a=u.state,l=u.options,h=u.name;if(!a.modifiersData[h]._skip){for(var c=l.mainAxis,v=c===void 0?!0:c,m=l.altAxis,A=m===void 0?!0:m,T=l.fallbackPlacements,k=l.padding,I=l.boundary,H=l.rootBoundary,U=l.altBoundary,Z=l.flipVariations,re=Z===void 0?!0:Z,ge=l.allowedAutoPlacements,pe=a.options.placement,Se=pi(pe),Oe=Se===pe,he=T||(Oe||!re?[gc(pe)]:U3(pe)),ce=[pe].concat(he).reduce(function(At,ot){return At.concat(pi(ot)===Pc?W3(a,{placement:ot,boundary:I,rootBoundary:H,padding:k,flipVariations:re,allowedAutoPlacements:ge}):ot)},[]),Me=a.rects.reference,Te=a.rects.popper,Ae=new Map,qe=!0,je=ce[0],ve=0;ve<ce.length;ve++){var ye=ce[ve],Xe=pi(ye),V=xs(ye)===ys,E=[yn,Xn].indexOf(Xe)>=0,S=E?"width":"height",ee=Du(a,{placement:ye,boundary:I,rootBoundary:H,altBoundary:U,padding:k}),be=E?V?Qn:Cn:V?Xn:yn;Me[S]>Te[S]&&(be=gc(be));var tt=gc(be),zt=[];if(v&&zt.push(ee[Xe]<=0),A&&zt.push(ee[be]<=0,ee[tt]<=0),zt.every(function(At){return At})){je=ye,qe=!1;break}Ae.set(ye,zt)}if(qe)for(var jt=re?3:1,Et=function(ot){var Le=ce.find(function(He){var Fe=Ae.get(He);if(Fe)return Fe.slice(0,ot).every(function(rt){return rt})});if(Le)return je=Le,"break"},jr=jt;jr>0;jr--){var Ut=Et(jr);if(Ut==="break")break}a.placement!==je&&(a.modifiersData[h]._skip=!0,a.placement=je,a.reset=!0)}}const V3={name:"flip",enabled:!0,phase:"main",fn:Z3,requiresIfExists:["offset"],data:{_skip:!1}};function Ad(u,a,l){return l===void 0&&(l={x:0,y:0}),{top:u.top-a.height-l.y,right:u.right-a.width+l.x,bottom:u.bottom-a.height+l.y,left:u.left-a.width-l.x}}function Id(u){return[yn,Qn,Xn,Cn].some(function(a){return u[a]>=0})}function G3(u){var a=u.state,l=u.name,h=a.rects.reference,c=a.rects.popper,v=a.modifiersData.preventOverflow,m=Du(a,{elementContext:"reference"}),A=Du(a,{altBoundary:!0}),T=Ad(m,h),k=Ad(A,c,v),I=Id(T),H=Id(k);a.modifiersData[l]={referenceClippingOffsets:T,popperEscapeOffsets:k,isReferenceHidden:I,hasPopperEscaped:H},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":H})}const q3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:G3};function K3(u,a,l){var h=pi(u),c=[Cn,yn].indexOf(h)>=0?-1:1,v=typeof l=="function"?l(Object.assign({},a,{placement:u})):l,m=v[0],A=v[1];return m=m||0,A=(A||0)*c,[Cn,Qn].indexOf(h)>=0?{x:A,y:m}:{x:m,y:A}}function j3(u){var a=u.state,l=u.options,h=u.name,c=l.offset,v=c===void 0?[0,0]:c,m=hh.reduce(function(I,H){return I[H]=K3(H,a.rects,v),I},{}),A=m[a.placement],T=A.x,k=A.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=T,a.modifiersData.popperOffsets.y+=k),a.modifiersData[h]=m}const Y3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j3};function X3(u){var a=u.state,l=u.name;a.modifiersData[l]=Ch({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})}const Q3={name:"popperOffsets",enabled:!0,phase:"read",fn:X3,data:{}};function J3(u){return u==="x"?"y":"x"}function eg(u){var a=u.state,l=u.options,h=u.name,c=l.mainAxis,v=c===void 0?!0:c,m=l.altAxis,A=m===void 0?!1:m,T=l.boundary,k=l.rootBoundary,I=l.altBoundary,H=l.padding,U=l.tether,Z=U===void 0?!0:U,re=l.tetherOffset,ge=re===void 0?0:re,pe=Du(a,{boundary:T,rootBoundary:k,padding:H,altBoundary:I}),Se=pi(a.placement),Oe=xs(a.placement),he=!Oe,ce=mf(Se),Me=J3(ce),Te=a.modifiersData.popperOffsets,Ae=a.rects.reference,qe=a.rects.popper,je=typeof ge=="function"?ge(Object.assign({},a.rects,{placement:a.placement})):ge,ve=typeof je=="number"?{mainAxis:je,altAxis:je}:Object.assign({mainAxis:0,altAxis:0},je),ye=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,Xe={x:0,y:0};if(!!Te){if(v){var V,E=ce==="y"?yn:Cn,S=ce==="y"?Xn:Qn,ee=ce==="y"?"height":"width",be=Te[ce],tt=be+pe[E],zt=be-pe[S],jt=Z?-qe[ee]/2:0,Et=Oe===ys?Ae[ee]:qe[ee],jr=Oe===ys?-qe[ee]:-Ae[ee],Ut=a.elements.arrow,At=Z&&Ut?bf(Ut):{width:0,height:0},ot=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:vh(),Le=ot[E],He=ot[S],Fe=Ou(0,Ae[ee],At[ee]),rt=he?Ae[ee]/2-jt-Fe-Le-ve.mainAxis:Et-Fe-Le-ve.mainAxis,nt=he?-Ae[ee]/2+jt+Fe+He+ve.mainAxis:jr+Fe+He+ve.mainAxis,Be=a.elements.arrow&&Hu(a.elements.arrow),Rt=Be?ce==="y"?Be.clientTop||0:Be.clientLeft||0:0,Ir=(V=ye==null?void 0:ye[ce])!=null?V:0,Yt=be+rt-Ir-Rt,Ke=be+nt-Ir,ht=Ou(Z?Cc(tt,Yt):tt,be,Z?ul(zt,Ke):zt);Te[ce]=ht,Xe[ce]=ht-be}if(A){var wt,Lr=ce==="x"?yn:Cn,Ur=ce==="x"?Xn:Qn,er=Te[Me],Je=Me==="y"?"height":"width",F=er+pe[Lr],ae=er-pe[Ur],K=[yn,Cn].indexOf(Se)!==-1,Ye=(wt=ye==null?void 0:ye[Me])!=null?wt:0,tr=K?F:er-Ae[Je]-qe[Je]-Ye+ve.altAxis,pr=K?er+Ae[Je]+qe[Je]-Ye-ve.altAxis:ae,xn=Z&&K?L3(tr,er,pr):Ou(Z?tr:F,er,Z?pr:ae);Te[Me]=xn,Xe[Me]=xn-er}a.modifiersData[h]=Xe}}const tg={name:"preventOverflow",enabled:!0,phase:"main",fn:eg,requiresIfExists:["offset"]};function rg(u){return{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}}function ng(u){return u===Jn(u)||!$n(u)?yf(u):rg(u)}function ig(u){var a=u.getBoundingClientRect(),l=Cs(a.width)/u.offsetWidth||1,h=Cs(a.height)/u.offsetHeight||1;return l!==1||h!==1}function og(u,a,l){l===void 0&&(l=!1);var h=$n(a),c=$n(a)&&ig(a),v=va(a),m=ws(u,c,l),A={scrollLeft:0,scrollTop:0},T={x:0,y:0};return(h||!h&&!l)&&((qi(a)!=="body"||wf(v))&&(A=ng(a)),$n(a)?(T=ws(a,!0),T.x+=a.clientLeft,T.y+=a.clientTop):v&&(T.x=Cf(v))),{x:m.left+A.scrollLeft-T.x,y:m.top+A.scrollTop-T.y,width:m.width,height:m.height}}function ag(u){var a=new Map,l=new Set,h=[];u.forEach(function(v){a.set(v.name,v)});function c(v){l.add(v.name);var m=[].concat(v.requires||[],v.requiresIfExists||[]);m.forEach(function(A){if(!l.has(A)){var T=a.get(A);T&&c(T)}}),h.push(v)}return u.forEach(function(v){l.has(v.name)||c(v)}),h}function lg(u){var a=ag(u);return tf.reduce(function(l,h){return l.concat(a.filter(function(c){return c.phase===h}))},[])}function sg(u){var a;return function(){return a||(a=new Promise(function(l){Promise.resolve().then(function(){a=void 0,l(u())})})),a}}function da(u){for(var a=arguments.length,l=new Array(a>1?a-1:0),h=1;h<a;h++)l[h-1]=arguments[h];return[].concat(l).reduce(function(c,v){return c.replace(/%s/,v)},u)}var il='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ug='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Dd=["name","enabled","phase","fn","effect","requires","options"];function cg(u){u.forEach(function(a){[].concat(Object.keys(a),Dd).filter(function(l,h,c){return c.indexOf(l)===h}).forEach(function(l){switch(l){case"name":typeof a.name!="string"&&console.error(da(il,String(a.name),'"name"','"string"','"'+String(a.name)+'"'));break;case"enabled":typeof a.enabled!="boolean"&&console.error(da(il,a.name,'"enabled"','"boolean"','"'+String(a.enabled)+'"'));break;case"phase":tf.indexOf(a.phase)<0&&console.error(da(il,a.name,'"phase"',"either "+tf.join(", "),'"'+String(a.phase)+'"'));break;case"fn":typeof a.fn!="function"&&console.error(da(il,a.name,'"fn"','"function"','"'+String(a.fn)+'"'));break;case"effect":a.effect!=null&&typeof a.effect!="function"&&console.error(da(il,a.name,'"effect"','"function"','"'+String(a.fn)+'"'));break;case"requires":a.requires!=null&&!Array.isArray(a.requires)&&console.error(da(il,a.name,'"requires"','"array"','"'+String(a.requires)+'"'));break;case"requiresIfExists":Array.isArray(a.requiresIfExists)||console.error(da(il,a.name,'"requiresIfExists"','"array"','"'+String(a.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+a.name+'" modifier, valid properties are '+Dd.map(function(h){return'"'+h+'"'}).join(", ")+'; but "'+l+'" was provided.')}a.requires&&a.requires.forEach(function(h){u.find(function(c){return c.name===h})==null&&console.error(da(ug,String(a.name),h,h))})})})}function fg(u,a){var l=new Set;return u.filter(function(h){var c=a(h);if(!l.has(c))return l.add(c),!0})}function dg(u){var a=u.reduce(function(l,h){var c=l[h.name];return l[h.name]=c?Object.assign({},c,h,{options:Object.assign({},c.options,h.options),data:Object.assign({},c.data,h.data)}):h,l},{});return Object.keys(a).map(function(l){return a[l]})}var $d="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",hg="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Nd={placement:"bottom",modifiers:[],strategy:"absolute"};function Rd(){for(var u=arguments.length,a=new Array(u),l=0;l<u;l++)a[l]=arguments[l];return!a.some(function(h){return!(h&&typeof h.getBoundingClientRect=="function")})}function pg(u){u===void 0&&(u={});var a=u,l=a.defaultModifiers,h=l===void 0?[]:l,c=a.defaultOptions,v=c===void 0?Nd:c;return function(A,T,k){k===void 0&&(k=v);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nd,v),modifiersData:{},elements:{reference:A,popper:T},attributes:{},styles:{}},H=[],U=!1,Z={state:I,setOptions:function(Se){var Oe=typeof Se=="function"?Se(I.options):Se;ge(),I.options=Object.assign({},v,I.options,Oe),I.scrollParents={reference:fl(A)?Tu(A):A.contextElement?Tu(A.contextElement):[],popper:Tu(T)};var he=lg(dg([].concat(h,I.options.modifiers)));if(I.orderedModifiers=he.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var ce=fg([].concat(he,I.options.modifiers),function(ye){var Xe=ye.name;return Xe});if(cg(ce),pi(I.options.placement)===Pc){var Me=I.orderedModifiers.find(function(ye){var Xe=ye.name;return Xe==="flip"});Me||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var Te=gi(T),Ae=Te.marginTop,qe=Te.marginRight,je=Te.marginBottom,ve=Te.marginLeft;[Ae,qe,je,ve].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 re(),Z.update()},forceUpdate:function(){if(!U){var Se=I.elements,Oe=Se.reference,he=Se.popper;if(!Rd(Oe,he)){({}).NODE_ENV!=="production"&&console.error($d);return}I.rects={reference:og(Oe,Hu(he),I.options.strategy==="fixed"),popper:bf(he)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(ye){return I.modifiersData[ye.name]=Object.assign({},ye.data)});for(var ce=0,Me=0;Me<I.orderedModifiers.length;Me++){if({}.NODE_ENV!=="production"&&(ce+=1,ce>100)){console.error(hg);break}if(I.reset===!0){I.reset=!1,Me=-1;continue}var Te=I.orderedModifiers[Me],Ae=Te.fn,qe=Te.options,je=qe===void 0?{}:qe,ve=Te.name;typeof Ae=="function"&&(I=Ae({state:I,options:je,name:ve,instance:Z})||I)}}},update:sg(function(){return new Promise(function(pe){Z.forceUpdate(),pe(I)})}),destroy:function(){ge(),U=!0}};if(!Rd(A,T))return{}.NODE_ENV!=="production"&&console.error($d),Z;Z.setOptions(k).then(function(pe){!U&&k.onFirstUpdate&&k.onFirstUpdate(pe)});function re(){I.orderedModifiers.forEach(function(pe){var Se=pe.name,Oe=pe.options,he=Oe===void 0?{}:Oe,ce=pe.effect;if(typeof ce=="function"){var Me=ce({state:I,name:Se,instance:Z,options:he}),Te=function(){};H.push(Me||Te)}})}function ge(){H.forEach(function(pe){return pe()}),H=[]}return Z}}var gg=[I3,Q3,E3,w3,Y3,V3,tg,k3,q3],vg=pg({defaultModifiers:gg}),bg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,Fr=(u,a,l,h)=>{for(var c=h>1?void 0:h?mg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&bg(a,l,c),c};let yg=0;const xf=Ee("popover"),wh=Ee("pure-popover"),xh=["click","hover","focus"],[wc,of,ll]=xh,zf=["dialog","tooltip","menu"],[Cg]=zf;class wg extends CustomEvent{constructor(a){super(`${xf}-${a}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends We{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=Cg,this.disabled=!1,this.popoverId=`popover-${++yg}`,this.delayTimeout=0}disconnectedCallback(){var u;super.disconnectedCallback(),(u=this.popperInstance)==null||u.destroy()}updatePosition(){var u;(u=this.popperInstance)==null||u.update()}async updated(u){super.updated(u),this.popperInstance=this.popperInstance||vg(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 a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector("slot");return u==null?void 0:u.assignedElements({flatten:!0})[0]}get contentElement(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector("slot[name=content]");return u==null?void 0:u.assignedNodes({flatten:!0})[0]}get popoverElement(){var u;return(u=this.shadowRoot)==null?void 0:u.querySelector(".popover-container")}emit(u){this.dispatchEvent(new wg(u))}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 J`
|
|
124
128
|
<slot></slot>
|
|
125
129
|
|
|
126
130
|
<brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
|
|
@@ -139,9 +143,9 @@
|
|
|
139
143
|
.popover-container {
|
|
140
144
|
z-index: var(--brz-z-index-dialog);
|
|
141
145
|
}
|
|
142
|
-
`;Fr([
|
|
146
|
+
`;Fr([W({type:Number})],exports.PurePopover.prototype,"distance",2);Fr([W({type:Number})],exports.PurePopover.prototype,"skidding",2);Fr([W({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Fr([W({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Fr([W({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Fr([W({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Fr([W({type:String})],exports.PurePopover.prototype,"placement",2);Fr([W({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Fr([W({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Fr([lt()],exports.PurePopover.prototype,"popoverId",2);Fr([lt()],exports.PurePopover.prototype,"popperInstance",2);Fr([lt()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Fr([Q(wh)],exports.PurePopover);const xc=["blur","mouseenter","mouseleave","keydown",wc,ll],[Y1,xg,zg,Lg]=xc;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[wc]:this.handleClick,[ll]:this.handleFocus,[Y1]:this.handleBlur,[xg]:this.handleMouseEnter,[zg]:this.handleMouseLeave,[Lg]: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(){xc.forEach(u=>this.addEventListener(u,this.listenableEventHandlers[u],{capture:[ll,Y1].includes(u)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){xc.forEach(u=>this.removeEventListener(u,this.listenableEventHandlers[u],{capture:[ll,Y1].includes(u)})),document.removeEventListener("click",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(u){return this.triggers.includes(u)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(u){!this.isOpen||this.contains(u.target)||this.hasPointer||await this.close()}async handleClick(u){var a;if(!(this.isOpen&&((a=this.contentElement)==null?void 0:a.contains(u.target)))){if(!this.hasTrigger(wc))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(ll)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(ll)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(of)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(of)||this.hasFocus)&&await this.close()}async handleKeyDown(u){u.stopPropagation(),["Escape","Esc"].includes(u.key)&&await this.close()}};Fr([W({type:String})],exports.Popover.prototype,"trigger",2);Fr([lt()],exports.Popover.prototype,"hasFocus",2);Fr([lt()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Fr([Q(xf)],exports.Popover);var _g=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,Mo=(u,a,l,h)=>{for(var c=h>1?void 0:h?Sg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&_g(a,l,c),c};const zh=Ee("tooltip"),[,Mg]=zf;exports.Tooltip=class extends We{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 J`
|
|
143
147
|
<brz-popover
|
|
144
|
-
.popoverRole=${
|
|
148
|
+
.popoverRole=${Mg}
|
|
145
149
|
.distance=${8}
|
|
146
150
|
.delayOnClose=${this.delayOnClose}
|
|
147
151
|
.delayOnOpen=${this.delayOnOpen}
|
|
@@ -173,7 +177,7 @@
|
|
|
173
177
|
background-color: var(--brz-color-white);
|
|
174
178
|
color: var(--brz-color-text);
|
|
175
179
|
}
|
|
176
|
-
`;
|
|
180
|
+
`;Mo([W({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Mo([W({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Mo([W({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);Mo([W({type:String})],exports.Tooltip.prototype,"placement",2);Mo([W({type:String})],exports.Tooltip.prototype,"trigger",2);Mo([W({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Mo([W({type:String})],exports.Tooltip.prototype,"content",2);Mo([W({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Mo([Q(zh)],exports.Tooltip);var kg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,Ki=(u,a,l,h)=>{for(var c=h>1?void 0:h?Og(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&kg(a,l,c),c};const Lh=Ee("avatar"),_h=Ee("avatar-group");var af=(u=>(u[u.tiny=0]="tiny",u[u.small=1]="small",u[u.medium=2]="medium",u[u.large=3]="large",u))(af||{});exports.Avatar=class extends We{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:u}){const a=u==null?void 0:u.assignedElements({flatten:!0});this.slottedElementsCount=a.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const a=af[this.size]<2?1:2;return this.label.split(" ").slice(0,a).map(l=>l.charAt(0)).join("").toUpperCase()}get iconTemplate(){const u=af[this.size],a=()=>{switch(u){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return J`
|
|
177
181
|
<span class="icon" aria-label=${this.label}>
|
|
178
182
|
<brz-icon size=${a()} icon=${$t(this.icon)}></brz-icon>
|
|
179
183
|
</span>
|
|
@@ -187,7 +191,7 @@
|
|
|
187
191
|
@error=${()=>{console.warn(`An invalid URL or missing resource was provided for the avatar of "${this.label}": ${this.imageSrc}`),this.removeAttribute("image-src")}}
|
|
188
192
|
/>`}get slotTemplate(){return J`
|
|
189
193
|
<div
|
|
190
|
-
class=${
|
|
194
|
+
class=${pa({overflow:!0,hidden:!0})}
|
|
191
195
|
>
|
|
192
196
|
<slot @slotchange=${this.handleSlotChange} />
|
|
193
197
|
</div>
|
|
@@ -234,7 +238,7 @@
|
|
|
234
238
|
width: var(--brz-avatar-diameter);
|
|
235
239
|
}
|
|
236
240
|
|
|
237
|
-
${
|
|
241
|
+
${_s(".container",me`
|
|
238
242
|
z-index: 1;
|
|
239
243
|
`)}
|
|
240
244
|
|
|
@@ -328,7 +332,7 @@
|
|
|
328
332
|
:host .hidden {
|
|
329
333
|
display: none;
|
|
330
334
|
}
|
|
331
|
-
`;Ki([
|
|
335
|
+
`;Ki([W({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);Ki([W({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);Ki([W({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);Ki([W({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);Ki([W({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);Ki([W({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);Ki([W({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);Ki([lt()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=Ki([Q(Lh)],exports.Avatar);exports.AvatarGroup=class extends We{render(){return J` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=me`
|
|
332
336
|
:host .container {
|
|
333
337
|
align-items: center;
|
|
334
338
|
display: inline-flex;
|
|
@@ -339,7 +343,7 @@
|
|
|
339
343
|
::slotted(sp-avatar:not(:first-child)) {
|
|
340
344
|
margin-left: -0.6em;
|
|
341
345
|
}
|
|
342
|
-
`;exports.AvatarGroup=Ki([Q(
|
|
346
|
+
`;exports.AvatarGroup=Ki([Q(_h)],exports.AvatarGroup);var Tg=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,Ac=(u,a,l,h)=>{for(var c=h>1?void 0:h?Pg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Tg(a,l,c),c};const Sh=Ee("row"),Mh=Ee("column");exports.Row=class extends We{constructor(){super(...arguments),this.verticalAlign="top"}render(){return J`<slot></slot>`}};exports.Row.styles=me`
|
|
343
347
|
:host {
|
|
344
348
|
display: flex;
|
|
345
349
|
flex-direction: row;
|
|
@@ -359,7 +363,7 @@
|
|
|
359
363
|
:host([vertical-align='bottom']) {
|
|
360
364
|
align-items: flex-end;
|
|
361
365
|
}
|
|
362
|
-
`;
|
|
366
|
+
`;Ac([W({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=Ac([Q(Sh)],exports.Row);exports.Column=class extends We{constructor(){super(...arguments),this.align="left"}render(){return J`<slot></slot>`}};exports.Column.styles=me`
|
|
363
367
|
:host {
|
|
364
368
|
display: flex;
|
|
365
369
|
flex-direction: column;
|
|
@@ -379,7 +383,7 @@
|
|
|
379
383
|
:host([align='right']) {
|
|
380
384
|
align-items: flex-end;
|
|
381
385
|
}
|
|
382
|
-
`;
|
|
386
|
+
`;Ac([W({type:String})],exports.Column.prototype,"align",2);exports.Column=Ac([Q(Mh)],exports.Column);var Eg=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,kh=(u,a,l,h)=>{for(var c=h>1?void 0:h?Ag(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Eg(a,l,c),c};const Oh=Ee("loading-spinner");exports.LoadingSpinner=class extends We{constructor(){super(...arguments),this.size=24}render(){return J`
|
|
383
387
|
<div class="loading-spinner">
|
|
384
388
|
<svg
|
|
385
389
|
class="loading-spinner--circular"
|
|
@@ -434,13 +438,13 @@
|
|
|
434
438
|
stroke-dashoffset: -124px;
|
|
435
439
|
}
|
|
436
440
|
}
|
|
437
|
-
`;
|
|
438
|
-
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}emit(u){this.dispatchEvent(new
|
|
441
|
+
`;kh([W({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=kh([Q(Oh)],exports.LoadingSpinner);var Ig=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Nn=(u,a,l,h)=>{for(var c=h>1?void 0:h?Dg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Ig(a,l,c),c};const Lf=Ee("button"),Th=Ee("button-group");class $g extends CustomEvent{constructor(a){super(`${Lf}-${a}`,{bubbles:!0,composed:!0})}}const Ng=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends We{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(a=>{var l;return!!((l=a.textContent)!=null&&l.replace(`
|
|
442
|
+
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(u){this.buttonElement.focus(u)}emit(u){this.dispatchEvent(new $g(u))}render(){return J`
|
|
439
443
|
<button
|
|
440
444
|
@click=${()=>{this.disabled||this.emit("click")}}
|
|
441
445
|
type="button"
|
|
442
446
|
?disabled=${this.disabled}
|
|
443
|
-
class=${
|
|
447
|
+
class=${pa({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})}
|
|
444
448
|
>
|
|
445
449
|
<div class="contents">
|
|
446
450
|
${this.leadingIcon?J`<brz-icon
|
|
@@ -515,7 +519,7 @@
|
|
|
515
519
|
vertical-align: top;
|
|
516
520
|
}
|
|
517
521
|
|
|
518
|
-
${
|
|
522
|
+
${_s("button")}
|
|
519
523
|
|
|
520
524
|
:host([leading-icon][icon-only]) button,
|
|
521
525
|
:host([trailing-icon][icon-only]) button {
|
|
@@ -631,7 +635,7 @@
|
|
|
631
635
|
brz-icon {
|
|
632
636
|
padding: var(--brz-spacing-px);
|
|
633
637
|
}
|
|
634
|
-
`;
|
|
638
|
+
`;Nn([W({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Nn([W({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Nn([W({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Nn([W({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Nn([W({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Nn([W({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Nn([W({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Nn([W({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Nn([Ls("button")],exports.Button.prototype,"buttonElement",2);Nn([uh()],exports.Button.prototype,"defaultSlot",2);exports.Button=Nn([Q(Lf)],exports.Button);exports.ButtonGroup=class extends We{constructor(){super(...arguments),this.compact=!1}render(){return J`<brz-row class=${pa({compact:this.compact})}
|
|
635
639
|
><slot></slot
|
|
636
640
|
></brz-row>`}};exports.ButtonGroup.styles=me`
|
|
637
641
|
brz-row {
|
|
@@ -650,54 +654,184 @@
|
|
|
650
654
|
--brz-button-r-radius: 0;
|
|
651
655
|
--brz-border-r-width: 0;
|
|
652
656
|
}
|
|
653
|
-
`;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
position: relative;
|
|
661
|
-
|
|
657
|
+
`;Nn([W({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Nn([Q(Th)],exports.ButtonGroup);var gs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},$u={exports:{}};/**
|
|
658
|
+
* @license
|
|
659
|
+
* Lodash <https://lodash.com/>
|
|
660
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
661
|
+
* Released under MIT license <https://lodash.com/license>
|
|
662
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
663
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
664
|
+
*/(function(u,a){(function(){var l,h="4.17.21",c=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",k=500,I="__lodash_placeholder__",H=1,U=2,Z=4,re=1,ge=2,pe=1,Se=2,Oe=4,he=8,ce=16,Me=32,Te=64,Ae=128,qe=256,je=512,ve=30,ye="...",Xe=800,V=16,E=1,S=2,ee=3,be=1/0,tt=9007199254740991,zt=17976931348623157e292,jt=0/0,Et=4294967295,jr=Et-1,Ut=Et>>>1,At=[["ary",Ae],["bind",pe],["bindKey",Se],["curry",he],["curryRight",ce],["flip",je],["partial",Me],["partialRight",Te],["rearg",qe]],ot="[object Arguments]",Le="[object Array]",He="[object AsyncFunction]",Fe="[object Boolean]",rt="[object Date]",nt="[object DOMException]",Be="[object Error]",Rt="[object Function]",Ir="[object GeneratorFunction]",Yt="[object Map]",Ke="[object Number]",ht="[object Null]",wt="[object Object]",Lr="[object Promise]",Ur="[object Proxy]",er="[object RegExp]",Je="[object Set]",F="[object String]",ae="[object Symbol]",K="[object Undefined]",Ye="[object WeakMap]",tr="[object WeakSet]",pr="[object ArrayBuffer]",xn="[object DataView]",Dr="[object Float32Array]",Nt="[object Float64Array]",ei="[object Int8Array]",_r="[object Int16Array]",zn="[object Int32Array]",Ne="[object Uint8Array]",mi="[object Uint8ClampedArray]",gr="[object Uint16Array]",Ue="[object Uint32Array]",Gt=/\b__p \+= '';/g,Eo=/\b(__p \+=) '' \+/g,sr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ln=/&(?:amp|lt|gt|quot|#39);/g,ur=/[&<>"']/g,Ao=RegExp(Ln.source),Yr=RegExp(ur.source),Qi=/<%-([\s\S]+?)%>/g,yi=/<%([\s\S]+?)%>/g,Ca=/<%=([\s\S]+?)%>/g,wa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$r=/^\w*$/,gl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ji=/[\\^$.*+?()[\]{}|]/g,Rn=RegExp(Ji.source),eo=/^\s+/,vl=/\s/,bl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xa=/\{\n\/\* \[wrapped with (.+)\] \*/,Ci=/,? & /,un=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xr=/[()=,{}\[\]\/\s]/,ml=/\\(\\)?/g,ti=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,to=/\w*$/,Io=/^[-+]0x[0-9a-f]+$/i,_n=/^0b[01]+$/i,Sn=/^\[object .+?Constructor\]$/,Qr=/^0o[0-7]+$/i,za=/^(?:0|[1-9]\d*)$/,La=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,It=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Jr="\\ud800-\\udfff",_a="\\u0300-\\u036f",Zr="\\ufe20-\\ufe2f",bt="\\u20d0-\\u20ff",Mn=_a+Zr+bt,wi="\\u2700-\\u27bf",Do="a-z\\xdf-\\xf6\\xf8-\\xff",oe="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",O="\\u2000-\\u206f",Y=" \\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",le="A-Z\\xc0-\\xd6\\xd8-\\xde",Ze="\\ufe0e\\ufe0f",ft=oe+w+O+Y,Ce="['\u2019]",vr="["+Jr+"]",Vr="["+ft+"]",ri="["+Mn+"]",kn="\\d+",Gu="["+wi+"]",Os="["+Do+"]",$o="[^"+Jr+ft+kn+wi+Do+le+"]",Sa="\\ud83c[\\udffb-\\udfff]",qu="(?:"+ri+"|"+Sa+")",yl="[^"+Jr+"]",Cl="(?:\\ud83c[\\udde6-\\uddff]){2}",wl="[\\ud800-\\udbff][\\udc00-\\udfff]",ro="["+le+"]",Ts="\\u200d",Ku="(?:"+Os+"|"+$o+")",Zc="(?:"+ro+"|"+$o+")",Ps="(?:"+Ce+"(?:d|ll|m|re|s|t|ve))?",Hn="(?:"+Ce+"(?:D|LL|M|RE|S|T|VE))?",ju=qu+"?",Yu="["+Ze+"]?",xl="(?:"+Ts+"(?:"+[yl,Cl,wl].join("|")+")"+Yu+ju+")*",Ma="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xu=Yu+ju+xl,Gc="(?:"+[Gu,Cl,wl].join("|")+")"+Xu,qc="(?:"+[yl+ri+"?",ri,Cl,wl,vr].join("|")+")",Es=RegExp(Ce,"g"),Qu=RegExp(ri,"g"),As=RegExp(Sa+"(?="+Sa+")|"+qc+Xu,"g"),Ju=RegExp([ro+"?"+Os+"+"+Ps+"(?="+[Vr,ro,"$"].join("|")+")",Zc+"+"+Hn+"(?="+[Vr,ro+Ku,"$"].join("|")+")",ro+"?"+Ku+"+"+Ps,ro+"+"+Hn,Vc,Ma,kn,Gc].join("|"),"g"),e0=RegExp("["+Ts+Jr+Mn+Ze+"]"),zl=/[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"],Is=-1,Dt={};Dt[Dr]=Dt[Nt]=Dt[ei]=Dt[_r]=Dt[zn]=Dt[Ne]=Dt[mi]=Dt[gr]=Dt[Ue]=!0,Dt[ot]=Dt[Le]=Dt[pr]=Dt[Fe]=Dt[xn]=Dt[rt]=Dt[Be]=Dt[Rt]=Dt[Yt]=Dt[Ke]=Dt[wt]=Dt[er]=Dt[Je]=Dt[F]=Dt[Ye]=!1;var Ot={};Ot[ot]=Ot[Le]=Ot[pr]=Ot[xn]=Ot[Fe]=Ot[rt]=Ot[Dr]=Ot[Nt]=Ot[ei]=Ot[_r]=Ot[zn]=Ot[Yt]=Ot[Ke]=Ot[wt]=Ot[er]=Ot[Je]=Ot[F]=Ot[ae]=Ot[Ne]=Ot[mi]=Ot[gr]=Ot[Ue]=!0,Ot[Be]=Ot[Rt]=Ot[Ye]=!1;var _l={\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"},Kc={"&":"&","<":"<",">":">",'"':""","'":"'"},t0={"&":"&","<":"<",">":">",""":'"',"'":"'"},Bn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jc=parseFloat,Yc=parseInt,Sl=typeof gs=="object"&&gs&&gs.Object===Object&&gs,r0=typeof self=="object"&&self&&self.Object===Object&&self,Ht=Sl||r0||Function("return this")(),ka=a&&!a.nodeType&&a,Nr=ka&&!0&&u&&!u.nodeType&&u,Oa=Nr&&Nr.exports===ka,Ta=Oa&&Sl.process,br=function(){try{var R=Nr&&Nr.require&&Nr.require("util").types;return R||Ta&&Ta.binding&&Ta.binding("util")}catch{}}(),n0=br&&br.isArrayBuffer,i0=br&&br.isDate,o0=br&&br.isMap,a0=br&&br.isRegExp,Ds=br&&br.isSet,$s=br&&br.isTypedArray;function en(R,X,G){switch(G.length){case 0:return R.call(X);case 1:return R.call(X,G[0]);case 2:return R.call(X,G[0],G[1]);case 3:return R.call(X,G[0],G[1],G[2])}return R.apply(X,G)}function Xc(R,X,G,_e){for(var Qe=-1,Ct=R==null?0:R.length;++Qe<Ct;){var nr=R[Qe];X(_e,nr,G(nr),R)}return _e}function cn(R,X){for(var G=-1,_e=R==null?0:R.length;++G<_e&&X(R[G],G,R)!==!1;);return R}function Qc(R,X){for(var G=R==null?0:R.length;G--&&X(R[G],G,R)!==!1;);return R}function Ns(R,X){for(var G=-1,_e=R==null?0:R.length;++G<_e;)if(!X(R[G],G,R))return!1;return!0}function xi(R,X){for(var G=-1,_e=R==null?0:R.length,Qe=0,Ct=[];++G<_e;){var nr=R[G];X(nr,G,R)&&(Ct[Qe++]=nr)}return Ct}function Pa(R,X){var G=R==null?0:R.length;return!!G&&io(R,X,0)>-1}function No(R,X,G){for(var _e=-1,Qe=R==null?0:R.length;++_e<Qe;)if(G(X,R[_e]))return!0;return!1}function Lt(R,X){for(var G=-1,_e=R==null?0:R.length,Qe=Array(_e);++G<_e;)Qe[G]=X(R[G],G,R);return Qe}function zi(R,X){for(var G=-1,_e=X.length,Qe=R.length;++G<_e;)R[Qe+G]=X[G];return R}function Rs(R,X,G,_e){var Qe=-1,Ct=R==null?0:R.length;for(_e&&Ct&&(G=R[++Qe]);++Qe<Ct;)G=X(G,R[Qe],Qe,R);return G}function Jc(R,X,G,_e){var Qe=R==null?0:R.length;for(_e&&Qe&&(G=R[--Qe]);Qe--;)G=X(G,R[Qe],Qe,R);return G}function no(R,X){for(var G=-1,_e=R==null?0:R.length;++G<_e;)if(X(R[G],G,R))return!0;return!1}var rr=Bs("length");function e1(R){return R.split("")}function l0(R){return R.match(un)||[]}function Ro(R,X,G){var _e;return G(R,function(Qe,Ct,nr){if(X(Qe,Ct,nr))return _e=Ct,!1}),_e}function Ml(R,X,G,_e){for(var Qe=R.length,Ct=G+(_e?1:-1);_e?Ct--:++Ct<Qe;)if(X(R[Ct],Ct,R))return Ct;return-1}function io(R,X,G){return X===X?p0(R,X,G):Ml(R,kl,G)}function t1(R,X,G,_e){for(var Qe=G-1,Ct=R.length;++Qe<Ct;)if(_e(R[Qe],X))return Qe;return-1}function kl(R){return R!==R}function Hs(R,X){var G=R==null?0:R.length;return G?Us(R,X)/G:jt}function Bs(R){return function(X){return X==null?l:X[R]}}function Fs(R){return function(X){return R==null?l:R[X]}}function Ws(R,X,G,_e,Qe){return Qe(R,function(Ct,nr,gt){G=_e?(_e=!1,Ct):X(G,Ct,nr,gt)}),G}function s0(R,X){var G=R.length;for(R.sort(X);G--;)R[G]=R[G].value;return R}function Us(R,X){for(var G,_e=-1,Qe=R.length;++_e<Qe;){var Ct=X(R[_e]);Ct!==l&&(G=G===l?Ct:G+Ct)}return G}function oo(R,X){for(var G=-1,_e=Array(R);++G<R;)_e[G]=X(G);return _e}function ni(R,X){return Lt(X,function(G){return[G,R[G]]})}function Ea(R){return R&&R.slice(0,Al(R)+1).replace(eo,"")}function Rr(R){return function(X){return R(X)}}function Ol(R,X){return Lt(X,function(G){return R[G]})}function Gr(R,X){return R.has(X)}function Li(R,X){for(var G=-1,_e=R.length;++G<_e&&io(X,R[G],0)>-1;);return G}function Tl(R,X){for(var G=R.length;G--&&io(X,R[G],0)>-1;);return G}function r1(R,X){for(var G=R.length,_e=0;G--;)R[G]===X&&++_e;return _e}var u0=Fs(_l),n1=Fs(Kc);function c0(R){return"\\"+Bn[R]}function Zs(R,X){return R==null?l:R[X]}function On(R){return e0.test(R)}function Fn(R){return zl.test(R)}function f0(R){for(var X,G=[];!(X=R.next()).done;)G.push(X.value);return G}function Pl(R){var X=-1,G=Array(R.size);return R.forEach(function(_e,Qe){G[++X]=[Qe,_e]}),G}function d0(R,X){return function(G){return R(X(G))}}function _i(R,X){for(var G=-1,_e=R.length,Qe=0,Ct=[];++G<_e;){var nr=R[G];(nr===X||nr===I)&&(R[G]=I,Ct[Qe++]=G)}return Ct}function El(R){var X=-1,G=Array(R.size);return R.forEach(function(_e){G[++X]=_e}),G}function h0(R){var X=-1,G=Array(R.size);return R.forEach(function(_e){G[++X]=[_e,_e]}),G}function p0(R,X,G){for(var _e=G-1,Qe=R.length;++_e<Qe;)if(R[_e]===X)return _e;return-1}function Aa(R,X,G){for(var _e=G+1;_e--;)if(R[_e]===X)return _e;return _e}function ao(R){return On(R)?g0(R):rr(R)}function fn(R){return On(R)?Dl(R):e1(R)}function Al(R){for(var X=R.length;X--&&vl.test(R.charAt(X)););return X}var Il=Fs(t0);function g0(R){for(var X=As.lastIndex=0;As.test(R);)++X;return X}function Dl(R){return R.match(As)||[]}function Tn(R){return R.match(Ju)||[]}var v0=function R(X){X=X==null?Ht:Si.defaults(Ht.Object(),X,Si.pick(Ht,Ll));var G=X.Array,_e=X.Date,Qe=X.Error,Ct=X.Function,nr=X.Math,gt=X.Object,Mi=X.RegExp,Ho=X.String,qr=X.TypeError,Bo=G.prototype,b0=Ct.prototype,ki=gt.prototype,Wn=X["__core-js_shared__"],Un=b0.toString,et=ki.hasOwnProperty,Oi=0,ii=function(){var r=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),lo=ki.toString,i1=Un.call(gt),m0=Ht._,Ia=Mi("^"+Un.call(et).replace(Ji,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Da=Oa?X.Buffer:l,oi=X.Symbol,so=X.Uint8Array,y0=Da?Da.allocUnsafe:l,Fo=d0(gt.getPrototypeOf,gt),Vs=gt.create,$l=ki.propertyIsEnumerable,Wo=Bo.splice,uo=oi?oi.isConcatSpreadable:l,Ti=oi?oi.iterator:l,Pi=oi?oi.toStringTag:l,co=function(){try{var r=Co(gt,"defineProperty");return r({},"",{}),r}catch{}}(),o1=X.clearTimeout!==Ht.clearTimeout&&X.clearTimeout,a1=_e&&_e.now!==Ht.Date.now&&_e.now,l1=X.setTimeout!==Ht.setTimeout&&X.setTimeout,Uo=nr.ceil,Zo=nr.floor,Ei=gt.getOwnPropertySymbols,$a=Da?Da.isBuffer:l,C0=X.isFinite,Nl=Bo.join,w0=d0(gt.keys,gt),Bt=nr.max,mr=nr.min,fo=_e.now,Na=X.parseInt,Ai=nr.random,Ra=Bo.reverse,Ii=Co(X,"DataView"),Vo=Co(X,"Map"),Rl=Co(X,"Promise"),ho=Co(X,"Set"),Ha=Co(X,"WeakMap"),Pn=Co(gt,"create"),Zn=Ha&&new Ha,Go={},s1=Tt(Ii),u1=Tt(Vo),c1=Tt(Rl),f1=Tt(ho),d1=Tt(Ha),yr=oi?oi.prototype:l,Ft=yr?yr.valueOf:l,Cr=yr?yr.toString:l;function z(r){if(Qt(r)&&!at(r)&&!(r instanceof dt)){if(r instanceof Hr)return r;if(et.call(r,"__wrapped__"))return Pr(r)}return new Hr(r)}var Vn=function(){function r(){}return function(o){if(!Kt(o))return{};if(Vs)return Vs(o);r.prototype=o;var f=new r;return r.prototype=l,f}}();function Hl(){}function Hr(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=l}z.templateSettings={escape:Qi,evaluate:yi,interpolate:Ca,variable:"",imports:{_:z}},z.prototype=Hl.prototype,z.prototype.constructor=z,Hr.prototype=Vn(Hl.prototype),Hr.prototype.constructor=Hr;function dt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Et,this.__views__=[]}function h1(){var r=new dt(this.__wrapped__);return r.__actions__=dr(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=dr(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=dr(this.__views__),r}function p1(){if(this.__filtered__){var r=new dt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Gs(){var r=this.__wrapped__.value(),o=this.__dir__,f=at(r),g=o<0,x=f?r.length:0,L=us(0,x,this.__views__),P=L.start,D=L.end,B=D-P,ne=g?D:P-1,ie=this.__iteratees__,se=ie.length,ze=0,$e=mr(B,this.__takeCount__);if(!f||!g&&x==B&&$e==B)return W0(r,this.__actions__);var Ve=[];e:for(;B--&&ze<$e;){ne+=o;for(var ct=-1,Ge=r[ne];++ct<se;){var pt=ie[ct],vt=pt.iteratee,In=pt.type,an=vt(Ge);if(In==S)Ge=an;else if(!an){if(In==E)continue e;break e}}Ve[ze++]=Ge}return Ve}dt.prototype=Vn(Hl.prototype),dt.prototype.constructor=dt;function Di(r){var o=-1,f=r==null?0:r.length;for(this.clear();++o<f;){var g=r[o];this.set(g[0],g[1])}}function qs(){this.__data__=Pn?Pn(null):{},this.size=0}function g1(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function Ks(r){var o=this.__data__;if(Pn){var f=o[r];return f===T?l:f}return et.call(o,r)?o[r]:l}function js(r){var o=this.__data__;return Pn?o[r]!==l:et.call(o,r)}function x0(r,o){var f=this.__data__;return this.size+=this.has(r)?0:1,f[r]=Pn&&o===l?T:o,this}Di.prototype.clear=qs,Di.prototype.delete=g1,Di.prototype.get=Ks,Di.prototype.has=js,Di.prototype.set=x0;function Gn(r){var o=-1,f=r==null?0:r.length;for(this.clear();++o<f;){var g=r[o];this.set(g[0],g[1])}}function Ys(){this.__data__=[],this.size=0}function z0(r){var o=this.__data__,f=po(o,r);if(f<0)return!1;var g=o.length-1;return f==g?o.pop():Wo.call(o,f,1),--this.size,!0}function Ba(r){var o=this.__data__,f=po(o,r);return f<0?l:o[f][1]}function v1(r){return po(this.__data__,r)>-1}function Bl(r,o){var f=this.__data__,g=po(f,r);return g<0?(++this.size,f.push([r,o])):f[g][1]=o,this}Gn.prototype.clear=Ys,Gn.prototype.delete=z0,Gn.prototype.get=Ba,Gn.prototype.has=v1,Gn.prototype.set=Bl;function qt(r){var o=-1,f=r==null?0:r.length;for(this.clear();++o<f;){var g=r[o];this.set(g[0],g[1])}}function L0(){this.size=0,this.__data__={hash:new Di,map:new(Vo||Gn),string:new Di}}function b1(r){var o=ss(this,r).delete(r);return this.size-=o?1:0,o}function _0(r){return ss(this,r).get(r)}function tn(r){return ss(this,r).has(r)}function mt(r,o){var f=ss(this,r),g=f.size;return f.set(r,o),this.size+=f.size==g?0:1,this}qt.prototype.clear=L0,qt.prototype.delete=b1,qt.prototype.get=_0,qt.prototype.has=tn,qt.prototype.set=mt;function wr(r){var o=-1,f=r==null?0:r.length;for(this.__data__=new qt;++o<f;)this.add(r[o])}function $i(r){return this.__data__.set(r,T),this}function Ni(r){return this.__data__.has(r)}wr.prototype.add=wr.prototype.push=$i,wr.prototype.has=Ni;function dn(r){var o=this.__data__=new Gn(r);this.size=o.size}function Xs(){this.__data__=new Gn,this.size=0}function S0(r){var o=this.__data__,f=o.delete(r);return this.size=o.size,f}function m1(r){return this.__data__.get(r)}function Qs(r){return this.__data__.has(r)}function Fa(r,o){var f=this.__data__;if(f instanceof Gn){var g=f.__data__;if(!Vo||g.length<c-1)return g.push([r,o]),this.size=++f.size,this;f=this.__data__=new qt(g)}return f.set(r,o),this.size=f.size,this}dn.prototype.clear=Xs,dn.prototype.delete=S0,dn.prototype.get=m1,dn.prototype.has=Qs,dn.prototype.set=Fa;function Js(r,o){var f=at(r),g=!f&&rl(r),x=!f&&!g&&fa(r),L=!f&&!g&&!x&&fs(r),P=f||g||x||L,D=P?oo(r.length,Ho):[],B=D.length;for(var ne in r)(o||et.call(r,ne))&&!(P&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||L&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||b(ne,B)))&&D.push(ne);return D}function Fl(r){var o=r.length;return o?r[Ql(0,o-1)]:l}function Ri(r,o){return hr(dr(r),go(o,0,r.length))}function M0(r){return hr(dr(r))}function Wl(r,o,f){(f!==l&&!fi(r[o],f)||f===l&&!(o in r))&&qn(r,o,f)}function Wa(r,o,f){var g=r[o];(!(et.call(r,o)&&fi(g,f))||f===l&&!(o in r))&&qn(r,o,f)}function po(r,o){for(var f=r.length;f--;)if(fi(r[f][0],o))return f;return-1}function eu(r,o,f,g){return rn(r,function(x,L,P){o(g,x,f(x),P)}),g}function tu(r,o){return r&&Kr(o,Ar(o),r)}function y1(r,o){return r&&Kr(o,bn(o),r)}function qn(r,o,f){o=="__proto__"&&co?co(r,o,{configurable:!0,enumerable:!0,value:f,writable:!0}):r[o]=f}function ru(r,o){for(var f=-1,g=o.length,x=G(g),L=r==null;++f<g;)x[f]=L?l:D1(r,o[f]);return x}function go(r,o,f){return r===r&&(f!==l&&(r=r<=f?r:f),o!==l&&(r=r>=o?r:o)),r}function Br(r,o,f,g,x,L){var P,D=o&H,B=o&U,ne=o&Z;if(f&&(P=x?f(r,g,x,L):f(r)),P!==l)return P;if(!Kt(r))return r;var ie=at(r);if(ie){if(P=i(r),!D)return dr(r,P)}else{var se=kr(r),ze=se==Rt||se==Ir;if(fa(r))return hu(r,D);if(se==wt||se==ot||ze&&!x){if(P=B||ze?{}:n(r),!D)return B?q0(r,y1(P,r)):M1(r,tu(P,r))}else{if(!Ot[se])return x?r:{};P=s(r,se,D)}}L||(L=new dn);var $e=L.get(r);if($e)return $e;L.set(r,P),td(r)?r.forEach(function(Ge){P.add(Br(Ge,o,f,Ge,r,L))}):Jf(r)&&r.forEach(function(Ge,pt){P.set(pt,Br(Ge,o,f,pt,r,L))});var Ve=ne?B?ls:el:B?bn:Ar,ct=ie?l:Ve(r);return cn(ct||r,function(Ge,pt){ct&&(pt=Ge,Ge=r[pt]),Wa(P,pt,Br(Ge,o,f,pt,r,L))}),P}function k0(r){var o=Ar(r);return function(f){return O0(f,r,o)}}function O0(r,o,f){var g=f.length;if(r==null)return!g;for(r=gt(r);g--;){var x=f[g],L=o[x],P=r[x];if(P===l&&!(x in r)||!L(P))return!1}return!0}function T0(r,o,f){if(typeof r!="function")throw new qr(m);return Mt(function(){r.apply(l,f)},o)}function qo(r,o,f,g){var x=-1,L=Pa,P=!0,D=r.length,B=[],ne=o.length;if(!D)return B;f&&(o=Lt(o,Rr(f))),g?(L=No,P=!1):o.length>=c&&(L=Gr,P=!1,o=new wr(o));e:for(;++x<D;){var ie=r[x],se=f==null?ie:f(ie);if(ie=g||ie!==0?ie:0,P&&se===se){for(var ze=ne;ze--;)if(o[ze]===se)continue e;B.push(ie)}else L(o,se,g)||B.push(ie)}return B}var rn=K0(nn),Ul=K0(Gl,!0);function Zl(r,o){var f=!0;return rn(r,function(g,x,L){return f=!!o(g,x,L),f}),f}function Ua(r,o,f){for(var g=-1,x=r.length;++g<x;){var L=r[g],P=o(L);if(P!=null&&(D===l?P===P&&!An(P):f(P,D)))var D=P,B=L}return B}function nu(r,o,f,g){var x=r.length;for(f=ut(f),f<0&&(f=-f>x?0:x+f),g=g===l||g>x?x:ut(g),g<0&&(g+=x),g=f>g?0:nd(g);f<g;)r[f++]=o;return r}function iu(r,o){var f=[];return rn(r,function(g,x,L){o(g,x,L)&&f.push(g)}),f}function xr(r,o,f,g,x){var L=-1,P=r.length;for(f||(f=p),x||(x=[]);++L<P;){var D=r[L];o>0&&f(D)?o>1?xr(D,o-1,f,g,x):zi(x,D):g||(x[x.length]=D)}return x}var Vl=j0(),cr=j0(!0);function nn(r,o){return r&&Vl(r,o,Ar)}function Gl(r,o){return r&&cr(r,o,Ar)}function Za(r,o){return xi(o,function(f){return zo(r[f])})}function Hi(r,o){o=En(o,r);for(var f=0,g=o.length;r!=null&&f<g;)r=r[_t(o[f++])];return f&&f==g?r:l}function vo(r,o,f){var g=o(r);return at(r)?g:zi(g,f(r))}function fr(r){return r==null?r===l?K:ht:Pi&&Pi in gt(r)?Zt(r):xe(r)}function ql(r,o){return r>o}function P0(r,o){return r!=null&&et.call(r,o)}function E0(r,o){return r!=null&&o in gt(r)}function Ko(r,o,f){return r>=mr(o,f)&&r<Bt(o,f)}function Kl(r,o,f){for(var g=f?No:Pa,x=r[0].length,L=r.length,P=L,D=G(L),B=1/0,ne=[];P--;){var ie=r[P];P&&o&&(ie=Lt(ie,Rr(o))),B=mr(ie.length,B),D[P]=!f&&(o||x>=120&&ie.length>=120)?new wr(P&&ie):l}ie=r[0];var se=-1,ze=D[0];e:for(;++se<x&&ne.length<B;){var $e=ie[se],Ve=o?o($e):$e;if($e=f||$e!==0?$e:0,!(ze?Gr(ze,Ve):g(ne,Ve,f))){for(P=L;--P;){var ct=D[P];if(!(ct?Gr(ct,Ve):g(r[P],Ve,f)))continue e}ze&&ze.push(Ve),ne.push($e)}}return ne}function jl(r,o,f,g){return nn(r,function(x,L,P){o(g,f(x),L,P)}),g}function jo(r,o,f){o=En(o,r),r=Pe(r,o);var g=r==null?r:r[_t(jn(o))];return g==null?l:en(g,r,f)}function Yo(r){return Qt(r)&&fr(r)==ot}function C1(r){return Qt(r)&&fr(r)==pr}function Xo(r){return Qt(r)&&fr(r)==rt}function Qo(r,o,f,g,x){return r===o?!0:r==null||o==null||!Qt(r)&&!Qt(o)?r!==r&&o!==o:A0(r,o,f,g,Qo,x)}function A0(r,o,f,g,x,L){var P=at(r),D=at(o),B=P?Le:kr(r),ne=D?Le:kr(o);B=B==ot?wt:B,ne=ne==ot?wt:ne;var ie=B==wt,se=ne==wt,ze=B==ne;if(ze&&fa(r)){if(!fa(o))return!1;P=!0,ie=!1}if(ze&&!ie)return L||(L=new dn),P||fs(r)?yu(r,o,f,g,x,L):rc(r,o,B,f,g,x,L);if(!(f&re)){var $e=ie&&et.call(r,"__wrapped__"),Ve=se&&et.call(o,"__wrapped__");if($e||Ve){var ct=$e?r.value():r,Ge=Ve?o.value():o;return L||(L=new dn),x(ct,Ge,f,g,L)}}return ze?(L||(L=new dn),nc(r,o,f,g,x,L)):!1}function I0(r){return Qt(r)&&kr(r)==Yt}function bo(r,o,f,g){var x=f.length,L=x,P=!g;if(r==null)return!L;for(r=gt(r);x--;){var D=f[x];if(P&&D[2]?D[1]!==r[D[0]]:!(D[0]in r))return!1}for(;++x<L;){D=f[x];var B=D[0],ne=r[B],ie=D[1];if(P&&D[2]){if(ne===l&&!(B in r))return!1}else{var se=new dn;if(g)var ze=g(ne,ie,B,r,o,se);if(!(ze===l?Qo(ie,ne,re|ge,g,se):ze))return!1}}return!0}function Jo(r){if(!Kt(r)||N(r))return!1;var o=zo(r)?Ia:Sn;return o.test(Tt(r))}function Va(r){return Qt(r)&&fr(r)==er}function Ga(r){return Qt(r)&&kr(r)==Je}function D0(r){return Qt(r)&&cc(r.length)&&!!Dt[fr(r)]}function $0(r){return typeof r=="function"?r:r==null?mn:typeof r=="object"?at(r)?ou(r[0],r[1]):N0(r):pd(r)}function Yl(r){if(!q(r))return w0(r);var o=[];for(var f in gt(r))et.call(r,f)&&f!="constructor"&&o.push(f);return o}function Bi(r){if(!Kt(r))return de(r);var o=q(r),f=[];for(var g in r)g=="constructor"&&(o||!et.call(r,g))||f.push(g);return f}function Fi(r,o){return r<o}function ea(r,o){var f=-1,g=vn(r)?G(r.length):[];return rn(r,function(x,L,P){g[++f]=o(x,L,P)}),g}function N0(r){var o=sa(r);return o.length==1&&o[0][2]?ue(o[0][0],o[0][1]):function(f){return f===r||bo(f,r,o)}}function ou(r,o){return C(r)&&te(o)?ue(_t(r),o):function(f){var g=D1(f,r);return g===l&&g===o?$1(f,r):Qo(o,g,re|ge)}}function Xl(r,o,f,g,x){r!==o&&Vl(o,function(L,P){if(x||(x=new dn),Kt(L))w1(r,o,P,f,Xl,g,x);else{var D=g?g(xt(r,P),L,P+"",r,o,x):l;D===l&&(D=L),Wl(r,P,D)}},bn)}function w1(r,o,f,g,x,L,P){var D=xt(r,f),B=xt(o,f),ne=P.get(B);if(ne){Wl(r,f,ne);return}var ie=L?L(D,B,f+"",r,o,P):l,se=ie===l;if(se){var ze=at(B),$e=!ze&&fa(B),Ve=!ze&&!$e&&fs(B);ie=B,ze||$e||Ve?at(D)?ie=D:ar(D)?ie=dr(D):$e?(se=!1,ie=hu(B,!0)):Ve?(se=!1,ie=Z0(B,!0)):ie=[]:xu(B)||rl(B)?(ie=D,rl(D)?ie=id(D):(!Kt(D)||zo(D))&&(ie=n(B))):se=!1}se&&(P.set(B,ie),x(ie,B,g,L,P),P.delete(B)),Wl(r,f,ie)}function R0(r,o){var f=r.length;if(!!f)return o+=o<0?f:0,b(o,f)?r[o]:l}function Sr(r,o,f){o.length?o=Lt(o,function(L){return at(L)?function(P){return Hi(P,L.length===1?L[0]:L)}:L}):o=[mn];var g=-1;o=Lt(o,Rr(Re()));var x=ea(r,function(L,P,D){var B=Lt(o,function(ne){return ne(L)});return{criteria:B,index:++g,value:L}});return s0(x,function(L,P){return V0(L,P,f)})}function H0(r,o){return B0(r,o,function(f,g){return $1(r,g)})}function B0(r,o,f){for(var g=-1,x=o.length,L={};++g<x;){var P=o[g],D=Hi(r,P);f(D,P)&&ai(L,En(P,r),D)}return L}function x1(r){return function(o){return Hi(o,r)}}function au(r,o,f,g){var x=g?t1:io,L=-1,P=o.length,D=r;for(r===o&&(o=dr(o)),f&&(D=Lt(r,Rr(f)));++L<P;)for(var B=0,ne=o[L],ie=f?f(ne):ne;(B=x(D,ie,B,g))>-1;)D!==r&&Wo.call(D,B,1),Wo.call(r,B,1);return r}function lu(r,o){for(var f=r?o.length:0,g=f-1;f--;){var x=o[f];if(f==g||x!==L){var L=x;b(x)?Wo.call(r,x,1):ja(r,x)}}return r}function Ql(r,o){return r+Zo(Ai()*(o-r+1))}function F0(r,o,f,g){for(var x=-1,L=Bt(Uo((o-r)/(f||1)),0),P=G(L);L--;)P[g?L:++x]=r,r+=f;return P}function su(r,o){var f="";if(!r||o<1||o>tt)return f;do o%2&&(f+=r),o=Zo(o/2),o&&(r+=r);while(o);return f}function st(r,o){return Or(De(r,o,mn),r+"")}function z1(r){return Fl(ds(r))}function Wi(r,o){var f=ds(r);return hr(f,go(o,0,f.length))}function ai(r,o,f,g){if(!Kt(r))return r;o=En(o,r);for(var x=-1,L=o.length,P=L-1,D=r;D!=null&&++x<L;){var B=_t(o[x]),ne=f;if(B==="__proto__"||B==="constructor"||B==="prototype")return r;if(x!=P){var ie=D[B];ne=g?g(ie,B,D):l,ne===l&&(ne=Kt(ie)?ie:b(o[x+1])?[]:{})}Wa(D,B,ne),D=D[B]}return r}var qa=Zn?function(r,o){return Zn.set(r,o),r}:mn,Ka=co?function(r,o){return co(r,"toString",{configurable:!0,enumerable:!1,value:R1(o),writable:!0})}:mn;function li(r){return hr(ds(r))}function hn(r,o,f){var g=-1,x=r.length;o<0&&(o=-o>x?0:x+o),f=f>x?x:f,f<0&&(f+=x),x=o>f?0:f-o>>>0,o>>>=0;for(var L=G(x);++g<x;)L[g]=r[g+o];return L}function L1(r,o){var f;return rn(r,function(g,x,L){return f=o(g,x,L),!f}),!!f}function si(r,o,f){var g=0,x=r==null?g:r.length;if(typeof o=="number"&&o===o&&x<=Ut){for(;g<x;){var L=g+x>>>1,P=r[L];P!==null&&!An(P)&&(f?P<=o:P<o)?g=L+1:x=L}return x}return Jl(r,o,mn,f)}function Jl(r,o,f,g){var x=0,L=r==null?0:r.length;if(L===0)return 0;o=f(o);for(var P=o!==o,D=o===null,B=An(o),ne=o===l;x<L;){var ie=Zo((x+L)/2),se=f(r[ie]),ze=se!==l,$e=se===null,Ve=se===se,ct=An(se);if(P)var Ge=g||Ve;else ne?Ge=Ve&&(g||ze):D?Ge=Ve&&ze&&(g||!$e):B?Ge=Ve&&ze&&!$e&&(g||!ct):$e||ct?Ge=!1:Ge=g?se<=o:se<o;Ge?x=ie+1:L=ie}return mr(L,jr)}function uu(r,o){for(var f=-1,g=r.length,x=0,L=[];++f<g;){var P=r[f],D=o?o(P):P;if(!f||!fi(D,B)){var B=D;L[x++]=P===0?0:P}}return L}function cu(r){return typeof r=="number"?r:An(r)?jt:+r}function Mr(r){if(typeof r=="string")return r;if(at(r))return Lt(r,Mr)+"";if(An(r))return Cr?Cr.call(r):"";var o=r+"";return o=="0"&&1/r==-be?"-0":o}function on(r,o,f){var g=-1,x=Pa,L=r.length,P=!0,D=[],B=D;if(f)P=!1,x=No;else if(L>=c){var ne=o?null:Ja(r);if(ne)return El(ne);P=!1,x=Gr,B=new wr}else B=o?[]:D;e:for(;++g<L;){var ie=r[g],se=o?o(ie):ie;if(ie=f||ie!==0?ie:0,P&&se===se){for(var ze=B.length;ze--;)if(B[ze]===se)continue e;o&&B.push(se),D.push(ie)}else x(B,se,f)||(B!==D&&B.push(se),D.push(ie))}return D}function ja(r,o){return o=En(o,r),r=Pe(r,o),r==null||delete r[_t(jn(o))]}function es(r,o,f,g){return ai(r,o,f(Hi(r,o)),g)}function ta(r,o,f,g){for(var x=r.length,L=g?x:-1;(g?L--:++L<x)&&o(r[L],L,r););return f?hn(r,g?0:L,g?L+1:x):hn(r,g?L+1:0,g?x:L)}function W0(r,o){var f=r;return f instanceof dt&&(f=f.value()),Rs(o,function(g,x){return x.func.apply(x.thisArg,zi([g],x.args))},f)}function mo(r,o,f){var g=r.length;if(g<2)return g?on(r[0]):[];for(var x=-1,L=G(g);++x<g;)for(var P=r[x],D=-1;++D<g;)D!=x&&(L[x]=qo(L[x]||P,r[D],o,f));return on(xr(L,1),o,f)}function fu(r,o,f){for(var g=-1,x=r.length,L=o.length,P={};++g<x;){var D=g<L?o[g]:l;f(P,r[g],D)}return P}function du(r){return ar(r)?r:[]}function ts(r){return typeof r=="function"?r:mn}function En(r,o){return at(r)?r:C(r,o)?[r]:ir(kt(r))}var _1=st;function Ui(r,o,f){var g=r.length;return f=f===l?g:f,!o&&f>=g?r:hn(r,o,f)}var ra=o1||function(r){return Ht.clearTimeout(r)};function hu(r,o){if(o)return r.slice();var f=r.length,g=y0?y0(f):new r.constructor(f);return r.copy(g),g}function rs(r){var o=new r.constructor(r.byteLength);return new so(o).set(new so(r)),o}function S1(r,o){var f=o?rs(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.byteLength)}function pu(r){var o=new r.constructor(r.source,to.exec(r));return o.lastIndex=r.lastIndex,o}function U0(r){return Ft?gt(Ft.call(r)):{}}function Z0(r,o){var f=o?rs(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}function gu(r,o){if(r!==o){var f=r!==l,g=r===null,x=r===r,L=An(r),P=o!==l,D=o===null,B=o===o,ne=An(o);if(!D&&!ne&&!L&&r>o||L&&P&&B&&!D&&!ne||g&&P&&B||!f&&B||!x)return 1;if(!g&&!L&&!ne&&r<o||ne&&f&&x&&!g&&!L||D&&f&&x||!P&&x||!B)return-1}return 0}function V0(r,o,f){for(var g=-1,x=r.criteria,L=o.criteria,P=x.length,D=f.length;++g<P;){var B=gu(x[g],L[g]);if(B){if(g>=D)return B;var ne=f[g];return B*(ne=="desc"?-1:1)}}return r.index-o.index}function G0(r,o,f,g){for(var x=-1,L=r.length,P=f.length,D=-1,B=o.length,ne=Bt(L-P,0),ie=G(B+ne),se=!g;++D<B;)ie[D]=o[D];for(;++x<P;)(se||x<L)&&(ie[f[x]]=r[x]);for(;ne--;)ie[D++]=r[x++];return ie}function ns(r,o,f,g){for(var x=-1,L=r.length,P=-1,D=f.length,B=-1,ne=o.length,ie=Bt(L-D,0),se=G(ie+ne),ze=!g;++x<ie;)se[x]=r[x];for(var $e=x;++B<ne;)se[$e+B]=o[B];for(;++P<D;)(ze||x<L)&&(se[$e+f[P]]=r[x++]);return se}function dr(r,o){var f=-1,g=r.length;for(o||(o=G(g));++f<g;)o[f]=r[f];return o}function Kr(r,o,f,g){var x=!f;f||(f={});for(var L=-1,P=o.length;++L<P;){var D=o[L],B=g?g(f[D],r[D],D,f,r):l;B===l&&(B=r[D]),x?qn(f,D,B):Wa(f,D,B)}return f}function M1(r,o){return Kr(r,Cu(r),o)}function q0(r,o){return Kr(r,ic(r),o)}function is(r,o){return function(f,g){var x=at(f)?Xc:eu,L=o?o():{};return x(f,r,Re(g,2),L)}}function na(r){return st(function(o,f){var g=-1,x=f.length,L=x>1?f[x-1]:l,P=x>2?f[2]:l;for(L=r.length>3&&typeof L=="function"?(x--,L):l,P&&y(f[0],f[1],P)&&(L=x<3?l:L,x=1),o=gt(o);++g<x;){var D=f[g];D&&r(o,D,g,L)}return o})}function K0(r,o){return function(f,g){if(f==null)return f;if(!vn(f))return r(f,g);for(var x=f.length,L=o?x:-1,P=gt(f);(o?L--:++L<x)&&g(P[L],L,P)!==!1;);return f}}function j0(r){return function(o,f,g){for(var x=-1,L=gt(o),P=g(o),D=P.length;D--;){var B=P[r?D:++x];if(f(L[B],B,L)===!1)break}return o}}function Y0(r,o,f){var g=o&pe,x=oa(r);function L(){var P=this&&this!==Ht&&this instanceof L?x:r;return P.apply(g?f:this,arguments)}return L}function X0(r){return function(o){o=kt(o);var f=On(o)?fn(o):l,g=f?f[0]:o.charAt(0),x=f?Ui(f,1).join(""):o.slice(1);return g[r]()+x}}function ia(r){return function(o){return Rs(dd(fd(o).replace(Es,"")),r,"")}}function oa(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var f=Vn(r.prototype),g=r.apply(f,o);return Kt(g)?g:f}}function vu(r,o,f){var g=oa(r);function x(){for(var L=arguments.length,P=G(L),D=L,B=la(x);D--;)P[D]=arguments[D];var ne=L<3&&P[0]!==B&&P[L-1]!==B?[]:_i(P,B);if(L-=ne.length,L<f)return ec(r,o,Ya,x.placeholder,l,P,ne,l,l,f-L);var ie=this&&this!==Ht&&this instanceof x?g:r;return en(ie,this,P)}return x}function bu(r){return function(o,f,g){var x=gt(o);if(!vn(o)){var L=Re(f,3);o=Ar(o),f=function(D){return L(x[D],D,x)}}var P=r(o,f,g);return P>-1?x[L?o[P]:P]:l}}function Q0(r){return ui(function(o){var f=o.length,g=f,x=Hr.prototype.thru;for(r&&o.reverse();g--;){var L=o[g];if(typeof L!="function")throw new qr(m);if(x&&!P&&tl(L)=="wrapper")var P=new Hr([],!0)}for(g=P?g:f;++g<f;){L=o[g];var D=tl(L),B=D=="wrapper"?yt(L):l;B&&M(B[0])&&B[1]==(Ae|he|Me|qe)&&!B[4].length&&B[9]==1?P=P[tl(B[0])].apply(P,B[3]):P=L.length==1&&M(L)?P[D]():P.thru(L)}return function(){var ne=arguments,ie=ne[0];if(P&&ne.length==1&&at(ie))return P.plant(ie).value();for(var se=0,ze=f?o[se].apply(this,ne):ie;++se<f;)ze=o[se].call(this,ze);return ze}})}function Ya(r,o,f,g,x,L,P,D,B,ne){var ie=o&Ae,se=o&pe,ze=o&Se,$e=o&(he|ce),Ve=o&je,ct=ze?l:oa(r);function Ge(){for(var pt=arguments.length,vt=G(pt),In=pt;In--;)vt[In]=arguments[In];if($e)var an=la(Ge),Dn=r1(vt,an);if(g&&(vt=G0(vt,g,x,$e)),L&&(vt=ns(vt,L,P,$e)),pt-=Dn,$e&&pt<ne){var lr=_i(vt,an);return ec(r,o,Ya,Ge.placeholder,f,vt,lr,D,B,ne-pt)}var di=se?f:this,_o=ze?di[r]:r;return pt=vt.length,D?vt=it(vt,D):Ve&&pt>1&&vt.reverse(),ie&&B<pt&&(vt.length=B),this&&this!==Ht&&this instanceof Ge&&(_o=ct||oa(_o)),_o.apply(di,vt)}return Ge}function yo(r,o){return function(f,g){return jl(f,r,o(g),{})}}function Xa(r,o){return function(f,g){var x;if(f===l&&g===l)return o;if(f!==l&&(x=f),g!==l){if(x===l)return g;typeof f=="string"||typeof g=="string"?(f=Mr(f),g=Mr(g)):(f=cu(f),g=cu(g)),x=r(f,g)}return x}}function aa(r){return ui(function(o){return o=Lt(o,Rr(Re())),st(function(f){var g=this;return r(o,function(x){return en(x,g,f)})})})}function os(r,o){o=o===l?" ":Mr(o);var f=o.length;if(f<2)return f?su(o,r):o;var g=su(o,Uo(r/ao(o)));return On(o)?Ui(fn(g),0,r).join(""):g.slice(0,r)}function k1(r,o,f,g){var x=o&pe,L=oa(r);function P(){for(var D=-1,B=arguments.length,ne=-1,ie=g.length,se=G(ie+B),ze=this&&this!==Ht&&this instanceof P?L:r;++ne<ie;)se[ne]=g[ne];for(;B--;)se[ne++]=arguments[++D];return en(ze,x?f:this,se)}return P}function J0(r){return function(o,f,g){return g&&typeof g!="number"&&y(o,f,g)&&(f=g=l),o=Lo(o),f===l?(f=o,o=0):f=Lo(f),g=g===l?o<f?1:-1:Lo(g),F0(o,f,g,r)}}function St(r){return function(o,f){return typeof o=="string"&&typeof f=="string"||(o=Yn(o),f=Yn(f)),r(o,f)}}function ec(r,o,f,g,x,L,P,D,B,ne){var ie=o&he,se=ie?P:l,ze=ie?l:P,$e=ie?L:l,Ve=ie?l:L;o|=ie?Me:Te,o&=~(ie?Te:Me),o&Oe||(o&=~(pe|Se));var ct=[r,o,x,$e,se,Ve,ze,D,B,ne],Ge=f.apply(l,ct);return M(r)&&Xt(Ge,ct),Ge.placeholder=g,Tr(Ge,r,o)}function Qa(r){var o=nr[r];return function(f,g){if(f=Yn(f),g=g==null?0:mr(ut(g),292),g&&C0(f)){var x=(kt(f)+"e").split("e"),L=o(x[0]+"e"+(+x[1]+g));return x=(kt(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return o(f)}}var Ja=ho&&1/El(new ho([,-0]))[1]==be?function(r){return new ho(r)}:F1;function pn(r){return function(o){var f=kr(o);return f==Yt?Pl(o):f==Je?h0(o):ni(o,r(o))}}function gn(r,o,f,g,x,L,P,D){var B=o&Se;if(!B&&typeof r!="function")throw new qr(m);var ne=g?g.length:0;if(ne||(o&=~(Me|Te),g=x=l),P=P===l?P:Bt(ut(P),0),D=D===l?D:ut(D),ne-=x?x.length:0,o&Te){var ie=g,se=x;g=x=l}var ze=B?l:yt(r),$e=[r,o,f,g,x,ie,se,L,P,D];if(ze&&we($e,ze),r=$e[0],o=$e[1],f=$e[2],g=$e[3],x=$e[4],D=$e[9]=$e[9]===l?B?0:r.length:Bt($e[9]-ne,0),!D&&o&(he|ce)&&(o&=~(he|ce)),!o||o==pe)var Ve=Y0(r,o,f);else o==he||o==ce?Ve=vu(r,o,D):(o==Me||o==(pe|Me))&&!x.length?Ve=k1(r,o,f,g):Ve=Ya.apply(l,$e);var ct=ze?qa:Xt;return Tr(ct(Ve,$e),r,o)}function as(r,o,f,g){return r===l||fi(r,ki[f])&&!et.call(g,f)?o:r}function mu(r,o,f,g,x,L){return Kt(r)&&Kt(o)&&(L.set(o,r),Xl(r,o,l,mu,L),L.delete(o)),r}function tc(r){return xu(r)?l:r}function yu(r,o,f,g,x,L){var P=f&re,D=r.length,B=o.length;if(D!=B&&!(P&&B>D))return!1;var ne=L.get(r),ie=L.get(o);if(ne&&ie)return ne==o&&ie==r;var se=-1,ze=!0,$e=f&ge?new wr:l;for(L.set(r,o),L.set(o,r);++se<D;){var Ve=r[se],ct=o[se];if(g)var Ge=P?g(ct,Ve,se,o,r,L):g(Ve,ct,se,r,o,L);if(Ge!==l){if(Ge)continue;ze=!1;break}if($e){if(!no(o,function(pt,vt){if(!Gr($e,vt)&&(Ve===pt||x(Ve,pt,f,g,L)))return $e.push(vt)})){ze=!1;break}}else if(!(Ve===ct||x(Ve,ct,f,g,L))){ze=!1;break}}return L.delete(r),L.delete(o),ze}function rc(r,o,f,g,x,L,P){switch(f){case xn:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case pr:return!(r.byteLength!=o.byteLength||!L(new so(r),new so(o)));case Fe:case rt:case Ke:return fi(+r,+o);case Be:return r.name==o.name&&r.message==o.message;case er:case F:return r==o+"";case Yt:var D=Pl;case Je:var B=g&re;if(D||(D=El),r.size!=o.size&&!B)return!1;var ne=P.get(r);if(ne)return ne==o;g|=ge,P.set(r,o);var ie=yu(D(r),D(o),g,x,L,P);return P.delete(r),ie;case ae:if(Ft)return Ft.call(r)==Ft.call(o)}return!1}function nc(r,o,f,g,x,L){var P=f&re,D=el(r),B=D.length,ne=el(o),ie=ne.length;if(B!=ie&&!P)return!1;for(var se=B;se--;){var ze=D[se];if(!(P?ze in o:et.call(o,ze)))return!1}var $e=L.get(r),Ve=L.get(o);if($e&&Ve)return $e==o&&Ve==r;var ct=!0;L.set(r,o),L.set(o,r);for(var Ge=P;++se<B;){ze=D[se];var pt=r[ze],vt=o[ze];if(g)var In=P?g(vt,pt,ze,o,r,L):g(pt,vt,ze,r,o,L);if(!(In===l?pt===vt||x(pt,vt,f,g,L):In)){ct=!1;break}Ge||(Ge=ze=="constructor")}if(ct&&!Ge){var an=r.constructor,Dn=o.constructor;an!=Dn&&"constructor"in r&&"constructor"in o&&!(typeof an=="function"&&an instanceof an&&typeof Dn=="function"&&Dn instanceof Dn)&&(ct=!1)}return L.delete(r),L.delete(o),ct}function ui(r){return Or(De(r,l,Rf),r+"")}function el(r){return vo(r,Ar,Cu)}function ls(r){return vo(r,bn,ic)}var yt=Zn?function(r){return Zn.get(r)}:F1;function tl(r){for(var o=r.name+"",f=Go[o],g=et.call(Go,o)?f.length:0;g--;){var x=f[g],L=x.func;if(L==null||L==r)return x.name}return o}function la(r){var o=et.call(z,"placeholder")?z:r;return o.placeholder}function Re(){var r=z.iteratee||H1;return r=r===H1?$0:r,arguments.length?r(arguments[0],arguments[1]):r}function ss(r,o){var f=r.__data__;return _(o)?f[typeof o=="string"?"string":"hash"]:f.map}function sa(r){for(var o=Ar(r),f=o.length;f--;){var g=o[f],x=r[g];o[f]=[g,x,te(x)]}return o}function Co(r,o){var f=Zs(r,o);return Jo(f)?f:l}function Zt(r){var o=et.call(r,Pi),f=r[Pi];try{r[Pi]=l;var g=!0}catch{}var x=lo.call(r);return g&&(o?r[Pi]=f:delete r[Pi]),x}var Cu=Ei?function(r){return r==null?[]:(r=gt(r),xi(Ei(r),function(o){return $l.call(r,o)}))}:W1,ic=Ei?function(r){for(var o=[];r;)zi(o,Cu(r)),r=Fo(r);return o}:W1,kr=fr;(Ii&&kr(new Ii(new ArrayBuffer(1)))!=xn||Vo&&kr(new Vo)!=Yt||Rl&&kr(Rl.resolve())!=Lr||ho&&kr(new ho)!=Je||Ha&&kr(new Ha)!=Ye)&&(kr=function(r){var o=fr(r),f=o==wt?r.constructor:l,g=f?Tt(f):"";if(g)switch(g){case s1:return xn;case u1:return Yt;case c1:return Lr;case f1:return Je;case d1:return Ye}return o});function us(r,o,f){for(var g=-1,x=f.length;++g<x;){var L=f[g],P=L.size;switch(L.type){case"drop":r+=P;break;case"dropRight":o-=P;break;case"take":o=mr(o,r+P);break;case"takeRight":r=Bt(r,o-P);break}}return{start:r,end:o}}function e(r){var o=r.match(xa);return o?o[1].split(Ci):[]}function t(r,o,f){o=En(o,r);for(var g=-1,x=o.length,L=!1;++g<x;){var P=_t(o[g]);if(!(L=r!=null&&f(r,P)))break;r=r[P]}return L||++g!=x?L:(x=r==null?0:r.length,!!x&&cc(x)&&b(P,x)&&(at(r)||rl(r)))}function i(r){var o=r.length,f=new r.constructor(o);return o&&typeof r[0]=="string"&&et.call(r,"index")&&(f.index=r.index,f.input=r.input),f}function n(r){return typeof r.constructor=="function"&&!q(r)?Vn(Fo(r)):{}}function s(r,o,f){var g=r.constructor;switch(o){case pr:return rs(r);case Fe:case rt:return new g(+r);case xn:return S1(r,f);case Dr:case Nt:case ei:case _r:case zn:case Ne:case mi:case gr:case Ue:return Z0(r,f);case Yt:return new g;case Ke:case F:return new g(r);case er:return pu(r);case Je:return new g;case ae:return U0(r)}}function d(r,o){var f=o.length;if(!f)return r;var g=f-1;return o[g]=(f>1?"& ":"")+o[g],o=o.join(f>2?", ":" "),r.replace(bl,`{
|
|
665
|
+
/* [wrapped with `+o+`] */
|
|
666
|
+
`)}function p(r){return at(r)||rl(r)||!!(uo&&r&&r[uo])}function b(r,o){var f=typeof r;return o=o==null?tt:o,!!o&&(f=="number"||f!="symbol"&&za.test(r))&&r>-1&&r%1==0&&r<o}function y(r,o,f){if(!Kt(f))return!1;var g=typeof o;return(g=="number"?vn(f)&&b(o,f.length):g=="string"&&o in f)?fi(f[o],r):!1}function C(r,o){if(at(r))return!1;var f=typeof r;return f=="number"||f=="symbol"||f=="boolean"||r==null||An(r)?!0:$r.test(r)||!wa.test(r)||o!=null&&r in gt(o)}function _(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function M(r){var o=tl(r),f=z[o];if(typeof f!="function"||!(o in dt.prototype))return!1;if(r===f)return!0;var g=yt(f);return!!g&&r===g[0]}function N(r){return!!ii&&ii in r}var $=Wn?zo:U1;function q(r){var o=r&&r.constructor,f=typeof o=="function"&&o.prototype||ki;return r===f}function te(r){return r===r&&!Kt(r)}function ue(r,o){return function(f){return f==null?!1:f[r]===o&&(o!==l||r in gt(f))}}function fe(r){var o=sc(r,function(g){return f.size===k&&f.clear(),g}),f=o.cache;return o}function we(r,o){var f=r[1],g=o[1],x=f|g,L=x<(pe|Se|Ae),P=g==Ae&&f==he||g==Ae&&f==qe&&r[7].length<=o[8]||g==(Ae|qe)&&o[7].length<=o[8]&&f==he;if(!(L||P))return r;g&pe&&(r[2]=o[2],x|=f&pe?0:Oe);var D=o[3];if(D){var B=r[3];r[3]=B?G0(B,D,o[4]):D,r[4]=B?_i(r[3],I):o[4]}return D=o[5],D&&(B=r[5],r[5]=B?ns(B,D,o[6]):D,r[6]=B?_i(r[5],I):o[6]),D=o[7],D&&(r[7]=D),g&Ae&&(r[8]=r[8]==null?o[8]:mr(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=x,r}function de(r){var o=[];if(r!=null)for(var f in gt(r))o.push(f);return o}function xe(r){return lo.call(r)}function De(r,o,f){return o=Bt(o===l?r.length-1:o,0),function(){for(var g=arguments,x=-1,L=Bt(g.length-o,0),P=G(L);++x<L;)P[x]=g[o+x];x=-1;for(var D=G(o+1);++x<o;)D[x]=g[x];return D[o]=f(P),en(r,this,D)}}function Pe(r,o){return o.length<2?r:Hi(r,hn(o,0,-1))}function it(r,o){for(var f=r.length,g=mr(o.length,f),x=dr(r);g--;){var L=o[g];r[g]=b(L,f)?x[L]:l}return r}function xt(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Xt=Vt(qa),Mt=l1||function(r,o){return Ht.setTimeout(r,o)},Or=Vt(Ka);function Tr(r,o,f){var g=o+"";return Or(r,d(g,Wt(e(g),f)))}function Vt(r){var o=0,f=0;return function(){var g=fo(),x=V-(g-f);if(f=g,x>0){if(++o>=Xe)return arguments[0]}else o=0;return r.apply(l,arguments)}}function hr(r,o){var f=-1,g=r.length,x=g-1;for(o=o===l?g:o;++f<o;){var L=Ql(f,x),P=r[L];r[L]=r[f],r[f]=P}return r.length=o,r}var ir=fe(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(gl,function(f,g,x,L){o.push(x?L.replace(ml,"$1"):g||f)}),o});function _t(r){if(typeof r=="string"||An(r))return r;var o=r+"";return o=="0"&&1/r==-be?"-0":o}function Tt(r){if(r!=null){try{return Un.call(r)}catch{}try{return r+""}catch{}}return""}function Wt(r,o){return cn(At,function(f){var g="_."+f[0];o&f[1]&&!Pa(r,g)&&r.push(g)}),r.sort()}function Pr(r){if(r instanceof dt)return r.clone();var o=new Hr(r.__wrapped__,r.__chain__);return o.__actions__=dr(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function ua(r,o,f){(f?y(r,o,f):o===l)?o=1:o=Bt(ut(o),0);var g=r==null?0:r.length;if(!g||o<1)return[];for(var x=0,L=0,P=G(Uo(g/o));x<g;)P[L++]=hn(r,x,x+=o);return P}function Zi(r){for(var o=-1,f=r==null?0:r.length,g=0,x=[];++o<f;){var L=r[o];L&&(x[g++]=L)}return x}function zr(){var r=arguments.length;if(!r)return[];for(var o=G(r-1),f=arguments[0],g=r;g--;)o[g-1]=arguments[g];return zi(at(f)?dr(f):[f],xr(o,1))}var Kn=st(function(r,o){return ar(r)?qo(r,xr(o,1,ar,!0)):[]}),or=st(function(r,o){var f=jn(o);return ar(f)&&(f=l),ar(r)?qo(r,xr(o,1,ar,!0),Re(f,2)):[]}),wu=st(function(r,o){var f=jn(o);return ar(f)&&(f=l),ar(r)?qo(r,xr(o,1,ar,!0),l,f):[]});function ci(r,o,f){var g=r==null?0:r.length;return g?(o=f||o===l?1:ut(o),hn(r,o<0?0:o,g)):[]}function wo(r,o,f){var g=r==null?0:r.length;return g?(o=f||o===l?1:ut(o),o=g-o,hn(r,0,o<0?0:o)):[]}function xo(r,o){return r&&r.length?ta(r,Re(o,3),!0,!0):[]}function Er(r,o){return r&&r.length?ta(r,Re(o,3),!0):[]}function ca(r,o,f,g){var x=r==null?0:r.length;return x?(f&&typeof f!="number"&&y(r,o,f)&&(f=0,g=x),nu(r,o,f,g)):[]}function cs(r,o,f){var g=r==null?0:r.length;if(!g)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(g+x,0)),Ml(r,Re(o,3),x)}function Nf(r,o,f){var g=r==null?0:r.length;if(!g)return-1;var x=g-1;return f!==l&&(x=ut(f),x=f<0?Bt(g+x,0):mr(x,g-1)),Ml(r,Re(o,3),x,!0)}function Rf(r){var o=r==null?0:r.length;return o?xr(r,1):[]}function Yp(r){var o=r==null?0:r.length;return o?xr(r,be):[]}function Xp(r,o){var f=r==null?0:r.length;return f?(o=o===l?1:ut(o),xr(r,o)):[]}function Qp(r){for(var o=-1,f=r==null?0:r.length,g={};++o<f;){var x=r[o];g[x[0]]=x[1]}return g}function Hf(r){return r&&r.length?r[0]:l}function Jp(r,o,f){var g=r==null?0:r.length;if(!g)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(g+x,0)),io(r,o,x)}function e2(r){var o=r==null?0:r.length;return o?hn(r,0,-1):[]}var t2=st(function(r){var o=Lt(r,du);return o.length&&o[0]===r[0]?Kl(o):[]}),r2=st(function(r){var o=jn(r),f=Lt(r,du);return o===jn(f)?o=l:f.pop(),f.length&&f[0]===r[0]?Kl(f,Re(o,2)):[]}),n2=st(function(r){var o=jn(r),f=Lt(r,du);return o=typeof o=="function"?o:l,o&&f.pop(),f.length&&f[0]===r[0]?Kl(f,l,o):[]});function i2(r,o){return r==null?"":Nl.call(r,o)}function jn(r){var o=r==null?0:r.length;return o?r[o-1]:l}function o2(r,o,f){var g=r==null?0:r.length;if(!g)return-1;var x=g;return f!==l&&(x=ut(f),x=x<0?Bt(g+x,0):mr(x,g-1)),o===o?Aa(r,o,x):Ml(r,kl,x,!0)}function a2(r,o){return r&&r.length?R0(r,ut(o)):l}var l2=st(Bf);function Bf(r,o){return r&&r.length&&o&&o.length?au(r,o):r}function s2(r,o,f){return r&&r.length&&o&&o.length?au(r,o,Re(f,2)):r}function u2(r,o,f){return r&&r.length&&o&&o.length?au(r,o,l,f):r}var c2=ui(function(r,o){var f=r==null?0:r.length,g=ru(r,o);return lu(r,Lt(o,function(x){return b(x,f)?+x:x}).sort(gu)),g});function f2(r,o){var f=[];if(!(r&&r.length))return f;var g=-1,x=[],L=r.length;for(o=Re(o,3);++g<L;){var P=r[g];o(P,g,r)&&(f.push(P),x.push(g))}return lu(r,x),f}function O1(r){return r==null?r:Ra.call(r)}function d2(r,o,f){var g=r==null?0:r.length;return g?(f&&typeof f!="number"&&y(r,o,f)?(o=0,f=g):(o=o==null?0:ut(o),f=f===l?g:ut(f)),hn(r,o,f)):[]}function h2(r,o){return si(r,o)}function p2(r,o,f){return Jl(r,o,Re(f,2))}function g2(r,o){var f=r==null?0:r.length;if(f){var g=si(r,o);if(g<f&&fi(r[g],o))return g}return-1}function v2(r,o){return si(r,o,!0)}function b2(r,o,f){return Jl(r,o,Re(f,2),!0)}function m2(r,o){var f=r==null?0:r.length;if(f){var g=si(r,o,!0)-1;if(fi(r[g],o))return g}return-1}function y2(r){return r&&r.length?uu(r):[]}function C2(r,o){return r&&r.length?uu(r,Re(o,2)):[]}function w2(r){var o=r==null?0:r.length;return o?hn(r,1,o):[]}function x2(r,o,f){return r&&r.length?(o=f||o===l?1:ut(o),hn(r,0,o<0?0:o)):[]}function z2(r,o,f){var g=r==null?0:r.length;return g?(o=f||o===l?1:ut(o),o=g-o,hn(r,o<0?0:o,g)):[]}function L2(r,o){return r&&r.length?ta(r,Re(o,3),!1,!0):[]}function _2(r,o){return r&&r.length?ta(r,Re(o,3)):[]}var S2=st(function(r){return on(xr(r,1,ar,!0))}),M2=st(function(r){var o=jn(r);return ar(o)&&(o=l),on(xr(r,1,ar,!0),Re(o,2))}),k2=st(function(r){var o=jn(r);return o=typeof o=="function"?o:l,on(xr(r,1,ar,!0),l,o)});function O2(r){return r&&r.length?on(r):[]}function T2(r,o){return r&&r.length?on(r,Re(o,2)):[]}function P2(r,o){return o=typeof o=="function"?o:l,r&&r.length?on(r,l,o):[]}function T1(r){if(!(r&&r.length))return[];var o=0;return r=xi(r,function(f){if(ar(f))return o=Bt(f.length,o),!0}),oo(o,function(f){return Lt(r,Bs(f))})}function Ff(r,o){if(!(r&&r.length))return[];var f=T1(r);return o==null?f:Lt(f,function(g){return en(o,l,g)})}var E2=st(function(r,o){return ar(r)?qo(r,o):[]}),A2=st(function(r){return mo(xi(r,ar))}),I2=st(function(r){var o=jn(r);return ar(o)&&(o=l),mo(xi(r,ar),Re(o,2))}),D2=st(function(r){var o=jn(r);return o=typeof o=="function"?o:l,mo(xi(r,ar),l,o)}),$2=st(T1);function N2(r,o){return fu(r||[],o||[],Wa)}function R2(r,o){return fu(r||[],o||[],ai)}var H2=st(function(r){var o=r.length,f=o>1?r[o-1]:l;return f=typeof f=="function"?(r.pop(),f):l,Ff(r,f)});function Wf(r){var o=z(r);return o.__chain__=!0,o}function B2(r,o){return o(r),r}function oc(r,o){return o(r)}var F2=ui(function(r){var o=r.length,f=o?r[0]:0,g=this.__wrapped__,x=function(L){return ru(L,r)};return o>1||this.__actions__.length||!(g instanceof dt)||!b(f)?this.thru(x):(g=g.slice(f,+f+(o?1:0)),g.__actions__.push({func:oc,args:[x],thisArg:l}),new Hr(g,this.__chain__).thru(function(L){return o&&!L.length&&L.push(l),L}))});function W2(){return Wf(this)}function U2(){return new Hr(this.value(),this.__chain__)}function Z2(){this.__values__===l&&(this.__values__=rd(this.value()));var r=this.__index__>=this.__values__.length,o=r?l:this.__values__[this.__index__++];return{done:r,value:o}}function V2(){return this}function G2(r){for(var o,f=this;f instanceof Hl;){var g=Pr(f);g.__index__=0,g.__values__=l,o?x.__wrapped__=g:o=g;var x=g;f=f.__wrapped__}return x.__wrapped__=r,o}function q2(){var r=this.__wrapped__;if(r instanceof dt){var o=r;return this.__actions__.length&&(o=new dt(this)),o=o.reverse(),o.__actions__.push({func:oc,args:[O1],thisArg:l}),new Hr(o,this.__chain__)}return this.thru(O1)}function K2(){return W0(this.__wrapped__,this.__actions__)}var j2=is(function(r,o,f){et.call(r,f)?++r[f]:qn(r,f,1)});function Y2(r,o,f){var g=at(r)?Ns:Zl;return f&&y(r,o,f)&&(o=l),g(r,Re(o,3))}function X2(r,o){var f=at(r)?xi:iu;return f(r,Re(o,3))}var Q2=bu(cs),J2=bu(Nf);function e4(r,o){return xr(ac(r,o),1)}function t4(r,o){return xr(ac(r,o),be)}function r4(r,o,f){return f=f===l?1:ut(f),xr(ac(r,o),f)}function Uf(r,o){var f=at(r)?cn:rn;return f(r,Re(o,3))}function Zf(r,o){var f=at(r)?Qc:Ul;return f(r,Re(o,3))}var n4=is(function(r,o,f){et.call(r,f)?r[f].push(o):qn(r,f,[o])});function i4(r,o,f,g){r=vn(r)?r:ds(r),f=f&&!g?ut(f):0;var x=r.length;return f<0&&(f=Bt(x+f,0)),fc(r)?f<=x&&r.indexOf(o,f)>-1:!!x&&io(r,o,f)>-1}var o4=st(function(r,o,f){var g=-1,x=typeof o=="function",L=vn(r)?G(r.length):[];return rn(r,function(P){L[++g]=x?en(o,P,f):jo(P,o,f)}),L}),a4=is(function(r,o,f){qn(r,f,o)});function ac(r,o){var f=at(r)?Lt:ea;return f(r,Re(o,3))}function l4(r,o,f,g){return r==null?[]:(at(o)||(o=o==null?[]:[o]),f=g?l:f,at(f)||(f=f==null?[]:[f]),Sr(r,o,f))}var s4=is(function(r,o,f){r[f?0:1].push(o)},function(){return[[],[]]});function u4(r,o,f){var g=at(r)?Rs:Ws,x=arguments.length<3;return g(r,Re(o,4),f,x,rn)}function c4(r,o,f){var g=at(r)?Jc:Ws,x=arguments.length<3;return g(r,Re(o,4),f,x,Ul)}function f4(r,o){var f=at(r)?xi:iu;return f(r,uc(Re(o,3)))}function d4(r){var o=at(r)?Fl:z1;return o(r)}function h4(r,o,f){(f?y(r,o,f):o===l)?o=1:o=ut(o);var g=at(r)?Ri:Wi;return g(r,o)}function p4(r){var o=at(r)?M0:li;return o(r)}function g4(r){if(r==null)return 0;if(vn(r))return fc(r)?ao(r):r.length;var o=kr(r);return o==Yt||o==Je?r.size:Yl(r).length}function v4(r,o,f){var g=at(r)?no:L1;return f&&y(r,o,f)&&(o=l),g(r,Re(o,3))}var b4=st(function(r,o){if(r==null)return[];var f=o.length;return f>1&&y(r,o[0],o[1])?o=[]:f>2&&y(o[0],o[1],o[2])&&(o=[o[0]]),Sr(r,xr(o,1),[])}),lc=a1||function(){return Ht.Date.now()};function m4(r,o){if(typeof o!="function")throw new qr(m);return r=ut(r),function(){if(--r<1)return o.apply(this,arguments)}}function Vf(r,o,f){return o=f?l:o,o=r&&o==null?r.length:o,gn(r,Ae,l,l,l,l,o)}function Gf(r,o){var f;if(typeof o!="function")throw new qr(m);return r=ut(r),function(){return--r>0&&(f=o.apply(this,arguments)),r<=1&&(o=l),f}}var P1=st(function(r,o,f){var g=pe;if(f.length){var x=_i(f,la(P1));g|=Me}return gn(r,g,o,f,x)}),qf=st(function(r,o,f){var g=pe|Se;if(f.length){var x=_i(f,la(qf));g|=Me}return gn(o,g,r,f,x)});function Kf(r,o,f){o=f?l:o;var g=gn(r,he,l,l,l,l,l,o);return g.placeholder=Kf.placeholder,g}function jf(r,o,f){o=f?l:o;var g=gn(r,ce,l,l,l,l,l,o);return g.placeholder=jf.placeholder,g}function Yf(r,o,f){var g,x,L,P,D,B,ne=0,ie=!1,se=!1,ze=!0;if(typeof r!="function")throw new qr(m);o=Yn(o)||0,Kt(f)&&(ie=!!f.leading,se="maxWait"in f,L=se?Bt(Yn(f.maxWait)||0,o):L,ze="trailing"in f?!!f.trailing:ze);function $e(lr){var di=g,_o=x;return g=x=l,ne=lr,P=r.apply(_o,di),P}function Ve(lr){return ne=lr,D=Mt(pt,o),ie?$e(lr):P}function ct(lr){var di=lr-B,_o=lr-ne,gd=o-di;return se?mr(gd,L-_o):gd}function Ge(lr){var di=lr-B,_o=lr-ne;return B===l||di>=o||di<0||se&&_o>=L}function pt(){var lr=lc();if(Ge(lr))return vt(lr);D=Mt(pt,ct(lr))}function vt(lr){return D=l,ze&&g?$e(lr):(g=x=l,P)}function In(){D!==l&&ra(D),ne=0,g=B=x=D=l}function an(){return D===l?P:vt(lc())}function Dn(){var lr=lc(),di=Ge(lr);if(g=arguments,x=this,B=lr,di){if(D===l)return Ve(B);if(se)return ra(D),D=Mt(pt,o),$e(B)}return D===l&&(D=Mt(pt,o)),P}return Dn.cancel=In,Dn.flush=an,Dn}var y4=st(function(r,o){return T0(r,1,o)}),C4=st(function(r,o,f){return T0(r,Yn(o)||0,f)});function w4(r){return gn(r,je)}function sc(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new qr(m);var f=function(){var g=arguments,x=o?o.apply(this,g):g[0],L=f.cache;if(L.has(x))return L.get(x);var P=r.apply(this,g);return f.cache=L.set(x,P)||L,P};return f.cache=new(sc.Cache||qt),f}sc.Cache=qt;function uc(r){if(typeof r!="function")throw new qr(m);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function x4(r){return Gf(2,r)}var z4=_1(function(r,o){o=o.length==1&&at(o[0])?Lt(o[0],Rr(Re())):Lt(xr(o,1),Rr(Re()));var f=o.length;return st(function(g){for(var x=-1,L=mr(g.length,f);++x<L;)g[x]=o[x].call(this,g[x]);return en(r,this,g)})}),E1=st(function(r,o){var f=_i(o,la(E1));return gn(r,Me,l,o,f)}),Xf=st(function(r,o){var f=_i(o,la(Xf));return gn(r,Te,l,o,f)}),L4=ui(function(r,o){return gn(r,qe,l,l,l,o)});function _4(r,o){if(typeof r!="function")throw new qr(m);return o=o===l?o:ut(o),st(r,o)}function S4(r,o){if(typeof r!="function")throw new qr(m);return o=o==null?0:Bt(ut(o),0),st(function(f){var g=f[o],x=Ui(f,0,o);return g&&zi(x,g),en(r,this,x)})}function M4(r,o,f){var g=!0,x=!0;if(typeof r!="function")throw new qr(m);return Kt(f)&&(g="leading"in f?!!f.leading:g,x="trailing"in f?!!f.trailing:x),Yf(r,o,{leading:g,maxWait:o,trailing:x})}function k4(r){return Vf(r,1)}function O4(r,o){return E1(ts(o),r)}function T4(){if(!arguments.length)return[];var r=arguments[0];return at(r)?r:[r]}function P4(r){return Br(r,Z)}function E4(r,o){return o=typeof o=="function"?o:l,Br(r,Z,o)}function A4(r){return Br(r,H|Z)}function I4(r,o){return o=typeof o=="function"?o:l,Br(r,H|Z,o)}function D4(r,o){return o==null||O0(r,o,Ar(o))}function fi(r,o){return r===o||r!==r&&o!==o}var $4=St(ql),N4=St(function(r,o){return r>=o}),rl=Yo(function(){return arguments}())?Yo:function(r){return Qt(r)&&et.call(r,"callee")&&!$l.call(r,"callee")},at=G.isArray,R4=n0?Rr(n0):C1;function vn(r){return r!=null&&cc(r.length)&&!zo(r)}function ar(r){return Qt(r)&&vn(r)}function H4(r){return r===!0||r===!1||Qt(r)&&fr(r)==Fe}var fa=$a||U1,B4=i0?Rr(i0):Xo;function F4(r){return Qt(r)&&r.nodeType===1&&!xu(r)}function W4(r){if(r==null)return!0;if(vn(r)&&(at(r)||typeof r=="string"||typeof r.splice=="function"||fa(r)||fs(r)||rl(r)))return!r.length;var o=kr(r);if(o==Yt||o==Je)return!r.size;if(q(r))return!Yl(r).length;for(var f in r)if(et.call(r,f))return!1;return!0}function U4(r,o){return Qo(r,o)}function Z4(r,o,f){f=typeof f=="function"?f:l;var g=f?f(r,o):l;return g===l?Qo(r,o,l,f):!!g}function A1(r){if(!Qt(r))return!1;var o=fr(r);return o==Be||o==nt||typeof r.message=="string"&&typeof r.name=="string"&&!xu(r)}function V4(r){return typeof r=="number"&&C0(r)}function zo(r){if(!Kt(r))return!1;var o=fr(r);return o==Rt||o==Ir||o==He||o==Ur}function Qf(r){return typeof r=="number"&&r==ut(r)}function cc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=tt}function Kt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function Qt(r){return r!=null&&typeof r=="object"}var Jf=o0?Rr(o0):I0;function G4(r,o){return r===o||bo(r,o,sa(o))}function q4(r,o,f){return f=typeof f=="function"?f:l,bo(r,o,sa(o),f)}function K4(r){return ed(r)&&r!=+r}function j4(r){if($(r))throw new Qe(v);return Jo(r)}function Y4(r){return r===null}function X4(r){return r==null}function ed(r){return typeof r=="number"||Qt(r)&&fr(r)==Ke}function xu(r){if(!Qt(r)||fr(r)!=wt)return!1;var o=Fo(r);if(o===null)return!0;var f=et.call(o,"constructor")&&o.constructor;return typeof f=="function"&&f instanceof f&&Un.call(f)==i1}var I1=a0?Rr(a0):Va;function Q4(r){return Qf(r)&&r>=-tt&&r<=tt}var td=Ds?Rr(Ds):Ga;function fc(r){return typeof r=="string"||!at(r)&&Qt(r)&&fr(r)==F}function An(r){return typeof r=="symbol"||Qt(r)&&fr(r)==ae}var fs=$s?Rr($s):D0;function J4(r){return r===l}function e5(r){return Qt(r)&&kr(r)==Ye}function t5(r){return Qt(r)&&fr(r)==tr}var r5=St(Fi),n5=St(function(r,o){return r<=o});function rd(r){if(!r)return[];if(vn(r))return fc(r)?fn(r):dr(r);if(Ti&&r[Ti])return f0(r[Ti]());var o=kr(r),f=o==Yt?Pl:o==Je?El:ds;return f(r)}function Lo(r){if(!r)return r===0?r:0;if(r=Yn(r),r===be||r===-be){var o=r<0?-1:1;return o*zt}return r===r?r:0}function ut(r){var o=Lo(r),f=o%1;return o===o?f?o-f:o:0}function nd(r){return r?go(ut(r),0,Et):0}function Yn(r){if(typeof r=="number")return r;if(An(r))return jt;if(Kt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=Kt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Ea(r);var f=_n.test(r);return f||Qr.test(r)?Yc(r.slice(2),f?2:8):Io.test(r)?jt:+r}function id(r){return Kr(r,bn(r))}function i5(r){return r?go(ut(r),-tt,tt):r===0?r:0}function kt(r){return r==null?"":Mr(r)}var o5=na(function(r,o){if(q(o)||vn(o)){Kr(o,Ar(o),r);return}for(var f in o)et.call(o,f)&&Wa(r,f,o[f])}),od=na(function(r,o){Kr(o,bn(o),r)}),dc=na(function(r,o,f,g){Kr(o,bn(o),r,g)}),a5=na(function(r,o,f,g){Kr(o,Ar(o),r,g)}),l5=ui(ru);function s5(r,o){var f=Vn(r);return o==null?f:tu(f,o)}var u5=st(function(r,o){r=gt(r);var f=-1,g=o.length,x=g>2?o[2]:l;for(x&&y(o[0],o[1],x)&&(g=1);++f<g;)for(var L=o[f],P=bn(L),D=-1,B=P.length;++D<B;){var ne=P[D],ie=r[ne];(ie===l||fi(ie,ki[ne])&&!et.call(r,ne))&&(r[ne]=L[ne])}return r}),c5=st(function(r){return r.push(l,mu),en(ad,l,r)});function f5(r,o){return Ro(r,Re(o,3),nn)}function d5(r,o){return Ro(r,Re(o,3),Gl)}function h5(r,o){return r==null?r:Vl(r,Re(o,3),bn)}function p5(r,o){return r==null?r:cr(r,Re(o,3),bn)}function g5(r,o){return r&&nn(r,Re(o,3))}function v5(r,o){return r&&Gl(r,Re(o,3))}function b5(r){return r==null?[]:Za(r,Ar(r))}function m5(r){return r==null?[]:Za(r,bn(r))}function D1(r,o,f){var g=r==null?l:Hi(r,o);return g===l?f:g}function y5(r,o){return r!=null&&t(r,o,P0)}function $1(r,o){return r!=null&&t(r,o,E0)}var C5=yo(function(r,o,f){o!=null&&typeof o.toString!="function"&&(o=lo.call(o)),r[o]=f},R1(mn)),w5=yo(function(r,o,f){o!=null&&typeof o.toString!="function"&&(o=lo.call(o)),et.call(r,o)?r[o].push(f):r[o]=[f]},Re),x5=st(jo);function Ar(r){return vn(r)?Js(r):Yl(r)}function bn(r){return vn(r)?Js(r,!0):Bi(r)}function z5(r,o){var f={};return o=Re(o,3),nn(r,function(g,x,L){qn(f,o(g,x,L),g)}),f}function L5(r,o){var f={};return o=Re(o,3),nn(r,function(g,x,L){qn(f,x,o(g,x,L))}),f}var _5=na(function(r,o,f){Xl(r,o,f)}),ad=na(function(r,o,f,g){Xl(r,o,f,g)}),S5=ui(function(r,o){var f={};if(r==null)return f;var g=!1;o=Lt(o,function(L){return L=En(L,r),g||(g=L.length>1),L}),Kr(r,ls(r),f),g&&(f=Br(f,H|U|Z,tc));for(var x=o.length;x--;)ja(f,o[x]);return f});function M5(r,o){return ld(r,uc(Re(o)))}var k5=ui(function(r,o){return r==null?{}:H0(r,o)});function ld(r,o){if(r==null)return{};var f=Lt(ls(r),function(g){return[g]});return o=Re(o),B0(r,f,function(g,x){return o(g,x[0])})}function O5(r,o,f){o=En(o,r);var g=-1,x=o.length;for(x||(x=1,r=l);++g<x;){var L=r==null?l:r[_t(o[g])];L===l&&(g=x,L=f),r=zo(L)?L.call(r):L}return r}function T5(r,o,f){return r==null?r:ai(r,o,f)}function P5(r,o,f,g){return g=typeof g=="function"?g:l,r==null?r:ai(r,o,f,g)}var sd=pn(Ar),ud=pn(bn);function E5(r,o,f){var g=at(r),x=g||fa(r)||fs(r);if(o=Re(o,4),f==null){var L=r&&r.constructor;x?f=g?new L:[]:Kt(r)?f=zo(L)?Vn(Fo(r)):{}:f={}}return(x?cn:nn)(r,function(P,D,B){return o(f,P,D,B)}),f}function A5(r,o){return r==null?!0:ja(r,o)}function I5(r,o,f){return r==null?r:es(r,o,ts(f))}function D5(r,o,f,g){return g=typeof g=="function"?g:l,r==null?r:es(r,o,ts(f),g)}function ds(r){return r==null?[]:Ol(r,Ar(r))}function $5(r){return r==null?[]:Ol(r,bn(r))}function N5(r,o,f){return f===l&&(f=o,o=l),f!==l&&(f=Yn(f),f=f===f?f:0),o!==l&&(o=Yn(o),o=o===o?o:0),go(Yn(r),o,f)}function R5(r,o,f){return o=Lo(o),f===l?(f=o,o=0):f=Lo(f),r=Yn(r),Ko(r,o,f)}function H5(r,o,f){if(f&&typeof f!="boolean"&&y(r,o,f)&&(o=f=l),f===l&&(typeof o=="boolean"?(f=o,o=l):typeof r=="boolean"&&(f=r,r=l)),r===l&&o===l?(r=0,o=1):(r=Lo(r),o===l?(o=r,r=0):o=Lo(o)),r>o){var g=r;r=o,o=g}if(f||r%1||o%1){var x=Ai();return mr(r+x*(o-r+jc("1e-"+((x+"").length-1))),o)}return Ql(r,o)}var B5=ia(function(r,o,f){return o=o.toLowerCase(),r+(f?cd(o):o)});function cd(r){return N1(kt(r).toLowerCase())}function fd(r){return r=kt(r),r&&r.replace(La,u0).replace(Qu,"")}function F5(r,o,f){r=kt(r),o=Mr(o);var g=r.length;f=f===l?g:go(ut(f),0,g);var x=f;return f-=o.length,f>=0&&r.slice(f,x)==o}function W5(r){return r=kt(r),r&&Yr.test(r)?r.replace(ur,n1):r}function U5(r){return r=kt(r),r&&Rn.test(r)?r.replace(Ji,"\\$&"):r}var Z5=ia(function(r,o,f){return r+(f?"-":"")+o.toLowerCase()}),V5=ia(function(r,o,f){return r+(f?" ":"")+o.toLowerCase()}),G5=X0("toLowerCase");function q5(r,o,f){r=kt(r),o=ut(o);var g=o?ao(r):0;if(!o||g>=o)return r;var x=(o-g)/2;return os(Zo(x),f)+r+os(Uo(x),f)}function K5(r,o,f){r=kt(r),o=ut(o);var g=o?ao(r):0;return o&&g<o?r+os(o-g,f):r}function j5(r,o,f){r=kt(r),o=ut(o);var g=o?ao(r):0;return o&&g<o?os(o-g,f)+r:r}function Y5(r,o,f){return f||o==null?o=0:o&&(o=+o),Na(kt(r).replace(eo,""),o||0)}function X5(r,o,f){return(f?y(r,o,f):o===l)?o=1:o=ut(o),su(kt(r),o)}function Q5(){var r=arguments,o=kt(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var J5=ia(function(r,o,f){return r+(f?"_":"")+o.toLowerCase()});function e6(r,o,f){return f&&typeof f!="number"&&y(r,o,f)&&(o=f=l),f=f===l?Et:f>>>0,f?(r=kt(r),r&&(typeof o=="string"||o!=null&&!I1(o))&&(o=Mr(o),!o&&On(r))?Ui(fn(r),0,f):r.split(o,f)):[]}var t6=ia(function(r,o,f){return r+(f?" ":"")+N1(o)});function r6(r,o,f){return r=kt(r),f=f==null?0:go(ut(f),0,r.length),o=Mr(o),r.slice(f,f+o.length)==o}function n6(r,o,f){var g=z.templateSettings;f&&y(r,o,f)&&(o=l),r=kt(r),o=dc({},o,g,as);var x=dc({},o.imports,g.imports,as),L=Ar(x),P=Ol(x,L),D,B,ne=0,ie=o.interpolate||It,se="__p += '",ze=Mi((o.escape||It).source+"|"+ie.source+"|"+(ie===Ca?ti:It).source+"|"+(o.evaluate||It).source+"|$","g"),$e="//# sourceURL="+(et.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Is+"]")+`
|
|
667
|
+
`;r.replace(ze,function(Ge,pt,vt,In,an,Dn){return vt||(vt=In),se+=r.slice(ne,Dn).replace(ke,c0),pt&&(D=!0,se+=`' +
|
|
668
|
+
__e(`+pt+`) +
|
|
669
|
+
'`),an&&(B=!0,se+=`';
|
|
670
|
+
`+an+`;
|
|
671
|
+
__p += '`),vt&&(se+=`' +
|
|
672
|
+
((__t = (`+vt+`)) == null ? '' : __t) +
|
|
673
|
+
'`),ne=Dn+Ge.length,Ge}),se+=`';
|
|
674
|
+
`;var Ve=et.call(o,"variable")&&o.variable;if(!Ve)se=`with (obj) {
|
|
675
|
+
`+se+`
|
|
676
|
+
}
|
|
677
|
+
`;else if(Xr.test(Ve))throw new Qe(A);se=(B?se.replace(Gt,""):se).replace(Eo,"$1").replace(sr,"$1;"),se="function("+(Ve||"obj")+`) {
|
|
678
|
+
`+(Ve?"":`obj || (obj = {});
|
|
679
|
+
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(B?`, __j = Array.prototype.join;
|
|
680
|
+
function print() { __p += __j.call(arguments, '') }
|
|
681
|
+
`:`;
|
|
682
|
+
`)+se+`return __p
|
|
683
|
+
}`;var ct=hd(function(){return Ct(L,$e+"return "+se).apply(l,P)});if(ct.source=se,A1(ct))throw ct;return ct}function i6(r){return kt(r).toLowerCase()}function o6(r){return kt(r).toUpperCase()}function a6(r,o,f){if(r=kt(r),r&&(f||o===l))return Ea(r);if(!r||!(o=Mr(o)))return r;var g=fn(r),x=fn(o),L=Li(g,x),P=Tl(g,x)+1;return Ui(g,L,P).join("")}function l6(r,o,f){if(r=kt(r),r&&(f||o===l))return r.slice(0,Al(r)+1);if(!r||!(o=Mr(o)))return r;var g=fn(r),x=Tl(g,fn(o))+1;return Ui(g,0,x).join("")}function s6(r,o,f){if(r=kt(r),r&&(f||o===l))return r.replace(eo,"");if(!r||!(o=Mr(o)))return r;var g=fn(r),x=Li(g,fn(o));return Ui(g,x).join("")}function u6(r,o){var f=ve,g=ye;if(Kt(o)){var x="separator"in o?o.separator:x;f="length"in o?ut(o.length):f,g="omission"in o?Mr(o.omission):g}r=kt(r);var L=r.length;if(On(r)){var P=fn(r);L=P.length}if(f>=L)return r;var D=f-ao(g);if(D<1)return g;var B=P?Ui(P,0,D).join(""):r.slice(0,D);if(x===l)return B+g;if(P&&(D+=B.length-D),I1(x)){if(r.slice(D).search(x)){var ne,ie=B;for(x.global||(x=Mi(x.source,kt(to.exec(x))+"g")),x.lastIndex=0;ne=x.exec(ie);)var se=ne.index;B=B.slice(0,se===l?D:se)}}else if(r.indexOf(Mr(x),D)!=D){var ze=B.lastIndexOf(x);ze>-1&&(B=B.slice(0,ze))}return B+g}function c6(r){return r=kt(r),r&&Ao.test(r)?r.replace(Ln,Il):r}var f6=ia(function(r,o,f){return r+(f?" ":"")+o.toUpperCase()}),N1=X0("toUpperCase");function dd(r,o,f){return r=kt(r),o=f?l:o,o===l?Fn(r)?Tn(r):l0(r):r.match(o)||[]}var hd=st(function(r,o){try{return en(r,l,o)}catch(f){return A1(f)?f:new Qe(f)}}),d6=ui(function(r,o){return cn(o,function(f){f=_t(f),qn(r,f,P1(r[f],r))}),r});function h6(r){var o=r==null?0:r.length,f=Re();return r=o?Lt(r,function(g){if(typeof g[1]!="function")throw new qr(m);return[f(g[0]),g[1]]}):[],st(function(g){for(var x=-1;++x<o;){var L=r[x];if(en(L[0],this,g))return en(L[1],this,g)}})}function p6(r){return k0(Br(r,H))}function R1(r){return function(){return r}}function g6(r,o){return r==null||r!==r?o:r}var v6=Q0(),b6=Q0(!0);function mn(r){return r}function H1(r){return $0(typeof r=="function"?r:Br(r,H))}function m6(r){return N0(Br(r,H))}function y6(r,o){return ou(r,Br(o,H))}var C6=st(function(r,o){return function(f){return jo(f,r,o)}}),w6=st(function(r,o){return function(f){return jo(r,f,o)}});function B1(r,o,f){var g=Ar(o),x=Za(o,g);f==null&&!(Kt(o)&&(x.length||!g.length))&&(f=o,o=r,r=this,x=Za(o,Ar(o)));var L=!(Kt(f)&&"chain"in f)||!!f.chain,P=zo(r);return cn(x,function(D){var B=o[D];r[D]=B,P&&(r.prototype[D]=function(){var ne=this.__chain__;if(L||ne){var ie=r(this.__wrapped__),se=ie.__actions__=dr(this.__actions__);return se.push({func:B,args:arguments,thisArg:r}),ie.__chain__=ne,ie}return B.apply(r,zi([this.value()],arguments))})}),r}function x6(){return Ht._===this&&(Ht._=m0),this}function F1(){}function z6(r){return r=ut(r),st(function(o){return R0(o,r)})}var L6=aa(Lt),_6=aa(Ns),S6=aa(no);function pd(r){return C(r)?Bs(_t(r)):x1(r)}function M6(r){return function(o){return r==null?l:Hi(r,o)}}var k6=J0(),O6=J0(!0);function W1(){return[]}function U1(){return!1}function T6(){return{}}function P6(){return""}function E6(){return!0}function A6(r,o){if(r=ut(r),r<1||r>tt)return[];var f=Et,g=mr(r,Et);o=Re(o),r-=Et;for(var x=oo(g,o);++f<r;)o(f);return x}function I6(r){return at(r)?Lt(r,_t):An(r)?[r]:dr(ir(kt(r)))}function D6(r){var o=++Oi;return kt(r)+o}var $6=Xa(function(r,o){return r+o},0),N6=Qa("ceil"),R6=Xa(function(r,o){return r/o},1),H6=Qa("floor");function B6(r){return r&&r.length?Ua(r,mn,ql):l}function F6(r,o){return r&&r.length?Ua(r,Re(o,2),ql):l}function W6(r){return Hs(r,mn)}function U6(r,o){return Hs(r,Re(o,2))}function Z6(r){return r&&r.length?Ua(r,mn,Fi):l}function V6(r,o){return r&&r.length?Ua(r,Re(o,2),Fi):l}var G6=Xa(function(r,o){return r*o},1),q6=Qa("round"),K6=Xa(function(r,o){return r-o},0);function j6(r){return r&&r.length?Us(r,mn):0}function Y6(r,o){return r&&r.length?Us(r,Re(o,2)):0}return z.after=m4,z.ary=Vf,z.assign=o5,z.assignIn=od,z.assignInWith=dc,z.assignWith=a5,z.at=l5,z.before=Gf,z.bind=P1,z.bindAll=d6,z.bindKey=qf,z.castArray=T4,z.chain=Wf,z.chunk=ua,z.compact=Zi,z.concat=zr,z.cond=h6,z.conforms=p6,z.constant=R1,z.countBy=j2,z.create=s5,z.curry=Kf,z.curryRight=jf,z.debounce=Yf,z.defaults=u5,z.defaultsDeep=c5,z.defer=y4,z.delay=C4,z.difference=Kn,z.differenceBy=or,z.differenceWith=wu,z.drop=ci,z.dropRight=wo,z.dropRightWhile=xo,z.dropWhile=Er,z.fill=ca,z.filter=X2,z.flatMap=e4,z.flatMapDeep=t4,z.flatMapDepth=r4,z.flatten=Rf,z.flattenDeep=Yp,z.flattenDepth=Xp,z.flip=w4,z.flow=v6,z.flowRight=b6,z.fromPairs=Qp,z.functions=b5,z.functionsIn=m5,z.groupBy=n4,z.initial=e2,z.intersection=t2,z.intersectionBy=r2,z.intersectionWith=n2,z.invert=C5,z.invertBy=w5,z.invokeMap=o4,z.iteratee=H1,z.keyBy=a4,z.keys=Ar,z.keysIn=bn,z.map=ac,z.mapKeys=z5,z.mapValues=L5,z.matches=m6,z.matchesProperty=y6,z.memoize=sc,z.merge=_5,z.mergeWith=ad,z.method=C6,z.methodOf=w6,z.mixin=B1,z.negate=uc,z.nthArg=z6,z.omit=S5,z.omitBy=M5,z.once=x4,z.orderBy=l4,z.over=L6,z.overArgs=z4,z.overEvery=_6,z.overSome=S6,z.partial=E1,z.partialRight=Xf,z.partition=s4,z.pick=k5,z.pickBy=ld,z.property=pd,z.propertyOf=M6,z.pull=l2,z.pullAll=Bf,z.pullAllBy=s2,z.pullAllWith=u2,z.pullAt=c2,z.range=k6,z.rangeRight=O6,z.rearg=L4,z.reject=f4,z.remove=f2,z.rest=_4,z.reverse=O1,z.sampleSize=h4,z.set=T5,z.setWith=P5,z.shuffle=p4,z.slice=d2,z.sortBy=b4,z.sortedUniq=y2,z.sortedUniqBy=C2,z.split=e6,z.spread=S4,z.tail=w2,z.take=x2,z.takeRight=z2,z.takeRightWhile=L2,z.takeWhile=_2,z.tap=B2,z.throttle=M4,z.thru=oc,z.toArray=rd,z.toPairs=sd,z.toPairsIn=ud,z.toPath=I6,z.toPlainObject=id,z.transform=E5,z.unary=k4,z.union=S2,z.unionBy=M2,z.unionWith=k2,z.uniq=O2,z.uniqBy=T2,z.uniqWith=P2,z.unset=A5,z.unzip=T1,z.unzipWith=Ff,z.update=I5,z.updateWith=D5,z.values=ds,z.valuesIn=$5,z.without=E2,z.words=dd,z.wrap=O4,z.xor=A2,z.xorBy=I2,z.xorWith=D2,z.zip=$2,z.zipObject=N2,z.zipObjectDeep=R2,z.zipWith=H2,z.entries=sd,z.entriesIn=ud,z.extend=od,z.extendWith=dc,B1(z,z),z.add=$6,z.attempt=hd,z.camelCase=B5,z.capitalize=cd,z.ceil=N6,z.clamp=N5,z.clone=P4,z.cloneDeep=A4,z.cloneDeepWith=I4,z.cloneWith=E4,z.conformsTo=D4,z.deburr=fd,z.defaultTo=g6,z.divide=R6,z.endsWith=F5,z.eq=fi,z.escape=W5,z.escapeRegExp=U5,z.every=Y2,z.find=Q2,z.findIndex=cs,z.findKey=f5,z.findLast=J2,z.findLastIndex=Nf,z.findLastKey=d5,z.floor=H6,z.forEach=Uf,z.forEachRight=Zf,z.forIn=h5,z.forInRight=p5,z.forOwn=g5,z.forOwnRight=v5,z.get=D1,z.gt=$4,z.gte=N4,z.has=y5,z.hasIn=$1,z.head=Hf,z.identity=mn,z.includes=i4,z.indexOf=Jp,z.inRange=R5,z.invoke=x5,z.isArguments=rl,z.isArray=at,z.isArrayBuffer=R4,z.isArrayLike=vn,z.isArrayLikeObject=ar,z.isBoolean=H4,z.isBuffer=fa,z.isDate=B4,z.isElement=F4,z.isEmpty=W4,z.isEqual=U4,z.isEqualWith=Z4,z.isError=A1,z.isFinite=V4,z.isFunction=zo,z.isInteger=Qf,z.isLength=cc,z.isMap=Jf,z.isMatch=G4,z.isMatchWith=q4,z.isNaN=K4,z.isNative=j4,z.isNil=X4,z.isNull=Y4,z.isNumber=ed,z.isObject=Kt,z.isObjectLike=Qt,z.isPlainObject=xu,z.isRegExp=I1,z.isSafeInteger=Q4,z.isSet=td,z.isString=fc,z.isSymbol=An,z.isTypedArray=fs,z.isUndefined=J4,z.isWeakMap=e5,z.isWeakSet=t5,z.join=i2,z.kebabCase=Z5,z.last=jn,z.lastIndexOf=o2,z.lowerCase=V5,z.lowerFirst=G5,z.lt=r5,z.lte=n5,z.max=B6,z.maxBy=F6,z.mean=W6,z.meanBy=U6,z.min=Z6,z.minBy=V6,z.stubArray=W1,z.stubFalse=U1,z.stubObject=T6,z.stubString=P6,z.stubTrue=E6,z.multiply=G6,z.nth=a2,z.noConflict=x6,z.noop=F1,z.now=lc,z.pad=q5,z.padEnd=K5,z.padStart=j5,z.parseInt=Y5,z.random=H5,z.reduce=u4,z.reduceRight=c4,z.repeat=X5,z.replace=Q5,z.result=O5,z.round=q6,z.runInContext=R,z.sample=d4,z.size=g4,z.snakeCase=J5,z.some=v4,z.sortedIndex=h2,z.sortedIndexBy=p2,z.sortedIndexOf=g2,z.sortedLastIndex=v2,z.sortedLastIndexBy=b2,z.sortedLastIndexOf=m2,z.startCase=t6,z.startsWith=r6,z.subtract=K6,z.sum=j6,z.sumBy=Y6,z.template=n6,z.times=A6,z.toFinite=Lo,z.toInteger=ut,z.toLength=nd,z.toLower=i6,z.toNumber=Yn,z.toSafeInteger=i5,z.toString=kt,z.toUpper=o6,z.trim=a6,z.trimEnd=l6,z.trimStart=s6,z.truncate=u6,z.unescape=c6,z.uniqueId=D6,z.upperCase=f6,z.upperFirst=N1,z.each=Uf,z.eachRight=Zf,z.first=Hf,B1(z,function(){var r={};return nn(z,function(o,f){et.call(z.prototype,f)||(r[f]=o)}),r}(),{chain:!1}),z.VERSION=h,cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){z[r].placeholder=z}),cn(["drop","take"],function(r,o){dt.prototype[r]=function(f){f=f===l?1:Bt(ut(f),0);var g=this.__filtered__&&!o?new dt(this):this.clone();return g.__filtered__?g.__takeCount__=mr(f,g.__takeCount__):g.__views__.push({size:mr(f,Et),type:r+(g.__dir__<0?"Right":"")}),g},dt.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),cn(["filter","map","takeWhile"],function(r,o){var f=o+1,g=f==E||f==ee;dt.prototype[r]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Re(x,3),type:f}),L.__filtered__=L.__filtered__||g,L}}),cn(["head","last"],function(r,o){var f="take"+(o?"Right":"");dt.prototype[r]=function(){return this[f](1).value()[0]}}),cn(["initial","tail"],function(r,o){var f="drop"+(o?"":"Right");dt.prototype[r]=function(){return this.__filtered__?new dt(this):this[f](1)}}),dt.prototype.compact=function(){return this.filter(mn)},dt.prototype.find=function(r){return this.filter(r).head()},dt.prototype.findLast=function(r){return this.reverse().find(r)},dt.prototype.invokeMap=st(function(r,o){return typeof r=="function"?new dt(this):this.map(function(f){return jo(f,r,o)})}),dt.prototype.reject=function(r){return this.filter(uc(Re(r)))},dt.prototype.slice=function(r,o){r=ut(r);var f=this;return f.__filtered__&&(r>0||o<0)?new dt(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),o!==l&&(o=ut(o),f=o<0?f.dropRight(-o):f.take(o-r)),f)},dt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},dt.prototype.toArray=function(){return this.take(Et)},nn(dt.prototype,function(r,o){var f=/^(?:filter|find|map|reject)|While$/.test(o),g=/^(?:head|last)$/.test(o),x=z[g?"take"+(o=="last"?"Right":""):o],L=g||/^find/.test(o);!x||(z.prototype[o]=function(){var P=this.__wrapped__,D=g?[1]:arguments,B=P instanceof dt,ne=D[0],ie=B||at(P),se=function(pt){var vt=x.apply(z,zi([pt],D));return g&&ze?vt[0]:vt};ie&&f&&typeof ne=="function"&&ne.length!=1&&(B=ie=!1);var ze=this.__chain__,$e=!!this.__actions__.length,Ve=L&&!ze,ct=B&&!$e;if(!L&&ie){P=ct?P:new dt(this);var Ge=r.apply(P,D);return Ge.__actions__.push({func:oc,args:[se],thisArg:l}),new Hr(Ge,ze)}return Ve&&ct?r.apply(this,D):(Ge=this.thru(se),Ve?g?Ge.value()[0]:Ge.value():Ge)})}),cn(["pop","push","shift","sort","splice","unshift"],function(r){var o=Bo[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",g=/^(?:pop|shift)$/.test(r);z.prototype[r]=function(){var x=arguments;if(g&&!this.__chain__){var L=this.value();return o.apply(at(L)?L:[],x)}return this[f](function(P){return o.apply(at(P)?P:[],x)})}}),nn(dt.prototype,function(r,o){var f=z[o];if(f){var g=f.name+"";et.call(Go,g)||(Go[g]=[]),Go[g].push({name:o,func:f})}}),Go[Ya(l,Se).name]=[{name:"wrapper",func:l}],dt.prototype.clone=h1,dt.prototype.reverse=p1,dt.prototype.value=Gs,z.prototype.at=F2,z.prototype.chain=W2,z.prototype.commit=U2,z.prototype.next=Z2,z.prototype.plant=G2,z.prototype.reverse=q2,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=K2,z.prototype.first=z.prototype.head,Ti&&(z.prototype[Ti]=V2),z},Si=v0();Nr?((Nr.exports=Si)._=Si,ka._=Si):Ht._=Si}).call(gs)})($u,$u.exports);const Rg=$u.exports,Hg=X6({__proto__:null,default:Rg},[$u.exports]);var Bg=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,dl=(u,a,l,h)=>{for(var c=h>1?void 0:h?Fg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Bg(a,l,c),c};const zc=Ee("menu-item");exports.MenuItem=class extends We{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new Ph({detail:{item:this}}))}handleClick(u){u.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&u.stopPropagation()}handleKeyDown(){}get labelTemplate(){return J` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?J`
|
|
684
|
+
<brz-input-checkbox
|
|
685
|
+
?disabled=${this.disabled}
|
|
686
|
+
?checked=${this.selected}
|
|
687
|
+
>
|
|
688
|
+
${this.labelTemplate}
|
|
689
|
+
</brz-input-checkbox>
|
|
690
|
+
`:this.selectable?J`
|
|
691
|
+
<div class="selectable">
|
|
692
|
+
${this.selected?J`<brz-icon icon="checkBoxTick"></brz-icon>`:null}
|
|
693
|
+
${this.labelTemplate}
|
|
694
|
+
</div>
|
|
695
|
+
`:this.labelTemplate}render(){return J`
|
|
696
|
+
<li
|
|
697
|
+
class="menu-item"
|
|
698
|
+
role="menuitem"
|
|
699
|
+
@click=${this.handleClick}
|
|
700
|
+
@keydown=${this.handleKeyDown}
|
|
701
|
+
>
|
|
702
|
+
${this.itemTemplate}
|
|
703
|
+
</li>
|
|
704
|
+
`}};exports.MenuItem.styles=me`
|
|
705
|
+
:host {
|
|
706
|
+
--menu-item-min-height: var(--brz-spacing-8);
|
|
707
|
+
--menu-item-padding-y: calc(1.5 * var(--brz-spacing-1));
|
|
708
|
+
--menu-item-label-gutter: 26px;
|
|
709
|
+
|
|
710
|
+
cursor: pointer;
|
|
711
|
+
width: 100%;
|
|
662
712
|
}
|
|
663
713
|
|
|
664
|
-
|
|
665
|
-
|
|
714
|
+
:host([disabled]) {
|
|
715
|
+
cursor: default;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
:host([disabled]) .menu-item {
|
|
719
|
+
color: var(--brz-color-neutral-500);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.menu-item {
|
|
723
|
+
display: flex;
|
|
724
|
+
align-items: center;
|
|
725
|
+
min-height: var(--menu-item-min-height);
|
|
726
|
+
padding: 0 var(--brz-spacing-2);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.menu-item > * {
|
|
730
|
+
flex: 1 0 auto;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
:host([toggleable]) .menu-item {
|
|
734
|
+
padding: 0 var(--brz-spacing-3);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
:host([selected]) .selectable > brz-icon {
|
|
738
|
+
color: var(--brz-color-blue-600);
|
|
666
739
|
position: absolute;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
740
|
+
left: 0;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
:host(:not([disabled])) .menu-item:hover,
|
|
744
|
+
:host([highlighted]) .menu-item {
|
|
745
|
+
background-color: var(--brz-color-neutral-250);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.label {
|
|
749
|
+
flex-basis: 100%;
|
|
750
|
+
padding: var(--menu-item-padding-y) 0;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.selectable {
|
|
754
|
+
display: flex;
|
|
755
|
+
align-items: center;
|
|
756
|
+
padding-left: var(--menu-item-label-gutter);
|
|
757
|
+
position: relative;
|
|
758
|
+
}
|
|
759
|
+
`;dl([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);dl([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);dl([W({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);dl([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);dl([W({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);dl([W({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=dl([Q(zc)],exports.MenuItem);class Ph extends CustomEvent{constructor(a={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...a})}}var Wg=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,ba=(u,a,l,h)=>{for(var c=h>1?void 0:h?Ug(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Wg(a,l,c),c};const Eh=Ee("menu"),Vi="selectAll",Ah=["small","medium","large"];exports.Menu=class extends We{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(u){var a;super.updated(u),u.has("highlightedIndex")&&((a=this.highlightedItem)==null||a.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(u){u.preventDefault();const{key:a}=u,l=({before:c,after:v})=>(m,A)=>m.hidden?!1:c===void 0&&v===void 0||c!==void 0&&A<c||v!==void 0&&A>v;this.clearHighlightedItem();const h=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,h[this.highlightedIndex].highlighted=!0;return}a==="ArrowUp"&&(this.highlightedIndex=$u.exports.findLastIndex(h,l({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=h.length-1)),a==="ArrowDown"&&(this.highlightedIndex=h.findIndex(l({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),h[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(u){if(u.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(u=>u.selected)}getActiveMenuItem(u){return u?u.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(u){if(!this.selectable)return this.bypassSelectedState();if(u.value===void 0)throw new Error("No value found for MenuItem");if(!u.disabled){if(this.multiselect)u.toggle();else{const[a]=this.selectedItems;a==null||a.deselect(),u.select()}this.updateSelected(u.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(u){const a=this.selected.some(h=>u===h);if(this.multiselect&&a)return this.selected=this.selected.filter(h=>u!==h);a||(this.selected=this.multiselect?[...this.selected,u]:[u])}handleMenuItemSelect(u){u.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(u))}emitSelection(){this.dispatchEvent(new Dh({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(u){var a,l;(l=(a=this.keyBindings)[u.key])==null||l.call(a,u)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new Ih),this.reset()}handleTabKey(u){u.preventDefault(),this.emitBlur()}applyPropsToChildren(u){!Zg(u)||u.forEach(a=>{var l;a.selectable=this.selectable,a.toggleable=this.multiselect,a.id!==Vi&&(a.selected=a.value?(l=this.selected)==null?void 0:l.includes(a.value):!1)})}handleSlotChange(u){const a=u.target.assignedElements({flatten:!0});this.applyPropsToChildren(a)}handleVirtualListUpdate({detail:{itemElements:u}}){this.applyPropsToChildren(u),this.virtualListMenuItems=u}render(){return J`
|
|
760
|
+
<ul
|
|
761
|
+
class="menu"
|
|
762
|
+
role="menu"
|
|
763
|
+
tabindex="-1"
|
|
764
|
+
@brz-menu-item-select=${this.handleMenuItemSelect}
|
|
765
|
+
@brz-virtual-list-update=${this.handleVirtualListUpdate}
|
|
766
|
+
>
|
|
767
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
768
|
+
</ul>
|
|
769
|
+
`}};exports.Menu.styles=me`
|
|
770
|
+
:host {
|
|
771
|
+
--brz-list-max-height: 14rem;
|
|
772
|
+
--brz-menu-padding-y: var(--brz-spacing-1);
|
|
773
|
+
|
|
774
|
+
display: inline-block;
|
|
673
775
|
border-radius: var(--brz-border-radius-medium);
|
|
776
|
+
box-sizing: border-box;
|
|
777
|
+
box-shadow: var(--brz-box-shadow-menu);
|
|
778
|
+
border: solid var(--brz-spacing-px) var(--brz-color-neutral-300);
|
|
674
779
|
background-color: var(--brz-color-neutral-0);
|
|
675
|
-
|
|
780
|
+
padding: calc(var(--brz-menu-padding-y) - var(--brz-spacing-px)) 0;
|
|
781
|
+
max-height: calc(
|
|
782
|
+
var(--brz-list-max-height) + (2 * var(--brz-menu-padding-y))
|
|
783
|
+
);
|
|
784
|
+
overflow: hidden;
|
|
785
|
+
overflow-y: auto;
|
|
676
786
|
}
|
|
677
787
|
|
|
678
|
-
|
|
679
|
-
|
|
788
|
+
:host([size='small']) {
|
|
789
|
+
--brz-menu-width: 10rem;
|
|
680
790
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
cursor: pointer;
|
|
685
|
-
font-size: var(--brz-font-size);
|
|
686
|
-
color: var(--brz-color-text);
|
|
687
|
-
text-decoration: none;
|
|
688
|
-
display: block;
|
|
689
|
-
margin: 6px 0;
|
|
690
|
-
padding: 6px 5px 6px 11px;
|
|
791
|
+
|
|
792
|
+
:host([size='medium']) {
|
|
793
|
+
--brz-menu-width: 16rem;
|
|
691
794
|
}
|
|
692
795
|
|
|
693
|
-
|
|
694
|
-
|
|
796
|
+
:host([size='large']) {
|
|
797
|
+
--brz-menu-width: 20rem;
|
|
695
798
|
}
|
|
696
|
-
|
|
799
|
+
|
|
800
|
+
:host .menu {
|
|
801
|
+
margin: 0;
|
|
802
|
+
width: var(--brz-menu-width, 10rem);
|
|
803
|
+
padding: 0;
|
|
804
|
+
}
|
|
805
|
+
`;ba([W({type:Boolean})],exports.Menu.prototype,"multiselect",2);ba([W({type:Boolean})],exports.Menu.prototype,"selectable",2);ba([W({type:Array})],exports.Menu.prototype,"selected",2);ba([W({reflect:!0})],exports.Menu.prototype,"size",2);ba([lt()],exports.Menu.prototype,"highlightedIndex",2);ba([lt()],exports.Menu.prototype,"virtualListMenuItems",2);ba([hf({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=ba([Q(Eh)],exports.Menu);const Zg=u=>u[0]instanceof exports.MenuItem;class Ih extends CustomEvent{constructor(a={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...a})}}class Dh extends CustomEvent{constructor(a={}){super("brz-menu-select",{bubbles:!0,composed:!0,...a})}}var Vg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,ko=(u,a,l,h)=>{for(var c=h>1?void 0:h?Gg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Vg(a,l,c),c};const $h=Ee("dropdown-menu"),qg=[...Ah,"fluid"];exports.DropdownMenu=class extends We{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[]}updated(u){super.updated(u),this.size==="fluid"&&(this.fluidWidth=this.slottedElements[0].clientWidth)}handleOpen(){this.menu.focus()}handleClose(){this.slottedElements[0].focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var u;(u=this.popover)==null||u.updatePosition()}render(){return J`
|
|
806
|
+
<brz-popover
|
|
807
|
+
trigger="click"
|
|
808
|
+
placement="bottom-start"
|
|
809
|
+
@brz-popover-after-open=${this.handleOpen}
|
|
810
|
+
@brz-popover-close=${this.handleClose}
|
|
811
|
+
is-fixed
|
|
812
|
+
>
|
|
813
|
+
<slot></slot>
|
|
814
|
+
|
|
815
|
+
<brz-menu
|
|
816
|
+
slot="content"
|
|
817
|
+
.selected=${this.selected}
|
|
818
|
+
.size=${this.size!=="fluid"&&this.size}
|
|
819
|
+
?multiselect=${this.multiselect}
|
|
820
|
+
?selectable=${this.selectable}
|
|
821
|
+
@brz-menu-blur=${this.handleBlur}
|
|
822
|
+
@brz-menu-select=${this.handleSelect}
|
|
823
|
+
style=${this.size==="fluid"?`--brz-menu-width: ${this.fluidWidth}px`:Jt}
|
|
824
|
+
>
|
|
825
|
+
<slot name="options"></slot>
|
|
826
|
+
</brz-menu>
|
|
827
|
+
</brz-popover>
|
|
828
|
+
`}};exports.DropdownMenu.styles=me`
|
|
829
|
+
${_s(":focus-within brz-menu:focus-visible")};
|
|
830
|
+
`;ko([W({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);ko([W({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);ko([W({type:Array})],exports.DropdownMenu.prototype,"selected",2);ko([W({reflect:!0})],exports.DropdownMenu.prototype,"size",2);ko([lt()],exports.DropdownMenu.prototype,"fluidWidth",2);ko([Ls("brz-menu")],exports.DropdownMenu.prototype,"menu",2);ko([Ls("brz-popover")],exports.DropdownMenu.prototype,"popover",2);ko([hf()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=ko([Q($h)],exports.DropdownMenu);var Kg=Object.defineProperty,jg=Object.getOwnPropertyDescriptor,Nh=(u,a,l,h)=>{for(var c=h>1?void 0:h?jg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Kg(a,l,c),c};const Rh=Ee("combo-box"),Hh=Ee("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=Nh([Q(Rh)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=Nh([Q(Hh)],exports.ComboBoxOption);var Yg=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,Bu=(u,a,l,h)=>{for(var c=h>1?void 0:h?Xg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Yg(a,l,c),c};const Bh=Ee("modal");class _f extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends We{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=u=>{if(u.key==="Escape")return this.handleClose(u)},this.handleClose=u=>{u instanceof MouseEvent&&this.noClose||u instanceof MouseEvent&&u.target!==this.overlay||(u.stopPropagation(),this.dispatchEvent(new _f))}}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(u){u.target===this.overlay&&(this.shown=!1)}render(){return J`
|
|
697
831
|
<brz-fade-in-out ?shown=${this.open}>
|
|
698
832
|
<div
|
|
699
833
|
id="overlay"
|
|
700
|
-
class="${
|
|
834
|
+
class="${pa({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
|
|
701
835
|
@mousedown=${this.handleClose}
|
|
702
836
|
@keyup=${()=>{}}
|
|
703
837
|
@transitionend=${this.handleTransitionEnd}
|
|
@@ -767,7 +901,7 @@
|
|
|
767
901
|
::slotted(sp-modal-body:first-child) {
|
|
768
902
|
padding-top: var(--brz-spacing-10);
|
|
769
903
|
}
|
|
770
|
-
`;
|
|
904
|
+
`;Bu([W({type:String})],exports.Modal.prototype,"size",2);Bu([W({type:Boolean})],exports.Modal.prototype,"open",2);Bu([W({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Bu([W({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=Bu([Q(Bh)],exports.Modal);function lf(u,a){if(u){if(u instanceof a)return u;if(u instanceof ShadowRoot)return lf(u.host,a);if("parentNode"in u)return lf(u.parentElement||u.parentNode,a)}return null}var Qg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,ji=(u,a,l,h)=>{for(var c=h>1?void 0:h?Jg(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Qg(a,l,c),c};const Fh=Ee("split-row"),Wh=Ee("action-bar");exports.SplitRow=class extends We{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return J`
|
|
771
905
|
<brz-row vertical-align=${this.verticalAlign}>
|
|
772
906
|
<div class="left">
|
|
773
907
|
<slot name="left"></slot>
|
|
@@ -805,7 +939,7 @@
|
|
|
805
939
|
:host([right-expand]) .right {
|
|
806
940
|
flex: 1;
|
|
807
941
|
}
|
|
808
|
-
`;ji([
|
|
942
|
+
`;ji([W({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);ji([W({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);ji([W({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);ji([W({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);ji([W({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=ji([Q(Fh)],exports.SplitRow);exports.ActionBar=class extends We{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return J`
|
|
809
943
|
<brz-split-row
|
|
810
944
|
vertical-align="middle"
|
|
811
945
|
?left-expand=${this.leftExpand}
|
|
@@ -823,7 +957,7 @@
|
|
|
823
957
|
:host([no-border]) brz-split-row {
|
|
824
958
|
box-shadow: none;
|
|
825
959
|
}
|
|
826
|
-
`;ji([
|
|
960
|
+
`;ji([W({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);ji([W({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);ji([W({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=ji([Q(Wh)],exports.ActionBar);const ev=u=>u.viewBox!==void 0,tv={arrowDown:{svg:j`
|
|
827
961
|
<title>Asset 36</title>
|
|
828
962
|
<g data-name="Layer 2">
|
|
829
963
|
<g data-name="Layer 1">
|
|
@@ -1097,7 +1231,7 @@
|
|
|
1097
1231
|
C7,14.1,7,14.1,7,14.1z"/>
|
|
1098
1232
|
<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
|
|
1099
1233
|
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
|
|
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:j`<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:j`<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)"/>`}},
|
|
1234
|
+
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:j`<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:j`<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)"/>`}},rv="0 0 18 18",Uh=u=>ev(u)?u:{svg:u,viewBox:rv},Sf={actions:j`
|
|
1101
1235
|
<g stroke="none" stroke-width="1" fill-rule="evenodd">
|
|
1102
1236
|
<g transform="translate(-0.002970, 0.000000)">
|
|
1103
1237
|
<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>
|
|
@@ -1562,7 +1696,7 @@
|
|
|
1562
1696
|
<circle class="st0" cx="9" cy="13" r="1"/>
|
|
1563
1697
|
<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"/>
|
|
1564
1698
|
</g>
|
|
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:j`<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:j`<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"
|
|
1699
|
+
<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:j`<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:j`<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"/>`,...tv},nv=Object.keys(Sf);var iv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,Mf=(u,a,l,h)=>{for(var c=h>1?void 0:h?ov(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&iv(a,l,c),c};const Zh=Ee("icon");exports.Icon=class extends We{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:u,viewBox:a}=Uh(Sf[this.icon]);return J`
|
|
1566
1700
|
<svg
|
|
1567
1701
|
role="presentation"
|
|
1568
1702
|
width=${this.size}
|
|
@@ -1580,7 +1714,7 @@
|
|
|
1580
1714
|
svg {
|
|
1581
1715
|
fill: currentColor;
|
|
1582
1716
|
}
|
|
1583
|
-
`;
|
|
1717
|
+
`;Mf([W({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Mf([W({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Mf([Q(Zh)],exports.Icon);var av=Object.defineProperty,lv=Object.getOwnPropertyDescriptor,Ic=(u,a,l,h)=>{for(var c=h>1?void 0:h?lv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&av(a,l,c),c};const Vh=Ee("modal-header"),Gh=Ee("modal-body"),qh=Ee("modal-footer");exports.ModalHeader=class extends We{get _noClose(){var u;return(u=lf(this.parentElement,exports.Modal))==null?void 0:u.noClose}_handleClickClose(){this.dispatchEvent(new _f)}render(){return J`
|
|
1584
1718
|
<brz-heading size="xl"><slot></slot></brz-heading>
|
|
1585
1719
|
${this._noClose?void 0:J`
|
|
1586
1720
|
<brz-button
|
|
@@ -1609,7 +1743,7 @@
|
|
|
1609
1743
|
brz-button.close {
|
|
1610
1744
|
margin-right: calc(0px - var(--brz-spacing-2));
|
|
1611
1745
|
}
|
|
1612
|
-
`;exports.ModalHeader=
|
|
1746
|
+
`;exports.ModalHeader=Ic([Q(Vh)],exports.ModalHeader);exports.ModalBody=class extends We{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 J`<slot></slot>`}};exports.ModalBody.styles=me`
|
|
1613
1747
|
:host {
|
|
1614
1748
|
display: block;
|
|
1615
1749
|
padding: var(--brz-spacing-2) var(--brz-spacing-6) var(--brz-spacing-5)
|
|
@@ -1620,7 +1754,7 @@
|
|
|
1620
1754
|
:host([scrollable]) {
|
|
1621
1755
|
border-bottom: 1px solid var(--brz-color-neutral-300);
|
|
1622
1756
|
}
|
|
1623
|
-
`;
|
|
1757
|
+
`;Ic([W({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Ic([Q(Gh)],exports.ModalBody);exports.ModalFooter=class extends We{render(){return J`
|
|
1624
1758
|
<brz-split-row vertical-align="middle">
|
|
1625
1759
|
<slot slot="left" name="left"></slot>
|
|
1626
1760
|
<slot slot="right" name="right"></slot>
|
|
@@ -1629,7 +1763,7 @@
|
|
|
1629
1763
|
:host {
|
|
1630
1764
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
1631
1765
|
}
|
|
1632
|
-
`;exports.ModalFooter=
|
|
1766
|
+
`;exports.ModalFooter=Ic([Q(qh)],exports.ModalFooter);var sv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,Kh=(u,a,l,h)=>{for(var c=h>1?void 0:h?uv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&sv(a,l,c),c};const jh=Ee("confirmation-dialog");class Yh extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class Xh extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends We{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Yh)}handleConfirm(){this.dispatchEvent(new Xh)}render(){return J`<brz-modal size="small" ?open=${this.open} noClose>
|
|
1633
1767
|
<brz-modal-body>
|
|
1634
1768
|
<slot name="body"></slot>
|
|
1635
1769
|
</brz-modal-body>
|
|
@@ -1643,7 +1777,7 @@
|
|
|
1643
1777
|
</brz-button>
|
|
1644
1778
|
</brz-button-group>
|
|
1645
1779
|
</brz-modal-footer>
|
|
1646
|
-
</brz-modal>`}}
|
|
1780
|
+
</brz-modal>`}};Kh([W({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=Kh([Q(jh)],exports.ConfirmationDialog);var cv=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,hl=(u,a,l,h)=>{for(var c=h>1?void 0:h?fv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&cv(a,l,c),c};class Yi extends We{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(a){this.value=a.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(a){this.useProxy&&this.updateProxyInput()}}hl([W({type:Boolean})],Yi.prototype,"disabled",2);hl([W({type:Boolean,reflect:!0})],Yi.prototype,"invalid",2);hl([W({type:String})],Yi.prototype,"name",2);hl([W({type:String})],Yi.prototype,"id",2);hl([W({type:String})],Yi.prototype,"value",2);hl([lt()],Yi.prototype,"proxyInput",2);hl([lt()],Yi.prototype,"useProxy",2);var dv=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,Ss=(u,a,l,h)=>{for(var c=h>1?void 0:h?hv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&dv(a,l,c),c};const Qh=Ee("input-checkbox"),hi={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Yi{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=hi.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(u){u.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case hi.Checked:this.checked=!1;break;case hi.Empty:this.checked=!0;break;case hi.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 hi.Checked:return J`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case hi.Indeterminate:return J`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case hi.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?hi.Checked:this.indeterminate?hi.Indeterminate:hi.Empty,J` <label>
|
|
1647
1781
|
<div
|
|
1648
1782
|
class="checkbox"
|
|
1649
1783
|
tabindex=${this.disabled?"-1":"0"}
|
|
@@ -1656,7 +1790,7 @@
|
|
|
1656
1790
|
@change=${this.onInput}
|
|
1657
1791
|
.value=${this.value}
|
|
1658
1792
|
type="checkbox"
|
|
1659
|
-
?checked=${this.checkboxState===
|
|
1793
|
+
?checked=${this.checkboxState===hi.Checked}
|
|
1660
1794
|
aria-invalid=${$t(this.invalid?this.invalid:void 0)}
|
|
1661
1795
|
id=${this.id}
|
|
1662
1796
|
?disabled=${this.disabled}
|
|
@@ -1693,7 +1827,7 @@
|
|
|
1693
1827
|
border-color: inherit;
|
|
1694
1828
|
}
|
|
1695
1829
|
|
|
1696
|
-
${
|
|
1830
|
+
${_s(".checkbox")}
|
|
1697
1831
|
|
|
1698
1832
|
.checkbox {
|
|
1699
1833
|
width: var(--brz-checkbox-size);
|
|
@@ -1716,16 +1850,16 @@
|
|
|
1716
1850
|
position: absolute;
|
|
1717
1851
|
left: 0;
|
|
1718
1852
|
}
|
|
1719
|
-
`];
|
|
1853
|
+
`];Ss([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Ss([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Ss([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Ss([lt()],exports.InputCheckbox.prototype,"checkboxState",2);Ss([lt()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Ss([Q(Qh)],exports.InputCheckbox);var pv=Object.defineProperty,gv=Object.getOwnPropertyDescriptor,vv=(u,a,l,h)=>{for(var c=h>1?void 0:h?gv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&pv(a,l,c),c};const bv=Ee("input-guide");let Lc=class extends We{render(){return J` <slot></slot> `}};Lc.styles=me`
|
|
1720
1854
|
:host {
|
|
1721
1855
|
font-size: var(--brz-font-size-xs);
|
|
1722
1856
|
}
|
|
1723
|
-
`;
|
|
1857
|
+
`;Lc=vv([Q(bv)],Lc);var mv=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,Cv=(u,a,l,h)=>{for(var c=h>1?void 0:h?yv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&mv(a,l,c),c};const Jh=Ee("input-error");exports.InputError=class extends We{render(){return J` <slot></slot> `}};exports.InputError.styles=me`
|
|
1724
1858
|
:host {
|
|
1725
1859
|
font-size: var(--brz-font-size-sm);
|
|
1726
1860
|
color: var(--brz-color-error);
|
|
1727
1861
|
}
|
|
1728
|
-
`;exports.InputError=
|
|
1862
|
+
`;exports.InputError=Cv([Q(Jh)],exports.InputError);var wv=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,ma=(u,a,l,h)=>{for(var c=h>1?void 0:h?xv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&wv(a,l,c),c};const ep=Ee("labeled-input"),tp=Ee("input-label"),zv=["x-small","small","medium","large","x-large","auto","full"],Lv=me`
|
|
1729
1863
|
.size-x-small {
|
|
1730
1864
|
width: 80px;
|
|
1731
1865
|
}
|
|
@@ -1749,7 +1883,7 @@
|
|
|
1749
1883
|
.size-full {
|
|
1750
1884
|
width: 100%;
|
|
1751
1885
|
}
|
|
1752
|
-
`,
|
|
1886
|
+
`,_v=me`
|
|
1753
1887
|
.container {
|
|
1754
1888
|
display: flex;
|
|
1755
1889
|
}
|
|
@@ -1794,7 +1928,7 @@
|
|
|
1794
1928
|
brz-split-row {
|
|
1795
1929
|
text-align: right;
|
|
1796
1930
|
}
|
|
1797
|
-
`,
|
|
1931
|
+
`,Sv=me`
|
|
1798
1932
|
.guide {
|
|
1799
1933
|
display: flex;
|
|
1800
1934
|
}
|
|
@@ -1803,7 +1937,7 @@
|
|
|
1803
1937
|
margin-left: auto;
|
|
1804
1938
|
white-space: nowrap;
|
|
1805
1939
|
}
|
|
1806
|
-
`,
|
|
1940
|
+
`,Mv=["side","top"];exports.LabeledInput=class extends Yi{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasPrompt=!1,this.hasError=!1}handleLabelChange(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector('slot[name="label"]');this.hasLabel=u.assignedNodes().length>0}handlePromptChange(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector('slot[name="prompt"]');this.hasPrompt=u.assignedNodes().length>0}handleErrorChange(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector('slot[name="error"]');this.hasError=u.assignedNodes().length>0}renderInput(){return J`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){const u=`size-${this.size}`;return J`
|
|
1807
1941
|
${this.labelPosition==="side"?J`<brz-split-row
|
|
1808
1942
|
class=${u}
|
|
1809
1943
|
style=${u==="size-full"?"":"margin-left: 180px"}
|
|
@@ -1813,7 +1947,7 @@
|
|
|
1813
1947
|
<div class=${this.labelPosition==="top"?u:"container"}>
|
|
1814
1948
|
<brz-split-row
|
|
1815
1949
|
no-gap
|
|
1816
|
-
class=${
|
|
1950
|
+
class=${pa({"has-label":this.hasLabel,[u]:this.hasPrompt})}
|
|
1817
1951
|
>
|
|
1818
1952
|
<label slot="left" for=${this.id} class="field-label">
|
|
1819
1953
|
<brz-input-label>
|
|
@@ -1828,7 +1962,7 @@
|
|
|
1828
1962
|
${this.renderInputContainer()}
|
|
1829
1963
|
|
|
1830
1964
|
<div
|
|
1831
|
-
class=${
|
|
1965
|
+
class=${pa({guide:!0,"has-error":this.hasError})}
|
|
1832
1966
|
>
|
|
1833
1967
|
<brz-input-error>
|
|
1834
1968
|
<slot @slotchange=${this.handleErrorChange} name="error"></slot>
|
|
@@ -1838,14 +1972,14 @@
|
|
|
1838
1972
|
</div>
|
|
1839
1973
|
</div>
|
|
1840
1974
|
</div>
|
|
1841
|
-
`}};exports.LabeledInput.styles=[
|
|
1975
|
+
`}};exports.LabeledInput.styles=[Lv,_v,Sv];ma([W({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);ma([W({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);ma([W({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);ma([lt()],exports.LabeledInput.prototype,"hasLabel",2);ma([lt()],exports.LabeledInput.prototype,"hasPrompt",2);ma([lt()],exports.LabeledInput.prototype,"hasError",2);exports.LabeledInput=ma([Q(ep)],exports.LabeledInput);exports.InputLabel=class extends We{render(){return J`<slot></slot>`}};exports.InputLabel.styles=me`
|
|
1842
1976
|
:host {
|
|
1843
1977
|
display: inline-block;
|
|
1844
1978
|
color: var(--brz-color-neutral-850);
|
|
1845
1979
|
font-weight: var(--brz-font-weight-medium);
|
|
1846
1980
|
line-height: var(--brz-line-height);
|
|
1847
1981
|
}
|
|
1848
|
-
`;exports.InputLabel=
|
|
1982
|
+
`;exports.InputLabel=ma([Q(tp)],exports.InputLabel);var kv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,Dc=(u,a,l,h)=>{for(var c=h>1?void 0:h?Ov(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&kv(a,l,c),c};const Tv=me`
|
|
1849
1983
|
:host {
|
|
1850
1984
|
--input-text-color: var(--brz-color-neutral-850);
|
|
1851
1985
|
--input-font: var(--brz-font-family);
|
|
@@ -1940,7 +2074,7 @@
|
|
|
1940
2074
|
:host([trailing-icon]) input:not([type='search']) {
|
|
1941
2075
|
padding-right: var(--input-icon-offset);
|
|
1942
2076
|
}
|
|
1943
|
-
`;class
|
|
2077
|
+
`;class ln extends exports.LabeledInput{constructor(){super(...arguments),this.readonly=!1}renderInputContainer(){return J`
|
|
1944
2078
|
<div class="input-container">
|
|
1945
2079
|
${this.leadingIcon?J`<brz-icon icon=${this.leadingIcon} class="leading"></brz-icon>`:null}
|
|
1946
2080
|
${this.renderInput()}
|
|
@@ -1949,7 +2083,7 @@
|
|
|
1949
2083
|
class="trailing"
|
|
1950
2084
|
></brz-icon>`:null}
|
|
1951
2085
|
</div>
|
|
1952
|
-
`}}
|
|
2086
|
+
`}}ln.styles=[...exports.LabeledInput.styles,Tv];Dc([W({type:Boolean})],ln.prototype,"readonly",2);Dc([W({type:String})],ln.prototype,"placeholder",2);Dc([W({type:String,reflect:!0,attribute:"leading-icon"})],ln.prototype,"leadingIcon",2);Dc([W({type:String,reflect:!0,attribute:"trailing-icon"})],ln.prototype,"trailingIcon",2);var Pv=Object.defineProperty,Ev=Object.getOwnPropertyDescriptor,$c=(u,a,l,h)=>{for(var c=h>1?void 0:h?Ev(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Pv(a,l,c),c};const rp=Ee("input-text");exports.InputText=class extends ln{constructor(){super(...arguments),this.size="medium"}renderInput(){return J`
|
|
1953
2087
|
<input
|
|
1954
2088
|
@input=${this.onInput}
|
|
1955
2089
|
.value=${$t(this.value)}
|
|
@@ -1961,11 +2095,11 @@
|
|
|
1961
2095
|
?disabled=${this.disabled}
|
|
1962
2096
|
?readonly=${this.readonly}
|
|
1963
2097
|
/>
|
|
1964
|
-
`}};exports.InputText.styles=[...
|
|
2098
|
+
`}};exports.InputText.styles=[...ln.styles,me`
|
|
1965
2099
|
input {
|
|
1966
2100
|
height: 36px;
|
|
1967
2101
|
}
|
|
1968
|
-
`]
|
|
2102
|
+
`];$c([W({type:String})],exports.InputText.prototype,"value",2);$c([W({type:String,reflect:!0})],exports.InputText.prototype,"size",2);$c([W({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=$c([Q(rp)],exports.InputText);var Av=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,Nc=(u,a,l,h)=>{for(var c=h>1?void 0:h?Iv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Av(a,l,c),c};const np=Ee("input-textarea");exports.InputTextarea=class extends ln{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var l;if(!this.maxlength)return null;const u=((l=this.value)==null?void 0:l.length)||0,a=J`${u} of ${this.maxlength}`;return u>=this.maxlength?J`<brz-input-error>${a}</brz-input-error>`:J`<brz-input-guide>${a}</brz-input-guide>`}renderInput(){var u;return J`
|
|
1969
2103
|
<textarea
|
|
1970
2104
|
@input=${this.onInput}
|
|
1971
2105
|
.value=${(u=this.value)!=null?u:""}
|
|
@@ -1976,12 +2110,12 @@
|
|
|
1976
2110
|
?disabled=${this.disabled}
|
|
1977
2111
|
?readonly=${this.readonly}
|
|
1978
2112
|
/>
|
|
1979
|
-
`}};exports.InputTextarea.styles=[...
|
|
2113
|
+
`}};exports.InputTextarea.styles=[...ln.styles,me`
|
|
1980
2114
|
textarea {
|
|
1981
2115
|
height: 100px;
|
|
1982
2116
|
resize: none;
|
|
1983
2117
|
}
|
|
1984
|
-
`];
|
|
2118
|
+
`];Nc([W({type:String})],exports.InputTextarea.prototype,"value",2);Nc([W({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Nc([W({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Nc([Q(np)],exports.InputTextarea);var Dv=Object.defineProperty,$v=Object.getOwnPropertyDescriptor,Fu=(u,a,l,h)=>{for(var c=h>1?void 0:h?$v(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Dv(a,l,c),c};const ip=Ee("input-number"),Nv=me`
|
|
1985
2119
|
/* Chrome, Safari, Edge, Opera */
|
|
1986
2120
|
input::-webkit-outer-spin-button,
|
|
1987
2121
|
input::-webkit-inner-spin-button {
|
|
@@ -1993,7 +2127,7 @@
|
|
|
1993
2127
|
input[type='number'] {
|
|
1994
2128
|
-moz-appearance: textfield;
|
|
1995
2129
|
}
|
|
1996
|
-
`,
|
|
2130
|
+
`,op=["e"],ap=u=>op.includes(u.toLowerCase()),Rv=u=>!!op.find(a=>u.toLowerCase().includes(a)),Hv=u=>{ap(u.key)&&u.preventDefault()},Bv=u=>{var h;const{clipboardData:a}=u||window,l=(h=a==null?void 0:a.getData("text"))==null?void 0:h.toLowerCase();!l||(ap(l)||Rv(l))&&(u.stopPropagation(),u.preventDefault())};exports.InputNumber=class extends ln{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector("input");return u==null||u.focus(),u}handleIncrease(){var a;const u=this.getInput();u==null||u.stepUp(),this.handleSteppedChange((a=u==null?void 0:u.value)!=null?a:"")}handleDecrease(){var a;const u=this.getInput();u==null||u.stepDown(),this.handleSteppedChange((a=u==null?void 0:u.value)!=null?a:"")}handleSteppedChange(u){this.value=u,this.dispatchChange()}get stepperLayout(){return this.hasNoStepper?null:J`
|
|
1997
2131
|
<div class="stepper-container">
|
|
1998
2132
|
<button
|
|
1999
2133
|
@click=${this.handleDecrease}
|
|
@@ -2017,8 +2151,8 @@
|
|
|
2017
2151
|
`}renderInput(){return J`<div class="container">
|
|
2018
2152
|
${this.stepperLayout}
|
|
2019
2153
|
<input
|
|
2020
|
-
@keydown=${
|
|
2021
|
-
@paste=${
|
|
2154
|
+
@keydown=${Hv}
|
|
2155
|
+
@paste=${Bv}
|
|
2022
2156
|
@input=${this.onInput}
|
|
2023
2157
|
@change=${this.onInput}
|
|
2024
2158
|
.value=${this.value}
|
|
@@ -2032,7 +2166,7 @@
|
|
|
2032
2166
|
min=${$t(this.min)}
|
|
2033
2167
|
max=${$t(this.max)}
|
|
2034
2168
|
/>
|
|
2035
|
-
</div>`}};exports.InputNumber.styles=[...
|
|
2169
|
+
</div>`}};exports.InputNumber.styles=[...ln.styles,Nv,me`
|
|
2036
2170
|
:host(:not[has-no-stepper]) input {
|
|
2037
2171
|
padding-right: var(--brz-spacing-20);
|
|
2038
2172
|
}
|
|
@@ -2076,11 +2210,11 @@
|
|
|
2076
2210
|
cursor: unset;
|
|
2077
2211
|
background-color: var(--brz-color-neutral-250);
|
|
2078
2212
|
}
|
|
2079
|
-
`];
|
|
2213
|
+
`];Fu([W({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);Fu([W({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);Fu([W({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);Fu([W({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);exports.InputNumber=Fu([Q(ip)],exports.InputNumber);/**
|
|
2080
2214
|
* @license
|
|
2081
2215
|
* Copyright 2017 Google LLC
|
|
2082
2216
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2083
|
-
*/class
|
|
2217
|
+
*/class sf extends Tc{constructor(a){if(super(a),this.it=Jt,a.type!==kc.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(a){if(a===Jt||a==null)return this._t=void 0,this.it=a;if(a===Gi)return a;if(typeof a!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(a===this.it)return this._t;this.it=a;const l=[a];return l.raw=l,this._t={_$litType$:this.constructor.resultType,strings:l,values:[]}}}sf.directiveName="unsafeHTML",sf.resultType=1;const Fv=Oc(sf);var Wv=Object.defineProperty,Uv=Object.getOwnPropertyDescriptor,pl=(u,a,l,h)=>{for(var c=h>1?void 0:h?Uv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Wv(a,l,c),c};const lp=Ee("input-radio-group"),sp=Ee("input-radio-option"),Zv=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector("#options");return Array.from(u.assignedElements()).filter(l=>l instanceof exports.InputRadioOption)}radioChange(u){const a=u.target;this.value=a.value,this.dispatchChange()}renderInput(){return J`
|
|
2084
2218
|
<slot
|
|
2085
2219
|
id="options"
|
|
2086
2220
|
style="display: none;"
|
|
@@ -2098,7 +2232,7 @@
|
|
|
2098
2232
|
?checked=${a}
|
|
2099
2233
|
?disabled=${u.disabled||this.disabled}
|
|
2100
2234
|
/>
|
|
2101
|
-
<label for=${u.value}>${
|
|
2235
|
+
<label for=${u.value}>${Fv(u.innerHTML)}</label>
|
|
2102
2236
|
</div>`})}
|
|
2103
2237
|
</fieldset>
|
|
2104
2238
|
`}};exports.InputRadio.styles=[...exports.LabeledInput.styles,me`
|
|
@@ -2220,31 +2354,31 @@
|
|
|
2220
2354
|
input[type='radio'][aria-invalid='true'] + label {
|
|
2221
2355
|
color: var(--input-invalid-border-color);
|
|
2222
2356
|
}
|
|
2223
|
-
`];fl([U({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);fl([U({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);fl([ut()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=fl([Q(jh)],exports.InputRadio);exports.InputRadioOption=class extends Fe{render(){}};fl([U({type:String})],exports.InputRadioOption.prototype,"value",2);fl([U({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=fl([Q(Yh)],exports.InputRadioOption);var ds=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},G1={exports:{}},Id;function Oo(){return Id||(Id=1,function(u,a){(function(l,h){u.exports=h()})(ds,function(){var l=navigator.userAgent,h=navigator.platform,f=/gecko\/\d/i.test(l),v=/MSIE \d/.test(l),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l),A=/Edge\/(\d+)/.exec(l),T=v||y||A,k=T&&(v?document.documentMode||6:+(A||y)[1]),I=!A&&/WebKit\//.test(l),H=I&&/Qt\/\d+\.\d+/.test(l),W=!A&&/Chrome\//.test(l),Z=/Opera\//.test(l),re=/Apple Computer/.test(navigator.vendor),ge=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),pe=/PhantomJS/.test(l),Se=re&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),Oe=/Android/.test(l),he=Se||Oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),ce=Se||/Mac/.test(h),Me=/\bCrOS\b/.test(l),Te=/win/i.test(h),Ae=Z&&l.match(/Version\/(\d*\.\d*)/);Ae&&(Ae=Number(Ae[1])),Ae&&Ae>=15&&(Z=!1,I=!0);var qe=ce&&(H||Z&&(Ae==null||Ae<12.11)),je=f||T&&k>=9;function ve(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var i=e.className,n=ve(t).exec(i);if(n){var s=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(s?n[1]+s:"")}};function Xe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function V(e,t){return Xe(e).appendChild(t)}function E(e,t,i,n){var s=document.createElement(e);if(i&&(s.className=i),n&&(s.style.cssText=n),typeof t=="string")s.appendChild(document.createTextNode(t));else if(t)for(var d=0;d<t.length;++d)s.appendChild(t[d]);return s}function S(e,t,i,n){var s=E(e,t,i,n);return s.setAttribute("role","presentation"),s}var ee;document.createRange?ee=function(e,t,i,n){var s=document.createRange();return s.setEnd(n||e,i),s.setStart(e,t),s}:ee=function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch{return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};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 tt(){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 zt(e,t){var i=e.className;ve(t).test(i)||(e.className+=(i?" ":"")+t)}function jt(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!ve(i[n]).test(t)&&(t+=" "+i[n]);return t}var Et=function(e){e.select()};Se?Et=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:T&&(Et=function(e){try{e.select()}catch{}});function Yr(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Ut(e,t,i){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(i!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function At(e,t,i,n,s){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var d=n||0,p=s||0;;){var b=e.indexOf(" ",d);if(b<0||b>=t)return p+(t-d);p+=b-d,p+=i-p%i,d=b+1}}var ot=function(){this.id=null,this.f=null,this.time=0,this.handler=Yr(this.onTimeout,this)};ot.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ot.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function Le(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var He=50,We={toString:function(){return"CodeMirror.Pass"}},rt={scroll:!1},nt={origin:"*mouse"},Be={origin:"+move"};function Rt(e,t,i){for(var n=0,s=0;;){var d=e.indexOf(" ",n);d==-1&&(d=e.length);var p=d-n;if(d==e.length||s+p>=t)return n+Math.min(p,t-s);if(s+=d-n,s+=i-s%i,n=d+1,s>=t)return n}}var Ir=[""];function Yt(e){for(;Ir.length<=e;)Ir.push(Ke(Ir)+" ");return Ir[e]}function Ke(e){return e[e.length-1]}function ht(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=t(e[n],n);return i}function wt(e,t,i){for(var n=0,s=i(t);n<e.length&&i(e[n])<=s;)n++;e.splice(n,0,t)}function Lr(){}function Ur(e,t){var i;return Object.create?i=Object.create(e):(Lr.prototype=e,i=new Lr),t&&Ut(t,i),i}var Jt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Jt.test(e))}function F(e,t){return t?t.source.indexOf("\\w")>-1&&Je(e)?!0:t.test(e):Je(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var K=/[\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 Ye(e){return e.charCodeAt(0)>=768&&K.test(e)}function er(e,t,i){for(;(i<0?t>0:t<e.length)&&Ye(e.charAt(t));)t+=i;return t}function pr(e,t,i){for(var n=t>i?-1:1;;){if(t==i)return t;var s=(t+i)/2,d=n<0?Math.ceil(s):Math.floor(s);if(d==t)return e(d)?t:i;e(d)?i=d:t=d+n}}function xn(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var s=!1,d=0;d<e.length;++d){var p=e[d];(p.from<i&&p.to>t||t==i&&p.to==t)&&(n(Math.max(p.from,t),Math.min(p.to,i),p.level==1?"rtl":"ltr",d),s=!0)}s||n(t,i,"ltr")}var Dr=null;function Nt(e,t,i){var n;Dr=null;for(var s=0;s<e.length;++s){var d=e[s];if(d.from<t&&d.to>t)return s;d.to==t&&(d.from!=d.to&&i=="before"?n=s:Dr=s),d.from==t&&(d.from!=d.to&&i!="before"?n=s:Dr=s)}return n!=null?n:Dr}var ti=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(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 n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,s=/[stwN]/,d=/[LRr]/,p=/[Lb1n]/,b=/[1n]/;function m(C,_,M){this.level=C,this.from=_,this.to=M}return function(C,_){var M=_=="ltr"?"L":"R";if(C.length==0||_=="ltr"&&!n.test(C))return!1;for(var N=C.length,$=[],q=0;q<N;++q)$.push(i(C.charCodeAt(q)));for(var te=0,ue=M;te<N;++te){var fe=$[te];fe=="m"?$[te]=ue:ue=fe}for(var we=0,de=M;we<N;++we){var xe=$[we];xe=="1"&&de=="r"?$[we]="n":d.test(xe)&&(de=xe,xe=="r"&&($[we]="R"))}for(var De=1,Pe=$[0];De<N-1;++De){var it=$[De];it=="+"&&Pe=="1"&&$[De+1]=="1"?$[De]="1":it==","&&Pe==$[De+1]&&(Pe=="1"||Pe=="n")&&($[De]=Pe),Pe=it}for(var xt=0;xt<N;++xt){var Xt=$[xt];if(Xt==",")$[xt]="N";else if(Xt=="%"){var Mt=void 0;for(Mt=xt+1;Mt<N&&$[Mt]=="%";++Mt);for(var Or=xt&&$[xt-1]=="!"||Mt<N&&$[Mt]=="1"?"1":"N",Tr=xt;Tr<Mt;++Tr)$[Tr]=Or;xt=Mt-1}}for(var Vt=0,hr=M;Vt<N;++Vt){var nr=$[Vt];hr=="L"&&nr=="1"?$[Vt]="L":d.test(nr)&&(hr=nr)}for(var _t=0;_t<N;++_t)if(s.test($[_t])){var Tt=void 0;for(Tt=_t+1;Tt<N&&s.test($[Tt]);++Tt);for(var Wt=(_t?$[_t-1]:M)=="L",Pr=(Tt<N?$[Tt]:M)=="L",sa=Wt==Pr?Wt?"L":"R":M,Vi=_t;Vi<Tt;++Vi)$[Vi]=sa;_t=Tt-1}for(var zr=[],Kn,ir=0;ir<N;)if(p.test($[ir])){var vu=ir;for(++ir;ir<N&&p.test($[ir]);++ir);zr.push(new m(0,vu,ir))}else{var fi=ir,wo=zr.length,xo=_=="rtl"?1:0;for(++ir;ir<N&&$[ir]!="L";++ir);for(var Er=fi;Er<ir;)if(b.test($[Er])){fi<Er&&(zr.splice(wo,0,new m(1,fi,Er)),wo+=xo);var ua=Er;for(++Er;Er<ir&&b.test($[Er]);++Er);zr.splice(wo,0,new m(2,ua,Er)),wo+=xo,fi=Er}else++Er;fi<ir&&zr.splice(wo,0,new m(1,fi,ir))}return _=="ltr"&&(zr[0].level==1&&(Kn=C.match(/^\s+/))&&(zr[0].from=Kn[0].length,zr.unshift(new m(0,0,Kn[0].length))),Ke(zr).level==1&&(Kn=C.match(/\s+$/))&&(Ke(zr).to-=Kn[0].length,zr.push(new m(0,N-Kn[0].length,N)))),_=="rtl"?zr.reverse():zr}}();function _r(e,t){var i=e.order;return i==null&&(i=e.order=ti(e.text,t)),i}var zn=[],Ne=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||zn).concat(i)}};function yi(e,t){return e._handlers&&e._handlers[t]||zn}function gr(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var n=e._handlers,s=n&&n[t];if(s){var d=Le(s,i);d>-1&&(n[t]=s.slice(0,d).concat(s.slice(d+1)))}}}function Ue(e,t){var i=yi(e,t);if(!!i.length)for(var n=Array.prototype.slice.call(arguments,2),s=0;s<i.length;++s)i[s].apply(null,n)}function Gt(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ue(e,i||t.type,e,t),Xr(t)||t.codemirrorIgnore}function Po(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)Le(i,t[n])==-1&&i.push(t[n])}function sr(e,t){return yi(e,t).length>0}function Ln(e){e.prototype.on=function(t,i){Ne(this,t,i)},e.prototype.off=function(t,i){gr(this,t,i)}}function ur(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Eo(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Xr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Qi(e){ur(e),Eo(e)}function Ci(e){return e.target||e.srcElement}function ma(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ce&&e.ctrlKey&&t==1&&(t=3),t}var ya=function(){if(T&&k<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),$r;function dl(e){if($r==null){var t=E("span","\u200B");V(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($r=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&k<8))}var i=$r?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Ji;function Rn(e){if(Ji!=null)return Ji;var t=V(e,document.createTextNode("A\u062EA")),i=ee(t,0,1).getBoundingClientRect(),n=ee(t,1,2).getBoundingClientRect();return Xe(e),!i||i.left==i.right?!1:Ji=n.right-i.right<3}var eo=`
|
|
2357
|
+
`];pl([W({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);pl([W({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);pl([lt()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=pl([Q(lp)],exports.InputRadio);exports.InputRadioOption=class extends We{render(){}};pl([W({type:String})],exports.InputRadioOption.prototype,"value",2);pl([W({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=pl([Q(sp)],exports.InputRadioOption);var X1={exports:{}},Hd;function Oo(){return Hd||(Hd=1,function(u,a){(function(l,h){u.exports=h()})(gs,function(){var l=navigator.userAgent,h=navigator.platform,c=/gecko\/\d/i.test(l),v=/MSIE \d/.test(l),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l),A=/Edge\/(\d+)/.exec(l),T=v||m||A,k=T&&(v?document.documentMode||6:+(A||m)[1]),I=!A&&/WebKit\//.test(l),H=I&&/Qt\/\d+\.\d+/.test(l),U=!A&&/Chrome\//.test(l),Z=/Opera\//.test(l),re=/Apple Computer/.test(navigator.vendor),ge=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),pe=/PhantomJS/.test(l),Se=re&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),Oe=/Android/.test(l),he=Se||Oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),ce=Se||/Mac/.test(h),Me=/\bCrOS\b/.test(l),Te=/win/i.test(h),Ae=Z&&l.match(/Version\/(\d*\.\d*)/);Ae&&(Ae=Number(Ae[1])),Ae&&Ae>=15&&(Z=!1,I=!0);var qe=ce&&(H||Z&&(Ae==null||Ae<12.11)),je=c||T&&k>=9;function ve(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var i=e.className,n=ve(t).exec(i);if(n){var s=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(s?n[1]+s:"")}};function Xe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function V(e,t){return Xe(e).appendChild(t)}function E(e,t,i,n){var s=document.createElement(e);if(i&&(s.className=i),n&&(s.style.cssText=n),typeof t=="string")s.appendChild(document.createTextNode(t));else if(t)for(var d=0;d<t.length;++d)s.appendChild(t[d]);return s}function S(e,t,i,n){var s=E(e,t,i,n);return s.setAttribute("role","presentation"),s}var ee;document.createRange?ee=function(e,t,i,n){var s=document.createRange();return s.setEnd(n||e,i),s.setStart(e,t),s}:ee=function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch{return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};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 tt(){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 zt(e,t){var i=e.className;ve(t).test(i)||(e.className+=(i?" ":"")+t)}function jt(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!ve(i[n]).test(t)&&(t+=" "+i[n]);return t}var Et=function(e){e.select()};Se?Et=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:T&&(Et=function(e){try{e.select()}catch{}});function jr(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Ut(e,t,i){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(i!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function At(e,t,i,n,s){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var d=n||0,p=s||0;;){var b=e.indexOf(" ",d);if(b<0||b>=t)return p+(t-d);p+=b-d,p+=i-p%i,d=b+1}}var ot=function(){this.id=null,this.f=null,this.time=0,this.handler=jr(this.onTimeout,this)};ot.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ot.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function Le(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var He=50,Fe={toString:function(){return"CodeMirror.Pass"}},rt={scroll:!1},nt={origin:"*mouse"},Be={origin:"+move"};function Rt(e,t,i){for(var n=0,s=0;;){var d=e.indexOf(" ",n);d==-1&&(d=e.length);var p=d-n;if(d==e.length||s+p>=t)return n+Math.min(p,t-s);if(s+=d-n,s+=i-s%i,n=d+1,s>=t)return n}}var Ir=[""];function Yt(e){for(;Ir.length<=e;)Ir.push(Ke(Ir)+" ");return Ir[e]}function Ke(e){return e[e.length-1]}function ht(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=t(e[n],n);return i}function wt(e,t,i){for(var n=0,s=i(t);n<e.length&&i(e[n])<=s;)n++;e.splice(n,0,t)}function Lr(){}function Ur(e,t){var i;return Object.create?i=Object.create(e):(Lr.prototype=e,i=new Lr),t&&Ut(t,i),i}var er=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||er.test(e))}function F(e,t){return t?t.source.indexOf("\\w")>-1&&Je(e)?!0:t.test(e):Je(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var K=/[\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 Ye(e){return e.charCodeAt(0)>=768&&K.test(e)}function tr(e,t,i){for(;(i<0?t>0:t<e.length)&&Ye(e.charAt(t));)t+=i;return t}function pr(e,t,i){for(var n=t>i?-1:1;;){if(t==i)return t;var s=(t+i)/2,d=n<0?Math.ceil(s):Math.floor(s);if(d==t)return e(d)?t:i;e(d)?i=d:t=d+n}}function xn(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var s=!1,d=0;d<e.length;++d){var p=e[d];(p.from<i&&p.to>t||t==i&&p.to==t)&&(n(Math.max(p.from,t),Math.min(p.to,i),p.level==1?"rtl":"ltr",d),s=!0)}s||n(t,i,"ltr")}var Dr=null;function Nt(e,t,i){var n;Dr=null;for(var s=0;s<e.length;++s){var d=e[s];if(d.from<t&&d.to>t)return s;d.to==t&&(d.from!=d.to&&i=="before"?n=s:Dr=s),d.from==t&&(d.from!=d.to&&i!="before"?n=s:Dr=s)}return n!=null?n:Dr}var ei=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(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 n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,s=/[stwN]/,d=/[LRr]/,p=/[Lb1n]/,b=/[1n]/;function y(C,_,M){this.level=C,this.from=_,this.to=M}return function(C,_){var M=_=="ltr"?"L":"R";if(C.length==0||_=="ltr"&&!n.test(C))return!1;for(var N=C.length,$=[],q=0;q<N;++q)$.push(i(C.charCodeAt(q)));for(var te=0,ue=M;te<N;++te){var fe=$[te];fe=="m"?$[te]=ue:ue=fe}for(var we=0,de=M;we<N;++we){var xe=$[we];xe=="1"&&de=="r"?$[we]="n":d.test(xe)&&(de=xe,xe=="r"&&($[we]="R"))}for(var De=1,Pe=$[0];De<N-1;++De){var it=$[De];it=="+"&&Pe=="1"&&$[De+1]=="1"?$[De]="1":it==","&&Pe==$[De+1]&&(Pe=="1"||Pe=="n")&&($[De]=Pe),Pe=it}for(var xt=0;xt<N;++xt){var Xt=$[xt];if(Xt==",")$[xt]="N";else if(Xt=="%"){var Mt=void 0;for(Mt=xt+1;Mt<N&&$[Mt]=="%";++Mt);for(var Or=xt&&$[xt-1]=="!"||Mt<N&&$[Mt]=="1"?"1":"N",Tr=xt;Tr<Mt;++Tr)$[Tr]=Or;xt=Mt-1}}for(var Vt=0,hr=M;Vt<N;++Vt){var ir=$[Vt];hr=="L"&&ir=="1"?$[Vt]="L":d.test(ir)&&(hr=ir)}for(var _t=0;_t<N;++_t)if(s.test($[_t])){var Tt=void 0;for(Tt=_t+1;Tt<N&&s.test($[Tt]);++Tt);for(var Wt=(_t?$[_t-1]:M)=="L",Pr=(Tt<N?$[Tt]:M)=="L",ua=Wt==Pr?Wt?"L":"R":M,Zi=_t;Zi<Tt;++Zi)$[Zi]=ua;_t=Tt-1}for(var zr=[],Kn,or=0;or<N;)if(p.test($[or])){var wu=or;for(++or;or<N&&p.test($[or]);++or);zr.push(new y(0,wu,or))}else{var ci=or,wo=zr.length,xo=_=="rtl"?1:0;for(++or;or<N&&$[or]!="L";++or);for(var Er=ci;Er<or;)if(b.test($[Er])){ci<Er&&(zr.splice(wo,0,new y(1,ci,Er)),wo+=xo);var ca=Er;for(++Er;Er<or&&b.test($[Er]);++Er);zr.splice(wo,0,new y(2,ca,Er)),wo+=xo,ci=Er}else++Er;ci<or&&zr.splice(wo,0,new y(1,ci,or))}return _=="ltr"&&(zr[0].level==1&&(Kn=C.match(/^\s+/))&&(zr[0].from=Kn[0].length,zr.unshift(new y(0,0,Kn[0].length))),Ke(zr).level==1&&(Kn=C.match(/\s+$/))&&(Ke(zr).to-=Kn[0].length,zr.push(new y(0,N-Kn[0].length,N)))),_=="rtl"?zr.reverse():zr}}();function _r(e,t){var i=e.order;return i==null&&(i=e.order=ei(e.text,t)),i}var zn=[],Ne=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||zn).concat(i)}};function mi(e,t){return e._handlers&&e._handlers[t]||zn}function gr(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var n=e._handlers,s=n&&n[t];if(s){var d=Le(s,i);d>-1&&(n[t]=s.slice(0,d).concat(s.slice(d+1)))}}}function Ue(e,t){var i=mi(e,t);if(!!i.length)for(var n=Array.prototype.slice.call(arguments,2),s=0;s<i.length;++s)i[s].apply(null,n)}function Gt(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ue(e,i||t.type,e,t),Yr(t)||t.codemirrorIgnore}function Eo(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)Le(i,t[n])==-1&&i.push(t[n])}function sr(e,t){return mi(e,t).length>0}function Ln(e){e.prototype.on=function(t,i){Ne(this,t,i)},e.prototype.off=function(t,i){gr(this,t,i)}}function ur(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ao(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Yr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Qi(e){ur(e),Ao(e)}function yi(e){return e.target||e.srcElement}function Ca(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ce&&e.ctrlKey&&t==1&&(t=3),t}var wa=function(){if(T&&k<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),$r;function gl(e){if($r==null){var t=E("span","\u200B");V(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($r=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&k<8))}var i=$r?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Ji;function Rn(e){if(Ji!=null)return Ji;var t=V(e,document.createTextNode("A\u062EA")),i=ee(t,0,1).getBoundingClientRect(),n=ee(t,1,2).getBoundingClientRect();return Xe(e),!i||i.left==i.right?!1:Ji=n.right-i.right<3}var eo=`
|
|
2224
2358
|
|
|
2225
2359
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var s=e.indexOf(`
|
|
2226
|
-
`,t);s==-1&&(s=e.length);var d=e.slice(t,e.charAt(s-1)=="\r"?s-1:s),p=d.indexOf("\r");p!=-1?(i.push(d.slice(0,p)),t+=p+1):(i.push(d),t=s+1)}return i}:function(e){return e.split(/\r\n?|\n/)},hl=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},pl=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ca=null;function wi(e){if(Ca!=null)return Ca;var t=V(e,E("span","x")),i=t.getBoundingClientRect(),n=ee(t,0,1).getBoundingClientRect();return Ca=Math.abs(i.left-n.left)>1}var un={},Qr={};function gl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),un[e]=t}function ri(e,t){Qr[e]=t}function to(e){if(typeof e=="string"&&Qr.hasOwnProperty(e))e=Qr[e];else if(e&&typeof e.name=="string"&&Qr.hasOwnProperty(e.name)){var t=Qr[e.name];typeof t=="string"&&(t={name:t}),e=Ur(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return to("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return to("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ao(e,t){t=to(t);var i=un[t.name];if(!i)return Ao(e,"text/plain");var n=i(e,t);if(_n.hasOwnProperty(t.name)){var s=_n[t.name];for(var d in s)!s.hasOwnProperty(d)||(n.hasOwnProperty(d)&&(n["_"+d]=n[d]),n[d]=s[d])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)n[p]=t.modeProps[p];return n}var _n={};function Sn(e,t){var i=_n.hasOwnProperty(e)?_n[e]:_n[e]={};Ut(t,i)}function Jr(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var s=t[n];s instanceof Array&&(s=s.concat([])),i[n]=s}return i}function wa(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function xa(e,t,i){return e.startState?e.startState(t,i):!0}var It=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},It.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},It.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},It.prototype.backUp=function(e){this.pos-=e},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=At(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return At(this.string,null,this.tabSize)-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},It.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(p){return i?p.toLowerCase():p},s=this.string.substr(this.pos,e.length);if(n(s)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var d=this.string.slice(this.pos).match(e);return d&&d.index>0?null:(d&&t!==!1&&(this.pos+=d[0].length),d)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},It.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},It.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 i=e;!i.lines;)for(var n=0;;++n){var s=i.children[n],d=s.chunkSize();if(t<d){i=s;break}t-=d}return i.lines[t]}function en(e,t,i){var n=[],s=t.line;return e.iter(t.line,i.line+1,function(d){var p=d.text;s==i.line&&(p=p.slice(0,i.ch)),s==t.line&&(p=p.slice(t.ch)),n.push(p),++s}),n}function za(e,t,i){var n=[];return e.iter(t,i,function(s){n.push(s.text)}),n}function Zr(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function bt(e){if(e.parent==null)return null;for(var t=e.parent,i=Le(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var s=0;n.children[s]!=t;++s)i+=n.children[s].chunkSize();return i+t.first}function Mn(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var s=e.children[n],d=s.height;if(t<d){e=s;continue e}t-=d,i+=s.chunkSize()}return i}while(!e.lines);for(var p=0;p<e.lines.length;++p){var b=e.lines[p],m=b.height;if(t<m)break;t-=m}return i+p}function xi(e,t){return t>=e.first&&t<e.first+e.size}function Io(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function oe(e,t,i){if(i===void 0&&(i=null),!(this instanceof oe))return new oe(e,t,i);this.line=e,this.ch=t,this.sticky=i}function w(e,t){return e.line-t.line||e.ch-t.ch}function O(e,t){return e.sticky==t.sticky&&w(e,t)==0}function Y(e){return oe(e.line,e.ch)}function le(e,t){return w(e,t)<0?t:e}function Ze(e,t){return w(e,t)<0?e:t}function ft(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Ce(e,t){if(t.line<e.first)return oe(e.first,0);var i=e.first+e.size-1;return t.line>i?oe(i,ke(e,i).text.length):vr(t,ke(e,t.line).text.length)}function vr(e,t){var i=e.ch;return i==null||i>t?oe(e.line,t):i<0?oe(e.line,0):e}function Vr(e,t){for(var i=[],n=0;n<t.length;n++)i[n]=Ce(e,t[n]);return i}var ni=function(e,t){this.state=e,this.lookAhead=t},kn=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};kn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},kn.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}},kn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kn.fromSaved=function(e,t,i){return t instanceof ni?new kn(e,Jr(e.mode,t.state),i,t.lookAhead):new kn(e,Jr(e.mode,t),i)},kn.prototype.save=function(e){var t=e!==!1?Jr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ni(t,this.maxLookAhead):t};function Uu(e,t,i,n){var s=[e.state.modeGen],d={};_s(e,t.text,e.doc.mode,i,function(C,_){return s.push(C,_)},d,n);for(var p=i.state,b=function(C){i.baseTokens=s;var _=e.state.overlays[C],M=1,N=0;i.state=!0,_s(e,t.text,_.mode,i,function($,q){for(var te=M;N<$;){var ue=s[M];ue>$&&s.splice(M,1,$,s[M+1],ue),M+=2,N=Math.min($,ue)}if(!!q)if(_.opaque)s.splice(te,M-te,$,"overlay "+q),M=te+2;else for(;te<M;te+=2){var fe=s[te+1];s[te+1]=(fe?fe+" ":"")+"overlay "+q}},d),i.state=p,i.baseTokens=null,i.baseTokenPos=1},m=0;m<e.state.overlays.length;++m)b(m);return{styles:s,classes:d.bgClass||d.textClass?d:null}}function Ls(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Do(e,bt(t)),s=t.text.length>e.options.maxHighlightLength&&Jr(e.doc.mode,n.state),d=Uu(e,t,n);s&&(n.state=s),t.stateAfter=n.save(!s),t.styles=d.styles,d.classes?t.styleClasses=d.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Do(e,t,i){var n=e.doc,s=e.display;if(!n.mode.startState)return new kn(n,!0,t);var d=Vu(e,t,i),p=d>n.first&&ke(n,d-1).stateAfter,b=p?kn.fromSaved(n,p,d):new kn(n,xa(n.mode),d);return n.iter(d,t,function(m){La(e,m.text,b);var C=b.line;m.stateAfter=C==t-1||C%5==0||C>=s.viewFrom&&C<s.viewTo?b.save():null,b.nextLine()}),i&&(n.modeFrontier=b.line),b}function La(e,t,i,n){var s=e.doc.mode,d=new It(t,e.options.tabSize,i);for(d.start=d.pos=n||0,t==""&&Zu(s,i.state);!d.eol();)vl(s,d,i.state),d.start=d.pos}function Zu(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var i=wa(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function vl(e,t,i,n){for(var s=0;s<10;s++){n&&(n[0]=wa(e,i).mode);var d=e.token(t,i);if(t.pos>t.start)return d}throw new Error("Mode "+e.name+" failed to advance stream.")}var bl=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function ml(e,t,i,n){var s=e.doc,d=s.mode,p;t=Ce(s,t);var b=ke(s,t.line),m=Do(e,t.line,i),C=new It(b.text,e.options.tabSize,m),_;for(n&&(_=[]);(n||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=vl(d,C,m.state),n&&_.push(new bl(C,p,Jr(s.mode,m.state)));return n?_:new bl(C,p,m.state)}function ro(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var n=i[1]?"bgClass":"textClass";t[n]==null?t[n]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+i[2])}return e}function _s(e,t,i,n,s,d,p){var b=i.flattenSpans;b==null&&(b=e.options.flattenSpans);var m=0,C=null,_=new It(t,e.options.tabSize,n),M,N=e.options.addModeClass&&[null];for(t==""&&ro(Zu(i,n.state),d);!_.eol();){if(_.pos>e.options.maxHighlightLength?(b=!1,p&&La(e,t,n,_.pos),_.pos=t.length,M=null):M=ro(vl(i,_,n.state,N),d),N){var $=N[0].name;$&&(M="m-"+(M?$+" "+M:$))}if(!b||C!=M){for(;m<_.start;)m=Math.min(_.start,m+5e3),s(m,C);C=M}_.start=_.pos}for(;m<_.pos;){var q=Math.min(_.pos,m+5e3);s(q,C),m=q}}function Vu(e,t,i){for(var n,s,d=e.doc,p=i?-1:t-(e.doc.mode.innerMode?1e3:100),b=t;b>p;--b){if(b<=d.first)return d.first;var m=ke(d,b-1),C=m.stateAfter;if(C&&(!i||b+(C instanceof ni?C.lookAhead:0)<=d.modeFrontier))return b;var _=At(m.text,null,e.options.tabSize);(s==null||n>_)&&(s=b-1,n=_)}return s}function Hc(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,n=t-1;n>i;n--){var s=ke(e,n).stateAfter;if(s&&(!(s instanceof ni)||n+s.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Ss=!1,Hn=!1;function Gu(){Ss=!0}function qu(){Hn=!0}function yl(e,t,i){this.marker=e,this.from=t,this.to=i}function _a(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function Bc(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function Ku(e,t,i){var n=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));n&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function Fc(e,t,i){var n;if(e)for(var s=0;s<e.length;++s){var d=e[s],p=d.marker,b=d.from==null||(p.inclusiveLeft?d.from<=t:d.from<t);if(b||d.from==t&&p.type=="bookmark"&&(!i||!d.marker.insertLeft)){var m=d.to==null||(p.inclusiveRight?d.to>=t:d.to>t);(n||(n=[])).push(new yl(p,d.from,m?null:d.to))}}return n}function Wc(e,t,i){var n;if(e)for(var s=0;s<e.length;++s){var d=e[s],p=d.marker,b=d.to==null||(p.inclusiveRight?d.to>=t:d.to>t);if(b||d.from==t&&p.type=="bookmark"&&(!i||d.marker.insertLeft)){var m=d.from==null||(p.inclusiveLeft?d.from<=t:d.from<t);(n||(n=[])).push(new yl(p,m?null:d.from-t,d.to==null?null:d.to-t))}}return n}function Ms(e,t){if(t.full)return null;var i=xi(e,t.from.line)&&ke(e,t.from.line).markedSpans,n=xi(e,t.to.line)&&ke(e,t.to.line).markedSpans;if(!i&&!n)return null;var s=t.from.ch,d=t.to.ch,p=w(t.from,t.to)==0,b=Fc(i,s,p),m=Wc(n,d,p),C=t.text.length==1,_=Ke(t.text).length+(C?s:0);if(b)for(var M=0;M<b.length;++M){var N=b[M];if(N.to==null){var $=_a(m,N.marker);$?C&&(N.to=$.to==null?null:$.to+_):N.to=s}}if(m)for(var q=0;q<m.length;++q){var te=m[q];if(te.to!=null&&(te.to+=_),te.from==null){var ue=_a(b,te.marker);ue||(te.from=_,C&&(b||(b=[])).push(te))}else te.from+=_,C&&(b||(b=[])).push(te)}b&&(b=ju(b)),m&&m!=b&&(m=ju(m));var fe=[b];if(!C){var we=t.text.length-2,de;if(we>0&&b)for(var xe=0;xe<b.length;++xe)b[xe].to==null&&(de||(de=[])).push(new yl(b[xe].marker,null,null));for(var De=0;De<we;++De)fe.push(de);fe.push(m)}return fe}function ju(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function ks(e,t,i){var n=null;if(e.iter(t.line,i.line+1,function($){if($.markedSpans)for(var q=0;q<$.markedSpans.length;++q){var te=$.markedSpans[q].marker;te.readOnly&&(!n||Le(n,te)==-1)&&(n||(n=[])).push(te)}}),!n)return null;for(var s=[{from:t,to:i}],d=0;d<n.length;++d)for(var p=n[d],b=p.find(0),m=0;m<s.length;++m){var C=s[m];if(!(w(C.to,b.from)<0||w(C.from,b.to)>0)){var _=[m,1],M=w(C.from,b.from),N=w(C.to,b.to);(M<0||!p.inclusiveLeft&&!M)&&_.push({from:C.from,to:b.from}),(N>0||!p.inclusiveRight&&!N)&&_.push({from:b.to,to:C.to}),s.splice.apply(s,_),m+=_.length-3}}return s}function Yu(e){var t=e.markedSpans;if(!!t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function Xu(e,t){if(!!t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function Cl(e){return e.inclusiveLeft?-1:0}function wl(e){return e.inclusiveRight?1:0}function Os(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),s=t.find(),d=w(n.from,s.from)||Cl(e)-Cl(t);if(d)return-d;var p=w(n.to,s.to)||wl(e)-wl(t);return p||t.id-e.id}function Dt(e,t){var i=Hn&&e.markedSpans,n;if(i)for(var s=void 0,d=0;d<i.length;++d)s=i[d],s.marker.collapsed&&(t?s.from:s.to)==null&&(!n||Os(n,s.marker)<0)&&(n=s.marker);return n}function Ot(e){return Dt(e,!0)}function xl(e){return Dt(e,!1)}function Uc(e,t){var i=Hn&&e.markedSpans,n;if(i)for(var s=0;s<i.length;++s){var d=i[s];d.marker.collapsed&&(d.from==null||d.from<t)&&(d.to==null||d.to>t)&&(!n||Os(n,d.marker)<0)&&(n=d.marker)}return n}function Qu(e,t,i,n,s){var d=ke(e,t),p=Hn&&d.markedSpans;if(p)for(var b=0;b<p.length;++b){var m=p[b];if(!!m.marker.collapsed){var C=m.marker.find(0),_=w(C.from,i)||Cl(m.marker)-Cl(s),M=w(C.to,n)||wl(m.marker)-wl(s);if(!(_>=0&&M<=0||_<=0&&M>=0)&&(_<=0&&(m.marker.inclusiveRight&&s.inclusiveLeft?w(C.to,i)>=0:w(C.to,i)>0)||_>=0&&(m.marker.inclusiveRight&&s.inclusiveLeft?w(C.from,n)<=0:w(C.from,n)<0)))return!0}}}function Bn(e){for(var t;t=Ot(e);)e=t.find(-1,!0).line;return e}function Zc(e){for(var t;t=xl(e);)e=t.find(1,!0).line;return e}function Vc(e){for(var t,i;t=xl(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function zl(e,t){var i=ke(e,t),n=Bn(i);return i==n?t:bt(n)}function Ju(e,t){if(t>e.lastLine())return t;var i=ke(e,t),n;if(!Ht(e,i))return t;for(;n=xl(i);)i=n.find(1,!0).line;return bt(i)+1}function Ht(e,t){var i=Hn&&t.markedSpans;if(i){for(var n=void 0,s=0;s<i.length;++s)if(n=i[s],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&Sa(e,t,n))return!0}}}function Sa(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return Sa(e,n.line,_a(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var s=void 0,d=0;d<t.markedSpans.length;++d)if(s=t.markedSpans[d],s.marker.collapsed&&!s.marker.widgetNode&&s.from==i.to&&(s.to==null||s.to!=i.from)&&(s.marker.inclusiveLeft||i.marker.inclusiveRight)&&Sa(e,t,s))return!0}function Nr(e){e=Bn(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var s=i.lines[n];if(s==e)break;t+=s.height}for(var d=i.parent;d;i=d,d=i.parent)for(var p=0;p<d.children.length;++p){var b=d.children[p];if(b==i)break;t+=b.height}return t}function Ma(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=Ot(n);){var s=i.find(0,!0);n=s.from.line,t+=s.from.ch-s.to.ch}for(n=e;i=xl(n);){var d=i.find(0,!0);t-=n.text.length-d.from.ch,n=d.to.line,t+=n.text.length-d.to.ch}return t}function ka(e){var t=e.display,i=e.doc;t.maxLine=ke(i,i.first),t.maxLineLength=Ma(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var s=Ma(n);s>t.maxLineLength&&(t.maxLineLength=s,t.maxLine=n)})}var br=function(e,t,i){this.text=e,Xu(this,t),this.height=i?i(this):1};br.prototype.lineNo=function(){return bt(this)},Ln(br);function e0(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yu(e),Xu(e,i);var s=n?n(e):1;s!=e.height&&Zr(e,s)}function t0(e){e.parent=null,Yu(e)}var r0={},n0={};function Ts(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?n0:r0;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Ps(e,t){var i=S("span",null,null,I?"padding-right: .1px":null),n={pre:S("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var s=0;s<=(t.rest?t.rest.length:0);s++){var d=s?t.rest[s-1]:t.line,p=void 0;n.pos=0,n.addToken=Gc,Rn(e.display.measure)&&(p=_r(d,e.doc.direction))&&(n.addToken=qc(n.addToken,p)),n.map=[];var b=t!=e.display.externalMeasured&&bt(d);zi(d,n,Ls(e,d,b)),d.styleClasses&&(d.styleClasses.bgClass&&(n.bgClass=jt(d.styleClasses.bgClass,n.bgClass||"")),d.styleClasses.textClass&&(n.textClass=jt(d.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(dl(e.display.measure))),s==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var m=n.content.lastChild;(/\bcm-tab\b/.test(m.className)||m.querySelector&&m.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ue(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=jt(n.pre.className,n.textClass||"")),n}function tn(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 Gc(e,t,i,n,s,d,p){if(!!t){var b=e.splitSpaces?cn(t,e.trailingSpace):t,m=e.cm.state.specialChars,C=!1,_;if(!m.test(t))e.col+=t.length,_=document.createTextNode(b),e.map.push(e.pos,e.pos+t.length,_),T&&k<9&&(C=!0),e.pos+=t.length;else{_=document.createDocumentFragment();for(var M=0;;){m.lastIndex=M;var N=m.exec(t),$=N?N.index-M:t.length-M;if($){var q=document.createTextNode(b.slice(M,M+$));T&&k<9?_.appendChild(E("span",[q])):_.appendChild(q),e.map.push(e.pos,e.pos+$,q),e.col+=$,e.pos+=$}if(!N)break;M+=$+1;var te=void 0;if(N[0]==" "){var ue=e.cm.options.tabSize,fe=ue-e.col%ue;te=_.appendChild(E("span",Yt(fe),"cm-tab")),te.setAttribute("role","presentation"),te.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
|
|
2227
|
-
`?(te=_.appendChild(E("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),te.setAttribute("cm-text",N[0]),e.col+=1):(te=e.cm.options.specialCharPlaceholder(N[0]),te.setAttribute("cm-text",N[0]),T&&k<9?_.appendChild(E("span",[te])):_.appendChild(te),e.col+=1);e.map.push(e.pos,e.pos+1,te),e.pos++}}if(e.trailingSpace=b.charCodeAt(t.length-1)==32,i||n||s||C||d||p){var we=i||"";n&&(we+=n),s&&(we+=s);var de=E("span",[_],we,d);if(p)for(var xe in p)p.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&de.setAttribute(xe,p[xe]);return e.content.appendChild(de)}e.content.appendChild(_)}}function cn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",s=0;s<e.length;s++){var d=e.charAt(s);d==" "&&i&&(s==e.length-1||e.charCodeAt(s+1)==32)&&(d="\xA0"),n+=d,i=d==" "}return n}function qc(e,t){return function(i,n,s,d,p,b,m){s=s?s+" cm-force-border":"cm-force-border";for(var C=i.pos,_=C+n.length;;){for(var M=void 0,N=0;N<t.length&&(M=t[N],!(M.to>C&&M.from<=C));N++);if(M.to>=_)return e(i,n,s,d,p,b,m);e(i,n.slice(0,M.to-C),s,d,null,b,m),d=null,n=n.slice(M.to-C),C=M.to}}}function Es(e,t,i,n){var s=!n&&i.widgetNode;s&&e.map.push(e.pos,e.pos+t,s),!n&&e.cm.display.input.needsContentAttribute&&(s||(s=e.content.appendChild(document.createElement("span"))),s.setAttribute("cm-marker",i.id)),s&&(e.cm.display.input.setUneditable(s),e.content.appendChild(s)),e.pos+=t,e.trailingSpace=!1}function zi(e,t,i){var n=e.markedSpans,s=e.text,d=0;if(!n){for(var p=1;p<i.length;p+=2)t.addToken(t,s.slice(d,d=i[p]),Ts(i[p+1],t.cm.options));return}for(var b=s.length,m=0,C=1,_="",M,N,$=0,q,te,ue,fe,we;;){if($==m){q=te=ue=N="",we=null,fe=null,$=1/0;for(var de=[],xe=void 0,De=0;De<n.length;++De){var Pe=n[De],it=Pe.marker;if(it.type=="bookmark"&&Pe.from==m&&it.widgetNode)de.push(it);else if(Pe.from<=m&&(Pe.to==null||Pe.to>m||it.collapsed&&Pe.to==m&&Pe.from==m)){if(Pe.to!=null&&Pe.to!=m&&$>Pe.to&&($=Pe.to,te=""),it.className&&(q+=" "+it.className),it.css&&(N=(N?N+";":"")+it.css),it.startStyle&&Pe.from==m&&(ue+=" "+it.startStyle),it.endStyle&&Pe.to==$&&(xe||(xe=[])).push(it.endStyle,Pe.to),it.title&&((we||(we={})).title=it.title),it.attributes)for(var xt in it.attributes)(we||(we={}))[xt]=it.attributes[xt];it.collapsed&&(!fe||Os(fe.marker,it)<0)&&(fe=Pe)}else Pe.from>m&&$>Pe.from&&($=Pe.from)}if(xe)for(var Xt=0;Xt<xe.length;Xt+=2)xe[Xt+1]==$&&(te+=" "+xe[Xt]);if(!fe||fe.from==m)for(var Mt=0;Mt<de.length;++Mt)Es(t,0,de[Mt]);if(fe&&(fe.from||0)==m){if(Es(t,(fe.to==null?b+1:fe.to)-m,fe.marker,fe.from==null),fe.to==null)return;fe.to==m&&(fe=!1)}}if(m>=b)break;for(var Or=Math.min(b,$);;){if(_){var Tr=m+_.length;if(!fe){var Vt=Tr>Or?_.slice(0,Or-m):_;t.addToken(t,Vt,M?M+q:q,ue,m+Vt.length==$?te:"",N,we)}if(Tr>=Or){_=_.slice(Or-m),m=Or;break}m=Tr,ue=""}_=s.slice(d,d=i[C++]),M=Ts(i[C++],t.cm.options)}}}function Oa(e,t,i){this.line=t,this.rest=Vc(t),this.size=this.rest?bt(Ke(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Ht(e,t)}function $o(e,t,i){for(var n=[],s,d=t;d<i;d=s){var p=new Oa(e.doc,ke(e.doc,d),d);s=d+p.size,n.push(p)}return n}var Lt=null;function Li(e){Lt?Lt.ops.push(e):e.ownsGroup=Lt={ops:[e],delayedCallbacks:[]}}function As(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var n=0;n<e.ops.length;n++){var s=e.ops[n];if(s.cursorActivityHandlers)for(;s.cursorActivityCalled<s.cursorActivityHandlers.length;)s.cursorActivityHandlers[s.cursorActivityCalled++].call(null,s.cm)}}while(i<t.length)}function Kc(e,t){var i=e.ownsGroup;if(!!i)try{As(i)}finally{Lt=null,t(i)}}var no=null;function tr(e,t){var i=yi(e,t);if(!!i.length){var n=Array.prototype.slice.call(arguments,2),s;Lt?s=Lt.delayedCallbacks:no?s=no:(s=no=[],setTimeout(jc,0));for(var d=function(b){s.push(function(){return i[b].apply(null,n)})},p=0;p<i.length;++p)d(p)}}function jc(){var e=no;no=null;for(var t=0;t<e.length;++t)e[t]()}function i0(e,t,i,n){for(var s=0;s<t.changes.length;s++){var d=t.changes[s];d=="text"?Yc(e,t):d=="gutter"?Is(e,t,i,n):d=="class"?_l(e,t):d=="widget"&&Ds(e,t,n)}t.changes=null}function No(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),T&&k<8&&(e.node.style.zIndex=2)),e.node}function Ll(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var n=No(t);t.background=n.insertBefore(E("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function io(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Ps(e,t)}function Yc(e,t){var i=t.text.className,n=io(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,_l(e,t)):i&&(t.text.className=i)}function _l(e,t){Ll(e,t),t.line.wrapClass?No(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Is(e,t,i,n){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 s=No(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),s.insertBefore(t.gutterBackground,t.text)}var d=t.line.gutterMarkers;if(e.options.lineNumbers||d){var p=No(t),b=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(b.setAttribute("aria-hidden","true"),e.display.input.setUneditable(b),p.insertBefore(b,t.text),t.line.gutterClass&&(b.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!d||!d["CodeMirror-linenumbers"])&&(t.lineNumber=b.appendChild(E("div",Io(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),d)for(var m=0;m<e.display.gutterSpecs.length;++m){var C=e.display.gutterSpecs[m].className,_=d.hasOwnProperty(C)&&d[C];_&&b.appendChild(E("div",[_],"CodeMirror-gutter-elt","left: "+n.gutterLeft[C]+"px; width: "+n.gutterWidth[C]+"px"))}}}function Ds(e,t,i){t.alignable&&(t.alignable=null);for(var n=ve("CodeMirror-linewidget"),s=t.node.firstChild,d=void 0;s;s=d)d=s.nextSibling,n.test(s.className)&&t.node.removeChild(s);Ns(e,t,i)}function $s(e,t,i,n){var s=io(e,t);return t.text=t.node=s.pre,s.bgClass&&(t.bgClass=s.bgClass),s.textClass&&(t.textClass=s.textClass),_l(e,t),Is(e,t,i,n),Ns(e,t,n),t.node}function Ns(e,t,i){if(o0(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)o0(e,t.rest[n],t,i,!1)}function o0(e,t,i,n,s){if(!!t.widgets)for(var d=No(i),p=0,b=t.widgets;p<b.length;++p){var m=b[p],C=E("div",[m.node],"CodeMirror-linewidget"+(m.className?" "+m.className:""));m.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Rs(m,C,i,n),e.display.input.setUneditable(C),s&&m.above?d.insertBefore(C,i.gutter||i.text):d.appendChild(C),tr(m,"redraw")}}function Rs(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var s=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(s-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=s+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function oo(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!be(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),V(t.display.measure,E("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function ii(e,t){for(var i=Ci(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Ta(e){return e.lineSpace.offsetTop}function Rr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Sl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=V(e.measure,E("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function Gr(e){return He-e.display.nativeBarWidth}function _i(e){return e.display.scroller.clientWidth-Gr(e)-e.display.barWidth}function Ml(e){return e.display.scroller.clientHeight-Gr(e)-e.display.barHeight}function Xc(e,t,i){var n=e.options.lineWrapping,s=n&&_i(e);if(!t.measure.heights||n&&t.measure.width!=s){var d=t.measure.heights=[];if(n){t.measure.width=s;for(var p=t.text.firstChild.getClientRects(),b=0;b<p.length-1;b++){var m=p[b],C=p[b+1];Math.abs(m.bottom-C.bottom)>2&&d.push((m.bottom+C.top)/2-i.top)}}d.push(i.bottom-i.top)}}function a0(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var s=0;s<e.rest.length;s++)if(bt(e.rest[s])>i)return{map:e.measure.maps[s],cache:e.measure.caches[s],before:!0}}function Qc(e,t){t=Bn(t);var i=bt(t),n=e.display.externalMeasured=new Oa(e.doc,t,i);n.lineN=i;var s=n.built=Ps(e,n);return n.text=s.pre,V(e.display.lineMeasure,s.pre),n}function l0(e,t,i,n){return Fn(e,On(e,t),i,n)}function Hs(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Un(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function On(e,t){var i=bt(t),n=Hs(e,i);n&&!n.text?n=null:n&&n.changes&&(i0(e,n,i,qr(e)),e.curOp.forceUpdate=!0),n||(n=Qc(e,t));var s=a0(n,t,i);return{line:t,view:n,rect:null,map:s.map,cache:s.cache,before:s.before,hasHeights:!1}}function Fn(e,t,i,n,s){t.before&&(i=-1);var d=i+(n||""),p;return t.cache.hasOwnProperty(d)?p=t.cache[d]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Xc(e,t.view,t.rect),t.hasHeights=!0),p=Si(e,t,i,n),p.bogus||(t.cache[d]=p)),{left:p.left,right:p.right,top:s?p.rtop:p.top,bottom:s?p.rbottom:p.bottom}}var s0={left:0,right:0,top:0,bottom:0};function kl(e,t,i){for(var n,s,d,p,b,m,C=0;C<e.length;C+=3)if(b=e[C],m=e[C+1],t<b?(s=0,d=1,p="left"):t<m?(s=t-b,d=s+1):(C==e.length-3||t==m&&e[C+3]>t)&&(d=m-b,s=d-1,t>=m&&(p="right")),s!=null){if(n=e[C+2],b==m&&i==(n.insertLeft?"left":"right")&&(p=i),i=="left"&&s==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)n=e[(C-=3)+2],p="left";if(i=="right"&&s==m-b)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)n=e[(C+=3)+2],p="right";break}return{node:n,start:s,end:d,collapse:p,coverStart:b,coverEnd:m}}function u0(e,t){var i=s0;if(t=="left")for(var n=0;n<e.length&&(i=e[n]).left==i.right;n++);else for(var s=e.length-1;s>=0&&(i=e[s]).left==i.right;s--);return i}function Si(e,t,i,n){var s=kl(t.map,i,n),d=s.node,p=s.start,b=s.end,m=s.collapse,C;if(d.nodeType==3){for(var _=0;_<4;_++){for(;p&&Ye(t.line.text.charAt(s.coverStart+p));)--p;for(;s.coverStart+b<s.coverEnd&&Ye(t.line.text.charAt(s.coverStart+b));)++b;if(T&&k<9&&p==0&&b==s.coverEnd-s.coverStart?C=d.parentNode.getBoundingClientRect():C=u0(ee(d,p,b).getClientRects(),n),C.left||C.right||p==0)break;b=p,p=p-1,m="right"}T&&k<11&&(C=Ol(e.display.measure,C))}else{p>0&&(m=n="right");var M;e.options.lineWrapping&&(M=d.getClientRects()).length>1?C=M[n=="right"?M.length-1:0]:C=d.getBoundingClientRect()}if(T&&k<9&&!p&&(!C||!C.left&&!C.right)){var N=d.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Ro(e.display),top:N.top,bottom:N.bottom}:C=s0}for(var $=C.top-t.rect.top,q=C.bottom-t.rect.top,te=($+q)/2,ue=t.view.measure.heights,fe=0;fe<ue.length-1&&!(te<ue[fe]);fe++);var we=fe?ue[fe-1]:0,de=ue[fe],xe={left:(m=="right"?C.right:C.left)-t.rect.left,right:(m=="left"?C.left:C.right)-t.rect.left,top:we,bottom:de};return!C.left&&!C.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=$,xe.rbottom=q),xe}function Ol(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wi(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*n,bottom:t.bottom*n}}function c0(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 f0(e){e.display.externalMeasure=null,Xe(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)c0(e.display.view[t])}function Pa(e){f0(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ao(){return W&&Oe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function fn(){return W&&Oe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Tl(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=oo(e.widgets[i]));return t}function Pl(e,t,i,n,s){if(!s){var d=Tl(t);i.top+=d,i.bottom+=d}if(n=="line")return i;n||(n="local");var p=Nr(t);if(n=="local"?p+=Ta(e.display):p-=e.display.viewOffset,n=="page"||n=="window"){var b=e.display.lineSpace.getBoundingClientRect();p+=b.top+(n=="window"?0:fn());var m=b.left+(n=="window"?0:ao());i.left+=m,i.right+=m}return i.top+=p,i.bottom+=p,i}function d0(e,t,i){if(i=="div")return t;var n=t.left,s=t.top;if(i=="page")n-=ao(),s-=fn();else if(i=="local"||!i){var d=e.display.sizer.getBoundingClientRect();n+=d.left,s+=d.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:n-p.left,top:s-p.top}}function El(e,t,i,n,s){return n||(n=ke(e.doc,t.line)),Pl(e,n,l0(e,n,t.ch,s),i)}function Tn(e,t,i,n,s,d){n=n||ke(e.doc,t.line),s||(s=On(e,n));function p(q,te){var ue=Fn(e,s,q,te?"right":"left",d);return te?ue.left=ue.right:ue.right=ue.left,Pl(e,n,ue,i)}var b=_r(n,e.doc.direction),m=t.ch,C=t.sticky;if(m>=n.text.length?(m=n.text.length,C="before"):m<=0&&(m=0,C="after"),!b)return p(C=="before"?m-1:m,C=="before");function _(q,te,ue){var fe=b[te],we=fe.level==1;return p(ue?q-1:q,we!=ue)}var M=Nt(b,m,C),N=Dr,$=_(m,M,C=="before");return N!=null&&($.other=_(m,N,C!="before")),$}function h0(e,t){var i=0;t=Ce(e.doc,t),e.options.lineWrapping||(i=Ro(e.display)*t.ch);var n=ke(e.doc,t.line),s=Nr(n)+Ta(e.display);return{left:i,right:i,top:s,bottom:s+n.height}}function Mi(e,t,i,n,s){var d=oe(e,t,i);return d.xRel=s,n&&(d.outside=n),d}function R(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return Mi(n.first,0,null,-1,-1);var s=Mn(n,i),d=n.first+n.size-1;if(s>d)return Mi(n.first+n.size-1,ke(n,d).text.length,null,1,1);t<0&&(t=0);for(var p=ke(n,s);;){var b=Qe(e,p,s,t,i),m=Uc(p,b.ch+(b.xRel>0||b.outside>0?1:0));if(!m)return b;var C=m.find(1);if(C.line==s)return C;p=ke(n,s=C.line)}}function X(e,t,i,n){n-=Tl(t);var s=t.text.length,d=pr(function(p){return Fn(e,i,p-1).bottom<=n},s,0);return s=pr(function(p){return Fn(e,i,p).top>n},d,s),{begin:d,end:s}}function G(e,t,i,n){i||(i=On(e,t));var s=Pl(e,t,Fn(e,i,n),"line").top;return X(e,t,i,s)}function _e(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Qe(e,t,i,n,s){s-=Nr(t);var d=On(e,t),p=Tl(t),b=0,m=t.text.length,C=!0,_=_r(t,e.doc.direction);if(_){var M=(e.options.lineWrapping?rr:Ct)(e,t,i,d,_,n,s);C=M.level!=1,b=C?M.from:M.to-1,m=C?M.to:M.from-1}var N=null,$=null,q=pr(function(De){var Pe=Fn(e,d,De);return Pe.top+=p,Pe.bottom+=p,_e(Pe,n,s,!1)?(Pe.top<=s&&Pe.left<=n&&(N=De,$=Pe),!0):!1},b,m),te,ue,fe=!1;if($){var we=n-$.left<$.right-n,de=we==C;q=N+(de?0:1),ue=de?"after":"before",te=we?$.left:$.right}else{!C&&(q==m||q==b)&&q++,ue=q==0?"after":q==t.text.length?"before":Fn(e,d,q-(C?1:0)).bottom+p<=s==C?"after":"before";var xe=Tn(e,oe(i,q,ue),"line",t,d);te=xe.left,fe=s<xe.top?-1:s>=xe.bottom?1:0}return q=er(t.text,q,1),Mi(i,q,ue,fe,n-te)}function Ct(e,t,i,n,s,d,p){var b=pr(function(M){var N=s[M],$=N.level!=1;return _e(Tn(e,oe(i,$?N.to:N.from,$?"before":"after"),"line",t,n),d,p,!0)},0,s.length-1),m=s[b];if(b>0){var C=m.level!=1,_=Tn(e,oe(i,C?m.from:m.to,C?"after":"before"),"line",t,n);_e(_,d,p,!0)&&_.top>p&&(m=s[b-1])}return m}function rr(e,t,i,n,s,d,p){var b=X(e,t,n,p),m=b.begin,C=b.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var _=null,M=null,N=0;N<s.length;N++){var $=s[N];if(!($.from>=C||$.to<=m)){var q=$.level!=1,te=Fn(e,n,q?Math.min(C,$.to)-1:Math.max(m,$.from)).right,ue=te<d?d-te+1e9:te-d;(!_||M>ue)&&(_=$,M=ue)}}return _||(_=s[s.length-1]),_.from<m&&(_={from:m,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var gt;function ki(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(gt==null){gt=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)gt.appendChild(document.createTextNode("x")),gt.appendChild(E("br"));gt.appendChild(document.createTextNode("x"))}V(e.measure,gt);var i=gt.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Xe(e.measure),i||1}function Ro(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),i=E("pre",[t],"CodeMirror-line-like");V(e.measure,i);var n=t.getBoundingClientRect(),s=(n.right-n.left)/10;return s>2&&(e.cachedCharWidth=s),s||10}function qr(e){for(var t=e.display,i={},n={},s=t.gutters.clientLeft,d=t.gutters.firstChild,p=0;d;d=d.nextSibling,++p){var b=e.display.gutterSpecs[p].className;i[b]=d.offsetLeft+d.clientLeft+s,n[b]=d.clientWidth}return{fixedPos:Ho(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Ho(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function p0(e){var t=ki(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Ro(e.display)-3);return function(s){if(Ht(e.doc,s))return 0;var d=0;if(s.widgets)for(var p=0;p<s.widgets.length;p++)s.widgets[p].height&&(d+=s.widgets[p].height);return i?d+(Math.ceil(s.text.length/n)||1)*t:d+t}}function Oi(e){var t=e.doc,i=p0(e);t.iter(function(n){var s=i(n);s!=n.height&&Zr(n,s)})}function Wn(e,t,i,n){var s=e.display;if(!i&&Ci(t).getAttribute("cm-not-content")=="true")return null;var d,p,b=s.lineSpace.getBoundingClientRect();try{d=t.clientX-b.left,p=t.clientY-b.top}catch{return null}var m=R(e,d,p),C;if(n&&m.xRel>0&&(C=ke(e.doc,m.line).text).length==m.ch){var _=At(C,C.length,e.options.tabSize)-C.length;m=oe(m.line,Math.max(0,Math.round((d-Sl(e.display).left)/Ro(e.display))-_))}return m}function Un(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,n=0;n<i.length;n++)if(t-=i[n].size,t<0)return n}function et(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var s=e.display;if(n&&i<s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>t)&&(s.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=s.viewTo)Hn&&zl(e.doc,t)<s.viewTo&&oi(e);else if(i<=s.viewFrom)Hn&&Ju(e.doc,i+n)>s.viewFrom?oi(e):(s.viewFrom+=n,s.viewTo+=n);else if(t<=s.viewFrom&&i>=s.viewTo)oi(e);else if(t<=s.viewFrom){var d=lo(e,i,i+n,1);d?(s.view=s.view.slice(d.index),s.viewFrom=d.lineN,s.viewTo+=n):oi(e)}else if(i>=s.viewTo){var p=lo(e,t,t,-1);p?(s.view=s.view.slice(0,p.index),s.viewTo=p.lineN):oi(e)}else{var b=lo(e,t,t,-1),m=lo(e,i,i+n,1);b&&m?(s.view=s.view.slice(0,b.index).concat($o(e,b.lineN,m.lineN)).concat(s.view.slice(m.index)),s.viewTo+=n):oi(e)}var C=s.externalMeasured;C&&(i<C.lineN?C.lineN+=n:t<C.lineN+C.size&&(s.externalMeasured=null))}function Ti(e,t,i){e.curOp.viewChanged=!0;var n=e.display,s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var d=n.view[Un(e,t)];if(d.node!=null){var p=d.changes||(d.changes=[]);Le(p,i)==-1&&p.push(i)}}}function oi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function lo(e,t,i,n){var s=Un(e,t),d,p=e.display.view;if(!Hn||i==e.doc.first+e.doc.size)return{index:s,lineN:i};for(var b=e.display.viewFrom,m=0;m<s;m++)b+=p[m].size;if(b!=t){if(n>0){if(s==p.length-1)return null;d=b+p[s].size-t,s++}else d=b-t;t+=d,i+=d}for(;zl(e.doc,i)!=i;){if(s==(n<0?0:p.length-1))return null;i+=n*p[s-(n<0?1:0)].size,s+=n}return{index:s,lineN:i}}function Jc(e,t,i){var n=e.display,s=n.view;s.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=$o(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=$o(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Un(e,t))),n.viewFrom=t,n.viewTo<i?n.view=n.view.concat($o(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,Un(e,i)))),n.viewTo=i}function g0(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var s=t[n];!s.hidden&&(!s.node||s.changes)&&++i}return i}function Ea(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Aa(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},s=n.cursors=document.createDocumentFragment(),d=n.selection=document.createDocumentFragment(),p=0;p<i.sel.ranges.length;p++)if(!(!t&&p==i.sel.primIndex)){var b=i.sel.ranges[p];if(!(b.from().line>=e.display.viewTo||b.to().line<e.display.viewFrom)){var m=b.empty();(m||e.options.showCursorWhenSelecting)&&ai(e,b.head,s),m||v0(e,b,d)}}return n}function ai(e,t,i){var n=Tn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),s=i.appendChild(E("div","\xA0","CodeMirror-cursor"));if(s.style.left=n.left+"px",s.style.top=n.top+"px",s.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var d=El(e,t,"div",null,null);s.style.width=Math.max(0,d.right-d.left)+"px"}if(n.other){var p=i.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));p.style.display="",p.style.left=n.other.left+"px",p.style.top=n.other.top+"px",p.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function so(e,t){return e.top-t.top||e.left-t.left}function v0(e,t,i){var n=e.display,s=e.doc,d=document.createDocumentFragment(),p=Sl(e.display),b=p.left,m=Math.max(n.sizerWidth,_i(e)-n.sizer.offsetLeft)-p.right,C=s.direction=="ltr";function _(de,xe,De,Pe){xe<0&&(xe=0),xe=Math.round(xe),Pe=Math.round(Pe),d.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+de+`px;
|
|
2228
|
-
top: `+xe+"px; width: "+(De==null?
|
|
2229
|
-
height: `+(Pe-xe)+"px"))}function M(de,xe,De){var Pe=ke(s,de),it=Pe.text.length,xt,Xt;function Mt(Vt,hr){return
|
|
2230
|
-
top: `+(t.top-i.viewOffset-
|
|
2360
|
+
`,t);s==-1&&(s=e.length);var d=e.slice(t,e.charAt(s-1)=="\r"?s-1:s),p=d.indexOf("\r");p!=-1?(i.push(d.slice(0,p)),t+=p+1):(i.push(d),t=s+1)}return i}:function(e){return e.split(/\r\n?|\n/)},vl=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},bl=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),xa=null;function Ci(e){if(xa!=null)return xa;var t=V(e,E("span","x")),i=t.getBoundingClientRect(),n=ee(t,0,1).getBoundingClientRect();return xa=Math.abs(i.left-n.left)>1}var un={},Xr={};function ml(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),un[e]=t}function ti(e,t){Xr[e]=t}function to(e){if(typeof e=="string"&&Xr.hasOwnProperty(e))e=Xr[e];else if(e&&typeof e.name=="string"&&Xr.hasOwnProperty(e.name)){var t=Xr[e.name];typeof t=="string"&&(t={name:t}),e=Ur(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return to("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return to("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Io(e,t){t=to(t);var i=un[t.name];if(!i)return Io(e,"text/plain");var n=i(e,t);if(_n.hasOwnProperty(t.name)){var s=_n[t.name];for(var d in s)!s.hasOwnProperty(d)||(n.hasOwnProperty(d)&&(n["_"+d]=n[d]),n[d]=s[d])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)n[p]=t.modeProps[p];return n}var _n={};function Sn(e,t){var i=_n.hasOwnProperty(e)?_n[e]:_n[e]={};Ut(t,i)}function Qr(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var s=t[n];s instanceof Array&&(s=s.concat([])),i[n]=s}return i}function za(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function La(e,t,i){return e.startState?e.startState(t,i):!0}var It=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},It.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},It.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},It.prototype.backUp=function(e){this.pos-=e},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=At(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return At(this.string,null,this.tabSize)-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},It.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(p){return i?p.toLowerCase():p},s=this.string.substr(this.pos,e.length);if(n(s)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var d=this.string.slice(this.pos).match(e);return d&&d.index>0?null:(d&&t!==!1&&(this.pos+=d[0].length),d)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},It.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},It.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 i=e;!i.lines;)for(var n=0;;++n){var s=i.children[n],d=s.chunkSize();if(t<d){i=s;break}t-=d}return i.lines[t]}function Jr(e,t,i){var n=[],s=t.line;return e.iter(t.line,i.line+1,function(d){var p=d.text;s==i.line&&(p=p.slice(0,i.ch)),s==t.line&&(p=p.slice(t.ch)),n.push(p),++s}),n}function _a(e,t,i){var n=[];return e.iter(t,i,function(s){n.push(s.text)}),n}function Zr(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function bt(e){if(e.parent==null)return null;for(var t=e.parent,i=Le(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var s=0;n.children[s]!=t;++s)i+=n.children[s].chunkSize();return i+t.first}function Mn(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var s=e.children[n],d=s.height;if(t<d){e=s;continue e}t-=d,i+=s.chunkSize()}return i}while(!e.lines);for(var p=0;p<e.lines.length;++p){var b=e.lines[p],y=b.height;if(t<y)break;t-=y}return i+p}function wi(e,t){return t>=e.first&&t<e.first+e.size}function Do(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function oe(e,t,i){if(i===void 0&&(i=null),!(this instanceof oe))return new oe(e,t,i);this.line=e,this.ch=t,this.sticky=i}function w(e,t){return e.line-t.line||e.ch-t.ch}function O(e,t){return e.sticky==t.sticky&&w(e,t)==0}function Y(e){return oe(e.line,e.ch)}function le(e,t){return w(e,t)<0?t:e}function Ze(e,t){return w(e,t)<0?e:t}function ft(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Ce(e,t){if(t.line<e.first)return oe(e.first,0);var i=e.first+e.size-1;return t.line>i?oe(i,ke(e,i).text.length):vr(t,ke(e,t.line).text.length)}function vr(e,t){var i=e.ch;return i==null||i>t?oe(e.line,t):i<0?oe(e.line,0):e}function Vr(e,t){for(var i=[],n=0;n<t.length;n++)i[n]=Ce(e,t[n]);return i}var ri=function(e,t){this.state=e,this.lookAhead=t},kn=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};kn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},kn.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}},kn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kn.fromSaved=function(e,t,i){return t instanceof ri?new kn(e,Qr(e.mode,t.state),i,t.lookAhead):new kn(e,Qr(e.mode,t),i)},kn.prototype.save=function(e){var t=e!==!1?Qr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ri(t,this.maxLookAhead):t};function Gu(e,t,i,n){var s=[e.state.modeGen],d={};Ts(e,t.text,e.doc.mode,i,function(C,_){return s.push(C,_)},d,n);for(var p=i.state,b=function(C){i.baseTokens=s;var _=e.state.overlays[C],M=1,N=0;i.state=!0,Ts(e,t.text,_.mode,i,function($,q){for(var te=M;N<$;){var ue=s[M];ue>$&&s.splice(M,1,$,s[M+1],ue),M+=2,N=Math.min($,ue)}if(!!q)if(_.opaque)s.splice(te,M-te,$,"overlay "+q),M=te+2;else for(;te<M;te+=2){var fe=s[te+1];s[te+1]=(fe?fe+" ":"")+"overlay "+q}},d),i.state=p,i.baseTokens=null,i.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)b(y);return{styles:s,classes:d.bgClass||d.textClass?d:null}}function Os(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=$o(e,bt(t)),s=t.text.length>e.options.maxHighlightLength&&Qr(e.doc.mode,n.state),d=Gu(e,t,n);s&&(n.state=s),t.stateAfter=n.save(!s),t.styles=d.styles,d.classes?t.styleClasses=d.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function $o(e,t,i){var n=e.doc,s=e.display;if(!n.mode.startState)return new kn(n,!0,t);var d=Ku(e,t,i),p=d>n.first&&ke(n,d-1).stateAfter,b=p?kn.fromSaved(n,p,d):new kn(n,La(n.mode),d);return n.iter(d,t,function(y){Sa(e,y.text,b);var C=b.line;y.stateAfter=C==t-1||C%5==0||C>=s.viewFrom&&C<s.viewTo?b.save():null,b.nextLine()}),i&&(n.modeFrontier=b.line),b}function Sa(e,t,i,n){var s=e.doc.mode,d=new It(t,e.options.tabSize,i);for(d.start=d.pos=n||0,t==""&&qu(s,i.state);!d.eol();)yl(s,d,i.state),d.start=d.pos}function qu(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var i=za(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function yl(e,t,i,n){for(var s=0;s<10;s++){n&&(n[0]=za(e,i).mode);var d=e.token(t,i);if(t.pos>t.start)return d}throw new Error("Mode "+e.name+" failed to advance stream.")}var Cl=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function wl(e,t,i,n){var s=e.doc,d=s.mode,p;t=Ce(s,t);var b=ke(s,t.line),y=$o(e,t.line,i),C=new It(b.text,e.options.tabSize,y),_;for(n&&(_=[]);(n||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=yl(d,C,y.state),n&&_.push(new Cl(C,p,Qr(s.mode,y.state)));return n?_:new Cl(C,p,y.state)}function ro(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var n=i[1]?"bgClass":"textClass";t[n]==null?t[n]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+i[2])}return e}function Ts(e,t,i,n,s,d,p){var b=i.flattenSpans;b==null&&(b=e.options.flattenSpans);var y=0,C=null,_=new It(t,e.options.tabSize,n),M,N=e.options.addModeClass&&[null];for(t==""&&ro(qu(i,n.state),d);!_.eol();){if(_.pos>e.options.maxHighlightLength?(b=!1,p&&Sa(e,t,n,_.pos),_.pos=t.length,M=null):M=ro(yl(i,_,n.state,N),d),N){var $=N[0].name;$&&(M="m-"+(M?$+" "+M:$))}if(!b||C!=M){for(;y<_.start;)y=Math.min(_.start,y+5e3),s(y,C);C=M}_.start=_.pos}for(;y<_.pos;){var q=Math.min(_.pos,y+5e3);s(q,C),y=q}}function Ku(e,t,i){for(var n,s,d=e.doc,p=i?-1:t-(e.doc.mode.innerMode?1e3:100),b=t;b>p;--b){if(b<=d.first)return d.first;var y=ke(d,b-1),C=y.stateAfter;if(C&&(!i||b+(C instanceof ri?C.lookAhead:0)<=d.modeFrontier))return b;var _=At(y.text,null,e.options.tabSize);(s==null||n>_)&&(s=b-1,n=_)}return s}function Zc(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,n=t-1;n>i;n--){var s=ke(e,n).stateAfter;if(s&&(!(s instanceof ri)||n+s.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Ps=!1,Hn=!1;function ju(){Ps=!0}function Yu(){Hn=!0}function xl(e,t,i){this.marker=e,this.from=t,this.to=i}function Ma(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function Vc(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function Xu(e,t,i){var n=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));n&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function Gc(e,t,i){var n;if(e)for(var s=0;s<e.length;++s){var d=e[s],p=d.marker,b=d.from==null||(p.inclusiveLeft?d.from<=t:d.from<t);if(b||d.from==t&&p.type=="bookmark"&&(!i||!d.marker.insertLeft)){var y=d.to==null||(p.inclusiveRight?d.to>=t:d.to>t);(n||(n=[])).push(new xl(p,d.from,y?null:d.to))}}return n}function qc(e,t,i){var n;if(e)for(var s=0;s<e.length;++s){var d=e[s],p=d.marker,b=d.to==null||(p.inclusiveRight?d.to>=t:d.to>t);if(b||d.from==t&&p.type=="bookmark"&&(!i||d.marker.insertLeft)){var y=d.from==null||(p.inclusiveLeft?d.from<=t:d.from<t);(n||(n=[])).push(new xl(p,y?null:d.from-t,d.to==null?null:d.to-t))}}return n}function Es(e,t){if(t.full)return null;var i=wi(e,t.from.line)&&ke(e,t.from.line).markedSpans,n=wi(e,t.to.line)&&ke(e,t.to.line).markedSpans;if(!i&&!n)return null;var s=t.from.ch,d=t.to.ch,p=w(t.from,t.to)==0,b=Gc(i,s,p),y=qc(n,d,p),C=t.text.length==1,_=Ke(t.text).length+(C?s:0);if(b)for(var M=0;M<b.length;++M){var N=b[M];if(N.to==null){var $=Ma(y,N.marker);$?C&&(N.to=$.to==null?null:$.to+_):N.to=s}}if(y)for(var q=0;q<y.length;++q){var te=y[q];if(te.to!=null&&(te.to+=_),te.from==null){var ue=Ma(b,te.marker);ue||(te.from=_,C&&(b||(b=[])).push(te))}else te.from+=_,C&&(b||(b=[])).push(te)}b&&(b=Qu(b)),y&&y!=b&&(y=Qu(y));var fe=[b];if(!C){var we=t.text.length-2,de;if(we>0&&b)for(var xe=0;xe<b.length;++xe)b[xe].to==null&&(de||(de=[])).push(new xl(b[xe].marker,null,null));for(var De=0;De<we;++De)fe.push(de);fe.push(y)}return fe}function Qu(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function As(e,t,i){var n=null;if(e.iter(t.line,i.line+1,function($){if($.markedSpans)for(var q=0;q<$.markedSpans.length;++q){var te=$.markedSpans[q].marker;te.readOnly&&(!n||Le(n,te)==-1)&&(n||(n=[])).push(te)}}),!n)return null;for(var s=[{from:t,to:i}],d=0;d<n.length;++d)for(var p=n[d],b=p.find(0),y=0;y<s.length;++y){var C=s[y];if(!(w(C.to,b.from)<0||w(C.from,b.to)>0)){var _=[y,1],M=w(C.from,b.from),N=w(C.to,b.to);(M<0||!p.inclusiveLeft&&!M)&&_.push({from:C.from,to:b.from}),(N>0||!p.inclusiveRight&&!N)&&_.push({from:b.to,to:C.to}),s.splice.apply(s,_),y+=_.length-3}}return s}function Ju(e){var t=e.markedSpans;if(!!t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function e0(e,t){if(!!t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function zl(e){return e.inclusiveLeft?-1:0}function Ll(e){return e.inclusiveRight?1:0}function Is(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),s=t.find(),d=w(n.from,s.from)||zl(e)-zl(t);if(d)return-d;var p=w(n.to,s.to)||Ll(e)-Ll(t);return p||t.id-e.id}function Dt(e,t){var i=Hn&&e.markedSpans,n;if(i)for(var s=void 0,d=0;d<i.length;++d)s=i[d],s.marker.collapsed&&(t?s.from:s.to)==null&&(!n||Is(n,s.marker)<0)&&(n=s.marker);return n}function Ot(e){return Dt(e,!0)}function _l(e){return Dt(e,!1)}function Kc(e,t){var i=Hn&&e.markedSpans,n;if(i)for(var s=0;s<i.length;++s){var d=i[s];d.marker.collapsed&&(d.from==null||d.from<t)&&(d.to==null||d.to>t)&&(!n||Is(n,d.marker)<0)&&(n=d.marker)}return n}function t0(e,t,i,n,s){var d=ke(e,t),p=Hn&&d.markedSpans;if(p)for(var b=0;b<p.length;++b){var y=p[b];if(!!y.marker.collapsed){var C=y.marker.find(0),_=w(C.from,i)||zl(y.marker)-zl(s),M=w(C.to,n)||Ll(y.marker)-Ll(s);if(!(_>=0&&M<=0||_<=0&&M>=0)&&(_<=0&&(y.marker.inclusiveRight&&s.inclusiveLeft?w(C.to,i)>=0:w(C.to,i)>0)||_>=0&&(y.marker.inclusiveRight&&s.inclusiveLeft?w(C.from,n)<=0:w(C.from,n)<0)))return!0}}}function Bn(e){for(var t;t=Ot(e);)e=t.find(-1,!0).line;return e}function jc(e){for(var t;t=_l(e);)e=t.find(1,!0).line;return e}function Yc(e){for(var t,i;t=_l(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Sl(e,t){var i=ke(e,t),n=Bn(i);return i==n?t:bt(n)}function r0(e,t){if(t>e.lastLine())return t;var i=ke(e,t),n;if(!Ht(e,i))return t;for(;n=_l(i);)i=n.find(1,!0).line;return bt(i)+1}function Ht(e,t){var i=Hn&&t.markedSpans;if(i){for(var n=void 0,s=0;s<i.length;++s)if(n=i[s],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&ka(e,t,n))return!0}}}function ka(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return ka(e,n.line,Ma(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var s=void 0,d=0;d<t.markedSpans.length;++d)if(s=t.markedSpans[d],s.marker.collapsed&&!s.marker.widgetNode&&s.from==i.to&&(s.to==null||s.to!=i.from)&&(s.marker.inclusiveLeft||i.marker.inclusiveRight)&&ka(e,t,s))return!0}function Nr(e){e=Bn(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var s=i.lines[n];if(s==e)break;t+=s.height}for(var d=i.parent;d;i=d,d=i.parent)for(var p=0;p<d.children.length;++p){var b=d.children[p];if(b==i)break;t+=b.height}return t}function Oa(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=Ot(n);){var s=i.find(0,!0);n=s.from.line,t+=s.from.ch-s.to.ch}for(n=e;i=_l(n);){var d=i.find(0,!0);t-=n.text.length-d.from.ch,n=d.to.line,t+=n.text.length-d.to.ch}return t}function Ta(e){var t=e.display,i=e.doc;t.maxLine=ke(i,i.first),t.maxLineLength=Oa(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var s=Oa(n);s>t.maxLineLength&&(t.maxLineLength=s,t.maxLine=n)})}var br=function(e,t,i){this.text=e,e0(this,t),this.height=i?i(this):1};br.prototype.lineNo=function(){return bt(this)},Ln(br);function n0(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ju(e),e0(e,i);var s=n?n(e):1;s!=e.height&&Zr(e,s)}function i0(e){e.parent=null,Ju(e)}var o0={},a0={};function Ds(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?a0:o0;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function $s(e,t){var i=S("span",null,null,I?"padding-right: .1px":null),n={pre:S("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var s=0;s<=(t.rest?t.rest.length:0);s++){var d=s?t.rest[s-1]:t.line,p=void 0;n.pos=0,n.addToken=Xc,Rn(e.display.measure)&&(p=_r(d,e.doc.direction))&&(n.addToken=Qc(n.addToken,p)),n.map=[];var b=t!=e.display.externalMeasured&&bt(d);xi(d,n,Os(e,d,b)),d.styleClasses&&(d.styleClasses.bgClass&&(n.bgClass=jt(d.styleClasses.bgClass,n.bgClass||"")),d.styleClasses.textClass&&(n.textClass=jt(d.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(gl(e.display.measure))),s==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var y=n.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ue(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=jt(n.pre.className,n.textClass||"")),n}function en(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 Xc(e,t,i,n,s,d,p){if(!!t){var b=e.splitSpaces?cn(t,e.trailingSpace):t,y=e.cm.state.specialChars,C=!1,_;if(!y.test(t))e.col+=t.length,_=document.createTextNode(b),e.map.push(e.pos,e.pos+t.length,_),T&&k<9&&(C=!0),e.pos+=t.length;else{_=document.createDocumentFragment();for(var M=0;;){y.lastIndex=M;var N=y.exec(t),$=N?N.index-M:t.length-M;if($){var q=document.createTextNode(b.slice(M,M+$));T&&k<9?_.appendChild(E("span",[q])):_.appendChild(q),e.map.push(e.pos,e.pos+$,q),e.col+=$,e.pos+=$}if(!N)break;M+=$+1;var te=void 0;if(N[0]==" "){var ue=e.cm.options.tabSize,fe=ue-e.col%ue;te=_.appendChild(E("span",Yt(fe),"cm-tab")),te.setAttribute("role","presentation"),te.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
|
|
2361
|
+
`?(te=_.appendChild(E("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),te.setAttribute("cm-text",N[0]),e.col+=1):(te=e.cm.options.specialCharPlaceholder(N[0]),te.setAttribute("cm-text",N[0]),T&&k<9?_.appendChild(E("span",[te])):_.appendChild(te),e.col+=1);e.map.push(e.pos,e.pos+1,te),e.pos++}}if(e.trailingSpace=b.charCodeAt(t.length-1)==32,i||n||s||C||d||p){var we=i||"";n&&(we+=n),s&&(we+=s);var de=E("span",[_],we,d);if(p)for(var xe in p)p.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&de.setAttribute(xe,p[xe]);return e.content.appendChild(de)}e.content.appendChild(_)}}function cn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",s=0;s<e.length;s++){var d=e.charAt(s);d==" "&&i&&(s==e.length-1||e.charCodeAt(s+1)==32)&&(d="\xA0"),n+=d,i=d==" "}return n}function Qc(e,t){return function(i,n,s,d,p,b,y){s=s?s+" cm-force-border":"cm-force-border";for(var C=i.pos,_=C+n.length;;){for(var M=void 0,N=0;N<t.length&&(M=t[N],!(M.to>C&&M.from<=C));N++);if(M.to>=_)return e(i,n,s,d,p,b,y);e(i,n.slice(0,M.to-C),s,d,null,b,y),d=null,n=n.slice(M.to-C),C=M.to}}}function Ns(e,t,i,n){var s=!n&&i.widgetNode;s&&e.map.push(e.pos,e.pos+t,s),!n&&e.cm.display.input.needsContentAttribute&&(s||(s=e.content.appendChild(document.createElement("span"))),s.setAttribute("cm-marker",i.id)),s&&(e.cm.display.input.setUneditable(s),e.content.appendChild(s)),e.pos+=t,e.trailingSpace=!1}function xi(e,t,i){var n=e.markedSpans,s=e.text,d=0;if(!n){for(var p=1;p<i.length;p+=2)t.addToken(t,s.slice(d,d=i[p]),Ds(i[p+1],t.cm.options));return}for(var b=s.length,y=0,C=1,_="",M,N,$=0,q,te,ue,fe,we;;){if($==y){q=te=ue=N="",we=null,fe=null,$=1/0;for(var de=[],xe=void 0,De=0;De<n.length;++De){var Pe=n[De],it=Pe.marker;if(it.type=="bookmark"&&Pe.from==y&&it.widgetNode)de.push(it);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||it.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&$>Pe.to&&($=Pe.to,te=""),it.className&&(q+=" "+it.className),it.css&&(N=(N?N+";":"")+it.css),it.startStyle&&Pe.from==y&&(ue+=" "+it.startStyle),it.endStyle&&Pe.to==$&&(xe||(xe=[])).push(it.endStyle,Pe.to),it.title&&((we||(we={})).title=it.title),it.attributes)for(var xt in it.attributes)(we||(we={}))[xt]=it.attributes[xt];it.collapsed&&(!fe||Is(fe.marker,it)<0)&&(fe=Pe)}else Pe.from>y&&$>Pe.from&&($=Pe.from)}if(xe)for(var Xt=0;Xt<xe.length;Xt+=2)xe[Xt+1]==$&&(te+=" "+xe[Xt]);if(!fe||fe.from==y)for(var Mt=0;Mt<de.length;++Mt)Ns(t,0,de[Mt]);if(fe&&(fe.from||0)==y){if(Ns(t,(fe.to==null?b+1:fe.to)-y,fe.marker,fe.from==null),fe.to==null)return;fe.to==y&&(fe=!1)}}if(y>=b)break;for(var Or=Math.min(b,$);;){if(_){var Tr=y+_.length;if(!fe){var Vt=Tr>Or?_.slice(0,Or-y):_;t.addToken(t,Vt,M?M+q:q,ue,y+Vt.length==$?te:"",N,we)}if(Tr>=Or){_=_.slice(Or-y),y=Or;break}y=Tr,ue=""}_=s.slice(d,d=i[C++]),M=Ds(i[C++],t.cm.options)}}}function Pa(e,t,i){this.line=t,this.rest=Yc(t),this.size=this.rest?bt(Ke(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Ht(e,t)}function No(e,t,i){for(var n=[],s,d=t;d<i;d=s){var p=new Pa(e.doc,ke(e.doc,d),d);s=d+p.size,n.push(p)}return n}var Lt=null;function zi(e){Lt?Lt.ops.push(e):e.ownsGroup=Lt={ops:[e],delayedCallbacks:[]}}function Rs(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var n=0;n<e.ops.length;n++){var s=e.ops[n];if(s.cursorActivityHandlers)for(;s.cursorActivityCalled<s.cursorActivityHandlers.length;)s.cursorActivityHandlers[s.cursorActivityCalled++].call(null,s.cm)}}while(i<t.length)}function Jc(e,t){var i=e.ownsGroup;if(!!i)try{Rs(i)}finally{Lt=null,t(i)}}var no=null;function rr(e,t){var i=mi(e,t);if(!!i.length){var n=Array.prototype.slice.call(arguments,2),s;Lt?s=Lt.delayedCallbacks:no?s=no:(s=no=[],setTimeout(e1,0));for(var d=function(b){s.push(function(){return i[b].apply(null,n)})},p=0;p<i.length;++p)d(p)}}function e1(){var e=no;no=null;for(var t=0;t<e.length;++t)e[t]()}function l0(e,t,i,n){for(var s=0;s<t.changes.length;s++){var d=t.changes[s];d=="text"?t1(e,t):d=="gutter"?Hs(e,t,i,n):d=="class"?kl(e,t):d=="widget"&&Bs(e,t,n)}t.changes=null}function Ro(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),T&&k<8&&(e.node.style.zIndex=2)),e.node}function Ml(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var n=Ro(t);t.background=n.insertBefore(E("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function io(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):$s(e,t)}function t1(e,t){var i=t.text.className,n=io(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,kl(e,t)):i&&(t.text.className=i)}function kl(e,t){Ml(e,t),t.line.wrapClass?Ro(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Hs(e,t,i,n){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 s=Ro(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),s.insertBefore(t.gutterBackground,t.text)}var d=t.line.gutterMarkers;if(e.options.lineNumbers||d){var p=Ro(t),b=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(b.setAttribute("aria-hidden","true"),e.display.input.setUneditable(b),p.insertBefore(b,t.text),t.line.gutterClass&&(b.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!d||!d["CodeMirror-linenumbers"])&&(t.lineNumber=b.appendChild(E("div",Do(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),d)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,_=d.hasOwnProperty(C)&&d[C];_&&b.appendChild(E("div",[_],"CodeMirror-gutter-elt","left: "+n.gutterLeft[C]+"px; width: "+n.gutterWidth[C]+"px"))}}}function Bs(e,t,i){t.alignable&&(t.alignable=null);for(var n=ve("CodeMirror-linewidget"),s=t.node.firstChild,d=void 0;s;s=d)d=s.nextSibling,n.test(s.className)&&t.node.removeChild(s);Ws(e,t,i)}function Fs(e,t,i,n){var s=io(e,t);return t.text=t.node=s.pre,s.bgClass&&(t.bgClass=s.bgClass),s.textClass&&(t.textClass=s.textClass),kl(e,t),Hs(e,t,i,n),Ws(e,t,n),t.node}function Ws(e,t,i){if(s0(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)s0(e,t.rest[n],t,i,!1)}function s0(e,t,i,n,s){if(!!t.widgets)for(var d=Ro(i),p=0,b=t.widgets;p<b.length;++p){var y=b[p],C=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Us(y,C,i,n),e.display.input.setUneditable(C),s&&y.above?d.insertBefore(C,i.gutter||i.text):d.appendChild(C),rr(y,"redraw")}}function Us(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var s=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(s-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=s+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function oo(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!be(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),V(t.display.measure,E("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function ni(e,t){for(var i=yi(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Ea(e){return e.lineSpace.offsetTop}function Rr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ol(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=V(e.measure,E("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function Gr(e){return He-e.display.nativeBarWidth}function Li(e){return e.display.scroller.clientWidth-Gr(e)-e.display.barWidth}function Tl(e){return e.display.scroller.clientHeight-Gr(e)-e.display.barHeight}function r1(e,t,i){var n=e.options.lineWrapping,s=n&&Li(e);if(!t.measure.heights||n&&t.measure.width!=s){var d=t.measure.heights=[];if(n){t.measure.width=s;for(var p=t.text.firstChild.getClientRects(),b=0;b<p.length-1;b++){var y=p[b],C=p[b+1];Math.abs(y.bottom-C.bottom)>2&&d.push((y.bottom+C.top)/2-i.top)}}d.push(i.bottom-i.top)}}function u0(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var s=0;s<e.rest.length;s++)if(bt(e.rest[s])>i)return{map:e.measure.maps[s],cache:e.measure.caches[s],before:!0}}function n1(e,t){t=Bn(t);var i=bt(t),n=e.display.externalMeasured=new Pa(e.doc,t,i);n.lineN=i;var s=n.built=$s(e,n);return n.text=s.pre,V(e.display.lineMeasure,s.pre),n}function c0(e,t,i,n){return Fn(e,On(e,t),i,n)}function Zs(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Un(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function On(e,t){var i=bt(t),n=Zs(e,i);n&&!n.text?n=null:n&&n.changes&&(l0(e,n,i,qr(e)),e.curOp.forceUpdate=!0),n||(n=n1(e,t));var s=u0(n,t,i);return{line:t,view:n,rect:null,map:s.map,cache:s.cache,before:s.before,hasHeights:!1}}function Fn(e,t,i,n,s){t.before&&(i=-1);var d=i+(n||""),p;return t.cache.hasOwnProperty(d)?p=t.cache[d]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(r1(e,t.view,t.rect),t.hasHeights=!0),p=_i(e,t,i,n),p.bogus||(t.cache[d]=p)),{left:p.left,right:p.right,top:s?p.rtop:p.top,bottom:s?p.rbottom:p.bottom}}var f0={left:0,right:0,top:0,bottom:0};function Pl(e,t,i){for(var n,s,d,p,b,y,C=0;C<e.length;C+=3)if(b=e[C],y=e[C+1],t<b?(s=0,d=1,p="left"):t<y?(s=t-b,d=s+1):(C==e.length-3||t==y&&e[C+3]>t)&&(d=y-b,s=d-1,t>=y&&(p="right")),s!=null){if(n=e[C+2],b==y&&i==(n.insertLeft?"left":"right")&&(p=i),i=="left"&&s==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)n=e[(C-=3)+2],p="left";if(i=="right"&&s==y-b)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)n=e[(C+=3)+2],p="right";break}return{node:n,start:s,end:d,collapse:p,coverStart:b,coverEnd:y}}function d0(e,t){var i=f0;if(t=="left")for(var n=0;n<e.length&&(i=e[n]).left==i.right;n++);else for(var s=e.length-1;s>=0&&(i=e[s]).left==i.right;s--);return i}function _i(e,t,i,n){var s=Pl(t.map,i,n),d=s.node,p=s.start,b=s.end,y=s.collapse,C;if(d.nodeType==3){for(var _=0;_<4;_++){for(;p&&Ye(t.line.text.charAt(s.coverStart+p));)--p;for(;s.coverStart+b<s.coverEnd&&Ye(t.line.text.charAt(s.coverStart+b));)++b;if(T&&k<9&&p==0&&b==s.coverEnd-s.coverStart?C=d.parentNode.getBoundingClientRect():C=d0(ee(d,p,b).getClientRects(),n),C.left||C.right||p==0)break;b=p,p=p-1,y="right"}T&&k<11&&(C=El(e.display.measure,C))}else{p>0&&(y=n="right");var M;e.options.lineWrapping&&(M=d.getClientRects()).length>1?C=M[n=="right"?M.length-1:0]:C=d.getBoundingClientRect()}if(T&&k<9&&!p&&(!C||!C.left&&!C.right)){var N=d.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Ho(e.display),top:N.top,bottom:N.bottom}:C=f0}for(var $=C.top-t.rect.top,q=C.bottom-t.rect.top,te=($+q)/2,ue=t.view.measure.heights,fe=0;fe<ue.length-1&&!(te<ue[fe]);fe++);var we=fe?ue[fe-1]:0,de=ue[fe],xe={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&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=$,xe.rbottom=q),xe}function El(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ci(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*n,bottom:t.bottom*n}}function h0(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 p0(e){e.display.externalMeasure=null,Xe(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)h0(e.display.view[t])}function Aa(e){p0(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ao(){return U&&Oe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function fn(){return U&&Oe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Al(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=oo(e.widgets[i]));return t}function Il(e,t,i,n,s){if(!s){var d=Al(t);i.top+=d,i.bottom+=d}if(n=="line")return i;n||(n="local");var p=Nr(t);if(n=="local"?p+=Ea(e.display):p-=e.display.viewOffset,n=="page"||n=="window"){var b=e.display.lineSpace.getBoundingClientRect();p+=b.top+(n=="window"?0:fn());var y=b.left+(n=="window"?0:ao());i.left+=y,i.right+=y}return i.top+=p,i.bottom+=p,i}function g0(e,t,i){if(i=="div")return t;var n=t.left,s=t.top;if(i=="page")n-=ao(),s-=fn();else if(i=="local"||!i){var d=e.display.sizer.getBoundingClientRect();n+=d.left,s+=d.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:n-p.left,top:s-p.top}}function Dl(e,t,i,n,s){return n||(n=ke(e.doc,t.line)),Il(e,n,c0(e,n,t.ch,s),i)}function Tn(e,t,i,n,s,d){n=n||ke(e.doc,t.line),s||(s=On(e,n));function p(q,te){var ue=Fn(e,s,q,te?"right":"left",d);return te?ue.left=ue.right:ue.right=ue.left,Il(e,n,ue,i)}var b=_r(n,e.doc.direction),y=t.ch,C=t.sticky;if(y>=n.text.length?(y=n.text.length,C="before"):y<=0&&(y=0,C="after"),!b)return p(C=="before"?y-1:y,C=="before");function _(q,te,ue){var fe=b[te],we=fe.level==1;return p(ue?q-1:q,we!=ue)}var M=Nt(b,y,C),N=Dr,$=_(y,M,C=="before");return N!=null&&($.other=_(y,N,C!="before")),$}function v0(e,t){var i=0;t=Ce(e.doc,t),e.options.lineWrapping||(i=Ho(e.display)*t.ch);var n=ke(e.doc,t.line),s=Nr(n)+Ea(e.display);return{left:i,right:i,top:s,bottom:s+n.height}}function Si(e,t,i,n,s){var d=oe(e,t,i);return d.xRel=s,n&&(d.outside=n),d}function R(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return Si(n.first,0,null,-1,-1);var s=Mn(n,i),d=n.first+n.size-1;if(s>d)return Si(n.first+n.size-1,ke(n,d).text.length,null,1,1);t<0&&(t=0);for(var p=ke(n,s);;){var b=Qe(e,p,s,t,i),y=Kc(p,b.ch+(b.xRel>0||b.outside>0?1:0));if(!y)return b;var C=y.find(1);if(C.line==s)return C;p=ke(n,s=C.line)}}function X(e,t,i,n){n-=Al(t);var s=t.text.length,d=pr(function(p){return Fn(e,i,p-1).bottom<=n},s,0);return s=pr(function(p){return Fn(e,i,p).top>n},d,s),{begin:d,end:s}}function G(e,t,i,n){i||(i=On(e,t));var s=Il(e,t,Fn(e,i,n),"line").top;return X(e,t,i,s)}function _e(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Qe(e,t,i,n,s){s-=Nr(t);var d=On(e,t),p=Al(t),b=0,y=t.text.length,C=!0,_=_r(t,e.doc.direction);if(_){var M=(e.options.lineWrapping?nr:Ct)(e,t,i,d,_,n,s);C=M.level!=1,b=C?M.from:M.to-1,y=C?M.to:M.from-1}var N=null,$=null,q=pr(function(De){var Pe=Fn(e,d,De);return Pe.top+=p,Pe.bottom+=p,_e(Pe,n,s,!1)?(Pe.top<=s&&Pe.left<=n&&(N=De,$=Pe),!0):!1},b,y),te,ue,fe=!1;if($){var we=n-$.left<$.right-n,de=we==C;q=N+(de?0:1),ue=de?"after":"before",te=we?$.left:$.right}else{!C&&(q==y||q==b)&&q++,ue=q==0?"after":q==t.text.length?"before":Fn(e,d,q-(C?1:0)).bottom+p<=s==C?"after":"before";var xe=Tn(e,oe(i,q,ue),"line",t,d);te=xe.left,fe=s<xe.top?-1:s>=xe.bottom?1:0}return q=tr(t.text,q,1),Si(i,q,ue,fe,n-te)}function Ct(e,t,i,n,s,d,p){var b=pr(function(M){var N=s[M],$=N.level!=1;return _e(Tn(e,oe(i,$?N.to:N.from,$?"before":"after"),"line",t,n),d,p,!0)},0,s.length-1),y=s[b];if(b>0){var C=y.level!=1,_=Tn(e,oe(i,C?y.from:y.to,C?"after":"before"),"line",t,n);_e(_,d,p,!0)&&_.top>p&&(y=s[b-1])}return y}function nr(e,t,i,n,s,d,p){var b=X(e,t,n,p),y=b.begin,C=b.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var _=null,M=null,N=0;N<s.length;N++){var $=s[N];if(!($.from>=C||$.to<=y)){var q=$.level!=1,te=Fn(e,n,q?Math.min(C,$.to)-1:Math.max(y,$.from)).right,ue=te<d?d-te+1e9:te-d;(!_||M>ue)&&(_=$,M=ue)}}return _||(_=s[s.length-1]),_.from<y&&(_={from:y,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var gt;function Mi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(gt==null){gt=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)gt.appendChild(document.createTextNode("x")),gt.appendChild(E("br"));gt.appendChild(document.createTextNode("x"))}V(e.measure,gt);var i=gt.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Xe(e.measure),i||1}function Ho(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),i=E("pre",[t],"CodeMirror-line-like");V(e.measure,i);var n=t.getBoundingClientRect(),s=(n.right-n.left)/10;return s>2&&(e.cachedCharWidth=s),s||10}function qr(e){for(var t=e.display,i={},n={},s=t.gutters.clientLeft,d=t.gutters.firstChild,p=0;d;d=d.nextSibling,++p){var b=e.display.gutterSpecs[p].className;i[b]=d.offsetLeft+d.clientLeft+s,n[b]=d.clientWidth}return{fixedPos:Bo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Bo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function b0(e){var t=Mi(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Ho(e.display)-3);return function(s){if(Ht(e.doc,s))return 0;var d=0;if(s.widgets)for(var p=0;p<s.widgets.length;p++)s.widgets[p].height&&(d+=s.widgets[p].height);return i?d+(Math.ceil(s.text.length/n)||1)*t:d+t}}function ki(e){var t=e.doc,i=b0(e);t.iter(function(n){var s=i(n);s!=n.height&&Zr(n,s)})}function Wn(e,t,i,n){var s=e.display;if(!i&&yi(t).getAttribute("cm-not-content")=="true")return null;var d,p,b=s.lineSpace.getBoundingClientRect();try{d=t.clientX-b.left,p=t.clientY-b.top}catch{return null}var y=R(e,d,p),C;if(n&&y.xRel>0&&(C=ke(e.doc,y.line).text).length==y.ch){var _=At(C,C.length,e.options.tabSize)-C.length;y=oe(y.line,Math.max(0,Math.round((d-Ol(e.display).left)/Ho(e.display))-_))}return y}function Un(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,n=0;n<i.length;n++)if(t-=i[n].size,t<0)return n}function et(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var s=e.display;if(n&&i<s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>t)&&(s.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=s.viewTo)Hn&&Sl(e.doc,t)<s.viewTo&&ii(e);else if(i<=s.viewFrom)Hn&&r0(e.doc,i+n)>s.viewFrom?ii(e):(s.viewFrom+=n,s.viewTo+=n);else if(t<=s.viewFrom&&i>=s.viewTo)ii(e);else if(t<=s.viewFrom){var d=lo(e,i,i+n,1);d?(s.view=s.view.slice(d.index),s.viewFrom=d.lineN,s.viewTo+=n):ii(e)}else if(i>=s.viewTo){var p=lo(e,t,t,-1);p?(s.view=s.view.slice(0,p.index),s.viewTo=p.lineN):ii(e)}else{var b=lo(e,t,t,-1),y=lo(e,i,i+n,1);b&&y?(s.view=s.view.slice(0,b.index).concat(No(e,b.lineN,y.lineN)).concat(s.view.slice(y.index)),s.viewTo+=n):ii(e)}var C=s.externalMeasured;C&&(i<C.lineN?C.lineN+=n:t<C.lineN+C.size&&(s.externalMeasured=null))}function Oi(e,t,i){e.curOp.viewChanged=!0;var n=e.display,s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var d=n.view[Un(e,t)];if(d.node!=null){var p=d.changes||(d.changes=[]);Le(p,i)==-1&&p.push(i)}}}function ii(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function lo(e,t,i,n){var s=Un(e,t),d,p=e.display.view;if(!Hn||i==e.doc.first+e.doc.size)return{index:s,lineN:i};for(var b=e.display.viewFrom,y=0;y<s;y++)b+=p[y].size;if(b!=t){if(n>0){if(s==p.length-1)return null;d=b+p[s].size-t,s++}else d=b-t;t+=d,i+=d}for(;Sl(e.doc,i)!=i;){if(s==(n<0?0:p.length-1))return null;i+=n*p[s-(n<0?1:0)].size,s+=n}return{index:s,lineN:i}}function i1(e,t,i){var n=e.display,s=n.view;s.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=No(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=No(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Un(e,t))),n.viewFrom=t,n.viewTo<i?n.view=n.view.concat(No(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,Un(e,i)))),n.viewTo=i}function m0(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var s=t[n];!s.hidden&&(!s.node||s.changes)&&++i}return i}function Ia(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Da(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},s=n.cursors=document.createDocumentFragment(),d=n.selection=document.createDocumentFragment(),p=0;p<i.sel.ranges.length;p++)if(!(!t&&p==i.sel.primIndex)){var b=i.sel.ranges[p];if(!(b.from().line>=e.display.viewTo||b.to().line<e.display.viewFrom)){var y=b.empty();(y||e.options.showCursorWhenSelecting)&&oi(e,b.head,s),y||y0(e,b,d)}}return n}function oi(e,t,i){var n=Tn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),s=i.appendChild(E("div","\xA0","CodeMirror-cursor"));if(s.style.left=n.left+"px",s.style.top=n.top+"px",s.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var d=Dl(e,t,"div",null,null);s.style.width=Math.max(0,d.right-d.left)+"px"}if(n.other){var p=i.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));p.style.display="",p.style.left=n.other.left+"px",p.style.top=n.other.top+"px",p.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function so(e,t){return e.top-t.top||e.left-t.left}function y0(e,t,i){var n=e.display,s=e.doc,d=document.createDocumentFragment(),p=Ol(e.display),b=p.left,y=Math.max(n.sizerWidth,Li(e)-n.sizer.offsetLeft)-p.right,C=s.direction=="ltr";function _(de,xe,De,Pe){xe<0&&(xe=0),xe=Math.round(xe),Pe=Math.round(Pe),d.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+de+`px;
|
|
2362
|
+
top: `+xe+"px; width: "+(De==null?y-de:De)+`px;
|
|
2363
|
+
height: `+(Pe-xe)+"px"))}function M(de,xe,De){var Pe=ke(s,de),it=Pe.text.length,xt,Xt;function Mt(Vt,hr){return Dl(e,oe(de,Vt),"div",Pe,hr)}function Or(Vt,hr,ir){var _t=G(e,Pe,null,Vt),Tt=hr=="ltr"==(ir=="after")?"left":"right",Wt=ir=="after"?_t.begin:_t.end-(/\s/.test(Pe.text.charAt(_t.end-1))?2:1);return Mt(Wt,Tt)[Tt]}var Tr=_r(Pe,s.direction);return xn(Tr,xe||0,De==null?it:De,function(Vt,hr,ir,_t){var Tt=ir=="ltr",Wt=Mt(Vt,Tt?"left":"right"),Pr=Mt(hr-1,Tt?"right":"left"),ua=xe==null&&Vt==0,Zi=De==null&&hr==it,zr=_t==0,Kn=!Tr||_t==Tr.length-1;if(Pr.top-Wt.top<=3){var or=(C?ua:Zi)&&zr,wu=(C?Zi:ua)&&Kn,ci=or?b:(Tt?Wt:Pr).left,wo=wu?y:(Tt?Pr:Wt).right;_(ci,Wt.top,wo-ci,Wt.bottom)}else{var xo,Er,ca,cs;Tt?(xo=C&&ua&&zr?b:Wt.left,Er=C?y:Or(Vt,ir,"before"),ca=C?b:Or(hr,ir,"after"),cs=C&&Zi&&Kn?y:Pr.right):(xo=C?Or(Vt,ir,"before"):b,Er=!C&&ua&&zr?y:Wt.right,ca=!C&&Zi&&Kn?b:Pr.left,cs=C?Or(hr,ir,"after"):y),_(xo,Wt.top,Er-xo,Wt.bottom),Wt.bottom<Pr.top&&_(b,Wt.bottom,null,Pr.top),_(ca,Pr.top,cs-ca,Pr.bottom)}(!xt||so(Wt,xt)<0)&&(xt=Wt),so(Pr,xt)<0&&(xt=Pr),(!Xt||so(Wt,Xt)<0)&&(Xt=Wt),so(Pr,Xt)<0&&(Xt=Pr)}),{start:xt,end:Xt}}var N=t.from(),$=t.to();if(N.line==$.line)M(N.line,N.ch,$.ch);else{var q=ke(s,N.line),te=ke(s,$.line),ue=Bn(q)==Bn(te),fe=M(N.line,N.ch,ue?q.text.length+1:null).end,we=M($.line,ue?0:null,$.ch).start;ue&&(fe.top<we.top-2?(_(fe.right,fe.top,null,fe.bottom),_(b,we.top,we.left,we.bottom)):_(fe.right,fe.top,we.left-fe.right,fe.bottom)),fe.bottom<we.top&&_(b,fe.bottom,null,we.top)}i.appendChild(d)}function Fo(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||uo(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Vs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Wo(e))}function $l(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&uo(e))},100)}function Wo(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ue(e,"focus",e,t),e.state.focused=!0,zt(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()),Fo(e))}function uo(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ue(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 Ti(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var s=t.view[n],d=e.options.lineWrapping,p=void 0,b=0;if(!s.hidden){if(T&&k<8){var y=s.node.offsetTop+s.node.offsetHeight;p=y-i,i=y}else{var C=s.node.getBoundingClientRect();p=C.bottom-C.top,!d&&s.text.firstChild&&(b=s.text.firstChild.getBoundingClientRect().right-C.left-1)}var _=s.line.height-p;if((_>.005||_<-.005)&&(Zr(s.line,p),Pi(s.line),s.rest))for(var M=0;M<s.rest.length;M++)Pi(s.rest[M]);if(b>e.display.sizerWidth){var N=Math.ceil(b/Ho(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=s.line,e.display.maxLineChanged=!0)}}}}function Pi(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],n=i.node.parentNode;n&&(i.height=n.offsetHeight)}}function co(e,t,i){var n=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-Ea(e));var s=i&&i.bottom!=null?i.bottom:n+e.wrapper.clientHeight,d=Mn(t,n),p=Mn(t,s);if(i&&i.ensure){var b=i.ensure.from.line,y=i.ensure.to.line;b<d?(d=b,p=Mn(t,Nr(ke(t,b))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=p&&(d=Mn(t,Nr(ke(t,y))-e.wrapper.clientHeight),p=y)}return{from:d,to:Math.max(p,d+1)}}function o1(e,t){if(!Gt(e,"scrollCursorIntoView")){var i=e.display,n=i.sizer.getBoundingClientRect(),s=null;if(t.top+n.top<0?s=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(s=!1),s!=null&&!pe){var d=E("div","\u200B",null,`position: absolute;
|
|
2364
|
+
top: `+(t.top-i.viewOffset-Ea(e.display))+`px;
|
|
2231
2365
|
height: `+(t.bottom-t.top+Gr(e)+i.barHeight)+`px;
|
|
2232
|
-
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(d),d.scrollIntoView(s),e.display.lineSpace.removeChild(d)}}}function t1(e,t,i,n){n==null&&(n=0);var s;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?oe(t.line,t.ch+1,"before"):t,t=t.ch?oe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var d=0;d<5;d++){var p=!1,b=Tn(e,t),m=!i||i==t?b:Tn(e,i);s={left:Math.min(b.left,m.left),top:Math.min(b.top,m.top)-n,right:Math.max(b.left,m.left),bottom:Math.max(b.bottom,m.bottom)+n};var C=Wo(e,s),_=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(Bt(e,C.scrollTop),Math.abs(e.doc.scrollTop-_)>1&&(p=!0)),C.scrollLeft!=null&&(fo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return s}function r1(e,t){var i=Wo(e,t);i.scrollTop!=null&&Bt(e,i.scrollTop),i.scrollLeft!=null&&fo(e,i.scrollLeft)}function Wo(e,t){var i=e.display,n=ki(e.display);t.top<0&&(t.top=0);var s=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,d=Ml(e),p={};t.bottom-t.top>d&&(t.bottom=t.top+d);var b=e.doc.height+Rr(i),m=t.top<n,C=t.bottom>b-n;if(t.top<s)p.scrollTop=m?0:t.top;else if(t.bottom>s+d){var _=Math.min(t.top,(C?b:t.bottom)-d);_!=s&&(p.scrollTop=_)}var M=e.options.fixedGutter?0:i.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-M,$=_i(e)-i.gutters.offsetWidth,q=t.right-t.left>$;return q&&(t.right=t.left+$),t.left<10?p.scrollLeft=0:t.left<N?p.scrollLeft=Math.max(0,t.left+M-(q?0:10)):t.right>$+N-3&&(p.scrollLeft=t.right+(q?0:10)-$),p}function Uo(e,t){t!=null&&(Il(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ai(e){Il(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ia(e,t,i){(t!=null||i!=null)&&Il(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function b0(e,t){Il(e),e.curOp.scrollToPos=t}function Il(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=h0(e,t.from),n=h0(e,t.to);m0(e,i,n,t.margin)}}function m0(e,t,i,n){var s=Wo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});Ia(e,s.scrollLeft,s.scrollTop)}function Bt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Ws(e,{top:t}),mr(e,t,!0),f&&Ws(e),Vn(e,100))}function mr(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fo(e,t,i,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,y0(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Da(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+Rr(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?i:0,docHeight:n,scrollHeight:n+Gr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Ii=function(e,t,i){this.cm=i;var n=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),s=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=s.tabIndex=-1,e(n),e(s),Ne(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ne(s,"scroll",function(){s.clientWidth&&t(s.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ii.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var s=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+s)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var d=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+d)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},Ii.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ii.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ii.prototype.zeroWidthHack=function(){var e=ce&&!ge?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ot,this.disableVert=new ot},Ii.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var s=e.getBoundingClientRect(),d=i=="vert"?document.elementFromPoint(s.right-1,(s.top+s.bottom)/2):document.elementFromPoint((s.right+s.left)/2,s.bottom-1);d!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Ii.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $a=function(){};$a.prototype.update=function(){return{bottom:0,right:0}},$a.prototype.setScrollLeft=function(){},$a.prototype.setScrollTop=function(){},$a.prototype.clear=function(){};function Di(e,t){t||(t=Da(e));var i=e.display.barWidth,n=e.display.barHeight;Zo(e,t);for(var s=0;s<4&&i!=e.display.barWidth||n!=e.display.barHeight;s++)i!=e.display.barWidth&&e.options.lineWrapping&&Pi(e),Zo(e,Da(e)),i=e.display.barWidth,n=e.display.barHeight}function Zo(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Dl={native:Ii,null:$a};function ho(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Dl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ne(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?fo(e,t):Bt(e,t)},e),e.display.scrollbars.addClass&&zt(e.display.wrapper,e.display.scrollbars.addClass)}var Na=0;function Pn(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:++Na,markArrays:null},Li(e.curOp)}function Zn(e){var t=e.curOp;t&&Kc(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;Vo(i)})}function Vo(e){for(var t=e.ops,i=0;i<t.length;i++)n1(t[i]);for(var n=0;n<t.length;n++)i1(t[n]);for(var s=0;s<t.length;s++)o1(t[s]);for(var d=0;d<t.length;d++)a1(t[d]);for(var p=0;p<t.length;p++)l1(t[p])}function n1(e){var t=e.cm,i=t.display;dt(t),e.updateMaxLine&&ka(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Hr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function i1(e){e.updatedDisplay=e.mustUpdate&&Fs(e.cm,e.update)}function o1(e){var t=e.cm,i=t.display;e.updatedDisplay&&Pi(t),e.barMeasure=Da(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=l0(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+Gr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-_i(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function a1(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 i=e.focus&&e.focus==tt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Di(t,e.barMeasure),e.updatedDisplay&&Zs(t,e.barMeasure),e.selectionChanged&&Bo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&Bs(e.cm)}function l1(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&$i(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&mr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&fo(t,e.scrollLeft,!0,!0),e.scrollToPos){var s=t1(t,Ce(n,e.scrollToPos.from),Ce(n,e.scrollToPos.to),e.scrollToPos.margin);e1(t,s)}var d=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(d)for(var b=0;b<d.length;++b)d[b].lines.length||Ue(d[b],"hide");if(p)for(var m=0;m<p.length;++m)p[m].lines.length&&Ue(p[m],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ue(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function yr(e,t){if(e.curOp)return t();Pn(e);try{return t()}finally{Zn(e)}}function Ft(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Pn(e);try{return t.apply(e,arguments)}finally{Zn(e)}}}function Cr(e){return function(){if(this.curOp)return e.apply(this,arguments);Pn(this);try{return e.apply(this,arguments)}finally{Zn(this)}}}function z(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Pn(t);try{return e.apply(this,arguments)}finally{Zn(t)}}}function Vn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Yr($l,e))}function $l(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var i=+new Date+e.options.workTime,n=Do(e,t.highlightFrontier),s=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(d){if(n.line>=e.display.viewFrom){var p=d.styles,b=d.text.length>e.options.maxHighlightLength?Jr(t.mode,n.state):null,m=Uu(e,d,n,!0);b&&(n.state=b),d.styles=m.styles;var C=d.styleClasses,_=m.classes;_?d.styleClasses=_:C&&(d.styleClasses=null);for(var M=!p||p.length!=d.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!M&&N<p.length;++N)M=p[N]!=d.styles[N];M&&s.push(n.line),d.stateAfter=n.save(),n.nextLine()}else d.text.length<=e.options.maxHighlightLength&&La(e,d.text,n),d.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return Vn(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),s.length&&yr(e,function(){for(var d=0;d<s.length;d++)Ti(e,s[d],"text")})}}var Hr=function(e,t,i){var n=e.display;this.viewport=t,this.visible=co(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=_i(e),this.force=i,this.dims=qr(e),this.events=[]};Hr.prototype.signal=function(e,t){sr(e,t)&&this.events.push(arguments)},Hr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ue.apply(null,this.events[e])};function dt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Gr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Gr(e)+"px",t.scrollbarsClipped=!0)}function s1(e){if(e.hasFocus())return null;var t=tt();if(!t||!be(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&be(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function u1(e){if(!(!e||!e.activeElt||e.activeElt==tt())&&(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(),i=document.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),t.removeAllRanges(),t.addRange(i),t.extend(e.focusNode,e.focusOffset)}}function Fs(e,t){var i=e.display,n=e.doc;if(t.editorIsHidden)return oi(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&g0(e)==0)return!1;Gn(e)&&(oi(e),t.dims=qr(e));var s=n.first+n.size,d=Math.max(t.visible.from-e.options.viewportMargin,n.first),p=Math.min(s,t.visible.to+e.options.viewportMargin);i.viewFrom<d&&d-i.viewFrom<20&&(d=Math.max(n.first,i.viewFrom)),i.viewTo>p&&i.viewTo-p<20&&(p=Math.min(s,i.viewTo)),Hn&&(d=zl(e.doc,d),p=Ju(e.doc,p));var b=d!=i.viewFrom||p!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Jc(e,d,p),i.viewOffset=Nr(ke(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var m=g0(e);if(!b&&m==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var C=s1(e);return m>4&&(i.lineDiv.style.display="none"),c1(e,i.updateLineNumbers,t.dims),m>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,u1(C),Xe(i.cursorDiv),Xe(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,b&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Vn(e,400)),i.updateLineNumbers=null,!0}function $i(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==_i(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Rr(e.display)-Ml(e),i.top)}),t.visible=co(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=co(e.display,e.doc,i));if(!Fs(e,t))break;Pi(e);var s=Da(e);Ea(e),Di(e,s),Zs(e,s),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 Ws(e,t){var i=new Hr(e,t);if(Fs(e,i)){Pi(e),$i(e,i);var n=Da(e);Ea(e),Di(e,n),Zs(e,n),i.finish()}}function c1(e,t,i){var n=e.display,s=e.options.lineNumbers,d=n.lineDiv,p=d.firstChild;function b(q){var te=q.nextSibling;return I&&ce&&e.display.currentWheelTarget==q?q.style.display="none":q.parentNode.removeChild(q),te}for(var m=n.view,C=n.viewFrom,_=0;_<m.length;_++){var M=m[_];if(!M.hidden)if(!M.node||M.node.parentNode!=d){var N=$s(e,M,C,i);d.insertBefore(N,p)}else{for(;p!=M.node;)p=b(p);var $=s&&t!=null&&t<=C&&M.lineNumber;M.changes&&(Le(M.changes,"gutter")>-1&&($=!1),i0(e,M,C,i)),$&&(Xe(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(Io(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=b(p)}function Us(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",tr(e,"gutterChanged",e)}function Zs(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+Gr(e)+"px"}function y0(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Ho(t)-t.scroller.scrollLeft+e.doc.scrollLeft,s=t.gutters.offsetWidth,d=n+"px",p=0;p<i.length;p++)if(!i[p].hidden){e.options.fixedGutter&&(i[p].gutter&&(i[p].gutter.style.left=d),i[p].gutterBackground&&(i[p].gutterBackground.style.left=d));var b=i[p].alignable;if(b)for(var m=0;m<b.length;m++)b[m].style.left=d}e.options.fixedGutter&&(t.gutters.style.left=n+s+"px")}}function Gn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Io(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var s=n.measure.appendChild(E("div",[E("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=s.firstChild.offsetWidth,p=s.offsetWidth-d;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(d,n.lineGutter.offsetWidth-p)+1,n.lineNumWidth=n.lineNumInnerWidth+p,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Us(e.display),!0}return!1}function Vs(e,t){for(var i=[],n=!1,s=0;s<e.length;s++){var d=e[s],p=null;if(typeof d!="string"&&(p=d.style,d=d.className),d=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:d,style:p})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function C0(e){var t=e.gutters,i=e.gutterSpecs;Xe(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var s=i[n],d=s.className,p=s.style,b=t.appendChild(E("div",null,"CodeMirror-gutter "+d));p&&(b.style.cssText=p),d=="CodeMirror-linenumbers"&&(e.lineGutter=b,b.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",Us(e)}function Ra(e){C0(e.display),et(e),y0(e)}function f1(e,t,i,n){var s=this;this.input=i,s.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),s.scrollbarFiller.setAttribute("cm-not-content","true"),s.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),s.gutterFiller.setAttribute("cm-not-content","true"),s.lineDiv=S("div",null,"CodeMirror-code"),s.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),s.cursorDiv=E("div",null,"CodeMirror-cursors"),s.measure=E("div",null,"CodeMirror-measure"),s.lineMeasure=E("div",null,"CodeMirror-measure"),s.lineSpace=S("div",[s.measure,s.lineMeasure,s.selectionDiv,s.cursorDiv,s.lineDiv],null,"position: relative; outline: none");var d=S("div",[s.lineSpace],"CodeMirror-lines");s.mover=E("div",[d],null,"position: relative"),s.sizer=E("div",[s.mover],"CodeMirror-sizer"),s.sizerWidth=null,s.heightForcer=E("div",null,null,"position: absolute; height: "+He+"px; width: 1px;"),s.gutters=E("div",null,"CodeMirror-gutters"),s.lineGutter=null,s.scroller=E("div",[s.sizer,s.heightForcer,s.gutters],"CodeMirror-scroll"),s.scroller.setAttribute("tabIndex","-1"),s.wrapper=E("div",[s.scrollbarFiller,s.gutterFiller,s.scroller],"CodeMirror"),s.wrapper.setAttribute("translate","no"),T&&k<8&&(s.gutters.style.zIndex=-1,s.scroller.style.paddingRight=0),!I&&!(f&&he)&&(s.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(s.wrapper):e(s.wrapper)),s.viewFrom=s.viewTo=t.first,s.reportedViewFrom=s.reportedViewTo=t.first,s.view=[],s.renderedView=null,s.externalMeasured=null,s.viewOffset=0,s.lastWrapHeight=s.lastWrapWidth=0,s.updateLineNumbers=null,s.nativeBarWidth=s.barHeight=s.barWidth=0,s.scrollbarsClipped=!1,s.lineNumWidth=s.lineNumInnerWidth=s.lineNumChars=null,s.alignWidgets=!1,s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.maxLine=null,s.maxLineLength=0,s.maxLineChanged=!1,s.wheelDX=s.wheelDY=s.wheelStartX=s.wheelStartY=null,s.shift=!1,s.selForContextMenu=null,s.activeTouch=null,s.gutterSpecs=Vs(n.gutters,n.lineNumbers),C0(s),i.init(s)}var Nl=0,qt=null;T?qt=-.53:f?qt=15:W?qt=-.7:re&&(qt=-1/3);function w0(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function d1(e){var t=w0(e);return t.x*=qt,t.y*=qt,t}function x0(e,t){var i=w0(t),n=i.x,s=i.y,d=e.display,p=d.scroller,b=p.scrollWidth>p.clientWidth,m=p.scrollHeight>p.clientHeight;if(!!(n&&b||s&&m)){if(s&&ce&&I){e:for(var C=t.target,_=d.view;C!=p;C=C.parentNode)for(var M=0;M<_.length;M++)if(_[M].node==C){e.display.currentWheelTarget=C;break e}}if(n&&!f&&!Z&&qt!=null){s&&m&&Bt(e,Math.max(0,p.scrollTop+s*qt)),fo(e,Math.max(0,p.scrollLeft+n*qt)),(!s||s&&m)&&ur(t),d.wheelStartX=null;return}if(s&&qt!=null){var N=s*qt,$=e.doc.scrollTop,q=$+d.wrapper.clientHeight;N<0?$=Math.max(0,$+N-50):q=Math.min(e.doc.height,q+N+50),Ws(e,{top:$,bottom:q})}Nl<20&&(d.wheelStartX==null?(d.wheelStartX=p.scrollLeft,d.wheelStartY=p.scrollTop,d.wheelDX=n,d.wheelDY=s,setTimeout(function(){if(d.wheelStartX!=null){var te=p.scrollLeft-d.wheelStartX,ue=p.scrollTop-d.wheelStartY,fe=ue&&d.wheelDY&&ue/d.wheelDY||te&&d.wheelDX&&te/d.wheelDX;d.wheelStartX=d.wheelStartY=null,fe&&(qt=(qt*Nl+fe)/(Nl+1),++Nl)}},200)):(d.wheelDX+=n,d.wheelDY+=s))}}var rn=function(e,t){this.ranges=e,this.primIndex=t};rn.prototype.primary=function(){return this.ranges[this.primIndex]},rn.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 i=this.ranges[t],n=e.ranges[t];if(!O(i.anchor,n.anchor)||!O(i.head,n.head))return!1}return!0},rn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new mt(Y(this.ranges[t].anchor),Y(this.ranges[t].head));return new rn(e,this.primIndex)},rn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},rn.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(w(t,n.from())>=0&&w(e,n.to())<=0)return i}return-1};var mt=function(e,t){this.anchor=e,this.head=t};mt.prototype.from=function(){return Ze(this.anchor,this.head)},mt.prototype.to=function(){return le(this.anchor,this.head)},mt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(e,t,i){var n=e&&e.options.selectionsMayTouch,s=t[i];t.sort(function(N,$){return w(N.from(),$.from())}),i=Le(t,s);for(var d=1;d<t.length;d++){var p=t[d],b=t[d-1],m=w(b.to(),p.from());if(n&&!p.empty()?m>0:m>=0){var C=Ze(b.from(),p.from()),_=le(b.to(),p.to()),M=b.empty()?p.from()==p.head:b.from()==b.head;d<=i&&--i,t.splice(--d,2,new mt(M?_:C,M?C:_))}}return new rn(t,i)}function Ni(e,t){return new rn([new mt(e,t||e)],0)}function Ri(e){return e.text?oe(e.from.line+e.text.length-1,Ke(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function dn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return Ri(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Ri(t).ch-t.to.ch),oe(i,n)}function Gs(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var s=e.sel.ranges[n];i.push(new mt(dn(s.anchor,t),dn(s.head,t)))}return wr(e.cm,i,e.sel.primIndex)}function z0(e,t,i){return e.line==t.line?oe(i.line,e.ch-t.ch+i.ch):oe(i.line+(e.line-t.line),e.ch)}function h1(e,t,i){for(var n=[],s=oe(e.first,0),d=s,p=0;p<t.length;p++){var b=t[p],m=z0(b.from,s,d),C=z0(Ri(b),s,d);if(s=b.to,d=C,i=="around"){var _=e.sel.ranges[p],M=w(_.head,_.anchor)<0;n[p]=new mt(M?C:m,M?m:C)}else n[p]=new mt(m,m)}return new rn(n,e.sel.primIndex)}function qs(e){e.doc.mode=Ao(e.options,e.doc.modeOption),Ha(e)}function Ha(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,Vn(e,100),e.state.modeGen++,e.curOp&&et(e)}function Ks(e,t){return t.from.ch==0&&t.to.ch==0&&Ke(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Rl(e,t,i,n){function s(we){return i?i[we]:null}function d(we,de,xe){e0(we,de,xe,n),tr(we,"change",we,t)}function p(we,de){for(var xe=[],De=we;De<de;++De)xe.push(new br(C[De],s(De),n));return xe}var b=t.from,m=t.to,C=t.text,_=ke(e,b.line),M=ke(e,m.line),N=Ke(C),$=s(C.length-1),q=m.line-b.line;if(t.full)e.insert(0,p(0,C.length)),e.remove(C.length,e.size-C.length);else if(Ks(e,t)){var te=p(0,C.length-1);d(M,M.text,$),q&&e.remove(b.line,q),te.length&&e.insert(b.line,te)}else if(_==M)if(C.length==1)d(_,_.text.slice(0,b.ch)+N+_.text.slice(m.ch),$);else{var ue=p(1,C.length-1);ue.push(new br(N+_.text.slice(m.ch),$,n)),d(_,_.text.slice(0,b.ch)+C[0],s(0)),e.insert(b.line+1,ue)}else if(C.length==1)d(_,_.text.slice(0,b.ch)+C[0]+M.text.slice(m.ch),s(0)),e.remove(b.line+1,q);else{d(_,_.text.slice(0,b.ch)+C[0],s(0)),d(M,N+M.text.slice(m.ch),$);var fe=p(1,C.length-1);q>1&&e.remove(b.line+1,q-1),e.insert(b.line+1,fe)}tr(e,"change",e,t)}function Hi(e,t,i){function n(s,d,p){if(s.linked)for(var b=0;b<s.linked.length;++b){var m=s.linked[b];if(m.doc!=d){var C=p&&m.sharedHist;i&&!C||(t(m.doc,C),n(m.doc,s,C))}}}n(e,null,!0)}function L0(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Oi(e),qs(e),Hl(e),e.options.direction=t.direction,e.options.lineWrapping||ka(e),e.options.mode=t.modeOption,et(e)}function Hl(e){(e.doc.direction=="rtl"?zt:ye)(e.display.lineDiv,"CodeMirror-rtl")}function Ba(e){yr(e,function(){Hl(e),et(e)})}function po(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 js(e,t){var i={from:Y(t.from),to:Ri(t),text:en(e,t.from,t.to)};return _0(e,i,t.from.line,t.to.line+1),Hi(e,function(n){return _0(n,i,t.from.line,t.to.line+1)},!0),i}function Ys(e){for(;e.length;){var t=Ke(e);if(t.ranges)e.pop();else break}}function p1(e,t){if(t)return Ys(e.done),Ke(e.done);if(e.done.length&&!Ke(e.done).ranges)return Ke(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ke(e.done)}function qn(e,t,i,n){var s=e.history;s.undone.length=0;var d=+new Date,p,b;if((s.lastOp==n||s.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&s.lastModTime>d-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=p1(s,s.lastOp==n)))b=Ke(p.changes),w(t.from,t.to)==0&&w(t.from,b.to)==0?b.to=Ri(t):p.changes.push(js(e,t));else{var m=Ke(s.done);for((!m||!m.ranges)&&Br(e.sel,s.done),p={changes:[js(e,t)],generation:s.generation},s.done.push(p);s.done.length>s.undoDepth;)s.done.shift(),s.done[0].ranges||s.done.shift()}s.done.push(i),s.generation=++s.maxGeneration,s.lastModTime=s.lastSelTime=d,s.lastOp=s.lastSelOp=n,s.lastOrigin=s.lastSelOrigin=t.origin,b||Ue(e,"historyAdded")}function Xs(e,t,i,n){var s=t.charAt(0);return s=="*"||s=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function go(e,t,i,n){var s=e.history,d=n&&n.origin;i==s.lastSelOp||d&&s.lastSelOrigin==d&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==d||Xs(e,d,Ke(s.done),t))?s.done[s.done.length-1]=t:Br(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=d,s.lastSelOp=i,n&&n.clearRedo!==!1&&Ys(s.undone)}function Br(e,t){var i=Ke(t);i&&i.ranges&&i.equals(e)||t.push(e)}function _0(e,t,i,n){var s=t["spans_"+e.id],d=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(p){p.markedSpans&&((s||(s=t["spans_"+e.id]={}))[d]=p.markedSpans),++d})}function S0(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function M0(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],s=0;s<t.text.length;++s)n.push(S0(i[s]));return n}function Go(e,t){var i=M0(e,t),n=Ms(e,t);if(!i)return n;if(!n)return i;for(var s=0;s<i.length;++s){var d=i[s],p=n[s];if(d&&p){e:for(var b=0;b<p.length;++b){for(var m=p[b],C=0;C<d.length;++C)if(d[C].marker==m.marker)continue e;d.push(m)}}else p&&(i[s]=p)}return i}function nn(e,t,i){for(var n=[],s=0;s<e.length;++s){var d=e[s];if(d.ranges){n.push(i?rn.prototype.deepCopy.call(d):d);continue}var p=d.changes,b=[];n.push({changes:b});for(var m=0;m<p.length;++m){var C=p[m],_=void 0;if(b.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(_=M.match(/^spans_(\d+)$/))&&Le(t,Number(_[1]))>-1&&(Ke(b)[M]=C[M],delete C[M])}}return n}function Bl(e,t,i,n){if(n){var s=e.anchor;if(i){var d=w(t,s)<0;d!=w(i,s)<0?(s=t,t=i):d!=w(t,i)<0&&(t=i)}return new mt(s,t)}else return new mt(i||t,t)}function Fl(e,t,i,n,s){s==null&&(s=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new rn([Bl(e.sel.primary(),t,i,s)],0),n)}function Fa(e,t,i){for(var n=[],s=e.cm&&(e.cm.display.shift||e.extend),d=0;d<e.sel.ranges.length;d++)n[d]=Bl(e.sel.ranges[d],t[d],null,s);var p=wr(e.cm,n,e.sel.primIndex);cr(e,p,i)}function Qs(e,t,i,n){var s=e.sel.ranges.slice(0);s[t]=i,cr(e,wr(e.cm,s,e.sel.primIndex),n)}function Js(e,t,i,n){cr(e,Ni(t,i),n)}function xr(e,t,i){var n={ranges:t.ranges,update:function(s){this.ranges=[];for(var d=0;d<s.length;d++)this.ranges[d]=new mt(Ce(e,s[d].anchor),Ce(e,s[d].head))},origin:i&&i.origin};return Ue(e,"beforeSelectionChange",e,n),e.cm&&Ue(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?wr(e.cm,n.ranges,n.ranges.length-1):t}function Wl(e,t,i){var n=e.history.done,s=Ke(n);s&&s.ranges?(n[n.length-1]=t,on(e,t,i)):cr(e,t,i)}function cr(e,t,i){on(e,t,i),go(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function on(e,t,i){(sr(e,"beforeSelectionChange")||e.cm&&sr(e.cm,"beforeSelectionChange"))&&(t=xr(e,t,i));var n=i&&i.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Ul(e,Bi(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Ai(e.cm)}function Ul(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Po(e.cm)),tr(e,"cursorActivity",e))}function Wa(e){Ul(e,Bi(e,e.sel,null,!1))}function Bi(e,t,i,n){for(var s,d=0;d<t.ranges.length;d++){var p=t.ranges[d],b=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[d],m=fr(e,p.anchor,b&&b.anchor,i,n),C=fr(e,p.head,b&&b.head,i,n);(s||m!=p.anchor||C!=p.head)&&(s||(s=t.ranges.slice(0,d)),s[d]=new mt(m,C))}return s?wr(e.cm,s,t.primIndex):t}function vo(e,t,i,n,s){var d=ke(e,t.line);if(d.markedSpans)for(var p=0;p<d.markedSpans.length;++p){var b=d.markedSpans[p],m=b.marker,C="selectLeft"in m?!m.selectLeft:m.inclusiveLeft,_="selectRight"in m?!m.selectRight:m.inclusiveRight;if((b.from==null||(C?b.from<=t.ch:b.from<t.ch))&&(b.to==null||(_?b.to>=t.ch:b.to>t.ch))){if(s&&(Ue(m,"beforeCursorEnter"),m.explicitlyCleared))if(d.markedSpans){--p;continue}else break;if(!m.atomic)continue;if(i){var M=m.find(n<0?1:-1),N=void 0;if((n<0?_:C)&&(M=Zl(e,M,-n,M&&M.line==t.line?d:null)),M&&M.line==t.line&&(N=w(M,i))&&(n<0?N<0:N>0))return vo(e,M,t,n,s)}var $=m.find(n<0?-1:1);return(n<0?C:_)&&($=Zl(e,$,n,$.line==t.line?d:null)),$?vo(e,$,t,n,s):null}}return t}function fr(e,t,i,n,s){var d=n||1,p=vo(e,t,i,d,s)||!s&&vo(e,t,i,d,!0)||vo(e,t,i,-d,s)||!s&&vo(e,t,i,-d,!0);return p||(e.cantEdit=!0,oe(e.first,0))}function Zl(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?Ce(e,oe(t.line-1)):null:i>0&&t.ch==(n||ke(e,t.line)).text.length?t.line<e.first+e.size-1?oe(t.line+1,0):null:new oe(t.line,t.ch+i)}function k0(e){e.setSelection(oe(e.firstLine(),0),oe(e.lastLine()),rt)}function O0(e,t,i){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return i&&(n.update=function(s,d,p,b){s&&(n.from=Ce(e,s)),d&&(n.to=Ce(e,d)),p&&(n.text=p),b!==void 0&&(n.origin=b)}),Ue(e,"beforeChange",e,n),e.cm&&Ue(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function qo(e,t,i){if(e.cm){if(!e.cm.curOp)return Ft(e.cm,qo)(e,t,i);if(e.cm.state.suppressEdits)return}if(!((sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"))&&(t=O0(e,t,!0),!t))){var n=Ss&&!i&&ks(e,t.from,t.to);if(n)for(var s=n.length-1;s>=0;--s)Vl(e,{from:n[s].from,to:n[s].to,text:s?[""]:t.text,origin:t.origin});else Vl(e,t)}}function Vl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var i=Gs(e,t);qn(e,t,i,e.cm?e.cm.curOp.id:NaN),jo(e,t,i,Ms(e,t));var n=[];Hi(e,function(s,d){!d&&Le(n,s.history)==-1&&(P0(s.history,t),n.push(s.history)),jo(s,t,null,Ms(s,t))})}}function Gl(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!i)){for(var s=e.history,d,p=e.sel,b=t=="undo"?s.done:s.undone,m=t=="undo"?s.undone:s.done,C=0;C<b.length&&(d=b[C],!(i?d.ranges&&!d.equals(e.sel):!d.ranges));C++);if(C!=b.length){for(s.lastOrigin=s.lastSelOrigin=null;;)if(d=b.pop(),d.ranges){if(Br(d,m),i&&!d.equals(e.sel)){cr(e,d,{clearRedo:!1});return}p=d}else if(n){b.push(d);return}else break;var _=[];Br(p,m),m.push({changes:_,generation:s.generation}),s.generation=d.generation||++s.maxGeneration;for(var M=sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"),N=function(te){var ue=d.changes[te];if(ue.origin=t,M&&!O0(e,ue,!1))return b.length=0,{};_.push(js(e,ue));var fe=te?Gs(e,ue):Ke(b);jo(e,ue,fe,Go(e,ue)),!te&&e.cm&&e.cm.scrollIntoView({from:ue.from,to:Ri(ue)});var we=[];Hi(e,function(de,xe){!xe&&Le(we,de.history)==-1&&(P0(de.history,ue),we.push(de.history)),jo(de,ue,null,Go(de,ue))})},$=d.changes.length-1;$>=0;--$){var q=N($);if(q)return q.v}}}}function Ko(e,t){if(t!=0&&(e.first+=t,e.sel=new rn(ht(e.sel.ranges,function(s){return new mt(oe(s.anchor.line+t,s.anchor.ch),oe(s.head.line+t,s.head.ch))}),e.sel.primIndex),e.cm)){et(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)Ti(e.cm,n,"gutter")}}function jo(e,t,i,n){if(e.cm&&!e.cm.curOp)return Ft(e.cm,jo)(e,t,i,n);if(t.to.line<e.first){Ko(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 s=t.text.length-1-(e.first-t.from.line);Ko(e,s),t={from:oe(e.first,0),to:oe(t.to.line+s,t.to.ch),text:[Ke(t.text)],origin:t.origin}}var d=e.lastLine();t.to.line>d&&(t={from:t.from,to:oe(d,ke(e,d).text.length),text:[t.text[0]],origin:t.origin}),t.removed=en(e,t.from,t.to),i||(i=Gs(e,t)),e.cm?g1(e.cm,t,n):Rl(e,t,n),on(e,i,rt),e.cantEdit&&fr(e,oe(e.firstLine(),0))&&(e.cantEdit=!1)}}function g1(e,t,i){var n=e.doc,s=e.display,d=t.from,p=t.to,b=!1,m=d.line;e.options.lineWrapping||(m=bt(Bn(ke(n,d.line))),n.iter(m,p.line+1,function($){if($==s.maxLine)return b=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Po(e),Rl(n,t,i,p0(e)),e.options.lineWrapping||(n.iter(m,d.line+t.text.length,function($){var q=Ma($);q>s.maxLineLength&&(s.maxLine=$,s.maxLineLength=q,s.maxLineChanged=!0,b=!1)}),b&&(e.curOp.updateMaxLine=!0)),Hc(n,d.line),Vn(e,400);var C=t.text.length-(p.line-d.line)-1;t.full?et(e):d.line==p.line&&t.text.length==1&&!Ks(e.doc,t)?Ti(e,d.line,"text"):et(e,d.line,p.line+1,C);var _=sr(e,"changes"),M=sr(e,"change");if(M||_){var N={from:d,to:p,text:t.text,removed:t.removed,origin:t.origin};M&&tr(e,"change",e,N),_&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Yo(e,t,i,n,s){var d;n||(n=i),w(n,i)<0&&(d=[n,i],i=d[0],n=d[1]),typeof t=="string"&&(t=e.splitLines(t)),qo(e,{from:i,to:n,text:t,origin:s})}function Xo(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function T0(e,t,i,n){for(var s=0;s<e.length;++s){var d=e[s],p=!0;if(d.ranges){d.copied||(d=e[s]=d.deepCopy(),d.copied=!0);for(var b=0;b<d.ranges.length;b++)Xo(d.ranges[b].anchor,t,i,n),Xo(d.ranges[b].head,t,i,n);continue}for(var m=0;m<d.changes.length;++m){var C=d.changes[m];if(i<C.from.line)C.from=oe(C.from.line+n,C.from.ch),C.to=oe(C.to.line+n,C.to.ch);else if(t<=C.to.line){p=!1;break}}p||(e.splice(0,s+1),s=0)}}function P0(e,t){var i=t.from.line,n=t.to.line,s=t.text.length-(n-i)-1;T0(e.done,i,n,s),T0(e.undone,i,n,s)}function bo(e,t,i,n){var s=t,d=t;return typeof t=="number"?d=ke(e,ft(e,t)):s=bt(t),s==null?null:(n(d,s)&&e.cm&&Ti(e.cm,s,i),d)}function Qo(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}Qo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var s=this.lines[i];this.height-=s.height,t0(s),tr(s,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,i){for(var n=e+t;e<n;++e)if(i(this.lines[e]))return!0}};function Ua(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var s=e[n];t+=s.chunkSize(),i+=s.height,s.parent=this}this.size=t,this.height=i,this.parent=null}Ua.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var n=this.children[i],s=n.chunkSize();if(e<s){var d=Math.min(t,s-e),p=n.height;if(n.removeInner(e,d),this.height-=p-n.height,s==d&&(this.children.splice(i--,1),n.parent=null),(t-=d)==0)break;e=0}else e-=s}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Qo))){var b=[];this.collapse(b),this.children=[new Qo(b)],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,i){this.size+=t.length,this.height+=i;for(var n=0;n<this.children.length;++n){var s=this.children[n],d=s.chunkSize();if(e<=d){if(s.insertInner(e,t,i),s.lines&&s.lines.length>50){for(var p=s.lines.length%25+25,b=p;b<s.lines.length;){var m=new Qo(s.lines.slice(b,b+=25));s.height-=m.height,this.children.splice(++n,0,m),m.parent=this}s.lines=s.lines.slice(0,p),this.maybeSpill()}break}e-=d}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new Ua(t);if(e.parent){e.size-=i.size,e.height-=i.height;var s=Le(e.parent.children,e);e.parent.children.splice(s+1,0,i)}else{var n=new Ua(e.children);n.parent=e,e.children=[n,i],e=n}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var n=0;n<this.children.length;++n){var s=this.children[n],d=s.chunkSize();if(e<d){var p=Math.min(t,d-e);if(s.iterN(e,p,i))return!0;if((t-=p)==0)break;e=0}else e-=d}}};var Za=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};Za.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=bt(i);if(!(n==null||!t)){for(var s=0;s<t.length;++s)t[s]==this&&t.splice(s--,1);t.length||(i.widgets=null);var d=oo(this);Zr(i,Math.max(0,i.height-d)),e&&(yr(e,function(){E0(e,i,-d),Ti(e,n,"widget")}),tr(e,"lineWidgetCleared",e,this,n))}},Za.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var s=oo(this)-t;!s||(Ht(this.doc,n)||Zr(n,n.height+s),i&&yr(i,function(){i.curOp.forceUpdate=!0,E0(i,n,s),tr(i,"lineWidgetChanged",i,e,bt(n))}))},Ln(Za);function E0(e,t,i){Nr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Uo(e,i)}function A0(e,t,i,n){var s=new Za(e,i,n),d=e.cm;return d&&s.noHScroll&&(d.display.alignWidgets=!0),bo(e,t,"widget",function(p){var b=p.widgets||(p.widgets=[]);if(s.insertAt==null?b.push(s):b.splice(Math.min(b.length,Math.max(0,s.insertAt)),0,s),s.line=p,d&&!Ht(e,p)){var m=Nr(p)<e.scrollTop;Zr(p,p.height+oo(s)),m&&Uo(d,s.height),d.curOp.forceUpdate=!0}return!0}),d&&tr(d,"lineWidgetAdded",d,s,typeof t=="number"?t:bt(t)),s}var ql=0,Fi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ql};Fi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Pn(e),sr(this,"clear")){var i=this.find();i&&tr(this,"clear",i.from,i.to)}for(var n=null,s=null,d=0;d<this.lines.length;++d){var p=this.lines[d],b=_a(p.markedSpans,this);e&&!this.collapsed?Ti(e,bt(p),"text"):e&&(b.to!=null&&(s=bt(p)),b.from!=null&&(n=bt(p))),p.markedSpans=Bc(p.markedSpans,b),b.from==null&&this.collapsed&&!Ht(this.doc,p)&&e&&Zr(p,ki(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var m=0;m<this.lines.length;++m){var C=Bn(this.lines[m]),_=Ma(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&et(e,n,s+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Wa(e.doc)),e&&tr(e,"markerCleared",e,this,n,s),t&&Zn(e),this.parent&&this.parent.clear()}},Fi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,s=0;s<this.lines.length;++s){var d=this.lines[s],p=_a(d.markedSpans,this);if(p.from!=null&&(i=oe(t?d:bt(d),p.from),e==-1))return i;if(p.to!=null&&(n=oe(t?d:bt(d),p.to),e==1))return n}return i&&{from:i,to:n}},Fi.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;!t||!n||yr(n,function(){var s=t.line,d=bt(t.line),p=Hs(n,d);if(p&&(c0(p),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ht(i.doc,s)&&i.height!=null){var b=i.height;i.height=null;var m=oo(i)-b;m&&Zr(s,s.height+m)}tr(n,"markerChanged",n,e)})},Fi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Le(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Fi.prototype.detachLine=function(e){if(this.lines.splice(Le(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ln(Fi);function Wi(e,t,i,n,s){if(n&&n.shared)return I0(e,t,i,n,s);if(e.cm&&!e.cm.curOp)return Ft(e.cm,Wi)(e,t,i,n,s);var d=new Fi(e,s),p=w(t,i);if(n&&Ut(n,d,!1),p>0||p==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=S("span",[d.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(Qu(e,t.line,t,i,d)||t.line!=i.line&&Qu(e,i.line,t,i,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");qu()}d.addToHistory&&qn(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var b=t.line,m=e.cm,C;if(e.iter(b,i.line+1,function(M){m&&d.collapsed&&!m.options.lineWrapping&&Bn(M)==m.display.maxLine&&(C=!0),d.collapsed&&b!=t.line&&Zr(M,0),Ku(M,new yl(d,b==t.line?t.ch:null,b==i.line?i.ch:null),e.cm&&e.cm.curOp),++b}),d.collapsed&&e.iter(t.line,i.line+1,function(M){Ht(e,M)&&Zr(M,0)}),d.clearOnEnter&&Ne(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(Gu(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++ql,d.atomic=!0),m){if(C&&(m.curOp.updateMaxLine=!0),d.collapsed)et(m,t.line,i.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var _=t.line;_<=i.line;_++)Ti(m,_,"text");d.atomic&&Wa(m.doc),tr(m,"markerAdded",m,d)}return d}var Jo=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};Jo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();tr(this,"clear")}},Jo.prototype.find=function(e,t){return this.primary.find(e,t)},Ln(Jo);function I0(e,t,i,n,s){n=Ut(n),n.shared=!1;var d=[Wi(e,t,i,n,s)],p=d[0],b=n.widgetNode;return Hi(e,function(m){b&&(n.widgetNode=b.cloneNode(!0)),d.push(Wi(m,Ce(m,t),Ce(m,i),n,s));for(var C=0;C<m.linked.length;++C)if(m.linked[C].isParent)return;p=Ke(d)}),new Jo(d,p)}function eu(e){return e.findMarks(oe(e.first,0),e.clipPos(oe(e.lastLine())),function(t){return t.parent})}function Kl(e,t){for(var i=0;i<t.length;i++){var n=t[i],s=n.find(),d=e.clipPos(s.from),p=e.clipPos(s.to);if(w(d,p)){var b=Wi(e,d,p,n.primary,n.primary.type);n.markers.push(b),b.parent=n}}}function v1(e){for(var t=function(n){var s=e[n],d=[s.primary.doc];Hi(s.primary.doc,function(m){return d.push(m)});for(var p=0;p<s.markers.length;p++){var b=s.markers[p];Le(d,b.doc)==-1&&(b.parent=null,s.markers.splice(p--,1))}},i=0;i<e.length;i++)t(i)}var D0=0,Sr=function(e,t,i,n,s){if(!(this instanceof Sr))return new Sr(e,t,i,n,s);i==null&&(i=0),Ua.call(this,[new Qo([new br("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var d=oe(i,0);this.sel=Ni(d),this.history=new po(null),this.id=++D0,this.modeOption=t,this.lineSep=n,this.direction=s=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Rl(this,{from:d,to:d,text:e}),cr(this,Ni(d),rt)};Sr.prototype=Ur(Ua.prototype,{constructor:Sr,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,n=0;n<t.length;++n)i+=t[n].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=za(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:z(function(e){var t=oe(this.first,0),i=this.first+this.size-1;qo(this,{from:t,to:oe(i,ke(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ia(this.cm,0,0),cr(this,Ni(t),rt)}),replaceRange:function(e,t,i,n){t=Ce(this,t),i=i?Ce(this,i):t,Yo(this,e,t,i,n)},getRange:function(e,t,i){var n=en(this,Ce(this,e),Ce(this,t));return i===!1?n:i===""?n.join(""):n.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(xi(this,e))return ke(this,e)},getLineNumber:function(e){return bt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),Bn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ce(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:z(function(e,t,i){Js(this,Ce(this,typeof e=="number"?oe(e,t||0):e),null,i)}),setSelection:z(function(e,t,i){Js(this,Ce(this,e),Ce(this,t||e),i)}),extendSelection:z(function(e,t,i){Fl(this,Ce(this,e),t&&Ce(this,t),i)}),extendSelections:z(function(e,t){Fa(this,Vr(this,e),t)}),extendSelectionsBy:z(function(e,t){var i=ht(this.sel.ranges,e);Fa(this,Vr(this,i),t)}),setSelections:z(function(e,t,i){if(!!e.length){for(var n=[],s=0;s<e.length;s++)n[s]=new mt(Ce(this,e[s].anchor),Ce(this,e[s].head||e[s].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),cr(this,wr(this.cm,n,t),i)}}),addSelection:z(function(e,t,i){var n=this.sel.ranges.slice(0);n.push(new mt(Ce(this,e),Ce(this,t||e))),cr(this,wr(this.cm,n,n.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,n=0;n<t.length;n++){var s=en(this,t[n].from(),t[n].to());i=i?i.concat(s):s}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,n=0;n<i.length;n++){var s=en(this,i[n].from(),i[n].to());e!==!1&&(s=s.join(e||this.lineSeparator())),t[n]=s}return t},replaceSelection:function(e,t,i){for(var n=[],s=0;s<this.sel.ranges.length;s++)n[s]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:z(function(e,t,i){for(var n=[],s=this.sel,d=0;d<s.ranges.length;d++){var p=s.ranges[d];n[d]={from:p.from(),to:p.to(),text:this.splitLines(e[d]),origin:i}}for(var b=t&&t!="end"&&h1(this,n,t),m=n.length-1;m>=0;m--)qo(this,n[m]);b?Wl(this,b):this.cm&&Ai(this.cm)}),undo:z(function(){Gl(this,"undo")}),redo:z(function(){Gl(this,"redo")}),undoSelection:z(function(){Gl(this,"undo",!0)}),redoSelection:z(function(){Gl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var s=0;s<e.undone.length;s++)e.undone[s].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new po(this.history),Hi(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:nn(this.history.done),undone:nn(this.history.undone)}},setHistory:function(e){var t=this.history=new po(this.history);t.done=nn(e.done.slice(0),null,!0),t.undone=nn(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,i){return bo(this,e,"gutter",function(n){var s=n.gutterMarkers||(n.gutterMarkers={});return s[t]=i,!i&&ae(s)&&(n.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&bo(t,i,"gutter",function(){return i.gutterMarkers[e]=null,ae(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!xi(this,e)||(t=e,e=ke(this,e),!e))return null}else if(t=bt(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,i){return bo(this,e,t=="gutter"?"gutter":"class",function(n){var s=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[s])n[s]=i;else{if(ve(i).test(n[s]))return!1;n[s]+=" "+i}return!0})}),removeLineClass:z(function(e,t,i){return bo(this,e,t=="gutter"?"gutter":"class",function(n){var s=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",d=n[s];if(d)if(i==null)n[s]=null;else{var p=d.match(ve(i));if(!p)return!1;var b=p.index+p[0].length;n[s]=d.slice(0,p.index)+(!p.index||b==d.length?"":" ")+d.slice(b)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,i){return A0(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Wi(this,Ce(this,e),Ce(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Ce(this,e),Wi(this,e,e,i,"bookmark")},findMarksAt:function(e){e=Ce(this,e);var t=[],i=ke(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var s=i[n];(s.from==null||s.from<=e.ch)&&(s.to==null||s.to>=e.ch)&&t.push(s.marker.parent||s.marker)}return t},findMarks:function(e,t,i){e=Ce(this,e),t=Ce(this,t);var n=[],s=e.line;return this.iter(e.line,t.line+1,function(d){var p=d.markedSpans;if(p)for(var b=0;b<p.length;b++){var m=p[b];!(m.to!=null&&s==e.line&&e.ch>=m.to||m.from==null&&s!=e.line||m.from!=null&&s==t.line&&m.from>=t.ch)&&(!i||i(m.marker))&&n.push(m.marker.parent||m.marker)}++s}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;n<i.length;++n)i[n].from!=null&&e.push(i[n].marker)}),e},posFromIndex:function(e){var t,i=this.first,n=this.lineSeparator().length;return this.iter(function(s){var d=s.text.length+n;if(d>e)return t=e,!0;e-=d,++i}),Ce(this,oe(i,t))},indexFromPos:function(e){e=Ce(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+i}),t},copy:function(e){var t=new Sr(za(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,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var n=new Sr(za(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Kl(n,eu(this)),n},unlinkDoc:function(e){if(e instanceof St&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),v1(eu(this));break}}if(e.history==this.history){var n=[e.id];Hi(e,function(s){return n.push(s.id)},!0),e.history=new po(null),e.history.done=nn(this.history.done,n),e.history.undone=nn(this.history.undone,n)}},iterLinkedDocs:function(e){Hi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):eo(e)},lineSeparator:function(){return this.lineSep||`
|
|
2233
|
-
`},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ba(this.cm))})}),Sr.prototype.eachLine=Sr.prototype.iter;var $0=0;function N0(e){var t=this;if(ru(t),!(Gt(t,e)||ii(t.display,e))){ur(e),T&&($0=+new Date);var i=Wn(t,e,!0),n=e.dataTransfer.files;if(!(!i||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var s=n.length,d=Array(s),p=0,b=function(){++p==s&&Ft(t,function(){i=Ce(t.doc,i);var $={from:i,to:i,text:t.doc.splitLines(d.filter(function(q){return q!=null}).join(t.doc.lineSeparator())),origin:"paste"};qo(t.doc,$),Wl(t.doc,Ni(Ce(t.doc,i),Ce(t.doc,Ri($))))})()},m=function($,q){if(t.options.allowDropFileTypes&&Le(t.options.allowDropFileTypes,$.type)==-1){b();return}var te=new FileReader;te.onerror=function(){return b()},te.onload=function(){var ue=te.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ue)){b();return}d[q]=ue,b()},te.readAsText($)},C=0;C<n.length;C++)m(n[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var _=e.dataTransfer.getData("Text");if(_){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),on(t.doc,Ni(i,i)),M)for(var N=0;N<M.length;++N)Yo(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function b1(e,t){if(T&&(!e.state.draggingText||+new Date-$0<100)){Qi(t);return}if(!(Gt(e,t)||ii(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!re)){var i=E("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Z&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),Z&&i.parentNode.removeChild(i)}}function tu(e,t){var i=Wn(e,t);if(!!i){var n=document.createDocumentFragment();ai(e,i,n),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),V(e.display.dragCursor,n)}}function ru(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function jl(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var s=t[n].CodeMirror;s&&i.push(s)}i.length&&i[0].operation(function(){for(var d=0;d<i.length;d++)e(i[d])})}}var R0=!1;function nu(){R0||(lt(),R0=!0)}function lt(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,jl(m1)},100))}),Ne(window,"blur",function(){return jl(uo)})}function m1(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ui={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"},li=0;li<10;li++)Ui[li+48]=Ui[li+96]=String(li);for(var Va=65;Va<=90;Va++)Ui[Va]=String.fromCharCode(Va);for(var Ga=1;Ga<=12;Ga++)Ui[Ga+111]=Ui[Ga+63235]="F"+Ga;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=ce?si.macDefault:si.pcDefault;function hn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,s,d,p=0;p<t.length-1;p++){var b=t[p];if(/^(cmd|meta|m)$/i.test(b))d=!0;else if(/^a(lt)?$/i.test(b))i=!0;else if(/^(c|ctrl|control)$/i.test(b))n=!0;else if(/^s(hift)?$/i.test(b))s=!0;else throw new Error("Unrecognized modifier name: "+b)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),d&&(e="Cmd-"+e),s&&(e="Shift-"+e),e}function y1(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(n=="..."){delete e[i];continue}for(var s=ht(i.split(" "),hn),d=0;d<s.length;d++){var p=void 0,b=void 0;d==s.length-1?(b=s.join(" "),p=n):(b=s.slice(0,d+1).join(" "),p="...");var m=t[b];if(!m)t[b]=p;else if(m!=p)throw new Error("Inconsistent bindings for "+b)}delete e[i]}for(var C in t)e[C]=t[C];return e}function ui(e,t,i,n){t=Mr(t);var s=t.call?t.call(e,n):t[e];if(s===!1)return"nothing";if(s==="...")return"multi";if(s!=null&&i(s))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return ui(e,t.fallthrough,i,n);for(var d=0;d<t.fallthrough.length;d++){var p=ui(e,t.fallthrough[d],i,n);if(p)return p}}}function Yl(e){var t=typeof e=="string"?e:Ui[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function iu(e,t,i){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(qe?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(qe?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function ou(e,t){if(Z&&e.keyCode==34&&e.char)return!1;var i=Ui[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),iu(i,e,t))}function Mr(e){return typeof e=="string"?si[e]:e}function an(e,t){for(var i=e.doc.sel.ranges,n=[],s=0;s<i.length;s++){for(var d=t(i[s]);n.length&&w(d.from,Ke(n).to)<=0;){var p=n.pop();if(w(p.from,d.from)<0){d.from=p.from;break}}n.push(d)}yr(e,function(){for(var b=n.length-1;b>=0;b--)Yo(e.doc,"",n[b].from,n[b].to,"+delete");Ai(e)})}function qa(e,t,i){var n=er(e.text,t+i,i);return n<0||n>e.text.length?null:n}function Xl(e,t,i){var n=qa(e,t.ch,i);return n==null?null:new oe(t.line,n,i<0?"after":"before")}function ea(e,t,i,n,s){if(e){t.doc.direction=="rtl"&&(s=-s);var d=_r(i,t.doc.direction);if(d){var p=s<0?Ke(d):d[0],b=s<0==(p.level==1),m=b?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var _=On(t,i);C=s<0?i.text.length-1:0;var M=Fn(t,_,C).top;C=pr(function(N){return Fn(t,_,N).top==M},s<0==(p.level==1)?p.from:p.to-1,C),m=="before"&&(C=qa(i,C,1))}else C=s<0?p.to:p.from;return new oe(n,C,m)}}return new oe(n,s<0?i.text.length:0,s<0?"before":"after")}function H0(e,t,i,n){var s=_r(t,e.doc.direction);if(!s)return Xl(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var d=Nt(s,i.ch,i.sticky),p=s[d];if(e.doc.direction=="ltr"&&p.level%2==0&&(n>0?p.to>i.ch:p.from<i.ch))return Xl(t,i,n);var b=function(fe,we){return qa(t,fe instanceof oe?fe.ch:fe,we)},m,C=function(fe){return e.options.lineWrapping?(m=m||On(e,t),G(e,t,m,fe)):{begin:0,end:t.text.length}},_=C(i.sticky=="before"?b(i,-1):i.ch);if(e.doc.direction=="rtl"||p.level==1){var M=p.level==1==n<0,N=b(i,M?1:-1);if(N!=null&&(M?N<=p.to&&N<=_.end:N>=p.from&&N>=_.begin)){var $=M?"before":"after";return new oe(i.line,N,$)}}var q=function(fe,we,de){for(var xe=function(xt,Xt){return Xt?new oe(i.line,b(xt,1),"before"):new oe(i.line,xt,"after")};fe>=0&&fe<s.length;fe+=we){var De=s[fe],Pe=we>0==(De.level!=1),it=Pe?de.begin:b(de.end,-1);if(De.from<=it&&it<De.to||(it=Pe?De.from:b(De.to,-1),de.begin<=it&&it<de.end))return xe(it,Pe)}},te=q(d+n,n,_);if(te)return te;var ue=n>0?_.end:b(_.begin,-1);return ue!=null&&!(n>0&&ue==t.text.length)&&(te=q(n>0?0:s.length-1,n,C(ue)),te)?te:null}var mo={selectAll:k0,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),rt)},killLine:function(e){return an(e,function(t){if(t.empty()){var i=ke(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:oe(t.head.line+1,0)}:{from:t.head,to:oe(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return an(e,function(t){return{from:oe(t.from().line,0),to:Ce(e.doc,oe(t.to().line+1,0))}})},delLineLeft:function(e){return an(e,function(t){return{from:oe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return an(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return an(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:n}})},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(oe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(oe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return au(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Ql(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return lu(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Be)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Be)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return n.ch<e.getLine(n.line).search(/\S/)?Ql(e,t.head):n},Be)},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=[],i=e.listSelections(),n=e.options.tabSize,s=0;s<i.length;s++){var d=i[s].from(),p=At(e.getLine(d.line),d.ch,n);t.push(Yt(n-p%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return yr(e,function(){for(var t=e.listSelections(),i=[],n=0;n<t.length;n++)if(!!t[n].empty()){var s=t[n].head,d=ke(e.doc,s.line).text;if(d){if(s.ch==d.length&&(s=new oe(s.line,s.ch-1)),s.ch>0)s=new oe(s.line,s.ch+1),e.replaceRange(d.charAt(s.ch-1)+d.charAt(s.ch-2),oe(s.line,s.ch-2),s,"+transpose");else if(s.line>e.doc.first){var p=ke(e.doc,s.line-1).text;p&&(s=new oe(s.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),oe(s.line-1,p.length-1),s,"+transpose"))}}i.push(new mt(s,s))}e.setSelections(i)})},newlineAndIndent:function(e){return yr(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Ai(e)})},openLine:function(e){return e.replaceSelection(`
|
|
2234
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function au(e,t){var i=ke(e.doc,t),n=Bn(i);return n!=i&&(t=bt(n)),ea(!0,e,n,t,1)}function lu(e,t){var i=ke(e.doc,t),n=Zc(i);return n!=i&&(t=bt(n)),ea(!0,e,i,t,-1)}function Ql(e,t){var i=au(e,t.line),n=ke(e.doc,i.line),s=_r(n,e.doc.direction);if(!s||s[0].level==0){var d=Math.max(i.ch,n.text.search(/\S/)),p=t.line==i.line&&t.ch<=d&&t.ch;return oe(i.line,p?0:d,i.sticky)}return i}function En(e,t,i){if(typeof t=="string"&&(t=mo[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,s=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),s=t(e)!=We}finally{e.display.shift=n,e.state.suppressEdits=!1}return s}function C1(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var s=ui(t,e.state.keyMaps[n],i,e);if(s)return s}return e.options.extraKeys&&ui(t,e.options.extraKeys,i,e)||ui(t,e.options.keyMap,i,e)}var Zi=new ot;function ta(e,t,i,n){var s=e.state.keySeq;if(s){if(Yl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Zi.set(50,function(){e.state.keySeq==s&&(e.state.keySeq=null,e.display.input.reset())}),su(e,s+" "+t,i,n))return!0}return su(e,t,i,n)}function su(e,t,i,n){var s=C1(e,t,n);return s=="multi"&&(e.state.keySeq=t),s=="handled"&&tr(e,"keyHandled",e,t,i),(s=="handled"||s=="multi")&&(ur(i),Bo(e)),!!s}function Jl(e,t){var i=ou(t,!0);return i?t.shiftKey&&!e.state.keySeq?ta(e,"Shift-"+i,t,function(n){return En(e,n,!0)})||ta(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return En(e,n)}):ta(e,i,t,function(n){return En(e,n)}):!1}function w1(e,t,i){return ta(e,"'"+i+"'",t,function(n){return En(e,n,!0)})}var uu=null;function B0(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=tt(),!Gt(t,e))){T&&k<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=Jl(t,e);Z&&(uu=n?i:null,!n&&i==88&&!pl&&(ce?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!ce&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&F0(t)}}function F0(e){var t=e.display.lineDiv;zt(t,"CodeMirror-crosshair");function i(n){(n.keyCode==18||!n.altKey)&&(ye(t,"CodeMirror-crosshair"),gr(document,"keyup",i),gr(document,"mouseover",i))}Ne(document,"keyup",i),Ne(document,"mouseover",i)}function cu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Gt(this,e)}function W0(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(ii(t.display,e)||Gt(t,e)||e.ctrlKey&&!e.altKey||ce&&e.metaKey)){var i=e.keyCode,n=e.charCode;if(Z&&i==uu){uu=null,ur(e);return}if(!(Z&&(!e.which||e.which<10)&&Jl(t,e))){var s=String.fromCharCode(n==null?i:n);s!="\b"&&(w1(t,e,s)||t.display.input.onKeyPress(e))}}}var U0=400,es=function(e,t,i){this.time=e,this.pos=t,this.button=i};es.prototype.compare=function(e,t,i){return this.time+U0>e&&w(t,this.pos)==0&&i==this.button};var dr,Kr;function x1(e,t){var i=+new Date;return Kr&&Kr.compare(i,e,t)?(dr=Kr=null,"triple"):dr&&dr.compare(i,e,t)?(Kr=new es(i,e,t),dr=null,"double"):(dr=new es(i,e,t),Kr=null,"single")}function Z0(e){var t=this,i=t.display;if(!(Gt(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,ii(i,e)){I||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!fu(t,e)){var n=Wn(t,e),s=ma(e),d=n?x1(n,s):"single";window.focus(),s==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&ts(t,s,n,d,e))&&(s==1?n?V0(t,n,d,e):Ci(e)==i.scroller&&ur(e):s==2?(n&&Fl(t.doc,n),setTimeout(function(){return i.input.focus()},20)):s==3&&(je?t.display.input.onContextMenu(e):Al(t)))}}}function ts(e,t,i,n,s){var d="Click";return n=="double"?d="Double"+d:n=="triple"&&(d="Triple"+d),d=(t==1?"Left":t==2?"Middle":"Right")+d,ta(e,iu(d,s),s,function(p){if(typeof p=="string"&&(p=mo[p]),!p)return!1;var b=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),b=p(e,i)!=We}finally{e.state.suppressEdits=!1}return b})}function ra(e,t,i){var n=e.getOption("configureMouse"),s=n?n(e,t,i):{};if(s.unit==null){var d=Me?i.shiftKey&&i.metaKey:i.altKey;s.unit=d?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(s.extend==null||e.doc.extend)&&(s.extend=e.doc.extend||i.shiftKey),s.addNew==null&&(s.addNew=ce?i.metaKey:i.ctrlKey),s.moveOnDrag==null&&(s.moveOnDrag=!(ce?i.altKey:i.ctrlKey)),s}function V0(e,t,i,n){T?setTimeout(Yr(Bs,e),0):e.curOp.focus=tt();var s=ra(e,i,n),d=e.doc.sel,p;e.options.dragDrop&&ya&&!e.isReadOnly()&&i=="single"&&(p=d.contains(t))>-1&&(w((p=d.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?G0(e,n,t,s):K0(e,n,t,s)}function G0(e,t,i,n){var s=e.display,d=!1,p=Ft(e,function(C){I&&(s.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Al(e)),gr(s.wrapper.ownerDocument,"mouseup",p),gr(s.wrapper.ownerDocument,"mousemove",b),gr(s.scroller,"dragstart",m),gr(s.scroller,"drop",p),d||(ur(C),n.addNew||Fl(e.doc,i,null,null,n.extend),I&&!re||T&&k==9?setTimeout(function(){s.wrapper.ownerDocument.body.focus({preventScroll:!0}),s.input.focus()},20):s.input.focus())}),b=function(C){d=d||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},m=function(){return d=!0};I&&(s.scroller.draggable=!0),e.state.draggingText=p,p.copy=!n.moveOnDrag,Ne(s.wrapper.ownerDocument,"mouseup",p),Ne(s.wrapper.ownerDocument,"mousemove",b),Ne(s.scroller,"dragstart",m),Ne(s.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return s.input.focus()},20),s.scroller.dragDrop&&s.scroller.dragDrop()}function q0(e,t,i){if(i=="char")return new mt(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new mt(oe(t.line,0),Ce(e.doc,oe(t.line+1,0)));var n=i(e,t);return new mt(n.from,n.to)}function K0(e,t,i,n){T&&Al(e);var s=e.display,d=e.doc;ur(t);var p,b,m=d.sel,C=m.ranges;if(n.addNew&&!n.extend?(b=d.sel.contains(i),b>-1?p=C[b]:p=new mt(i,i)):(p=d.sel.primary(),b=d.sel.primIndex),n.unit=="rectangle")n.addNew||(p=new mt(i,i)),i=Wn(e,t,!0,!0),b=-1;else{var _=q0(e,i,n.unit);n.extend?p=Bl(p,_.anchor,_.head,n.extend):p=_}n.addNew?b==-1?(b=C.length,cr(d,wr(e,C.concat([p]),b),{scroll:!1,origin:"*mouse"})):C.length>1&&C[b].empty()&&n.unit=="char"&&!n.extend?(cr(d,wr(e,C.slice(0,b).concat(C.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),m=d.sel):Qs(d,b,p,nt):(b=0,cr(d,new rn([p],0),nt),m=d.sel);var M=i;function N(de){if(w(M,de)!=0)if(M=de,n.unit=="rectangle"){for(var xe=[],De=e.options.tabSize,Pe=At(ke(d,i.line).text,i.ch,De),it=At(ke(d,de.line).text,de.ch,De),xt=Math.min(Pe,it),Xt=Math.max(Pe,it),Mt=Math.min(i.line,de.line),Or=Math.min(e.lastLine(),Math.max(i.line,de.line));Mt<=Or;Mt++){var Tr=ke(d,Mt).text,Vt=Rt(Tr,xt,De);xt==Xt?xe.push(new mt(oe(Mt,Vt),oe(Mt,Vt))):Tr.length>Vt&&xe.push(new mt(oe(Mt,Vt),oe(Mt,Rt(Tr,Xt,De))))}xe.length||xe.push(new mt(i,i)),cr(d,wr(e,m.ranges.slice(0,b).concat(xe),b),{origin:"*mouse",scroll:!1}),e.scrollIntoView(de)}else{var hr=p,nr=q0(e,de,n.unit),_t=hr.anchor,Tt;w(nr.anchor,_t)>0?(Tt=nr.head,_t=Ze(hr.from(),nr.anchor)):(Tt=nr.anchor,_t=le(hr.to(),nr.head));var Wt=m.ranges.slice(0);Wt[b]=na(e,new mt(Ce(d,_t),Tt)),cr(d,wr(e,Wt,b),nt)}}var $=s.wrapper.getBoundingClientRect(),q=0;function te(de){var xe=++q,De=Wn(e,de,!0,n.unit=="rectangle");if(!!De)if(w(De,M)!=0){e.curOp.focus=tt(),N(De);var Pe=co(s,d);(De.line>=Pe.to||De.line<Pe.from)&&setTimeout(Ft(e,function(){q==xe&&te(de)}),150)}else{var it=de.clientY<$.top?-20:de.clientY>$.bottom?20:0;it&&setTimeout(Ft(e,function(){q==xe&&(s.scroller.scrollTop+=it,te(de))}),50)}}function ue(de){e.state.selectingText=!1,q=1/0,de&&(ur(de),s.input.focus()),gr(s.wrapper.ownerDocument,"mousemove",fe),gr(s.wrapper.ownerDocument,"mouseup",we),d.history.lastSelOrigin=null}var fe=Ft(e,function(de){de.buttons===0||!ma(de)?ue(de):te(de)}),we=Ft(e,ue);e.state.selectingText=we,Ne(s.wrapper.ownerDocument,"mousemove",fe),Ne(s.wrapper.ownerDocument,"mouseup",we)}function na(e,t){var i=t.anchor,n=t.head,s=ke(e.doc,i.line);if(w(i,n)==0&&i.sticky==n.sticky)return t;var d=_r(s);if(!d)return t;var p=Nt(d,i.ch,i.sticky),b=d[p];if(b.from!=i.ch&&b.to!=i.ch)return t;var m=p+(b.from==i.ch==(b.level!=1)?0:1);if(m==0||m==d.length)return t;var C;if(n.line!=i.line)C=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var _=Nt(d,n.ch,n.sticky),M=_-p||(n.ch-i.ch)*(b.level==1?-1:1);_==m-1||_==m?C=M<0:C=M>0}var N=d[m+(C?-1:0)],$=C==(N.level==1),q=$?N.from:N.to,te=$?"after":"before";return i.ch==q&&i.sticky==te?t:new mt(new oe(i.line,q,te),n)}function ia(e,t,i,n){var s,d;if(t.touches)s=t.touches[0].clientX,d=t.touches[0].clientY;else try{s=t.clientX,d=t.clientY}catch{return!1}if(s>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ur(t);var p=e.display,b=p.lineDiv.getBoundingClientRect();if(d>b.bottom||!sr(e,i))return Xr(t);d-=b.top-p.viewOffset;for(var m=0;m<e.display.gutterSpecs.length;++m){var C=p.gutters.childNodes[m];if(C&&C.getBoundingClientRect().right>=s){var _=Mn(e.doc,d),M=e.display.gutterSpecs[m];return Ue(e,i,e,_,M.className,t),Xr(t)}}}function fu(e,t){return ia(e,t,"gutterClick",!0)}function du(e,t){ii(e.display,t)||j0(e,t)||Gt(e,t,"contextmenu")||je||e.display.input.onContextMenu(t)}function j0(e,t){return sr(e,"gutterContextMenu")?ia(e,t,"gutterContextMenu",!1):!1}function Ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Pa(e)}var yo={toString:function(){return"CodeMirror.Init"}},ja={},oa={};function rs(e){var t=e.optionHandlers;function i(n,s,d,p){e.defaults[n]=s,d&&(t[n]=p?function(b,m,C){C!=yo&&d(b,m,C)}:d)}e.defineOption=i,e.Init=yo,i("value","",function(n,s){return n.setValue(s)},!0),i("mode",null,function(n,s){n.doc.modeOption=s,qs(n)},!0),i("indentUnit",2,qs,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Ha(n),Pa(n),et(n)},!0),i("lineSeparator",null,function(n,s){if(n.doc.lineSep=s,!!s){var d=[],p=n.doc.first;n.doc.iter(function(m){for(var C=0;;){var _=m.text.indexOf(s,C);if(_==-1)break;C=_+s.length,d.push(oe(p,_))}p++});for(var b=d.length-1;b>=0;b--)Yo(n.doc,s,d[b],oe(d[b].line,d[b].ch+s.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,s,d){n.state.specialChars=new RegExp(s.source+(s.test(" ")?"":"| "),"g"),d!=yo&&n.refresh()}),i("specialCharPlaceholder",tn,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",he?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,s){return n.getInputField().spellcheck=s},!0),i("autocorrect",!1,function(n,s){return n.getInputField().autocorrect=s},!0),i("autocapitalize",!1,function(n,s){return n.getInputField().autocapitalize=s},!0),i("rtlMoveVisually",!Te),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){Ka(n),Ra(n)},!0),i("keyMap","default",function(n,s,d){var p=Mr(s),b=d!=yo&&Mr(d);b&&b.detach&&b.detach(n,p),p.attach&&p.attach(n,b||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Y0,!0),i("gutters",[],function(n,s){n.display.gutterSpecs=Vs(s,n.options.lineNumbers),Ra(n)},!0),i("fixedGutter",!0,function(n,s){n.display.gutters.style.left=s?Ho(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return Di(n)},!0),i("scrollbarStyle","native",function(n){ho(n),Di(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,s){n.display.gutterSpecs=Vs(n.options.gutters,s),Ra(n)},!0),i("firstLineNumber",1,Ra,!0),i("lineNumberFormatter",function(n){return n},Ra,!0),i("showCursorWhenSelecting",!1,Ea,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,s){s=="nocursor"&&(uo(n),n.display.input.blur()),n.display.input.readOnlyChanged(s)}),i("screenReaderLabel",null,function(n,s){s=s===""?null:s,n.display.input.screenReaderLabelChanged(s)}),i("disableInput",!1,function(n,s){s||n.display.input.reset()},!0),i("dragDrop",!0,z1),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Ea,!0),i("singleCursorHeightPerLine",!0,Ea,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ha,!0),i("addModeClass",!1,Ha,!0),i("pollInterval",100),i("undoDepth",200,function(n,s){return n.doc.history.undoDepth=s}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Ha,!0),i("moveInputWithCursor",!0,function(n,s){s||n.display.input.resetPosition()}),i("tabindex",null,function(n,s){return n.display.input.getField().tabIndex=s||""}),i("autofocus",null),i("direction","ltr",function(n,s){return n.doc.setDirection(s)},!0),i("phrases",null)}function z1(e,t,i){var n=i&&i!=yo;if(!t!=!n){var s=e.display.dragFunctions,d=t?Ne:gr;d(e.display.scroller,"dragstart",s.start),d(e.display.scroller,"dragenter",s.enter),d(e.display.scroller,"dragover",s.over),d(e.display.scroller,"dragleave",s.leave),d(e.display.scroller,"drop",s.drop)}}function Y0(e){e.options.lineWrapping?(zt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),ka(e)),Oi(e),et(e),Pa(e),setTimeout(function(){return Di(e)},100)}function St(e,t){var i=this;if(!(this instanceof St))return new St(e,t);this.options=t=t?Ut(t):{},Ut(ja,t,!1);var n=t.value;typeof n=="string"?n=new Sr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var s=new St.inputStyles[t.inputStyle](this),d=this.display=new f1(e,n,s,t);d.wrapper.CodeMirror=this,Ka(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ho(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 ot,keySeq:null,specialChars:null},t.autofocus&&!he&&d.input.focus(),T&&k<11&&setTimeout(function(){return i.display.input.reset(!0)},20),X0(this),nu(),Pn(this),this.curOp.forceUpdate=!0,L0(this,n),t.autofocus&&!he||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Fo(i)},20):uo(this);for(var p in oa)oa.hasOwnProperty(p)&&oa[p](this,t[p],yo);Gn(this),t.finishInit&&t.finishInit(this);for(var b=0;b<Ya.length;++b)Ya[b](this);Zn(this),I&&t.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}St.defaults=ja,St.optionHandlers=oa;function X0(e){var t=e.display;Ne(t.scroller,"mousedown",Ft(e,Z0)),T&&k<11?Ne(t.scroller,"dblclick",Ft(e,function(m){if(!Gt(e,m)){var C=Wn(e,m);if(!(!C||fu(e,m)||ii(e.display,m))){ur(m);var _=e.findWordAt(C);Fl(e.doc,_.anchor,_.head)}}})):Ne(t.scroller,"dblclick",function(m){return Gt(e,m)||ur(m)}),Ne(t.scroller,"contextmenu",function(m){return du(e,m)}),Ne(t.input.getField(),"contextmenu",function(m){t.scroller.contains(m.target)||du(e,m)});var i,n={end:0};function s(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function d(m){if(m.touches.length!=1)return!1;var C=m.touches[0];return C.radiusX<=1&&C.radiusY<=1}function p(m,C){if(C.left==null)return!0;var _=C.left-m.left,M=C.top-m.top;return _*_+M*M>20*20}Ne(t.scroller,"touchstart",function(m){if(!Gt(e,m)&&!d(m)&&!fu(e,m)){t.input.ensurePolled(),clearTimeout(i);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-n.end<=300?n:null},m.touches.length==1&&(t.activeTouch.left=m.touches[0].pageX,t.activeTouch.top=m.touches[0].pageY)}}),Ne(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ne(t.scroller,"touchend",function(m){var C=t.activeTouch;if(C&&!ii(t,m)&&C.left!=null&&!C.moved&&new Date-C.start<300){var _=e.coordsChar(t.activeTouch,"page"),M;!C.prev||p(C,C.prev)?M=new mt(_,_):!C.prev.prev||p(C,C.prev.prev)?M=e.findWordAt(_):M=new mt(oe(_.line,0),Ce(e.doc,oe(_.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),ur(m)}s()}),Ne(t.scroller,"touchcancel",s),Ne(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Bt(e,t.scroller.scrollTop),fo(e,t.scroller.scrollLeft,!0),Ue(e,"scroll",e))}),Ne(t.scroller,"mousewheel",function(m){return x0(e,m)}),Ne(t.scroller,"DOMMouseScroll",function(m){return x0(e,m)}),Ne(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(m){Gt(e,m)||Qi(m)},over:function(m){Gt(e,m)||(tu(e,m),Qi(m))},start:function(m){return b1(e,m)},drop:Ft(e,N0),leave:function(m){Gt(e,m)||ru(e)}};var b=t.input.getField();Ne(b,"keyup",function(m){return cu.call(e,m)}),Ne(b,"keydown",Ft(e,B0)),Ne(b,"keypress",Ft(e,W0)),Ne(b,"focus",function(m){return Fo(e,m)}),Ne(b,"blur",function(m){return uo(e,m)})}var Ya=[];St.defineInitHook=function(e){return Ya.push(e)};function Xa(e,t,i,n){var s=e.doc,d;i==null&&(i="add"),i=="smart"&&(s.mode.indent?d=Do(e,t).state:i="prev");var p=e.options.tabSize,b=ke(s,t),m=At(b.text,null,p);b.stateAfter&&(b.stateAfter=null);var C=b.text.match(/^\s*/)[0],_;if(!n&&!/\S/.test(b.text))_=0,i="not";else if(i=="smart"&&(_=s.mode.indent(d,b.text.slice(C.length),b.text),_==We||_>150)){if(!n)return;i="prev"}i=="prev"?t>s.first?_=At(ke(s,t-1).text,null,p):_=0:i=="add"?_=m+e.options.indentUnit:i=="subtract"?_=m-e.options.indentUnit:typeof i=="number"&&(_=m+i),_=Math.max(0,_);var M="",N=0;if(e.options.indentWithTabs)for(var $=Math.floor(_/p);$;--$)N+=p,M+=" ";if(N<_&&(M+=Yt(_-N)),M!=C)return Yo(s,M,oe(t,0),oe(t,C.length),"+input"),b.stateAfter=null,!0;for(var q=0;q<s.sel.ranges.length;q++){var te=s.sel.ranges[q];if(te.head.line==t&&te.head.ch<C.length){var ue=oe(t,C.length);Qs(s,q,new mt(ue,ue));break}}}var pn=null;function gn(e){pn=e}function ns(e,t,i,n,s){var d=e.doc;e.display.shift=!1,n||(n=d.sel);var p=+new Date-200,b=s=="paste"||e.state.pasteIncoming>p,m=eo(t),C=null;if(b&&n.ranges.length>1)if(pn&&pn.text.join(`
|
|
2235
|
-
`)==t){if(n.ranges.length%pn.text.length==0){C=[];for(var _=0;_<pn.text.length;_++)C.push(d.splitLines(pn.text[_]))}}else
|
|
2236
|
-
`)==
|
|
2237
|
-
`)&&(q=te=oe(q.line,0)));var ue={from:q,to:te,text:C?C[N%C.length]:m,origin:s||(b?"paste":e.state.cutIncoming>p?"cut":"+input")};qo(e.doc,ue),tr(e,"inputRead",e,ue)}t&&!b&&Q0(e,t),Ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function hu(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&yr(t,function(){return ns(t,i,0,null,"paste")}),!0}function Q0(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var s=i.ranges[n];if(!(s.head.ch>100||n&&i.ranges[n-1].head.line==s.head.line)){var d=e.getModeAt(s.head),p=!1;if(d.electricChars){for(var b=0;b<d.electricChars.length;b++)if(t.indexOf(d.electricChars.charAt(b))>-1){p=Xa(e,s.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(ke(e.doc,s.head.line).text.slice(0,s.head.ch))&&(p=Xa(e,s.head.line,"smart"));p&&tr(e,"electricInput",e,s.head.line)}}}function pu(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var s=e.doc.sel.ranges[n].head.line,d={anchor:oe(s,0),head:oe(s+1,0)};i.push(d),t.push(e.getRange(d.anchor,d.head))}return{text:t,ranges:i}}function J0(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function ec(){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"),Se&&(e.style.border="1px solid black"),J0(e),t}function ci(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,s){var d=this.options,p=d[n];d[n]==s&&n!="mode"||(d[n]=s,t.hasOwnProperty(n)&&Ft(this,t[n])(this,s,p),Ue(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,s){this.state.keyMaps[s?"push":"unshift"](Mr(n))},removeKeyMap:function(n){for(var s=this.state.keyMaps,d=0;d<s.length;++d)if(s[d]==n||s[d].name==n)return s.splice(d,1),!0},addOverlay:Cr(function(n,s){var d=n.token?n:e.getMode(this.options,n);if(d.startState)throw new Error("Overlays may not be stateful.");wt(this.state.overlays,{mode:d,modeSpec:n,opaque:s&&s.opaque,priority:s&&s.priority||0},function(p){return p.priority}),this.state.modeGen++,et(this)}),removeOverlay:Cr(function(n){for(var s=this.state.overlays,d=0;d<s.length;++d){var p=s[d].modeSpec;if(p==n||typeof n=="string"&&p.name==n){s.splice(d,1),this.state.modeGen++,et(this);return}}}),indentLine:Cr(function(n,s,d){typeof s!="string"&&typeof s!="number"&&(s==null?s=this.options.smartIndent?"smart":"prev":s=s?"add":"subtract"),xi(this.doc,n)&&Xa(this,n,s,d)}),indentSelection:Cr(function(n){for(var s=this.doc.sel.ranges,d=-1,p=0;p<s.length;p++){var b=s[p];if(b.empty())b.head.line>d&&(Xa(this,b.head.line,n,!0),d=b.head.line,p==this.doc.sel.primIndex&&Ai(this));else{var m=b.from(),C=b.to(),_=Math.max(d,m.line);d=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=_;M<d;++M)Xa(this,M,n);var N=this.doc.sel.ranges;m.ch==0&&s.length==N.length&&N[p].from().ch>0&&Qs(this.doc,p,new mt(m,N[p].to()),rt)}}}),getTokenAt:function(n,s){return ml(this,n,s)},getLineTokens:function(n,s){return ml(this,oe(n),s,!0)},getTokenTypeAt:function(n){n=Ce(this.doc,n);var s=Ls(this,ke(this.doc,n.line)),d=0,p=(s.length-1)/2,b=n.ch,m;if(b==0)m=s[2];else for(;;){var C=d+p>>1;if((C?s[C*2-1]:0)>=b)p=C;else if(s[C*2+1]<b)d=C+1;else{m=s[C*2+2];break}}var _=m?m.indexOf("overlay "):-1;return _<0?m:_==0?null:m.slice(0,_-1)},getModeAt:function(n){var s=this.doc.mode;return s.innerMode?e.innerMode(s,this.getTokenAt(n).state).mode:s},getHelper:function(n,s){return this.getHelpers(n,s)[0]},getHelpers:function(n,s){var d=[];if(!i.hasOwnProperty(s))return d;var p=i[s],b=this.getModeAt(n);if(typeof b[s]=="string")p[b[s]]&&d.push(p[b[s]]);else if(b[s])for(var m=0;m<b[s].length;m++){var C=p[b[s][m]];C&&d.push(C)}else b.helperType&&p[b.helperType]?d.push(p[b.helperType]):p[b.name]&&d.push(p[b.name]);for(var _=0;_<p._global.length;_++){var M=p._global[_];M.pred(b,this)&&Le(d,M.val)==-1&&d.push(M.val)}return d},getStateAfter:function(n,s){var d=this.doc;return n=ft(d,n==null?d.first+d.size-1:n),Do(this,n+1,s).state},cursorCoords:function(n,s){var d,p=this.doc.sel.primary();return n==null?d=p.head:typeof n=="object"?d=Ce(this.doc,n):d=n?p.from():p.to(),Tn(this,d,s||"page")},charCoords:function(n,s){return El(this,Ce(this.doc,n),s||"page")},coordsChar:function(n,s){return n=d0(this,n,s||"page"),R(this,n.left,n.top)},lineAtHeight:function(n,s){return n=d0(this,{top:n,left:0},s||"page").top,Mn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,s,d){var p=!1,b;if(typeof n=="number"){var m=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>m&&(n=m,p=!0),b=ke(this.doc,n)}else b=n;return Pl(this,b,{top:0,left:0},s||"page",d||p).top+(p?this.doc.height-Nr(b):0)},defaultTextHeight:function(){return ki(this.display)},defaultCharWidth:function(){return Ro(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,s,d,p,b){var m=this.display;n=Tn(this,Ce(this.doc,n));var C=n.bottom,_=n.left;if(s.style.position="absolute",s.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(s),m.sizer.appendChild(s),p=="over")C=n.top;else if(p=="above"||p=="near"){var M=Math.max(m.wrapper.clientHeight,this.doc.height),N=Math.max(m.sizer.clientWidth,m.lineSpace.clientWidth);(p=="above"||n.bottom+s.offsetHeight>M)&&n.top>s.offsetHeight?C=n.top-s.offsetHeight:n.bottom+s.offsetHeight<=M&&(C=n.bottom),_+s.offsetWidth>N&&(_=N-s.offsetWidth)}s.style.top=C+"px",s.style.left=s.style.right="",b=="right"?(_=m.sizer.clientWidth-s.offsetWidth,s.style.right="0px"):(b=="left"?_=0:b=="middle"&&(_=(m.sizer.clientWidth-s.offsetWidth)/2),s.style.left=_+"px"),d&&r1(this,{left:_,top:C,right:_+s.offsetWidth,bottom:C+s.offsetHeight})},triggerOnKeyDown:Cr(B0),triggerOnKeyPress:Cr(W0),triggerOnKeyUp:cu,triggerOnMouseDown:Cr(Z0),execCommand:function(n){if(mo.hasOwnProperty(n))return mo[n].call(null,this)},triggerElectric:Cr(function(n){Q0(this,n)}),findPosH:function(n,s,d,p){var b=1;s<0&&(b=-1,s=-s);for(var m=Ce(this.doc,n),C=0;C<s&&(m=Qa(this.doc,m,b,d,p),!m.hitSide);++C);return m},moveH:Cr(function(n,s){var d=this;this.extendSelectionsBy(function(p){return d.display.shift||d.doc.extend||p.empty()?Qa(d.doc,p.head,n,s,d.options.rtlMoveVisually):n<0?p.from():p.to()},Be)}),deleteH:Cr(function(n,s){var d=this.doc.sel,p=this.doc;d.somethingSelected()?p.replaceSelection("",null,"+delete"):an(this,function(b){var m=Qa(p,b.head,n,s,!1);return n<0?{from:m,to:b.head}:{from:b.head,to:m}})}),findPosV:function(n,s,d,p){var b=1,m=p;s<0&&(b=-1,s=-s);for(var C=Ce(this.doc,n),_=0;_<s;++_){var M=Tn(this,C,"div");if(m==null?m=M.left:M.left=m,C=is(this,M,b,d),C.hitSide)break}return C},moveV:Cr(function(n,s){var d=this,p=this.doc,b=[],m=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(_){if(m)return n<0?_.from():_.to();var M=Tn(d,_.head,"div");_.goalColumn!=null&&(M.left=_.goalColumn),b.push(M.left);var N=is(d,M,n,s);return s=="page"&&_==p.sel.primary()&&Uo(d,El(d,N,"div").top-M.top),N},Be),b.length)for(var C=0;C<p.sel.ranges.length;C++)p.sel.ranges[C].goalColumn=b[C]}),findWordAt:function(n){var s=this.doc,d=ke(s,n.line).text,p=n.ch,b=n.ch;if(d){var m=this.getHelper(n,"wordChars");(n.sticky=="before"||b==d.length)&&p?--p:++b;for(var C=d.charAt(p),_=F(C,m)?function(M){return F(M,m)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!F(M)};p>0&&_(d.charAt(p-1));)--p;for(;b<d.length&&_(d.charAt(b));)++b}return new mt(oe(n.line,p),oe(n.line,b))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?zt(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ue(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==tt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cr(function(n,s){Ia(this,n,s)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-Gr(this)-this.display.barHeight,width:n.scrollWidth-Gr(this)-this.display.barWidth,clientHeight:Ml(this),clientWidth:_i(this)}},scrollIntoView:Cr(function(n,s){n==null?(n={from:this.doc.sel.primary().head,to:null},s==null&&(s=this.options.cursorScrollMargin)):typeof n=="number"?n={from:oe(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=s||0,n.from.line!=null?b0(this,n):m0(this,n.from,n.to,n.margin)}),setSize:Cr(function(n,s){var d=this,p=function(m){return typeof m=="number"||/^\d+$/.test(String(m))?m+"px":m};n!=null&&(this.display.wrapper.style.width=p(n)),s!=null&&(this.display.wrapper.style.height=p(s)),this.options.lineWrapping&&f0(this);var b=this.display.viewFrom;this.doc.iter(b,this.display.viewTo,function(m){if(m.widgets){for(var C=0;C<m.widgets.length;C++)if(m.widgets[C].noHScroll){Ti(d,b,"widget");break}}++b}),this.curOp.forceUpdate=!0,Ue(this,"refresh",this)}),operation:function(n){return yr(this,n)},startOperation:function(){return Pn(this)},endOperation:function(){return Zn(this)},refresh:Cr(function(){var n=this.display.cachedTextHeight;et(this),this.curOp.forceUpdate=!0,Pa(this),Ia(this,this.doc.scrollLeft,this.doc.scrollTop),Us(this.display),(n==null||Math.abs(n-ki(this.display))>.5||this.options.lineWrapping)&&Oi(this),Ue(this,"refresh",this)}),swapDoc:Cr(function(n){var s=this.doc;return s.cm=null,this.state.selectingText&&this.state.selectingText(),L0(this,n),Pa(this),this.display.input.reset(),Ia(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,tr(this,"swapDoc",this,s),s}),phrase:function(n){var s=this.options.phrases;return s&&Object.prototype.hasOwnProperty.call(s,n)?s[n]:n},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}},Ln(e),e.registerHelper=function(n,s,d){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][s]=d},e.registerGlobalHelper=function(n,s,d,p){e.registerHelper(n,s,p),i[n]._global.push({pred:d,val:p})}}function Qa(e,t,i,n,s){var d=t,p=i,b=ke(e,t.line),m=s&&e.direction=="rtl"?-i:i;function C(){var we=t.line+m;return we<e.first||we>=e.first+e.size?!1:(t=new oe(we,t.ch,t.sticky),b=ke(e,we))}function _(we){var de;if(n=="codepoint"){var xe=b.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(xe))de=null;else{var De=i>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;de=new oe(t.line,Math.max(0,Math.min(b.text.length,t.ch+i*(De?2:1))),-i)}}else s?de=H0(e.cm,b,t,i):de=Xl(b,t,i);if(de==null)if(!we&&C())t=ea(s,e.cm,b,t.line,m);else return!1;else t=de;return!0}if(n=="char"||n=="codepoint")_();else if(n=="column")_(!0);else if(n=="word"||n=="group")for(var M=null,N=n=="group",$=e.cm&&e.cm.getHelper(t,"wordChars"),q=!0;!(i<0&&!_(!q));q=!1){var te=b.text.charAt(t.ch)||`
|
|
2366
|
+
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(d),d.scrollIntoView(s),e.display.lineSpace.removeChild(d)}}}function a1(e,t,i,n){n==null&&(n=0);var s;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?oe(t.line,t.ch+1,"before"):t,t=t.ch?oe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var d=0;d<5;d++){var p=!1,b=Tn(e,t),y=!i||i==t?b:Tn(e,i);s={left:Math.min(b.left,y.left),top:Math.min(b.top,y.top)-n,right:Math.max(b.left,y.left),bottom:Math.max(b.bottom,y.bottom)+n};var C=Uo(e,s),_=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(Bt(e,C.scrollTop),Math.abs(e.doc.scrollTop-_)>1&&(p=!0)),C.scrollLeft!=null&&(fo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return s}function l1(e,t){var i=Uo(e,t);i.scrollTop!=null&&Bt(e,i.scrollTop),i.scrollLeft!=null&&fo(e,i.scrollLeft)}function Uo(e,t){var i=e.display,n=Mi(e.display);t.top<0&&(t.top=0);var s=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,d=Tl(e),p={};t.bottom-t.top>d&&(t.bottom=t.top+d);var b=e.doc.height+Rr(i),y=t.top<n,C=t.bottom>b-n;if(t.top<s)p.scrollTop=y?0:t.top;else if(t.bottom>s+d){var _=Math.min(t.top,(C?b:t.bottom)-d);_!=s&&(p.scrollTop=_)}var M=e.options.fixedGutter?0:i.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-M,$=Li(e)-i.gutters.offsetWidth,q=t.right-t.left>$;return q&&(t.right=t.left+$),t.left<10?p.scrollLeft=0:t.left<N?p.scrollLeft=Math.max(0,t.left+M-(q?0:10)):t.right>$+N-3&&(p.scrollLeft=t.right+(q?0:10)-$),p}function Zo(e,t){t!=null&&(Nl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ei(e){Nl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function $a(e,t,i){(t!=null||i!=null)&&Nl(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function C0(e,t){Nl(e),e.curOp.scrollToPos=t}function Nl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=v0(e,t.from),n=v0(e,t.to);w0(e,i,n,t.margin)}}function w0(e,t,i,n){var s=Uo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});$a(e,s.scrollLeft,s.scrollTop)}function Bt(e,t){Math.abs(e.doc.scrollTop-t)<2||(c||qs(e,{top:t}),mr(e,t,!0),c&&qs(e),Vn(e,100))}function mr(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fo(e,t,i,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,x0(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Na(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+Rr(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?i:0,docHeight:n,scrollHeight:n+Gr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Ai=function(e,t,i){this.cm=i;var n=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),s=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=s.tabIndex=-1,e(n),e(s),Ne(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ne(s,"scroll",function(){s.clientWidth&&t(s.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ai.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var s=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+s)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var d=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+d)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},Ai.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ai.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ai.prototype.zeroWidthHack=function(){var e=ce&&!ge?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ot,this.disableVert=new ot},Ai.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var s=e.getBoundingClientRect(),d=i=="vert"?document.elementFromPoint(s.right-1,(s.top+s.bottom)/2):document.elementFromPoint((s.right+s.left)/2,s.bottom-1);d!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Ai.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ra=function(){};Ra.prototype.update=function(){return{bottom:0,right:0}},Ra.prototype.setScrollLeft=function(){},Ra.prototype.setScrollTop=function(){},Ra.prototype.clear=function(){};function Ii(e,t){t||(t=Na(e));var i=e.display.barWidth,n=e.display.barHeight;Vo(e,t);for(var s=0;s<4&&i!=e.display.barWidth||n!=e.display.barHeight;s++)i!=e.display.barWidth&&e.options.lineWrapping&&Ti(e),Vo(e,Na(e)),i=e.display.barWidth,n=e.display.barHeight}function Vo(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Rl={native:Ai,null:Ra};function ho(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Rl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ne(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?fo(e,t):Bt(e,t)},e),e.display.scrollbars.addClass&&zt(e.display.wrapper,e.display.scrollbars.addClass)}var Ha=0;function Pn(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:++Ha,markArrays:null},zi(e.curOp)}function Zn(e){var t=e.curOp;t&&Jc(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;Go(i)})}function Go(e){for(var t=e.ops,i=0;i<t.length;i++)s1(t[i]);for(var n=0;n<t.length;n++)u1(t[n]);for(var s=0;s<t.length;s++)c1(t[s]);for(var d=0;d<t.length;d++)f1(t[d]);for(var p=0;p<t.length;p++)d1(t[p])}function s1(e){var t=e.cm,i=t.display;dt(t),e.updateMaxLine&&Ta(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Hr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function u1(e){e.updatedDisplay=e.mustUpdate&&Gs(e.cm,e.update)}function c1(e){var t=e.cm,i=t.display;e.updatedDisplay&&Ti(t),e.barMeasure=Na(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=c0(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+Gr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Li(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function f1(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 i=e.focus&&e.focus==tt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ii(t,e.barMeasure),e.updatedDisplay&&js(t,e.barMeasure),e.selectionChanged&&Fo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&Vs(e.cm)}function d1(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&Di(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&mr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&fo(t,e.scrollLeft,!0,!0),e.scrollToPos){var s=a1(t,Ce(n,e.scrollToPos.from),Ce(n,e.scrollToPos.to),e.scrollToPos.margin);o1(t,s)}var d=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(d)for(var b=0;b<d.length;++b)d[b].lines.length||Ue(d[b],"hide");if(p)for(var y=0;y<p.length;++y)p[y].lines.length&&Ue(p[y],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ue(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function yr(e,t){if(e.curOp)return t();Pn(e);try{return t()}finally{Zn(e)}}function Ft(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Pn(e);try{return t.apply(e,arguments)}finally{Zn(e)}}}function Cr(e){return function(){if(this.curOp)return e.apply(this,arguments);Pn(this);try{return e.apply(this,arguments)}finally{Zn(this)}}}function z(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Pn(t);try{return e.apply(this,arguments)}finally{Zn(t)}}}function Vn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,jr(Hl,e))}function Hl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var i=+new Date+e.options.workTime,n=$o(e,t.highlightFrontier),s=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(d){if(n.line>=e.display.viewFrom){var p=d.styles,b=d.text.length>e.options.maxHighlightLength?Qr(t.mode,n.state):null,y=Gu(e,d,n,!0);b&&(n.state=b),d.styles=y.styles;var C=d.styleClasses,_=y.classes;_?d.styleClasses=_:C&&(d.styleClasses=null);for(var M=!p||p.length!=d.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!M&&N<p.length;++N)M=p[N]!=d.styles[N];M&&s.push(n.line),d.stateAfter=n.save(),n.nextLine()}else d.text.length<=e.options.maxHighlightLength&&Sa(e,d.text,n),d.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return Vn(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),s.length&&yr(e,function(){for(var d=0;d<s.length;d++)Oi(e,s[d],"text")})}}var Hr=function(e,t,i){var n=e.display;this.viewport=t,this.visible=co(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Li(e),this.force=i,this.dims=qr(e),this.events=[]};Hr.prototype.signal=function(e,t){sr(e,t)&&this.events.push(arguments)},Hr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ue.apply(null,this.events[e])};function dt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Gr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Gr(e)+"px",t.scrollbarsClipped=!0)}function h1(e){if(e.hasFocus())return null;var t=tt();if(!t||!be(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&be(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function p1(e){if(!(!e||!e.activeElt||e.activeElt==tt())&&(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(),i=document.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),t.removeAllRanges(),t.addRange(i),t.extend(e.focusNode,e.focusOffset)}}function Gs(e,t){var i=e.display,n=e.doc;if(t.editorIsHidden)return ii(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&m0(e)==0)return!1;Gn(e)&&(ii(e),t.dims=qr(e));var s=n.first+n.size,d=Math.max(t.visible.from-e.options.viewportMargin,n.first),p=Math.min(s,t.visible.to+e.options.viewportMargin);i.viewFrom<d&&d-i.viewFrom<20&&(d=Math.max(n.first,i.viewFrom)),i.viewTo>p&&i.viewTo-p<20&&(p=Math.min(s,i.viewTo)),Hn&&(d=Sl(e.doc,d),p=r0(e.doc,p));var b=d!=i.viewFrom||p!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;i1(e,d,p),i.viewOffset=Nr(ke(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var y=m0(e);if(!b&&y==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var C=h1(e);return y>4&&(i.lineDiv.style.display="none"),g1(e,i.updateLineNumbers,t.dims),y>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,p1(C),Xe(i.cursorDiv),Xe(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,b&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Vn(e,400)),i.updateLineNumbers=null,!0}function Di(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Li(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Rr(e.display)-Tl(e),i.top)}),t.visible=co(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=co(e.display,e.doc,i));if(!Gs(e,t))break;Ti(e);var s=Na(e);Ia(e),Ii(e,s),js(e,s),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 qs(e,t){var i=new Hr(e,t);if(Gs(e,i)){Ti(e),Di(e,i);var n=Na(e);Ia(e),Ii(e,n),js(e,n),i.finish()}}function g1(e,t,i){var n=e.display,s=e.options.lineNumbers,d=n.lineDiv,p=d.firstChild;function b(q){var te=q.nextSibling;return I&&ce&&e.display.currentWheelTarget==q?q.style.display="none":q.parentNode.removeChild(q),te}for(var y=n.view,C=n.viewFrom,_=0;_<y.length;_++){var M=y[_];if(!M.hidden)if(!M.node||M.node.parentNode!=d){var N=Fs(e,M,C,i);d.insertBefore(N,p)}else{for(;p!=M.node;)p=b(p);var $=s&&t!=null&&t<=C&&M.lineNumber;M.changes&&(Le(M.changes,"gutter")>-1&&($=!1),l0(e,M,C,i)),$&&(Xe(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(Do(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=b(p)}function Ks(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",rr(e,"gutterChanged",e)}function js(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+Gr(e)+"px"}function x0(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Bo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,s=t.gutters.offsetWidth,d=n+"px",p=0;p<i.length;p++)if(!i[p].hidden){e.options.fixedGutter&&(i[p].gutter&&(i[p].gutter.style.left=d),i[p].gutterBackground&&(i[p].gutterBackground.style.left=d));var b=i[p].alignable;if(b)for(var y=0;y<b.length;y++)b[y].style.left=d}e.options.fixedGutter&&(t.gutters.style.left=n+s+"px")}}function Gn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Do(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var s=n.measure.appendChild(E("div",[E("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=s.firstChild.offsetWidth,p=s.offsetWidth-d;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(d,n.lineGutter.offsetWidth-p)+1,n.lineNumWidth=n.lineNumInnerWidth+p,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Ks(e.display),!0}return!1}function Ys(e,t){for(var i=[],n=!1,s=0;s<e.length;s++){var d=e[s],p=null;if(typeof d!="string"&&(p=d.style,d=d.className),d=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:d,style:p})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function z0(e){var t=e.gutters,i=e.gutterSpecs;Xe(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var s=i[n],d=s.className,p=s.style,b=t.appendChild(E("div",null,"CodeMirror-gutter "+d));p&&(b.style.cssText=p),d=="CodeMirror-linenumbers"&&(e.lineGutter=b,b.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",Ks(e)}function Ba(e){z0(e.display),et(e),x0(e)}function v1(e,t,i,n){var s=this;this.input=i,s.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),s.scrollbarFiller.setAttribute("cm-not-content","true"),s.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),s.gutterFiller.setAttribute("cm-not-content","true"),s.lineDiv=S("div",null,"CodeMirror-code"),s.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),s.cursorDiv=E("div",null,"CodeMirror-cursors"),s.measure=E("div",null,"CodeMirror-measure"),s.lineMeasure=E("div",null,"CodeMirror-measure"),s.lineSpace=S("div",[s.measure,s.lineMeasure,s.selectionDiv,s.cursorDiv,s.lineDiv],null,"position: relative; outline: none");var d=S("div",[s.lineSpace],"CodeMirror-lines");s.mover=E("div",[d],null,"position: relative"),s.sizer=E("div",[s.mover],"CodeMirror-sizer"),s.sizerWidth=null,s.heightForcer=E("div",null,null,"position: absolute; height: "+He+"px; width: 1px;"),s.gutters=E("div",null,"CodeMirror-gutters"),s.lineGutter=null,s.scroller=E("div",[s.sizer,s.heightForcer,s.gutters],"CodeMirror-scroll"),s.scroller.setAttribute("tabIndex","-1"),s.wrapper=E("div",[s.scrollbarFiller,s.gutterFiller,s.scroller],"CodeMirror"),s.wrapper.setAttribute("translate","no"),T&&k<8&&(s.gutters.style.zIndex=-1,s.scroller.style.paddingRight=0),!I&&!(c&&he)&&(s.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(s.wrapper):e(s.wrapper)),s.viewFrom=s.viewTo=t.first,s.reportedViewFrom=s.reportedViewTo=t.first,s.view=[],s.renderedView=null,s.externalMeasured=null,s.viewOffset=0,s.lastWrapHeight=s.lastWrapWidth=0,s.updateLineNumbers=null,s.nativeBarWidth=s.barHeight=s.barWidth=0,s.scrollbarsClipped=!1,s.lineNumWidth=s.lineNumInnerWidth=s.lineNumChars=null,s.alignWidgets=!1,s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.maxLine=null,s.maxLineLength=0,s.maxLineChanged=!1,s.wheelDX=s.wheelDY=s.wheelStartX=s.wheelStartY=null,s.shift=!1,s.selForContextMenu=null,s.activeTouch=null,s.gutterSpecs=Ys(n.gutters,n.lineNumbers),z0(s),i.init(s)}var Bl=0,qt=null;T?qt=-.53:c?qt=15:U?qt=-.7:re&&(qt=-1/3);function L0(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function b1(e){var t=L0(e);return t.x*=qt,t.y*=qt,t}function _0(e,t){var i=L0(t),n=i.x,s=i.y,d=e.display,p=d.scroller,b=p.scrollWidth>p.clientWidth,y=p.scrollHeight>p.clientHeight;if(!!(n&&b||s&&y)){if(s&&ce&&I){e:for(var C=t.target,_=d.view;C!=p;C=C.parentNode)for(var M=0;M<_.length;M++)if(_[M].node==C){e.display.currentWheelTarget=C;break e}}if(n&&!c&&!Z&&qt!=null){s&&y&&Bt(e,Math.max(0,p.scrollTop+s*qt)),fo(e,Math.max(0,p.scrollLeft+n*qt)),(!s||s&&y)&&ur(t),d.wheelStartX=null;return}if(s&&qt!=null){var N=s*qt,$=e.doc.scrollTop,q=$+d.wrapper.clientHeight;N<0?$=Math.max(0,$+N-50):q=Math.min(e.doc.height,q+N+50),qs(e,{top:$,bottom:q})}Bl<20&&(d.wheelStartX==null?(d.wheelStartX=p.scrollLeft,d.wheelStartY=p.scrollTop,d.wheelDX=n,d.wheelDY=s,setTimeout(function(){if(d.wheelStartX!=null){var te=p.scrollLeft-d.wheelStartX,ue=p.scrollTop-d.wheelStartY,fe=ue&&d.wheelDY&&ue/d.wheelDY||te&&d.wheelDX&&te/d.wheelDX;d.wheelStartX=d.wheelStartY=null,fe&&(qt=(qt*Bl+fe)/(Bl+1),++Bl)}},200)):(d.wheelDX+=n,d.wheelDY+=s))}}var tn=function(e,t){this.ranges=e,this.primIndex=t};tn.prototype.primary=function(){return this.ranges[this.primIndex]},tn.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 i=this.ranges[t],n=e.ranges[t];if(!O(i.anchor,n.anchor)||!O(i.head,n.head))return!1}return!0},tn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new mt(Y(this.ranges[t].anchor),Y(this.ranges[t].head));return new tn(e,this.primIndex)},tn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},tn.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(w(t,n.from())>=0&&w(e,n.to())<=0)return i}return-1};var mt=function(e,t){this.anchor=e,this.head=t};mt.prototype.from=function(){return Ze(this.anchor,this.head)},mt.prototype.to=function(){return le(this.anchor,this.head)},mt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(e,t,i){var n=e&&e.options.selectionsMayTouch,s=t[i];t.sort(function(N,$){return w(N.from(),$.from())}),i=Le(t,s);for(var d=1;d<t.length;d++){var p=t[d],b=t[d-1],y=w(b.to(),p.from());if(n&&!p.empty()?y>0:y>=0){var C=Ze(b.from(),p.from()),_=le(b.to(),p.to()),M=b.empty()?p.from()==p.head:b.from()==b.head;d<=i&&--i,t.splice(--d,2,new mt(M?_:C,M?C:_))}}return new tn(t,i)}function $i(e,t){return new tn([new mt(e,t||e)],0)}function Ni(e){return e.text?oe(e.from.line+e.text.length-1,Ke(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function dn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return Ni(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Ni(t).ch-t.to.ch),oe(i,n)}function Xs(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var s=e.sel.ranges[n];i.push(new mt(dn(s.anchor,t),dn(s.head,t)))}return wr(e.cm,i,e.sel.primIndex)}function S0(e,t,i){return e.line==t.line?oe(i.line,e.ch-t.ch+i.ch):oe(i.line+(e.line-t.line),e.ch)}function m1(e,t,i){for(var n=[],s=oe(e.first,0),d=s,p=0;p<t.length;p++){var b=t[p],y=S0(b.from,s,d),C=S0(Ni(b),s,d);if(s=b.to,d=C,i=="around"){var _=e.sel.ranges[p],M=w(_.head,_.anchor)<0;n[p]=new mt(M?C:y,M?y:C)}else n[p]=new mt(y,y)}return new tn(n,e.sel.primIndex)}function Qs(e){e.doc.mode=Io(e.options,e.doc.modeOption),Fa(e)}function Fa(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,Vn(e,100),e.state.modeGen++,e.curOp&&et(e)}function Js(e,t){return t.from.ch==0&&t.to.ch==0&&Ke(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Fl(e,t,i,n){function s(we){return i?i[we]:null}function d(we,de,xe){n0(we,de,xe,n),rr(we,"change",we,t)}function p(we,de){for(var xe=[],De=we;De<de;++De)xe.push(new br(C[De],s(De),n));return xe}var b=t.from,y=t.to,C=t.text,_=ke(e,b.line),M=ke(e,y.line),N=Ke(C),$=s(C.length-1),q=y.line-b.line;if(t.full)e.insert(0,p(0,C.length)),e.remove(C.length,e.size-C.length);else if(Js(e,t)){var te=p(0,C.length-1);d(M,M.text,$),q&&e.remove(b.line,q),te.length&&e.insert(b.line,te)}else if(_==M)if(C.length==1)d(_,_.text.slice(0,b.ch)+N+_.text.slice(y.ch),$);else{var ue=p(1,C.length-1);ue.push(new br(N+_.text.slice(y.ch),$,n)),d(_,_.text.slice(0,b.ch)+C[0],s(0)),e.insert(b.line+1,ue)}else if(C.length==1)d(_,_.text.slice(0,b.ch)+C[0]+M.text.slice(y.ch),s(0)),e.remove(b.line+1,q);else{d(_,_.text.slice(0,b.ch)+C[0],s(0)),d(M,N+M.text.slice(y.ch),$);var fe=p(1,C.length-1);q>1&&e.remove(b.line+1,q-1),e.insert(b.line+1,fe)}rr(e,"change",e,t)}function Ri(e,t,i){function n(s,d,p){if(s.linked)for(var b=0;b<s.linked.length;++b){var y=s.linked[b];if(y.doc!=d){var C=p&&y.sharedHist;i&&!C||(t(y.doc,C),n(y.doc,s,C))}}}n(e,null,!0)}function M0(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ki(e),Qs(e),Wl(e),e.options.direction=t.direction,e.options.lineWrapping||Ta(e),e.options.mode=t.modeOption,et(e)}function Wl(e){(e.doc.direction=="rtl"?zt:ye)(e.display.lineDiv,"CodeMirror-rtl")}function Wa(e){yr(e,function(){Wl(e),et(e)})}function po(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 eu(e,t){var i={from:Y(t.from),to:Ni(t),text:Jr(e,t.from,t.to)};return k0(e,i,t.from.line,t.to.line+1),Ri(e,function(n){return k0(n,i,t.from.line,t.to.line+1)},!0),i}function tu(e){for(;e.length;){var t=Ke(e);if(t.ranges)e.pop();else break}}function y1(e,t){if(t)return tu(e.done),Ke(e.done);if(e.done.length&&!Ke(e.done).ranges)return Ke(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ke(e.done)}function qn(e,t,i,n){var s=e.history;s.undone.length=0;var d=+new Date,p,b;if((s.lastOp==n||s.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&s.lastModTime>d-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=y1(s,s.lastOp==n)))b=Ke(p.changes),w(t.from,t.to)==0&&w(t.from,b.to)==0?b.to=Ni(t):p.changes.push(eu(e,t));else{var y=Ke(s.done);for((!y||!y.ranges)&&Br(e.sel,s.done),p={changes:[eu(e,t)],generation:s.generation},s.done.push(p);s.done.length>s.undoDepth;)s.done.shift(),s.done[0].ranges||s.done.shift()}s.done.push(i),s.generation=++s.maxGeneration,s.lastModTime=s.lastSelTime=d,s.lastOp=s.lastSelOp=n,s.lastOrigin=s.lastSelOrigin=t.origin,b||Ue(e,"historyAdded")}function ru(e,t,i,n){var s=t.charAt(0);return s=="*"||s=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function go(e,t,i,n){var s=e.history,d=n&&n.origin;i==s.lastSelOp||d&&s.lastSelOrigin==d&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==d||ru(e,d,Ke(s.done),t))?s.done[s.done.length-1]=t:Br(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=d,s.lastSelOp=i,n&&n.clearRedo!==!1&&tu(s.undone)}function Br(e,t){var i=Ke(t);i&&i.ranges&&i.equals(e)||t.push(e)}function k0(e,t,i,n){var s=t["spans_"+e.id],d=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(p){p.markedSpans&&((s||(s=t["spans_"+e.id]={}))[d]=p.markedSpans),++d})}function O0(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function T0(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],s=0;s<t.text.length;++s)n.push(O0(i[s]));return n}function qo(e,t){var i=T0(e,t),n=Es(e,t);if(!i)return n;if(!n)return i;for(var s=0;s<i.length;++s){var d=i[s],p=n[s];if(d&&p){e:for(var b=0;b<p.length;++b){for(var y=p[b],C=0;C<d.length;++C)if(d[C].marker==y.marker)continue e;d.push(y)}}else p&&(i[s]=p)}return i}function rn(e,t,i){for(var n=[],s=0;s<e.length;++s){var d=e[s];if(d.ranges){n.push(i?tn.prototype.deepCopy.call(d):d);continue}var p=d.changes,b=[];n.push({changes:b});for(var y=0;y<p.length;++y){var C=p[y],_=void 0;if(b.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(_=M.match(/^spans_(\d+)$/))&&Le(t,Number(_[1]))>-1&&(Ke(b)[M]=C[M],delete C[M])}}return n}function Ul(e,t,i,n){if(n){var s=e.anchor;if(i){var d=w(t,s)<0;d!=w(i,s)<0?(s=t,t=i):d!=w(t,i)<0&&(t=i)}return new mt(s,t)}else return new mt(i||t,t)}function Zl(e,t,i,n,s){s==null&&(s=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new tn([Ul(e.sel.primary(),t,i,s)],0),n)}function Ua(e,t,i){for(var n=[],s=e.cm&&(e.cm.display.shift||e.extend),d=0;d<e.sel.ranges.length;d++)n[d]=Ul(e.sel.ranges[d],t[d],null,s);var p=wr(e.cm,n,e.sel.primIndex);cr(e,p,i)}function nu(e,t,i,n){var s=e.sel.ranges.slice(0);s[t]=i,cr(e,wr(e.cm,s,e.sel.primIndex),n)}function iu(e,t,i,n){cr(e,$i(t,i),n)}function xr(e,t,i){var n={ranges:t.ranges,update:function(s){this.ranges=[];for(var d=0;d<s.length;d++)this.ranges[d]=new mt(Ce(e,s[d].anchor),Ce(e,s[d].head))},origin:i&&i.origin};return Ue(e,"beforeSelectionChange",e,n),e.cm&&Ue(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?wr(e.cm,n.ranges,n.ranges.length-1):t}function Vl(e,t,i){var n=e.history.done,s=Ke(n);s&&s.ranges?(n[n.length-1]=t,nn(e,t,i)):cr(e,t,i)}function cr(e,t,i){nn(e,t,i),go(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function nn(e,t,i){(sr(e,"beforeSelectionChange")||e.cm&&sr(e.cm,"beforeSelectionChange"))&&(t=xr(e,t,i));var n=i&&i.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Gl(e,Hi(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Ei(e.cm)}function Gl(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Eo(e.cm)),rr(e,"cursorActivity",e))}function Za(e){Gl(e,Hi(e,e.sel,null,!1))}function Hi(e,t,i,n){for(var s,d=0;d<t.ranges.length;d++){var p=t.ranges[d],b=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[d],y=fr(e,p.anchor,b&&b.anchor,i,n),C=fr(e,p.head,b&&b.head,i,n);(s||y!=p.anchor||C!=p.head)&&(s||(s=t.ranges.slice(0,d)),s[d]=new mt(y,C))}return s?wr(e.cm,s,t.primIndex):t}function vo(e,t,i,n,s){var d=ke(e,t.line);if(d.markedSpans)for(var p=0;p<d.markedSpans.length;++p){var b=d.markedSpans[p],y=b.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,_="selectRight"in y?!y.selectRight:y.inclusiveRight;if((b.from==null||(C?b.from<=t.ch:b.from<t.ch))&&(b.to==null||(_?b.to>=t.ch:b.to>t.ch))){if(s&&(Ue(y,"beforeCursorEnter"),y.explicitlyCleared))if(d.markedSpans){--p;continue}else break;if(!y.atomic)continue;if(i){var M=y.find(n<0?1:-1),N=void 0;if((n<0?_:C)&&(M=ql(e,M,-n,M&&M.line==t.line?d:null)),M&&M.line==t.line&&(N=w(M,i))&&(n<0?N<0:N>0))return vo(e,M,t,n,s)}var $=y.find(n<0?-1:1);return(n<0?C:_)&&($=ql(e,$,n,$.line==t.line?d:null)),$?vo(e,$,t,n,s):null}}return t}function fr(e,t,i,n,s){var d=n||1,p=vo(e,t,i,d,s)||!s&&vo(e,t,i,d,!0)||vo(e,t,i,-d,s)||!s&&vo(e,t,i,-d,!0);return p||(e.cantEdit=!0,oe(e.first,0))}function ql(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?Ce(e,oe(t.line-1)):null:i>0&&t.ch==(n||ke(e,t.line)).text.length?t.line<e.first+e.size-1?oe(t.line+1,0):null:new oe(t.line,t.ch+i)}function P0(e){e.setSelection(oe(e.firstLine(),0),oe(e.lastLine()),rt)}function E0(e,t,i){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return i&&(n.update=function(s,d,p,b){s&&(n.from=Ce(e,s)),d&&(n.to=Ce(e,d)),p&&(n.text=p),b!==void 0&&(n.origin=b)}),Ue(e,"beforeChange",e,n),e.cm&&Ue(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Ko(e,t,i){if(e.cm){if(!e.cm.curOp)return Ft(e.cm,Ko)(e,t,i);if(e.cm.state.suppressEdits)return}if(!((sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"))&&(t=E0(e,t,!0),!t))){var n=Ps&&!i&&As(e,t.from,t.to);if(n)for(var s=n.length-1;s>=0;--s)Kl(e,{from:n[s].from,to:n[s].to,text:s?[""]:t.text,origin:t.origin});else Kl(e,t)}}function Kl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var i=Xs(e,t);qn(e,t,i,e.cm?e.cm.curOp.id:NaN),Yo(e,t,i,Es(e,t));var n=[];Ri(e,function(s,d){!d&&Le(n,s.history)==-1&&(I0(s.history,t),n.push(s.history)),Yo(s,t,null,Es(s,t))})}}function jl(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!i)){for(var s=e.history,d,p=e.sel,b=t=="undo"?s.done:s.undone,y=t=="undo"?s.undone:s.done,C=0;C<b.length&&(d=b[C],!(i?d.ranges&&!d.equals(e.sel):!d.ranges));C++);if(C!=b.length){for(s.lastOrigin=s.lastSelOrigin=null;;)if(d=b.pop(),d.ranges){if(Br(d,y),i&&!d.equals(e.sel)){cr(e,d,{clearRedo:!1});return}p=d}else if(n){b.push(d);return}else break;var _=[];Br(p,y),y.push({changes:_,generation:s.generation}),s.generation=d.generation||++s.maxGeneration;for(var M=sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"),N=function(te){var ue=d.changes[te];if(ue.origin=t,M&&!E0(e,ue,!1))return b.length=0,{};_.push(eu(e,ue));var fe=te?Xs(e,ue):Ke(b);Yo(e,ue,fe,qo(e,ue)),!te&&e.cm&&e.cm.scrollIntoView({from:ue.from,to:Ni(ue)});var we=[];Ri(e,function(de,xe){!xe&&Le(we,de.history)==-1&&(I0(de.history,ue),we.push(de.history)),Yo(de,ue,null,qo(de,ue))})},$=d.changes.length-1;$>=0;--$){var q=N($);if(q)return q.v}}}}function jo(e,t){if(t!=0&&(e.first+=t,e.sel=new tn(ht(e.sel.ranges,function(s){return new mt(oe(s.anchor.line+t,s.anchor.ch),oe(s.head.line+t,s.head.ch))}),e.sel.primIndex),e.cm)){et(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)Oi(e.cm,n,"gutter")}}function Yo(e,t,i,n){if(e.cm&&!e.cm.curOp)return Ft(e.cm,Yo)(e,t,i,n);if(t.to.line<e.first){jo(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 s=t.text.length-1-(e.first-t.from.line);jo(e,s),t={from:oe(e.first,0),to:oe(t.to.line+s,t.to.ch),text:[Ke(t.text)],origin:t.origin}}var d=e.lastLine();t.to.line>d&&(t={from:t.from,to:oe(d,ke(e,d).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Jr(e,t.from,t.to),i||(i=Xs(e,t)),e.cm?C1(e.cm,t,n):Fl(e,t,n),nn(e,i,rt),e.cantEdit&&fr(e,oe(e.firstLine(),0))&&(e.cantEdit=!1)}}function C1(e,t,i){var n=e.doc,s=e.display,d=t.from,p=t.to,b=!1,y=d.line;e.options.lineWrapping||(y=bt(Bn(ke(n,d.line))),n.iter(y,p.line+1,function($){if($==s.maxLine)return b=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Eo(e),Fl(n,t,i,b0(e)),e.options.lineWrapping||(n.iter(y,d.line+t.text.length,function($){var q=Oa($);q>s.maxLineLength&&(s.maxLine=$,s.maxLineLength=q,s.maxLineChanged=!0,b=!1)}),b&&(e.curOp.updateMaxLine=!0)),Zc(n,d.line),Vn(e,400);var C=t.text.length-(p.line-d.line)-1;t.full?et(e):d.line==p.line&&t.text.length==1&&!Js(e.doc,t)?Oi(e,d.line,"text"):et(e,d.line,p.line+1,C);var _=sr(e,"changes"),M=sr(e,"change");if(M||_){var N={from:d,to:p,text:t.text,removed:t.removed,origin:t.origin};M&&rr(e,"change",e,N),_&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Xo(e,t,i,n,s){var d;n||(n=i),w(n,i)<0&&(d=[n,i],i=d[0],n=d[1]),typeof t=="string"&&(t=e.splitLines(t)),Ko(e,{from:i,to:n,text:t,origin:s})}function Qo(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function A0(e,t,i,n){for(var s=0;s<e.length;++s){var d=e[s],p=!0;if(d.ranges){d.copied||(d=e[s]=d.deepCopy(),d.copied=!0);for(var b=0;b<d.ranges.length;b++)Qo(d.ranges[b].anchor,t,i,n),Qo(d.ranges[b].head,t,i,n);continue}for(var y=0;y<d.changes.length;++y){var C=d.changes[y];if(i<C.from.line)C.from=oe(C.from.line+n,C.from.ch),C.to=oe(C.to.line+n,C.to.ch);else if(t<=C.to.line){p=!1;break}}p||(e.splice(0,s+1),s=0)}}function I0(e,t){var i=t.from.line,n=t.to.line,s=t.text.length-(n-i)-1;A0(e.done,i,n,s),A0(e.undone,i,n,s)}function bo(e,t,i,n){var s=t,d=t;return typeof t=="number"?d=ke(e,ft(e,t)):s=bt(t),s==null?null:(n(d,s)&&e.cm&&Oi(e.cm,s,i),d)}function Jo(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}Jo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var s=this.lines[i];this.height-=s.height,i0(s),rr(s,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,i){for(var n=e+t;e<n;++e)if(i(this.lines[e]))return!0}};function Va(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var s=e[n];t+=s.chunkSize(),i+=s.height,s.parent=this}this.size=t,this.height=i,this.parent=null}Va.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var n=this.children[i],s=n.chunkSize();if(e<s){var d=Math.min(t,s-e),p=n.height;if(n.removeInner(e,d),this.height-=p-n.height,s==d&&(this.children.splice(i--,1),n.parent=null),(t-=d)==0)break;e=0}else e-=s}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Jo))){var b=[];this.collapse(b),this.children=[new Jo(b)],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,i){this.size+=t.length,this.height+=i;for(var n=0;n<this.children.length;++n){var s=this.children[n],d=s.chunkSize();if(e<=d){if(s.insertInner(e,t,i),s.lines&&s.lines.length>50){for(var p=s.lines.length%25+25,b=p;b<s.lines.length;){var y=new Jo(s.lines.slice(b,b+=25));s.height-=y.height,this.children.splice(++n,0,y),y.parent=this}s.lines=s.lines.slice(0,p),this.maybeSpill()}break}e-=d}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new Va(t);if(e.parent){e.size-=i.size,e.height-=i.height;var s=Le(e.parent.children,e);e.parent.children.splice(s+1,0,i)}else{var n=new Va(e.children);n.parent=e,e.children=[n,i],e=n}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var n=0;n<this.children.length;++n){var s=this.children[n],d=s.chunkSize();if(e<d){var p=Math.min(t,d-e);if(s.iterN(e,p,i))return!0;if((t-=p)==0)break;e=0}else e-=d}}};var Ga=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};Ga.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=bt(i);if(!(n==null||!t)){for(var s=0;s<t.length;++s)t[s]==this&&t.splice(s--,1);t.length||(i.widgets=null);var d=oo(this);Zr(i,Math.max(0,i.height-d)),e&&(yr(e,function(){D0(e,i,-d),Oi(e,n,"widget")}),rr(e,"lineWidgetCleared",e,this,n))}},Ga.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var s=oo(this)-t;!s||(Ht(this.doc,n)||Zr(n,n.height+s),i&&yr(i,function(){i.curOp.forceUpdate=!0,D0(i,n,s),rr(i,"lineWidgetChanged",i,e,bt(n))}))},Ln(Ga);function D0(e,t,i){Nr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Zo(e,i)}function $0(e,t,i,n){var s=new Ga(e,i,n),d=e.cm;return d&&s.noHScroll&&(d.display.alignWidgets=!0),bo(e,t,"widget",function(p){var b=p.widgets||(p.widgets=[]);if(s.insertAt==null?b.push(s):b.splice(Math.min(b.length,Math.max(0,s.insertAt)),0,s),s.line=p,d&&!Ht(e,p)){var y=Nr(p)<e.scrollTop;Zr(p,p.height+oo(s)),y&&Zo(d,s.height),d.curOp.forceUpdate=!0}return!0}),d&&rr(d,"lineWidgetAdded",d,s,typeof t=="number"?t:bt(t)),s}var Yl=0,Bi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Yl};Bi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Pn(e),sr(this,"clear")){var i=this.find();i&&rr(this,"clear",i.from,i.to)}for(var n=null,s=null,d=0;d<this.lines.length;++d){var p=this.lines[d],b=Ma(p.markedSpans,this);e&&!this.collapsed?Oi(e,bt(p),"text"):e&&(b.to!=null&&(s=bt(p)),b.from!=null&&(n=bt(p))),p.markedSpans=Vc(p.markedSpans,b),b.from==null&&this.collapsed&&!Ht(this.doc,p)&&e&&Zr(p,Mi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Bn(this.lines[y]),_=Oa(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&et(e,n,s+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Za(e.doc)),e&&rr(e,"markerCleared",e,this,n,s),t&&Zn(e),this.parent&&this.parent.clear()}},Bi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,s=0;s<this.lines.length;++s){var d=this.lines[s],p=Ma(d.markedSpans,this);if(p.from!=null&&(i=oe(t?d:bt(d),p.from),e==-1))return i;if(p.to!=null&&(n=oe(t?d:bt(d),p.to),e==1))return n}return i&&{from:i,to:n}},Bi.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;!t||!n||yr(n,function(){var s=t.line,d=bt(t.line),p=Zs(n,d);if(p&&(h0(p),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ht(i.doc,s)&&i.height!=null){var b=i.height;i.height=null;var y=oo(i)-b;y&&Zr(s,s.height+y)}rr(n,"markerChanged",n,e)})},Bi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Le(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Bi.prototype.detachLine=function(e){if(this.lines.splice(Le(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ln(Bi);function Fi(e,t,i,n,s){if(n&&n.shared)return N0(e,t,i,n,s);if(e.cm&&!e.cm.curOp)return Ft(e.cm,Fi)(e,t,i,n,s);var d=new Bi(e,s),p=w(t,i);if(n&&Ut(n,d,!1),p>0||p==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=S("span",[d.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(t0(e,t.line,t,i,d)||t.line!=i.line&&t0(e,i.line,t,i,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yu()}d.addToHistory&&qn(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var b=t.line,y=e.cm,C;if(e.iter(b,i.line+1,function(M){y&&d.collapsed&&!y.options.lineWrapping&&Bn(M)==y.display.maxLine&&(C=!0),d.collapsed&&b!=t.line&&Zr(M,0),Xu(M,new xl(d,b==t.line?t.ch:null,b==i.line?i.ch:null),e.cm&&e.cm.curOp),++b}),d.collapsed&&e.iter(t.line,i.line+1,function(M){Ht(e,M)&&Zr(M,0)}),d.clearOnEnter&&Ne(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(ju(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++Yl,d.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),d.collapsed)et(y,t.line,i.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var _=t.line;_<=i.line;_++)Oi(y,_,"text");d.atomic&&Za(y.doc),rr(y,"markerAdded",y,d)}return d}var ea=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};ea.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();rr(this,"clear")}},ea.prototype.find=function(e,t){return this.primary.find(e,t)},Ln(ea);function N0(e,t,i,n,s){n=Ut(n),n.shared=!1;var d=[Fi(e,t,i,n,s)],p=d[0],b=n.widgetNode;return Ri(e,function(y){b&&(n.widgetNode=b.cloneNode(!0)),d.push(Fi(y,Ce(y,t),Ce(y,i),n,s));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;p=Ke(d)}),new ea(d,p)}function ou(e){return e.findMarks(oe(e.first,0),e.clipPos(oe(e.lastLine())),function(t){return t.parent})}function Xl(e,t){for(var i=0;i<t.length;i++){var n=t[i],s=n.find(),d=e.clipPos(s.from),p=e.clipPos(s.to);if(w(d,p)){var b=Fi(e,d,p,n.primary,n.primary.type);n.markers.push(b),b.parent=n}}}function w1(e){for(var t=function(n){var s=e[n],d=[s.primary.doc];Ri(s.primary.doc,function(y){return d.push(y)});for(var p=0;p<s.markers.length;p++){var b=s.markers[p];Le(d,b.doc)==-1&&(b.parent=null,s.markers.splice(p--,1))}},i=0;i<e.length;i++)t(i)}var R0=0,Sr=function(e,t,i,n,s){if(!(this instanceof Sr))return new Sr(e,t,i,n,s);i==null&&(i=0),Va.call(this,[new Jo([new br("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var d=oe(i,0);this.sel=$i(d),this.history=new po(null),this.id=++R0,this.modeOption=t,this.lineSep=n,this.direction=s=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Fl(this,{from:d,to:d,text:e}),cr(this,$i(d),rt)};Sr.prototype=Ur(Va.prototype,{constructor:Sr,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,n=0;n<t.length;++n)i+=t[n].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=_a(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:z(function(e){var t=oe(this.first,0),i=this.first+this.size-1;Ko(this,{from:t,to:oe(i,ke(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&$a(this.cm,0,0),cr(this,$i(t),rt)}),replaceRange:function(e,t,i,n){t=Ce(this,t),i=i?Ce(this,i):t,Xo(this,e,t,i,n)},getRange:function(e,t,i){var n=Jr(this,Ce(this,e),Ce(this,t));return i===!1?n:i===""?n.join(""):n.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(wi(this,e))return ke(this,e)},getLineNumber:function(e){return bt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),Bn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ce(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:z(function(e,t,i){iu(this,Ce(this,typeof e=="number"?oe(e,t||0):e),null,i)}),setSelection:z(function(e,t,i){iu(this,Ce(this,e),Ce(this,t||e),i)}),extendSelection:z(function(e,t,i){Zl(this,Ce(this,e),t&&Ce(this,t),i)}),extendSelections:z(function(e,t){Ua(this,Vr(this,e),t)}),extendSelectionsBy:z(function(e,t){var i=ht(this.sel.ranges,e);Ua(this,Vr(this,i),t)}),setSelections:z(function(e,t,i){if(!!e.length){for(var n=[],s=0;s<e.length;s++)n[s]=new mt(Ce(this,e[s].anchor),Ce(this,e[s].head||e[s].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),cr(this,wr(this.cm,n,t),i)}}),addSelection:z(function(e,t,i){var n=this.sel.ranges.slice(0);n.push(new mt(Ce(this,e),Ce(this,t||e))),cr(this,wr(this.cm,n,n.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,n=0;n<t.length;n++){var s=Jr(this,t[n].from(),t[n].to());i=i?i.concat(s):s}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,n=0;n<i.length;n++){var s=Jr(this,i[n].from(),i[n].to());e!==!1&&(s=s.join(e||this.lineSeparator())),t[n]=s}return t},replaceSelection:function(e,t,i){for(var n=[],s=0;s<this.sel.ranges.length;s++)n[s]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:z(function(e,t,i){for(var n=[],s=this.sel,d=0;d<s.ranges.length;d++){var p=s.ranges[d];n[d]={from:p.from(),to:p.to(),text:this.splitLines(e[d]),origin:i}}for(var b=t&&t!="end"&&m1(this,n,t),y=n.length-1;y>=0;y--)Ko(this,n[y]);b?Vl(this,b):this.cm&&Ei(this.cm)}),undo:z(function(){jl(this,"undo")}),redo:z(function(){jl(this,"redo")}),undoSelection:z(function(){jl(this,"undo",!0)}),redoSelection:z(function(){jl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var s=0;s<e.undone.length;s++)e.undone[s].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new po(this.history),Ri(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:rn(this.history.done),undone:rn(this.history.undone)}},setHistory:function(e){var t=this.history=new po(this.history);t.done=rn(e.done.slice(0),null,!0),t.undone=rn(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,i){return bo(this,e,"gutter",function(n){var s=n.gutterMarkers||(n.gutterMarkers={});return s[t]=i,!i&&ae(s)&&(n.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&bo(t,i,"gutter",function(){return i.gutterMarkers[e]=null,ae(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!wi(this,e)||(t=e,e=ke(this,e),!e))return null}else if(t=bt(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,i){return bo(this,e,t=="gutter"?"gutter":"class",function(n){var s=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[s])n[s]=i;else{if(ve(i).test(n[s]))return!1;n[s]+=" "+i}return!0})}),removeLineClass:z(function(e,t,i){return bo(this,e,t=="gutter"?"gutter":"class",function(n){var s=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",d=n[s];if(d)if(i==null)n[s]=null;else{var p=d.match(ve(i));if(!p)return!1;var b=p.index+p[0].length;n[s]=d.slice(0,p.index)+(!p.index||b==d.length?"":" ")+d.slice(b)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,i){return $0(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Fi(this,Ce(this,e),Ce(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Ce(this,e),Fi(this,e,e,i,"bookmark")},findMarksAt:function(e){e=Ce(this,e);var t=[],i=ke(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var s=i[n];(s.from==null||s.from<=e.ch)&&(s.to==null||s.to>=e.ch)&&t.push(s.marker.parent||s.marker)}return t},findMarks:function(e,t,i){e=Ce(this,e),t=Ce(this,t);var n=[],s=e.line;return this.iter(e.line,t.line+1,function(d){var p=d.markedSpans;if(p)for(var b=0;b<p.length;b++){var y=p[b];!(y.to!=null&&s==e.line&&e.ch>=y.to||y.from==null&&s!=e.line||y.from!=null&&s==t.line&&y.from>=t.ch)&&(!i||i(y.marker))&&n.push(y.marker.parent||y.marker)}++s}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;n<i.length;++n)i[n].from!=null&&e.push(i[n].marker)}),e},posFromIndex:function(e){var t,i=this.first,n=this.lineSeparator().length;return this.iter(function(s){var d=s.text.length+n;if(d>e)return t=e,!0;e-=d,++i}),Ce(this,oe(i,t))},indexFromPos:function(e){e=Ce(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+i}),t},copy:function(e){var t=new Sr(_a(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,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var n=new Sr(_a(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Xl(n,ou(this)),n},unlinkDoc:function(e){if(e instanceof St&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),w1(ou(this));break}}if(e.history==this.history){var n=[e.id];Ri(e,function(s){return n.push(s.id)},!0),e.history=new po(null),e.history.done=rn(this.history.done,n),e.history.undone=rn(this.history.undone,n)}},iterLinkedDocs:function(e){Ri(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):eo(e)},lineSeparator:function(){return this.lineSep||`
|
|
2367
|
+
`},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Wa(this.cm))})}),Sr.prototype.eachLine=Sr.prototype.iter;var H0=0;function B0(e){var t=this;if(lu(t),!(Gt(t,e)||ni(t.display,e))){ur(e),T&&(H0=+new Date);var i=Wn(t,e,!0),n=e.dataTransfer.files;if(!(!i||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var s=n.length,d=Array(s),p=0,b=function(){++p==s&&Ft(t,function(){i=Ce(t.doc,i);var $={from:i,to:i,text:t.doc.splitLines(d.filter(function(q){return q!=null}).join(t.doc.lineSeparator())),origin:"paste"};Ko(t.doc,$),Vl(t.doc,$i(Ce(t.doc,i),Ce(t.doc,Ni($))))})()},y=function($,q){if(t.options.allowDropFileTypes&&Le(t.options.allowDropFileTypes,$.type)==-1){b();return}var te=new FileReader;te.onerror=function(){return b()},te.onload=function(){var ue=te.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ue)){b();return}d[q]=ue,b()},te.readAsText($)},C=0;C<n.length;C++)y(n[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var _=e.dataTransfer.getData("Text");if(_){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),nn(t.doc,$i(i,i)),M)for(var N=0;N<M.length;++N)Xo(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function x1(e,t){if(T&&(!e.state.draggingText||+new Date-H0<100)){Qi(t);return}if(!(Gt(e,t)||ni(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!re)){var i=E("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Z&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),Z&&i.parentNode.removeChild(i)}}function au(e,t){var i=Wn(e,t);if(!!i){var n=document.createDocumentFragment();oi(e,i,n),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),V(e.display.dragCursor,n)}}function lu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ql(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var s=t[n].CodeMirror;s&&i.push(s)}i.length&&i[0].operation(function(){for(var d=0;d<i.length;d++)e(i[d])})}}var F0=!1;function su(){F0||(st(),F0=!0)}function st(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ql(z1)},100))}),Ne(window,"blur",function(){return Ql(uo)})}function z1(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Wi={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"},ai=0;ai<10;ai++)Wi[ai+48]=Wi[ai+96]=String(ai);for(var qa=65;qa<=90;qa++)Wi[qa]=String.fromCharCode(qa);for(var Ka=1;Ka<=12;Ka++)Wi[Ka+111]=Wi[Ka+63235]="F"+Ka;var li={};li.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"},li.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"},li.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"},li.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"]},li.default=ce?li.macDefault:li.pcDefault;function hn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,s,d,p=0;p<t.length-1;p++){var b=t[p];if(/^(cmd|meta|m)$/i.test(b))d=!0;else if(/^a(lt)?$/i.test(b))i=!0;else if(/^(c|ctrl|control)$/i.test(b))n=!0;else if(/^s(hift)?$/i.test(b))s=!0;else throw new Error("Unrecognized modifier name: "+b)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),d&&(e="Cmd-"+e),s&&(e="Shift-"+e),e}function L1(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(n=="..."){delete e[i];continue}for(var s=ht(i.split(" "),hn),d=0;d<s.length;d++){var p=void 0,b=void 0;d==s.length-1?(b=s.join(" "),p=n):(b=s.slice(0,d+1).join(" "),p="...");var y=t[b];if(!y)t[b]=p;else if(y!=p)throw new Error("Inconsistent bindings for "+b)}delete e[i]}for(var C in t)e[C]=t[C];return e}function si(e,t,i,n){t=Mr(t);var s=t.call?t.call(e,n):t[e];if(s===!1)return"nothing";if(s==="...")return"multi";if(s!=null&&i(s))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return si(e,t.fallthrough,i,n);for(var d=0;d<t.fallthrough.length;d++){var p=si(e,t.fallthrough[d],i,n);if(p)return p}}}function Jl(e){var t=typeof e=="string"?e:Wi[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function uu(e,t,i){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(qe?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(qe?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function cu(e,t){if(Z&&e.keyCode==34&&e.char)return!1;var i=Wi[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),uu(i,e,t))}function Mr(e){return typeof e=="string"?li[e]:e}function on(e,t){for(var i=e.doc.sel.ranges,n=[],s=0;s<i.length;s++){for(var d=t(i[s]);n.length&&w(d.from,Ke(n).to)<=0;){var p=n.pop();if(w(p.from,d.from)<0){d.from=p.from;break}}n.push(d)}yr(e,function(){for(var b=n.length-1;b>=0;b--)Xo(e.doc,"",n[b].from,n[b].to,"+delete");Ei(e)})}function ja(e,t,i){var n=tr(e.text,t+i,i);return n<0||n>e.text.length?null:n}function es(e,t,i){var n=ja(e,t.ch,i);return n==null?null:new oe(t.line,n,i<0?"after":"before")}function ta(e,t,i,n,s){if(e){t.doc.direction=="rtl"&&(s=-s);var d=_r(i,t.doc.direction);if(d){var p=s<0?Ke(d):d[0],b=s<0==(p.level==1),y=b?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var _=On(t,i);C=s<0?i.text.length-1:0;var M=Fn(t,_,C).top;C=pr(function(N){return Fn(t,_,N).top==M},s<0==(p.level==1)?p.from:p.to-1,C),y=="before"&&(C=ja(i,C,1))}else C=s<0?p.to:p.from;return new oe(n,C,y)}}return new oe(n,s<0?i.text.length:0,s<0?"before":"after")}function W0(e,t,i,n){var s=_r(t,e.doc.direction);if(!s)return es(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var d=Nt(s,i.ch,i.sticky),p=s[d];if(e.doc.direction=="ltr"&&p.level%2==0&&(n>0?p.to>i.ch:p.from<i.ch))return es(t,i,n);var b=function(fe,we){return ja(t,fe instanceof oe?fe.ch:fe,we)},y,C=function(fe){return e.options.lineWrapping?(y=y||On(e,t),G(e,t,y,fe)):{begin:0,end:t.text.length}},_=C(i.sticky=="before"?b(i,-1):i.ch);if(e.doc.direction=="rtl"||p.level==1){var M=p.level==1==n<0,N=b(i,M?1:-1);if(N!=null&&(M?N<=p.to&&N<=_.end:N>=p.from&&N>=_.begin)){var $=M?"before":"after";return new oe(i.line,N,$)}}var q=function(fe,we,de){for(var xe=function(xt,Xt){return Xt?new oe(i.line,b(xt,1),"before"):new oe(i.line,xt,"after")};fe>=0&&fe<s.length;fe+=we){var De=s[fe],Pe=we>0==(De.level!=1),it=Pe?de.begin:b(de.end,-1);if(De.from<=it&&it<De.to||(it=Pe?De.from:b(De.to,-1),de.begin<=it&&it<de.end))return xe(it,Pe)}},te=q(d+n,n,_);if(te)return te;var ue=n>0?_.end:b(_.begin,-1);return ue!=null&&!(n>0&&ue==t.text.length)&&(te=q(n>0?0:s.length-1,n,C(ue)),te)?te:null}var mo={selectAll:P0,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),rt)},killLine:function(e){return on(e,function(t){if(t.empty()){var i=ke(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:oe(t.head.line+1,0)}:{from:t.head,to:oe(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return on(e,function(t){return{from:oe(t.from().line,0),to:Ce(e.doc,oe(t.to().line+1,0))}})},delLineLeft:function(e){return on(e,function(t){return{from:oe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return on(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return on(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:n}})},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(oe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(oe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return fu(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ts(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return du(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Be)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Be)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return n.ch<e.getLine(n.line).search(/\S/)?ts(e,t.head):n},Be)},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=[],i=e.listSelections(),n=e.options.tabSize,s=0;s<i.length;s++){var d=i[s].from(),p=At(e.getLine(d.line),d.ch,n);t.push(Yt(n-p%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return yr(e,function(){for(var t=e.listSelections(),i=[],n=0;n<t.length;n++)if(!!t[n].empty()){var s=t[n].head,d=ke(e.doc,s.line).text;if(d){if(s.ch==d.length&&(s=new oe(s.line,s.ch-1)),s.ch>0)s=new oe(s.line,s.ch+1),e.replaceRange(d.charAt(s.ch-1)+d.charAt(s.ch-2),oe(s.line,s.ch-2),s,"+transpose");else if(s.line>e.doc.first){var p=ke(e.doc,s.line-1).text;p&&(s=new oe(s.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),oe(s.line-1,p.length-1),s,"+transpose"))}}i.push(new mt(s,s))}e.setSelections(i)})},newlineAndIndent:function(e){return yr(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Ei(e)})},openLine:function(e){return e.replaceSelection(`
|
|
2368
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function fu(e,t){var i=ke(e.doc,t),n=Bn(i);return n!=i&&(t=bt(n)),ta(!0,e,n,t,1)}function du(e,t){var i=ke(e.doc,t),n=jc(i);return n!=i&&(t=bt(n)),ta(!0,e,i,t,-1)}function ts(e,t){var i=fu(e,t.line),n=ke(e.doc,i.line),s=_r(n,e.doc.direction);if(!s||s[0].level==0){var d=Math.max(i.ch,n.text.search(/\S/)),p=t.line==i.line&&t.ch<=d&&t.ch;return oe(i.line,p?0:d,i.sticky)}return i}function En(e,t,i){if(typeof t=="string"&&(t=mo[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,s=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),s=t(e)!=Fe}finally{e.display.shift=n,e.state.suppressEdits=!1}return s}function _1(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var s=si(t,e.state.keyMaps[n],i,e);if(s)return s}return e.options.extraKeys&&si(t,e.options.extraKeys,i,e)||si(t,e.options.keyMap,i,e)}var Ui=new ot;function ra(e,t,i,n){var s=e.state.keySeq;if(s){if(Jl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ui.set(50,function(){e.state.keySeq==s&&(e.state.keySeq=null,e.display.input.reset())}),hu(e,s+" "+t,i,n))return!0}return hu(e,t,i,n)}function hu(e,t,i,n){var s=_1(e,t,n);return s=="multi"&&(e.state.keySeq=t),s=="handled"&&rr(e,"keyHandled",e,t,i),(s=="handled"||s=="multi")&&(ur(i),Fo(e)),!!s}function rs(e,t){var i=cu(t,!0);return i?t.shiftKey&&!e.state.keySeq?ra(e,"Shift-"+i,t,function(n){return En(e,n,!0)})||ra(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return En(e,n)}):ra(e,i,t,function(n){return En(e,n)}):!1}function S1(e,t,i){return ra(e,"'"+i+"'",t,function(n){return En(e,n,!0)})}var pu=null;function U0(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=tt(),!Gt(t,e))){T&&k<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=rs(t,e);Z&&(pu=n?i:null,!n&&i==88&&!bl&&(ce?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),c&&!ce&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Z0(t)}}function Z0(e){var t=e.display.lineDiv;zt(t,"CodeMirror-crosshair");function i(n){(n.keyCode==18||!n.altKey)&&(ye(t,"CodeMirror-crosshair"),gr(document,"keyup",i),gr(document,"mouseover",i))}Ne(document,"keyup",i),Ne(document,"mouseover",i)}function gu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Gt(this,e)}function V0(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(ni(t.display,e)||Gt(t,e)||e.ctrlKey&&!e.altKey||ce&&e.metaKey)){var i=e.keyCode,n=e.charCode;if(Z&&i==pu){pu=null,ur(e);return}if(!(Z&&(!e.which||e.which<10)&&rs(t,e))){var s=String.fromCharCode(n==null?i:n);s!="\b"&&(S1(t,e,s)||t.display.input.onKeyPress(e))}}}var G0=400,ns=function(e,t,i){this.time=e,this.pos=t,this.button=i};ns.prototype.compare=function(e,t,i){return this.time+G0>e&&w(t,this.pos)==0&&i==this.button};var dr,Kr;function M1(e,t){var i=+new Date;return Kr&&Kr.compare(i,e,t)?(dr=Kr=null,"triple"):dr&&dr.compare(i,e,t)?(Kr=new ns(i,e,t),dr=null,"double"):(dr=new ns(i,e,t),Kr=null,"single")}function q0(e){var t=this,i=t.display;if(!(Gt(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,ni(i,e)){I||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!vu(t,e)){var n=Wn(t,e),s=Ca(e),d=n?M1(n,s):"single";window.focus(),s==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&is(t,s,n,d,e))&&(s==1?n?K0(t,n,d,e):yi(e)==i.scroller&&ur(e):s==2?(n&&Zl(t.doc,n),setTimeout(function(){return i.input.focus()},20)):s==3&&(je?t.display.input.onContextMenu(e):$l(t)))}}}function is(e,t,i,n,s){var d="Click";return n=="double"?d="Double"+d:n=="triple"&&(d="Triple"+d),d=(t==1?"Left":t==2?"Middle":"Right")+d,ra(e,uu(d,s),s,function(p){if(typeof p=="string"&&(p=mo[p]),!p)return!1;var b=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),b=p(e,i)!=Fe}finally{e.state.suppressEdits=!1}return b})}function na(e,t,i){var n=e.getOption("configureMouse"),s=n?n(e,t,i):{};if(s.unit==null){var d=Me?i.shiftKey&&i.metaKey:i.altKey;s.unit=d?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(s.extend==null||e.doc.extend)&&(s.extend=e.doc.extend||i.shiftKey),s.addNew==null&&(s.addNew=ce?i.metaKey:i.ctrlKey),s.moveOnDrag==null&&(s.moveOnDrag=!(ce?i.altKey:i.ctrlKey)),s}function K0(e,t,i,n){T?setTimeout(jr(Vs,e),0):e.curOp.focus=tt();var s=na(e,i,n),d=e.doc.sel,p;e.options.dragDrop&&wa&&!e.isReadOnly()&&i=="single"&&(p=d.contains(t))>-1&&(w((p=d.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?j0(e,n,t,s):X0(e,n,t,s)}function j0(e,t,i,n){var s=e.display,d=!1,p=Ft(e,function(C){I&&(s.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:$l(e)),gr(s.wrapper.ownerDocument,"mouseup",p),gr(s.wrapper.ownerDocument,"mousemove",b),gr(s.scroller,"dragstart",y),gr(s.scroller,"drop",p),d||(ur(C),n.addNew||Zl(e.doc,i,null,null,n.extend),I&&!re||T&&k==9?setTimeout(function(){s.wrapper.ownerDocument.body.focus({preventScroll:!0}),s.input.focus()},20):s.input.focus())}),b=function(C){d=d||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return d=!0};I&&(s.scroller.draggable=!0),e.state.draggingText=p,p.copy=!n.moveOnDrag,Ne(s.wrapper.ownerDocument,"mouseup",p),Ne(s.wrapper.ownerDocument,"mousemove",b),Ne(s.scroller,"dragstart",y),Ne(s.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return s.input.focus()},20),s.scroller.dragDrop&&s.scroller.dragDrop()}function Y0(e,t,i){if(i=="char")return new mt(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new mt(oe(t.line,0),Ce(e.doc,oe(t.line+1,0)));var n=i(e,t);return new mt(n.from,n.to)}function X0(e,t,i,n){T&&$l(e);var s=e.display,d=e.doc;ur(t);var p,b,y=d.sel,C=y.ranges;if(n.addNew&&!n.extend?(b=d.sel.contains(i),b>-1?p=C[b]:p=new mt(i,i)):(p=d.sel.primary(),b=d.sel.primIndex),n.unit=="rectangle")n.addNew||(p=new mt(i,i)),i=Wn(e,t,!0,!0),b=-1;else{var _=Y0(e,i,n.unit);n.extend?p=Ul(p,_.anchor,_.head,n.extend):p=_}n.addNew?b==-1?(b=C.length,cr(d,wr(e,C.concat([p]),b),{scroll:!1,origin:"*mouse"})):C.length>1&&C[b].empty()&&n.unit=="char"&&!n.extend?(cr(d,wr(e,C.slice(0,b).concat(C.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),y=d.sel):nu(d,b,p,nt):(b=0,cr(d,new tn([p],0),nt),y=d.sel);var M=i;function N(de){if(w(M,de)!=0)if(M=de,n.unit=="rectangle"){for(var xe=[],De=e.options.tabSize,Pe=At(ke(d,i.line).text,i.ch,De),it=At(ke(d,de.line).text,de.ch,De),xt=Math.min(Pe,it),Xt=Math.max(Pe,it),Mt=Math.min(i.line,de.line),Or=Math.min(e.lastLine(),Math.max(i.line,de.line));Mt<=Or;Mt++){var Tr=ke(d,Mt).text,Vt=Rt(Tr,xt,De);xt==Xt?xe.push(new mt(oe(Mt,Vt),oe(Mt,Vt))):Tr.length>Vt&&xe.push(new mt(oe(Mt,Vt),oe(Mt,Rt(Tr,Xt,De))))}xe.length||xe.push(new mt(i,i)),cr(d,wr(e,y.ranges.slice(0,b).concat(xe),b),{origin:"*mouse",scroll:!1}),e.scrollIntoView(de)}else{var hr=p,ir=Y0(e,de,n.unit),_t=hr.anchor,Tt;w(ir.anchor,_t)>0?(Tt=ir.head,_t=Ze(hr.from(),ir.anchor)):(Tt=ir.anchor,_t=le(hr.to(),ir.head));var Wt=y.ranges.slice(0);Wt[b]=ia(e,new mt(Ce(d,_t),Tt)),cr(d,wr(e,Wt,b),nt)}}var $=s.wrapper.getBoundingClientRect(),q=0;function te(de){var xe=++q,De=Wn(e,de,!0,n.unit=="rectangle");if(!!De)if(w(De,M)!=0){e.curOp.focus=tt(),N(De);var Pe=co(s,d);(De.line>=Pe.to||De.line<Pe.from)&&setTimeout(Ft(e,function(){q==xe&&te(de)}),150)}else{var it=de.clientY<$.top?-20:de.clientY>$.bottom?20:0;it&&setTimeout(Ft(e,function(){q==xe&&(s.scroller.scrollTop+=it,te(de))}),50)}}function ue(de){e.state.selectingText=!1,q=1/0,de&&(ur(de),s.input.focus()),gr(s.wrapper.ownerDocument,"mousemove",fe),gr(s.wrapper.ownerDocument,"mouseup",we),d.history.lastSelOrigin=null}var fe=Ft(e,function(de){de.buttons===0||!Ca(de)?ue(de):te(de)}),we=Ft(e,ue);e.state.selectingText=we,Ne(s.wrapper.ownerDocument,"mousemove",fe),Ne(s.wrapper.ownerDocument,"mouseup",we)}function ia(e,t){var i=t.anchor,n=t.head,s=ke(e.doc,i.line);if(w(i,n)==0&&i.sticky==n.sticky)return t;var d=_r(s);if(!d)return t;var p=Nt(d,i.ch,i.sticky),b=d[p];if(b.from!=i.ch&&b.to!=i.ch)return t;var y=p+(b.from==i.ch==(b.level!=1)?0:1);if(y==0||y==d.length)return t;var C;if(n.line!=i.line)C=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var _=Nt(d,n.ch,n.sticky),M=_-p||(n.ch-i.ch)*(b.level==1?-1:1);_==y-1||_==y?C=M<0:C=M>0}var N=d[y+(C?-1:0)],$=C==(N.level==1),q=$?N.from:N.to,te=$?"after":"before";return i.ch==q&&i.sticky==te?t:new mt(new oe(i.line,q,te),n)}function oa(e,t,i,n){var s,d;if(t.touches)s=t.touches[0].clientX,d=t.touches[0].clientY;else try{s=t.clientX,d=t.clientY}catch{return!1}if(s>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ur(t);var p=e.display,b=p.lineDiv.getBoundingClientRect();if(d>b.bottom||!sr(e,i))return Yr(t);d-=b.top-p.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=p.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=s){var _=Mn(e.doc,d),M=e.display.gutterSpecs[y];return Ue(e,i,e,_,M.className,t),Yr(t)}}}function vu(e,t){return oa(e,t,"gutterClick",!0)}function bu(e,t){ni(e.display,t)||Q0(e,t)||Gt(e,t,"contextmenu")||je||e.display.input.onContextMenu(t)}function Q0(e,t){return sr(e,"gutterContextMenu")?oa(e,t,"gutterContextMenu",!1):!1}function Ya(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Aa(e)}var yo={toString:function(){return"CodeMirror.Init"}},Xa={},aa={};function os(e){var t=e.optionHandlers;function i(n,s,d,p){e.defaults[n]=s,d&&(t[n]=p?function(b,y,C){C!=yo&&d(b,y,C)}:d)}e.defineOption=i,e.Init=yo,i("value","",function(n,s){return n.setValue(s)},!0),i("mode",null,function(n,s){n.doc.modeOption=s,Qs(n)},!0),i("indentUnit",2,Qs,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Fa(n),Aa(n),et(n)},!0),i("lineSeparator",null,function(n,s){if(n.doc.lineSep=s,!!s){var d=[],p=n.doc.first;n.doc.iter(function(y){for(var C=0;;){var _=y.text.indexOf(s,C);if(_==-1)break;C=_+s.length,d.push(oe(p,_))}p++});for(var b=d.length-1;b>=0;b--)Xo(n.doc,s,d[b],oe(d[b].line,d[b].ch+s.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,s,d){n.state.specialChars=new RegExp(s.source+(s.test(" ")?"":"| "),"g"),d!=yo&&n.refresh()}),i("specialCharPlaceholder",en,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",he?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,s){return n.getInputField().spellcheck=s},!0),i("autocorrect",!1,function(n,s){return n.getInputField().autocorrect=s},!0),i("autocapitalize",!1,function(n,s){return n.getInputField().autocapitalize=s},!0),i("rtlMoveVisually",!Te),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){Ya(n),Ba(n)},!0),i("keyMap","default",function(n,s,d){var p=Mr(s),b=d!=yo&&Mr(d);b&&b.detach&&b.detach(n,p),p.attach&&p.attach(n,b||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,J0,!0),i("gutters",[],function(n,s){n.display.gutterSpecs=Ys(s,n.options.lineNumbers),Ba(n)},!0),i("fixedGutter",!0,function(n,s){n.display.gutters.style.left=s?Bo(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return Ii(n)},!0),i("scrollbarStyle","native",function(n){ho(n),Ii(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,s){n.display.gutterSpecs=Ys(n.options.gutters,s),Ba(n)},!0),i("firstLineNumber",1,Ba,!0),i("lineNumberFormatter",function(n){return n},Ba,!0),i("showCursorWhenSelecting",!1,Ia,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,s){s=="nocursor"&&(uo(n),n.display.input.blur()),n.display.input.readOnlyChanged(s)}),i("screenReaderLabel",null,function(n,s){s=s===""?null:s,n.display.input.screenReaderLabelChanged(s)}),i("disableInput",!1,function(n,s){s||n.display.input.reset()},!0),i("dragDrop",!0,k1),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Ia,!0),i("singleCursorHeightPerLine",!0,Ia,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Fa,!0),i("addModeClass",!1,Fa,!0),i("pollInterval",100),i("undoDepth",200,function(n,s){return n.doc.history.undoDepth=s}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Fa,!0),i("moveInputWithCursor",!0,function(n,s){s||n.display.input.resetPosition()}),i("tabindex",null,function(n,s){return n.display.input.getField().tabIndex=s||""}),i("autofocus",null),i("direction","ltr",function(n,s){return n.doc.setDirection(s)},!0),i("phrases",null)}function k1(e,t,i){var n=i&&i!=yo;if(!t!=!n){var s=e.display.dragFunctions,d=t?Ne:gr;d(e.display.scroller,"dragstart",s.start),d(e.display.scroller,"dragenter",s.enter),d(e.display.scroller,"dragover",s.over),d(e.display.scroller,"dragleave",s.leave),d(e.display.scroller,"drop",s.drop)}}function J0(e){e.options.lineWrapping?(zt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),Ta(e)),ki(e),et(e),Aa(e),setTimeout(function(){return Ii(e)},100)}function St(e,t){var i=this;if(!(this instanceof St))return new St(e,t);this.options=t=t?Ut(t):{},Ut(Xa,t,!1);var n=t.value;typeof n=="string"?n=new Sr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var s=new St.inputStyles[t.inputStyle](this),d=this.display=new v1(e,n,s,t);d.wrapper.CodeMirror=this,Ya(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ho(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 ot,keySeq:null,specialChars:null},t.autofocus&&!he&&d.input.focus(),T&&k<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ec(this),su(),Pn(this),this.curOp.forceUpdate=!0,M0(this,n),t.autofocus&&!he||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Wo(i)},20):uo(this);for(var p in aa)aa.hasOwnProperty(p)&&aa[p](this,t[p],yo);Gn(this),t.finishInit&&t.finishInit(this);for(var b=0;b<Qa.length;++b)Qa[b](this);Zn(this),I&&t.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}St.defaults=Xa,St.optionHandlers=aa;function ec(e){var t=e.display;Ne(t.scroller,"mousedown",Ft(e,q0)),T&&k<11?Ne(t.scroller,"dblclick",Ft(e,function(y){if(!Gt(e,y)){var C=Wn(e,y);if(!(!C||vu(e,y)||ni(e.display,y))){ur(y);var _=e.findWordAt(C);Zl(e.doc,_.anchor,_.head)}}})):Ne(t.scroller,"dblclick",function(y){return Gt(e,y)||ur(y)}),Ne(t.scroller,"contextmenu",function(y){return bu(e,y)}),Ne(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||bu(e,y)});var i,n={end:0};function s(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function d(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function p(y,C){if(C.left==null)return!0;var _=C.left-y.left,M=C.top-y.top;return _*_+M*M>20*20}Ne(t.scroller,"touchstart",function(y){if(!Gt(e,y)&&!d(y)&&!vu(e,y)){t.input.ensurePolled(),clearTimeout(i);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-n.end<=300?n:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),Ne(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ne(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!ni(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var _=e.coordsChar(t.activeTouch,"page"),M;!C.prev||p(C,C.prev)?M=new mt(_,_):!C.prev.prev||p(C,C.prev.prev)?M=e.findWordAt(_):M=new mt(oe(_.line,0),Ce(e.doc,oe(_.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),ur(y)}s()}),Ne(t.scroller,"touchcancel",s),Ne(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Bt(e,t.scroller.scrollTop),fo(e,t.scroller.scrollLeft,!0),Ue(e,"scroll",e))}),Ne(t.scroller,"mousewheel",function(y){return _0(e,y)}),Ne(t.scroller,"DOMMouseScroll",function(y){return _0(e,y)}),Ne(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){Gt(e,y)||Qi(y)},over:function(y){Gt(e,y)||(au(e,y),Qi(y))},start:function(y){return x1(e,y)},drop:Ft(e,B0),leave:function(y){Gt(e,y)||lu(e)}};var b=t.input.getField();Ne(b,"keyup",function(y){return gu.call(e,y)}),Ne(b,"keydown",Ft(e,U0)),Ne(b,"keypress",Ft(e,V0)),Ne(b,"focus",function(y){return Wo(e,y)}),Ne(b,"blur",function(y){return uo(e,y)})}var Qa=[];St.defineInitHook=function(e){return Qa.push(e)};function Ja(e,t,i,n){var s=e.doc,d;i==null&&(i="add"),i=="smart"&&(s.mode.indent?d=$o(e,t).state:i="prev");var p=e.options.tabSize,b=ke(s,t),y=At(b.text,null,p);b.stateAfter&&(b.stateAfter=null);var C=b.text.match(/^\s*/)[0],_;if(!n&&!/\S/.test(b.text))_=0,i="not";else if(i=="smart"&&(_=s.mode.indent(d,b.text.slice(C.length),b.text),_==Fe||_>150)){if(!n)return;i="prev"}i=="prev"?t>s.first?_=At(ke(s,t-1).text,null,p):_=0:i=="add"?_=y+e.options.indentUnit:i=="subtract"?_=y-e.options.indentUnit:typeof i=="number"&&(_=y+i),_=Math.max(0,_);var M="",N=0;if(e.options.indentWithTabs)for(var $=Math.floor(_/p);$;--$)N+=p,M+=" ";if(N<_&&(M+=Yt(_-N)),M!=C)return Xo(s,M,oe(t,0),oe(t,C.length),"+input"),b.stateAfter=null,!0;for(var q=0;q<s.sel.ranges.length;q++){var te=s.sel.ranges[q];if(te.head.line==t&&te.head.ch<C.length){var ue=oe(t,C.length);nu(s,q,new mt(ue,ue));break}}}var pn=null;function gn(e){pn=e}function as(e,t,i,n,s){var d=e.doc;e.display.shift=!1,n||(n=d.sel);var p=+new Date-200,b=s=="paste"||e.state.pasteIncoming>p,y=eo(t),C=null;if(b&&n.ranges.length>1)if(pn&&pn.text.join(`
|
|
2369
|
+
`)==t){if(n.ranges.length%pn.text.length==0){C=[];for(var _=0;_<pn.text.length;_++)C.push(d.splitLines(pn.text[_]))}}else y.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(C=ht(y,function(fe){return[fe]}));for(var M=e.curOp.updateInput,N=n.ranges.length-1;N>=0;N--){var $=n.ranges[N],q=$.from(),te=$.to();$.empty()&&(i&&i>0?q=oe(q.line,q.ch-i):e.state.overwrite&&!b?te=oe(te.line,Math.min(ke(d,te.line).text.length,te.ch+Ke(y).length)):b&&pn&&pn.lineWise&&pn.text.join(`
|
|
2370
|
+
`)==y.join(`
|
|
2371
|
+
`)&&(q=te=oe(q.line,0)));var ue={from:q,to:te,text:C?C[N%C.length]:y,origin:s||(b?"paste":e.state.cutIncoming>p?"cut":"+input")};Ko(e.doc,ue),rr(e,"inputRead",e,ue)}t&&!b&&tc(e,t),Ei(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function mu(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&yr(t,function(){return as(t,i,0,null,"paste")}),!0}function tc(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var s=i.ranges[n];if(!(s.head.ch>100||n&&i.ranges[n-1].head.line==s.head.line)){var d=e.getModeAt(s.head),p=!1;if(d.electricChars){for(var b=0;b<d.electricChars.length;b++)if(t.indexOf(d.electricChars.charAt(b))>-1){p=Ja(e,s.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(ke(e.doc,s.head.line).text.slice(0,s.head.ch))&&(p=Ja(e,s.head.line,"smart"));p&&rr(e,"electricInput",e,s.head.line)}}}function yu(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var s=e.doc.sel.ranges[n].head.line,d={anchor:oe(s,0),head:oe(s+1,0)};i.push(d),t.push(e.getRange(d.anchor,d.head))}return{text:t,ranges:i}}function rc(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function nc(){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"),Se&&(e.style.border="1px solid black"),rc(e),t}function ui(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,s){var d=this.options,p=d[n];d[n]==s&&n!="mode"||(d[n]=s,t.hasOwnProperty(n)&&Ft(this,t[n])(this,s,p),Ue(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,s){this.state.keyMaps[s?"push":"unshift"](Mr(n))},removeKeyMap:function(n){for(var s=this.state.keyMaps,d=0;d<s.length;++d)if(s[d]==n||s[d].name==n)return s.splice(d,1),!0},addOverlay:Cr(function(n,s){var d=n.token?n:e.getMode(this.options,n);if(d.startState)throw new Error("Overlays may not be stateful.");wt(this.state.overlays,{mode:d,modeSpec:n,opaque:s&&s.opaque,priority:s&&s.priority||0},function(p){return p.priority}),this.state.modeGen++,et(this)}),removeOverlay:Cr(function(n){for(var s=this.state.overlays,d=0;d<s.length;++d){var p=s[d].modeSpec;if(p==n||typeof n=="string"&&p.name==n){s.splice(d,1),this.state.modeGen++,et(this);return}}}),indentLine:Cr(function(n,s,d){typeof s!="string"&&typeof s!="number"&&(s==null?s=this.options.smartIndent?"smart":"prev":s=s?"add":"subtract"),wi(this.doc,n)&&Ja(this,n,s,d)}),indentSelection:Cr(function(n){for(var s=this.doc.sel.ranges,d=-1,p=0;p<s.length;p++){var b=s[p];if(b.empty())b.head.line>d&&(Ja(this,b.head.line,n,!0),d=b.head.line,p==this.doc.sel.primIndex&&Ei(this));else{var y=b.from(),C=b.to(),_=Math.max(d,y.line);d=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=_;M<d;++M)Ja(this,M,n);var N=this.doc.sel.ranges;y.ch==0&&s.length==N.length&&N[p].from().ch>0&&nu(this.doc,p,new mt(y,N[p].to()),rt)}}}),getTokenAt:function(n,s){return wl(this,n,s)},getLineTokens:function(n,s){return wl(this,oe(n),s,!0)},getTokenTypeAt:function(n){n=Ce(this.doc,n);var s=Os(this,ke(this.doc,n.line)),d=0,p=(s.length-1)/2,b=n.ch,y;if(b==0)y=s[2];else for(;;){var C=d+p>>1;if((C?s[C*2-1]:0)>=b)p=C;else if(s[C*2+1]<b)d=C+1;else{y=s[C*2+2];break}}var _=y?y.indexOf("overlay "):-1;return _<0?y:_==0?null:y.slice(0,_-1)},getModeAt:function(n){var s=this.doc.mode;return s.innerMode?e.innerMode(s,this.getTokenAt(n).state).mode:s},getHelper:function(n,s){return this.getHelpers(n,s)[0]},getHelpers:function(n,s){var d=[];if(!i.hasOwnProperty(s))return d;var p=i[s],b=this.getModeAt(n);if(typeof b[s]=="string")p[b[s]]&&d.push(p[b[s]]);else if(b[s])for(var y=0;y<b[s].length;y++){var C=p[b[s][y]];C&&d.push(C)}else b.helperType&&p[b.helperType]?d.push(p[b.helperType]):p[b.name]&&d.push(p[b.name]);for(var _=0;_<p._global.length;_++){var M=p._global[_];M.pred(b,this)&&Le(d,M.val)==-1&&d.push(M.val)}return d},getStateAfter:function(n,s){var d=this.doc;return n=ft(d,n==null?d.first+d.size-1:n),$o(this,n+1,s).state},cursorCoords:function(n,s){var d,p=this.doc.sel.primary();return n==null?d=p.head:typeof n=="object"?d=Ce(this.doc,n):d=n?p.from():p.to(),Tn(this,d,s||"page")},charCoords:function(n,s){return Dl(this,Ce(this.doc,n),s||"page")},coordsChar:function(n,s){return n=g0(this,n,s||"page"),R(this,n.left,n.top)},lineAtHeight:function(n,s){return n=g0(this,{top:n,left:0},s||"page").top,Mn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,s,d){var p=!1,b;if(typeof n=="number"){var y=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>y&&(n=y,p=!0),b=ke(this.doc,n)}else b=n;return Il(this,b,{top:0,left:0},s||"page",d||p).top+(p?this.doc.height-Nr(b):0)},defaultTextHeight:function(){return Mi(this.display)},defaultCharWidth:function(){return Ho(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,s,d,p,b){var y=this.display;n=Tn(this,Ce(this.doc,n));var C=n.bottom,_=n.left;if(s.style.position="absolute",s.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(s),y.sizer.appendChild(s),p=="over")C=n.top;else if(p=="above"||p=="near"){var M=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(p=="above"||n.bottom+s.offsetHeight>M)&&n.top>s.offsetHeight?C=n.top-s.offsetHeight:n.bottom+s.offsetHeight<=M&&(C=n.bottom),_+s.offsetWidth>N&&(_=N-s.offsetWidth)}s.style.top=C+"px",s.style.left=s.style.right="",b=="right"?(_=y.sizer.clientWidth-s.offsetWidth,s.style.right="0px"):(b=="left"?_=0:b=="middle"&&(_=(y.sizer.clientWidth-s.offsetWidth)/2),s.style.left=_+"px"),d&&l1(this,{left:_,top:C,right:_+s.offsetWidth,bottom:C+s.offsetHeight})},triggerOnKeyDown:Cr(U0),triggerOnKeyPress:Cr(V0),triggerOnKeyUp:gu,triggerOnMouseDown:Cr(q0),execCommand:function(n){if(mo.hasOwnProperty(n))return mo[n].call(null,this)},triggerElectric:Cr(function(n){tc(this,n)}),findPosH:function(n,s,d,p){var b=1;s<0&&(b=-1,s=-s);for(var y=Ce(this.doc,n),C=0;C<s&&(y=el(this.doc,y,b,d,p),!y.hitSide);++C);return y},moveH:Cr(function(n,s){var d=this;this.extendSelectionsBy(function(p){return d.display.shift||d.doc.extend||p.empty()?el(d.doc,p.head,n,s,d.options.rtlMoveVisually):n<0?p.from():p.to()},Be)}),deleteH:Cr(function(n,s){var d=this.doc.sel,p=this.doc;d.somethingSelected()?p.replaceSelection("",null,"+delete"):on(this,function(b){var y=el(p,b.head,n,s,!1);return n<0?{from:y,to:b.head}:{from:b.head,to:y}})}),findPosV:function(n,s,d,p){var b=1,y=p;s<0&&(b=-1,s=-s);for(var C=Ce(this.doc,n),_=0;_<s;++_){var M=Tn(this,C,"div");if(y==null?y=M.left:M.left=y,C=ls(this,M,b,d),C.hitSide)break}return C},moveV:Cr(function(n,s){var d=this,p=this.doc,b=[],y=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(_){if(y)return n<0?_.from():_.to();var M=Tn(d,_.head,"div");_.goalColumn!=null&&(M.left=_.goalColumn),b.push(M.left);var N=ls(d,M,n,s);return s=="page"&&_==p.sel.primary()&&Zo(d,Dl(d,N,"div").top-M.top),N},Be),b.length)for(var C=0;C<p.sel.ranges.length;C++)p.sel.ranges[C].goalColumn=b[C]}),findWordAt:function(n){var s=this.doc,d=ke(s,n.line).text,p=n.ch,b=n.ch;if(d){var y=this.getHelper(n,"wordChars");(n.sticky=="before"||b==d.length)&&p?--p:++b;for(var C=d.charAt(p),_=F(C,y)?function(M){return F(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!F(M)};p>0&&_(d.charAt(p-1));)--p;for(;b<d.length&&_(d.charAt(b));)++b}return new mt(oe(n.line,p),oe(n.line,b))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?zt(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ue(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==tt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cr(function(n,s){$a(this,n,s)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-Gr(this)-this.display.barHeight,width:n.scrollWidth-Gr(this)-this.display.barWidth,clientHeight:Tl(this),clientWidth:Li(this)}},scrollIntoView:Cr(function(n,s){n==null?(n={from:this.doc.sel.primary().head,to:null},s==null&&(s=this.options.cursorScrollMargin)):typeof n=="number"?n={from:oe(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=s||0,n.from.line!=null?C0(this,n):w0(this,n.from,n.to,n.margin)}),setSize:Cr(function(n,s){var d=this,p=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};n!=null&&(this.display.wrapper.style.width=p(n)),s!=null&&(this.display.wrapper.style.height=p(s)),this.options.lineWrapping&&p0(this);var b=this.display.viewFrom;this.doc.iter(b,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){Oi(d,b,"widget");break}}++b}),this.curOp.forceUpdate=!0,Ue(this,"refresh",this)}),operation:function(n){return yr(this,n)},startOperation:function(){return Pn(this)},endOperation:function(){return Zn(this)},refresh:Cr(function(){var n=this.display.cachedTextHeight;et(this),this.curOp.forceUpdate=!0,Aa(this),$a(this,this.doc.scrollLeft,this.doc.scrollTop),Ks(this.display),(n==null||Math.abs(n-Mi(this.display))>.5||this.options.lineWrapping)&&ki(this),Ue(this,"refresh",this)}),swapDoc:Cr(function(n){var s=this.doc;return s.cm=null,this.state.selectingText&&this.state.selectingText(),M0(this,n),Aa(this),this.display.input.reset(),$a(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,rr(this,"swapDoc",this,s),s}),phrase:function(n){var s=this.options.phrases;return s&&Object.prototype.hasOwnProperty.call(s,n)?s[n]:n},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}},Ln(e),e.registerHelper=function(n,s,d){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][s]=d},e.registerGlobalHelper=function(n,s,d,p){e.registerHelper(n,s,p),i[n]._global.push({pred:d,val:p})}}function el(e,t,i,n,s){var d=t,p=i,b=ke(e,t.line),y=s&&e.direction=="rtl"?-i:i;function C(){var we=t.line+y;return we<e.first||we>=e.first+e.size?!1:(t=new oe(we,t.ch,t.sticky),b=ke(e,we))}function _(we){var de;if(n=="codepoint"){var xe=b.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(xe))de=null;else{var De=i>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;de=new oe(t.line,Math.max(0,Math.min(b.text.length,t.ch+i*(De?2:1))),-i)}}else s?de=W0(e.cm,b,t,i):de=es(b,t,i);if(de==null)if(!we&&C())t=ta(s,e.cm,b,t.line,y);else return!1;else t=de;return!0}if(n=="char"||n=="codepoint")_();else if(n=="column")_(!0);else if(n=="word"||n=="group")for(var M=null,N=n=="group",$=e.cm&&e.cm.getHelper(t,"wordChars"),q=!0;!(i<0&&!_(!q));q=!1){var te=b.text.charAt(t.ch)||`
|
|
2238
2372
|
`,ue=F(te,$)?"w":N&&te==`
|
|
2239
|
-
`?"n":!N||/\s/.test(te)?null:"p";if(N&&!q&&!ue&&(ue="s"),M&&M!=ue){i<0&&(i=1,_(),t.sticky="after");break}if(ue&&(M=ue),i>0&&!_(!q))break}var fe=fr(e,t,d,p,!0);return O(d,fe)&&(fe.hitSide=!0),fe}function
|
|
2240
|
-
`);if(b.clipboardData.setData("Text",C),b.clipboardData.getData("Text")==C){b.preventDefault();return}}var _=
|
|
2241
|
-
`);var N=tt();Et(M),setTimeout(function(){n.display.lineSpace.removeChild(_),N.focus(),N==s&&i.showPrimarySelection()},50)}}Ne(s,"copy",p),Ne(s,"cut",p)},yt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var e=
|
|
2242
|
-
`),Et(s))}else return;p.type=="cut"&&(n.state.cutIncoming=+new Date)}}Ne(s,"cut",d),Ne(s,"copy",d),Ne(e.scroller,"paste",function(p){if(!(
|
|
2243
|
-
`)>-1?i.value=e.prevInput="":e.prevInput=s,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zt.prototype.onKeyPress=function(){T&&k>=9&&(this.hasSelection=null),this.fastPoll()},Zt.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,s=t.textarea;t.contextMenuPending&&t.contextMenuPending();var d=Wn(i,e),p=n.scroller.scrollTop;if(!d||Z)return;var b=i.options.resetSelectionOnContextMenu;b&&i.doc.sel.contains(d)==-1&&Ft(i,cr)(i.doc
|
|
2373
|
+
`?"n":!N||/\s/.test(te)?null:"p";if(N&&!q&&!ue&&(ue="s"),M&&M!=ue){i<0&&(i=1,_(),t.sticky="after");break}if(ue&&(M=ue),i>0&&!_(!q))break}var fe=fr(e,t,d,p,!0);return O(d,fe)&&(fe.hitSide=!0),fe}function ls(e,t,i,n){var s=e.doc,d=t.left,p;if(n=="page"){var b=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(b-.5*Mi(e.display),3);p=(i>0?t.bottom:t.top)+i*y}else n=="line"&&(p=i>0?t.bottom+3:t.top-3);for(var C;C=R(e,d,p),!!C.outside;){if(i<0?p<=0:p>=s.height){C.hitSide=!0;break}p+=i*5}return C}var yt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ot,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(e){var t=this,i=this,n=i.cm,s=i.div=e.lineDiv;s.contentEditable=!0,rc(s,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function d(b){for(var y=b.target;y;y=y.parentNode){if(y==s)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}Ne(s,"paste",function(b){!d(b)||Gt(n,b)||mu(b,n)||k<=11&&setTimeout(Ft(n,function(){return t.updateFromDOM()}),20)}),Ne(s,"compositionstart",function(b){t.composing={data:b.data,done:!1}}),Ne(s,"compositionupdate",function(b){t.composing||(t.composing={data:b.data,done:!1})}),Ne(s,"compositionend",function(b){t.composing&&(b.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ne(s,"touchstart",function(){return i.forceCompositionEnd()}),Ne(s,"input",function(){t.composing||t.readFromDOMSoon()});function p(b){if(!(!d(b)||Gt(n,b))){if(n.somethingSelected())gn({lineWise:!1,text:n.getSelections()}),b.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var y=yu(n);gn({lineWise:!0,text:y.text}),b.type=="cut"&&n.operation(function(){n.setSelections(y.ranges,0,rt),n.replaceSelection("",null,"cut")})}else return;if(b.clipboardData){b.clipboardData.clearData();var C=pn.text.join(`
|
|
2374
|
+
`);if(b.clipboardData.setData("Text",C),b.clipboardData.getData("Text")==C){b.preventDefault();return}}var _=nc(),M=_.firstChild;n.display.lineSpace.insertBefore(_,n.display.lineSpace.firstChild),M.value=pn.text.join(`
|
|
2375
|
+
`);var N=tt();Et(M),setTimeout(function(){n.display.lineSpace.removeChild(_),N.focus(),N==s&&i.showPrimarySelection()},50)}}Ne(s,"copy",p),Ne(s,"cut",p)},yt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var e=Da(this.cm,!1);return e.focus=tt()==this.div,e},yt.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),s=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||s.line<t.display.viewFrom){e.removeAllRanges();return}var d=sa(t,e.anchorNode,e.anchorOffset),p=sa(t,e.focusNode,e.focusOffset);if(!(d&&!d.bad&&p&&!p.bad&&w(Ze(d,p),n)==0&&w(le(d,p),s)==0)){var b=t.display.view,y=n.line>=t.display.viewFrom&&tl(t,n)||{node:b[0].measure.map[2],offset:0},C=s.line<t.display.viewTo&&tl(t,s);if(!C){var _=b[b.length-1].measure,M=_.maps?_.maps[_.maps.length-1]:_.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),$;try{$=ee(y.node,y.offset,C.offset,C.node)}catch{}$&&(!c&&t.state.focused?(e.collapse(y.node,y.offset),$.collapsed||(e.removeAllRanges(),e.addRange($))):(e.removeAllRanges(),e.addRange($)),N&&e.anchorNode==null?e.addRange(N):c&&this.startGracePeriod()),this.rememberSelection()}},yt.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)},yt.prototype.showMultipleSelections=function(e){V(this.cm.display.cursorDiv,e.cursors),V(this.cm.display.selectionDiv,e.selection)},yt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},yt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return be(this.div,t)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||tt()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():yr(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)},yt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Oe&&U&&this.cm.display.gutterSpecs.length&&la(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var i=sa(t,e.anchorNode,e.anchorOffset),n=sa(t,e.focusNode,e.focusOffset);i&&n&&yr(t,function(){cr(t.doc,$i(i,n),rt),(i.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,i=e.doc.sel.primary(),n=i.from(),s=i.to();if(n.ch==0&&n.line>e.firstLine()&&(n=oe(n.line-1,ke(e.doc,n.line-1).length)),s.ch==ke(e.doc,s.line).text.length&&s.line<e.lastLine()&&(s=oe(s.line+1,0)),n.line<t.viewFrom||s.line>t.viewTo-1)return!1;var d,p,b;n.line==t.viewFrom||(d=Un(e,n.line))==0?(p=bt(t.view[0].line),b=t.view[0].node):(p=bt(t.view[d].line),b=t.view[d-1].node.nextSibling);var y=Un(e,s.line),C,_;if(y==t.view.length-1?(C=t.viewTo-1,_=t.lineDiv.lastChild):(C=bt(t.view[y+1].line)-1,_=t.view[y+1].node.previousSibling),!b)return!1;for(var M=e.doc.splitLines(ss(e,b,_,p,C)),N=Jr(e.doc,oe(p,0),oe(C,ke(e.doc,C).text.length));M.length>1&&N.length>1;)if(Ke(M)==Ke(N))M.pop(),N.pop(),C--;else if(M[0]==N[0])M.shift(),N.shift(),p++;else break;for(var $=0,q=0,te=M[0],ue=N[0],fe=Math.min(te.length,ue.length);$<fe&&te.charCodeAt($)==ue.charCodeAt($);)++$;for(var we=Ke(M),de=Ke(N),xe=Math.min(we.length-(M.length==1?$:0),de.length-(N.length==1?$:0));q<xe&&we.charCodeAt(we.length-q-1)==de.charCodeAt(de.length-q-1);)++q;if(M.length==1&&N.length==1&&p==n.line)for(;$&&$>n.ch&&we.charCodeAt(we.length-q-1)==de.charCodeAt(de.length-q-1);)$--,q++;M[M.length-1]=we.slice(0,we.length-q).replace(/^\u200b+/,""),M[0]=M[0].slice($).replace(/\u200b+$/,"");var De=oe(p,$),Pe=oe(C,N.length?Ke(N).length-q:0);if(M.length>1||M[0]||w(De,Pe))return Xo(e.doc,M,De,Pe,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.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))},yt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&yr(this.cm,function(){return et(e.cm)})},yt.prototype.setUneditable=function(e){e.contentEditable="false"},yt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ft(this.cm,as)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},yt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function tl(e,t){var i=Zs(e,t.line);if(!i||i.hidden)return null;var n=ke(e.doc,t.line),s=u0(i,n,t.line),d=_r(n,e.doc.direction),p="left";if(d){var b=Nt(d,t.ch);p=b%2?"right":"left"}var y=Pl(s.map,t.ch,p);return y.offset=y.collapse=="right"?y.end:y.start,y}function la(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Re(e,t){return t&&(e.bad=!0),e}function ss(e,t,i,n,s){var d="",p=!1,b=e.doc.lineSeparator(),y=!1;function C($){return function(q){return q.id==$}}function _(){p&&(d+=b,y&&(d+=b),p=y=!1)}function M($){$&&(_(),d+=$)}function N($){if($.nodeType==1){var q=$.getAttribute("cm-text");if(q){M(q);return}var te=$.getAttribute("cm-marker"),ue;if(te){var fe=e.findMarks(oe(n,0),oe(s+1,0),C(+te));fe.length&&(ue=fe[0].find(0))&&M(Jr(e.doc,ue.from,ue.to).join(b));return}if($.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test($.nodeName);if(!/^br$/i.test($.nodeName)&&$.textContent.length==0)return;we&&_();for(var de=0;de<$.childNodes.length;de++)N($.childNodes[de]);/^(pre|p)$/i.test($.nodeName)&&(y=!0),we&&(p=!0)}else $.nodeType==3&&M($.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=i;)t=t.nextSibling,y=!1;return d}function sa(e,t,i){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[i],!n)return Re(e.clipPos(oe(e.display.viewTo-1)),!0);t=null,i=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var s=0;s<e.display.view.length;s++){var d=e.display.view[s];if(d.node==n)return Co(d,t,i)}}function Co(e,t,i){var n=e.text.firstChild,s=!1;if(!t||!be(n,t))return Re(oe(bt(e.line),0),!0);if(t==n&&(s=!0,t=n.childNodes[i],i=0,!t)){var d=e.rest?Ke(e.rest):e.line;return Re(oe(bt(d),d.text.length),s)}var p=t.nodeType==3?t:null,b=t;for(!p&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(p=t.firstChild,i&&(i=p.nodeValue.length));b.parentNode!=n;)b=b.parentNode;var y=e.measure,C=y.maps;function _(ue,fe,we){for(var de=-1;de<(C?C.length:0);de++)for(var xe=de<0?y.map:C[de],De=0;De<xe.length;De+=3){var Pe=xe[De+2];if(Pe==ue||Pe==fe){var it=bt(de<0?e.line:e.rest[de]),xt=xe[De]+we;return(we<0||Pe!=ue)&&(xt=xe[De+(we?1:0)]),oe(it,xt)}}}var M=_(p,b,i);if(M)return Re(M,s);for(var N=b.nextSibling,$=p?p.nodeValue.length-i:0;N;N=N.nextSibling){if(M=_(N,N.firstChild,0),M)return Re(oe(M.line,M.ch-$),s);$+=N.textContent.length}for(var q=b.previousSibling,te=i;q;q=q.previousSibling){if(M=_(q,q.firstChild,-1),M)return Re(oe(M.line,M.ch+te),s);te+=q.textContent.length}}var Zt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ot,this.hasSelection=!1,this.composing=null};Zt.prototype.init=function(e){var t=this,i=this,n=this.cm;this.createField(e);var s=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Se&&(s.style.width="0px"),Ne(s,"input",function(){T&&k>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ne(s,"paste",function(p){Gt(n,p)||mu(p,n)||(n.state.pasteIncoming=+new Date,i.fastPoll())});function d(p){if(!Gt(n,p)){if(n.somethingSelected())gn({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var b=yu(n);gn({lineWise:!0,text:b.text}),p.type=="cut"?n.setSelections(b.ranges,null,rt):(i.prevInput="",s.value=b.text.join(`
|
|
2376
|
+
`),Et(s))}else return;p.type=="cut"&&(n.state.cutIncoming=+new Date)}}Ne(s,"cut",d),Ne(s,"copy",d),Ne(e.scroller,"paste",function(p){if(!(ni(e,p)||Gt(n,p))){if(!s.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var b=new Event("paste");b.clipboardData=p.clipboardData,s.dispatchEvent(b)}}),Ne(e.lineSpace,"selectstart",function(p){ni(e,p)||ur(p)}),Ne(s,"compositionstart",function(){var p=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:p,range:n.markText(p,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(s,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Zt.prototype.createField=function(e){this.wrapper=nc(),this.textarea=this.wrapper.firstChild},Zt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Zt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,n=Da(e);if(e.options.moveInputWithCursor){var s=Tn(e,i.sel.primary().head,"div"),d=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,s.top+p.top-d.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,s.left+p.left-d.left))}return n},Zt.prototype.showSelection=function(e){var t=this.cm,i=t.display;V(i.cursorDiv,e.cursors),V(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Zt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&Et(this.textarea),T&&k>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",T&&k>=9&&(this.hasSelection=null))}},Zt.prototype.getField=function(){return this.textarea},Zt.prototype.supportsTouch=function(){return!1},Zt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!he||tt()!=this.textarea))try{this.textarea.focus()}catch{}},Zt.prototype.blur=function(){this.textarea.blur()},Zt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zt.prototype.receivedFocus=function(){this.slowPoll()},Zt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Zt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Zt.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||vl(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var s=i.value;if(s==n&&!t.somethingSelected())return!1;if(T&&k>=9&&this.hasSelection===s||ce&&/[\uf700-\uf7ff]/.test(s))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var d=s.charCodeAt(0);if(d==8203&&!n&&(n="\u200B"),d==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,b=Math.min(n.length,s.length);p<b&&n.charCodeAt(p)==s.charCodeAt(p);)++p;return yr(t,function(){as(t,s.slice(p),n.length-p,null,e.composing?"*compose":null),s.length>1e3||s.indexOf(`
|
|
2377
|
+
`)>-1?i.value=e.prevInput="":e.prevInput=s,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zt.prototype.onKeyPress=function(){T&&k>=9&&(this.hasSelection=null),this.fastPoll()},Zt.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,s=t.textarea;t.contextMenuPending&&t.contextMenuPending();var d=Wn(i,e),p=n.scroller.scrollTop;if(!d||Z)return;var b=i.options.resetSelectionOnContextMenu;b&&i.doc.sel.contains(d)==-1&&Ft(i,cr)(i.doc,$i(d),rt);var y=s.style.cssText,C=t.wrapper.style.cssText,_=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",s.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
2244
2378
|
top: `+(e.clientY-_.top-5)+"px; left: "+(e.clientX-_.left-5)+`px;
|
|
2245
2379
|
z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
2246
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;I&&(M=window.scrollY),n.input.focus(),I&&window.scrollTo(null,M),n.input.reset(),i.somethingSelected()||(s.value=t.prevInput=" "),t.contextMenuPending=$,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function N(){if(s.selectionStart!=null){var te=i.somethingSelected(),ue="\u200B"+(te?s.value:"");s.value="\u21DA",s.value=ue,t.prevInput=te?"":"\u200B",s.selectionStart=1,s.selectionEnd=ue.length,n.selForContextMenu=i.doc.sel}}function $(){if(t.contextMenuPending==$&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,s.style.cssText=
|
|
2247
|
-
`,
|
|
2380
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;I&&(M=window.scrollY),n.input.focus(),I&&window.scrollTo(null,M),n.input.reset(),i.somethingSelected()||(s.value=t.prevInput=" "),t.contextMenuPending=$,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function N(){if(s.selectionStart!=null){var te=i.somethingSelected(),ue="\u200B"+(te?s.value:"");s.value="\u21DA",s.value=ue,t.prevInput=te?"":"\u200B",s.selectionStart=1,s.selectionEnd=ue.length,n.selForContextMenu=i.doc.sel}}function $(){if(t.contextMenuPending==$&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,s.style.cssText=y,T&&k<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=p),s.selectionStart!=null)){(!T||T&&k<9)&&N();var te=0,ue=function(){n.selForContextMenu==i.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&t.prevInput=="\u200B"?Ft(i,P0)(i):te++<10?n.detectingSelectAll=setTimeout(ue,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ue,200)}}if(T&&k>=9&&N(),je){Qi(e);var q=function(){gr(window,"mouseup",q),setTimeout($,20)};Ne(window,"mouseup",q)}else setTimeout($,50)},Zt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Zt.prototype.setUneditable=function(){},Zt.prototype.needsContentAttribute=!1;function Cu(e,t){if(t=t?Ut(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 i=tt();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=b.getValue()}var s;if(e.form&&(Ne(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var d=e.form;s=d.submit;try{var p=d.submit=function(){n(),d.submit=s,d.submit(),d.submit=p}}catch{}}t.finishInit=function(y){y.save=n,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,n(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(gr(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=s))}},e.style.display="none";var b=St(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return b}function ic(e){e.off=gr,e.on=Ne,e.wheelEventPixels=b1,e.Doc=Sr,e.splitLines=eo,e.countColumn=At,e.findColumn=Rt,e.isWordChar=Je,e.Pass=Fe,e.signal=Ue,e.Line=br,e.changeEnd=Ni,e.scrollbarModel=Rl,e.Pos=oe,e.cmpPos=w,e.modes=un,e.mimeModes=Xr,e.resolveMode=to,e.getMode=Io,e.modeExtensions=_n,e.extendMode=Sn,e.copyState=Qr,e.startState=La,e.innerMode=za,e.commands=mo,e.keyMap=li,e.keyName=cu,e.isModifierKey=Jl,e.lookupKey=si,e.normalizeKeyMap=L1,e.StringStream=It,e.SharedTextMarker=ea,e.TextMarker=Bi,e.LineWidget=Ga,e.e_preventDefault=ur,e.e_stopPropagation=Ao,e.e_stop=Qi,e.addClass=zt,e.contains=be,e.rmClass=ye,e.keyNames=Wi}os(St),ui(St);var kr="iter insert remove copy getEditor constructor".split(" ");for(var us in Sr.prototype)Sr.prototype.hasOwnProperty(us)&&Le(kr,us)<0&&(St.prototype[us]=function(e){return function(){return e.apply(this.doc,arguments)}}(Sr.prototype[us]));return Ln(Sr),St.inputStyles={textarea:Zt,contenteditable:yt},St.defineMode=function(e){!St.defaults.mode&&e!="null"&&(St.defaults.mode=e),ml.apply(this,arguments)},St.defineMIME=ti,St.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),St.defineMIME("text/plain","null"),St.defineExtension=function(e,t){St.prototype[e]=t},St.defineDocExtension=function(e,t){Sr.prototype[e]=t},St.fromTextArea=Cu,ic(St),St.version="5.62.3",St})}(X1)),X1.exports}var ku=Oo();const Vv=`.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}
|
|
2381
|
+
`,Gv=me`
|
|
2248
2382
|
.cm-s-skedulo .cm-header {
|
|
2249
2383
|
color: blue;
|
|
2250
2384
|
}
|
|
@@ -2324,12 +2458,12 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var s=e.
|
|
|
2324
2458
|
.cm-invalidchar {
|
|
2325
2459
|
color: #f00;
|
|
2326
2460
|
}
|
|
2327
|
-
`;(function(u,a){(function(l){l(Oo())})(function(l){l.overlayMode=function(h,f,v){return{startState:function(){return{base:l.startState(h),overlay:l.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(y){return{base:l.copyState(h,y.base),overlay:l.copyState(f,y.overlay),basePos:y.basePos,baseCur:null,overlayPos:y.overlayPos,overlayCur:null}},token:function(y,A){return(y!=A.streamSeen||Math.min(A.basePos,A.overlayPos)<y.start)&&(A.streamSeen=y,A.basePos=A.overlayPos=y.start),y.start==A.basePos&&(A.baseCur=h.token(y,A.base),A.basePos=y.pos),y.start==A.overlayPos&&(y.pos=y.start,A.overlayCur=f.token(y,A.overlay),A.overlayPos=y.pos),y.pos=Math.min(A.basePos,A.overlayPos),A.overlayCur==null?A.baseCur:A.baseCur!=null&&A.overlay.combineTokens||v&&A.overlay.combineTokens==null?A.baseCur+" "+A.overlayCur:A.overlayCur},indent:h.indent&&function(y,A,T){return h.indent(y.base,A,T)},electricChars:h.electricChars,innerMode:function(y){return{state:y.base,mode:h}},blankLine:function(y){var A,T;return h.blankLine&&(A=h.blankLine(y.base)),f.blankLine&&(T=f.blankLine(y.overlay)),T==null?A:v&&A!=null?A+" "+T:T}}}})})();(function(u,a){(function(l){l(Oo())})(function(l){l.defineMode("jinja2",function(){var h=["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=/^[+\-*&%=<>!?|~^]/,v=/^[:\[\(\{]/,y=["true","false"],A=/^(\d[+\-\*\/])?\d+(\.\d+)?/;h=new RegExp("(("+h.join(")|(")+"))\\b"),y=new RegExp("(("+y.join(")|(")+"))\\b");function T(k,I){var H=k.peek();if(I.incomment)return k.skipTo("#}")?(k.eatWhile(/\#|}/),I.incomment=!1):k.skipToEnd(),"comment";if(I.intag){if(I.operator){if(I.operator=!1,k.match(y))return"atom";if(k.match(A))return"number"}if(I.sign){if(I.sign=!1,k.match(y))return"atom";if(k.match(A))return"number"}if(I.instring)return H==I.instring&&(I.instring=!1),k.next(),"string";if(H=="'"||H=='"')return I.instring=H,k.next(),"string";if(k.match(I.intag+"}")||k.eat("-")&&k.match(I.intag+"}"))return I.intag=!1,"tag";if(k.match(f))return I.operator=!0,"operator";if(k.match(v))I.sign=!0;else if(k.eat(" ")||k.sol()){if(k.match(h))return"keyword";if(k.match(y))return"atom";if(k.match(A))return"number";k.sol()&&k.next()}else k.next();return"variable"}else if(k.eat("{")){if(k.eat("#"))return I.incomment=!0,k.skipTo("#}")?(k.eatWhile(/\#|}/),I.incomment=!1):k.skipToEnd(),"comment";if(H=k.eat(/\{|%/))return I.intag=H,H=="{"&&(I.intag="}"),k.eat("-"),"tag"}k.next()}return{startState:function(){return{tokenize:T}},token:function(k,I){return I.tokenize(k,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),l.defineMIME("text/jinja2","jinja2")})})();var Dd={exports:{}},$d;function Xh(){return $d||($d=1,function(u,a){(function(l){l(Oo())})(function(l){var h={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};l.defineMode("xml",function(v,y){var A=v.indentUnit,T={},k=y.htmlMode?h:f;for(var I in k)T[I]=k[I];for(var I in y)T[I]=y[I];var H,W;function Z(E,S){function ee(zt){return S.tokenize=zt,zt(E,S)}var be=E.next();if(be=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ee(pe("atom","]]>")):null:E.match("--")?ee(pe("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ee(Se(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),S.tokenize=pe("meta","?>"),"meta"):(H=E.eat("/")?"closeTag":"openTag",S.tokenize=re,"tag bracket");if(be=="&"){var tt;return E.eat("#")?E.eat("x")?tt=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):tt=E.eatWhile(/[\d]/)&&E.eat(";"):tt=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),tt?"atom":"error"}else return E.eatWhile(/[^&<]/),null}Z.isInText=!0;function re(E,S){var ee=E.next();if(ee==">"||ee=="/"&&E.eat(">"))return S.tokenize=Z,H=ee==">"?"endTag":"selfcloseTag","tag bracket";if(ee=="=")return H="equals",null;if(ee=="<"){S.tokenize=Z,S.state=Me,S.tagName=S.tagStart=null;var be=S.tokenize(E,S);return be?be+" tag error":"tag error"}else return/[\'\"]/.test(ee)?(S.tokenize=ge(ee),S.stringStartCol=E.column(),S.tokenize(E,S)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ge(E){var S=function(ee,be){for(;!ee.eol();)if(ee.next()==E){be.tokenize=re;break}return"string"};return S.isInAttribute=!0,S}function pe(E,S){return function(ee,be){for(;!ee.eol();){if(ee.match(S)){be.tokenize=Z;break}ee.next()}return E}}function Se(E){return function(S,ee){for(var be;(be=S.next())!=null;){if(be=="<")return ee.tokenize=Se(E+1),ee.tokenize(S,ee);if(be==">")if(E==1){ee.tokenize=Z;break}else return ee.tokenize=Se(E-1),ee.tokenize(S,ee)}return"meta"}}function Oe(E,S,ee){this.prev=E.context,this.tagName=S||"",this.indent=E.indented,this.startOfLine=ee,(T.doNotIndent.hasOwnProperty(S)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function he(E){E.context&&(E.context=E.context.prev)}function ce(E,S){for(var ee;;){if(!E.context||(ee=E.context.tagName,!T.contextGrabbers.hasOwnProperty(ee)||!T.contextGrabbers[ee].hasOwnProperty(S)))return;he(E)}}function Me(E,S,ee){return E=="openTag"?(ee.tagStart=S.column(),Te):E=="closeTag"?Ae:Me}function Te(E,S,ee){return E=="word"?(ee.tagName=S.current(),W="tag",ve):T.allowMissingTagName&&E=="endTag"?(W="tag bracket",ve(E,S,ee)):(W="error",Te)}function Ae(E,S,ee){if(E=="word"){var be=S.current();return ee.context&&ee.context.tagName!=be&&T.implicitlyClosed.hasOwnProperty(ee.context.tagName)&&he(ee),ee.context&&ee.context.tagName==be||T.matchClosing===!1?(W="tag",qe):(W="tag error",je)}else return T.allowMissingTagName&&E=="endTag"?(W="tag bracket",qe(E,S,ee)):(W="error",je)}function qe(E,S,ee){return E!="endTag"?(W="error",qe):(he(ee),Me)}function je(E,S,ee){return W="error",qe(E,S,ee)}function ve(E,S,ee){if(E=="word")return W="attribute",ye;if(E=="endTag"||E=="selfcloseTag"){var be=ee.tagName,tt=ee.tagStart;return ee.tagName=ee.tagStart=null,E=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(be)?ce(ee,be):(ce(ee,be),ee.context=new Oe(ee,be,tt==ee.indented)),Me}return W="error",ve}function ye(E,S,ee){return E=="equals"?Xe:(T.allowMissing||(W="error"),ve(E,S,ee))}function Xe(E,S,ee){return E=="string"?V:E=="word"&&T.allowUnquoted?(W="string",ve):(W="error",ve(E,S,ee))}function V(E,S,ee){return E=="string"?V:ve(E,S,ee)}return{startState:function(E){var S={tokenize:Z,state:Me,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(S.baseIndent=E),S},token:function(E,S){if(!S.tagName&&E.sol()&&(S.indented=E.indentation()),E.eatSpace())return null;H=null;var ee=S.tokenize(E,S);return(ee||H)&&ee!="comment"&&(W=null,S.state=S.state(H||ee,E,S),W&&(ee=W=="error"?ee+" error":W)),ee},indent:function(E,S,ee){var be=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+A;if(be&&be.noIndent)return l.Pass;if(E.tokenize!=re&&E.tokenize!=Z)return ee?ee.match(/^(\s*)/)[0].length:0;if(E.tagName)return T.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+A*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/<!\[CDATA\[/.test(S))return 0;var tt=S&&/^<(\/)?([\w_:\.-]*)/.exec(S);if(tt&&tt[1])for(;be;)if(be.tagName==tt[2]){be=be.prev;break}else if(T.implicitlyClosed.hasOwnProperty(be.tagName))be=be.prev;else break;else if(tt)for(;be;){var zt=T.contextGrabbers[be.tagName];if(zt&&zt.hasOwnProperty(tt[2]))be=be.prev;else break}for(;be&&be.prev&&!be.startOfLine;)be=be.prev;return be?be.indent+A:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(E){E.state==Xe&&(E.state=ve)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var S=[],ee=E.context;ee;ee=ee.prev)S.push(ee.tagName);return S.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Dd.exports}Xh();var kg={exports:{}};(function(u,a){(function(l){l(Oo())})(function(l){l.defineMode("javascript",function(h,f){var v=h.indentUnit,y=f.statementIndent,A=f.jsonld,T=f.json||A,k=f.trackScope!==!1,I=f.typescript,H=f.wordCharacters||/[\w$\xa1-\uffff]/,W=function(){function w(vr){return{type:vr,style:"keyword"}}var O=w("keyword a"),Y=w("keyword b"),le=w("keyword c"),Ze=w("keyword d"),ft=w("operator"),Ce={type:"atom",style:"atom"};return{if:w("if"),while:O,with:O,else:Y,do:Y,try:Y,finally:Y,return:Ze,break:Ze,continue:Ze,new:w("new"),delete:le,void:le,throw:le,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:ft,typeof:ft,instanceof:ft,true:Ce,false:Ce,null:Ce,undefined:Ce,NaN:Ce,Infinity:Ce,this:w("this"),class:w("class"),super:w("atom"),yield:le,export:w("export"),import:w("import"),extends:le,await:le}}(),Z=/[+\-*&%=<>!?|~^@]/,re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function ge(w){for(var O=!1,Y,le=!1;(Y=w.next())!=null;){if(!O){if(Y=="/"&&!le)return;Y=="["?le=!0:le&&Y=="]"&&(le=!1)}O=!O&&Y=="\\"}}var pe,Se;function Oe(w,O,Y){return pe=w,Se=Y,O}function he(w,O){var Y=w.next();if(Y=='"'||Y=="'")return O.tokenize=ce(Y),O.tokenize(w,O);if(Y=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Oe("number","number");if(Y=="."&&w.match(".."))return Oe("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Y))return Oe(Y);if(Y=="="&&w.eat(">"))return Oe("=>","operator");if(Y=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Oe("number","number");if(/\d/.test(Y))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Oe("number","number");if(Y=="/")return w.eat("*")?(O.tokenize=Me,Me(w,O)):w.eat("/")?(w.skipToEnd(),Oe("comment","comment")):oe(w,O,1)?(ge(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Oe("regexp","string-2")):(w.eat("="),Oe("operator","operator",w.current()));if(Y=="`")return O.tokenize=Te,Te(w,O);if(Y=="#"&&w.peek()=="!")return w.skipToEnd(),Oe("meta","meta");if(Y=="#"&&w.eatWhile(H))return Oe("variable","property");if(Y=="<"&&w.match("!--")||Y=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Oe("comment","comment");if(Z.test(Y))return(Y!=">"||!O.lexical||O.lexical.type!=">")&&(w.eat("=")?(Y=="!"||Y=="=")&&w.eat("="):/[<>*+\-|&?]/.test(Y)&&(w.eat(Y),Y==">"&&w.eat(Y))),Y=="?"&&w.eat(".")?Oe("."):Oe("operator","operator",w.current());if(H.test(Y)){w.eatWhile(H);var le=w.current();if(O.lastType!="."){if(W.propertyIsEnumerable(le)){var Ze=W[le];return Oe(Ze.type,Ze.style,le)}if(le=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Oe("async","keyword",le)}return Oe("variable","variable",le)}}function ce(w){return function(O,Y){var le=!1,Ze;if(A&&O.peek()=="@"&&O.match(re))return Y.tokenize=he,Oe("jsonld-keyword","meta");for(;(Ze=O.next())!=null&&!(Ze==w&&!le);)le=!le&&Ze=="\\";return le||(Y.tokenize=he),Oe("string","string")}}function Me(w,O){for(var Y=!1,le;le=w.next();){if(le=="/"&&Y){O.tokenize=he;break}Y=le=="*"}return Oe("comment","comment")}function Te(w,O){for(var Y=!1,le;(le=w.next())!=null;){if(!Y&&(le=="`"||le=="$"&&w.eat("{"))){O.tokenize=he;break}Y=!Y&&le=="\\"}return Oe("quasi","string-2",w.current())}var Ae="([{}])";function qe(w,O){O.fatArrowAt&&(O.fatArrowAt=null);var Y=w.string.indexOf("=>",w.start);if(!(Y<0)){if(I){var le=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,Y));le&&(Y=le.index)}for(var Ze=0,ft=!1,Ce=Y-1;Ce>=0;--Ce){var vr=w.string.charAt(Ce),Vr=Ae.indexOf(vr);if(Vr>=0&&Vr<3){if(!Ze){++Ce;break}if(--Ze==0){vr=="("&&(ft=!0);break}}else if(Vr>=3&&Vr<6)++Ze;else if(H.test(vr))ft=!0;else if(/["'\/`]/.test(vr))for(;;--Ce){if(Ce==0)return;var ni=w.string.charAt(Ce-1);if(ni==vr&&w.string.charAt(Ce-2)!="\\"){Ce--;break}}else if(ft&&!Ze){++Ce;break}}ft&&!Ze&&(O.fatArrowAt=Ce)}}var je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ve(w,O,Y,le,Ze,ft){this.indented=w,this.column=O,this.type=Y,this.prev=Ze,this.info=ft,le!=null&&(this.align=le)}function ye(w,O){if(!k)return!1;for(var Y=w.localVars;Y;Y=Y.next)if(Y.name==O)return!0;for(var le=w.context;le;le=le.prev)for(var Y=le.vars;Y;Y=Y.next)if(Y.name==O)return!0}function Xe(w,O,Y,le,Ze){var ft=w.cc;for(V.state=w,V.stream=Ze,V.marked=null,V.cc=ft,V.style=O,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var Ce=ft.length?ft.pop():T?Be:rt;if(Ce(Y,le)){for(;ft.length&&ft[ft.length-1].lex;)ft.pop()();return V.marked?V.marked:Y=="variable"&&ye(w,le)?"variable-2":O}}}var V={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)V.cc.push(arguments[w])}function S(){return E.apply(null,arguments),!0}function ee(w,O){for(var Y=O;Y;Y=Y.next)if(Y.name==w)return!0;return!1}function be(w){var O=V.state;if(V.marked="def",!!k){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var Y=tt(w,O.context);if(Y!=null){O.context=Y;return}}else if(!ee(w,O.localVars)){O.localVars=new Et(w,O.localVars);return}}f.globalVars&&!ee(w,O.globalVars)&&(O.globalVars=new Et(w,O.globalVars))}}function tt(w,O){if(O)if(O.block){var Y=tt(w,O.prev);return Y?Y==O.prev?O:new jt(Y,O.vars,!0):null}else return ee(w,O.vars)?O:new jt(O.prev,new Et(w,O.vars),!1);else return null}function zt(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function jt(w,O,Y){this.prev=w,this.vars=O,this.block=Y}function Et(w,O){this.name=w,this.next=O}var Yr=new Et("this",new Et("arguments",null));function Ut(){V.state.context=new jt(V.state.context,V.state.localVars,!1),V.state.localVars=Yr}function At(){V.state.context=new jt(V.state.context,V.state.localVars,!0),V.state.localVars=null}function ot(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}ot.lex=!0;function Le(w,O){var Y=function(){var le=V.state,Ze=le.indented;if(le.lexical.type=="stat")Ze=le.lexical.indented;else for(var ft=le.lexical;ft&&ft.type==")"&&ft.align;ft=ft.prev)Ze=ft.indented;le.lexical=new ve(Ze,V.stream.column(),w,null,le.lexical,O)};return Y.lex=!0,Y}function He(){var w=V.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}He.lex=!0;function We(w){function O(Y){return Y==w?S():w==";"||Y=="}"||Y==")"||Y=="]"?E():S(O)}return O}function rt(w,O){return w=="var"?S(Le("vardef",O),ya,We(";"),He):w=="keyword a"?S(Le("form"),Ir,rt,He):w=="keyword b"?S(Le("form"),rt,He):w=="keyword d"?V.stream.match(/^\s*$/,!1)?S():S(Le("stat"),Ke,We(";"),He):w=="debugger"?S(We(";")):w=="{"?S(Le("}"),At,_r,He,ot):w==";"?S():w=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==He&&V.state.cc.pop()(),S(Le("form"),Ir,rt,He,hl)):w=="function"?S(un):w=="for"?S(Le("form"),At,pl,rt,ot,He):w=="class"||I&&O=="interface"?(V.marked="keyword",S(Le("form",w=="class"?w:O),Ao,He)):w=="variable"?I&&O=="declare"?(V.marked="keyword",S(rt)):I&&(O=="module"||O=="enum"||O=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",O=="enum"?S(Mn):O=="type"?S(gl,We("operator"),Ue,We(";")):S(Le("form"),$r,We("{"),Le("}"),_r,He,He)):I&&O=="namespace"?(V.marked="keyword",S(Le("form"),Be,rt,He)):I&&O=="abstract"?(V.marked="keyword",S(rt)):S(Le("stat"),Ye):w=="switch"?S(Le("form"),Ir,We("{"),Le("}","switch"),At,_r,He,He,ot):w=="case"?S(Be,We(":")):w=="default"?S(We(":")):w=="catch"?S(Le("form"),Ut,nt,rt,He,ot):w=="export"?S(Le("stat"),wa,He):w=="import"?S(Le("stat"),It,He):w=="async"?S(rt):O=="@"?S(Be,rt):E(Le("stat"),Be,We(";"),He)}function nt(w){if(w=="(")return S(ri,We(")"))}function Be(w,O){return Yt(w,O,!1)}function Rt(w,O){return Yt(w,O,!0)}function Ir(w){return w!="("?E():S(Le(")"),Ke,We(")"),He)}function Yt(w,O,Y){if(V.state.fatArrowAt==V.stream.start){var le=Y?Je:Jt;if(w=="(")return S(Ut,Le(")"),Nt(ri,")"),He,We("=>"),le,ot);if(w=="variable")return E(Ut,$r,We("=>"),le,ot)}var Ze=Y?wt:ht;return je.hasOwnProperty(w)?S(Ze):w=="function"?S(un,Ze):w=="class"||I&&O=="interface"?(V.marked="keyword",S(Le("form"),to,He)):w=="keyword c"||w=="async"?S(Y?Rt:Be):w=="("?S(Le(")"),Ke,We(")"),He,Ze):w=="operator"||w=="spread"?S(Y?Rt:Be):w=="["?S(Le("]"),bt,He,Ze):w=="{"?ti(pr,"}",null,Ze):w=="quasi"?E(Lr,Ze):w=="new"?S(F(Y)):S()}function Ke(w){return w.match(/[;\}\)\],]/)?E():E(Be)}function ht(w,O){return w==","?S(Ke):wt(w,O,!1)}function wt(w,O,Y){var le=Y==!1?ht:wt,Ze=Y==!1?Be:Rt;if(w=="=>")return S(Ut,Y?Je:Jt,ot);if(w=="operator")return/\+\+|--/.test(O)||I&&O=="!"?S(le):I&&O=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Le(">"),Nt(Ue,">"),He,le):O=="?"?S(Be,We(":"),Ze):S(Ze);if(w=="quasi")return E(Lr,le);if(w!=";"){if(w=="(")return ti(Rt,")","call",le);if(w==".")return S(er,le);if(w=="[")return S(Le("]"),Ke,We("]"),He,le);if(I&&O=="as")return V.marked="keyword",S(Ue,le);if(w=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),S(Ze)}}function Lr(w,O){return w!="quasi"?E():O.slice(O.length-2)!="${"?S(Lr):S(Ke,Ur)}function Ur(w){if(w=="}")return V.marked="string-2",V.state.tokenize=Te,S(Lr)}function Jt(w){return qe(V.stream,V.state),E(w=="{"?rt:Be)}function Je(w){return qe(V.stream,V.state),E(w=="{"?rt:Rt)}function F(w){return function(O){return O=="."?S(w?K:ae):O=="variable"&&I?S(Qi,w?wt:ht):E(w?Rt:Be)}}function ae(w,O){if(O=="target")return V.marked="keyword",S(ht)}function K(w,O){if(O=="target")return V.marked="keyword",S(wt)}function Ye(w){return w==":"?S(He,rt):E(ht,We(";"),He)}function er(w){if(w=="variable")return V.marked="property",S()}function pr(w,O){if(w=="async")return V.marked="property",S(pr);if(w=="variable"||V.style=="keyword"){if(V.marked="property",O=="get"||O=="set")return S(xn);var Y;return I&&V.state.fatArrowAt==V.stream.start&&(Y=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+Y[0].length),S(Dr)}else{if(w=="number"||w=="string")return V.marked=A?"property":V.style+" property",S(Dr);if(w=="jsonld-keyword")return S(Dr);if(I&&zt(O))return V.marked="keyword",S(pr);if(w=="[")return S(Be,zn,We("]"),Dr);if(w=="spread")return S(Rt,Dr);if(O=="*")return V.marked="keyword",S(pr);if(w==":")return E(Dr)}}function xn(w){return w!="variable"?E(Dr):(V.marked="property",S(un))}function Dr(w){if(w==":")return S(Rt);if(w=="(")return E(un)}function Nt(w,O,Y){function le(Ze,ft){if(Y?Y.indexOf(Ze)>-1:Ze==","){var Ce=V.state.lexical;return Ce.info=="call"&&(Ce.pos=(Ce.pos||0)+1),S(function(vr,Vr){return vr==O||Vr==O?E():E(w)},le)}return Ze==O||ft==O?S():Y&&Y.indexOf(";")>-1?E(w):S(We(O))}return function(Ze,ft){return Ze==O||ft==O?S():E(w,le)}}function ti(w,O,Y){for(var le=3;le<arguments.length;le++)V.cc.push(arguments[le]);return S(Le(O,Y),Nt(w,O),He)}function _r(w){return w=="}"?S():E(rt,_r)}function zn(w,O){if(I){if(w==":")return S(Ue);if(O=="?")return S(zn)}}function Ne(w,O){if(I&&(w==":"||O=="in"))return S(Ue)}function yi(w){if(I&&w==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?S(Be,gr,Ue):S(Ue)}function gr(w,O){if(O=="is")return V.marked="keyword",S()}function Ue(w,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return V.marked="keyword",S(O=="typeof"?Rt:Ue);if(w=="variable"||O=="void")return V.marked="type",S(Xr);if(O=="|"||O=="&")return S(Ue);if(w=="string"||w=="number"||w=="atom")return S(Xr);if(w=="[")return S(Le("]"),Nt(Ue,"]",","),He,Xr);if(w=="{")return S(Le("}"),Po,He,Xr);if(w=="(")return S(Nt(Eo,")"),Gt,Xr);if(w=="<")return S(Nt(Ue,">"),Ue);if(w=="quasi")return E(Ln,Xr)}function Gt(w){if(w=="=>")return S(Ue)}function Po(w){return w.match(/[\}\)\]]/)?S():w==","||w==";"?S(Po):E(sr,Po)}function sr(w,O){if(w=="variable"||V.style=="keyword")return V.marked="property",S(sr);if(O=="?"||w=="number"||w=="string")return S(sr);if(w==":")return S(Ue);if(w=="[")return S(We("variable"),Ne,We("]"),sr);if(w=="(")return E(Qr,sr);if(!w.match(/[;\}\)\],]/))return S()}function Ln(w,O){return w!="quasi"?E():O.slice(O.length-2)!="${"?S(Ln):S(Ue,ur)}function ur(w){if(w=="}")return V.marked="string-2",V.state.tokenize=Te,S(Ln)}function Eo(w,O){return w=="variable"&&V.stream.match(/^\s*[?:]/,!1)||O=="?"?S(Eo):w==":"?S(Ue):w=="spread"?S(Eo):E(Ue)}function Xr(w,O){if(O=="<")return S(Le(">"),Nt(Ue,">"),He,Xr);if(O=="|"||w=="."||O=="&")return S(Ue);if(w=="[")return S(Ue,We("]"),Xr);if(O=="extends"||O=="implements")return V.marked="keyword",S(Ue);if(O=="?")return S(Ue,We(":"),Ue)}function Qi(w,O){if(O=="<")return S(Le(">"),Nt(Ue,">"),He,Xr)}function Ci(){return E(Ue,ma)}function ma(w,O){if(O=="=")return S(Ue)}function ya(w,O){return O=="enum"?(V.marked="keyword",S(Mn)):E($r,zn,Rn,eo)}function $r(w,O){if(I&&zt(O))return V.marked="keyword",S($r);if(w=="variable")return be(O),S();if(w=="spread")return S($r);if(w=="[")return ti(Ji,"]");if(w=="{")return ti(dl,"}")}function dl(w,O){return w=="variable"&&!V.stream.match(/^\s*:/,!1)?(be(O),S(Rn)):(w=="variable"&&(V.marked="property"),w=="spread"?S($r):w=="}"?E():w=="["?S(Be,We("]"),We(":"),dl):S(We(":"),$r,Rn))}function Ji(){return E($r,Rn)}function Rn(w,O){if(O=="=")return S(Rt)}function eo(w){if(w==",")return S(ya)}function hl(w,O){if(w=="keyword b"&&O=="else")return S(Le("form","else"),rt,He)}function pl(w,O){if(O=="await")return S(pl);if(w=="(")return S(Le(")"),Ca,He)}function Ca(w){return w=="var"?S(ya,wi):w=="variable"?S(wi):E(wi)}function wi(w,O){return w==")"?S():w==";"?S(wi):O=="in"||O=="of"?(V.marked="keyword",S(Be,wi)):E(Be,wi)}function un(w,O){if(O=="*")return V.marked="keyword",S(un);if(w=="variable")return be(O),S(un);if(w=="(")return S(Ut,Le(")"),Nt(ri,")"),He,yi,rt,ot);if(I&&O=="<")return S(Le(">"),Nt(Ci,">"),He,un)}function Qr(w,O){if(O=="*")return V.marked="keyword",S(Qr);if(w=="variable")return be(O),S(Qr);if(w=="(")return S(Ut,Le(")"),Nt(ri,")"),He,yi,ot);if(I&&O=="<")return S(Le(">"),Nt(Ci,">"),He,Qr)}function gl(w,O){if(w=="keyword"||w=="variable")return V.marked="type",S(gl);if(O=="<")return S(Le(">"),Nt(Ci,">"),He)}function ri(w,O){return O=="@"&&S(Be,ri),w=="spread"?S(ri):I&&zt(O)?(V.marked="keyword",S(ri)):I&&w=="this"?S(zn,Rn):E($r,zn,Rn)}function to(w,O){return w=="variable"?Ao(w,O):_n(w,O)}function Ao(w,O){if(w=="variable")return be(O),S(_n)}function _n(w,O){if(O=="<")return S(Le(">"),Nt(Ci,">"),He,_n);if(O=="extends"||O=="implements"||I&&w==",")return O=="implements"&&(V.marked="keyword"),S(I?Ue:Be,_n);if(w=="{")return S(Le("}"),Sn,He)}function Sn(w,O){if(w=="async"||w=="variable"&&(O=="static"||O=="get"||O=="set"||I&&zt(O))&&V.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return V.marked="keyword",S(Sn);if(w=="variable"||V.style=="keyword")return V.marked="property",S(Jr,Sn);if(w=="number"||w=="string")return S(Jr,Sn);if(w=="[")return S(Be,zn,We("]"),Jr,Sn);if(O=="*")return V.marked="keyword",S(Sn);if(I&&w=="(")return E(Qr,Sn);if(w==";"||w==",")return S(Sn);if(w=="}")return S();if(O=="@")return S(Be,Sn)}function Jr(w,O){if(O=="!"||O=="?")return S(Jr);if(w==":")return S(Ue,Rn);if(O=="=")return S(Rt);var Y=V.state.lexical.prev,le=Y&&Y.info=="interface";return E(le?Qr:un)}function wa(w,O){return O=="*"?(V.marked="keyword",S(Zr,We(";"))):O=="default"?(V.marked="keyword",S(Be,We(";"))):w=="{"?S(Nt(xa,"}"),Zr,We(";")):E(rt)}function xa(w,O){if(O=="as")return V.marked="keyword",S(We("variable"));if(w=="variable")return E(Rt,xa)}function It(w){return w=="string"?S():w=="("?E(Be):w=="."?E(ht):E(ke,en,Zr)}function ke(w,O){return w=="{"?ti(ke,"}"):(w=="variable"&&be(O),O=="*"&&(V.marked="keyword"),S(za))}function en(w){if(w==",")return S(ke,en)}function za(w,O){if(O=="as")return V.marked="keyword",S(ke)}function Zr(w,O){if(O=="from")return V.marked="keyword",S(Be)}function bt(w){return w=="]"?S():E(Nt(Rt,"]"))}function Mn(){return E(Le("form"),$r,We("{"),Le("}"),Nt(xi,"}"),He,He)}function xi(){return E($r,Rn)}function Io(w,O){return w.lastType=="operator"||w.lastType==","||Z.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function oe(w,O,Y){return O.tokenize==he&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(Y||0)))}return{startState:function(w){var O={tokenize:he,lastType:"sof",cc:[],lexical:new ve((w||0)-v,0,"block",!1),localVars:f.localVars,context:f.localVars&&new jt(null,null,!1),indented:w||0};return f.globalVars&&typeof f.globalVars=="object"&&(O.globalVars=f.globalVars),O},token:function(w,O){if(w.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=w.indentation(),qe(w,O)),O.tokenize!=Me&&w.eatSpace())return null;var Y=O.tokenize(w,O);return pe=="comment"?Y:(O.lastType=pe=="operator"&&(Se=="++"||Se=="--")?"incdec":pe,Xe(O,Y,pe,Se,w))},indent:function(w,O){if(w.tokenize==Me||w.tokenize==Te)return l.Pass;if(w.tokenize!=he)return 0;var Y=O&&O.charAt(0),le=w.lexical,Ze;if(!/^\s*else\b/.test(O))for(var ft=w.cc.length-1;ft>=0;--ft){var Ce=w.cc[ft];if(Ce==He)le=le.prev;else if(Ce!=hl&&Ce!=ot)break}for(;(le.type=="stat"||le.type=="form")&&(Y=="}"||(Ze=w.cc[w.cc.length-1])&&(Ze==ht||Ze==wt)&&!/^[,\.=+\-*:?[\(]/.test(O));)le=le.prev;y&&le.type==")"&&le.prev.type=="stat"&&(le=le.prev);var vr=le.type,Vr=Y==vr;return vr=="vardef"?le.indented+(w.lastType=="operator"||w.lastType==","?le.info.length+1:0):vr=="form"&&Y=="{"?le.indented:vr=="form"?le.indented+v:vr=="stat"?le.indented+(Io(w,O)?y||v:0):le.info=="switch"&&!Vr&&f.doubleIndentSwitch!=!1?le.indented+(/^(?:case|default)\b/.test(O)?v:2*v):le.align?le.column+(Vr?0:1):le.indented+(Vr?0:v)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:A,jsonMode:T,expressionAllowed:oe,skipExpression:function(w){Xe(w,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Nd={exports:{}},Rd;function Og(){return Rd||(Rd=1,function(u,a){(function(l){l(Oo())})(function(l){l.defineMode("css",function(ve,ye){var Xe=ye.inline;ye.propertyKeywords||(ye=l.resolveMode("text/css"));var V=ve.indentUnit,E=ye.tokenHooks,S=ye.documentTypes||{},ee=ye.mediaTypes||{},be=ye.mediaFeatures||{},tt=ye.mediaValueKeywords||{},zt=ye.propertyKeywords||{},jt=ye.nonStandardPropertyKeywords||{},Et=ye.fontProperties||{},Yr=ye.counterDescriptors||{},Ut=ye.colorKeywords||{},At=ye.valueKeywords||{},ot=ye.allowNested,Le=ye.lineComment,He=ye.supportsAtComponent===!0,We=ve.highlightNonStandardPropertyKeywords!==!1,rt,nt;function Be(F,ae){return rt=ae,F}function Rt(F,ae){var K=F.next();if(E[K]){var Ye=E[K](F,ae);if(Ye!==!1)return Ye}if(K=="@")return F.eatWhile(/[\w\\\-]/),Be("def",F.current());if(K=="="||(K=="~"||K=="|")&&F.eat("="))return Be(null,"compare");if(K=='"'||K=="'")return ae.tokenize=Ir(K),ae.tokenize(F,ae);if(K=="#")return F.eatWhile(/[\w\\\-]/),Be("atom","hash");if(K=="!")return F.match(/^\s*\w*/),Be("keyword","important");if(/\d/.test(K)||K=="."&&F.eat(/\d/))return F.eatWhile(/[\w.%]/),Be("number","unit");if(K==="-"){if(/[\d.]/.test(F.peek()))return F.eatWhile(/[\w.%]/),Be("number","unit");if(F.match(/^-[\w\\\-]*/))return F.eatWhile(/[\w\\\-]/),F.match(/^\s*:/,!1)?Be("variable-2","variable-definition"):Be("variable-2","variable");if(F.match(/^\w+-/))return Be("meta","meta")}else return/[,+>*\/]/.test(K)?Be(null,"select-op"):K=="."&&F.match(/^-?[_a-z][_a-z0-9-]*/i)?Be("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?Be(null,K):F.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(F.current())&&(ae.tokenize=Yt),Be("variable callee","variable")):/[\w\\\-]/.test(K)?(F.eatWhile(/[\w\\\-]/),Be("property","word")):Be(null,null)}function Ir(F){return function(ae,K){for(var Ye=!1,er;(er=ae.next())!=null;){if(er==F&&!Ye){F==")"&&ae.backUp(1);break}Ye=!Ye&&er=="\\"}return(er==F||!Ye&&F!=")")&&(K.tokenize=null),Be("string","string")}}function Yt(F,ae){return F.next(),F.match(/^\s*[\"\')]/,!1)?ae.tokenize=null:ae.tokenize=Ir(")"),Be(null,"(")}function Ke(F,ae,K){this.type=F,this.indent=ae,this.prev=K}function ht(F,ae,K,Ye){return F.context=new Ke(K,ae.indentation()+(Ye===!1?0:V),F.context),K}function wt(F){return F.context.prev&&(F.context=F.context.prev),F.context.type}function Lr(F,ae,K){return Je[K.context.type](F,ae,K)}function Ur(F,ae,K,Ye){for(var er=Ye||1;er>0;er--)K.context=K.context.prev;return Lr(F,ae,K)}function Jt(F){var ae=F.current().toLowerCase();At.hasOwnProperty(ae)?nt="atom":Ut.hasOwnProperty(ae)?nt="keyword":nt="variable"}var Je={};return Je.top=function(F,ae,K){if(F=="{")return ht(K,ae,"block");if(F=="}"&&K.context.prev)return wt(K);if(He&&/@component/i.test(F))return ht(K,ae,"atComponentBlock");if(/^@(-moz-)?document$/i.test(F))return ht(K,ae,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(F))return ht(K,ae,"atBlock");if(/^@(font-face|counter-style)/i.test(F))return K.stateArg=F,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(F))return"keyframes";if(F&&F.charAt(0)=="@")return ht(K,ae,"at");if(F=="hash")nt="builtin";else if(F=="word")nt="tag";else{if(F=="variable-definition")return"maybeprop";if(F=="interpolation")return ht(K,ae,"interpolation");if(F==":")return"pseudo";if(ot&&F=="(")return ht(K,ae,"parens")}return K.context.type},Je.block=function(F,ae,K){if(F=="word"){var Ye=ae.current().toLowerCase();return zt.hasOwnProperty(Ye)?(nt="property","maybeprop"):jt.hasOwnProperty(Ye)?(nt=We?"string-2":"property","maybeprop"):ot?(nt=ae.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(nt+=" error","maybeprop")}else return F=="meta"?"block":!ot&&(F=="hash"||F=="qualifier")?(nt="error","block"):Je.top(F,ae,K)},Je.maybeprop=function(F,ae,K){return F==":"?ht(K,ae,"prop"):Lr(F,ae,K)},Je.prop=function(F,ae,K){if(F==";")return wt(K);if(F=="{"&&ot)return ht(K,ae,"propBlock");if(F=="}"||F=="{")return Ur(F,ae,K);if(F=="(")return ht(K,ae,"parens");if(F=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current()))nt+=" error";else if(F=="word")Jt(ae);else if(F=="interpolation")return ht(K,ae,"interpolation");return"prop"},Je.propBlock=function(F,ae,K){return F=="}"?wt(K):F=="word"?(nt="property","maybeprop"):K.context.type},Je.parens=function(F,ae,K){return F=="{"||F=="}"?Ur(F,ae,K):F==")"?wt(K):F=="("?ht(K,ae,"parens"):F=="interpolation"?ht(K,ae,"interpolation"):(F=="word"&&Jt(ae),"parens")},Je.pseudo=function(F,ae,K){return F=="meta"?"pseudo":F=="word"?(nt="variable-3",K.context.type):Lr(F,ae,K)},Je.documentTypes=function(F,ae,K){return F=="word"&&S.hasOwnProperty(ae.current())?(nt="tag",K.context.type):Je.atBlock(F,ae,K)},Je.atBlock=function(F,ae,K){if(F=="(")return ht(K,ae,"atBlock_parens");if(F=="}"||F==";")return Ur(F,ae,K);if(F=="{")return wt(K)&&ht(K,ae,ot?"block":"top");if(F=="interpolation")return ht(K,ae,"interpolation");if(F=="word"){var Ye=ae.current().toLowerCase();Ye=="only"||Ye=="not"||Ye=="and"||Ye=="or"?nt="keyword":ee.hasOwnProperty(Ye)?nt="attribute":be.hasOwnProperty(Ye)?nt="property":tt.hasOwnProperty(Ye)?nt="keyword":zt.hasOwnProperty(Ye)?nt="property":jt.hasOwnProperty(Ye)?nt=We?"string-2":"property":At.hasOwnProperty(Ye)?nt="atom":Ut.hasOwnProperty(Ye)?nt="keyword":nt="error"}return K.context.type},Je.atComponentBlock=function(F,ae,K){return F=="}"?Ur(F,ae,K):F=="{"?wt(K)&&ht(K,ae,ot?"block":"top",!1):(F=="word"&&(nt="error"),K.context.type)},Je.atBlock_parens=function(F,ae,K){return F==")"?wt(K):F=="{"||F=="}"?Ur(F,ae,K,2):Je.atBlock(F,ae,K)},Je.restricted_atBlock_before=function(F,ae,K){return F=="{"?ht(K,ae,"restricted_atBlock"):F=="word"&&K.stateArg=="@counter-style"?(nt="variable","restricted_atBlock_before"):Lr(F,ae,K)},Je.restricted_atBlock=function(F,ae,K){return F=="}"?(K.stateArg=null,wt(K)):F=="word"?(K.stateArg=="@font-face"&&!Et.hasOwnProperty(ae.current().toLowerCase())||K.stateArg=="@counter-style"&&!Yr.hasOwnProperty(ae.current().toLowerCase())?nt="error":nt="property","maybeprop"):"restricted_atBlock"},Je.keyframes=function(F,ae,K){return F=="word"?(nt="variable","keyframes"):F=="{"?ht(K,ae,"top"):Lr(F,ae,K)},Je.at=function(F,ae,K){return F==";"?wt(K):F=="{"||F=="}"?Ur(F,ae,K):(F=="word"?nt="tag":F=="hash"&&(nt="builtin"),"at")},Je.interpolation=function(F,ae,K){return F=="}"?wt(K):F=="{"||F==";"?Ur(F,ae,K):(F=="word"?nt="variable":F!="variable"&&F!="("&&F!=")"&&(nt="error"),"interpolation")},{startState:function(F){return{tokenize:null,state:Xe?"block":"top",stateArg:null,context:new Ke(Xe?"block":"top",F||0,null)}},token:function(F,ae){if(!ae.tokenize&&F.eatSpace())return null;var K=(ae.tokenize||Rt)(F,ae);return K&&typeof K=="object"&&(rt=K[1],K=K[0]),nt=K,rt!="comment"&&(ae.state=Je[ae.state](rt,F,ae)),nt},indent:function(F,ae){var K=F.context,Ye=ae&&ae.charAt(0),er=K.indent;return K.type=="prop"&&(Ye=="}"||Ye==")")&&(K=K.prev),K.prev&&(Ye=="}"&&(K.type=="block"||K.type=="top"||K.type=="interpolation"||K.type=="restricted_atBlock")?(K=K.prev,er=K.indent):(Ye==")"&&(K.type=="parens"||K.type=="atBlock_parens")||Ye=="{"&&(K.type=="at"||K.type=="atBlock"))&&(er=Math.max(0,K.indent-V))),er},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Le,fold:"brace"}});function h(ve){for(var ye={},Xe=0;Xe<ve.length;++Xe)ye[ve[Xe].toLowerCase()]=!0;return ye}var f=["domain","regexp","url","url-prefix"],v=h(f),y=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],A=h(y),T=["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"],k=h(T),I=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],H=h(I),W=["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"],Z=h(W),re=["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"],ge=h(re),pe=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Se=h(pe),Oe=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],he=h(Oe),ce=["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"],Me=h(ce),Te=["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"],Ae=h(Te),qe=f.concat(y).concat(T).concat(I).concat(W).concat(re).concat(ce).concat(Te);l.registerHelper("hintWords","css",qe);function je(ve,ye){for(var Xe=!1,V;(V=ve.next())!=null;){if(Xe&&V=="/"){ye.tokenize=null;break}Xe=V=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:v,mediaTypes:A,mediaFeatures:k,mediaValueKeywords:H,propertyKeywords:Z,nonStandardPropertyKeywords:ge,fontProperties:Se,counterDescriptors:he,colorKeywords:Me,valueKeywords:Ae,tokenHooks:{"/":function(ve,ye){return ve.eat("*")?(ye.tokenize=je,je(ve,ye)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:A,mediaFeatures:k,mediaValueKeywords:H,propertyKeywords:Z,nonStandardPropertyKeywords:ge,colorKeywords:Me,valueKeywords:Ae,fontProperties:Se,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,ye){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(ye.tokenize=je,je(ve,ye)):["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"}),l.defineMIME("text/x-less",{mediaTypes:A,mediaFeatures:k,mediaValueKeywords:H,propertyKeywords:Z,nonStandardPropertyKeywords:ge,colorKeywords:Me,valueKeywords:Ae,fontProperties:Se,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,ye){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(ye.tokenize=je,je(ve,ye)):["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"}),l.defineMIME("text/x-gss",{documentTypes:v,mediaTypes:A,mediaFeatures:k,propertyKeywords:Z,nonStandardPropertyKeywords:ge,fontProperties:Se,counterDescriptors:he,colorKeywords:Me,valueKeywords:Ae,supportsAtComponent:!0,tokenHooks:{"/":function(ve,ye){return ve.eat("*")?(ye.tokenize=je,je(ve,ye)):!1}},name:"css",helperType:"gss"})})}()),Nd.exports}(function(u,a){(function(l){l(Oo(),Xh(),kg.exports,Og())})(function(l){var h={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(H,W,Z){var re=H.current(),ge=re.search(W);return ge>-1?H.backUp(re.length-ge):re.match(/<\/?$/)&&(H.backUp(re.length),H.match(W,!1)||H.match(re)),Z}var v={};function y(H){var W=v[H];return W||(v[H]=new RegExp("\\s+"+H+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function A(H,W){var Z=H.match(y(W));return Z?/^\s*(.*?)\s*$/.exec(Z[2])[1]:""}function T(H,W){return new RegExp((W?"^":"")+"</s*"+H+"s*>","i")}function k(H,W){for(var Z in H)for(var re=W[Z]||(W[Z]=[]),ge=H[Z],pe=ge.length-1;pe>=0;pe--)re.unshift(ge[pe])}function I(H,W){for(var Z=0;Z<H.length;Z++){var re=H[Z];if(!re[0]||re[1].test(A(W,re[0])))return re[2]}}l.defineMode("htmlmixed",function(H,W){var Z=l.getMode(H,{name:"xml",htmlMode:!0,multilineTagIndentFactor:W.multilineTagIndentFactor,multilineTagIndentPastTag:W.multilineTagIndentPastTag,allowMissingTagName:W.allowMissingTagName}),re={},ge=W&&W.tags,pe=W&&W.scriptTypes;if(k(h,re),ge&&k(ge,re),pe)for(var Se=pe.length-1;Se>=0;Se--)re.script.unshift(["type",pe[Se].matches,pe[Se].mode]);function Oe(he,ce){var Me=Z.token(he,ce.htmlState),Te=/\btag\b/.test(Me),Ae;if(Te&&!/[<>\s\/]/.test(he.current())&&(Ae=ce.htmlState.tagName&&ce.htmlState.tagName.toLowerCase())&&re.hasOwnProperty(Ae))ce.inTag=Ae+" ";else if(ce.inTag&&Te&&/>$/.test(he.current())){var qe=/^([\S]+) (.*)/.exec(ce.inTag);ce.inTag=null;var je=he.current()==">"&&I(re[qe[1]],qe[2]),ve=l.getMode(H,je),ye=T(qe[1],!0),Xe=T(qe[1],!1);ce.token=function(V,E){return V.match(ye,!1)?(E.token=Oe,E.localState=E.localMode=null,null):f(V,Xe,E.localMode.token(V,E.localState))},ce.localMode=ve,ce.localState=l.startState(ve,Z.indent(ce.htmlState,"",""))}else ce.inTag&&(ce.inTag+=he.current(),he.eol()&&(ce.inTag+=" "));return Me}return{startState:function(){var he=l.startState(Z);return{token:Oe,inTag:null,localMode:null,localState:null,htmlState:he}},copyState:function(he){var ce;return he.localState&&(ce=l.copyState(he.localMode,he.localState)),{token:he.token,inTag:he.inTag,localMode:he.localMode,localState:ce,htmlState:l.copyState(Z,he.htmlState)}},token:function(he,ce){return ce.token(he,ce)},indent:function(he,ce,Me){return!he.localMode||/^\s*<\//.test(ce)?Z.indent(he.htmlState,ce,Me):he.localMode.indent?he.localMode.indent(he.localState,ce,Me):l.Pass},innerMode:function(he){return{state:he.localState||he.htmlState,mode:he.localMode||Z}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(u,a){(function(l){l(Oo())})(function(l){l.defineMode("solr",function(){var h=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,f=/[\|\!\+\-\*\?\~\^\&]/,v=/^(OR|AND|NOT|TO)$/i;function y(H){return parseFloat(H).toString()===H}function A(H){return function(W,Z){for(var re=!1,ge;(ge=W.next())!=null&&!(ge==H&&!re);)re=!re&&ge=="\\";return re||(Z.tokenize=I),"string"}}function T(H){return function(W,Z){var re="operator";return H=="+"?re+=" positive":H=="-"?re+=" negative":H=="|"?W.eat(/\|/):H=="&"?W.eat(/\&/):H=="^"&&(re+=" boost"),Z.tokenize=I,re}}function k(H){return function(W,Z){for(var re=H;(H=W.peek())&&H.match(h)!=null;)re+=W.next();return Z.tokenize=I,v.test(re)?"operator":y(re)?"number":W.peek()==":"?"field":"string"}}function I(H,W){var Z=H.next();return Z=='"'?W.tokenize=A(Z):f.test(Z)?W.tokenize=T(Z):h.test(Z)&&(W.tokenize=k(Z)),W.tokenize!=I?W.tokenize(H,W):null}return{startState:function(){return{tokenize:I}},token:function(H,W){return H.eatSpace()?null:W.tokenize(H,W)}}}),l.defineMIME("text/x-solr","solr")})})();(function(u,a){(function(l){l(Oo())})(function(l){l.defineOption("placeholder","",function(k,I,H){var W=H&&H!=l.Init;if(I&&!W)k.on("blur",y),k.on("change",A),k.on("swapDoc",A),l.on(k.getInputField(),"compositionupdate",k.state.placeholderCompose=function(){v(k)}),A(k);else if(!I&&W){k.off("blur",y),k.off("change",A),k.off("swapDoc",A),l.off(k.getInputField(),"compositionupdate",k.state.placeholderCompose),h(k);var Z=k.getWrapperElement();Z.className=Z.className.replace(" CodeMirror-empty","")}I&&!k.hasFocus()&&y(k)});function h(k){k.state.placeholder&&(k.state.placeholder.parentNode.removeChild(k.state.placeholder),k.state.placeholder=null)}function f(k){h(k);var I=k.state.placeholder=document.createElement("pre");I.style.cssText="height: 0; overflow: visible",I.style.direction=k.getOption("direction"),I.className="CodeMirror-placeholder CodeMirror-line-like";var H=k.getOption("placeholder");typeof H=="string"&&(H=document.createTextNode(H)),I.appendChild(H),k.display.lineSpace.insertBefore(I,k.display.lineSpace.firstChild)}function v(k){setTimeout(function(){var I=!1;if(k.lineCount()==1){var H=k.getInputField();I=H.nodeName=="TEXTAREA"?!k.getLine(0).length:!/[^\u200b]/.test(H.querySelector(".CodeMirror-line").textContent)}I?f(k):h(k)},20)}function y(k){T(k)&&f(k)}function A(k){var I=k.getWrapperElement(),H=T(k);I.className=I.className.replace(" CodeMirror-empty","")+(H?" CodeMirror-empty":""),H?f(k):h(k)}function T(k){return k.lineCount()===1&&k.getLine(0)===""}})})();var Tg=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,xs=(u,a,l,h)=>{for(var f=h>1?void 0:h?Pg(a,l):a,v=u.length-1,y;v>=0;v--)(y=u[v])&&(f=(h?y(a,l,f):y(f))||f);return h&&f&&Tg(a,l,f),f};zu.defineMode("nunjucks",(u,a)=>zu.overlayMode(zu.getMode(u,a.backdrop||"text/html"),zu.getMode(u,"jinja2")));const Qh=Ee("input-code"),Eg={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends sn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(u){this.value=u.getValue(),this.dispatchChange()}updated(){var a,l;super.updated();const u=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),u!==((a=this.editor)==null?void 0:a.isReadOnly())&&((l=this.editor)==null||l.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var h;return(h=this.editor)==null?void 0:h.refresh()})}get editorValue(){var u;return((u=this.editor)==null?void 0:u.getDoc().getValue())||""}set editorValue(u){var a;(a=this.editor)==null||a.setValue(u)}firstUpdated(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector(".editor");u&&(this.editor=zu.fromTextArea(u,{mode:Eg[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const h=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(h)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var u;super.disconnectedCallback(),(u=this.editor)==null||u.off("change",this.changeHandler)}renderInput(){return J`
|
|
2461
|
+
`;(function(u,a){(function(l){l(Oo())})(function(l){l.overlayMode=function(h,c,v){return{startState:function(){return{base:l.startState(h),overlay:l.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(m){return{base:l.copyState(h,m.base),overlay:l.copyState(c,m.overlay),basePos:m.basePos,baseCur:null,overlayPos:m.overlayPos,overlayCur:null}},token:function(m,A){return(m!=A.streamSeen||Math.min(A.basePos,A.overlayPos)<m.start)&&(A.streamSeen=m,A.basePos=A.overlayPos=m.start),m.start==A.basePos&&(A.baseCur=h.token(m,A.base),A.basePos=m.pos),m.start==A.overlayPos&&(m.pos=m.start,A.overlayCur=c.token(m,A.overlay),A.overlayPos=m.pos),m.pos=Math.min(A.basePos,A.overlayPos),A.overlayCur==null?A.baseCur:A.baseCur!=null&&A.overlay.combineTokens||v&&A.overlay.combineTokens==null?A.baseCur+" "+A.overlayCur:A.overlayCur},indent:h.indent&&function(m,A,T){return h.indent(m.base,A,T)},electricChars:h.electricChars,innerMode:function(m){return{state:m.base,mode:h}},blankLine:function(m){var A,T;return h.blankLine&&(A=h.blankLine(m.base)),c.blankLine&&(T=c.blankLine(m.overlay)),T==null?A:v&&A!=null?A+" "+T:T}}}})})();(function(u,a){(function(l){l(Oo())})(function(l){l.defineMode("jinja2",function(){var h=["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"],c=/^[+\-*&%=<>!?|~^]/,v=/^[:\[\(\{]/,m=["true","false"],A=/^(\d[+\-\*\/])?\d+(\.\d+)?/;h=new RegExp("(("+h.join(")|(")+"))\\b"),m=new RegExp("(("+m.join(")|(")+"))\\b");function T(k,I){var H=k.peek();if(I.incomment)return k.skipTo("#}")?(k.eatWhile(/\#|}/),I.incomment=!1):k.skipToEnd(),"comment";if(I.intag){if(I.operator){if(I.operator=!1,k.match(m))return"atom";if(k.match(A))return"number"}if(I.sign){if(I.sign=!1,k.match(m))return"atom";if(k.match(A))return"number"}if(I.instring)return H==I.instring&&(I.instring=!1),k.next(),"string";if(H=="'"||H=='"')return I.instring=H,k.next(),"string";if(k.match(I.intag+"}")||k.eat("-")&&k.match(I.intag+"}"))return I.intag=!1,"tag";if(k.match(c))return I.operator=!0,"operator";if(k.match(v))I.sign=!0;else if(k.eat(" ")||k.sol()){if(k.match(h))return"keyword";if(k.match(m))return"atom";if(k.match(A))return"number";k.sol()&&k.next()}else k.next();return"variable"}else if(k.eat("{")){if(k.eat("#"))return I.incomment=!0,k.skipTo("#}")?(k.eatWhile(/\#|}/),I.incomment=!1):k.skipToEnd(),"comment";if(H=k.eat(/\{|%/))return I.intag=H,H=="{"&&(I.intag="}"),k.eat("-"),"tag"}k.next()}return{startState:function(){return{tokenize:T}},token:function(k,I){return I.tokenize(k,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),l.defineMIME("text/jinja2","jinja2")})})();var qv={exports:{}};(function(u,a){(function(l){l(Oo())})(function(l){var h={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},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};l.defineMode("xml",function(v,m){var A=v.indentUnit,T={},k=m.htmlMode?h:c;for(var I in k)T[I]=k[I];for(var I in m)T[I]=m[I];var H,U;function Z(E,S){function ee(zt){return S.tokenize=zt,zt(E,S)}var be=E.next();if(be=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ee(pe("atom","]]>")):null:E.match("--")?ee(pe("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ee(Se(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),S.tokenize=pe("meta","?>"),"meta"):(H=E.eat("/")?"closeTag":"openTag",S.tokenize=re,"tag bracket");if(be=="&"){var tt;return E.eat("#")?E.eat("x")?tt=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):tt=E.eatWhile(/[\d]/)&&E.eat(";"):tt=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),tt?"atom":"error"}else return E.eatWhile(/[^&<]/),null}Z.isInText=!0;function re(E,S){var ee=E.next();if(ee==">"||ee=="/"&&E.eat(">"))return S.tokenize=Z,H=ee==">"?"endTag":"selfcloseTag","tag bracket";if(ee=="=")return H="equals",null;if(ee=="<"){S.tokenize=Z,S.state=Me,S.tagName=S.tagStart=null;var be=S.tokenize(E,S);return be?be+" tag error":"tag error"}else return/[\'\"]/.test(ee)?(S.tokenize=ge(ee),S.stringStartCol=E.column(),S.tokenize(E,S)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ge(E){var S=function(ee,be){for(;!ee.eol();)if(ee.next()==E){be.tokenize=re;break}return"string"};return S.isInAttribute=!0,S}function pe(E,S){return function(ee,be){for(;!ee.eol();){if(ee.match(S)){be.tokenize=Z;break}ee.next()}return E}}function Se(E){return function(S,ee){for(var be;(be=S.next())!=null;){if(be=="<")return ee.tokenize=Se(E+1),ee.tokenize(S,ee);if(be==">")if(E==1){ee.tokenize=Z;break}else return ee.tokenize=Se(E-1),ee.tokenize(S,ee)}return"meta"}}function Oe(E,S,ee){this.prev=E.context,this.tagName=S||"",this.indent=E.indented,this.startOfLine=ee,(T.doNotIndent.hasOwnProperty(S)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function he(E){E.context&&(E.context=E.context.prev)}function ce(E,S){for(var ee;;){if(!E.context||(ee=E.context.tagName,!T.contextGrabbers.hasOwnProperty(ee)||!T.contextGrabbers[ee].hasOwnProperty(S)))return;he(E)}}function Me(E,S,ee){return E=="openTag"?(ee.tagStart=S.column(),Te):E=="closeTag"?Ae:Me}function Te(E,S,ee){return E=="word"?(ee.tagName=S.current(),U="tag",ve):T.allowMissingTagName&&E=="endTag"?(U="tag bracket",ve(E,S,ee)):(U="error",Te)}function Ae(E,S,ee){if(E=="word"){var be=S.current();return ee.context&&ee.context.tagName!=be&&T.implicitlyClosed.hasOwnProperty(ee.context.tagName)&&he(ee),ee.context&&ee.context.tagName==be||T.matchClosing===!1?(U="tag",qe):(U="tag error",je)}else return T.allowMissingTagName&&E=="endTag"?(U="tag bracket",qe(E,S,ee)):(U="error",je)}function qe(E,S,ee){return E!="endTag"?(U="error",qe):(he(ee),Me)}function je(E,S,ee){return U="error",qe(E,S,ee)}function ve(E,S,ee){if(E=="word")return U="attribute",ye;if(E=="endTag"||E=="selfcloseTag"){var be=ee.tagName,tt=ee.tagStart;return ee.tagName=ee.tagStart=null,E=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(be)?ce(ee,be):(ce(ee,be),ee.context=new Oe(ee,be,tt==ee.indented)),Me}return U="error",ve}function ye(E,S,ee){return E=="equals"?Xe:(T.allowMissing||(U="error"),ve(E,S,ee))}function Xe(E,S,ee){return E=="string"?V:E=="word"&&T.allowUnquoted?(U="string",ve):(U="error",ve(E,S,ee))}function V(E,S,ee){return E=="string"?V:ve(E,S,ee)}return{startState:function(E){var S={tokenize:Z,state:Me,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(S.baseIndent=E),S},token:function(E,S){if(!S.tagName&&E.sol()&&(S.indented=E.indentation()),E.eatSpace())return null;H=null;var ee=S.tokenize(E,S);return(ee||H)&&ee!="comment"&&(U=null,S.state=S.state(H||ee,E,S),U&&(ee=U=="error"?ee+" error":U)),ee},indent:function(E,S,ee){var be=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+A;if(be&&be.noIndent)return l.Pass;if(E.tokenize!=re&&E.tokenize!=Z)return ee?ee.match(/^(\s*)/)[0].length:0;if(E.tagName)return T.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+A*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/<!\[CDATA\[/.test(S))return 0;var tt=S&&/^<(\/)?([\w_:\.-]*)/.exec(S);if(tt&&tt[1])for(;be;)if(be.tagName==tt[2]){be=be.prev;break}else if(T.implicitlyClosed.hasOwnProperty(be.tagName))be=be.prev;else break;else if(tt)for(;be;){var zt=T.contextGrabbers[be.tagName];if(zt&&zt.hasOwnProperty(tt[2]))be=be.prev;else break}for(;be&&be.prev&&!be.startOfLine;)be=be.prev;return be?be.indent+A:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(E){E.state==Xe&&(E.state=ve)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var S=[],ee=E.context;ee;ee=ee.prev)S.push(ee.tagName);return S.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Bd={exports:{}},Fd;function up(){return Fd||(Fd=1,function(u,a){(function(l){l(Oo())})(function(l){l.defineMode("javascript",function(h,c){var v=h.indentUnit,m=c.statementIndent,A=c.jsonld,T=c.json||A,k=c.trackScope!==!1,I=c.typescript,H=c.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function w(vr){return{type:vr,style:"keyword"}}var O=w("keyword a"),Y=w("keyword b"),le=w("keyword c"),Ze=w("keyword d"),ft=w("operator"),Ce={type:"atom",style:"atom"};return{if:w("if"),while:O,with:O,else:Y,do:Y,try:Y,finally:Y,return:Ze,break:Ze,continue:Ze,new:w("new"),delete:le,void:le,throw:le,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:ft,typeof:ft,instanceof:ft,true:Ce,false:Ce,null:Ce,undefined:Ce,NaN:Ce,Infinity:Ce,this:w("this"),class:w("class"),super:w("atom"),yield:le,export:w("export"),import:w("import"),extends:le,await:le}}(),Z=/[+\-*&%=<>!?|~^@]/,re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function ge(w){for(var O=!1,Y,le=!1;(Y=w.next())!=null;){if(!O){if(Y=="/"&&!le)return;Y=="["?le=!0:le&&Y=="]"&&(le=!1)}O=!O&&Y=="\\"}}var pe,Se;function Oe(w,O,Y){return pe=w,Se=Y,O}function he(w,O){var Y=w.next();if(Y=='"'||Y=="'")return O.tokenize=ce(Y),O.tokenize(w,O);if(Y=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Oe("number","number");if(Y=="."&&w.match(".."))return Oe("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Y))return Oe(Y);if(Y=="="&&w.eat(">"))return Oe("=>","operator");if(Y=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Oe("number","number");if(/\d/.test(Y))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Oe("number","number");if(Y=="/")return w.eat("*")?(O.tokenize=Me,Me(w,O)):w.eat("/")?(w.skipToEnd(),Oe("comment","comment")):oe(w,O,1)?(ge(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Oe("regexp","string-2")):(w.eat("="),Oe("operator","operator",w.current()));if(Y=="`")return O.tokenize=Te,Te(w,O);if(Y=="#"&&w.peek()=="!")return w.skipToEnd(),Oe("meta","meta");if(Y=="#"&&w.eatWhile(H))return Oe("variable","property");if(Y=="<"&&w.match("!--")||Y=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Oe("comment","comment");if(Z.test(Y))return(Y!=">"||!O.lexical||O.lexical.type!=">")&&(w.eat("=")?(Y=="!"||Y=="=")&&w.eat("="):/[<>*+\-|&?]/.test(Y)&&(w.eat(Y),Y==">"&&w.eat(Y))),Y=="?"&&w.eat(".")?Oe("."):Oe("operator","operator",w.current());if(H.test(Y)){w.eatWhile(H);var le=w.current();if(O.lastType!="."){if(U.propertyIsEnumerable(le)){var Ze=U[le];return Oe(Ze.type,Ze.style,le)}if(le=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Oe("async","keyword",le)}return Oe("variable","variable",le)}}function ce(w){return function(O,Y){var le=!1,Ze;if(A&&O.peek()=="@"&&O.match(re))return Y.tokenize=he,Oe("jsonld-keyword","meta");for(;(Ze=O.next())!=null&&!(Ze==w&&!le);)le=!le&&Ze=="\\";return le||(Y.tokenize=he),Oe("string","string")}}function Me(w,O){for(var Y=!1,le;le=w.next();){if(le=="/"&&Y){O.tokenize=he;break}Y=le=="*"}return Oe("comment","comment")}function Te(w,O){for(var Y=!1,le;(le=w.next())!=null;){if(!Y&&(le=="`"||le=="$"&&w.eat("{"))){O.tokenize=he;break}Y=!Y&&le=="\\"}return Oe("quasi","string-2",w.current())}var Ae="([{}])";function qe(w,O){O.fatArrowAt&&(O.fatArrowAt=null);var Y=w.string.indexOf("=>",w.start);if(!(Y<0)){if(I){var le=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,Y));le&&(Y=le.index)}for(var Ze=0,ft=!1,Ce=Y-1;Ce>=0;--Ce){var vr=w.string.charAt(Ce),Vr=Ae.indexOf(vr);if(Vr>=0&&Vr<3){if(!Ze){++Ce;break}if(--Ze==0){vr=="("&&(ft=!0);break}}else if(Vr>=3&&Vr<6)++Ze;else if(H.test(vr))ft=!0;else if(/["'\/`]/.test(vr))for(;;--Ce){if(Ce==0)return;var ri=w.string.charAt(Ce-1);if(ri==vr&&w.string.charAt(Ce-2)!="\\"){Ce--;break}}else if(ft&&!Ze){++Ce;break}}ft&&!Ze&&(O.fatArrowAt=Ce)}}var je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ve(w,O,Y,le,Ze,ft){this.indented=w,this.column=O,this.type=Y,this.prev=Ze,this.info=ft,le!=null&&(this.align=le)}function ye(w,O){if(!k)return!1;for(var Y=w.localVars;Y;Y=Y.next)if(Y.name==O)return!0;for(var le=w.context;le;le=le.prev)for(var Y=le.vars;Y;Y=Y.next)if(Y.name==O)return!0}function Xe(w,O,Y,le,Ze){var ft=w.cc;for(V.state=w,V.stream=Ze,V.marked=null,V.cc=ft,V.style=O,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var Ce=ft.length?ft.pop():T?Be:rt;if(Ce(Y,le)){for(;ft.length&&ft[ft.length-1].lex;)ft.pop()();return V.marked?V.marked:Y=="variable"&&ye(w,le)?"variable-2":O}}}var V={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)V.cc.push(arguments[w])}function S(){return E.apply(null,arguments),!0}function ee(w,O){for(var Y=O;Y;Y=Y.next)if(Y.name==w)return!0;return!1}function be(w){var O=V.state;if(V.marked="def",!!k){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var Y=tt(w,O.context);if(Y!=null){O.context=Y;return}}else if(!ee(w,O.localVars)){O.localVars=new Et(w,O.localVars);return}}c.globalVars&&!ee(w,O.globalVars)&&(O.globalVars=new Et(w,O.globalVars))}}function tt(w,O){if(O)if(O.block){var Y=tt(w,O.prev);return Y?Y==O.prev?O:new jt(Y,O.vars,!0):null}else return ee(w,O.vars)?O:new jt(O.prev,new Et(w,O.vars),!1);else return null}function zt(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function jt(w,O,Y){this.prev=w,this.vars=O,this.block=Y}function Et(w,O){this.name=w,this.next=O}var jr=new Et("this",new Et("arguments",null));function Ut(){V.state.context=new jt(V.state.context,V.state.localVars,!1),V.state.localVars=jr}function At(){V.state.context=new jt(V.state.context,V.state.localVars,!0),V.state.localVars=null}function ot(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}ot.lex=!0;function Le(w,O){var Y=function(){var le=V.state,Ze=le.indented;if(le.lexical.type=="stat")Ze=le.lexical.indented;else for(var ft=le.lexical;ft&&ft.type==")"&&ft.align;ft=ft.prev)Ze=ft.indented;le.lexical=new ve(Ze,V.stream.column(),w,null,le.lexical,O)};return Y.lex=!0,Y}function He(){var w=V.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}He.lex=!0;function Fe(w){function O(Y){return Y==w?S():w==";"||Y=="}"||Y==")"||Y=="]"?E():S(O)}return O}function rt(w,O){return w=="var"?S(Le("vardef",O),wa,Fe(";"),He):w=="keyword a"?S(Le("form"),Ir,rt,He):w=="keyword b"?S(Le("form"),rt,He):w=="keyword d"?V.stream.match(/^\s*$/,!1)?S():S(Le("stat"),Ke,Fe(";"),He):w=="debugger"?S(Fe(";")):w=="{"?S(Le("}"),At,_r,He,ot):w==";"?S():w=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==He&&V.state.cc.pop()(),S(Le("form"),Ir,rt,He,vl)):w=="function"?S(un):w=="for"?S(Le("form"),At,bl,rt,ot,He):w=="class"||I&&O=="interface"?(V.marked="keyword",S(Le("form",w=="class"?w:O),Io,He)):w=="variable"?I&&O=="declare"?(V.marked="keyword",S(rt)):I&&(O=="module"||O=="enum"||O=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",O=="enum"?S(Mn):O=="type"?S(ml,Fe("operator"),Ue,Fe(";")):S(Le("form"),$r,Fe("{"),Le("}"),_r,He,He)):I&&O=="namespace"?(V.marked="keyword",S(Le("form"),Be,rt,He)):I&&O=="abstract"?(V.marked="keyword",S(rt)):S(Le("stat"),Ye):w=="switch"?S(Le("form"),Ir,Fe("{"),Le("}","switch"),At,_r,He,He,ot):w=="case"?S(Be,Fe(":")):w=="default"?S(Fe(":")):w=="catch"?S(Le("form"),Ut,nt,rt,He,ot):w=="export"?S(Le("stat"),za,He):w=="import"?S(Le("stat"),It,He):w=="async"?S(rt):O=="@"?S(Be,rt):E(Le("stat"),Be,Fe(";"),He)}function nt(w){if(w=="(")return S(ti,Fe(")"))}function Be(w,O){return Yt(w,O,!1)}function Rt(w,O){return Yt(w,O,!0)}function Ir(w){return w!="("?E():S(Le(")"),Ke,Fe(")"),He)}function Yt(w,O,Y){if(V.state.fatArrowAt==V.stream.start){var le=Y?Je:er;if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,Fe("=>"),le,ot);if(w=="variable")return E(Ut,$r,Fe("=>"),le,ot)}var Ze=Y?wt:ht;return je.hasOwnProperty(w)?S(Ze):w=="function"?S(un,Ze):w=="class"||I&&O=="interface"?(V.marked="keyword",S(Le("form"),to,He)):w=="keyword c"||w=="async"?S(Y?Rt:Be):w=="("?S(Le(")"),Ke,Fe(")"),He,Ze):w=="operator"||w=="spread"?S(Y?Rt:Be):w=="["?S(Le("]"),bt,He,Ze):w=="{"?ei(pr,"}",null,Ze):w=="quasi"?E(Lr,Ze):w=="new"?S(F(Y)):S()}function Ke(w){return w.match(/[;\}\)\],]/)?E():E(Be)}function ht(w,O){return w==","?S(Ke):wt(w,O,!1)}function wt(w,O,Y){var le=Y==!1?ht:wt,Ze=Y==!1?Be:Rt;if(w=="=>")return S(Ut,Y?Je:er,ot);if(w=="operator")return/\+\+|--/.test(O)||I&&O=="!"?S(le):I&&O=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Le(">"),Nt(Ue,">"),He,le):O=="?"?S(Be,Fe(":"),Ze):S(Ze);if(w=="quasi")return E(Lr,le);if(w!=";"){if(w=="(")return ei(Rt,")","call",le);if(w==".")return S(tr,le);if(w=="[")return S(Le("]"),Ke,Fe("]"),He,le);if(I&&O=="as")return V.marked="keyword",S(Ue,le);if(w=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),S(Ze)}}function Lr(w,O){return w!="quasi"?E():O.slice(O.length-2)!="${"?S(Lr):S(Ke,Ur)}function Ur(w){if(w=="}")return V.marked="string-2",V.state.tokenize=Te,S(Lr)}function er(w){return qe(V.stream,V.state),E(w=="{"?rt:Be)}function Je(w){return qe(V.stream,V.state),E(w=="{"?rt:Rt)}function F(w){return function(O){return O=="."?S(w?K:ae):O=="variable"&&I?S(Qi,w?wt:ht):E(w?Rt:Be)}}function ae(w,O){if(O=="target")return V.marked="keyword",S(ht)}function K(w,O){if(O=="target")return V.marked="keyword",S(wt)}function Ye(w){return w==":"?S(He,rt):E(ht,Fe(";"),He)}function tr(w){if(w=="variable")return V.marked="property",S()}function pr(w,O){if(w=="async")return V.marked="property",S(pr);if(w=="variable"||V.style=="keyword"){if(V.marked="property",O=="get"||O=="set")return S(xn);var Y;return I&&V.state.fatArrowAt==V.stream.start&&(Y=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+Y[0].length),S(Dr)}else{if(w=="number"||w=="string")return V.marked=A?"property":V.style+" property",S(Dr);if(w=="jsonld-keyword")return S(Dr);if(I&&zt(O))return V.marked="keyword",S(pr);if(w=="[")return S(Be,zn,Fe("]"),Dr);if(w=="spread")return S(Rt,Dr);if(O=="*")return V.marked="keyword",S(pr);if(w==":")return E(Dr)}}function xn(w){return w!="variable"?E(Dr):(V.marked="property",S(un))}function Dr(w){if(w==":")return S(Rt);if(w=="(")return E(un)}function Nt(w,O,Y){function le(Ze,ft){if(Y?Y.indexOf(Ze)>-1:Ze==","){var Ce=V.state.lexical;return Ce.info=="call"&&(Ce.pos=(Ce.pos||0)+1),S(function(vr,Vr){return vr==O||Vr==O?E():E(w)},le)}return Ze==O||ft==O?S():Y&&Y.indexOf(";")>-1?E(w):S(Fe(O))}return function(Ze,ft){return Ze==O||ft==O?S():E(w,le)}}function ei(w,O,Y){for(var le=3;le<arguments.length;le++)V.cc.push(arguments[le]);return S(Le(O,Y),Nt(w,O),He)}function _r(w){return w=="}"?S():E(rt,_r)}function zn(w,O){if(I){if(w==":")return S(Ue);if(O=="?")return S(zn)}}function Ne(w,O){if(I&&(w==":"||O=="in"))return S(Ue)}function mi(w){if(I&&w==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?S(Be,gr,Ue):S(Ue)}function gr(w,O){if(O=="is")return V.marked="keyword",S()}function Ue(w,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return V.marked="keyword",S(O=="typeof"?Rt:Ue);if(w=="variable"||O=="void")return V.marked="type",S(Yr);if(O=="|"||O=="&")return S(Ue);if(w=="string"||w=="number"||w=="atom")return S(Yr);if(w=="[")return S(Le("]"),Nt(Ue,"]",","),He,Yr);if(w=="{")return S(Le("}"),Eo,He,Yr);if(w=="(")return S(Nt(Ao,")"),Gt,Yr);if(w=="<")return S(Nt(Ue,">"),Ue);if(w=="quasi")return E(Ln,Yr)}function Gt(w){if(w=="=>")return S(Ue)}function Eo(w){return w.match(/[\}\)\]]/)?S():w==","||w==";"?S(Eo):E(sr,Eo)}function sr(w,O){if(w=="variable"||V.style=="keyword")return V.marked="property",S(sr);if(O=="?"||w=="number"||w=="string")return S(sr);if(w==":")return S(Ue);if(w=="[")return S(Fe("variable"),Ne,Fe("]"),sr);if(w=="(")return E(Xr,sr);if(!w.match(/[;\}\)\],]/))return S()}function Ln(w,O){return w!="quasi"?E():O.slice(O.length-2)!="${"?S(Ln):S(Ue,ur)}function ur(w){if(w=="}")return V.marked="string-2",V.state.tokenize=Te,S(Ln)}function Ao(w,O){return w=="variable"&&V.stream.match(/^\s*[?:]/,!1)||O=="?"?S(Ao):w==":"?S(Ue):w=="spread"?S(Ao):E(Ue)}function Yr(w,O){if(O=="<")return S(Le(">"),Nt(Ue,">"),He,Yr);if(O=="|"||w=="."||O=="&")return S(Ue);if(w=="[")return S(Ue,Fe("]"),Yr);if(O=="extends"||O=="implements")return V.marked="keyword",S(Ue);if(O=="?")return S(Ue,Fe(":"),Ue)}function Qi(w,O){if(O=="<")return S(Le(">"),Nt(Ue,">"),He,Yr)}function yi(){return E(Ue,Ca)}function Ca(w,O){if(O=="=")return S(Ue)}function wa(w,O){return O=="enum"?(V.marked="keyword",S(Mn)):E($r,zn,Rn,eo)}function $r(w,O){if(I&&zt(O))return V.marked="keyword",S($r);if(w=="variable")return be(O),S();if(w=="spread")return S($r);if(w=="[")return ei(Ji,"]");if(w=="{")return ei(gl,"}")}function gl(w,O){return w=="variable"&&!V.stream.match(/^\s*:/,!1)?(be(O),S(Rn)):(w=="variable"&&(V.marked="property"),w=="spread"?S($r):w=="}"?E():w=="["?S(Be,Fe("]"),Fe(":"),gl):S(Fe(":"),$r,Rn))}function Ji(){return E($r,Rn)}function Rn(w,O){if(O=="=")return S(Rt)}function eo(w){if(w==",")return S(wa)}function vl(w,O){if(w=="keyword b"&&O=="else")return S(Le("form","else"),rt,He)}function bl(w,O){if(O=="await")return S(bl);if(w=="(")return S(Le(")"),xa,He)}function xa(w){return w=="var"?S(wa,Ci):w=="variable"?S(Ci):E(Ci)}function Ci(w,O){return w==")"?S():w==";"?S(Ci):O=="in"||O=="of"?(V.marked="keyword",S(Be,Ci)):E(Be,Ci)}function un(w,O){if(O=="*")return V.marked="keyword",S(un);if(w=="variable")return be(O),S(un);if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,mi,rt,ot);if(I&&O=="<")return S(Le(">"),Nt(yi,">"),He,un)}function Xr(w,O){if(O=="*")return V.marked="keyword",S(Xr);if(w=="variable")return be(O),S(Xr);if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,mi,ot);if(I&&O=="<")return S(Le(">"),Nt(yi,">"),He,Xr)}function ml(w,O){if(w=="keyword"||w=="variable")return V.marked="type",S(ml);if(O=="<")return S(Le(">"),Nt(yi,">"),He)}function ti(w,O){return O=="@"&&S(Be,ti),w=="spread"?S(ti):I&&zt(O)?(V.marked="keyword",S(ti)):I&&w=="this"?S(zn,Rn):E($r,zn,Rn)}function to(w,O){return w=="variable"?Io(w,O):_n(w,O)}function Io(w,O){if(w=="variable")return be(O),S(_n)}function _n(w,O){if(O=="<")return S(Le(">"),Nt(yi,">"),He,_n);if(O=="extends"||O=="implements"||I&&w==",")return O=="implements"&&(V.marked="keyword"),S(I?Ue:Be,_n);if(w=="{")return S(Le("}"),Sn,He)}function Sn(w,O){if(w=="async"||w=="variable"&&(O=="static"||O=="get"||O=="set"||I&&zt(O))&&V.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return V.marked="keyword",S(Sn);if(w=="variable"||V.style=="keyword")return V.marked="property",S(Qr,Sn);if(w=="number"||w=="string")return S(Qr,Sn);if(w=="[")return S(Be,zn,Fe("]"),Qr,Sn);if(O=="*")return V.marked="keyword",S(Sn);if(I&&w=="(")return E(Xr,Sn);if(w==";"||w==",")return S(Sn);if(w=="}")return S();if(O=="@")return S(Be,Sn)}function Qr(w,O){if(O=="!"||O=="?")return S(Qr);if(w==":")return S(Ue,Rn);if(O=="=")return S(Rt);var Y=V.state.lexical.prev,le=Y&&Y.info=="interface";return E(le?Xr:un)}function za(w,O){return O=="*"?(V.marked="keyword",S(Zr,Fe(";"))):O=="default"?(V.marked="keyword",S(Be,Fe(";"))):w=="{"?S(Nt(La,"}"),Zr,Fe(";")):E(rt)}function La(w,O){if(O=="as")return V.marked="keyword",S(Fe("variable"));if(w=="variable")return E(Rt,La)}function It(w){return w=="string"?S():w=="("?E(Be):w=="."?E(ht):E(ke,Jr,Zr)}function ke(w,O){return w=="{"?ei(ke,"}"):(w=="variable"&&be(O),O=="*"&&(V.marked="keyword"),S(_a))}function Jr(w){if(w==",")return S(ke,Jr)}function _a(w,O){if(O=="as")return V.marked="keyword",S(ke)}function Zr(w,O){if(O=="from")return V.marked="keyword",S(Be)}function bt(w){return w=="]"?S():E(Nt(Rt,"]"))}function Mn(){return E(Le("form"),$r,Fe("{"),Le("}"),Nt(wi,"}"),He,He)}function wi(){return E($r,Rn)}function Do(w,O){return w.lastType=="operator"||w.lastType==","||Z.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function oe(w,O,Y){return O.tokenize==he&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(Y||0)))}return{startState:function(w){var O={tokenize:he,lastType:"sof",cc:[],lexical:new ve((w||0)-v,0,"block",!1),localVars:c.localVars,context:c.localVars&&new jt(null,null,!1),indented:w||0};return c.globalVars&&typeof c.globalVars=="object"&&(O.globalVars=c.globalVars),O},token:function(w,O){if(w.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=w.indentation(),qe(w,O)),O.tokenize!=Me&&w.eatSpace())return null;var Y=O.tokenize(w,O);return pe=="comment"?Y:(O.lastType=pe=="operator"&&(Se=="++"||Se=="--")?"incdec":pe,Xe(O,Y,pe,Se,w))},indent:function(w,O){if(w.tokenize==Me||w.tokenize==Te)return l.Pass;if(w.tokenize!=he)return 0;var Y=O&&O.charAt(0),le=w.lexical,Ze;if(!/^\s*else\b/.test(O))for(var ft=w.cc.length-1;ft>=0;--ft){var Ce=w.cc[ft];if(Ce==He)le=le.prev;else if(Ce!=vl&&Ce!=ot)break}for(;(le.type=="stat"||le.type=="form")&&(Y=="}"||(Ze=w.cc[w.cc.length-1])&&(Ze==ht||Ze==wt)&&!/^[,\.=+\-*:?[\(]/.test(O));)le=le.prev;m&&le.type==")"&&le.prev.type=="stat"&&(le=le.prev);var vr=le.type,Vr=Y==vr;return vr=="vardef"?le.indented+(w.lastType=="operator"||w.lastType==","?le.info.length+1:0):vr=="form"&&Y=="{"?le.indented:vr=="form"?le.indented+v:vr=="stat"?le.indented+(Do(w,O)?m||v:0):le.info=="switch"&&!Vr&&c.doubleIndentSwitch!=!1?le.indented+(/^(?:case|default)\b/.test(O)?v:2*v):le.align?le.column+(Vr?0:1):le.indented+(Vr?0:v)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:A,jsonMode:T,expressionAllowed:oe,skipExpression:function(w){Xe(w,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Bd.exports}up();var Wd={exports:{}},Ud;function Kv(){return Ud||(Ud=1,function(u,a){(function(l){l(Oo())})(function(l){l.defineMode("css",function(ve,ye){var Xe=ye.inline;ye.propertyKeywords||(ye=l.resolveMode("text/css"));var V=ve.indentUnit,E=ye.tokenHooks,S=ye.documentTypes||{},ee=ye.mediaTypes||{},be=ye.mediaFeatures||{},tt=ye.mediaValueKeywords||{},zt=ye.propertyKeywords||{},jt=ye.nonStandardPropertyKeywords||{},Et=ye.fontProperties||{},jr=ye.counterDescriptors||{},Ut=ye.colorKeywords||{},At=ye.valueKeywords||{},ot=ye.allowNested,Le=ye.lineComment,He=ye.supportsAtComponent===!0,Fe=ve.highlightNonStandardPropertyKeywords!==!1,rt,nt;function Be(F,ae){return rt=ae,F}function Rt(F,ae){var K=F.next();if(E[K]){var Ye=E[K](F,ae);if(Ye!==!1)return Ye}if(K=="@")return F.eatWhile(/[\w\\\-]/),Be("def",F.current());if(K=="="||(K=="~"||K=="|")&&F.eat("="))return Be(null,"compare");if(K=='"'||K=="'")return ae.tokenize=Ir(K),ae.tokenize(F,ae);if(K=="#")return F.eatWhile(/[\w\\\-]/),Be("atom","hash");if(K=="!")return F.match(/^\s*\w*/),Be("keyword","important");if(/\d/.test(K)||K=="."&&F.eat(/\d/))return F.eatWhile(/[\w.%]/),Be("number","unit");if(K==="-"){if(/[\d.]/.test(F.peek()))return F.eatWhile(/[\w.%]/),Be("number","unit");if(F.match(/^-[\w\\\-]*/))return F.eatWhile(/[\w\\\-]/),F.match(/^\s*:/,!1)?Be("variable-2","variable-definition"):Be("variable-2","variable");if(F.match(/^\w+-/))return Be("meta","meta")}else return/[,+>*\/]/.test(K)?Be(null,"select-op"):K=="."&&F.match(/^-?[_a-z][_a-z0-9-]*/i)?Be("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?Be(null,K):F.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(F.current())&&(ae.tokenize=Yt),Be("variable callee","variable")):/[\w\\\-]/.test(K)?(F.eatWhile(/[\w\\\-]/),Be("property","word")):Be(null,null)}function Ir(F){return function(ae,K){for(var Ye=!1,tr;(tr=ae.next())!=null;){if(tr==F&&!Ye){F==")"&&ae.backUp(1);break}Ye=!Ye&&tr=="\\"}return(tr==F||!Ye&&F!=")")&&(K.tokenize=null),Be("string","string")}}function Yt(F,ae){return F.next(),F.match(/^\s*[\"\')]/,!1)?ae.tokenize=null:ae.tokenize=Ir(")"),Be(null,"(")}function Ke(F,ae,K){this.type=F,this.indent=ae,this.prev=K}function ht(F,ae,K,Ye){return F.context=new Ke(K,ae.indentation()+(Ye===!1?0:V),F.context),K}function wt(F){return F.context.prev&&(F.context=F.context.prev),F.context.type}function Lr(F,ae,K){return Je[K.context.type](F,ae,K)}function Ur(F,ae,K,Ye){for(var tr=Ye||1;tr>0;tr--)K.context=K.context.prev;return Lr(F,ae,K)}function er(F){var ae=F.current().toLowerCase();At.hasOwnProperty(ae)?nt="atom":Ut.hasOwnProperty(ae)?nt="keyword":nt="variable"}var Je={};return Je.top=function(F,ae,K){if(F=="{")return ht(K,ae,"block");if(F=="}"&&K.context.prev)return wt(K);if(He&&/@component/i.test(F))return ht(K,ae,"atComponentBlock");if(/^@(-moz-)?document$/i.test(F))return ht(K,ae,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(F))return ht(K,ae,"atBlock");if(/^@(font-face|counter-style)/i.test(F))return K.stateArg=F,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(F))return"keyframes";if(F&&F.charAt(0)=="@")return ht(K,ae,"at");if(F=="hash")nt="builtin";else if(F=="word")nt="tag";else{if(F=="variable-definition")return"maybeprop";if(F=="interpolation")return ht(K,ae,"interpolation");if(F==":")return"pseudo";if(ot&&F=="(")return ht(K,ae,"parens")}return K.context.type},Je.block=function(F,ae,K){if(F=="word"){var Ye=ae.current().toLowerCase();return zt.hasOwnProperty(Ye)?(nt="property","maybeprop"):jt.hasOwnProperty(Ye)?(nt=Fe?"string-2":"property","maybeprop"):ot?(nt=ae.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(nt+=" error","maybeprop")}else return F=="meta"?"block":!ot&&(F=="hash"||F=="qualifier")?(nt="error","block"):Je.top(F,ae,K)},Je.maybeprop=function(F,ae,K){return F==":"?ht(K,ae,"prop"):Lr(F,ae,K)},Je.prop=function(F,ae,K){if(F==";")return wt(K);if(F=="{"&&ot)return ht(K,ae,"propBlock");if(F=="}"||F=="{")return Ur(F,ae,K);if(F=="(")return ht(K,ae,"parens");if(F=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current()))nt+=" error";else if(F=="word")er(ae);else if(F=="interpolation")return ht(K,ae,"interpolation");return"prop"},Je.propBlock=function(F,ae,K){return F=="}"?wt(K):F=="word"?(nt="property","maybeprop"):K.context.type},Je.parens=function(F,ae,K){return F=="{"||F=="}"?Ur(F,ae,K):F==")"?wt(K):F=="("?ht(K,ae,"parens"):F=="interpolation"?ht(K,ae,"interpolation"):(F=="word"&&er(ae),"parens")},Je.pseudo=function(F,ae,K){return F=="meta"?"pseudo":F=="word"?(nt="variable-3",K.context.type):Lr(F,ae,K)},Je.documentTypes=function(F,ae,K){return F=="word"&&S.hasOwnProperty(ae.current())?(nt="tag",K.context.type):Je.atBlock(F,ae,K)},Je.atBlock=function(F,ae,K){if(F=="(")return ht(K,ae,"atBlock_parens");if(F=="}"||F==";")return Ur(F,ae,K);if(F=="{")return wt(K)&&ht(K,ae,ot?"block":"top");if(F=="interpolation")return ht(K,ae,"interpolation");if(F=="word"){var Ye=ae.current().toLowerCase();Ye=="only"||Ye=="not"||Ye=="and"||Ye=="or"?nt="keyword":ee.hasOwnProperty(Ye)?nt="attribute":be.hasOwnProperty(Ye)?nt="property":tt.hasOwnProperty(Ye)?nt="keyword":zt.hasOwnProperty(Ye)?nt="property":jt.hasOwnProperty(Ye)?nt=Fe?"string-2":"property":At.hasOwnProperty(Ye)?nt="atom":Ut.hasOwnProperty(Ye)?nt="keyword":nt="error"}return K.context.type},Je.atComponentBlock=function(F,ae,K){return F=="}"?Ur(F,ae,K):F=="{"?wt(K)&&ht(K,ae,ot?"block":"top",!1):(F=="word"&&(nt="error"),K.context.type)},Je.atBlock_parens=function(F,ae,K){return F==")"?wt(K):F=="{"||F=="}"?Ur(F,ae,K,2):Je.atBlock(F,ae,K)},Je.restricted_atBlock_before=function(F,ae,K){return F=="{"?ht(K,ae,"restricted_atBlock"):F=="word"&&K.stateArg=="@counter-style"?(nt="variable","restricted_atBlock_before"):Lr(F,ae,K)},Je.restricted_atBlock=function(F,ae,K){return F=="}"?(K.stateArg=null,wt(K)):F=="word"?(K.stateArg=="@font-face"&&!Et.hasOwnProperty(ae.current().toLowerCase())||K.stateArg=="@counter-style"&&!jr.hasOwnProperty(ae.current().toLowerCase())?nt="error":nt="property","maybeprop"):"restricted_atBlock"},Je.keyframes=function(F,ae,K){return F=="word"?(nt="variable","keyframes"):F=="{"?ht(K,ae,"top"):Lr(F,ae,K)},Je.at=function(F,ae,K){return F==";"?wt(K):F=="{"||F=="}"?Ur(F,ae,K):(F=="word"?nt="tag":F=="hash"&&(nt="builtin"),"at")},Je.interpolation=function(F,ae,K){return F=="}"?wt(K):F=="{"||F==";"?Ur(F,ae,K):(F=="word"?nt="variable":F!="variable"&&F!="("&&F!=")"&&(nt="error"),"interpolation")},{startState:function(F){return{tokenize:null,state:Xe?"block":"top",stateArg:null,context:new Ke(Xe?"block":"top",F||0,null)}},token:function(F,ae){if(!ae.tokenize&&F.eatSpace())return null;var K=(ae.tokenize||Rt)(F,ae);return K&&typeof K=="object"&&(rt=K[1],K=K[0]),nt=K,rt!="comment"&&(ae.state=Je[ae.state](rt,F,ae)),nt},indent:function(F,ae){var K=F.context,Ye=ae&&ae.charAt(0),tr=K.indent;return K.type=="prop"&&(Ye=="}"||Ye==")")&&(K=K.prev),K.prev&&(Ye=="}"&&(K.type=="block"||K.type=="top"||K.type=="interpolation"||K.type=="restricted_atBlock")?(K=K.prev,tr=K.indent):(Ye==")"&&(K.type=="parens"||K.type=="atBlock_parens")||Ye=="{"&&(K.type=="at"||K.type=="atBlock"))&&(tr=Math.max(0,K.indent-V))),tr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Le,fold:"brace"}});function h(ve){for(var ye={},Xe=0;Xe<ve.length;++Xe)ye[ve[Xe].toLowerCase()]=!0;return ye}var c=["domain","regexp","url","url-prefix"],v=h(c),m=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],A=h(m),T=["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"],k=h(T),I=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],H=h(I),U=["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"],Z=h(U),re=["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"],ge=h(re),pe=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Se=h(pe),Oe=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],he=h(Oe),ce=["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"],Me=h(ce),Te=["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"],Ae=h(Te),qe=c.concat(m).concat(T).concat(I).concat(U).concat(re).concat(ce).concat(Te);l.registerHelper("hintWords","css",qe);function je(ve,ye){for(var Xe=!1,V;(V=ve.next())!=null;){if(Xe&&V=="/"){ye.tokenize=null;break}Xe=V=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:v,mediaTypes:A,mediaFeatures:k,mediaValueKeywords:H,propertyKeywords:Z,nonStandardPropertyKeywords:ge,fontProperties:Se,counterDescriptors:he,colorKeywords:Me,valueKeywords:Ae,tokenHooks:{"/":function(ve,ye){return ve.eat("*")?(ye.tokenize=je,je(ve,ye)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:A,mediaFeatures:k,mediaValueKeywords:H,propertyKeywords:Z,nonStandardPropertyKeywords:ge,colorKeywords:Me,valueKeywords:Ae,fontProperties:Se,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,ye){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(ye.tokenize=je,je(ve,ye)):["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"}),l.defineMIME("text/x-less",{mediaTypes:A,mediaFeatures:k,mediaValueKeywords:H,propertyKeywords:Z,nonStandardPropertyKeywords:ge,colorKeywords:Me,valueKeywords:Ae,fontProperties:Se,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,ye){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(ye.tokenize=je,je(ve,ye)):["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"}),l.defineMIME("text/x-gss",{documentTypes:v,mediaTypes:A,mediaFeatures:k,propertyKeywords:Z,nonStandardPropertyKeywords:ge,fontProperties:Se,counterDescriptors:he,colorKeywords:Me,valueKeywords:Ae,supportsAtComponent:!0,tokenHooks:{"/":function(ve,ye){return ve.eat("*")?(ye.tokenize=je,je(ve,ye)):!1}},name:"css",helperType:"gss"})})}()),Wd.exports}(function(u,a){(function(l){l(Oo(),qv.exports,up(),Kv())})(function(l){var h={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 c(H,U,Z){var re=H.current(),ge=re.search(U);return ge>-1?H.backUp(re.length-ge):re.match(/<\/?$/)&&(H.backUp(re.length),H.match(U,!1)||H.match(re)),Z}var v={};function m(H){var U=v[H];return U||(v[H]=new RegExp("\\s+"+H+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function A(H,U){var Z=H.match(m(U));return Z?/^\s*(.*?)\s*$/.exec(Z[2])[1]:""}function T(H,U){return new RegExp((U?"^":"")+"</s*"+H+"s*>","i")}function k(H,U){for(var Z in H)for(var re=U[Z]||(U[Z]=[]),ge=H[Z],pe=ge.length-1;pe>=0;pe--)re.unshift(ge[pe])}function I(H,U){for(var Z=0;Z<H.length;Z++){var re=H[Z];if(!re[0]||re[1].test(A(U,re[0])))return re[2]}}l.defineMode("htmlmixed",function(H,U){var Z=l.getMode(H,{name:"xml",htmlMode:!0,multilineTagIndentFactor:U.multilineTagIndentFactor,multilineTagIndentPastTag:U.multilineTagIndentPastTag,allowMissingTagName:U.allowMissingTagName}),re={},ge=U&&U.tags,pe=U&&U.scriptTypes;if(k(h,re),ge&&k(ge,re),pe)for(var Se=pe.length-1;Se>=0;Se--)re.script.unshift(["type",pe[Se].matches,pe[Se].mode]);function Oe(he,ce){var Me=Z.token(he,ce.htmlState),Te=/\btag\b/.test(Me),Ae;if(Te&&!/[<>\s\/]/.test(he.current())&&(Ae=ce.htmlState.tagName&&ce.htmlState.tagName.toLowerCase())&&re.hasOwnProperty(Ae))ce.inTag=Ae+" ";else if(ce.inTag&&Te&&/>$/.test(he.current())){var qe=/^([\S]+) (.*)/.exec(ce.inTag);ce.inTag=null;var je=he.current()==">"&&I(re[qe[1]],qe[2]),ve=l.getMode(H,je),ye=T(qe[1],!0),Xe=T(qe[1],!1);ce.token=function(V,E){return V.match(ye,!1)?(E.token=Oe,E.localState=E.localMode=null,null):c(V,Xe,E.localMode.token(V,E.localState))},ce.localMode=ve,ce.localState=l.startState(ve,Z.indent(ce.htmlState,"",""))}else ce.inTag&&(ce.inTag+=he.current(),he.eol()&&(ce.inTag+=" "));return Me}return{startState:function(){var he=l.startState(Z);return{token:Oe,inTag:null,localMode:null,localState:null,htmlState:he}},copyState:function(he){var ce;return he.localState&&(ce=l.copyState(he.localMode,he.localState)),{token:he.token,inTag:he.inTag,localMode:he.localMode,localState:ce,htmlState:l.copyState(Z,he.htmlState)}},token:function(he,ce){return ce.token(he,ce)},indent:function(he,ce,Me){return!he.localMode||/^\s*<\//.test(ce)?Z.indent(he.htmlState,ce,Me):he.localMode.indent?he.localMode.indent(he.localState,ce,Me):l.Pass},innerMode:function(he){return{state:he.localState||he.htmlState,mode:he.localMode||Z}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(u,a){(function(l){l(Oo())})(function(l){l.defineMode("solr",function(){var h=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,v=/^(OR|AND|NOT|TO)$/i;function m(H){return parseFloat(H).toString()===H}function A(H){return function(U,Z){for(var re=!1,ge;(ge=U.next())!=null&&!(ge==H&&!re);)re=!re&&ge=="\\";return re||(Z.tokenize=I),"string"}}function T(H){return function(U,Z){var re="operator";return H=="+"?re+=" positive":H=="-"?re+=" negative":H=="|"?U.eat(/\|/):H=="&"?U.eat(/\&/):H=="^"&&(re+=" boost"),Z.tokenize=I,re}}function k(H){return function(U,Z){for(var re=H;(H=U.peek())&&H.match(h)!=null;)re+=U.next();return Z.tokenize=I,v.test(re)?"operator":m(re)?"number":U.peek()==":"?"field":"string"}}function I(H,U){var Z=H.next();return Z=='"'?U.tokenize=A(Z):c.test(Z)?U.tokenize=T(Z):h.test(Z)&&(U.tokenize=k(Z)),U.tokenize!=I?U.tokenize(H,U):null}return{startState:function(){return{tokenize:I}},token:function(H,U){return H.eatSpace()?null:U.tokenize(H,U)}}}),l.defineMIME("text/x-solr","solr")})})();(function(u,a){(function(l){l(Oo())})(function(l){l.defineOption("placeholder","",function(k,I,H){var U=H&&H!=l.Init;if(I&&!U)k.on("blur",m),k.on("change",A),k.on("swapDoc",A),l.on(k.getInputField(),"compositionupdate",k.state.placeholderCompose=function(){v(k)}),A(k);else if(!I&&U){k.off("blur",m),k.off("change",A),k.off("swapDoc",A),l.off(k.getInputField(),"compositionupdate",k.state.placeholderCompose),h(k);var Z=k.getWrapperElement();Z.className=Z.className.replace(" CodeMirror-empty","")}I&&!k.hasFocus()&&m(k)});function h(k){k.state.placeholder&&(k.state.placeholder.parentNode.removeChild(k.state.placeholder),k.state.placeholder=null)}function c(k){h(k);var I=k.state.placeholder=document.createElement("pre");I.style.cssText="height: 0; overflow: visible",I.style.direction=k.getOption("direction"),I.className="CodeMirror-placeholder CodeMirror-line-like";var H=k.getOption("placeholder");typeof H=="string"&&(H=document.createTextNode(H)),I.appendChild(H),k.display.lineSpace.insertBefore(I,k.display.lineSpace.firstChild)}function v(k){setTimeout(function(){var I=!1;if(k.lineCount()==1){var H=k.getInputField();I=H.nodeName=="TEXTAREA"?!k.getLine(0).length:!/[^\u200b]/.test(H.querySelector(".CodeMirror-line").textContent)}I?c(k):h(k)},20)}function m(k){T(k)&&c(k)}function A(k){var I=k.getWrapperElement(),H=T(k);I.className=I.className.replace(" CodeMirror-empty","")+(H?" CodeMirror-empty":""),H?c(k):h(k)}function T(k){return k.lineCount()===1&&k.getLine(0)===""}})})();var jv=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor,Ms=(u,a,l,h)=>{for(var c=h>1?void 0:h?Yv(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&jv(a,l,c),c};ku.defineMode("nunjucks",(u,a)=>ku.overlayMode(ku.getMode(u,a.backdrop||"text/html"),ku.getMode(u,"jinja2")));const cp=Ee("input-code"),Xv={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends ln{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(u){this.value=u.getValue(),this.dispatchChange()}updated(){var a,l;super.updated();const u=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),u!==((a=this.editor)==null?void 0:a.isReadOnly())&&((l=this.editor)==null||l.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var h;return(h=this.editor)==null?void 0:h.refresh()})}get editorValue(){var u;return((u=this.editor)==null?void 0:u.getDoc().getValue())||""}set editorValue(u){var a;(a=this.editor)==null||a.setValue(u)}firstUpdated(){var a;const u=(a=this.shadowRoot)==null?void 0:a.querySelector(".editor");u&&(this.editor=ku.fromTextArea(u,{mode:Xv[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const h=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(h)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var u;super.disconnectedCallback(),(u=this.editor)==null||u.off("change",this.changeHandler)}renderInput(){return J`
|
|
2328
2462
|
<textarea class="editor" placeholder="${$t(this.placeholder)}">
|
|
2329
2463
|
${this.value}</textarea
|
|
2330
2464
|
>
|
|
2331
|
-
`}};exports.InputCode.styles=[...
|
|
2332
|
-
${
|
|
2465
|
+
`}};exports.InputCode.styles=[...ln.styles,me`
|
|
2466
|
+
${sl(Vv)}
|
|
2333
2467
|
|
|
2334
2468
|
:host([size="full"]) {
|
|
2335
2469
|
width: 100%;
|
|
@@ -2393,59 +2527,33 @@ ${this.value}</textarea
|
|
|
2393
2527
|
.CodeMirror pre.CodeMirror-placeholder {
|
|
2394
2528
|
color: var(--brz-color-neutral-500);
|
|
2395
2529
|
}
|
|
2396
|
-
`,
|
|
2397
|
-
* @license
|
|
2398
|
-
* Lodash <https://lodash.com/>
|
|
2399
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
2400
|
-
* Released under MIT license <https://lodash.com/license>
|
|
2401
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
2402
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
2403
|
-
*/(function(u,a){(function(){var l,h="4.17.21",f=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",k=500,I="__lodash_placeholder__",H=1,W=2,Z=4,re=1,ge=2,pe=1,Se=2,Oe=4,he=8,ce=16,Me=32,Te=64,Ae=128,qe=256,je=512,ve=30,ye="...",Xe=800,V=16,E=1,S=2,ee=3,be=1/0,tt=9007199254740991,zt=17976931348623157e292,jt=0/0,Et=4294967295,Yr=Et-1,Ut=Et>>>1,At=[["ary",Ae],["bind",pe],["bindKey",Se],["curry",he],["curryRight",ce],["flip",je],["partial",Me],["partialRight",Te],["rearg",qe]],ot="[object Arguments]",Le="[object Array]",He="[object AsyncFunction]",We="[object Boolean]",rt="[object Date]",nt="[object DOMException]",Be="[object Error]",Rt="[object Function]",Ir="[object GeneratorFunction]",Yt="[object Map]",Ke="[object Number]",ht="[object Null]",wt="[object Object]",Lr="[object Promise]",Ur="[object Proxy]",Jt="[object RegExp]",Je="[object Set]",F="[object String]",ae="[object Symbol]",K="[object Undefined]",Ye="[object WeakMap]",er="[object WeakSet]",pr="[object ArrayBuffer]",xn="[object DataView]",Dr="[object Float32Array]",Nt="[object Float64Array]",ti="[object Int8Array]",_r="[object Int16Array]",zn="[object Int32Array]",Ne="[object Uint8Array]",yi="[object Uint8ClampedArray]",gr="[object Uint16Array]",Ue="[object Uint32Array]",Gt=/\b__p \+= '';/g,Po=/\b(__p \+=) '' \+/g,sr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ln=/&(?:amp|lt|gt|quot|#39);/g,ur=/[&<>"']/g,Eo=RegExp(Ln.source),Xr=RegExp(ur.source),Qi=/<%-([\s\S]+?)%>/g,Ci=/<%([\s\S]+?)%>/g,ma=/<%=([\s\S]+?)%>/g,ya=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$r=/^\w*$/,dl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ji=/[\\^$.*+?()[\]{}|]/g,Rn=RegExp(Ji.source),eo=/^\s+/,hl=/\s/,pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ca=/\{\n\/\* \[wrapped with (.+)\] \*/,wi=/,? & /,un=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qr=/[()=,{}\[\]\/\s]/,gl=/\\(\\)?/g,ri=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,to=/\w*$/,Ao=/^[-+]0x[0-9a-f]+$/i,_n=/^0b[01]+$/i,Sn=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,wa=/^(?:0|[1-9]\d*)$/,xa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,It=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,en="\\ud800-\\udfff",za="\\u0300-\\u036f",Zr="\\ufe20-\\ufe2f",bt="\\u20d0-\\u20ff",Mn=za+Zr+bt,xi="\\u2700-\\u27bf",Io="a-z\\xdf-\\xf6\\xf8-\\xff",oe="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",O="\\u2000-\\u206f",Y=" \\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",le="A-Z\\xc0-\\xd6\\xd8-\\xde",Ze="\\ufe0e\\ufe0f",ft=oe+w+O+Y,Ce="['\u2019]",vr="["+en+"]",Vr="["+ft+"]",ni="["+Mn+"]",kn="\\d+",Uu="["+xi+"]",Ls="["+Io+"]",Do="[^"+en+ft+kn+xi+Io+le+"]",La="\\ud83c[\\udffb-\\udfff]",Zu="(?:"+ni+"|"+La+")",vl="[^"+en+"]",bl="(?:\\ud83c[\\udde6-\\uddff]){2}",ml="[\\ud800-\\udbff][\\udc00-\\udfff]",ro="["+le+"]",_s="\\u200d",Vu="(?:"+Ls+"|"+Do+")",Hc="(?:"+ro+"|"+Do+")",Ss="(?:"+Ce+"(?:d|ll|m|re|s|t|ve))?",Hn="(?:"+Ce+"(?:D|LL|M|RE|S|T|VE))?",Gu=Zu+"?",qu="["+Ze+"]?",yl="(?:"+_s+"(?:"+[vl,bl,ml].join("|")+")"+qu+Gu+")*",_a="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ku=qu+Gu+yl,Fc="(?:"+[Uu,bl,ml].join("|")+")"+Ku,Wc="(?:"+[vl+ni+"?",ni,bl,ml,vr].join("|")+")",Ms=RegExp(Ce,"g"),ju=RegExp(ni,"g"),ks=RegExp(La+"(?="+La+")|"+Wc+Ku,"g"),Yu=RegExp([ro+"?"+Ls+"+"+Ss+"(?="+[Vr,ro,"$"].join("|")+")",Hc+"+"+Hn+"(?="+[Vr,ro+Vu,"$"].join("|")+")",ro+"?"+Vu+"+"+Ss,ro+"+"+Hn,Bc,_a,kn,Fc].join("|"),"g"),Xu=RegExp("["+_s+en+Mn+Ze+"]"),Cl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wl=["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"],Os=-1,Dt={};Dt[Dr]=Dt[Nt]=Dt[ti]=Dt[_r]=Dt[zn]=Dt[Ne]=Dt[yi]=Dt[gr]=Dt[Ue]=!0,Dt[ot]=Dt[Le]=Dt[pr]=Dt[We]=Dt[xn]=Dt[rt]=Dt[Be]=Dt[Rt]=Dt[Yt]=Dt[Ke]=Dt[wt]=Dt[Jt]=Dt[Je]=Dt[F]=Dt[Ye]=!1;var Ot={};Ot[ot]=Ot[Le]=Ot[pr]=Ot[xn]=Ot[We]=Ot[rt]=Ot[Dr]=Ot[Nt]=Ot[ti]=Ot[_r]=Ot[zn]=Ot[Yt]=Ot[Ke]=Ot[wt]=Ot[Jt]=Ot[Je]=Ot[F]=Ot[ae]=Ot[Ne]=Ot[yi]=Ot[gr]=Ot[Ue]=!0,Ot[Be]=Ot[Rt]=Ot[Ye]=!1;var xl={\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"},Uc={"&":"&","<":"<",">":">",'"':""","'":"'"},Qu={"&":"&","<":"<",">":">",""":'"',"'":"'"},Bn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zc=parseFloat,Vc=parseInt,zl=typeof ds=="object"&&ds&&ds.Object===Object&&ds,Ju=typeof self=="object"&&self&&self.Object===Object&&self,Ht=zl||Ju||Function("return this")(),Sa=a&&!a.nodeType&&a,Nr=Sa&&!0&&u&&!u.nodeType&&u,Ma=Nr&&Nr.exports===Sa,ka=Ma&&zl.process,br=function(){try{var R=Nr&&Nr.require&&Nr.require("util").types;return R||ka&&ka.binding&&ka.binding("util")}catch{}}(),e0=br&&br.isArrayBuffer,t0=br&&br.isDate,r0=br&&br.isMap,n0=br&&br.isRegExp,Ts=br&&br.isSet,Ps=br&&br.isTypedArray;function tn(R,X,G){switch(G.length){case 0:return R.call(X);case 1:return R.call(X,G[0]);case 2:return R.call(X,G[0],G[1]);case 3:return R.call(X,G[0],G[1],G[2])}return R.apply(X,G)}function Gc(R,X,G,_e){for(var Qe=-1,Ct=R==null?0:R.length;++Qe<Ct;){var rr=R[Qe];X(_e,rr,G(rr),R)}return _e}function cn(R,X){for(var G=-1,_e=R==null?0:R.length;++G<_e&&X(R[G],G,R)!==!1;);return R}function qc(R,X){for(var G=R==null?0:R.length;G--&&X(R[G],G,R)!==!1;);return R}function Es(R,X){for(var G=-1,_e=R==null?0:R.length;++G<_e;)if(!X(R[G],G,R))return!1;return!0}function zi(R,X){for(var G=-1,_e=R==null?0:R.length,Qe=0,Ct=[];++G<_e;){var rr=R[G];X(rr,G,R)&&(Ct[Qe++]=rr)}return Ct}function Oa(R,X){var G=R==null?0:R.length;return!!G&&io(R,X,0)>-1}function $o(R,X,G){for(var _e=-1,Qe=R==null?0:R.length;++_e<Qe;)if(G(X,R[_e]))return!0;return!1}function Lt(R,X){for(var G=-1,_e=R==null?0:R.length,Qe=Array(_e);++G<_e;)Qe[G]=X(R[G],G,R);return Qe}function Li(R,X){for(var G=-1,_e=X.length,Qe=R.length;++G<_e;)R[Qe+G]=X[G];return R}function As(R,X,G,_e){var Qe=-1,Ct=R==null?0:R.length;for(_e&&Ct&&(G=R[++Qe]);++Qe<Ct;)G=X(G,R[Qe],Qe,R);return G}function Kc(R,X,G,_e){var Qe=R==null?0:R.length;for(_e&&Qe&&(G=R[--Qe]);Qe--;)G=X(G,R[Qe],Qe,R);return G}function no(R,X){for(var G=-1,_e=R==null?0:R.length;++G<_e;)if(X(R[G],G,R))return!0;return!1}var tr=Ds("length");function jc(R){return R.split("")}function i0(R){return R.match(un)||[]}function No(R,X,G){var _e;return G(R,function(Qe,Ct,rr){if(X(Qe,Ct,rr))return _e=Ct,!1}),_e}function Ll(R,X,G,_e){for(var Qe=R.length,Ct=G+(_e?1:-1);_e?Ct--:++Ct<Qe;)if(X(R[Ct],Ct,R))return Ct;return-1}function io(R,X,G){return X===X?f0(R,X,G):Ll(R,_l,G)}function Yc(R,X,G,_e){for(var Qe=G-1,Ct=R.length;++Qe<Ct;)if(_e(R[Qe],X))return Qe;return-1}function _l(R){return R!==R}function Is(R,X){var G=R==null?0:R.length;return G?Rs(R,X)/G:jt}function Ds(R){return function(X){return X==null?l:X[R]}}function $s(R){return function(X){return R==null?l:R[X]}}function Ns(R,X,G,_e,Qe){return Qe(R,function(Ct,rr,gt){G=_e?(_e=!1,Ct):X(G,Ct,rr,gt)}),G}function o0(R,X){var G=R.length;for(R.sort(X);G--;)R[G]=R[G].value;return R}function Rs(R,X){for(var G,_e=-1,Qe=R.length;++_e<Qe;){var Ct=X(R[_e]);Ct!==l&&(G=G===l?Ct:G+Ct)}return G}function oo(R,X){for(var G=-1,_e=Array(R);++G<R;)_e[G]=X(G);return _e}function ii(R,X){return Lt(X,function(G){return[G,R[G]]})}function Ta(R){return R&&R.slice(0,Tl(R)+1).replace(eo,"")}function Rr(R){return function(X){return R(X)}}function Sl(R,X){return Lt(X,function(G){return R[G]})}function Gr(R,X){return R.has(X)}function _i(R,X){for(var G=-1,_e=R.length;++G<_e&&io(X,R[G],0)>-1;);return G}function Ml(R,X){for(var G=R.length;G--&&io(X,R[G],0)>-1;);return G}function Xc(R,X){for(var G=R.length,_e=0;G--;)R[G]===X&&++_e;return _e}var a0=$s(xl),Qc=$s(Uc);function l0(R){return"\\"+Bn[R]}function Hs(R,X){return R==null?l:R[X]}function On(R){return Xu.test(R)}function Fn(R){return Cl.test(R)}function s0(R){for(var X,G=[];!(X=R.next()).done;)G.push(X.value);return G}function kl(R){var X=-1,G=Array(R.size);return R.forEach(function(_e,Qe){G[++X]=[Qe,_e]}),G}function u0(R,X){return function(G){return R(X(G))}}function Si(R,X){for(var G=-1,_e=R.length,Qe=0,Ct=[];++G<_e;){var rr=R[G];(rr===X||rr===I)&&(R[G]=I,Ct[Qe++]=G)}return Ct}function Ol(R){var X=-1,G=Array(R.size);return R.forEach(function(_e){G[++X]=_e}),G}function c0(R){var X=-1,G=Array(R.size);return R.forEach(function(_e){G[++X]=[_e,_e]}),G}function f0(R,X,G){for(var _e=G-1,Qe=R.length;++_e<Qe;)if(R[_e]===X)return _e;return-1}function Pa(R,X,G){for(var _e=G+1;_e--;)if(R[_e]===X)return _e;return _e}function ao(R){return On(R)?d0(R):tr(R)}function fn(R){return On(R)?El(R):jc(R)}function Tl(R){for(var X=R.length;X--&&hl.test(R.charAt(X)););return X}var Pl=$s(Qu);function d0(R){for(var X=ks.lastIndex=0;ks.test(R);)++X;return X}function El(R){return R.match(ks)||[]}function Tn(R){return R.match(Yu)||[]}var h0=function R(X){X=X==null?Ht:Mi.defaults(Ht.Object(),X,Mi.pick(Ht,wl));var G=X.Array,_e=X.Date,Qe=X.Error,Ct=X.Function,rr=X.Math,gt=X.Object,ki=X.RegExp,Ro=X.String,qr=X.TypeError,Ho=G.prototype,p0=Ct.prototype,Oi=gt.prototype,Wn=X["__core-js_shared__"],Un=p0.toString,et=Oi.hasOwnProperty,Ti=0,oi=function(){var r=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),lo=Oi.toString,Jc=Un.call(gt),g0=Ht._,Ea=ki("^"+Un.call(et).replace(Ji,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Aa=Ma?X.Buffer:l,ai=X.Symbol,so=X.Uint8Array,v0=Aa?Aa.allocUnsafe:l,Bo=u0(gt.getPrototypeOf,gt),Bs=gt.create,Al=Oi.propertyIsEnumerable,Fo=Ho.splice,uo=ai?ai.isConcatSpreadable:l,Pi=ai?ai.iterator:l,Ei=ai?ai.toStringTag:l,co=function(){try{var r=Co(gt,"defineProperty");return r({},"",{}),r}catch{}}(),e1=X.clearTimeout!==Ht.clearTimeout&&X.clearTimeout,t1=_e&&_e.now!==Ht.Date.now&&_e.now,r1=X.setTimeout!==Ht.setTimeout&&X.setTimeout,Wo=rr.ceil,Uo=rr.floor,Ai=gt.getOwnPropertySymbols,Ia=Aa?Aa.isBuffer:l,b0=X.isFinite,Il=Ho.join,m0=u0(gt.keys,gt),Bt=rr.max,mr=rr.min,fo=_e.now,Da=X.parseInt,Ii=rr.random,$a=Ho.reverse,Di=Co(X,"DataView"),Zo=Co(X,"Map"),Dl=Co(X,"Promise"),ho=Co(X,"Set"),Na=Co(X,"WeakMap"),Pn=Co(gt,"create"),Zn=Na&&new Na,Vo={},n1=Tt(Di),i1=Tt(Zo),o1=Tt(Dl),a1=Tt(ho),l1=Tt(Na),yr=ai?ai.prototype:l,Ft=yr?yr.valueOf:l,Cr=yr?yr.toString:l;function z(r){if(Qt(r)&&!at(r)&&!(r instanceof dt)){if(r instanceof Hr)return r;if(et.call(r,"__wrapped__"))return Pr(r)}return new Hr(r)}var Vn=function(){function r(){}return function(o){if(!Kt(o))return{};if(Bs)return Bs(o);r.prototype=o;var c=new r;return r.prototype=l,c}}();function $l(){}function Hr(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=l}z.templateSettings={escape:Qi,evaluate:Ci,interpolate:ma,variable:"",imports:{_:z}},z.prototype=$l.prototype,z.prototype.constructor=z,Hr.prototype=Vn($l.prototype),Hr.prototype.constructor=Hr;function dt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Et,this.__views__=[]}function s1(){var r=new dt(this.__wrapped__);return r.__actions__=dr(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=dr(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=dr(this.__views__),r}function u1(){if(this.__filtered__){var r=new dt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Fs(){var r=this.__wrapped__.value(),o=this.__dir__,c=at(r),g=o<0,x=c?r.length:0,L=as(0,x,this.__views__),P=L.start,D=L.end,B=D-P,ne=g?D:P-1,ie=this.__iteratees__,se=ie.length,ze=0,$e=mr(B,this.__takeCount__);if(!c||!g&&x==B&&$e==B)return H0(r,this.__actions__);var Ve=[];e:for(;B--&&ze<$e;){ne+=o;for(var ct=-1,Ge=r[ne];++ct<se;){var pt=ie[ct],vt=pt.iteratee,In=pt.type,ln=vt(Ge);if(In==S)Ge=ln;else if(!ln){if(In==E)continue e;break e}}Ve[ze++]=Ge}return Ve}dt.prototype=Vn($l.prototype),dt.prototype.constructor=dt;function $i(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var g=r[o];this.set(g[0],g[1])}}function Ws(){this.__data__=Pn?Pn(null):{},this.size=0}function c1(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function Us(r){var o=this.__data__;if(Pn){var c=o[r];return c===T?l:c}return et.call(o,r)?o[r]:l}function Zs(r){var o=this.__data__;return Pn?o[r]!==l:et.call(o,r)}function y0(r,o){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=Pn&&o===l?T:o,this}$i.prototype.clear=Ws,$i.prototype.delete=c1,$i.prototype.get=Us,$i.prototype.has=Zs,$i.prototype.set=y0;function Gn(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var g=r[o];this.set(g[0],g[1])}}function Vs(){this.__data__=[],this.size=0}function C0(r){var o=this.__data__,c=po(o,r);if(c<0)return!1;var g=o.length-1;return c==g?o.pop():Fo.call(o,c,1),--this.size,!0}function Ra(r){var o=this.__data__,c=po(o,r);return c<0?l:o[c][1]}function f1(r){return po(this.__data__,r)>-1}function Nl(r,o){var c=this.__data__,g=po(c,r);return g<0?(++this.size,c.push([r,o])):c[g][1]=o,this}Gn.prototype.clear=Vs,Gn.prototype.delete=C0,Gn.prototype.get=Ra,Gn.prototype.has=f1,Gn.prototype.set=Nl;function qt(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var g=r[o];this.set(g[0],g[1])}}function w0(){this.size=0,this.__data__={hash:new $i,map:new(Zo||Gn),string:new $i}}function d1(r){var o=os(this,r).delete(r);return this.size-=o?1:0,o}function x0(r){return os(this,r).get(r)}function rn(r){return os(this,r).has(r)}function mt(r,o){var c=os(this,r),g=c.size;return c.set(r,o),this.size+=c.size==g?0:1,this}qt.prototype.clear=w0,qt.prototype.delete=d1,qt.prototype.get=x0,qt.prototype.has=rn,qt.prototype.set=mt;function wr(r){var o=-1,c=r==null?0:r.length;for(this.__data__=new qt;++o<c;)this.add(r[o])}function Ni(r){return this.__data__.set(r,T),this}function Ri(r){return this.__data__.has(r)}wr.prototype.add=wr.prototype.push=Ni,wr.prototype.has=Ri;function dn(r){var o=this.__data__=new Gn(r);this.size=o.size}function Gs(){this.__data__=new Gn,this.size=0}function z0(r){var o=this.__data__,c=o.delete(r);return this.size=o.size,c}function h1(r){return this.__data__.get(r)}function qs(r){return this.__data__.has(r)}function Ha(r,o){var c=this.__data__;if(c instanceof Gn){var g=c.__data__;if(!Zo||g.length<f-1)return g.push([r,o]),this.size=++c.size,this;c=this.__data__=new qt(g)}return c.set(r,o),this.size=c.size,this}dn.prototype.clear=Gs,dn.prototype.delete=z0,dn.prototype.get=h1,dn.prototype.has=qs,dn.prototype.set=Ha;function Ks(r,o){var c=at(r),g=!c&&el(r),x=!c&&!g&&ca(r),L=!c&&!g&&!x&&ss(r),P=c||g||x||L,D=P?oo(r.length,Ro):[],B=D.length;for(var ne in r)(o||et.call(r,ne))&&!(P&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||L&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||b(ne,B)))&&D.push(ne);return D}function Rl(r){var o=r.length;return o?r[jl(0,o-1)]:l}function Hi(r,o){return hr(dr(r),go(o,0,r.length))}function L0(r){return hr(dr(r))}function Hl(r,o,c){(c!==l&&!di(r[o],c)||c===l&&!(o in r))&&qn(r,o,c)}function Ba(r,o,c){var g=r[o];(!(et.call(r,o)&&di(g,c))||c===l&&!(o in r))&&qn(r,o,c)}function po(r,o){for(var c=r.length;c--;)if(di(r[c][0],o))return c;return-1}function js(r,o,c,g){return nn(r,function(x,L,P){o(g,x,c(x),P)}),g}function Ys(r,o){return r&&Kr(o,Ar(o),r)}function p1(r,o){return r&&Kr(o,bn(o),r)}function qn(r,o,c){o=="__proto__"&&co?co(r,o,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[o]=c}function Xs(r,o){for(var c=-1,g=o.length,x=G(g),L=r==null;++c<g;)x[c]=L?l:T1(r,o[c]);return x}function go(r,o,c){return r===r&&(c!==l&&(r=r<=c?r:c),o!==l&&(r=r>=o?r:o)),r}function Br(r,o,c,g,x,L){var P,D=o&H,B=o&W,ne=o&Z;if(c&&(P=x?c(r,g,x,L):c(r)),P!==l)return P;if(!Kt(r))return r;var ie=at(r);if(ie){if(P=i(r),!D)return dr(r,P)}else{var se=kr(r),ze=se==Rt||se==Ir;if(ca(r))return su(r,D);if(se==wt||se==ot||ze&&!x){if(P=B||ze?{}:n(r),!D)return B?Z0(r,p1(P,r)):x1(r,Ys(P,r))}else{if(!Ot[se])return x?r:{};P=s(r,se,D)}}L||(L=new dn);var $e=L.get(r);if($e)return $e;L.set(r,P),Yf(r)?r.forEach(function(Ge){P.add(Br(Ge,o,c,Ge,r,L))}):Kf(r)&&r.forEach(function(Ge,pt){P.set(pt,Br(Ge,o,c,pt,r,L))});var Ve=ne?B?is:Qa:B?bn:Ar,ct=ie?l:Ve(r);return cn(ct||r,function(Ge,pt){ct&&(pt=Ge,Ge=r[pt]),Ba(P,pt,Br(Ge,o,c,pt,r,L))}),P}function _0(r){var o=Ar(r);return function(c){return S0(c,r,o)}}function S0(r,o,c){var g=c.length;if(r==null)return!g;for(r=gt(r);g--;){var x=c[g],L=o[x],P=r[x];if(P===l&&!(x in r)||!L(P))return!1}return!0}function M0(r,o,c){if(typeof r!="function")throw new qr(y);return Mt(function(){r.apply(l,c)},o)}function Go(r,o,c,g){var x=-1,L=Oa,P=!0,D=r.length,B=[],ne=o.length;if(!D)return B;c&&(o=Lt(o,Rr(c))),g?(L=$o,P=!1):o.length>=f&&(L=Gr,P=!1,o=new wr(o));e:for(;++x<D;){var ie=r[x],se=c==null?ie:c(ie);if(ie=g||ie!==0?ie:0,P&&se===se){for(var ze=ne;ze--;)if(o[ze]===se)continue e;B.push(ie)}else L(o,se,g)||B.push(ie)}return B}var nn=V0(on),Bl=V0(Ul,!0);function Fl(r,o){var c=!0;return nn(r,function(g,x,L){return c=!!o(g,x,L),c}),c}function Fa(r,o,c){for(var g=-1,x=r.length;++g<x;){var L=r[g],P=o(L);if(P!=null&&(D===l?P===P&&!An(P):c(P,D)))var D=P,B=L}return B}function Qs(r,o,c,g){var x=r.length;for(c=st(c),c<0&&(c=-c>x?0:x+c),g=g===l||g>x?x:st(g),g<0&&(g+=x),g=c>g?0:Qf(g);c<g;)r[c++]=o;return r}function Js(r,o){var c=[];return nn(r,function(g,x,L){o(g,x,L)&&c.push(g)}),c}function xr(r,o,c,g,x){var L=-1,P=r.length;for(c||(c=p),x||(x=[]);++L<P;){var D=r[L];o>0&&c(D)?o>1?xr(D,o-1,c,g,x):Li(x,D):g||(x[x.length]=D)}return x}var Wl=G0(),cr=G0(!0);function on(r,o){return r&&Wl(r,o,Ar)}function Ul(r,o){return r&&cr(r,o,Ar)}function Wa(r,o){return zi(o,function(c){return zo(r[c])})}function Bi(r,o){o=En(o,r);for(var c=0,g=o.length;r!=null&&c<g;)r=r[_t(o[c++])];return c&&c==g?r:l}function vo(r,o,c){var g=o(r);return at(r)?g:Li(g,c(r))}function fr(r){return r==null?r===l?K:ht:Ei&&Ei in gt(r)?Zt(r):xe(r)}function Zl(r,o){return r>o}function k0(r,o){return r!=null&&et.call(r,o)}function O0(r,o){return r!=null&&o in gt(r)}function qo(r,o,c){return r>=mr(o,c)&&r<Bt(o,c)}function Vl(r,o,c){for(var g=c?$o:Oa,x=r[0].length,L=r.length,P=L,D=G(L),B=1/0,ne=[];P--;){var ie=r[P];P&&o&&(ie=Lt(ie,Rr(o))),B=mr(ie.length,B),D[P]=!c&&(o||x>=120&&ie.length>=120)?new wr(P&&ie):l}ie=r[0];var se=-1,ze=D[0];e:for(;++se<x&&ne.length<B;){var $e=ie[se],Ve=o?o($e):$e;if($e=c||$e!==0?$e:0,!(ze?Gr(ze,Ve):g(ne,Ve,c))){for(P=L;--P;){var ct=D[P];if(!(ct?Gr(ct,Ve):g(r[P],Ve,c)))continue e}ze&&ze.push(Ve),ne.push($e)}}return ne}function Gl(r,o,c,g){return on(r,function(x,L,P){o(g,c(x),L,P)}),g}function Ko(r,o,c){o=En(o,r),r=Pe(r,o);var g=r==null?r:r[_t(jn(o))];return g==null?l:tn(g,r,c)}function jo(r){return Qt(r)&&fr(r)==ot}function g1(r){return Qt(r)&&fr(r)==pr}function Yo(r){return Qt(r)&&fr(r)==rt}function Xo(r,o,c,g,x){return r===o?!0:r==null||o==null||!Qt(r)&&!Qt(o)?r!==r&&o!==o:T0(r,o,c,g,Xo,x)}function T0(r,o,c,g,x,L){var P=at(r),D=at(o),B=P?Le:kr(r),ne=D?Le:kr(o);B=B==ot?wt:B,ne=ne==ot?wt:ne;var ie=B==wt,se=ne==wt,ze=B==ne;if(ze&&ca(r)){if(!ca(o))return!1;P=!0,ie=!1}if(ze&&!ie)return L||(L=new dn),P||ss(r)?pu(r,o,c,g,x,L):J0(r,o,B,c,g,x,L);if(!(c&re)){var $e=ie&&et.call(r,"__wrapped__"),Ve=se&&et.call(o,"__wrapped__");if($e||Ve){var ct=$e?r.value():r,Ge=Ve?o.value():o;return L||(L=new dn),x(ct,Ge,c,g,L)}}return ze?(L||(L=new dn),ec(r,o,c,g,x,L)):!1}function P0(r){return Qt(r)&&kr(r)==Yt}function bo(r,o,c,g){var x=c.length,L=x,P=!g;if(r==null)return!L;for(r=gt(r);x--;){var D=c[x];if(P&&D[2]?D[1]!==r[D[0]]:!(D[0]in r))return!1}for(;++x<L;){D=c[x];var B=D[0],ne=r[B],ie=D[1];if(P&&D[2]){if(ne===l&&!(B in r))return!1}else{var se=new dn;if(g)var ze=g(ne,ie,B,r,o,se);if(!(ze===l?Xo(ie,ne,re|ge,g,se):ze))return!1}}return!0}function Qo(r){if(!Kt(r)||N(r))return!1;var o=zo(r)?Ea:Sn;return o.test(Tt(r))}function Ua(r){return Qt(r)&&fr(r)==Jt}function Za(r){return Qt(r)&&kr(r)==Je}function E0(r){return Qt(r)&&lc(r.length)&&!!Dt[fr(r)]}function A0(r){return typeof r=="function"?r:r==null?mn:typeof r=="object"?at(r)?eu(r[0],r[1]):I0(r):ud(r)}function ql(r){if(!q(r))return m0(r);var o=[];for(var c in gt(r))et.call(r,c)&&c!="constructor"&&o.push(c);return o}function Fi(r){if(!Kt(r))return de(r);var o=q(r),c=[];for(var g in r)g=="constructor"&&(o||!et.call(r,g))||c.push(g);return c}function Wi(r,o){return r<o}function Jo(r,o){var c=-1,g=vn(r)?G(r.length):[];return nn(r,function(x,L,P){g[++c]=o(x,L,P)}),g}function I0(r){var o=la(r);return o.length==1&&o[0][2]?ue(o[0][0],o[0][1]):function(c){return c===r||bo(c,r,o)}}function eu(r,o){return C(r)&&te(o)?ue(_t(r),o):function(c){var g=T1(c,r);return g===l&&g===o?P1(c,r):Xo(o,g,re|ge)}}function Kl(r,o,c,g,x){r!==o&&Wl(o,function(L,P){if(x||(x=new dn),Kt(L))v1(r,o,P,c,Kl,g,x);else{var D=g?g(xt(r,P),L,P+"",r,o,x):l;D===l&&(D=L),Hl(r,P,D)}},bn)}function v1(r,o,c,g,x,L,P){var D=xt(r,c),B=xt(o,c),ne=P.get(B);if(ne){Hl(r,c,ne);return}var ie=L?L(D,B,c+"",r,o,P):l,se=ie===l;if(se){var ze=at(B),$e=!ze&&ca(B),Ve=!ze&&!$e&&ss(B);ie=B,ze||$e||Ve?at(D)?ie=D:or(D)?ie=dr(D):$e?(se=!1,ie=su(B,!0)):Ve?(se=!1,ie=F0(B,!0)):ie=[]:bu(B)||el(B)?(ie=D,el(D)?ie=Jf(D):(!Kt(D)||zo(D))&&(ie=n(B))):se=!1}se&&(P.set(B,ie),x(ie,B,g,L,P),P.delete(B)),Hl(r,c,ie)}function D0(r,o){var c=r.length;if(!!c)return o+=o<0?c:0,b(o,c)?r[o]:l}function Sr(r,o,c){o.length?o=Lt(o,function(L){return at(L)?function(P){return Bi(P,L.length===1?L[0]:L)}:L}):o=[mn];var g=-1;o=Lt(o,Rr(Re()));var x=Jo(r,function(L,P,D){var B=Lt(o,function(ne){return ne(L)});return{criteria:B,index:++g,value:L}});return o0(x,function(L,P){return W0(L,P,c)})}function $0(r,o){return N0(r,o,function(c,g){return P1(r,g)})}function N0(r,o,c){for(var g=-1,x=o.length,L={};++g<x;){var P=o[g],D=Bi(r,P);c(D,P)&&li(L,En(P,r),D)}return L}function b1(r){return function(o){return Bi(o,r)}}function tu(r,o,c,g){var x=g?Yc:io,L=-1,P=o.length,D=r;for(r===o&&(o=dr(o)),c&&(D=Lt(r,Rr(c)));++L<P;)for(var B=0,ne=o[L],ie=c?c(ne):ne;(B=x(D,ie,B,g))>-1;)D!==r&&Fo.call(D,B,1),Fo.call(r,B,1);return r}function ru(r,o){for(var c=r?o.length:0,g=c-1;c--;){var x=o[c];if(c==g||x!==L){var L=x;b(x)?Fo.call(r,x,1):qa(r,x)}}return r}function jl(r,o){return r+Uo(Ii()*(o-r+1))}function R0(r,o,c,g){for(var x=-1,L=Bt(Wo((o-r)/(c||1)),0),P=G(L);L--;)P[g?L:++x]=r,r+=c;return P}function nu(r,o){var c="";if(!r||o<1||o>tt)return c;do o%2&&(c+=r),o=Uo(o/2),o&&(r+=r);while(o);return c}function lt(r,o){return Or(De(r,o,mn),r+"")}function m1(r){return Rl(us(r))}function Ui(r,o){var c=us(r);return hr(c,go(o,0,c.length))}function li(r,o,c,g){if(!Kt(r))return r;o=En(o,r);for(var x=-1,L=o.length,P=L-1,D=r;D!=null&&++x<L;){var B=_t(o[x]),ne=c;if(B==="__proto__"||B==="constructor"||B==="prototype")return r;if(x!=P){var ie=D[B];ne=g?g(ie,B,D):l,ne===l&&(ne=Kt(ie)?ie:b(o[x+1])?[]:{})}Ba(D,B,ne),D=D[B]}return r}var Va=Zn?function(r,o){return Zn.set(r,o),r}:mn,Ga=co?function(r,o){return co(r,"toString",{configurable:!0,enumerable:!1,value:A1(o),writable:!0})}:mn;function si(r){return hr(us(r))}function hn(r,o,c){var g=-1,x=r.length;o<0&&(o=-o>x?0:x+o),c=c>x?x:c,c<0&&(c+=x),x=o>c?0:c-o>>>0,o>>>=0;for(var L=G(x);++g<x;)L[g]=r[g+o];return L}function y1(r,o){var c;return nn(r,function(g,x,L){return c=o(g,x,L),!c}),!!c}function ui(r,o,c){var g=0,x=r==null?g:r.length;if(typeof o=="number"&&o===o&&x<=Ut){for(;g<x;){var L=g+x>>>1,P=r[L];P!==null&&!An(P)&&(c?P<=o:P<o)?g=L+1:x=L}return x}return Yl(r,o,mn,c)}function Yl(r,o,c,g){var x=0,L=r==null?0:r.length;if(L===0)return 0;o=c(o);for(var P=o!==o,D=o===null,B=An(o),ne=o===l;x<L;){var ie=Uo((x+L)/2),se=c(r[ie]),ze=se!==l,$e=se===null,Ve=se===se,ct=An(se);if(P)var Ge=g||Ve;else ne?Ge=Ve&&(g||ze):D?Ge=Ve&&ze&&(g||!$e):B?Ge=Ve&&ze&&!$e&&(g||!ct):$e||ct?Ge=!1:Ge=g?se<=o:se<o;Ge?x=ie+1:L=ie}return mr(L,Yr)}function iu(r,o){for(var c=-1,g=r.length,x=0,L=[];++c<g;){var P=r[c],D=o?o(P):P;if(!c||!di(D,B)){var B=D;L[x++]=P===0?0:P}}return L}function ou(r){return typeof r=="number"?r:An(r)?jt:+r}function Mr(r){if(typeof r=="string")return r;if(at(r))return Lt(r,Mr)+"";if(An(r))return Cr?Cr.call(r):"";var o=r+"";return o=="0"&&1/r==-be?"-0":o}function an(r,o,c){var g=-1,x=Oa,L=r.length,P=!0,D=[],B=D;if(c)P=!1,x=$o;else if(L>=f){var ne=o?null:Xa(r);if(ne)return Ol(ne);P=!1,x=Gr,B=new wr}else B=o?[]:D;e:for(;++g<L;){var ie=r[g],se=o?o(ie):ie;if(ie=c||ie!==0?ie:0,P&&se===se){for(var ze=B.length;ze--;)if(B[ze]===se)continue e;o&&B.push(se),D.push(ie)}else x(B,se,c)||(B!==D&&B.push(se),D.push(ie))}return D}function qa(r,o){return o=En(o,r),r=Pe(r,o),r==null||delete r[_t(jn(o))]}function Xl(r,o,c,g){return li(r,o,c(Bi(r,o)),g)}function ea(r,o,c,g){for(var x=r.length,L=g?x:-1;(g?L--:++L<x)&&o(r[L],L,r););return c?hn(r,g?0:L,g?L+1:x):hn(r,g?L+1:0,g?x:L)}function H0(r,o){var c=r;return c instanceof dt&&(c=c.value()),As(o,function(g,x){return x.func.apply(x.thisArg,Li([g],x.args))},c)}function mo(r,o,c){var g=r.length;if(g<2)return g?an(r[0]):[];for(var x=-1,L=G(g);++x<g;)for(var P=r[x],D=-1;++D<g;)D!=x&&(L[x]=Go(L[x]||P,r[D],o,c));return an(xr(L,1),o,c)}function au(r,o,c){for(var g=-1,x=r.length,L=o.length,P={};++g<x;){var D=g<L?o[g]:l;c(P,r[g],D)}return P}function lu(r){return or(r)?r:[]}function Ql(r){return typeof r=="function"?r:mn}function En(r,o){return at(r)?r:C(r,o)?[r]:nr(kt(r))}var C1=lt;function Zi(r,o,c){var g=r.length;return c=c===l?g:c,!o&&c>=g?r:hn(r,o,c)}var ta=e1||function(r){return Ht.clearTimeout(r)};function su(r,o){if(o)return r.slice();var c=r.length,g=v0?v0(c):new r.constructor(c);return r.copy(g),g}function Jl(r){var o=new r.constructor(r.byteLength);return new so(o).set(new so(r)),o}function w1(r,o){var c=o?Jl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function uu(r){var o=new r.constructor(r.source,to.exec(r));return o.lastIndex=r.lastIndex,o}function B0(r){return Ft?gt(Ft.call(r)):{}}function F0(r,o){var c=o?Jl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function cu(r,o){if(r!==o){var c=r!==l,g=r===null,x=r===r,L=An(r),P=o!==l,D=o===null,B=o===o,ne=An(o);if(!D&&!ne&&!L&&r>o||L&&P&&B&&!D&&!ne||g&&P&&B||!c&&B||!x)return 1;if(!g&&!L&&!ne&&r<o||ne&&c&&x&&!g&&!L||D&&c&&x||!P&&x||!B)return-1}return 0}function W0(r,o,c){for(var g=-1,x=r.criteria,L=o.criteria,P=x.length,D=c.length;++g<P;){var B=cu(x[g],L[g]);if(B){if(g>=D)return B;var ne=c[g];return B*(ne=="desc"?-1:1)}}return r.index-o.index}function U0(r,o,c,g){for(var x=-1,L=r.length,P=c.length,D=-1,B=o.length,ne=Bt(L-P,0),ie=G(B+ne),se=!g;++D<B;)ie[D]=o[D];for(;++x<P;)(se||x<L)&&(ie[c[x]]=r[x]);for(;ne--;)ie[D++]=r[x++];return ie}function es(r,o,c,g){for(var x=-1,L=r.length,P=-1,D=c.length,B=-1,ne=o.length,ie=Bt(L-D,0),se=G(ie+ne),ze=!g;++x<ie;)se[x]=r[x];for(var $e=x;++B<ne;)se[$e+B]=o[B];for(;++P<D;)(ze||x<L)&&(se[$e+c[P]]=r[x++]);return se}function dr(r,o){var c=-1,g=r.length;for(o||(o=G(g));++c<g;)o[c]=r[c];return o}function Kr(r,o,c,g){var x=!c;c||(c={});for(var L=-1,P=o.length;++L<P;){var D=o[L],B=g?g(c[D],r[D],D,c,r):l;B===l&&(B=r[D]),x?qn(c,D,B):Ba(c,D,B)}return c}function x1(r,o){return Kr(r,gu(r),o)}function Z0(r,o){return Kr(r,tc(r),o)}function ts(r,o){return function(c,g){var x=at(c)?Gc:js,L=o?o():{};return x(c,r,Re(g,2),L)}}function ra(r){return lt(function(o,c){var g=-1,x=c.length,L=x>1?c[x-1]:l,P=x>2?c[2]:l;for(L=r.length>3&&typeof L=="function"?(x--,L):l,P&&m(c[0],c[1],P)&&(L=x<3?l:L,x=1),o=gt(o);++g<x;){var D=c[g];D&&r(o,D,g,L)}return o})}function V0(r,o){return function(c,g){if(c==null)return c;if(!vn(c))return r(c,g);for(var x=c.length,L=o?x:-1,P=gt(c);(o?L--:++L<x)&&g(P[L],L,P)!==!1;);return c}}function G0(r){return function(o,c,g){for(var x=-1,L=gt(o),P=g(o),D=P.length;D--;){var B=P[r?D:++x];if(c(L[B],B,L)===!1)break}return o}}function q0(r,o,c){var g=o&pe,x=ia(r);function L(){var P=this&&this!==Ht&&this instanceof L?x:r;return P.apply(g?c:this,arguments)}return L}function K0(r){return function(o){o=kt(o);var c=On(o)?fn(o):l,g=c?c[0]:o.charAt(0),x=c?Zi(c,1).join(""):o.slice(1);return g[r]()+x}}function na(r){return function(o){return As(ld(ad(o).replace(Ms,"")),r,"")}}function ia(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var c=Vn(r.prototype),g=r.apply(c,o);return Kt(g)?g:c}}function fu(r,o,c){var g=ia(r);function x(){for(var L=arguments.length,P=G(L),D=L,B=aa(x);D--;)P[D]=arguments[D];var ne=L<3&&P[0]!==B&&P[L-1]!==B?[]:Si(P,B);if(L-=ne.length,L<c)return X0(r,o,Ka,x.placeholder,l,P,ne,l,l,c-L);var ie=this&&this!==Ht&&this instanceof x?g:r;return tn(ie,this,P)}return x}function du(r){return function(o,c,g){var x=gt(o);if(!vn(o)){var L=Re(c,3);o=Ar(o),c=function(D){return L(x[D],D,x)}}var P=r(o,c,g);return P>-1?x[L?o[P]:P]:l}}function j0(r){return ci(function(o){var c=o.length,g=c,x=Hr.prototype.thru;for(r&&o.reverse();g--;){var L=o[g];if(typeof L!="function")throw new qr(y);if(x&&!P&&Ja(L)=="wrapper")var P=new Hr([],!0)}for(g=P?g:c;++g<c;){L=o[g];var D=Ja(L),B=D=="wrapper"?yt(L):l;B&&M(B[0])&&B[1]==(Ae|he|Me|qe)&&!B[4].length&&B[9]==1?P=P[Ja(B[0])].apply(P,B[3]):P=L.length==1&&M(L)?P[D]():P.thru(L)}return function(){var ne=arguments,ie=ne[0];if(P&&ne.length==1&&at(ie))return P.plant(ie).value();for(var se=0,ze=c?o[se].apply(this,ne):ie;++se<c;)ze=o[se].call(this,ze);return ze}})}function Ka(r,o,c,g,x,L,P,D,B,ne){var ie=o&Ae,se=o&pe,ze=o&Se,$e=o&(he|ce),Ve=o&je,ct=ze?l:ia(r);function Ge(){for(var pt=arguments.length,vt=G(pt),In=pt;In--;)vt[In]=arguments[In];if($e)var ln=aa(Ge),Dn=Xc(vt,ln);if(g&&(vt=U0(vt,g,x,$e)),L&&(vt=es(vt,L,P,$e)),pt-=Dn,$e&&pt<ne){var ar=Si(vt,ln);return X0(r,o,Ka,Ge.placeholder,c,vt,ar,D,B,ne-pt)}var hi=se?c:this,_o=ze?hi[r]:r;return pt=vt.length,D?vt=it(vt,D):Ve&&pt>1&&vt.reverse(),ie&&B<pt&&(vt.length=B),this&&this!==Ht&&this instanceof Ge&&(_o=ct||ia(_o)),_o.apply(hi,vt)}return Ge}function yo(r,o){return function(c,g){return Gl(c,r,o(g),{})}}function ja(r,o){return function(c,g){var x;if(c===l&&g===l)return o;if(c!==l&&(x=c),g!==l){if(x===l)return g;typeof c=="string"||typeof g=="string"?(c=Mr(c),g=Mr(g)):(c=ou(c),g=ou(g)),x=r(c,g)}return x}}function oa(r){return ci(function(o){return o=Lt(o,Rr(Re())),lt(function(c){var g=this;return r(o,function(x){return tn(x,g,c)})})})}function rs(r,o){o=o===l?" ":Mr(o);var c=o.length;if(c<2)return c?nu(o,r):o;var g=nu(o,Wo(r/ao(o)));return On(o)?Zi(fn(g),0,r).join(""):g.slice(0,r)}function z1(r,o,c,g){var x=o&pe,L=ia(r);function P(){for(var D=-1,B=arguments.length,ne=-1,ie=g.length,se=G(ie+B),ze=this&&this!==Ht&&this instanceof P?L:r;++ne<ie;)se[ne]=g[ne];for(;B--;)se[ne++]=arguments[++D];return tn(ze,x?c:this,se)}return P}function Y0(r){return function(o,c,g){return g&&typeof g!="number"&&m(o,c,g)&&(c=g=l),o=Lo(o),c===l?(c=o,o=0):c=Lo(c),g=g===l?o<c?1:-1:Lo(g),R0(o,c,g,r)}}function St(r){return function(o,c){return typeof o=="string"&&typeof c=="string"||(o=Yn(o),c=Yn(c)),r(o,c)}}function X0(r,o,c,g,x,L,P,D,B,ne){var ie=o&he,se=ie?P:l,ze=ie?l:P,$e=ie?L:l,Ve=ie?l:L;o|=ie?Me:Te,o&=~(ie?Te:Me),o&Oe||(o&=~(pe|Se));var ct=[r,o,x,$e,se,Ve,ze,D,B,ne],Ge=c.apply(l,ct);return M(r)&&Xt(Ge,ct),Ge.placeholder=g,Tr(Ge,r,o)}function Ya(r){var o=rr[r];return function(c,g){if(c=Yn(c),g=g==null?0:mr(st(g),292),g&&b0(c)){var x=(kt(c)+"e").split("e"),L=o(x[0]+"e"+(+x[1]+g));return x=(kt(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return o(c)}}var Xa=ho&&1/Ol(new ho([,-0]))[1]==be?function(r){return new ho(r)}:$1;function pn(r){return function(o){var c=kr(o);return c==Yt?kl(o):c==Je?c0(o):ii(o,r(o))}}function gn(r,o,c,g,x,L,P,D){var B=o&Se;if(!B&&typeof r!="function")throw new qr(y);var ne=g?g.length:0;if(ne||(o&=~(Me|Te),g=x=l),P=P===l?P:Bt(st(P),0),D=D===l?D:st(D),ne-=x?x.length:0,o&Te){var ie=g,se=x;g=x=l}var ze=B?l:yt(r),$e=[r,o,c,g,x,ie,se,L,P,D];if(ze&&we($e,ze),r=$e[0],o=$e[1],c=$e[2],g=$e[3],x=$e[4],D=$e[9]=$e[9]===l?B?0:r.length:Bt($e[9]-ne,0),!D&&o&(he|ce)&&(o&=~(he|ce)),!o||o==pe)var Ve=q0(r,o,c);else o==he||o==ce?Ve=fu(r,o,D):(o==Me||o==(pe|Me))&&!x.length?Ve=z1(r,o,c,g):Ve=Ka.apply(l,$e);var ct=ze?Va:Xt;return Tr(ct(Ve,$e),r,o)}function ns(r,o,c,g){return r===l||di(r,Oi[c])&&!et.call(g,c)?o:r}function hu(r,o,c,g,x,L){return Kt(r)&&Kt(o)&&(L.set(o,r),Kl(r,o,l,hu,L),L.delete(o)),r}function Q0(r){return bu(r)?l:r}function pu(r,o,c,g,x,L){var P=c&re,D=r.length,B=o.length;if(D!=B&&!(P&&B>D))return!1;var ne=L.get(r),ie=L.get(o);if(ne&&ie)return ne==o&&ie==r;var se=-1,ze=!0,$e=c&ge?new wr:l;for(L.set(r,o),L.set(o,r);++se<D;){var Ve=r[se],ct=o[se];if(g)var Ge=P?g(ct,Ve,se,o,r,L):g(Ve,ct,se,r,o,L);if(Ge!==l){if(Ge)continue;ze=!1;break}if($e){if(!no(o,function(pt,vt){if(!Gr($e,vt)&&(Ve===pt||x(Ve,pt,c,g,L)))return $e.push(vt)})){ze=!1;break}}else if(!(Ve===ct||x(Ve,ct,c,g,L))){ze=!1;break}}return L.delete(r),L.delete(o),ze}function J0(r,o,c,g,x,L,P){switch(c){case xn:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case pr:return!(r.byteLength!=o.byteLength||!L(new so(r),new so(o)));case We:case rt:case Ke:return di(+r,+o);case Be:return r.name==o.name&&r.message==o.message;case Jt:case F:return r==o+"";case Yt:var D=kl;case Je:var B=g&re;if(D||(D=Ol),r.size!=o.size&&!B)return!1;var ne=P.get(r);if(ne)return ne==o;g|=ge,P.set(r,o);var ie=pu(D(r),D(o),g,x,L,P);return P.delete(r),ie;case ae:if(Ft)return Ft.call(r)==Ft.call(o)}return!1}function ec(r,o,c,g,x,L){var P=c&re,D=Qa(r),B=D.length,ne=Qa(o),ie=ne.length;if(B!=ie&&!P)return!1;for(var se=B;se--;){var ze=D[se];if(!(P?ze in o:et.call(o,ze)))return!1}var $e=L.get(r),Ve=L.get(o);if($e&&Ve)return $e==o&&Ve==r;var ct=!0;L.set(r,o),L.set(o,r);for(var Ge=P;++se<B;){ze=D[se];var pt=r[ze],vt=o[ze];if(g)var In=P?g(vt,pt,ze,o,r,L):g(pt,vt,ze,r,o,L);if(!(In===l?pt===vt||x(pt,vt,c,g,L):In)){ct=!1;break}Ge||(Ge=ze=="constructor")}if(ct&&!Ge){var ln=r.constructor,Dn=o.constructor;ln!=Dn&&"constructor"in r&&"constructor"in o&&!(typeof ln=="function"&&ln instanceof ln&&typeof Dn=="function"&&Dn instanceof Dn)&&(ct=!1)}return L.delete(r),L.delete(o),ct}function ci(r){return Or(De(r,l,Af),r+"")}function Qa(r){return vo(r,Ar,gu)}function is(r){return vo(r,bn,tc)}var yt=Zn?function(r){return Zn.get(r)}:$1;function Ja(r){for(var o=r.name+"",c=Vo[o],g=et.call(Vo,o)?c.length:0;g--;){var x=c[g],L=x.func;if(L==null||L==r)return x.name}return o}function aa(r){var o=et.call(z,"placeholder")?z:r;return o.placeholder}function Re(){var r=z.iteratee||I1;return r=r===I1?A0:r,arguments.length?r(arguments[0],arguments[1]):r}function os(r,o){var c=r.__data__;return _(o)?c[typeof o=="string"?"string":"hash"]:c.map}function la(r){for(var o=Ar(r),c=o.length;c--;){var g=o[c],x=r[g];o[c]=[g,x,te(x)]}return o}function Co(r,o){var c=Hs(r,o);return Qo(c)?c:l}function Zt(r){var o=et.call(r,Ei),c=r[Ei];try{r[Ei]=l;var g=!0}catch{}var x=lo.call(r);return g&&(o?r[Ei]=c:delete r[Ei]),x}var gu=Ai?function(r){return r==null?[]:(r=gt(r),zi(Ai(r),function(o){return Al.call(r,o)}))}:N1,tc=Ai?function(r){for(var o=[];r;)Li(o,gu(r)),r=Bo(r);return o}:N1,kr=fr;(Di&&kr(new Di(new ArrayBuffer(1)))!=xn||Zo&&kr(new Zo)!=Yt||Dl&&kr(Dl.resolve())!=Lr||ho&&kr(new ho)!=Je||Na&&kr(new Na)!=Ye)&&(kr=function(r){var o=fr(r),c=o==wt?r.constructor:l,g=c?Tt(c):"";if(g)switch(g){case n1:return xn;case i1:return Yt;case o1:return Lr;case a1:return Je;case l1:return Ye}return o});function as(r,o,c){for(var g=-1,x=c.length;++g<x;){var L=c[g],P=L.size;switch(L.type){case"drop":r+=P;break;case"dropRight":o-=P;break;case"take":o=mr(o,r+P);break;case"takeRight":r=Bt(r,o-P);break}}return{start:r,end:o}}function e(r){var o=r.match(Ca);return o?o[1].split(wi):[]}function t(r,o,c){o=En(o,r);for(var g=-1,x=o.length,L=!1;++g<x;){var P=_t(o[g]);if(!(L=r!=null&&c(r,P)))break;r=r[P]}return L||++g!=x?L:(x=r==null?0:r.length,!!x&&lc(x)&&b(P,x)&&(at(r)||el(r)))}function i(r){var o=r.length,c=new r.constructor(o);return o&&typeof r[0]=="string"&&et.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function n(r){return typeof r.constructor=="function"&&!q(r)?Vn(Bo(r)):{}}function s(r,o,c){var g=r.constructor;switch(o){case pr:return Jl(r);case We:case rt:return new g(+r);case xn:return w1(r,c);case Dr:case Nt:case ti:case _r:case zn:case Ne:case yi:case gr:case Ue:return F0(r,c);case Yt:return new g;case Ke:case F:return new g(r);case Jt:return uu(r);case Je:return new g;case ae:return B0(r)}}function d(r,o){var c=o.length;if(!c)return r;var g=c-1;return o[g]=(c>1?"& ":"")+o[g],o=o.join(c>2?", ":" "),r.replace(pl,`{
|
|
2404
|
-
/* [wrapped with `+o+`] */
|
|
2405
|
-
`)}function p(r){return at(r)||el(r)||!!(uo&&r&&r[uo])}function b(r,o){var c=typeof r;return o=o==null?tt:o,!!o&&(c=="number"||c!="symbol"&&wa.test(r))&&r>-1&&r%1==0&&r<o}function m(r,o,c){if(!Kt(c))return!1;var g=typeof o;return(g=="number"?vn(c)&&b(o,c.length):g=="string"&&o in c)?di(c[o],r):!1}function C(r,o){if(at(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||An(r)?!0:$r.test(r)||!ya.test(r)||o!=null&&r in gt(o)}function _(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function M(r){var o=Ja(r),c=z[o];if(typeof c!="function"||!(o in dt.prototype))return!1;if(r===c)return!0;var g=yt(c);return!!g&&r===g[0]}function N(r){return!!oi&&oi in r}var $=Wn?zo:R1;function q(r){var o=r&&r.constructor,c=typeof o=="function"&&o.prototype||Oi;return r===c}function te(r){return r===r&&!Kt(r)}function ue(r,o){return function(c){return c==null?!1:c[r]===o&&(o!==l||r in gt(c))}}function fe(r){var o=oc(r,function(g){return c.size===k&&c.clear(),g}),c=o.cache;return o}function we(r,o){var c=r[1],g=o[1],x=c|g,L=x<(pe|Se|Ae),P=g==Ae&&c==he||g==Ae&&c==qe&&r[7].length<=o[8]||g==(Ae|qe)&&o[7].length<=o[8]&&c==he;if(!(L||P))return r;g&pe&&(r[2]=o[2],x|=c&pe?0:Oe);var D=o[3];if(D){var B=r[3];r[3]=B?U0(B,D,o[4]):D,r[4]=B?Si(r[3],I):o[4]}return D=o[5],D&&(B=r[5],r[5]=B?es(B,D,o[6]):D,r[6]=B?Si(r[5],I):o[6]),D=o[7],D&&(r[7]=D),g&Ae&&(r[8]=r[8]==null?o[8]:mr(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=x,r}function de(r){var o=[];if(r!=null)for(var c in gt(r))o.push(c);return o}function xe(r){return lo.call(r)}function De(r,o,c){return o=Bt(o===l?r.length-1:o,0),function(){for(var g=arguments,x=-1,L=Bt(g.length-o,0),P=G(L);++x<L;)P[x]=g[o+x];x=-1;for(var D=G(o+1);++x<o;)D[x]=g[x];return D[o]=c(P),tn(r,this,D)}}function Pe(r,o){return o.length<2?r:Bi(r,hn(o,0,-1))}function it(r,o){for(var c=r.length,g=mr(o.length,c),x=dr(r);g--;){var L=o[g];r[g]=b(L,c)?x[L]:l}return r}function xt(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Xt=Vt(Va),Mt=r1||function(r,o){return Ht.setTimeout(r,o)},Or=Vt(Ga);function Tr(r,o,c){var g=o+"";return Or(r,d(g,Wt(e(g),c)))}function Vt(r){var o=0,c=0;return function(){var g=fo(),x=V-(g-c);if(c=g,x>0){if(++o>=Xe)return arguments[0]}else o=0;return r.apply(l,arguments)}}function hr(r,o){var c=-1,g=r.length,x=g-1;for(o=o===l?g:o;++c<o;){var L=jl(c,x),P=r[L];r[L]=r[c],r[c]=P}return r.length=o,r}var nr=fe(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(dl,function(c,g,x,L){o.push(x?L.replace(gl,"$1"):g||c)}),o});function _t(r){if(typeof r=="string"||An(r))return r;var o=r+"";return o=="0"&&1/r==-be?"-0":o}function Tt(r){if(r!=null){try{return Un.call(r)}catch{}try{return r+""}catch{}}return""}function Wt(r,o){return cn(At,function(c){var g="_."+c[0];o&c[1]&&!Oa(r,g)&&r.push(g)}),r.sort()}function Pr(r){if(r instanceof dt)return r.clone();var o=new Hr(r.__wrapped__,r.__chain__);return o.__actions__=dr(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function sa(r,o,c){(c?m(r,o,c):o===l)?o=1:o=Bt(st(o),0);var g=r==null?0:r.length;if(!g||o<1)return[];for(var x=0,L=0,P=G(Wo(g/o));x<g;)P[L++]=hn(r,x,x+=o);return P}function Vi(r){for(var o=-1,c=r==null?0:r.length,g=0,x=[];++o<c;){var L=r[o];L&&(x[g++]=L)}return x}function zr(){var r=arguments.length;if(!r)return[];for(var o=G(r-1),c=arguments[0],g=r;g--;)o[g-1]=arguments[g];return Li(at(c)?dr(c):[c],xr(o,1))}var Kn=lt(function(r,o){return or(r)?Go(r,xr(o,1,or,!0)):[]}),ir=lt(function(r,o){var c=jn(o);return or(c)&&(c=l),or(r)?Go(r,xr(o,1,or,!0),Re(c,2)):[]}),vu=lt(function(r,o){var c=jn(o);return or(c)&&(c=l),or(r)?Go(r,xr(o,1,or,!0),l,c):[]});function fi(r,o,c){var g=r==null?0:r.length;return g?(o=c||o===l?1:st(o),hn(r,o<0?0:o,g)):[]}function wo(r,o,c){var g=r==null?0:r.length;return g?(o=c||o===l?1:st(o),o=g-o,hn(r,0,o<0?0:o)):[]}function xo(r,o){return r&&r.length?ea(r,Re(o,3),!0,!0):[]}function Er(r,o){return r&&r.length?ea(r,Re(o,3),!0):[]}function ua(r,o,c,g){var x=r==null?0:r.length;return x?(c&&typeof c!="number"&&m(r,o,c)&&(c=0,g=x),Qs(r,o,c,g)):[]}function ls(r,o,c){var g=r==null?0:r.length;if(!g)return-1;var x=c==null?0:st(c);return x<0&&(x=Bt(g+x,0)),Ll(r,Re(o,3),x)}function Ef(r,o,c){var g=r==null?0:r.length;if(!g)return-1;var x=g-1;return c!==l&&(x=st(c),x=c<0?Bt(g+x,0):mr(x,g-1)),Ll(r,Re(o,3),x,!0)}function Af(r){var o=r==null?0:r.length;return o?xr(r,1):[]}function Hp(r){var o=r==null?0:r.length;return o?xr(r,be):[]}function Bp(r,o){var c=r==null?0:r.length;return c?(o=o===l?1:st(o),xr(r,o)):[]}function Fp(r){for(var o=-1,c=r==null?0:r.length,g={};++o<c;){var x=r[o];g[x[0]]=x[1]}return g}function If(r){return r&&r.length?r[0]:l}function Wp(r,o,c){var g=r==null?0:r.length;if(!g)return-1;var x=c==null?0:st(c);return x<0&&(x=Bt(g+x,0)),io(r,o,x)}function Up(r){var o=r==null?0:r.length;return o?hn(r,0,-1):[]}var Zp=lt(function(r){var o=Lt(r,lu);return o.length&&o[0]===r[0]?Vl(o):[]}),Vp=lt(function(r){var o=jn(r),c=Lt(r,lu);return o===jn(c)?o=l:c.pop(),c.length&&c[0]===r[0]?Vl(c,Re(o,2)):[]}),Gp=lt(function(r){var o=jn(r),c=Lt(r,lu);return o=typeof o=="function"?o:l,o&&c.pop(),c.length&&c[0]===r[0]?Vl(c,l,o):[]});function qp(r,o){return r==null?"":Il.call(r,o)}function jn(r){var o=r==null?0:r.length;return o?r[o-1]:l}function Kp(r,o,c){var g=r==null?0:r.length;if(!g)return-1;var x=g;return c!==l&&(x=st(c),x=x<0?Bt(g+x,0):mr(x,g-1)),o===o?Pa(r,o,x):Ll(r,_l,x,!0)}function jp(r,o){return r&&r.length?D0(r,st(o)):l}var Yp=lt(Df);function Df(r,o){return r&&r.length&&o&&o.length?tu(r,o):r}function Xp(r,o,c){return r&&r.length&&o&&o.length?tu(r,o,Re(c,2)):r}function Qp(r,o,c){return r&&r.length&&o&&o.length?tu(r,o,l,c):r}var Jp=ci(function(r,o){var c=r==null?0:r.length,g=Xs(r,o);return ru(r,Lt(o,function(x){return b(x,c)?+x:x}).sort(cu)),g});function e2(r,o){var c=[];if(!(r&&r.length))return c;var g=-1,x=[],L=r.length;for(o=Re(o,3);++g<L;){var P=r[g];o(P,g,r)&&(c.push(P),x.push(g))}return ru(r,x),c}function L1(r){return r==null?r:$a.call(r)}function t2(r,o,c){var g=r==null?0:r.length;return g?(c&&typeof c!="number"&&m(r,o,c)?(o=0,c=g):(o=o==null?0:st(o),c=c===l?g:st(c)),hn(r,o,c)):[]}function r2(r,o){return ui(r,o)}function n2(r,o,c){return Yl(r,o,Re(c,2))}function i2(r,o){var c=r==null?0:r.length;if(c){var g=ui(r,o);if(g<c&&di(r[g],o))return g}return-1}function o2(r,o){return ui(r,o,!0)}function a2(r,o,c){return Yl(r,o,Re(c,2),!0)}function l2(r,o){var c=r==null?0:r.length;if(c){var g=ui(r,o,!0)-1;if(di(r[g],o))return g}return-1}function s2(r){return r&&r.length?iu(r):[]}function u2(r,o){return r&&r.length?iu(r,Re(o,2)):[]}function c2(r){var o=r==null?0:r.length;return o?hn(r,1,o):[]}function f2(r,o,c){return r&&r.length?(o=c||o===l?1:st(o),hn(r,0,o<0?0:o)):[]}function d2(r,o,c){var g=r==null?0:r.length;return g?(o=c||o===l?1:st(o),o=g-o,hn(r,o<0?0:o,g)):[]}function h2(r,o){return r&&r.length?ea(r,Re(o,3),!1,!0):[]}function p2(r,o){return r&&r.length?ea(r,Re(o,3)):[]}var g2=lt(function(r){return an(xr(r,1,or,!0))}),v2=lt(function(r){var o=jn(r);return or(o)&&(o=l),an(xr(r,1,or,!0),Re(o,2))}),b2=lt(function(r){var o=jn(r);return o=typeof o=="function"?o:l,an(xr(r,1,or,!0),l,o)});function m2(r){return r&&r.length?an(r):[]}function y2(r,o){return r&&r.length?an(r,Re(o,2)):[]}function C2(r,o){return o=typeof o=="function"?o:l,r&&r.length?an(r,l,o):[]}function _1(r){if(!(r&&r.length))return[];var o=0;return r=zi(r,function(c){if(or(c))return o=Bt(c.length,o),!0}),oo(o,function(c){return Lt(r,Ds(c))})}function $f(r,o){if(!(r&&r.length))return[];var c=_1(r);return o==null?c:Lt(c,function(g){return tn(o,l,g)})}var w2=lt(function(r,o){return or(r)?Go(r,o):[]}),x2=lt(function(r){return mo(zi(r,or))}),z2=lt(function(r){var o=jn(r);return or(o)&&(o=l),mo(zi(r,or),Re(o,2))}),L2=lt(function(r){var o=jn(r);return o=typeof o=="function"?o:l,mo(zi(r,or),l,o)}),_2=lt(_1);function S2(r,o){return au(r||[],o||[],Ba)}function M2(r,o){return au(r||[],o||[],li)}var k2=lt(function(r){var o=r.length,c=o>1?r[o-1]:l;return c=typeof c=="function"?(r.pop(),c):l,$f(r,c)});function Nf(r){var o=z(r);return o.__chain__=!0,o}function O2(r,o){return o(r),r}function rc(r,o){return o(r)}var T2=ci(function(r){var o=r.length,c=o?r[0]:0,g=this.__wrapped__,x=function(L){return Xs(L,r)};return o>1||this.__actions__.length||!(g instanceof dt)||!b(c)?this.thru(x):(g=g.slice(c,+c+(o?1:0)),g.__actions__.push({func:rc,args:[x],thisArg:l}),new Hr(g,this.__chain__).thru(function(L){return o&&!L.length&&L.push(l),L}))});function P2(){return Nf(this)}function E2(){return new Hr(this.value(),this.__chain__)}function A2(){this.__values__===l&&(this.__values__=Xf(this.value()));var r=this.__index__>=this.__values__.length,o=r?l:this.__values__[this.__index__++];return{done:r,value:o}}function I2(){return this}function D2(r){for(var o,c=this;c instanceof $l;){var g=Pr(c);g.__index__=0,g.__values__=l,o?x.__wrapped__=g:o=g;var x=g;c=c.__wrapped__}return x.__wrapped__=r,o}function $2(){var r=this.__wrapped__;if(r instanceof dt){var o=r;return this.__actions__.length&&(o=new dt(this)),o=o.reverse(),o.__actions__.push({func:rc,args:[L1],thisArg:l}),new Hr(o,this.__chain__)}return this.thru(L1)}function N2(){return H0(this.__wrapped__,this.__actions__)}var R2=ts(function(r,o,c){et.call(r,c)?++r[c]:qn(r,c,1)});function H2(r,o,c){var g=at(r)?Es:Fl;return c&&m(r,o,c)&&(o=l),g(r,Re(o,3))}function B2(r,o){var c=at(r)?zi:Js;return c(r,Re(o,3))}var F2=du(ls),W2=du(Ef);function U2(r,o){return xr(nc(r,o),1)}function Z2(r,o){return xr(nc(r,o),be)}function V2(r,o,c){return c=c===l?1:st(c),xr(nc(r,o),c)}function Rf(r,o){var c=at(r)?cn:nn;return c(r,Re(o,3))}function Hf(r,o){var c=at(r)?qc:Bl;return c(r,Re(o,3))}var G2=ts(function(r,o,c){et.call(r,c)?r[c].push(o):qn(r,c,[o])});function q2(r,o,c,g){r=vn(r)?r:us(r),c=c&&!g?st(c):0;var x=r.length;return c<0&&(c=Bt(x+c,0)),sc(r)?c<=x&&r.indexOf(o,c)>-1:!!x&&io(r,o,c)>-1}var K2=lt(function(r,o,c){var g=-1,x=typeof o=="function",L=vn(r)?G(r.length):[];return nn(r,function(P){L[++g]=x?tn(o,P,c):Ko(P,o,c)}),L}),j2=ts(function(r,o,c){qn(r,c,o)});function nc(r,o){var c=at(r)?Lt:Jo;return c(r,Re(o,3))}function Y2(r,o,c,g){return r==null?[]:(at(o)||(o=o==null?[]:[o]),c=g?l:c,at(c)||(c=c==null?[]:[c]),Sr(r,o,c))}var X2=ts(function(r,o,c){r[c?0:1].push(o)},function(){return[[],[]]});function Q2(r,o,c){var g=at(r)?As:Ns,x=arguments.length<3;return g(r,Re(o,4),c,x,nn)}function J2(r,o,c){var g=at(r)?Kc:Ns,x=arguments.length<3;return g(r,Re(o,4),c,x,Bl)}function e4(r,o){var c=at(r)?zi:Js;return c(r,ac(Re(o,3)))}function t4(r){var o=at(r)?Rl:m1;return o(r)}function r4(r,o,c){(c?m(r,o,c):o===l)?o=1:o=st(o);var g=at(r)?Hi:Ui;return g(r,o)}function n4(r){var o=at(r)?L0:si;return o(r)}function i4(r){if(r==null)return 0;if(vn(r))return sc(r)?ao(r):r.length;var o=kr(r);return o==Yt||o==Je?r.size:ql(r).length}function o4(r,o,c){var g=at(r)?no:y1;return c&&m(r,o,c)&&(o=l),g(r,Re(o,3))}var a4=lt(function(r,o){if(r==null)return[];var c=o.length;return c>1&&m(r,o[0],o[1])?o=[]:c>2&&m(o[0],o[1],o[2])&&(o=[o[0]]),Sr(r,xr(o,1),[])}),ic=t1||function(){return Ht.Date.now()};function l4(r,o){if(typeof o!="function")throw new qr(y);return r=st(r),function(){if(--r<1)return o.apply(this,arguments)}}function Bf(r,o,c){return o=c?l:o,o=r&&o==null?r.length:o,gn(r,Ae,l,l,l,l,o)}function Ff(r,o){var c;if(typeof o!="function")throw new qr(y);return r=st(r),function(){return--r>0&&(c=o.apply(this,arguments)),r<=1&&(o=l),c}}var S1=lt(function(r,o,c){var g=pe;if(c.length){var x=Si(c,aa(S1));g|=Me}return gn(r,g,o,c,x)}),Wf=lt(function(r,o,c){var g=pe|Se;if(c.length){var x=Si(c,aa(Wf));g|=Me}return gn(o,g,r,c,x)});function Uf(r,o,c){o=c?l:o;var g=gn(r,he,l,l,l,l,l,o);return g.placeholder=Uf.placeholder,g}function Zf(r,o,c){o=c?l:o;var g=gn(r,ce,l,l,l,l,l,o);return g.placeholder=Zf.placeholder,g}function Vf(r,o,c){var g,x,L,P,D,B,ne=0,ie=!1,se=!1,ze=!0;if(typeof r!="function")throw new qr(y);o=Yn(o)||0,Kt(c)&&(ie=!!c.leading,se="maxWait"in c,L=se?Bt(Yn(c.maxWait)||0,o):L,ze="trailing"in c?!!c.trailing:ze);function $e(ar){var hi=g,_o=x;return g=x=l,ne=ar,P=r.apply(_o,hi),P}function Ve(ar){return ne=ar,D=Mt(pt,o),ie?$e(ar):P}function ct(ar){var hi=ar-B,_o=ar-ne,cd=o-hi;return se?mr(cd,L-_o):cd}function Ge(ar){var hi=ar-B,_o=ar-ne;return B===l||hi>=o||hi<0||se&&_o>=L}function pt(){var ar=ic();if(Ge(ar))return vt(ar);D=Mt(pt,ct(ar))}function vt(ar){return D=l,ze&&g?$e(ar):(g=x=l,P)}function In(){D!==l&&ta(D),ne=0,g=B=x=D=l}function ln(){return D===l?P:vt(ic())}function Dn(){var ar=ic(),hi=Ge(ar);if(g=arguments,x=this,B=ar,hi){if(D===l)return Ve(B);if(se)return ta(D),D=Mt(pt,o),$e(B)}return D===l&&(D=Mt(pt,o)),P}return Dn.cancel=In,Dn.flush=ln,Dn}var s4=lt(function(r,o){return M0(r,1,o)}),u4=lt(function(r,o,c){return M0(r,Yn(o)||0,c)});function c4(r){return gn(r,je)}function oc(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new qr(y);var c=function(){var g=arguments,x=o?o.apply(this,g):g[0],L=c.cache;if(L.has(x))return L.get(x);var P=r.apply(this,g);return c.cache=L.set(x,P)||L,P};return c.cache=new(oc.Cache||qt),c}oc.Cache=qt;function ac(r){if(typeof r!="function")throw new qr(y);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function f4(r){return Ff(2,r)}var d4=C1(function(r,o){o=o.length==1&&at(o[0])?Lt(o[0],Rr(Re())):Lt(xr(o,1),Rr(Re()));var c=o.length;return lt(function(g){for(var x=-1,L=mr(g.length,c);++x<L;)g[x]=o[x].call(this,g[x]);return tn(r,this,g)})}),M1=lt(function(r,o){var c=Si(o,aa(M1));return gn(r,Me,l,o,c)}),Gf=lt(function(r,o){var c=Si(o,aa(Gf));return gn(r,Te,l,o,c)}),h4=ci(function(r,o){return gn(r,qe,l,l,l,o)});function p4(r,o){if(typeof r!="function")throw new qr(y);return o=o===l?o:st(o),lt(r,o)}function g4(r,o){if(typeof r!="function")throw new qr(y);return o=o==null?0:Bt(st(o),0),lt(function(c){var g=c[o],x=Zi(c,0,o);return g&&Li(x,g),tn(r,this,x)})}function v4(r,o,c){var g=!0,x=!0;if(typeof r!="function")throw new qr(y);return Kt(c)&&(g="leading"in c?!!c.leading:g,x="trailing"in c?!!c.trailing:x),Vf(r,o,{leading:g,maxWait:o,trailing:x})}function b4(r){return Bf(r,1)}function m4(r,o){return M1(Ql(o),r)}function y4(){if(!arguments.length)return[];var r=arguments[0];return at(r)?r:[r]}function C4(r){return Br(r,Z)}function w4(r,o){return o=typeof o=="function"?o:l,Br(r,Z,o)}function x4(r){return Br(r,H|Z)}function z4(r,o){return o=typeof o=="function"?o:l,Br(r,H|Z,o)}function L4(r,o){return o==null||S0(r,o,Ar(o))}function di(r,o){return r===o||r!==r&&o!==o}var _4=St(Zl),S4=St(function(r,o){return r>=o}),el=jo(function(){return arguments}())?jo:function(r){return Qt(r)&&et.call(r,"callee")&&!Al.call(r,"callee")},at=G.isArray,M4=e0?Rr(e0):g1;function vn(r){return r!=null&&lc(r.length)&&!zo(r)}function or(r){return Qt(r)&&vn(r)}function k4(r){return r===!0||r===!1||Qt(r)&&fr(r)==We}var ca=Ia||R1,O4=t0?Rr(t0):Yo;function T4(r){return Qt(r)&&r.nodeType===1&&!bu(r)}function P4(r){if(r==null)return!0;if(vn(r)&&(at(r)||typeof r=="string"||typeof r.splice=="function"||ca(r)||ss(r)||el(r)))return!r.length;var o=kr(r);if(o==Yt||o==Je)return!r.size;if(q(r))return!ql(r).length;for(var c in r)if(et.call(r,c))return!1;return!0}function E4(r,o){return Xo(r,o)}function A4(r,o,c){c=typeof c=="function"?c:l;var g=c?c(r,o):l;return g===l?Xo(r,o,l,c):!!g}function k1(r){if(!Qt(r))return!1;var o=fr(r);return o==Be||o==nt||typeof r.message=="string"&&typeof r.name=="string"&&!bu(r)}function I4(r){return typeof r=="number"&&b0(r)}function zo(r){if(!Kt(r))return!1;var o=fr(r);return o==Rt||o==Ir||o==He||o==Ur}function qf(r){return typeof r=="number"&&r==st(r)}function lc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=tt}function Kt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function Qt(r){return r!=null&&typeof r=="object"}var Kf=r0?Rr(r0):P0;function D4(r,o){return r===o||bo(r,o,la(o))}function $4(r,o,c){return c=typeof c=="function"?c:l,bo(r,o,la(o),c)}function N4(r){return jf(r)&&r!=+r}function R4(r){if($(r))throw new Qe(v);return Qo(r)}function H4(r){return r===null}function B4(r){return r==null}function jf(r){return typeof r=="number"||Qt(r)&&fr(r)==Ke}function bu(r){if(!Qt(r)||fr(r)!=wt)return!1;var o=Bo(r);if(o===null)return!0;var c=et.call(o,"constructor")&&o.constructor;return typeof c=="function"&&c instanceof c&&Un.call(c)==Jc}var O1=n0?Rr(n0):Ua;function F4(r){return qf(r)&&r>=-tt&&r<=tt}var Yf=Ts?Rr(Ts):Za;function sc(r){return typeof r=="string"||!at(r)&&Qt(r)&&fr(r)==F}function An(r){return typeof r=="symbol"||Qt(r)&&fr(r)==ae}var ss=Ps?Rr(Ps):E0;function W4(r){return r===l}function U4(r){return Qt(r)&&kr(r)==Ye}function Z4(r){return Qt(r)&&fr(r)==er}var V4=St(Wi),G4=St(function(r,o){return r<=o});function Xf(r){if(!r)return[];if(vn(r))return sc(r)?fn(r):dr(r);if(Pi&&r[Pi])return s0(r[Pi]());var o=kr(r),c=o==Yt?kl:o==Je?Ol:us;return c(r)}function Lo(r){if(!r)return r===0?r:0;if(r=Yn(r),r===be||r===-be){var o=r<0?-1:1;return o*zt}return r===r?r:0}function st(r){var o=Lo(r),c=o%1;return o===o?c?o-c:o:0}function Qf(r){return r?go(st(r),0,Et):0}function Yn(r){if(typeof r=="number")return r;if(An(r))return jt;if(Kt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=Kt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Ta(r);var c=_n.test(r);return c||Jr.test(r)?Vc(r.slice(2),c?2:8):Ao.test(r)?jt:+r}function Jf(r){return Kr(r,bn(r))}function q4(r){return r?go(st(r),-tt,tt):r===0?r:0}function kt(r){return r==null?"":Mr(r)}var K4=ra(function(r,o){if(q(o)||vn(o)){Kr(o,Ar(o),r);return}for(var c in o)et.call(o,c)&&Ba(r,c,o[c])}),ed=ra(function(r,o){Kr(o,bn(o),r)}),uc=ra(function(r,o,c,g){Kr(o,bn(o),r,g)}),j4=ra(function(r,o,c,g){Kr(o,Ar(o),r,g)}),Y4=ci(Xs);function X4(r,o){var c=Vn(r);return o==null?c:Ys(c,o)}var Q4=lt(function(r,o){r=gt(r);var c=-1,g=o.length,x=g>2?o[2]:l;for(x&&m(o[0],o[1],x)&&(g=1);++c<g;)for(var L=o[c],P=bn(L),D=-1,B=P.length;++D<B;){var ne=P[D],ie=r[ne];(ie===l||di(ie,Oi[ne])&&!et.call(r,ne))&&(r[ne]=L[ne])}return r}),J4=lt(function(r){return r.push(l,hu),tn(td,l,r)});function e5(r,o){return No(r,Re(o,3),on)}function t5(r,o){return No(r,Re(o,3),Ul)}function r5(r,o){return r==null?r:Wl(r,Re(o,3),bn)}function n5(r,o){return r==null?r:cr(r,Re(o,3),bn)}function i5(r,o){return r&&on(r,Re(o,3))}function o5(r,o){return r&&Ul(r,Re(o,3))}function a5(r){return r==null?[]:Wa(r,Ar(r))}function l5(r){return r==null?[]:Wa(r,bn(r))}function T1(r,o,c){var g=r==null?l:Bi(r,o);return g===l?c:g}function s5(r,o){return r!=null&&t(r,o,k0)}function P1(r,o){return r!=null&&t(r,o,O0)}var u5=yo(function(r,o,c){o!=null&&typeof o.toString!="function"&&(o=lo.call(o)),r[o]=c},A1(mn)),c5=yo(function(r,o,c){o!=null&&typeof o.toString!="function"&&(o=lo.call(o)),et.call(r,o)?r[o].push(c):r[o]=[c]},Re),f5=lt(Ko);function Ar(r){return vn(r)?Ks(r):ql(r)}function bn(r){return vn(r)?Ks(r,!0):Fi(r)}function d5(r,o){var c={};return o=Re(o,3),on(r,function(g,x,L){qn(c,o(g,x,L),g)}),c}function h5(r,o){var c={};return o=Re(o,3),on(r,function(g,x,L){qn(c,x,o(g,x,L))}),c}var p5=ra(function(r,o,c){Kl(r,o,c)}),td=ra(function(r,o,c,g){Kl(r,o,c,g)}),g5=ci(function(r,o){var c={};if(r==null)return c;var g=!1;o=Lt(o,function(L){return L=En(L,r),g||(g=L.length>1),L}),Kr(r,is(r),c),g&&(c=Br(c,H|W|Z,Q0));for(var x=o.length;x--;)qa(c,o[x]);return c});function v5(r,o){return rd(r,ac(Re(o)))}var b5=ci(function(r,o){return r==null?{}:$0(r,o)});function rd(r,o){if(r==null)return{};var c=Lt(is(r),function(g){return[g]});return o=Re(o),N0(r,c,function(g,x){return o(g,x[0])})}function m5(r,o,c){o=En(o,r);var g=-1,x=o.length;for(x||(x=1,r=l);++g<x;){var L=r==null?l:r[_t(o[g])];L===l&&(g=x,L=c),r=zo(L)?L.call(r):L}return r}function y5(r,o,c){return r==null?r:li(r,o,c)}function C5(r,o,c,g){return g=typeof g=="function"?g:l,r==null?r:li(r,o,c,g)}var nd=pn(Ar),id=pn(bn);function w5(r,o,c){var g=at(r),x=g||ca(r)||ss(r);if(o=Re(o,4),c==null){var L=r&&r.constructor;x?c=g?new L:[]:Kt(r)?c=zo(L)?Vn(Bo(r)):{}:c={}}return(x?cn:on)(r,function(P,D,B){return o(c,P,D,B)}),c}function x5(r,o){return r==null?!0:qa(r,o)}function z5(r,o,c){return r==null?r:Xl(r,o,Ql(c))}function L5(r,o,c,g){return g=typeof g=="function"?g:l,r==null?r:Xl(r,o,Ql(c),g)}function us(r){return r==null?[]:Sl(r,Ar(r))}function _5(r){return r==null?[]:Sl(r,bn(r))}function S5(r,o,c){return c===l&&(c=o,o=l),c!==l&&(c=Yn(c),c=c===c?c:0),o!==l&&(o=Yn(o),o=o===o?o:0),go(Yn(r),o,c)}function M5(r,o,c){return o=Lo(o),c===l?(c=o,o=0):c=Lo(c),r=Yn(r),qo(r,o,c)}function k5(r,o,c){if(c&&typeof c!="boolean"&&m(r,o,c)&&(o=c=l),c===l&&(typeof o=="boolean"?(c=o,o=l):typeof r=="boolean"&&(c=r,r=l)),r===l&&o===l?(r=0,o=1):(r=Lo(r),o===l?(o=r,r=0):o=Lo(o)),r>o){var g=r;r=o,o=g}if(c||r%1||o%1){var x=Ii();return mr(r+x*(o-r+Zc("1e-"+((x+"").length-1))),o)}return jl(r,o)}var O5=na(function(r,o,c){return o=o.toLowerCase(),r+(c?od(o):o)});function od(r){return E1(kt(r).toLowerCase())}function ad(r){return r=kt(r),r&&r.replace(xa,a0).replace(ju,"")}function T5(r,o,c){r=kt(r),o=Mr(o);var g=r.length;c=c===l?g:go(st(c),0,g);var x=c;return c-=o.length,c>=0&&r.slice(c,x)==o}function P5(r){return r=kt(r),r&&Xr.test(r)?r.replace(ur,Qc):r}function E5(r){return r=kt(r),r&&Rn.test(r)?r.replace(Ji,"\\$&"):r}var A5=na(function(r,o,c){return r+(c?"-":"")+o.toLowerCase()}),I5=na(function(r,o,c){return r+(c?" ":"")+o.toLowerCase()}),D5=K0("toLowerCase");function $5(r,o,c){r=kt(r),o=st(o);var g=o?ao(r):0;if(!o||g>=o)return r;var x=(o-g)/2;return rs(Uo(x),c)+r+rs(Wo(x),c)}function N5(r,o,c){r=kt(r),o=st(o);var g=o?ao(r):0;return o&&g<o?r+rs(o-g,c):r}function R5(r,o,c){r=kt(r),o=st(o);var g=o?ao(r):0;return o&&g<o?rs(o-g,c)+r:r}function H5(r,o,c){return c||o==null?o=0:o&&(o=+o),Da(kt(r).replace(eo,""),o||0)}function B5(r,o,c){return(c?m(r,o,c):o===l)?o=1:o=st(o),nu(kt(r),o)}function F5(){var r=arguments,o=kt(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var W5=na(function(r,o,c){return r+(c?"_":"")+o.toLowerCase()});function U5(r,o,c){return c&&typeof c!="number"&&m(r,o,c)&&(o=c=l),c=c===l?Et:c>>>0,c?(r=kt(r),r&&(typeof o=="string"||o!=null&&!O1(o))&&(o=Mr(o),!o&&On(r))?Zi(fn(r),0,c):r.split(o,c)):[]}var Z5=na(function(r,o,c){return r+(c?" ":"")+E1(o)});function V5(r,o,c){return r=kt(r),c=c==null?0:go(st(c),0,r.length),o=Mr(o),r.slice(c,c+o.length)==o}function G5(r,o,c){var g=z.templateSettings;c&&m(r,o,c)&&(o=l),r=kt(r),o=uc({},o,g,ns);var x=uc({},o.imports,g.imports,ns),L=Ar(x),P=Sl(x,L),D,B,ne=0,ie=o.interpolate||It,se="__p += '",ze=ki((o.escape||It).source+"|"+ie.source+"|"+(ie===ma?ri:It).source+"|"+(o.evaluate||It).source+"|$","g"),$e="//# sourceURL="+(et.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Os+"]")+`
|
|
2406
|
-
`;r.replace(ze,function(Ge,pt,vt,In,ln,Dn){return vt||(vt=In),se+=r.slice(ne,Dn).replace(ke,l0),pt&&(D=!0,se+=`' +
|
|
2407
|
-
__e(`+pt+`) +
|
|
2408
|
-
'`),ln&&(B=!0,se+=`';
|
|
2409
|
-
`+ln+`;
|
|
2410
|
-
__p += '`),vt&&(se+=`' +
|
|
2411
|
-
((__t = (`+vt+`)) == null ? '' : __t) +
|
|
2412
|
-
'`),ne=Dn+Ge.length,Ge}),se+=`';
|
|
2413
|
-
`;var Ve=et.call(o,"variable")&&o.variable;if(!Ve)se=`with (obj) {
|
|
2414
|
-
`+se+`
|
|
2415
|
-
}
|
|
2416
|
-
`;else if(Qr.test(Ve))throw new Qe(A);se=(B?se.replace(Gt,""):se).replace(Po,"$1").replace(sr,"$1;"),se="function("+(Ve||"obj")+`) {
|
|
2417
|
-
`+(Ve?"":`obj || (obj = {});
|
|
2418
|
-
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(B?`, __j = Array.prototype.join;
|
|
2419
|
-
function print() { __p += __j.call(arguments, '') }
|
|
2420
|
-
`:`;
|
|
2421
|
-
`)+se+`return __p
|
|
2422
|
-
}`;var ct=sd(function(){return Ct(L,$e+"return "+se).apply(l,P)});if(ct.source=se,k1(ct))throw ct;return ct}function q5(r){return kt(r).toLowerCase()}function K5(r){return kt(r).toUpperCase()}function j5(r,o,c){if(r=kt(r),r&&(c||o===l))return Ta(r);if(!r||!(o=Mr(o)))return r;var g=fn(r),x=fn(o),L=_i(g,x),P=Ml(g,x)+1;return Zi(g,L,P).join("")}function Y5(r,o,c){if(r=kt(r),r&&(c||o===l))return r.slice(0,Tl(r)+1);if(!r||!(o=Mr(o)))return r;var g=fn(r),x=Ml(g,fn(o))+1;return Zi(g,0,x).join("")}function X5(r,o,c){if(r=kt(r),r&&(c||o===l))return r.replace(eo,"");if(!r||!(o=Mr(o)))return r;var g=fn(r),x=_i(g,fn(o));return Zi(g,x).join("")}function Q5(r,o){var c=ve,g=ye;if(Kt(o)){var x="separator"in o?o.separator:x;c="length"in o?st(o.length):c,g="omission"in o?Mr(o.omission):g}r=kt(r);var L=r.length;if(On(r)){var P=fn(r);L=P.length}if(c>=L)return r;var D=c-ao(g);if(D<1)return g;var B=P?Zi(P,0,D).join(""):r.slice(0,D);if(x===l)return B+g;if(P&&(D+=B.length-D),O1(x)){if(r.slice(D).search(x)){var ne,ie=B;for(x.global||(x=ki(x.source,kt(to.exec(x))+"g")),x.lastIndex=0;ne=x.exec(ie);)var se=ne.index;B=B.slice(0,se===l?D:se)}}else if(r.indexOf(Mr(x),D)!=D){var ze=B.lastIndexOf(x);ze>-1&&(B=B.slice(0,ze))}return B+g}function J5(r){return r=kt(r),r&&Eo.test(r)?r.replace(Ln,Pl):r}var e6=na(function(r,o,c){return r+(c?" ":"")+o.toUpperCase()}),E1=K0("toUpperCase");function ld(r,o,c){return r=kt(r),o=c?l:o,o===l?Fn(r)?Tn(r):i0(r):r.match(o)||[]}var sd=lt(function(r,o){try{return tn(r,l,o)}catch(c){return k1(c)?c:new Qe(c)}}),t6=ci(function(r,o){return cn(o,function(c){c=_t(c),qn(r,c,S1(r[c],r))}),r});function r6(r){var o=r==null?0:r.length,c=Re();return r=o?Lt(r,function(g){if(typeof g[1]!="function")throw new qr(y);return[c(g[0]),g[1]]}):[],lt(function(g){for(var x=-1;++x<o;){var L=r[x];if(tn(L[0],this,g))return tn(L[1],this,g)}})}function n6(r){return _0(Br(r,H))}function A1(r){return function(){return r}}function i6(r,o){return r==null||r!==r?o:r}var o6=j0(),a6=j0(!0);function mn(r){return r}function I1(r){return A0(typeof r=="function"?r:Br(r,H))}function l6(r){return I0(Br(r,H))}function s6(r,o){return eu(r,Br(o,H))}var u6=lt(function(r,o){return function(c){return Ko(c,r,o)}}),c6=lt(function(r,o){return function(c){return Ko(r,c,o)}});function D1(r,o,c){var g=Ar(o),x=Wa(o,g);c==null&&!(Kt(o)&&(x.length||!g.length))&&(c=o,o=r,r=this,x=Wa(o,Ar(o)));var L=!(Kt(c)&&"chain"in c)||!!c.chain,P=zo(r);return cn(x,function(D){var B=o[D];r[D]=B,P&&(r.prototype[D]=function(){var ne=this.__chain__;if(L||ne){var ie=r(this.__wrapped__),se=ie.__actions__=dr(this.__actions__);return se.push({func:B,args:arguments,thisArg:r}),ie.__chain__=ne,ie}return B.apply(r,Li([this.value()],arguments))})}),r}function f6(){return Ht._===this&&(Ht._=g0),this}function $1(){}function d6(r){return r=st(r),lt(function(o){return D0(o,r)})}var h6=oa(Lt),p6=oa(Es),g6=oa(no);function ud(r){return C(r)?Ds(_t(r)):b1(r)}function v6(r){return function(o){return r==null?l:Bi(r,o)}}var b6=Y0(),m6=Y0(!0);function N1(){return[]}function R1(){return!1}function y6(){return{}}function C6(){return""}function w6(){return!0}function x6(r,o){if(r=st(r),r<1||r>tt)return[];var c=Et,g=mr(r,Et);o=Re(o),r-=Et;for(var x=oo(g,o);++c<r;)o(c);return x}function z6(r){return at(r)?Lt(r,_t):An(r)?[r]:dr(nr(kt(r)))}function L6(r){var o=++Ti;return kt(r)+o}var _6=ja(function(r,o){return r+o},0),S6=Ya("ceil"),M6=ja(function(r,o){return r/o},1),k6=Ya("floor");function O6(r){return r&&r.length?Fa(r,mn,Zl):l}function T6(r,o){return r&&r.length?Fa(r,Re(o,2),Zl):l}function P6(r){return Is(r,mn)}function E6(r,o){return Is(r,Re(o,2))}function A6(r){return r&&r.length?Fa(r,mn,Wi):l}function I6(r,o){return r&&r.length?Fa(r,Re(o,2),Wi):l}var D6=ja(function(r,o){return r*o},1),$6=Ya("round"),N6=ja(function(r,o){return r-o},0);function R6(r){return r&&r.length?Rs(r,mn):0}function H6(r,o){return r&&r.length?Rs(r,Re(o,2)):0}return z.after=l4,z.ary=Bf,z.assign=K4,z.assignIn=ed,z.assignInWith=uc,z.assignWith=j4,z.at=Y4,z.before=Ff,z.bind=S1,z.bindAll=t6,z.bindKey=Wf,z.castArray=y4,z.chain=Nf,z.chunk=sa,z.compact=Vi,z.concat=zr,z.cond=r6,z.conforms=n6,z.constant=A1,z.countBy=R2,z.create=X4,z.curry=Uf,z.curryRight=Zf,z.debounce=Vf,z.defaults=Q4,z.defaultsDeep=J4,z.defer=s4,z.delay=u4,z.difference=Kn,z.differenceBy=ir,z.differenceWith=vu,z.drop=fi,z.dropRight=wo,z.dropRightWhile=xo,z.dropWhile=Er,z.fill=ua,z.filter=B2,z.flatMap=U2,z.flatMapDeep=Z2,z.flatMapDepth=V2,z.flatten=Af,z.flattenDeep=Hp,z.flattenDepth=Bp,z.flip=c4,z.flow=o6,z.flowRight=a6,z.fromPairs=Fp,z.functions=a5,z.functionsIn=l5,z.groupBy=G2,z.initial=Up,z.intersection=Zp,z.intersectionBy=Vp,z.intersectionWith=Gp,z.invert=u5,z.invertBy=c5,z.invokeMap=K2,z.iteratee=I1,z.keyBy=j2,z.keys=Ar,z.keysIn=bn,z.map=nc,z.mapKeys=d5,z.mapValues=h5,z.matches=l6,z.matchesProperty=s6,z.memoize=oc,z.merge=p5,z.mergeWith=td,z.method=u6,z.methodOf=c6,z.mixin=D1,z.negate=ac,z.nthArg=d6,z.omit=g5,z.omitBy=v5,z.once=f4,z.orderBy=Y2,z.over=h6,z.overArgs=d4,z.overEvery=p6,z.overSome=g6,z.partial=M1,z.partialRight=Gf,z.partition=X2,z.pick=b5,z.pickBy=rd,z.property=ud,z.propertyOf=v6,z.pull=Yp,z.pullAll=Df,z.pullAllBy=Xp,z.pullAllWith=Qp,z.pullAt=Jp,z.range=b6,z.rangeRight=m6,z.rearg=h4,z.reject=e4,z.remove=e2,z.rest=p4,z.reverse=L1,z.sampleSize=r4,z.set=y5,z.setWith=C5,z.shuffle=n4,z.slice=t2,z.sortBy=a4,z.sortedUniq=s2,z.sortedUniqBy=u2,z.split=U5,z.spread=g4,z.tail=c2,z.take=f2,z.takeRight=d2,z.takeRightWhile=h2,z.takeWhile=p2,z.tap=O2,z.throttle=v4,z.thru=rc,z.toArray=Xf,z.toPairs=nd,z.toPairsIn=id,z.toPath=z6,z.toPlainObject=Jf,z.transform=w5,z.unary=b4,z.union=g2,z.unionBy=v2,z.unionWith=b2,z.uniq=m2,z.uniqBy=y2,z.uniqWith=C2,z.unset=x5,z.unzip=_1,z.unzipWith=$f,z.update=z5,z.updateWith=L5,z.values=us,z.valuesIn=_5,z.without=w2,z.words=ld,z.wrap=m4,z.xor=x2,z.xorBy=z2,z.xorWith=L2,z.zip=_2,z.zipObject=S2,z.zipObjectDeep=M2,z.zipWith=k2,z.entries=nd,z.entriesIn=id,z.extend=ed,z.extendWith=uc,D1(z,z),z.add=_6,z.attempt=sd,z.camelCase=O5,z.capitalize=od,z.ceil=S6,z.clamp=S5,z.clone=C4,z.cloneDeep=x4,z.cloneDeepWith=z4,z.cloneWith=w4,z.conformsTo=L4,z.deburr=ad,z.defaultTo=i6,z.divide=M6,z.endsWith=T5,z.eq=di,z.escape=P5,z.escapeRegExp=E5,z.every=H2,z.find=F2,z.findIndex=ls,z.findKey=e5,z.findLast=W2,z.findLastIndex=Ef,z.findLastKey=t5,z.floor=k6,z.forEach=Rf,z.forEachRight=Hf,z.forIn=r5,z.forInRight=n5,z.forOwn=i5,z.forOwnRight=o5,z.get=T1,z.gt=_4,z.gte=S4,z.has=s5,z.hasIn=P1,z.head=If,z.identity=mn,z.includes=q2,z.indexOf=Wp,z.inRange=M5,z.invoke=f5,z.isArguments=el,z.isArray=at,z.isArrayBuffer=M4,z.isArrayLike=vn,z.isArrayLikeObject=or,z.isBoolean=k4,z.isBuffer=ca,z.isDate=O4,z.isElement=T4,z.isEmpty=P4,z.isEqual=E4,z.isEqualWith=A4,z.isError=k1,z.isFinite=I4,z.isFunction=zo,z.isInteger=qf,z.isLength=lc,z.isMap=Kf,z.isMatch=D4,z.isMatchWith=$4,z.isNaN=N4,z.isNative=R4,z.isNil=B4,z.isNull=H4,z.isNumber=jf,z.isObject=Kt,z.isObjectLike=Qt,z.isPlainObject=bu,z.isRegExp=O1,z.isSafeInteger=F4,z.isSet=Yf,z.isString=sc,z.isSymbol=An,z.isTypedArray=ss,z.isUndefined=W4,z.isWeakMap=U4,z.isWeakSet=Z4,z.join=qp,z.kebabCase=A5,z.last=jn,z.lastIndexOf=Kp,z.lowerCase=I5,z.lowerFirst=D5,z.lt=V4,z.lte=G4,z.max=O6,z.maxBy=T6,z.mean=P6,z.meanBy=E6,z.min=A6,z.minBy=I6,z.stubArray=N1,z.stubFalse=R1,z.stubObject=y6,z.stubString=C6,z.stubTrue=w6,z.multiply=D6,z.nth=jp,z.noConflict=f6,z.noop=$1,z.now=ic,z.pad=$5,z.padEnd=N5,z.padStart=R5,z.parseInt=H5,z.random=k5,z.reduce=Q2,z.reduceRight=J2,z.repeat=B5,z.replace=F5,z.result=m5,z.round=$6,z.runInContext=R,z.sample=t4,z.size=i4,z.snakeCase=W5,z.some=o4,z.sortedIndex=r2,z.sortedIndexBy=n2,z.sortedIndexOf=i2,z.sortedLastIndex=o2,z.sortedLastIndexBy=a2,z.sortedLastIndexOf=l2,z.startCase=Z5,z.startsWith=V5,z.subtract=N6,z.sum=R6,z.sumBy=H6,z.template=G5,z.times=x6,z.toFinite=Lo,z.toInteger=st,z.toLength=Qf,z.toLower=q5,z.toNumber=Yn,z.toSafeInteger=q4,z.toString=kt,z.toUpper=K5,z.trim=j5,z.trimEnd=Y5,z.trimStart=X5,z.truncate=Q5,z.unescape=J5,z.uniqueId=L6,z.upperCase=e6,z.upperFirst=E1,z.each=Rf,z.eachRight=Hf,z.first=If,D1(z,function(){var r={};return on(z,function(o,c){et.call(z.prototype,c)||(r[c]=o)}),r}(),{chain:!1}),z.VERSION=h,cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){z[r].placeholder=z}),cn(["drop","take"],function(r,o){dt.prototype[r]=function(c){c=c===l?1:Bt(st(c),0);var g=this.__filtered__&&!o?new dt(this):this.clone();return g.__filtered__?g.__takeCount__=mr(c,g.__takeCount__):g.__views__.push({size:mr(c,Et),type:r+(g.__dir__<0?"Right":"")}),g},dt.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),cn(["filter","map","takeWhile"],function(r,o){var c=o+1,g=c==E||c==ee;dt.prototype[r]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Re(x,3),type:c}),L.__filtered__=L.__filtered__||g,L}}),cn(["head","last"],function(r,o){var c="take"+(o?"Right":"");dt.prototype[r]=function(){return this[c](1).value()[0]}}),cn(["initial","tail"],function(r,o){var c="drop"+(o?"":"Right");dt.prototype[r]=function(){return this.__filtered__?new dt(this):this[c](1)}}),dt.prototype.compact=function(){return this.filter(mn)},dt.prototype.find=function(r){return this.filter(r).head()},dt.prototype.findLast=function(r){return this.reverse().find(r)},dt.prototype.invokeMap=lt(function(r,o){return typeof r=="function"?new dt(this):this.map(function(c){return Ko(c,r,o)})}),dt.prototype.reject=function(r){return this.filter(ac(Re(r)))},dt.prototype.slice=function(r,o){r=st(r);var c=this;return c.__filtered__&&(r>0||o<0)?new dt(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),o!==l&&(o=st(o),c=o<0?c.dropRight(-o):c.take(o-r)),c)},dt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},dt.prototype.toArray=function(){return this.take(Et)},on(dt.prototype,function(r,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),g=/^(?:head|last)$/.test(o),x=z[g?"take"+(o=="last"?"Right":""):o],L=g||/^find/.test(o);!x||(z.prototype[o]=function(){var P=this.__wrapped__,D=g?[1]:arguments,B=P instanceof dt,ne=D[0],ie=B||at(P),se=function(pt){var vt=x.apply(z,Li([pt],D));return g&&ze?vt[0]:vt};ie&&c&&typeof ne=="function"&&ne.length!=1&&(B=ie=!1);var ze=this.__chain__,$e=!!this.__actions__.length,Ve=L&&!ze,ct=B&&!$e;if(!L&&ie){P=ct?P:new dt(this);var Ge=r.apply(P,D);return Ge.__actions__.push({func:rc,args:[se],thisArg:l}),new Hr(Ge,ze)}return Ve&&ct?r.apply(this,D):(Ge=this.thru(se),Ve?g?Ge.value()[0]:Ge.value():Ge)})}),cn(["pop","push","shift","sort","splice","unshift"],function(r){var o=Ho[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",g=/^(?:pop|shift)$/.test(r);z.prototype[r]=function(){var x=arguments;if(g&&!this.__chain__){var L=this.value();return o.apply(at(L)?L:[],x)}return this[c](function(P){return o.apply(at(P)?P:[],x)})}}),on(dt.prototype,function(r,o){var c=z[o];if(c){var g=c.name+"";et.call(Vo,g)||(Vo[g]=[]),Vo[g].push({name:o,func:c})}}),Vo[Ka(l,Se).name]=[{name:"wrapper",func:l}],dt.prototype.clone=s1,dt.prototype.reverse=u1,dt.prototype.value=Fs,z.prototype.at=T2,z.prototype.chain=P2,z.prototype.commit=E2,z.prototype.next=A2,z.prototype.plant=D2,z.prototype.reverse=$2,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=N2,z.prototype.first=z.prototype.head,Pi&&(z.prototype[Pi]=I2),z},Mi=h0();Nr?((Nr.exports=Mi)._=Mi,Sa._=Mi):Ht._=Mi}).call(ds)})(Eu,Eu.exports);const Ag=Eu.exports,Ig=B6({__proto__:null,default:Ag},[Eu.exports]);/**
|
|
2530
|
+
`,Gv];Ms([W()],exports.InputCode.prototype,"mode",2);Ms([W({reflect:!0})],exports.InputCode.prototype,"size",2);Ms([W({type:Number})],exports.InputCode.prototype,"height",2);Ms([W({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Ms([lt()],exports.InputCode.prototype,"editor",2);exports.InputCode=Ms([Q(cp)],exports.InputCode);let uf=(u=21)=>crypto.getRandomValues(new Uint8Array(u)).reduce((a,l)=>(l&=63,l<36?a+=l.toString(36):l<62?a+=(l-26).toString(36).toUpperCase():l>62?a+="-":a+="_",a),"");/**
|
|
2423
2531
|
* @license
|
|
2424
2532
|
* Copyright 2020 Google LLC
|
|
2425
2533
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2426
|
-
*/const{I:
|
|
2534
|
+
*/const{I:Qv}=r3,Zd=()=>document.createComment(""),_u=(u,a,l)=>{var h;const c=u._$AA.parentNode,v=a===void 0?u._$AB:a._$AA;if(l===void 0){const m=c.insertBefore(Zd(),v),A=c.insertBefore(Zd(),v);l=new Qv(m,A,u,u.options)}else{const m=l._$AB.nextSibling,A=l._$AM,T=A!==u;if(T){let k;(h=l._$AQ)===null||h===void 0||h.call(l,u),l._$AM=u,l._$AP!==void 0&&(k=u._$AU)!==A._$AU&&l._$AP(k)}if(m!==v||T){let k=l._$AA;for(;k!==m;){const I=k.nextSibling;c.insertBefore(k,v),k=I}}}return l},ol=(u,a,l=u)=>(u._$AI(a,l),u),Jv={},e7=(u,a=Jv)=>u._$AH=a,t7=u=>u._$AH,Q1=u=>{var a;(a=u._$AP)===null||a===void 0||a.call(u,!1,!0);let l=u._$AA;const h=u._$AB.nextSibling;for(;l!==h;){const c=l.nextSibling;l.remove(),l=c}};/**
|
|
2427
2535
|
* @license
|
|
2428
2536
|
* Copyright 2017 Google LLC
|
|
2429
2537
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2430
|
-
*/const
|
|
2538
|
+
*/const Vd=(u,a,l)=>{const h=new Map;for(let c=a;c<=l;c++)h.set(u[c],c);return h},r7=Oc(class extends Tc{constructor(u){if(super(u),u.type!==kc.CHILD)throw Error("repeat() can only be used in text expressions")}ht(u,a,l){let h;l===void 0?l=a:a!==void 0&&(h=a);const c=[],v=[];let m=0;for(const A of u)c[m]=h?h(A,m):m,v[m]=l(A,m),m++;return{values:v,keys:c}}render(u,a,l){return this.ht(u,a,l).values}update(u,[a,l,h]){var c;const v=t7(u),{values:m,keys:A}=this.ht(a,l,h);if(!Array.isArray(v))return this.ut=A,m;const T=(c=this.ut)!==null&&c!==void 0?c:this.ut=[],k=[];let I,H,U=0,Z=v.length-1,re=0,ge=m.length-1;for(;U<=Z&&re<=ge;)if(v[U]===null)U++;else if(v[Z]===null)Z--;else if(T[U]===A[re])k[re]=ol(v[U],m[re]),U++,re++;else if(T[Z]===A[ge])k[ge]=ol(v[Z],m[ge]),Z--,ge--;else if(T[U]===A[ge])k[ge]=ol(v[U],m[ge]),_u(u,k[ge+1],v[U]),U++,ge--;else if(T[Z]===A[re])k[re]=ol(v[Z],m[re]),_u(u,v[U],v[Z]),Z--,re++;else if(I===void 0&&(I=Vd(A,re,ge),H=Vd(T,U,Z)),I.has(T[U]))if(I.has(T[Z])){const pe=H.get(A[re]),Se=pe!==void 0?v[pe]:null;if(Se===null){const Oe=_u(u,v[U]);ol(Oe,m[re]),k[re]=Oe}else k[re]=ol(Se,m[re]),_u(u,v[U],Se),v[pe]=null;re++}else Q1(v[Z]),Z--;else Q1(v[U]),U++;for(;re<=ge;){const pe=_u(u,k[ge+1]);ol(pe,m[re]),k[re++]=pe}for(;U<=Z;){const pe=v[U++];pe!==null&&Q1(pe)}return this.ut=A,e7(u,k),Gi}});/**
|
|
2431
2539
|
* @license
|
|
2432
2540
|
* Copyright 2018 Google LLC
|
|
2433
2541
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2434
|
-
*/const
|
|
2542
|
+
*/const n7=Oc(class extends Tc{constructor(u){var a;if(super(u),u.type!==kc.ATTRIBUTE||u.name!=="style"||((a=u.strings)===null||a===void 0?void 0:a.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(u){return Object.keys(u).reduce((a,l)=>{const h=u[l];return h==null?a:a+`${l=l.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${h};`},"")}update(u,[a]){const{style:l}=u.element;if(this.vt===void 0){this.vt=new Set;for(const h in a)this.vt.add(h);return this.render(a)}this.vt.forEach(h=>{a[h]==null&&(this.vt.delete(h),h.includes("-")?l.removeProperty(h):l[h]="")});for(const h in a){const c=a[h];c!=null&&(this.vt.add(h),h.includes("-")?l.setProperty(h,c):l[h]=c)}return Gi}});var i7=Object.defineProperty,o7=Object.getOwnPropertyDescriptor,wn=(u,a,l,h)=>{for(var c=h>1?void 0:h?o7(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&i7(a,l,c),c};const kf=Ee("virtual-list");exports.VirtualList=class extends We{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(u,a)=>J`
|
|
2435
2543
|
<div
|
|
2436
2544
|
class="default-render-item"
|
|
2437
2545
|
style="min-height: ${this.itemMinHeight}px"
|
|
2438
2546
|
>
|
|
2439
2547
|
Item ${a}: ${JSON.stringify(u)}
|
|
2440
2548
|
</div>
|
|
2441
|
-
`,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(u){super.updated(u),this.canSync(u)&&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((u,a)=>u+a,0)/this.originalItemsCount}get slicedItemHeightMode(){const u={};let a=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(h=>{u[h]?u[h]++:u[h]=1,u[h]>l&&(a=h,l=u[h])}),a}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(u){return["items","renderItem"].reduce((a,l)=>a||u.has(l),!1)}syncVisibleItems(){this.resetItems();for(let u=this.rollingStartIndex;u<=this.rollingEndIndex;u++){const a={position:"absolute",top:`${u*this.itemHeights[u]}px`,width:"100%"},l=this.renderItem(this.items[u],u);if(!this.itemIdentifier){const v=
|
|
2442
|
-
<div class="item-wrapper" style=${
|
|
2549
|
+
`,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(u){super.updated(u),this.canSync(u)&&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((u,a)=>u+a,0)/this.originalItemsCount}get slicedItemHeightMode(){const u={};let a=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(h=>{u[h]?u[h]++:u[h]=1,u[h]>l&&(a=h,l=u[h])}),a}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(u){return["items","renderItem"].reduce((a,l)=>a||u.has(l),!1)}syncVisibleItems(){this.resetItems();for(let u=this.rollingStartIndex;u<=this.rollingEndIndex;u++){const a={position:"absolute",top:`${u*this.itemHeights[u]}px`,width:"100%"},l=this.renderItem(this.items[u],u);if(!this.itemIdentifier){const v=sh(l,new DocumentFragment).parentNode.firstElementChild,m=v==null?void 0:v.tagName.toLowerCase(),A=v==null?void 0:v.className;this.itemIdentifier=`${m}${A?`.${A}`:""}`}const h=J`
|
|
2550
|
+
<div class="item-wrapper" style=${n7(a)}>
|
|
2443
2551
|
${l}
|
|
2444
2552
|
</div>
|
|
2445
|
-
`;this.visibleItems.push({index:u,item:h})}this.updateItemHeights()}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:u},a)=>{var l,h;this.itemHeights[u]=((h=(l=this.visibleItemElements)==null?void 0:l[a])==null?void 0:h.getBoundingClientRect().height)||this.itemHeights[u]})}get visibleItemElements(){var u;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(u=this.shadowRoot)==null?void 0:u.querySelectorAll(this.itemIdentifier)}handleScroll(u){var a;this.currentScrollTop=(a=u.currentTarget)==null?void 0:a.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const u=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),a=Math.min(this.overscan,u);return u-a}get rollingEndIndex(){const u=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),a=Math.min(this.overscan,this.endIndex-u);return u+a}get containerHeight(){return this.getBoundingClientRect().height}render(){return J`
|
|
2553
|
+
`;this.visibleItems.push({index:u,item:h})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const u=[...this.list.children].map(a=>a.firstElementChild);this.dispatchEvent(new fp({detail:{itemElements:u}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:u},a)=>{var l,h;this.itemHeights[u]=((h=(l=this.visibleItemElements)==null?void 0:l[a])==null?void 0:h.getBoundingClientRect().height)||this.itemHeights[u]})}get visibleItemElements(){var u;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(u=this.shadowRoot)==null?void 0:u.querySelectorAll(this.itemIdentifier)}handleScroll(u){var a;this.currentScrollTop=(a=u.currentTarget)==null?void 0:a.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const u=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),a=Math.min(this.overscan,u);return u-a}get rollingEndIndex(){const u=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),a=Math.min(this.overscan,this.endIndex-u);return u+a}get containerHeight(){return this.getBoundingClientRect().height}render(){return J`
|
|
2446
2554
|
<div class="container" @scroll=${this.handleScroll}>
|
|
2447
2555
|
<div class="list" style="height: ${this.innerHeight}px">
|
|
2448
|
-
${
|
|
2556
|
+
${r7(this.visibleItems,({index:u})=>u,({item:u})=>u)}
|
|
2449
2557
|
</div>
|
|
2450
2558
|
</div>
|
|
2451
2559
|
`}};exports.VirtualList.styles=[me`
|
|
@@ -2462,47 +2570,38 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2462
2570
|
.list {
|
|
2463
2571
|
position: relative;
|
|
2464
2572
|
}
|
|
2465
|
-
`];
|
|
2466
|
-
<brz-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
@brz-popover-after-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2573
|
+
`];wn([W({type:Array})],exports.VirtualList.prototype,"items",2);wn([W({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);wn([W({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);wn([W({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);wn([lt()],exports.VirtualList.prototype,"currentScrollTop",2);wn([lt()],exports.VirtualList.prototype,"endIndex",2);wn([lt()],exports.VirtualList.prototype,"innerHeight",2);wn([lt()],exports.VirtualList.prototype,"itemHeights",2);wn([lt()],exports.VirtualList.prototype,"itemIdentifier",2);wn([lt()],exports.VirtualList.prototype,"originalItemsCount",2);wn([lt()],exports.VirtualList.prototype,"currentItemsCount",2);wn([lt()],exports.VirtualList.prototype,"visibleItems",2);wn([Ls(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=wn([Q(kf)],exports.VirtualList);class fp extends CustomEvent{constructor(a={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...a})}}var a7=Object.defineProperty,l7=Object.getOwnPropertyDescriptor,To=(u,a,l,h)=>{for(var c=h>1?void 0:h?l7(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&a7(a,l,c),c};const Of="noResults";class sn extends ln{constructor(){super(...arguments),this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(a=>({...a,id:`option-${uf()}`}))]:[]}firstUpdated(){this.setInnerOptions(),this.value&&this.updateComplete.then(()=>{this.handleValueChange()})}updated(a){a.has("value")&&this.handleValueChange(),super.updated()}getItemLabel(a){var l,h;return a?a instanceof exports.MenuItem?(h=(l=a.textContent)==null?void 0:l.trim())!=null?h:"":a.label:""}handleKeyDown(a){["ArrowUp","ArrowDown"].includes(a.key)&&(a.preventDefault(),this.dropdown.open())}handleKeyUp(a){a.key===" "&&this.canSearch&&(a.preventDefault(),this.dropdown.open())}get defaultSlot(){var a,l;return(l=(a=this.renderRoot)==null?void 0:a.querySelector("slot:not([name])"))==null?void 0:l.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var a;return this.isDataDriven?(a=this.virtualListElement)==null?void 0:a.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(kf)}get optionElements(){var l,h,c;const a=(l=this.optionElementsRenderRoot)!=null&&l.querySelectorAll(zc).length?(h=this.optionElementsRenderRoot)==null?void 0:h.querySelectorAll(zc):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(a!=null?a:[])}setValue(a){this.value=a,this.handleValueChange(),this.dispatchChange()}renderInput(){return this.updateComplete.then(()=>{var a;(a=this.dropdown)==null||a.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():J`
|
|
2574
|
+
<brz-dropdown-menu
|
|
2575
|
+
@brz-menu-select=${this.handleSelect}
|
|
2576
|
+
@brz-menu-item-select=${this.handleItemSelect}
|
|
2577
|
+
@brz-popover-after-open=${this.handleOpenDropdown}
|
|
2578
|
+
@brz-popover-close=${this.handleCloseDropdown}
|
|
2579
|
+
.selected=${Array.isArray(this.value)?this.value:[this.value]}
|
|
2580
|
+
size="fluid"
|
|
2581
|
+
selectable
|
|
2474
2582
|
>
|
|
2475
|
-
${this.renderReferenceElement()}
|
|
2476
|
-
|
|
2477
|
-
class="size-${this.size}"
|
|
2478
|
-
slot="content"
|
|
2479
|
-
@brz-select="${this.handleSelect}"
|
|
2480
|
-
>
|
|
2481
|
-
${this.renderDropdownContent()}
|
|
2482
|
-
</brz-menu>
|
|
2483
|
-
</brz-popover>
|
|
2583
|
+
${this.renderReferenceElement()} ${this.renderDropdownContent()}
|
|
2584
|
+
</brz-dropdown-menu>
|
|
2484
2585
|
`}renderNoResultsMessage(){return J`
|
|
2485
|
-
<brz-menu-item id=${
|
|
2586
|
+
<brz-menu-item slot="options" id=${Of} disabled>
|
|
2486
2587
|
No results found
|
|
2487
2588
|
</brz-menu-item>
|
|
2488
2589
|
`}renderReferenceElement(){return J``}renderDropdownContent(){return J``}renderOptionsData(a=this.innerOptions){return a!=null&&a.length?J`
|
|
2489
2590
|
<brz-virtual-list
|
|
2591
|
+
slot="options"
|
|
2490
2592
|
.items=${a.filter(({hidden:l})=>!l)}
|
|
2491
|
-
.renderItem=${({id:l,label:h,value:
|
|
2593
|
+
.renderItem=${({id:l,label:h,value:c,disabled:v,selected:m})=>J`
|
|
2492
2594
|
<brz-menu-item
|
|
2493
2595
|
id=${l}
|
|
2494
|
-
value=${
|
|
2596
|
+
value=${c}
|
|
2495
2597
|
?disabled=${v}
|
|
2496
|
-
?selected=${
|
|
2497
|
-
?active=${A}
|
|
2498
|
-
?toggleable=${T}
|
|
2499
|
-
?toggled=${k}
|
|
2598
|
+
?selected=${m}
|
|
2500
2599
|
>
|
|
2501
2600
|
${h}
|
|
2502
2601
|
</brz-menu-item>
|
|
2503
2602
|
`}
|
|
2504
2603
|
></brz-virtual-list>
|
|
2505
|
-
`:null}isQueryMatch(a){return this.query?this.getItemLabel(a).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(a):!1}isCustomQueryMatch(a){return!1}handleCloseDropdown(){}handleSelect(a){}handleValueChange(){}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var a;return!!((a=this.options)!=null&&a.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}
|
|
2604
|
+
`:null}isQueryMatch(a){return this.query?this.getItemLabel(a).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(a):!1}isCustomQueryMatch(a){return!1}handleOpenDropdown(){this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){}handleSelect(a){}handleItemSelect(a){}handleValueChange(){}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var a;return!!((a=this.options)!=null&&a.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}sn.styles=[...ln.styles,me`
|
|
2506
2605
|
:host {
|
|
2507
2606
|
/** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
|
|
2508
2607
|
--dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
|
|
@@ -2569,97 +2668,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2569
2668
|
border-color: var(--input-focus-border-color);
|
|
2570
2669
|
outline: none;
|
|
2571
2670
|
}
|
|
2572
|
-
`];
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
--brz-list-padding-y: var(--brz-spacing-1);
|
|
2576
|
-
|
|
2577
|
-
display: inline-block;
|
|
2578
|
-
border-radius: var(--brz-border-radius-medium);
|
|
2579
|
-
box-sizing: border-box;
|
|
2580
|
-
box-shadow: var(--brz-box-shadow-menu);
|
|
2581
|
-
border: solid var(--brz-spacing-px) var(--brz-color-neutral-300);
|
|
2582
|
-
background-color: var(--brz-color-neutral-0);
|
|
2583
|
-
|
|
2584
|
-
padding: calc(var(--brz-list-padding-y) - var(--brz-spacing-px)) 0;
|
|
2585
|
-
max-height: calc(
|
|
2586
|
-
var(--brz-list-max-height) + (2 * var(--brz-list-padding-y))
|
|
2587
|
-
);
|
|
2588
|
-
min-width: 10rem;
|
|
2589
|
-
overflow: hidden;
|
|
2590
|
-
overflow-y: auto;
|
|
2591
|
-
}
|
|
2592
|
-
`];exports.Menu=jr([Q(Jh)],exports.Menu);exports.MenuItem=class extends Fe{constructor(){super(),this.disabled=!1,this.selected=!1,this.active=!1,this.handleSelected=this.handleSelected.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleSelected)}handleSelected(u){this.disabled||(ep(this,"brz-select",{detail:{item:this}}),this.toggleable&&u.stopPropagation())}get labelTemplate(){return J` <div class="label"><slot></slot></div> `}render(){return J`
|
|
2593
|
-
<div class="wrapper">
|
|
2594
|
-
${this.toggleable?J`
|
|
2595
|
-
<brz-input-checkbox
|
|
2596
|
-
@brz-input-change=${this.handleSelected}
|
|
2597
|
-
?disabled=${this.disabled}
|
|
2598
|
-
?checked=${this.toggled}
|
|
2599
|
-
>
|
|
2600
|
-
${this.labelTemplate}
|
|
2601
|
-
</brz-input-checkbox>
|
|
2602
|
-
`:J`<div class="selectable">
|
|
2603
|
-
${this.active?J`<brz-icon icon="checkBoxTick"></brz-icon>`:null}
|
|
2604
|
-
${this.labelTemplate}
|
|
2605
|
-
</div>`}
|
|
2606
|
-
</div>
|
|
2607
|
-
`}};exports.MenuItem.styles=[me`
|
|
2608
|
-
:host {
|
|
2609
|
-
--menu-item-min-height: var(--brz-spacing-8);
|
|
2610
|
-
--menu-item-padding-y: calc(1.5 * var(--brz-spacing-1));
|
|
2611
|
-
--menu-label-gutter: 26px;
|
|
2612
|
-
|
|
2613
|
-
cursor: pointer;
|
|
2614
|
-
width: 100%;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
:host([disabled]) {
|
|
2618
|
-
cursor: default;
|
|
2619
|
-
}
|
|
2620
|
-
|
|
2621
|
-
:host([disabled]) .wrapper {
|
|
2622
|
-
color: var(--brz-color-neutral-500);
|
|
2623
|
-
}
|
|
2624
|
-
|
|
2625
|
-
.wrapper {
|
|
2626
|
-
display: flex;
|
|
2627
|
-
align-items: center;
|
|
2628
|
-
min-height: var(--menu-item-min-height);
|
|
2629
|
-
padding: 0 var(--brz-spacing-2);
|
|
2630
|
-
}
|
|
2631
|
-
|
|
2632
|
-
:host([toggleable]) .wrapper {
|
|
2633
|
-
padding: 0 var(--brz-spacing-3);
|
|
2634
|
-
}
|
|
2635
|
-
|
|
2636
|
-
:host(:not([disabled])) .wrapper:hover,
|
|
2637
|
-
:host([selected]) .wrapper {
|
|
2638
|
-
background-color: var(--brz-color-neutral-250);
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
:host([active]) .selectable > brz-icon {
|
|
2642
|
-
color: var(--brz-color-blue-600);
|
|
2643
|
-
position: absolute;
|
|
2644
|
-
left: 0;
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
.label {
|
|
2648
|
-
flex-basis: 100%;
|
|
2649
|
-
padding: var(--menu-item-padding-y) 0;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
.selectable {
|
|
2653
|
-
display: flex;
|
|
2654
|
-
align-items: center;
|
|
2655
|
-
padding-left: var(--menu-label-gutter);
|
|
2656
|
-
position: relative;
|
|
2657
|
-
}
|
|
2658
|
-
`];jr([U({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);jr([U({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);jr([U({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"active",2);jr([U({type:String})],exports.MenuItem.prototype,"value",2);jr([U({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);jr([U({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=jr([Q(Su)],exports.MenuItem);const ep=(u,a,l)=>{const h=new CustomEvent(a,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},l));return u.dispatchEvent(h),h};var Vg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,Hu=(u,a,l,h)=>{for(var f=h>1?void 0:h?Gg(a,l):a,v=u.length-1,y;v>=0;v--)(y=u[v])&&(f=(h?y(a,l,f):y(f))||f);return h&&f&&Vg(a,l,f),f};const tp=Ee("input-select");exports.InputSelect=class extends wn{constructor(){super(...arguments),this.query="",this.hasResults=!1}handleChangeSearch(u){const a=u.target;this.query&&a.value===this.query||(this.isDropdownOpen()||this.openDropdown(),this.selectedIndex=0,this.query=a==null?void 0:a.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(u){this.setValue(u.detail.item.value),this.closeDropdown()}get queryInput(){var u;return(u=this.shadowRoot)==null?void 0:u.querySelector("input#selectSearch")}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(u=>{u.active=this.value===u.value})}renderReferenceElement(){var u;return this.applySelectedStatusToChildren(),this.search(),J`
|
|
2659
|
-
<div
|
|
2671
|
+
`];To([W({attribute:"can-search",type:Boolean,reflect:!0})],sn.prototype,"canSearch",2);To([W({type:Boolean,reflect:!0})],sn.prototype,"loading",2);To([W({type:String,reflect:!0,attribute:"trailing-icon"})],sn.prototype,"trailingIcon",2);To([W({type:Array})],sn.prototype,"options",2);To([lt()],sn.prototype,"hasResults",2);To([lt()],sn.prototype,"query",2);To([lt()],sn.prototype,"innerOptions",2);To([Ls("brz-dropdown-menu")],sn.prototype,"dropdown",2);To([Ls("#selectSearch")],sn.prototype,"queryInput",2);var s7=Object.defineProperty,u7=Object.getOwnPropertyDescriptor,Wu=(u,a,l,h)=>{for(var c=h>1?void 0:h?u7(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&s7(a,l,c),c};const dp=Ee("input-select");exports.InputSelect=class extends sn{constructor(){super(...arguments),this.query="",this.hasResults=!1}handleChangeSearch(u){const a=u.target;this.query&&a.value===this.query||(this.query=a==null?void 0:a.value)}handleCloseDropdown(){window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(u){this.setValue(u.detail.selected[0])}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(u=>{u.selected=this.value===u.value})}renderReferenceElement(){var u;return this.applySelectedStatusToChildren(),this.search(),J`
|
|
2672
|
+
<button
|
|
2673
|
+
type="button"
|
|
2660
2674
|
class="wrapper"
|
|
2661
|
-
@keydown="${this.handleKeydown}"
|
|
2662
2675
|
tabindex=${this.disabled?-1:0}
|
|
2676
|
+
@keydown=${this.handleKeyDown}
|
|
2677
|
+
@keyup=${this.handleKeyUp}
|
|
2663
2678
|
aria-required=${$t(this.required)}
|
|
2664
2679
|
>
|
|
2665
2680
|
${this.canSearch?null:J`
|
|
@@ -2673,7 +2688,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2673
2688
|
type="search"
|
|
2674
2689
|
placeholder=${$t(this.placeholder)}
|
|
2675
2690
|
@input="${this.handleChangeSearch}"
|
|
2676
|
-
@keydown="${this.handleKeydown}"
|
|
2677
2691
|
?disabled=${this.disabled}
|
|
2678
2692
|
?readonly=${this.readonly}
|
|
2679
2693
|
value=${(u=this.valueLabel)!=null?u:""}
|
|
@@ -2685,11 +2699,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2685
2699
|
aria-label="loading options"
|
|
2686
2700
|
size="16"
|
|
2687
2701
|
></brz-loading-spinner>`:null}
|
|
2688
|
-
</
|
|
2702
|
+
</button>
|
|
2689
2703
|
`}renderDropdownContent(){return J`
|
|
2690
2704
|
${this.hasQueryResults?null:this.renderNoResultsMessage()}
|
|
2691
|
-
${this.isDataDriven?this.renderOptionsData():J
|
|
2692
|
-
`}resetSearch(){this.query=""}search(){var a;this.hasResults=!1;const u=(a=this.query)==null?void 0:a.toLowerCase();this.getItems().forEach(l=>{var
|
|
2705
|
+
${this.isDataDriven?this.renderOptionsData():J` <slot slot="options"></slot> `}
|
|
2706
|
+
`}resetSearch(){this.query=""}search(){var a;this.hasResults=!1;const u=(a=this.query)==null?void 0:a.toLowerCase();this.getItems().forEach(l=>{var c;if("id"in l&&l.id===Of)return;if(!u||u===((c=this.valueLabel)==null?void 0:c.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const h=this.isQueryMatch(l);h&&(this.hasResults=!0),l.hidden=!h})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${uf()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(u=>({...u,id:`option-${uf()}`}))]:[]}disconnectedCallback(){var u;(u=this.selectedOptionObserver)==null||u.disconnect(),super.disconnectedCallback()}syncValueLabel(u){var l,h;if((l=this.selectedOptionObserver)==null||l.disconnect(),this.isDataDriven&&this.isReadonlyOrDisabled){this.valueLabel=(h=this.innerOptions.find(c=>c.value===u))==null?void 0:h.label;return}const a=this.optionElements.find(c=>c.value===u);a&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(a),this.resetSearch()}),a instanceof Node&&this.selectedOptionObserver.observe(a,{characterData:!1,childList:!0,attributes:!1}),this.valueLabel=this.value?this.getItemLabel(a):"")}};exports.InputSelect.styles=[...sn.styles,me`
|
|
2693
2707
|
input {
|
|
2694
2708
|
text-overflow: ellipsis;
|
|
2695
2709
|
}
|
|
@@ -2708,6 +2722,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2708
2722
|
}
|
|
2709
2723
|
|
|
2710
2724
|
.wrapper {
|
|
2725
|
+
${gf};
|
|
2726
|
+
text-align: left;
|
|
2727
|
+
width: 100%;
|
|
2711
2728
|
position: relative;
|
|
2712
2729
|
height: 36px;
|
|
2713
2730
|
box-sizing: border-box;
|
|
@@ -2733,7 +2750,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2733
2750
|
.placeholder {
|
|
2734
2751
|
color: var(--input-placeholder-font-color);
|
|
2735
2752
|
}
|
|
2736
|
-
`];
|
|
2753
|
+
`];Wu([W({type:String})],exports.InputSelect.prototype,"value",2);Wu([lt()],exports.InputSelect.prototype,"query",2);Wu([lt()],exports.InputSelect.prototype,"valueLabel",2);Wu([lt()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Wu([Q(dp)],exports.InputSelect);var c7=Object.defineProperty,f7=Object.getOwnPropertyDescriptor,vi=(u,a,l,h)=>{for(var c=h>1?void 0:h?f7(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&c7(a,l,c),c};const hp=Ee("lozenge"),d7=["neutral","green","orange","red","cyan","purple","sapphire"],h7=["solid","subtle","border"],p7=["small","medium","large"];class pp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends We{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(u){u.stopPropagation(),this.dispatchEvent(new pp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var u;return this.updateComplete.then(()=>this.checkOverflow()),J`
|
|
2737
2754
|
<brz-tooltip
|
|
2738
2755
|
content=${(u=this.defaultSlot[0])==null?void 0:u.textContent}
|
|
2739
2756
|
?disabled=${!this.isOverflowing}
|
|
@@ -2885,7 +2902,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2885
2902
|
margin-right: var(--brz-spacing-2);
|
|
2886
2903
|
}
|
|
2887
2904
|
|
|
2888
|
-
${
|
|
2905
|
+
${fh(".close",me`
|
|
2889
2906
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
2890
2907
|
`)}
|
|
2891
2908
|
|
|
@@ -2903,13 +2920,15 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2903
2920
|
color: var(--brz-color-neutral-550);
|
|
2904
2921
|
cursor: unset;
|
|
2905
2922
|
}
|
|
2906
|
-
`;
|
|
2923
|
+
`;vi([W({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);vi([W({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);vi([W({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);vi([W({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);vi([W({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);vi([W({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);vi([W({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);vi([uh()],exports.Lozenge.prototype,"defaultSlot",2);vi([i3(".message")],exports.Lozenge.prototype,"message",2);vi([lt()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=vi([Q(hp)],exports.Lozenge);var g7=Object.defineProperty,v7=Object.getOwnPropertyDescriptor,Uu=(u,a,l,h)=>{for(var c=h>1?void 0:h?v7(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&g7(a,l,c),c};const gp=Ee("input-multiselect");exports.InputMultiselect=class extends sn{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}firstUpdated(){super.firstUpdated(),this.isDataDriven&&this.innerOptions.unshift(this.selectAllOption)}updated(u){super.updated(u),this.dropdown&&(this.dropdown.multiselect=!0)}get allSelected(){const{enabled:u,toggled:a}=[...this.getItems()].reduce((l,h)=>h.id===Vi?l:{enabled:h.disabled?l.enabled:l.enabled+1,toggled:h.selected?l.toggled+1:l.toggled},{enabled:0,toggled:0});return u===a}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabels()}handleSelect(u){this.setValue(u.detail.selected)}handleItemSelect({detail:{item:u}}){u.id===Vi&&this.toggleAllSelected()}toggleAllSelected(){const u=[];this.allSelected||this.getItems().forEach(a=>{!a.disabled&&a.id!==Vi&&u.push(a.value)}),this.setValue(u),this.handleValueChange()}toggleSelection(u){const a=this.value?[...this.value]:[],l=a.indexOf(u);l>-1&&a.splice(l,1),l===-1&&a.push(u),this.setValue(a)}syncSelected(){this.getItems().forEach(u=>{const a=this.value&&this.value.includes(u.value);u.selected=u.id===Vi?this.allSelected:a})}onQueryChange({target:u}){this.query=u==null?void 0:u.value}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?J`<span class="truncation"
|
|
2907
2924
|
>+${this.value.length-this.truncateValuesAfter} more</span
|
|
2908
|
-
>`:null}renderReferenceElement(){return this.
|
|
2909
|
-
<
|
|
2925
|
+
>`:null}handleKeyDown(u){super.handleKeyDown(u),u.key==="Backspace"&&(this.isReadonlyOrDisabled||this.removeLastValue())}renderReferenceElement(){return this.syncSelected(),this.search(),J`
|
|
2926
|
+
<button
|
|
2927
|
+
type="button"
|
|
2910
2928
|
class="wrapper"
|
|
2911
|
-
@keydown="${this.handleKeydown}"
|
|
2912
2929
|
tabindex=${this.disabled?-1:0}
|
|
2930
|
+
@keydown=${this.handleKeyDown}
|
|
2931
|
+
@keyup=${this.handleKeyUp}
|
|
2913
2932
|
>
|
|
2914
2933
|
<div class="selected-options">
|
|
2915
2934
|
${!this.canSearch&&this.valueLabels.length===0?J` <div class="placeholder">${this.placeholder}</div> `:void 0}
|
|
@@ -2928,6 +2947,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2928
2947
|
${this.truncation}
|
|
2929
2948
|
${!this.isReadonlyOrDisabled&&this.canSearch?J`
|
|
2930
2949
|
<input
|
|
2950
|
+
id="selectSearch"
|
|
2931
2951
|
type="search"
|
|
2932
2952
|
value=${this.query}
|
|
2933
2953
|
@input=${this.onQueryChange}
|
|
@@ -2940,20 +2960,20 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2940
2960
|
aria-label="loading options"
|
|
2941
2961
|
size="16"
|
|
2942
2962
|
></brz-loading-spinner>`:null}
|
|
2943
|
-
</
|
|
2944
|
-
`}get selectAllOption(){return{id:
|
|
2963
|
+
</button>
|
|
2964
|
+
`}get selectAllOption(){return{id:Vi,value:Vi,label:"Select all",selected:this.allSelected}}get selectAllOptionElement(){const{id:u,value:a,label:l,selected:h}=this.selectAllOption;return J`
|
|
2945
2965
|
<brz-menu-item
|
|
2966
|
+
slot="options"
|
|
2946
2967
|
id=${u}
|
|
2947
|
-
?toggleable=${h}
|
|
2948
|
-
?toggled=${f}
|
|
2949
2968
|
value=${a}
|
|
2969
|
+
?selected=${h}
|
|
2950
2970
|
>
|
|
2951
2971
|
${l}
|
|
2952
2972
|
</brz-menu-item>
|
|
2953
2973
|
`}renderDropdownContent(){return J`
|
|
2954
2974
|
${this.hasQueryResults?null:this.renderNoResultsMessage()}
|
|
2955
|
-
${this.isDataDriven?this.renderOptionsData():J` ${this.selectAllOptionElement} <slot></slot> `}
|
|
2956
|
-
`}removeLastValue(){var u;(u=this.value)==null||u.pop(),this.handleValueChange()}resetSearch(){this.query=""}search(){var a;this.hasResults=!1;const u=(a=this.query)==null?void 0:a.toLowerCase();this.getItems().forEach(l=>{if(!u){l.hidden=!1,this.hasResults=!0;return}const h=this.isQueryMatch(l);h&&(this.hasResults=!0),l.hidden=!h})}getItems(){var a,l;const u=super.getItems();return this.isDataDriven?u:[((a=this.renderRoot)==null?void 0:a.querySelector(`brz-menu-item#${
|
|
2975
|
+
${this.isDataDriven?this.renderOptionsData():J` ${this.selectAllOptionElement} <slot slot="options"></slot> `}
|
|
2976
|
+
`}removeLastValue(){var u;(u=this.value)==null||u.pop(),this.handleValueChange()}resetSearch(){this.query=""}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||"")}search(){var a;this.hasResults=!1;const u=(a=this.query)==null?void 0:a.toLowerCase();this.getItems().forEach(l=>{if(!u){l.hidden=!1,this.hasResults=!0;return}const h=this.isQueryMatch(l);h&&(this.hasResults=!0),l.hidden=!h})}getItems(){var a,l;const u=super.getItems();return this.isDataDriven?u:[((a=this.renderRoot)==null?void 0:a.querySelector(`brz-menu-item#${Vi}`))||((l=this.renderRoot)==null?void 0:l.querySelector(`sp-menu-item#${Vi}`))||{},...u]}syncValueLabels(){const u=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(a=>({label:this.getItemLabel(u.find(l=>l.value===a)),value:a})):[],this.render()}};exports.InputMultiselect.styles=[...sn.styles,me`
|
|
2957
2977
|
:host {
|
|
2958
2978
|
--brz-input-multiselect-padding-y: calc(
|
|
2959
2979
|
(var(--brz-spacing-3) / 2) - var(--input-border-width)
|
|
@@ -2961,6 +2981,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2961
2981
|
}
|
|
2962
2982
|
|
|
2963
2983
|
.wrapper {
|
|
2984
|
+
${gf};
|
|
2985
|
+
text-align: left;
|
|
2986
|
+
width: 100%;
|
|
2964
2987
|
position: relative;
|
|
2965
2988
|
min-height: 36px;
|
|
2966
2989
|
box-sizing: border-box;
|
|
@@ -3015,10 +3038,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3015
3038
|
brz-icon[icon='chevronDown'] {
|
|
3016
3039
|
color: var(--brz-color-neutral-750);
|
|
3017
3040
|
}
|
|
3018
|
-
`];Bu([U({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Bu([U({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Bu([U({type:Array})],exports.InputMultiselect.prototype,"value",2);Bu([ut()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Bu([Q(ip)],exports.InputMultiselect);function pa(u){if(u===null||u===!0||u===!1)return NaN;var a=Number(u);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function Wr(u,a){if(a.length<u)throw new TypeError(u+" argument"+(u>1?"s":"")+" required, but only "+a.length+" present")}function hc(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hc=function(l){return typeof l}:hc=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},hc(u)}function mi(u){Wr(1,arguments);var a=Object.prototype.toString.call(u);return u instanceof Date||hc(u)==="object"&&a==="[object Date]"?new Date(u.getTime()):typeof u=="number"||a==="[object Number]"?new Date(u):((typeof u=="string"||a==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function op(u,a){Wr(2,arguments);var l=mi(u).getTime(),h=pa(a);return new Date(l+h)}var ev={};function Ac(){return ev}function tv(u){var a=new Date(Date.UTC(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds()));return a.setUTCFullYear(u.getFullYear()),u.getTime()-a.getTime()}function rv(u){Wr(1,arguments);var a=mi(u);return a.setHours(0,0,0,0),a}var nv=6e4;function iv(u,a){Wr(2,arguments);var l=pa(a);return op(u,l*nv)}function pc(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pc=function(l){return typeof l}:pc=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},pc(u)}function ov(u){return Wr(1,arguments),u instanceof Date||pc(u)==="object"&&Object.prototype.toString.call(u)==="[object Date]"}function av(u){if(Wr(1,arguments),!ov(u)&&typeof u!="number")return!1;var a=mi(u);return!isNaN(Number(a))}function lv(u,a){Wr(2,arguments);var l=pa(a);return op(u,-l)}var sv=864e5;function uv(u){Wr(1,arguments);var a=mi(u),l=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var h=a.getTime(),f=l-h;return Math.floor(f/sv)+1}function wc(u){Wr(1,arguments);var a=1,l=mi(u),h=l.getUTCDay(),f=(h<a?7:0)+h-a;return l.setUTCDate(l.getUTCDate()-f),l.setUTCHours(0,0,0,0),l}function ap(u){Wr(1,arguments);var a=mi(u),l=a.getUTCFullYear(),h=new Date(0);h.setUTCFullYear(l+1,0,4),h.setUTCHours(0,0,0,0);var f=wc(h),v=new Date(0);v.setUTCFullYear(l,0,4),v.setUTCHours(0,0,0,0);var y=wc(v);return a.getTime()>=f.getTime()?l+1:a.getTime()>=y.getTime()?l:l-1}function cv(u){Wr(1,arguments);var a=ap(u),l=new Date(0);l.setUTCFullYear(a,0,4),l.setUTCHours(0,0,0,0);var h=wc(l);return h}var fv=6048e5;function dv(u){Wr(1,arguments);var a=mi(u),l=wc(a).getTime()-cv(a).getTime();return Math.round(l/fv)+1}function xc(u,a){var l,h,f,v,y,A,T,k;Wr(1,arguments);var I=Ac(),H=pa((l=(h=(f=(v=a==null?void 0:a.weekStartsOn)!==null&&v!==void 0?v:a==null||(y=a.locale)===null||y===void 0||(A=y.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&f!==void 0?f:I.weekStartsOn)!==null&&h!==void 0?h:(T=I.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&l!==void 0?l:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var W=mi(u),Z=W.getUTCDay(),re=(Z<H?7:0)+Z-H;return W.setUTCDate(W.getUTCDate()-re),W.setUTCHours(0,0,0,0),W}function lp(u,a){var l,h,f,v,y,A,T,k;Wr(1,arguments);var I=mi(u),H=I.getUTCFullYear(),W=Ac(),Z=pa((l=(h=(f=(v=a==null?void 0:a.firstWeekContainsDate)!==null&&v!==void 0?v:a==null||(y=a.locale)===null||y===void 0||(A=y.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&f!==void 0?f:W.firstWeekContainsDate)!==null&&h!==void 0?h:(T=W.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1);if(!(Z>=1&&Z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=new Date(0);re.setUTCFullYear(H+1,0,Z),re.setUTCHours(0,0,0,0);var ge=xc(re,a),pe=new Date(0);pe.setUTCFullYear(H,0,Z),pe.setUTCHours(0,0,0,0);var Se=xc(pe,a);return I.getTime()>=ge.getTime()?H+1:I.getTime()>=Se.getTime()?H:H-1}function hv(u,a){var l,h,f,v,y,A,T,k;Wr(1,arguments);var I=Ac(),H=pa((l=(h=(f=(v=a==null?void 0:a.firstWeekContainsDate)!==null&&v!==void 0?v:a==null||(y=a.locale)===null||y===void 0||(A=y.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&f!==void 0?f:I.firstWeekContainsDate)!==null&&h!==void 0?h:(T=I.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1),W=lp(u,a),Z=new Date(0);Z.setUTCFullYear(W,0,H),Z.setUTCHours(0,0,0,0);var re=xc(Z,a);return re}var pv=6048e5;function gv(u,a){Wr(1,arguments);var l=mi(u),h=xc(l,a).getTime()-hv(l,a).getTime();return Math.round(h/pv)+1}function Pt(u,a){for(var l=u<0?"-":"",h=Math.abs(u).toString();h.length<a;)h="0"+h;return l+h}var vv={y:function(a,l){var h=a.getUTCFullYear(),f=h>0?h:1-h;return Pt(l==="yy"?f%100:f,l.length)},M:function(a,l){var h=a.getUTCMonth();return l==="M"?String(h+1):Pt(h+1,2)},d:function(a,l){return Pt(a.getUTCDate(),l.length)},a:function(a,l){var h=a.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return h.toUpperCase();case"aaa":return h;case"aaaaa":return h[0];case"aaaa":default:return h==="am"?"a.m.":"p.m."}},h:function(a,l){return Pt(a.getUTCHours()%12||12,l.length)},H:function(a,l){return Pt(a.getUTCHours(),l.length)},m:function(a,l){return Pt(a.getUTCMinutes(),l.length)},s:function(a,l){return Pt(a.getUTCSeconds(),l.length)},S:function(a,l){var h=l.length,f=a.getUTCMilliseconds(),v=Math.floor(f*Math.pow(10,h-3));return Pt(v,l.length)}};const da=vv;var cs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bv={G:function(a,l,h){var f=a.getUTCFullYear()>0?1:0;switch(l){case"G":case"GG":case"GGG":return h.era(f,{width:"abbreviated"});case"GGGGG":return h.era(f,{width:"narrow"});case"GGGG":default:return h.era(f,{width:"wide"})}},y:function(a,l,h){if(l==="yo"){var f=a.getUTCFullYear(),v=f>0?f:1-f;return h.ordinalNumber(v,{unit:"year"})}return da.y(a,l)},Y:function(a,l,h,f){var v=lp(a,f),y=v>0?v:1-v;if(l==="YY"){var A=y%100;return Pt(A,2)}return l==="Yo"?h.ordinalNumber(y,{unit:"year"}):Pt(y,l.length)},R:function(a,l){var h=ap(a);return Pt(h,l.length)},u:function(a,l){var h=a.getUTCFullYear();return Pt(h,l.length)},Q:function(a,l,h){var f=Math.ceil((a.getUTCMonth()+1)/3);switch(l){case"Q":return String(f);case"QQ":return Pt(f,2);case"Qo":return h.ordinalNumber(f,{unit:"quarter"});case"QQQ":return h.quarter(f,{width:"abbreviated",context:"formatting"});case"QQQQQ":return h.quarter(f,{width:"narrow",context:"formatting"});case"QQQQ":default:return h.quarter(f,{width:"wide",context:"formatting"})}},q:function(a,l,h){var f=Math.ceil((a.getUTCMonth()+1)/3);switch(l){case"q":return String(f);case"qq":return Pt(f,2);case"qo":return h.ordinalNumber(f,{unit:"quarter"});case"qqq":return h.quarter(f,{width:"abbreviated",context:"standalone"});case"qqqqq":return h.quarter(f,{width:"narrow",context:"standalone"});case"qqqq":default:return h.quarter(f,{width:"wide",context:"standalone"})}},M:function(a,l,h){var f=a.getUTCMonth();switch(l){case"M":case"MM":return da.M(a,l);case"Mo":return h.ordinalNumber(f+1,{unit:"month"});case"MMM":return h.month(f,{width:"abbreviated",context:"formatting"});case"MMMMM":return h.month(f,{width:"narrow",context:"formatting"});case"MMMM":default:return h.month(f,{width:"wide",context:"formatting"})}},L:function(a,l,h){var f=a.getUTCMonth();switch(l){case"L":return String(f+1);case"LL":return Pt(f+1,2);case"Lo":return h.ordinalNumber(f+1,{unit:"month"});case"LLL":return h.month(f,{width:"abbreviated",context:"standalone"});case"LLLLL":return h.month(f,{width:"narrow",context:"standalone"});case"LLLL":default:return h.month(f,{width:"wide",context:"standalone"})}},w:function(a,l,h,f){var v=gv(a,f);return l==="wo"?h.ordinalNumber(v,{unit:"week"}):Pt(v,l.length)},I:function(a,l,h){var f=dv(a);return l==="Io"?h.ordinalNumber(f,{unit:"week"}):Pt(f,l.length)},d:function(a,l,h){return l==="do"?h.ordinalNumber(a.getUTCDate(),{unit:"date"}):da.d(a,l)},D:function(a,l,h){var f=uv(a);return l==="Do"?h.ordinalNumber(f,{unit:"dayOfYear"}):Pt(f,l.length)},E:function(a,l,h){var f=a.getUTCDay();switch(l){case"E":case"EE":case"EEE":return h.day(f,{width:"abbreviated",context:"formatting"});case"EEEEE":return h.day(f,{width:"narrow",context:"formatting"});case"EEEEEE":return h.day(f,{width:"short",context:"formatting"});case"EEEE":default:return h.day(f,{width:"wide",context:"formatting"})}},e:function(a,l,h,f){var v=a.getUTCDay(),y=(v-f.weekStartsOn+8)%7||7;switch(l){case"e":return String(y);case"ee":return Pt(y,2);case"eo":return h.ordinalNumber(y,{unit:"day"});case"eee":return h.day(v,{width:"abbreviated",context:"formatting"});case"eeeee":return h.day(v,{width:"narrow",context:"formatting"});case"eeeeee":return h.day(v,{width:"short",context:"formatting"});case"eeee":default:return h.day(v,{width:"wide",context:"formatting"})}},c:function(a,l,h,f){var v=a.getUTCDay(),y=(v-f.weekStartsOn+8)%7||7;switch(l){case"c":return String(y);case"cc":return Pt(y,l.length);case"co":return h.ordinalNumber(y,{unit:"day"});case"ccc":return h.day(v,{width:"abbreviated",context:"standalone"});case"ccccc":return h.day(v,{width:"narrow",context:"standalone"});case"cccccc":return h.day(v,{width:"short",context:"standalone"});case"cccc":default:return h.day(v,{width:"wide",context:"standalone"})}},i:function(a,l,h){var f=a.getUTCDay(),v=f===0?7:f;switch(l){case"i":return String(v);case"ii":return Pt(v,l.length);case"io":return h.ordinalNumber(v,{unit:"day"});case"iii":return h.day(f,{width:"abbreviated",context:"formatting"});case"iiiii":return h.day(f,{width:"narrow",context:"formatting"});case"iiiiii":return h.day(f,{width:"short",context:"formatting"});case"iiii":default:return h.day(f,{width:"wide",context:"formatting"})}},a:function(a,l,h){var f=a.getUTCHours(),v=f/12>=1?"pm":"am";switch(l){case"a":case"aa":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"aaa":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return h.dayPeriod(v,{width:"narrow",context:"formatting"});case"aaaa":default:return h.dayPeriod(v,{width:"wide",context:"formatting"})}},b:function(a,l,h){var f=a.getUTCHours(),v;switch(f===12?v=cs.noon:f===0?v=cs.midnight:v=f/12>=1?"pm":"am",l){case"b":case"bb":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"bbb":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return h.dayPeriod(v,{width:"narrow",context:"formatting"});case"bbbb":default:return h.dayPeriod(v,{width:"wide",context:"formatting"})}},B:function(a,l,h){var f=a.getUTCHours(),v;switch(f>=17?v=cs.evening:f>=12?v=cs.afternoon:f>=4?v=cs.morning:v=cs.night,l){case"B":case"BB":case"BBB":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"BBBBB":return h.dayPeriod(v,{width:"narrow",context:"formatting"});case"BBBB":default:return h.dayPeriod(v,{width:"wide",context:"formatting"})}},h:function(a,l,h){if(l==="ho"){var f=a.getUTCHours()%12;return f===0&&(f=12),h.ordinalNumber(f,{unit:"hour"})}return da.h(a,l)},H:function(a,l,h){return l==="Ho"?h.ordinalNumber(a.getUTCHours(),{unit:"hour"}):da.H(a,l)},K:function(a,l,h){var f=a.getUTCHours()%12;return l==="Ko"?h.ordinalNumber(f,{unit:"hour"}):Pt(f,l.length)},k:function(a,l,h){var f=a.getUTCHours();return f===0&&(f=24),l==="ko"?h.ordinalNumber(f,{unit:"hour"}):Pt(f,l.length)},m:function(a,l,h){return l==="mo"?h.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):da.m(a,l)},s:function(a,l,h){return l==="so"?h.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):da.s(a,l)},S:function(a,l){return da.S(a,l)},X:function(a,l,h,f){var v=f._originalDate||a,y=v.getTimezoneOffset();if(y===0)return"Z";switch(l){case"X":return Wd(y);case"XXXX":case"XX":return il(y);case"XXXXX":case"XXX":default:return il(y,":")}},x:function(a,l,h,f){var v=f._originalDate||a,y=v.getTimezoneOffset();switch(l){case"x":return Wd(y);case"xxxx":case"xx":return il(y);case"xxxxx":case"xxx":default:return il(y,":")}},O:function(a,l,h,f){var v=f._originalDate||a,y=v.getTimezoneOffset();switch(l){case"O":case"OO":case"OOO":return"GMT"+Fd(y,":");case"OOOO":default:return"GMT"+il(y,":")}},z:function(a,l,h,f){var v=f._originalDate||a,y=v.getTimezoneOffset();switch(l){case"z":case"zz":case"zzz":return"GMT"+Fd(y,":");case"zzzz":default:return"GMT"+il(y,":")}},t:function(a,l,h,f){var v=f._originalDate||a,y=Math.floor(v.getTime()/1e3);return Pt(y,l.length)},T:function(a,l,h,f){var v=f._originalDate||a,y=v.getTime();return Pt(y,l.length)}};function Fd(u,a){var l=u>0?"-":"+",h=Math.abs(u),f=Math.floor(h/60),v=h%60;if(v===0)return l+String(f);var y=a||"";return l+String(f)+y+Pt(v,2)}function Wd(u,a){if(u%60===0){var l=u>0?"-":"+";return l+Pt(Math.abs(u)/60,2)}return il(u,a)}function il(u,a){var l=a||"",h=u>0?"-":"+",f=Math.abs(u),v=Pt(Math.floor(f/60),2),y=Pt(f%60,2);return h+v+l+y}const mv=bv;var Ud=function(a,l){switch(a){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},sp=function(a,l){switch(a){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},yv=function(a,l){var h=a.match(/(P+)(p+)?/)||[],f=h[1],v=h[2];if(!v)return Ud(a,l);var y;switch(f){case"P":y=l.dateTime({width:"short"});break;case"PP":y=l.dateTime({width:"medium"});break;case"PPP":y=l.dateTime({width:"long"});break;case"PPPP":default:y=l.dateTime({width:"full"});break}return y.replace("{{date}}",Ud(f,l)).replace("{{time}}",sp(v,l))},Cv={p:sp,P:yv};const wv=Cv;var xv=["D","DD"],zv=["YY","YYYY"];function Lv(u){return xv.indexOf(u)!==-1}function _v(u){return zv.indexOf(u)!==-1}function Zd(u,a,l){if(u==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(u==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(u==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(u==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Sv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mv=function(a,l,h){var f,v=Sv[a];return typeof v=="string"?f=v:l===1?f=v.one:f=v.other.replace("{{count}}",l.toString()),h!=null&&h.addSuffix?h.comparison&&h.comparison>0?"in "+f:f+" ago":f};const kv=Mv;function K1(u){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=a.width?String(a.width):u.defaultWidth,h=u.formats[l]||u.formats[u.defaultWidth];return h}}var Ov={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Tv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ev={date:K1({formats:Ov,defaultWidth:"full"}),time:K1({formats:Tv,defaultWidth:"full"}),dateTime:K1({formats:Pv,defaultWidth:"full"})};const Av=Ev;var Iv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dv=function(a,l,h,f){return Iv[a]};const $v=Dv;function wu(u){return function(a,l){var h=l!=null&&l.context?String(l.context):"standalone",f;if(h==="formatting"&&u.formattingValues){var v=u.defaultFormattingWidth||u.defaultWidth,y=l!=null&&l.width?String(l.width):v;f=u.formattingValues[y]||u.formattingValues[v]}else{var A=u.defaultWidth,T=l!=null&&l.width?String(l.width):u.defaultWidth;f=u.values[T]||u.values[A]}var k=u.argumentCallback?u.argumentCallback(a):a;return f[k]}}var Nv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Hv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Bv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Fv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Uv=function(a,l){var h=Number(a),f=h%100;if(f>20||f<10)switch(f%10){case 1:return h+"st";case 2:return h+"nd";case 3:return h+"rd"}return h+"th"},Zv={ordinalNumber:Uv,era:wu({values:Nv,defaultWidth:"wide"}),quarter:wu({values:Rv,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:wu({values:Hv,defaultWidth:"wide"}),day:wu({values:Bv,defaultWidth:"wide"}),dayPeriod:wu({values:Fv,defaultWidth:"wide",formattingValues:Wv,defaultFormattingWidth:"wide"})};const Vv=Zv;function xu(u){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=l.width,f=h&&u.matchPatterns[h]||u.matchPatterns[u.defaultMatchWidth],v=a.match(f);if(!v)return null;var y=v[0],A=h&&u.parsePatterns[h]||u.parsePatterns[u.defaultParseWidth],T=Array.isArray(A)?qv(A,function(H){return H.test(y)}):Gv(A,function(H){return H.test(y)}),k;k=u.valueCallback?u.valueCallback(T):T,k=l.valueCallback?l.valueCallback(k):k;var I=a.slice(y.length);return{value:k,rest:I}}}function Gv(u,a){for(var l in u)if(u.hasOwnProperty(l)&&a(u[l]))return l}function qv(u,a){for(var l=0;l<u.length;l++)if(a(u[l]))return l}function Kv(u){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=a.match(u.matchPattern);if(!h)return null;var f=h[0],v=a.match(u.parsePattern);if(!v)return null;var y=u.valueCallback?u.valueCallback(v[0]):v[0];y=l.valueCallback?l.valueCallback(y):y;var A=a.slice(f.length);return{value:y,rest:A}}}var jv=/^(\d+)(th|st|nd|rd)?/i,Yv=/\d+/i,Xv={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Qv={any:[/^b/i,/^(a|c)/i]},Jv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},e9={any:[/1/i,/2/i,/3/i,/4/i]},t9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},r9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},n9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},i9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},o9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},a9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},l9={ordinalNumber:Kv({matchPattern:jv,parsePattern:Yv,valueCallback:function(a){return parseInt(a,10)}}),era:xu({matchPatterns:Xv,defaultMatchWidth:"wide",parsePatterns:Qv,defaultParseWidth:"any"}),quarter:xu({matchPatterns:Jv,defaultMatchWidth:"wide",parsePatterns:e9,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:xu({matchPatterns:t9,defaultMatchWidth:"wide",parsePatterns:r9,defaultParseWidth:"any"}),day:xu({matchPatterns:n9,defaultMatchWidth:"wide",parsePatterns:i9,defaultParseWidth:"any"}),dayPeriod:xu({matchPatterns:o9,defaultMatchWidth:"any",parsePatterns:a9,defaultParseWidth:"any"})};const s9=l9;var u9={code:"en-US",formatDistance:kv,formatLong:Av,formatRelative:$v,localize:Vv,match:s9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const c9=u9;var f9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,h9=/^'([^]*?)'?$/,p9=/''/g,g9=/[a-zA-Z]/;function v9(u,a,l){var h,f,v,y,A,T,k,I,H,W,Z,re,ge,pe,Se,Oe,he,ce;Wr(2,arguments);var Me=String(a),Te=Ac(),Ae=(h=(f=l==null?void 0:l.locale)!==null&&f!==void 0?f:Te.locale)!==null&&h!==void 0?h:c9,qe=pa((v=(y=(A=(T=l==null?void 0:l.firstWeekContainsDate)!==null&&T!==void 0?T:l==null||(k=l.locale)===null||k===void 0||(I=k.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&A!==void 0?A:Te.firstWeekContainsDate)!==null&&y!==void 0?y:(H=Te.locale)===null||H===void 0||(W=H.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&v!==void 0?v:1);if(!(qe>=1&&qe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var je=pa((Z=(re=(ge=(pe=l==null?void 0:l.weekStartsOn)!==null&&pe!==void 0?pe:l==null||(Se=l.locale)===null||Se===void 0||(Oe=Se.options)===null||Oe===void 0?void 0:Oe.weekStartsOn)!==null&&ge!==void 0?ge:Te.weekStartsOn)!==null&&re!==void 0?re:(he=Te.locale)===null||he===void 0||(ce=he.options)===null||ce===void 0?void 0:ce.weekStartsOn)!==null&&Z!==void 0?Z:0);if(!(je>=0&&je<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Ae.localize)throw new RangeError("locale must contain localize property");if(!Ae.formatLong)throw new RangeError("locale must contain formatLong property");var ve=mi(u);if(!av(ve))throw new RangeError("Invalid time value");var ye=tv(ve),Xe=lv(ve,ye),V={firstWeekContainsDate:qe,weekStartsOn:je,locale:Ae,_originalDate:ve},E=Me.match(d9).map(function(S){var ee=S[0];if(ee==="p"||ee==="P"){var be=wv[ee];return be(S,Ae.formatLong)}return S}).join("").match(f9).map(function(S){if(S==="''")return"'";var ee=S[0];if(ee==="'")return b9(S);var be=mv[ee];if(be)return!(l!=null&&l.useAdditionalWeekYearTokens)&&_v(S)&&Zd(S,a,String(u)),!(l!=null&&l.useAdditionalDayOfYearTokens)&&Lv(S)&&Zd(S,a,String(u)),be(Xe,S,Ae.localize,V);if(ee.match(g9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return S}).join("");return E}function b9(u){var a=u.match(h9);return a?a[1].replace(p9,"'"):u}var m9=Object.defineProperty,y9=Object.getOwnPropertyDescriptor,ba=(u,a,l,h)=>{for(var f=h>1?void 0:h?y9(a,l):a,v=u.length-1,y;v>=0;v--)(y=u[v])&&(f=(h?y(a,l,f):y(f))||f);return h&&f&&m9(a,l,f),f};const up=Ee("input-time"),cp="h:mmaaa",fp=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,dp=/^(1[3-9]|2[0-3]).*/,hp=/^(\d\d?)(am?|pm?)/,pp=(u,a)=>({label:`${u}${a?` (${a})`:""}`,value:u}),C9=(u,a)=>{const h=Math.ceil(1440/u),f=rv(Date.now());return Array(h).fill(null).map((v,y)=>{const A=iv(f,u*y),T=v9(A,cp);return pp(T,a)})},w9=(u,a)=>{const l=u.trim(),h=u.match(fp);if(!l||!h)return[];const[,f,v,y]=h,A=parseInt(f,10),T=A>12?`${A-12}`:`${A}`,k=`${v}${y||0}`,I=`${T}:${k}`;return["am","pm"].map(H=>pp(`${I}${H}`,a))},x9=(u,{value:a})=>{const l=u.match(dp);if(!l||!a)return!1;const[,h]=l,f=`${parseInt(h,10)-12}`,v=u.substring(h.length).replace(":",""),y=`${f}:${v}`;return a.startsWith(y)&&a.endsWith("pm")},z9=(u,{value:a})=>{const l=u.match(hp);if(!l)return!1;const[,h,f]=l;return!!(a!=null&&a.replace(":00","").startsWith(`${h}${f}`))},L9=(...u)=>z9(...u)||x9(...u);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=C9(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var u;this.valueLabel=(u=this.getItems().find(({value:a})=>a===this.value))==null?void 0:u.label,this.resetSearch()}isCustomQueryMatch(u){return this.query?L9(this.query,u):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=w9(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return J`
|
|
3041
|
+
`];Uu([W({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Uu([W({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Uu([W({type:Array})],exports.InputMultiselect.prototype,"value",2);Uu([lt()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Uu([Q(gp)],exports.InputMultiselect);function ga(u){if(u===null||u===!0||u===!1)return NaN;var a=Number(u);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function Wr(u,a){if(a.length<u)throw new TypeError(u+" argument"+(u>1?"s":"")+" required, but only "+a.length+" present")}function vc(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vc=function(l){return typeof l}:vc=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},vc(u)}function bi(u){Wr(1,arguments);var a=Object.prototype.toString.call(u);return u instanceof Date||vc(u)==="object"&&a==="[object Date]"?new Date(u.getTime()):typeof u=="number"||a==="[object Number]"?new Date(u):((typeof u=="string"||a==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function vp(u,a){Wr(2,arguments);var l=bi(u).getTime(),h=ga(a);return new Date(l+h)}var b7={};function Rc(){return b7}function m7(u){var a=new Date(Date.UTC(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds()));return a.setUTCFullYear(u.getFullYear()),u.getTime()-a.getTime()}function y7(u){Wr(1,arguments);var a=bi(u);return a.setHours(0,0,0,0),a}var C7=6e4;function w7(u,a){Wr(2,arguments);var l=ga(a);return vp(u,l*C7)}function bc(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bc=function(l){return typeof l}:bc=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},bc(u)}function x7(u){return Wr(1,arguments),u instanceof Date||bc(u)==="object"&&Object.prototype.toString.call(u)==="[object Date]"}function z7(u){if(Wr(1,arguments),!x7(u)&&typeof u!="number")return!1;var a=bi(u);return!isNaN(Number(a))}function L7(u,a){Wr(2,arguments);var l=ga(a);return vp(u,-l)}var _7=864e5;function S7(u){Wr(1,arguments);var a=bi(u),l=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var h=a.getTime(),c=l-h;return Math.floor(c/_7)+1}function _c(u){Wr(1,arguments);var a=1,l=bi(u),h=l.getUTCDay(),c=(h<a?7:0)+h-a;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}function bp(u){Wr(1,arguments);var a=bi(u),l=a.getUTCFullYear(),h=new Date(0);h.setUTCFullYear(l+1,0,4),h.setUTCHours(0,0,0,0);var c=_c(h),v=new Date(0);v.setUTCFullYear(l,0,4),v.setUTCHours(0,0,0,0);var m=_c(v);return a.getTime()>=c.getTime()?l+1:a.getTime()>=m.getTime()?l:l-1}function M7(u){Wr(1,arguments);var a=bp(u),l=new Date(0);l.setUTCFullYear(a,0,4),l.setUTCHours(0,0,0,0);var h=_c(l);return h}var k7=6048e5;function O7(u){Wr(1,arguments);var a=bi(u),l=_c(a).getTime()-M7(a).getTime();return Math.round(l/k7)+1}function Sc(u,a){var l,h,c,v,m,A,T,k;Wr(1,arguments);var I=Rc(),H=ga((l=(h=(c=(v=a==null?void 0:a.weekStartsOn)!==null&&v!==void 0?v:a==null||(m=a.locale)===null||m===void 0||(A=m.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&c!==void 0?c:I.weekStartsOn)!==null&&h!==void 0?h:(T=I.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&l!==void 0?l:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var U=bi(u),Z=U.getUTCDay(),re=(Z<H?7:0)+Z-H;return U.setUTCDate(U.getUTCDate()-re),U.setUTCHours(0,0,0,0),U}function mp(u,a){var l,h,c,v,m,A,T,k;Wr(1,arguments);var I=bi(u),H=I.getUTCFullYear(),U=Rc(),Z=ga((l=(h=(c=(v=a==null?void 0:a.firstWeekContainsDate)!==null&&v!==void 0?v:a==null||(m=a.locale)===null||m===void 0||(A=m.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&c!==void 0?c:U.firstWeekContainsDate)!==null&&h!==void 0?h:(T=U.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1);if(!(Z>=1&&Z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=new Date(0);re.setUTCFullYear(H+1,0,Z),re.setUTCHours(0,0,0,0);var ge=Sc(re,a),pe=new Date(0);pe.setUTCFullYear(H,0,Z),pe.setUTCHours(0,0,0,0);var Se=Sc(pe,a);return I.getTime()>=ge.getTime()?H+1:I.getTime()>=Se.getTime()?H:H-1}function T7(u,a){var l,h,c,v,m,A,T,k;Wr(1,arguments);var I=Rc(),H=ga((l=(h=(c=(v=a==null?void 0:a.firstWeekContainsDate)!==null&&v!==void 0?v:a==null||(m=a.locale)===null||m===void 0||(A=m.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&c!==void 0?c:I.firstWeekContainsDate)!==null&&h!==void 0?h:(T=I.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1),U=mp(u,a),Z=new Date(0);Z.setUTCFullYear(U,0,H),Z.setUTCHours(0,0,0,0);var re=Sc(Z,a);return re}var P7=6048e5;function E7(u,a){Wr(1,arguments);var l=bi(u),h=Sc(l,a).getTime()-T7(l,a).getTime();return Math.round(h/P7)+1}function Pt(u,a){for(var l=u<0?"-":"",h=Math.abs(u).toString();h.length<a;)h="0"+h;return l+h}var A7={y:function(a,l){var h=a.getUTCFullYear(),c=h>0?h:1-h;return Pt(l==="yy"?c%100:c,l.length)},M:function(a,l){var h=a.getUTCMonth();return l==="M"?String(h+1):Pt(h+1,2)},d:function(a,l){return Pt(a.getUTCDate(),l.length)},a:function(a,l){var h=a.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return h.toUpperCase();case"aaa":return h;case"aaaaa":return h[0];case"aaaa":default:return h==="am"?"a.m.":"p.m."}},h:function(a,l){return Pt(a.getUTCHours()%12||12,l.length)},H:function(a,l){return Pt(a.getUTCHours(),l.length)},m:function(a,l){return Pt(a.getUTCMinutes(),l.length)},s:function(a,l){return Pt(a.getUTCSeconds(),l.length)},S:function(a,l){var h=l.length,c=a.getUTCMilliseconds(),v=Math.floor(c*Math.pow(10,h-3));return Pt(v,l.length)}};const ha=A7;var hs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},I7={G:function(a,l,h){var c=a.getUTCFullYear()>0?1:0;switch(l){case"G":case"GG":case"GGG":return h.era(c,{width:"abbreviated"});case"GGGGG":return h.era(c,{width:"narrow"});case"GGGG":default:return h.era(c,{width:"wide"})}},y:function(a,l,h){if(l==="yo"){var c=a.getUTCFullYear(),v=c>0?c:1-c;return h.ordinalNumber(v,{unit:"year"})}return ha.y(a,l)},Y:function(a,l,h,c){var v=mp(a,c),m=v>0?v:1-v;if(l==="YY"){var A=m%100;return Pt(A,2)}return l==="Yo"?h.ordinalNumber(m,{unit:"year"}):Pt(m,l.length)},R:function(a,l){var h=bp(a);return Pt(h,l.length)},u:function(a,l){var h=a.getUTCFullYear();return Pt(h,l.length)},Q:function(a,l,h){var c=Math.ceil((a.getUTCMonth()+1)/3);switch(l){case"Q":return String(c);case"QQ":return Pt(c,2);case"Qo":return h.ordinalNumber(c,{unit:"quarter"});case"QQQ":return h.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return h.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return h.quarter(c,{width:"wide",context:"formatting"})}},q:function(a,l,h){var c=Math.ceil((a.getUTCMonth()+1)/3);switch(l){case"q":return String(c);case"qq":return Pt(c,2);case"qo":return h.ordinalNumber(c,{unit:"quarter"});case"qqq":return h.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return h.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return h.quarter(c,{width:"wide",context:"standalone"})}},M:function(a,l,h){var c=a.getUTCMonth();switch(l){case"M":case"MM":return ha.M(a,l);case"Mo":return h.ordinalNumber(c+1,{unit:"month"});case"MMM":return h.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return h.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return h.month(c,{width:"wide",context:"formatting"})}},L:function(a,l,h){var c=a.getUTCMonth();switch(l){case"L":return String(c+1);case"LL":return Pt(c+1,2);case"Lo":return h.ordinalNumber(c+1,{unit:"month"});case"LLL":return h.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return h.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return h.month(c,{width:"wide",context:"standalone"})}},w:function(a,l,h,c){var v=E7(a,c);return l==="wo"?h.ordinalNumber(v,{unit:"week"}):Pt(v,l.length)},I:function(a,l,h){var c=O7(a);return l==="Io"?h.ordinalNumber(c,{unit:"week"}):Pt(c,l.length)},d:function(a,l,h){return l==="do"?h.ordinalNumber(a.getUTCDate(),{unit:"date"}):ha.d(a,l)},D:function(a,l,h){var c=S7(a);return l==="Do"?h.ordinalNumber(c,{unit:"dayOfYear"}):Pt(c,l.length)},E:function(a,l,h){var c=a.getUTCDay();switch(l){case"E":case"EE":case"EEE":return h.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return h.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return h.day(c,{width:"short",context:"formatting"});case"EEEE":default:return h.day(c,{width:"wide",context:"formatting"})}},e:function(a,l,h,c){var v=a.getUTCDay(),m=(v-c.weekStartsOn+8)%7||7;switch(l){case"e":return String(m);case"ee":return Pt(m,2);case"eo":return h.ordinalNumber(m,{unit:"day"});case"eee":return h.day(v,{width:"abbreviated",context:"formatting"});case"eeeee":return h.day(v,{width:"narrow",context:"formatting"});case"eeeeee":return h.day(v,{width:"short",context:"formatting"});case"eeee":default:return h.day(v,{width:"wide",context:"formatting"})}},c:function(a,l,h,c){var v=a.getUTCDay(),m=(v-c.weekStartsOn+8)%7||7;switch(l){case"c":return String(m);case"cc":return Pt(m,l.length);case"co":return h.ordinalNumber(m,{unit:"day"});case"ccc":return h.day(v,{width:"abbreviated",context:"standalone"});case"ccccc":return h.day(v,{width:"narrow",context:"standalone"});case"cccccc":return h.day(v,{width:"short",context:"standalone"});case"cccc":default:return h.day(v,{width:"wide",context:"standalone"})}},i:function(a,l,h){var c=a.getUTCDay(),v=c===0?7:c;switch(l){case"i":return String(v);case"ii":return Pt(v,l.length);case"io":return h.ordinalNumber(v,{unit:"day"});case"iii":return h.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return h.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return h.day(c,{width:"short",context:"formatting"});case"iiii":default:return h.day(c,{width:"wide",context:"formatting"})}},a:function(a,l,h){var c=a.getUTCHours(),v=c/12>=1?"pm":"am";switch(l){case"a":case"aa":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"aaa":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return h.dayPeriod(v,{width:"narrow",context:"formatting"});case"aaaa":default:return h.dayPeriod(v,{width:"wide",context:"formatting"})}},b:function(a,l,h){var c=a.getUTCHours(),v;switch(c===12?v=hs.noon:c===0?v=hs.midnight:v=c/12>=1?"pm":"am",l){case"b":case"bb":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"bbb":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return h.dayPeriod(v,{width:"narrow",context:"formatting"});case"bbbb":default:return h.dayPeriod(v,{width:"wide",context:"formatting"})}},B:function(a,l,h){var c=a.getUTCHours(),v;switch(c>=17?v=hs.evening:c>=12?v=hs.afternoon:c>=4?v=hs.morning:v=hs.night,l){case"B":case"BB":case"BBB":return h.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"BBBBB":return h.dayPeriod(v,{width:"narrow",context:"formatting"});case"BBBB":default:return h.dayPeriod(v,{width:"wide",context:"formatting"})}},h:function(a,l,h){if(l==="ho"){var c=a.getUTCHours()%12;return c===0&&(c=12),h.ordinalNumber(c,{unit:"hour"})}return ha.h(a,l)},H:function(a,l,h){return l==="Ho"?h.ordinalNumber(a.getUTCHours(),{unit:"hour"}):ha.H(a,l)},K:function(a,l,h){var c=a.getUTCHours()%12;return l==="Ko"?h.ordinalNumber(c,{unit:"hour"}):Pt(c,l.length)},k:function(a,l,h){var c=a.getUTCHours();return c===0&&(c=24),l==="ko"?h.ordinalNumber(c,{unit:"hour"}):Pt(c,l.length)},m:function(a,l,h){return l==="mo"?h.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):ha.m(a,l)},s:function(a,l,h){return l==="so"?h.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):ha.s(a,l)},S:function(a,l){return ha.S(a,l)},X:function(a,l,h,c){var v=c._originalDate||a,m=v.getTimezoneOffset();if(m===0)return"Z";switch(l){case"X":return qd(m);case"XXXX":case"XX":return al(m);case"XXXXX":case"XXX":default:return al(m,":")}},x:function(a,l,h,c){var v=c._originalDate||a,m=v.getTimezoneOffset();switch(l){case"x":return qd(m);case"xxxx":case"xx":return al(m);case"xxxxx":case"xxx":default:return al(m,":")}},O:function(a,l,h,c){var v=c._originalDate||a,m=v.getTimezoneOffset();switch(l){case"O":case"OO":case"OOO":return"GMT"+Gd(m,":");case"OOOO":default:return"GMT"+al(m,":")}},z:function(a,l,h,c){var v=c._originalDate||a,m=v.getTimezoneOffset();switch(l){case"z":case"zz":case"zzz":return"GMT"+Gd(m,":");case"zzzz":default:return"GMT"+al(m,":")}},t:function(a,l,h,c){var v=c._originalDate||a,m=Math.floor(v.getTime()/1e3);return Pt(m,l.length)},T:function(a,l,h,c){var v=c._originalDate||a,m=v.getTime();return Pt(m,l.length)}};function Gd(u,a){var l=u>0?"-":"+",h=Math.abs(u),c=Math.floor(h/60),v=h%60;if(v===0)return l+String(c);var m=a||"";return l+String(c)+m+Pt(v,2)}function qd(u,a){if(u%60===0){var l=u>0?"-":"+";return l+Pt(Math.abs(u)/60,2)}return al(u,a)}function al(u,a){var l=a||"",h=u>0?"-":"+",c=Math.abs(u),v=Pt(Math.floor(c/60),2),m=Pt(c%60,2);return h+v+l+m}const D7=I7;var Kd=function(a,l){switch(a){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},yp=function(a,l){switch(a){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},$7=function(a,l){var h=a.match(/(P+)(p+)?/)||[],c=h[1],v=h[2];if(!v)return Kd(a,l);var m;switch(c){case"P":m=l.dateTime({width:"short"});break;case"PP":m=l.dateTime({width:"medium"});break;case"PPP":m=l.dateTime({width:"long"});break;case"PPPP":default:m=l.dateTime({width:"full"});break}return m.replace("{{date}}",Kd(c,l)).replace("{{time}}",yp(v,l))},N7={p:yp,P:$7};const R7=N7;var H7=["D","DD"],B7=["YY","YYYY"];function F7(u){return H7.indexOf(u)!==-1}function W7(u){return B7.indexOf(u)!==-1}function jd(u,a,l){if(u==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(u==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(u==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(u==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var U7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Z7=function(a,l,h){var c,v=U7[a];return typeof v=="string"?c=v:l===1?c=v.one:c=v.other.replace("{{count}}",l.toString()),h!=null&&h.addSuffix?h.comparison&&h.comparison>0?"in "+c:c+" ago":c};const V7=Z7;function J1(u){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=a.width?String(a.width):u.defaultWidth,h=u.formats[l]||u.formats[u.defaultWidth];return h}}var G7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},q7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},K7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},j7={date:J1({formats:G7,defaultWidth:"full"}),time:J1({formats:q7,defaultWidth:"full"}),dateTime:J1({formats:K7,defaultWidth:"full"})};const Y7=j7;var X7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Q7=function(a,l,h,c){return X7[a]};const J7=Q7;function Su(u){return function(a,l){var h=l!=null&&l.context?String(l.context):"standalone",c;if(h==="formatting"&&u.formattingValues){var v=u.defaultFormattingWidth||u.defaultWidth,m=l!=null&&l.width?String(l.width):v;c=u.formattingValues[m]||u.formattingValues[v]}else{var A=u.defaultWidth,T=l!=null&&l.width?String(l.width):u.defaultWidth;c=u.values[T]||u.values[A]}var k=u.argumentCallback?u.argumentCallback(a):a;return c[k]}}var e9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},t9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},r9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},n9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},i9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},o9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a9=function(a,l){var h=Number(a),c=h%100;if(c>20||c<10)switch(c%10){case 1:return h+"st";case 2:return h+"nd";case 3:return h+"rd"}return h+"th"},l9={ordinalNumber:a9,era:Su({values:e9,defaultWidth:"wide"}),quarter:Su({values:t9,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:Su({values:r9,defaultWidth:"wide"}),day:Su({values:n9,defaultWidth:"wide"}),dayPeriod:Su({values:i9,defaultWidth:"wide",formattingValues:o9,defaultFormattingWidth:"wide"})};const s9=l9;function Mu(u){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=l.width,c=h&&u.matchPatterns[h]||u.matchPatterns[u.defaultMatchWidth],v=a.match(c);if(!v)return null;var m=v[0],A=h&&u.parsePatterns[h]||u.parsePatterns[u.defaultParseWidth],T=Array.isArray(A)?c9(A,function(H){return H.test(m)}):u9(A,function(H){return H.test(m)}),k;k=u.valueCallback?u.valueCallback(T):T,k=l.valueCallback?l.valueCallback(k):k;var I=a.slice(m.length);return{value:k,rest:I}}}function u9(u,a){for(var l in u)if(u.hasOwnProperty(l)&&a(u[l]))return l}function c9(u,a){for(var l=0;l<u.length;l++)if(a(u[l]))return l}function f9(u){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=a.match(u.matchPattern);if(!h)return null;var c=h[0],v=a.match(u.parsePattern);if(!v)return null;var m=u.valueCallback?u.valueCallback(v[0]):v[0];m=l.valueCallback?l.valueCallback(m):m;var A=a.slice(c.length);return{value:m,rest:A}}}var d9=/^(\d+)(th|st|nd|rd)?/i,h9=/\d+/i,p9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},g9={any:[/^b/i,/^(a|c)/i]},v9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},b9={any:[/1/i,/2/i,/3/i,/4/i]},m9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},C9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},x9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},z9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},L9={ordinalNumber:f9({matchPattern:d9,parsePattern:h9,valueCallback:function(a){return parseInt(a,10)}}),era:Mu({matchPatterns:p9,defaultMatchWidth:"wide",parsePatterns:g9,defaultParseWidth:"any"}),quarter:Mu({matchPatterns:v9,defaultMatchWidth:"wide",parsePatterns:b9,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:Mu({matchPatterns:m9,defaultMatchWidth:"wide",parsePatterns:y9,defaultParseWidth:"any"}),day:Mu({matchPatterns:C9,defaultMatchWidth:"wide",parsePatterns:w9,defaultParseWidth:"any"}),dayPeriod:Mu({matchPatterns:x9,defaultMatchWidth:"any",parsePatterns:z9,defaultParseWidth:"any"})};const _9=L9;var S9={code:"en-US",formatDistance:V7,formatLong:Y7,formatRelative:J7,localize:s9,match:_9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const M9=S9;var k9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T9=/^'([^]*?)'?$/,P9=/''/g,E9=/[a-zA-Z]/;function A9(u,a,l){var h,c,v,m,A,T,k,I,H,U,Z,re,ge,pe,Se,Oe,he,ce;Wr(2,arguments);var Me=String(a),Te=Rc(),Ae=(h=(c=l==null?void 0:l.locale)!==null&&c!==void 0?c:Te.locale)!==null&&h!==void 0?h:M9,qe=ga((v=(m=(A=(T=l==null?void 0:l.firstWeekContainsDate)!==null&&T!==void 0?T:l==null||(k=l.locale)===null||k===void 0||(I=k.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&A!==void 0?A:Te.firstWeekContainsDate)!==null&&m!==void 0?m:(H=Te.locale)===null||H===void 0||(U=H.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&v!==void 0?v:1);if(!(qe>=1&&qe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var je=ga((Z=(re=(ge=(pe=l==null?void 0:l.weekStartsOn)!==null&&pe!==void 0?pe:l==null||(Se=l.locale)===null||Se===void 0||(Oe=Se.options)===null||Oe===void 0?void 0:Oe.weekStartsOn)!==null&&ge!==void 0?ge:Te.weekStartsOn)!==null&&re!==void 0?re:(he=Te.locale)===null||he===void 0||(ce=he.options)===null||ce===void 0?void 0:ce.weekStartsOn)!==null&&Z!==void 0?Z:0);if(!(je>=0&&je<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Ae.localize)throw new RangeError("locale must contain localize property");if(!Ae.formatLong)throw new RangeError("locale must contain formatLong property");var ve=bi(u);if(!z7(ve))throw new RangeError("Invalid time value");var ye=m7(ve),Xe=L7(ve,ye),V={firstWeekContainsDate:qe,weekStartsOn:je,locale:Ae,_originalDate:ve},E=Me.match(O9).map(function(S){var ee=S[0];if(ee==="p"||ee==="P"){var be=R7[ee];return be(S,Ae.formatLong)}return S}).join("").match(k9).map(function(S){if(S==="''")return"'";var ee=S[0];if(ee==="'")return I9(S);var be=D7[ee];if(be)return!(l!=null&&l.useAdditionalWeekYearTokens)&&W7(S)&&jd(S,a,String(u)),!(l!=null&&l.useAdditionalDayOfYearTokens)&&F7(S)&&jd(S,a,String(u)),be(Xe,S,Ae.localize,V);if(ee.match(E9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return S}).join("");return E}function I9(u){var a=u.match(T9);return a?a[1].replace(P9,"'"):u}var D9=Object.defineProperty,$9=Object.getOwnPropertyDescriptor,ya=(u,a,l,h)=>{for(var c=h>1?void 0:h?$9(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&D9(a,l,c),c};const Cp=Ee("input-time"),wp="h:mmaaa",xp=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,zp=/^(1[3-9]|2[0-3]).*/,Lp=/^(\d\d?)(am?|pm?)/,_p=(u,a)=>({label:`${u}${a?` (${a})`:""}`,value:u}),N9=(u,a)=>{const h=Math.ceil(1440/u),c=y7(Date.now());return Array(h).fill(null).map((v,m)=>{const A=w7(c,u*m),T=A9(A,wp);return _p(T,a)})},R9=(u,a)=>{const l=u.trim(),h=u.match(xp);if(!l||!h)return[];const[,c,v,m]=h,A=parseInt(c,10),T=A>12?`${A-12}`:`${A}`,k=`${v}${m||0}`,I=`${T}:${k}`;return["am","pm"].map(H=>_p(`${I}${H}`,a))},H9=(u,{value:a})=>{const l=u.match(zp);if(!l||!a)return!1;const[,h]=l,c=`${parseInt(h,10)-12}`,v=u.substring(h.length).replace(":",""),m=`${c}:${v}`;return a.startsWith(m)&&a.endsWith("pm")},B9=(u,{value:a})=>{const l=u.match(Lp);if(!l)return!1;const[,h,c]=l;return!!(a!=null&&a.replace(":00","").startsWith(`${h}${c}`))},F9=(...u)=>B9(...u)||H9(...u);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=N9(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var u;this.valueLabel=(u=this.getItems().find(({value:a})=>a===this.value))==null?void 0:u.label,this.resetSearch()}isCustomQueryMatch(u){return this.query?F9(this.query,u):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=R9(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return J`
|
|
3019
3042
|
${this.handleNoResults()} ${this.renderOptionsData()}
|
|
3020
3043
|
${this.renderFreeformOptions()}
|
|
3021
|
-
`}};
|
|
3044
|
+
`}};ya([W({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);ya([W({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);ya([W({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);ya([W({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);ya([W({type:String})],exports.InputTime.prototype,"placeholder",2);ya([W({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);ya([lt()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=ya([Q(Cp)],exports.InputTime);var W9=Object.defineProperty,U9=Object.getOwnPropertyDescriptor,Tf=(u,a,l,h)=>{for(var c=h>1?void 0:h?U9(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&W9(a,l,c),c};const Sp=Ee("heading");exports.Heading=class extends We{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 a;const u=`size-${(a=this.size)!=null?a:"base"}`;switch(this.getLevel()){case 1:return J`<h1 class=${u}><slot></slot></h1>`;case 2:return J`<h2 class=${u}><slot></slot></h2>`;case 3:return J`<h3 class=${u}><slot></slot></h3>`;case 4:return J`<h4 class=${u}><slot></slot></h4>`;case 5:return J`<h5 class=${u}><slot></slot></h5>`;case 6:return J`<h6 class=${u}><slot></slot></h6>`}}};exports.Heading.styles=me`
|
|
3022
3045
|
h1,
|
|
3023
3046
|
h2,
|
|
3024
3047
|
h3,
|
|
@@ -3063,7 +3086,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3063
3086
|
:host {
|
|
3064
3087
|
display: block;
|
|
3065
3088
|
}
|
|
3066
|
-
`;
|
|
3089
|
+
`;Tf([W({type:String})],exports.Heading.prototype,"size",2);Tf([W({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=Tf([Q(Sp)],exports.Heading);var Z9=Object.defineProperty,V9=Object.getOwnPropertyDescriptor,Po=(u,a,l,h)=>{for(var c=h>1?void 0:h?V9(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&Z9(a,l,c),c};const Mp=Ee("link"),kp=Ee("link-button"),Op=me`
|
|
3067
3090
|
:host {
|
|
3068
3091
|
display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
|
|
3069
3092
|
align-items: center;
|
|
@@ -3071,7 +3094,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3071
3094
|
font-weight: var(--brz-font-weight-medium);
|
|
3072
3095
|
}
|
|
3073
3096
|
|
|
3074
|
-
${
|
|
3097
|
+
${_s("a",me`
|
|
3075
3098
|
border-radius: var(--brz-outline-border-radius);
|
|
3076
3099
|
`)}
|
|
3077
3100
|
|
|
@@ -3093,12 +3116,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3093
3116
|
:host([link-type='secondary']:hover) {
|
|
3094
3117
|
text-decoration: none;
|
|
3095
3118
|
}
|
|
3096
|
-
`,
|
|
3119
|
+
`,G9=me`
|
|
3097
3120
|
a {
|
|
3098
3121
|
color: inherit;
|
|
3099
3122
|
text-decoration: inherit;
|
|
3100
3123
|
}
|
|
3101
|
-
`,
|
|
3124
|
+
`,q9=me`
|
|
3102
3125
|
button {
|
|
3103
3126
|
font-family: inherit;
|
|
3104
3127
|
font-size: inherit;
|
|
@@ -3110,7 +3133,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3110
3133
|
color: inherit;
|
|
3111
3134
|
cursor: pointer;
|
|
3112
3135
|
}
|
|
3113
|
-
`;exports.Link=class extends
|
|
3136
|
+
`;exports.Link=class extends We{constructor(){super(...arguments),this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(u){this.virtual&&u.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}render(){return J`
|
|
3114
3137
|
<a
|
|
3115
3138
|
href="${$t(this.href)}"
|
|
3116
3139
|
target="${$t(this.target)}"
|
|
@@ -3120,7 +3143,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3120
3143
|
<slot></slot>
|
|
3121
3144
|
</a>
|
|
3122
3145
|
${this.isExternal?J`<brz-icon icon="openLink" size="12"></brz-icon>`:""}
|
|
3123
|
-
`}};exports.Link.styles=[
|
|
3146
|
+
`}};exports.Link.styles=[G9,Op];Po([W({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);Po([W({type:String,reflect:!0})],exports.Link.prototype,"href",2);Po([W({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);Po([W({type:String,reflect:!0})],exports.Link.prototype,"target",2);Po([W({type:String,reflect:!0})],exports.Link.prototype,"rel",2);Po([W({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=Po([Q(Mp)],exports.Link);exports.LinkButton=class extends We{constructor(){super(...arguments),this.linkType="primary"}render(){return J` <button><slot></slot></button>`}};exports.LinkButton.styles=[q9,Op];Po([W({type:String,attribute:"link-type",reflect:!0})],exports.LinkButton.prototype,"linkType",2);exports.LinkButton=Po([Q(kp)],exports.LinkButton);var K9=Object.defineProperty,j9=Object.getOwnPropertyDescriptor,Zu=(u,a,l,h)=>{for(var c=h>1?void 0:h?j9(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&K9(a,l,c),c};const Tp=Ee("side-navigation-item"),Y9=me`
|
|
3124
3147
|
:host li {
|
|
3125
3148
|
list-style: none;
|
|
3126
3149
|
padding: var(--brz-spacing-2) 0;
|
|
@@ -3146,7 +3169,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3146
3169
|
color: var(--brz-color-primary-600);
|
|
3147
3170
|
border-color: var(--brz-color-primary-600);
|
|
3148
3171
|
}
|
|
3149
|
-
`;exports.SideNavigationItem=class extends
|
|
3172
|
+
`;exports.SideNavigationItem=class extends We{render(){return J`
|
|
3150
3173
|
<li>
|
|
3151
3174
|
<a
|
|
3152
3175
|
href="${$t(this.href)}"
|
|
@@ -3156,7 +3179,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3156
3179
|
<slot></slot>
|
|
3157
3180
|
</a>
|
|
3158
3181
|
</li>
|
|
3159
|
-
`}};exports.SideNavigationItem.styles=[
|
|
3182
|
+
`}};exports.SideNavigationItem.styles=[Y9];Zu([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Zu([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Zu([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Zu([W({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Zu([Q(Tp)],exports.SideNavigationItem);var X9=Object.defineProperty,Q9=Object.getOwnPropertyDescriptor,J9=(u,a,l,h)=>{for(var c=h>1?void 0:h?Q9(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&X9(a,l,c),c};const Pp=Ee("side-navigation"),e8=me`
|
|
3160
3183
|
:host {
|
|
3161
3184
|
display: block;
|
|
3162
3185
|
height: 100%;
|
|
@@ -3168,9 +3191,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3168
3191
|
margin: 0;
|
|
3169
3192
|
padding: var(--brz-spacing-2) var(--brz-spacing-6);
|
|
3170
3193
|
}
|
|
3171
|
-
`;exports.SideNavigation=class extends
|
|
3194
|
+
`;exports.SideNavigation=class extends We{render(){return J`<ul>
|
|
3172
3195
|
<slot></slot>
|
|
3173
|
-
</ul>`}};exports.SideNavigation.styles=[
|
|
3196
|
+
</ul>`}};exports.SideNavigation.styles=[e8];exports.SideNavigation=J9([Q(Pp)],exports.SideNavigation);var t8=Object.defineProperty,r8=Object.getOwnPropertyDescriptor,Ep=(u,a,l,h)=>{for(var c=h>1?void 0:h?r8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&t8(a,l,c),c};const Ap=Ee("record-row"),Ip=Ee("record-row-label");exports.RecordRow=class extends We{render(){return J`
|
|
3174
3197
|
<div id="row">
|
|
3175
3198
|
<brz-record-row-label><slot name="label"></slot></brz-record-row-label>
|
|
3176
3199
|
<div id="value"><slot></slot></div>
|
|
@@ -3195,18 +3218,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3195
3218
|
/* Bit of a hack, but means lozenges nicely align with the label */
|
|
3196
3219
|
margin-top: -2px;
|
|
3197
3220
|
}
|
|
3198
|
-
`;exports.RecordRow=
|
|
3221
|
+
`;exports.RecordRow=Ep([Q(Ap)],exports.RecordRow);exports.RecordRowLabel=class extends We{render(){return J`<div id="label"><slot></slot></div>`}};exports.RecordRowLabel.styles=me`
|
|
3199
3222
|
#label {
|
|
3200
3223
|
width: 10rem;
|
|
3201
3224
|
color: var(--brz-color-label-text);
|
|
3202
3225
|
font-size: var(--brz-font-size);
|
|
3203
3226
|
line-height: var(--brz-line-height);
|
|
3204
3227
|
}
|
|
3205
|
-
`;exports.RecordRowLabel=
|
|
3228
|
+
`;exports.RecordRowLabel=Ep([Q(Ip)],exports.RecordRowLabel);var n8=Object.defineProperty,i8=Object.getOwnPropertyDescriptor,Pf=(u,a,l,h)=>{for(var c=h>1?void 0:h?i8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&n8(a,l,c),c};const Dp=Ee("tab-panel");exports.TabPanel=class extends We{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return J`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=me`
|
|
3206
3229
|
:host(:not([shown])) #panel {
|
|
3207
3230
|
display: none;
|
|
3208
3231
|
}
|
|
3209
|
-
`;
|
|
3232
|
+
`;Pf([W({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);Pf([W({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=Pf([Q(Dp)],exports.TabPanel);class Hc extends CustomEvent{constructor(a){super("brz-tab-selected",{bubbles:!0,detail:{name:a}})}}class o8 extends CustomEvent{constructor(a){super("brz-tab-deselected",{bubbles:!0,detail:{name:a}})}}var a8=Object.defineProperty,l8=Object.getOwnPropertyDescriptor,Bc=(u,a,l,h)=>{for(var c=h>1?void 0:h?l8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&a8(a,l,c),c};const $p=Ee("tab");exports.Tab=class extends We{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(u){const a=u.get("selected");a===!1&&this.selected===!0?this.dispatchEvent(new Hc(this.name)):a===!0&&this.selected===!1&&this.dispatchEvent(new o8(this.name)),super.updated(u)}render(){return this.link?J`<a href=${this.link} id="tab"><slot></slot></a>`:J`<div
|
|
3210
3233
|
tabindex="0"
|
|
3211
3234
|
role="tab"
|
|
3212
3235
|
aria-selected=${this.selected}
|
|
@@ -3234,7 +3257,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3234
3257
|
#tab:hover {
|
|
3235
3258
|
color: var(--brz-color-neutral-850);
|
|
3236
3259
|
}
|
|
3237
|
-
`;
|
|
3260
|
+
`;Bc([W({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Bc([W({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Bc([W({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Bc([Q($p)],exports.Tab);var s8=Object.defineProperty,u8=Object.getOwnPropertyDescriptor,Fc=(u,a,l,h)=>{for(var c=h>1?void 0:h?u8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&s8(a,l,c),c};const Np=Ee("tab-bar");exports.TabBar=class extends We{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var l,h,c;const u=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!u){this.tabs=[];return}let a=Array.from(u.assignedElements());for(;a[0]instanceof HTMLSlotElement;)a=Array.from(a[0].assignedElements());this.tabs=a.filter(v=>v instanceof exports.Tab&&!!v.name),this.controlled||(this.selected||(this.selected=(c=(h=this.tabs.find(v=>v.selected))==null?void 0:h.name)!=null?c:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(u){if(u.target instanceof exports.Tab){const{name:a}=u.target;a&&(this.controlled||(this.selected=a),this.dispatchEvent(new Hc(a)))}}updated(u){u.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(u=>{const a=u.name===this.selected;a!==u.selected&&(u.selected=a)})}render(){return J`
|
|
3238
3261
|
<brz-row id="tabbar" @click=${this.handleClick}>
|
|
3239
3262
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
3240
3263
|
</brz-row>
|
|
@@ -3256,7 +3279,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3256
3279
|
top: 0;
|
|
3257
3280
|
z-index: 1;
|
|
3258
3281
|
}
|
|
3259
|
-
|
|
3282
|
+
`;Fc([W({type:Boolean})],exports.TabBar.prototype,"controlled",2);Fc([W({type:String})],exports.TabBar.prototype,"selected",2);Fc([lt()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Fc([Q(Np)],exports.TabBar);var c8=Object.defineProperty,f8=Object.getOwnPropertyDescriptor,Ef=(u,a,l,h)=>{for(var c=h>1?void 0:h?f8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&c8(a,l,c),c};const Rp=Ee("tabs");exports.Tabs=class extends We{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var a,l,h;const u=(a=this.shadowRoot)==null?void 0:a.querySelector("slot:not([name])");if(this.panels=[],!!u){for(const c of u.assignedElements())if(c instanceof exports.TabPanel)this.panels.push(c);else{const v=c.querySelectorAll("brz-tab-panel"),m=c.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(v.length?v:m))}this.selected||(this.selected=(h=(l=this.panels.find(c=>c.shown))==null?void 0:l.name)!=null?h:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(u=>{const a=u.name===this.selected;a!==u.shown&&(u.shown=a)})}handleTabSelected(u){this.selected=u.detail.name,this.updatePanelVisibility(),u.stopPropagation(),this.dispatchEvent(new Hc(this.selected))}render(){return J`
|
|
3260
3283
|
<brz-tab-bar
|
|
3261
3284
|
controlled
|
|
3262
3285
|
selected=${this.selected}
|
|
@@ -3269,8 +3292,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3269
3292
|
:host {
|
|
3270
3293
|
background-color: var(--brz-color-white);
|
|
3271
3294
|
}
|
|
3272
|
-
`;
|
|
3273
|
-
class=${
|
|
3295
|
+
`;Ef([W({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Ef([lt()],exports.Tabs.prototype,"panels",2);exports.Tabs=Ef([Q(Rp)],exports.Tabs);var d8=Object.defineProperty,h8=Object.getOwnPropertyDescriptor,ks=(u,a,l,h)=>{for(var c=h>1?void 0:h?h8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&d8(a,l,c),c};const Hp=Ee("badge");exports.Badge=class extends We{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(u){return/^-?\d+$/.test(u)}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 J`<span
|
|
3296
|
+
class=${pa({"extra-wide":this.content.length>1})}
|
|
3274
3297
|
>${this.generateContent()}</span
|
|
3275
3298
|
>`}};exports.Badge.styles=me`
|
|
3276
3299
|
:host {
|
|
@@ -3305,7 +3328,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3305
3328
|
.extra-wide {
|
|
3306
3329
|
padding: 0 6px;
|
|
3307
3330
|
}
|
|
3308
|
-
`;
|
|
3331
|
+
`;ks([W({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);ks([W({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);ks([W({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);ks([lt()],exports.Badge.prototype,"deafultCharacterLimit",2);ks([lt()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=ks([Q(Hp)],exports.Badge);const{range:Wc}=Hg;function p8(u,a,l){return[1,null,...Wc(u-a,u+a+1),null,l]}function g8(u,a){return[1,null,...Wc(u-(a-3),u+1)]}function v8(u,a){return[...Wc(1,a-1),null,u]}function b8(u,a,l){return u>1+1+a*2&&u<l-1-a*2}function m8(u,a=1,l=1){const h=5+l*2;if(u<=h)return Wc(1,u+1);if(b8(a,l,u))return p8(a,l,u);if(a+(h-3)>=u)return g8(u,h);if(a<h)return v8(u,h)}var y8=Object.defineProperty,C8=Object.getOwnPropertyDescriptor,Xi=(u,a,l,h)=>{for(var c=h>1?void 0:h?C8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&y8(a,l,c),c};const Af=Ee("basic-pagination"),If=Ee("pagination");class w8 extends CustomEvent{constructor(a){super(`${Af}-${a}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends We{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(u){this.dispatchEvent(new w8(u))}handlePageChange(u){this.emit(`${u}-page`)}render(){return J`
|
|
3309
3332
|
<brz-button-group role="navigation" aria-label="Pagination Navigation">
|
|
3310
3333
|
<brz-button
|
|
3311
3334
|
compact
|
|
@@ -3331,7 +3354,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3331
3354
|
brz-button-group {
|
|
3332
3355
|
--brz-spacing-2: var(--brz-spacing-1);
|
|
3333
3356
|
}
|
|
3334
|
-
`;Xi([
|
|
3357
|
+
`;Xi([W({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Xi([W({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Xi([Q(Af)],exports.BasicPagination);class x8 extends CustomEvent{constructor(a,l){super(`${If}-${a}`,{bubbles:!0,composed:!0,detail:{page:l}})}}exports.Pagination=class extends We{constructor(){super(...arguments),this.currentPageSiblings=1}emit(u,a){this.dispatchEvent(new x8(u,a))}onPageChange(u){this.emit("page-change",u)}isCurrentPage(u){return u===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 u;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=m8(this.totalPages,this.currentPage,this.currentPageSiblings),J`
|
|
3335
3358
|
<brz-row role="navigation" aria-label="Pagination Navigation">
|
|
3336
3359
|
<button
|
|
3337
3360
|
role="link"
|
|
@@ -3344,7 +3367,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3344
3367
|
</div>
|
|
3345
3368
|
</button>
|
|
3346
3369
|
${(u=this.pages)==null?void 0:u.map(a=>a?J`<button
|
|
3347
|
-
class=${
|
|
3370
|
+
class=${pa({page:a,selected:this.isCurrentPage(a)})}
|
|
3348
3371
|
role="link"
|
|
3349
3372
|
aria-label=${`${this.isCurrentPage(a)?`Current Page, Page ${a}`:`Go to page ${a}`}`}
|
|
3350
3373
|
aria-current=${`${this.isCurrentPage(a)}`}
|
|
@@ -3432,7 +3455,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3432
3455
|
.page {
|
|
3433
3456
|
padding: 0 var(--brz-spacing-2);
|
|
3434
3457
|
}
|
|
3435
|
-
`;Xi([
|
|
3458
|
+
`;Xi([W({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Xi([W({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Xi([W({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Xi([lt()],exports.Pagination.prototype,"currentPageSiblings",2);Xi([lt()],exports.Pagination.prototype,"totalPages",2);Xi([lt()],exports.Pagination.prototype,"pages",2);exports.Pagination=Xi([Q(If)],exports.Pagination);var z8=Object.defineProperty,L8=Object.getOwnPropertyDescriptor,Vu=(u,a,l,h)=>{for(var c=h>1?void 0:h?L8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&z8(a,l,c),c};const _8=["info","success","warning","error"],Bp=Ee("alert");class S8 extends CustomEvent{constructor(a){super(a,{bubbles:!0,composed:!0})}}exports.Alert=class extends We{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 S8("brz-alert-cleared"))}render(){return this.cleared?null:J`<div class="alert-container">
|
|
3436
3459
|
<brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
|
|
3437
3460
|
<div role="alert">
|
|
3438
3461
|
${this.title?J`<div><brz-heading>${this.title}</brz-heading></div>`:J``}
|
|
@@ -3508,7 +3531,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3508
3531
|
padding-top: 1px;
|
|
3509
3532
|
}
|
|
3510
3533
|
|
|
3511
|
-
${
|
|
3534
|
+
${fh(".clear-button",me`
|
|
3512
3535
|
align-self: start;
|
|
3513
3536
|
margin-left: auto;
|
|
3514
3537
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
@@ -3517,7 +3540,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3517
3540
|
.clear-button brz-icon {
|
|
3518
3541
|
vertical-align: middle;
|
|
3519
3542
|
}
|
|
3520
|
-
`;
|
|
3543
|
+
`;Vu([W({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Vu([W({type:Boolean})],exports.Alert.prototype,"clearable",2);Vu([W()],exports.Alert.prototype,"title",2);Vu([lt()],exports.Alert.prototype,"cleared",2);exports.Alert=Vu([Q(Bp)],exports.Alert);const Df={resources:j`
|
|
3521
3544
|
<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"/>
|
|
3522
3545
|
<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"/>
|
|
3523
3546
|
<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"/>
|
|
@@ -3611,7 +3634,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3611
3634
|
<circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
|
|
3612
3635
|
<circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
|
|
3613
3636
|
<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"/>
|
|
3614
|
-
<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"/>`},
|
|
3637
|
+
<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"/>`},M8=Object.keys(Df);var k8=Object.defineProperty,O8=Object.getOwnPropertyDescriptor,Uc=(u,a,l,h)=>{for(var c=h>1?void 0:h?O8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&k8(a,l,c),c};const Fp=Ee("illustration");exports.Illustration=class extends We{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const u=Df[this.illustration],a=Math.floor(Math.random()*100),l=`${this.illustration}Title${a}`,h=`${this.illustration}Desc${a}`;if(!u){console.warn(`Can't find illustration ${this.illustration}`);return}return J`<svg
|
|
3615
3638
|
aria-hidden=${!this.altTitle.length||!this.altDescription.length}
|
|
3616
3639
|
role="img"
|
|
3617
3640
|
aria-labelledby=${`${l} ${h}`}
|
|
@@ -3627,13 +3650,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3627
3650
|
/* to get rid of extra height caused by white space */
|
|
3628
3651
|
line-height: 0;
|
|
3629
3652
|
}
|
|
3630
|
-
`;
|
|
3653
|
+
`;Uc([W({type:String})],exports.Illustration.prototype,"illustration",2);Uc([W({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);Uc([W({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=Uc([Q(Fp)],exports.Illustration);var T8=Object.defineProperty,P8=Object.getOwnPropertyDescriptor,E8=(u,a,l,h)=>{for(var c=h>1?void 0:h?P8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&T8(a,l,c),c};const Wp=Ee("header");exports.Header=class extends We{render(){return J`<slot></slot>`}};exports.Header.styles=me`
|
|
3631
3654
|
:host {
|
|
3632
3655
|
display: block;
|
|
3633
3656
|
padding: var(--brz-spacing-5);
|
|
3634
3657
|
margin-bottom: var(--brz-spacing-4);
|
|
3635
3658
|
}
|
|
3636
|
-
`;exports.Header=
|
|
3659
|
+
`;exports.Header=E8([Q(Wp)],exports.Header);var A8=Object.defineProperty,I8=Object.getOwnPropertyDescriptor,D8=(u,a,l,h)=>{for(var c=h>1?void 0:h?I8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&A8(a,l,c),c};const Up=Ee("header-footer-page");exports.HeaderFooterPage=class extends We{render(){return J`
|
|
3637
3660
|
<div id="container">
|
|
3638
3661
|
<div id="header"><slot name="header"></slot></div>
|
|
3639
3662
|
<div id="body"><slot></slot></div>
|
|
@@ -3657,7 +3680,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3657
3680
|
flex: 1 1;
|
|
3658
3681
|
overflow-y: auto;
|
|
3659
3682
|
}
|
|
3660
|
-
`;exports.HeaderFooterPage=
|
|
3683
|
+
`;exports.HeaderFooterPage=D8([Q(Up)],exports.HeaderFooterPage);var $8=Object.defineProperty,N8=Object.getOwnPropertyDescriptor,R8=(u,a,l,h)=>{for(var c=h>1?void 0:h?N8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&$8(a,l,c),c};const Zp=Ee("responsive-columns");exports.ResponsiveColumns=class extends We{render(){return J`<slot></slot>`}};exports.ResponsiveColumns.styles=me`
|
|
3661
3684
|
:host {
|
|
3662
3685
|
display: flex;
|
|
3663
3686
|
flex-direction: row;
|
|
@@ -3689,7 +3712,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3689
3712
|
margin-bottom: var(--brz-padding, var(--brz-spacing-8));
|
|
3690
3713
|
}
|
|
3691
3714
|
}
|
|
3692
|
-
`;exports.ResponsiveColumns=
|
|
3715
|
+
`;exports.ResponsiveColumns=R8([Q(Zp)],exports.ResponsiveColumns);var H8=Object.defineProperty,B8=Object.getOwnPropertyDescriptor,F8=(u,a,l,h)=>{for(var c=h>1?void 0:h?B8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&H8(a,l,c),c};const Vp=Ee("footer");exports.Footer=class extends We{render(){return J`<div class="container">
|
|
3693
3716
|
<slot name="left"></slot>
|
|
3694
3717
|
<slot name="middle"></slot>
|
|
3695
3718
|
<slot name="right"></slot>
|
|
@@ -3700,7 +3723,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3700
3723
|
justify-content: space-between;
|
|
3701
3724
|
padding: var(--brz-spacing-3) var(--brz-spacing-4);
|
|
3702
3725
|
}
|
|
3703
|
-
`;exports.Footer=
|
|
3726
|
+
`;exports.Footer=F8([Q(Vp)],exports.Footer);var W8=Object.defineProperty,U8=Object.getOwnPropertyDescriptor,Gp=(u,a,l,h)=>{for(var c=h>1?void 0:h?U8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&W8(a,l,c),c};const qp=Ee("page-header");exports.PageHeader=class extends We{render(){return J`
|
|
3704
3727
|
<header>
|
|
3705
3728
|
<slot name="decorator"></slot>
|
|
3706
3729
|
|
|
@@ -3749,14 +3772,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3749
3772
|
line-height: var(--brz-line-height);
|
|
3750
3773
|
margin-top: var(--brz-spacing-2);
|
|
3751
3774
|
}
|
|
3752
|
-
`;
|
|
3775
|
+
`;Gp([W({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);exports.PageHeader=Gp([Q(qp)],exports.PageHeader);const Z8=me`
|
|
3753
3776
|
:host {
|
|
3754
3777
|
--brz-border-radius-default: 2px;
|
|
3755
3778
|
--brz-border-radius-medium: 3px;
|
|
3756
3779
|
|
|
3757
3780
|
--brz-border-divider: 1px solid var(--brz-color-neutral-400);
|
|
3758
3781
|
}
|
|
3759
|
-
`,
|
|
3782
|
+
`,V8=me`
|
|
3760
3783
|
:host {
|
|
3761
3784
|
--brz-color-neutral-900: #1b263a;
|
|
3762
3785
|
--brz-color-neutral-850: #223049;
|
|
@@ -3946,7 +3969,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3946
3969
|
|
|
3947
3970
|
--brz-color-text-on-color: var(--brz-color-white);
|
|
3948
3971
|
}
|
|
3949
|
-
`,
|
|
3972
|
+
`,G8=me`
|
|
3950
3973
|
:host {
|
|
3951
3974
|
--sp-border-radius-default: var(--brz-border-radius-default);
|
|
3952
3975
|
--sp-border-radius-medium: var(--brz-border-radius-medium)
|
|
@@ -4211,14 +4234,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4211
4234
|
--sp-z-index-dropdown: var(--brz-z-index-dropdown);
|
|
4212
4235
|
--sp-z-index-tooltip: var(--brz-z-index-tooltip);
|
|
4213
4236
|
}
|
|
4214
|
-
`,
|
|
4237
|
+
`,q8=me`
|
|
4215
4238
|
:host {
|
|
4216
4239
|
// TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
|
|
4217
4240
|
--brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
|
|
4218
4241
|
--brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
|
|
4219
4242
|
--brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
|
|
4220
4243
|
}
|
|
4221
|
-
`,
|
|
4244
|
+
`,K8=me`
|
|
4222
4245
|
:host {
|
|
4223
4246
|
--brz-spacing-px: 1px;
|
|
4224
4247
|
--brz-spacing-0: 0;
|
|
@@ -4247,7 +4270,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4247
4270
|
/* 80px */
|
|
4248
4271
|
--brz-spacing-20: 5rem;
|
|
4249
4272
|
}
|
|
4250
|
-
`,
|
|
4273
|
+
`,j8=me`
|
|
4251
4274
|
:host {
|
|
4252
4275
|
--brz-font-family: Inter, sofiapro;
|
|
4253
4276
|
--brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
|
|
@@ -4288,14 +4311,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4288
4311
|
--brz-color-text-light: var(--brz-color-neutral-700);
|
|
4289
4312
|
--brz-color-text-placeholder: var(--brz-color-neutral-600);
|
|
4290
4313
|
}
|
|
4291
|
-
`,
|
|
4314
|
+
`,Y8=me`
|
|
4292
4315
|
:host {
|
|
4293
4316
|
--brz-z-index-navigation: 1000;
|
|
4294
4317
|
--brz-z-index-dialog: 1100;
|
|
4295
4318
|
--brz-z-index-dropdown: 1200;
|
|
4296
4319
|
--brz-z-index-tooltip: 1300;
|
|
4297
4320
|
}
|
|
4298
|
-
`;var
|
|
4321
|
+
`;var X8=Object.defineProperty,Q8=Object.getOwnPropertyDescriptor,J8=(u,a,l,h)=>{for(var c=h>1?void 0:h?Q8(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&X8(a,l,c),c};const Kp=Ee("global-styles");exports.GlobalStyles=class extends We{render(){return J`<slot></slot>`}};exports.GlobalStyles.styles=[V8,K8,j8,Z8,q8,Y8,G8,me`
|
|
4299
4322
|
:host {
|
|
4300
4323
|
--brz-outline-color: var(--brz-color-primary-600);
|
|
4301
4324
|
--brz-outline-style: solid;
|
|
@@ -4311,7 +4334,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4311
4334
|
font-weight: var(--brz-font-weight-normal);
|
|
4312
4335
|
color: var(--brz-color-text);
|
|
4313
4336
|
}
|
|
4314
|
-
`];exports.GlobalStyles
|
|
4337
|
+
`];exports.GlobalStyles=J8([Q(Kp)],exports.GlobalStyles);var eb=Object.defineProperty,tb=Object.getOwnPropertyDescriptor,$f=(u,a,l,h)=>{for(var c=h>1?void 0:h?tb(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&eb(a,l,c),c};const jp=Ee("paper");exports.Paper=class extends We{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return J` <div class="container"><slot></slot></div> `}};exports.Paper.styles=me`
|
|
4315
4338
|
:host {
|
|
4316
4339
|
display: block;
|
|
4317
4340
|
position: relative;
|
|
@@ -4335,4 +4358,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4335
4358
|
:host([has-border]) .container {
|
|
4336
4359
|
border: 1px solid var(--brz-color-neutral-300);
|
|
4337
4360
|
}
|
|
4338
|
-
`;Pf([U({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);Pf([U({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=Pf([Q(Rp)],exports.Paper);var H8=Object.defineProperty,B8=Object.getOwnPropertyDescriptor,Ie=(u,a,l,h)=>{for(var f=h>1?void 0:h?B8(a,l):a,v=u.length-1,y;v>=0;v--)(y=u[v])&&(f=(h?y(a,l,f):y(f))||f);return h&&f&&H8(a,l,f),f};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Ie([Q("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Ie([Q("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Ie([Q("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Ie([Q("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Ie([Q("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Ie([Q("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Ie([Q("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Ie([Q("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Ie([Q("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Ie([Q("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Ie([Q("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Ie([Q("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Ie([Q("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Ie([Q("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Ie([Q("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Ie([Q("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Ie([Q("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Ie([Q("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Ie([Q("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Ie([Q("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Ie([Q("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Ie([Q("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Ie([Q("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Ie([Q("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Ie([Q("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Ie([Q("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Ie([Q("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Ie([Q("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Ie([Q("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Ie([Q("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Ie([Q("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Ie([Q("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Ie([Q("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Ie([Q("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Ie([Q("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Ie([Q("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Ie([Q("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Ie([Q("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Ie([Q("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Ie([Q("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Ie([Q("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Ie([Q("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Ie([Q("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Ie([Q("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Ie([Q("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Ie([Q("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Ie([Q("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Ie([Q("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends Cc{};exports.LegacyInputGuide=Ie([Q("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Ie([Q("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Ie([Q("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Ie([Q("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Ie([Q("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Ie([Q("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Ie([Q("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Ie([Q("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Ie([Q("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Ie([Q("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Ie([Q("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Ie([Q("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Ie([Q("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=Th;exports.ALERT=Op;exports.AVATAR=yh;exports.AVATAR_GROUP=Ch;exports.BADGE=kp;exports.BASIC_PAGINATION=kf;exports.BUTTON=mf;exports.BUTTON_GROUP=_h;exports.COLUMN=xh;exports.COMBO_BOX=Sh;exports.COMBO_BOX_OPTION=Mh;exports.CONFIRMATION_DIALOG=Nh;exports.ConfirmationDialogCancel=Rh;exports.ConfirmationDialogConfirm=Hh;exports.DeleteLozengeEvent=np;exports.FADE_IN_OUT=oh;exports.FOOTER=Ip;exports.GLOBAL_STYLES=Np;exports.HEADER=Pp;exports.HEADER_FOOTER_PAGE=Ep;exports.HEADING=gp;exports.ICON=Eh;exports.ILLUSTRATION=Tp;exports.INPUT_CHECKBOX=Bh;exports.INPUT_CODE=Qh;exports.INPUT_ERROR=Fh;exports.INPUT_LABEL=Uh;exports.INPUT_MULTISELECT=ip;exports.INPUT_NUMBER=Gh;exports.INPUT_RADIO_GROUP=jh;exports.INPUT_RADIO_OPTION=Yh;exports.INPUT_SELECT=tp;exports.INPUT_TEXT=Zh;exports.INPUT_TEXTAREA=Vh;exports.INPUT_TIME=up;exports.InputBase=Yi;exports.InputSelectBase=wn;exports.LABELED_INPUT=Wh;exports.LINK=vp;exports.LINK_BUTTON=bp;exports.LOADING_SPINNER=Lh;exports.LOZENGE=rp;exports.MENU=Jh;exports.MENU_ITEM=Su;exports.MODAL=kh;exports.MODAL_BODY=Ih;exports.MODAL_FOOTER=Dh;exports.MODAL_HEADER=Ah;exports.ModalCloseEvent=Cf;exports.NO_RESULTS_ID=Lf;exports.PAGE_HEADER=$p;exports.PAGINATION=Of;exports.PAPER=Rp;exports.POPOVER=vf;exports.POPOVER_LISTENABLE_EVENT_TYPES=yc;exports.POPOVER_ROLES=bf;exports.POPOVER_TRIGGERS=bh;exports.PURE_POPOVER=vh;exports.RECORD_ROW=xp;exports.RECORD_ROW_LABEL=zp;exports.RESPONSIVE_COLUMNS=Ap;exports.ROW=wh;exports.SIDE_NAVIGATION=Cp;exports.SIDE_NAVIGATION_ITEM=yp;exports.SPLIT_ROW=Oh;exports.TAB=_p;exports.TABS=Mp;exports.TAB_BAR=Sp;exports.TAB_PANEL=Lp;exports.TIME_FORMAT=cp;exports.TIME_REGEX_12H=hp;exports.TIME_REGEX_24H=dp;exports.TIME_REGEX_LOOSE=fp;exports.TOOLTIP=mh;exports.TabSelectedEvent=Ic;exports.VIRTUAL_LIST=zf;exports.alertTypes=s8;exports.buttonTypes=k7;exports.click=mc;exports.emit=ep;exports.focus=ol;exports.hover=J1;exports.iconNames=R7;exports.icons=wf;exports.illustrationNames=c8;exports.illustrations=Tf;exports.inputSizes=ig;exports.labelPositions=sg;exports.lozengeColors=jg;exports.lozengeSizes=Xg;exports.lozengeThemes=Yg;exports.radioLayouts=_g;exports.transformIcon=Ph;
|
|
4361
|
+
`;$f([W({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);$f([W({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=$f([Q(jp)],exports.Paper);var rb=Object.defineProperty,nb=Object.getOwnPropertyDescriptor,Ie=(u,a,l,h)=>{for(var c=h>1?void 0:h?nb(a,l):a,v=u.length-1,m;v>=0;v--)(m=u[v])&&(c=(h?m(a,l,c):m(c))||c);return h&&c&&rb(a,l,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Ie([Q("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Ie([Q("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Ie([Q("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Ie([Q("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Ie([Q("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Ie([Q("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Ie([Q("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Ie([Q("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Ie([Q("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Ie([Q("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Ie([Q("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Ie([Q("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Ie([Q("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Ie([Q("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Ie([Q("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Ie([Q("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Ie([Q("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Ie([Q("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Ie([Q("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Ie([Q("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Ie([Q("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Ie([Q("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Ie([Q("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Ie([Q("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Ie([Q("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Ie([Q("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Ie([Q("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Ie([Q("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Ie([Q("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Ie([Q("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Ie([Q("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Ie([Q("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Ie([Q("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Ie([Q("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Ie([Q("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Ie([Q("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Ie([Q("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Ie([Q("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Ie([Q("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Ie([Q("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Ie([Q("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Ie([Q("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Ie([Q("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Ie([Q("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Ie([Q("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Ie([Q("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Ie([Q("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Ie([Q("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends Lc{};exports.LegacyInputGuide=Ie([Q("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Ie([Q("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Ie([Q("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Ie([Q("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Ie([Q("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Ie([Q("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Ie([Q("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Ie([Q("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Ie([Q("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Ie([Q("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Ie([Q("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Ie([Q("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Ie([Q("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=Wh;exports.ALERT=Bp;exports.AVATAR=Lh;exports.AVATAR_GROUP=_h;exports.BADGE=Hp;exports.BASIC_PAGINATION=Af;exports.BUTTON=Lf;exports.BUTTON_GROUP=Th;exports.COLUMN=Mh;exports.COMBO_BOX=Rh;exports.COMBO_BOX_OPTION=Hh;exports.CONFIRMATION_DIALOG=jh;exports.ConfirmationDialogCancel=Yh;exports.ConfirmationDialogConfirm=Xh;exports.DROPDOWN_MENU=$h;exports.DeleteLozengeEvent=pp;exports.FADE_IN_OUT=ch;exports.FOOTER=Vp;exports.GLOBAL_STYLES=Kp;exports.HEADER=Wp;exports.HEADER_FOOTER_PAGE=Up;exports.HEADING=Sp;exports.ICON=Zh;exports.ILLUSTRATION=Fp;exports.INPUT_CHECKBOX=Qh;exports.INPUT_CODE=cp;exports.INPUT_ERROR=Jh;exports.INPUT_LABEL=tp;exports.INPUT_MULTISELECT=gp;exports.INPUT_NUMBER=ip;exports.INPUT_RADIO_GROUP=lp;exports.INPUT_RADIO_OPTION=sp;exports.INPUT_SELECT=dp;exports.INPUT_TEXT=rp;exports.INPUT_TEXTAREA=np;exports.INPUT_TIME=Cp;exports.InputBase=Yi;exports.InputSelectBase=sn;exports.LABELED_INPUT=ep;exports.LINK=Mp;exports.LINK_BUTTON=kp;exports.LOADING_SPINNER=Oh;exports.LOZENGE=hp;exports.MENU=Eh;exports.MENU_ITEM=zc;exports.MODAL=Bh;exports.MODAL_BODY=Gh;exports.MODAL_FOOTER=qh;exports.MODAL_HEADER=Vh;exports.MenuBlurEvent=Ih;exports.MenuItemSelectEvent=Ph;exports.MenuSelectEvent=Dh;exports.ModalCloseEvent=_f;exports.NO_RESULTS_ID=Of;exports.PAGE_HEADER=qp;exports.PAGINATION=If;exports.PAPER=jp;exports.POPOVER=xf;exports.POPOVER_LISTENABLE_EVENT_TYPES=xc;exports.POPOVER_ROLES=zf;exports.POPOVER_TRIGGERS=xh;exports.PURE_POPOVER=wh;exports.RECORD_ROW=Ap;exports.RECORD_ROW_LABEL=Ip;exports.RESPONSIVE_COLUMNS=Zp;exports.ROW=Sh;exports.SELECT_ALL_ID=Vi;exports.SIDE_NAVIGATION=Pp;exports.SIDE_NAVIGATION_ITEM=Tp;exports.SPLIT_ROW=Fh;exports.TAB=$p;exports.TABS=Rp;exports.TAB_BAR=Np;exports.TAB_PANEL=Dp;exports.TIME_FORMAT=wp;exports.TIME_REGEX_12H=Lp;exports.TIME_REGEX_24H=zp;exports.TIME_REGEX_LOOSE=xp;exports.TOOLTIP=zh;exports.TabSelectedEvent=Hc;exports.VIRTUAL_LIST=kf;exports.VirtualListUpdateEvent=fp;exports.alertTypes=_8;exports.buttonTypes=Ng;exports.click=wc;exports.dropdownMenuSizes=qg;exports.focus=ll;exports.hover=of;exports.iconNames=nv;exports.icons=Sf;exports.illustrationNames=M8;exports.illustrations=Df;exports.inputSizes=zv;exports.labelPositions=Mv;exports.lozengeColors=d7;exports.lozengeSizes=p7;exports.lozengeThemes=h7;exports.menuSizes=Ah;exports.radioLayouts=Zv;exports.transformIcon=Uh;
|